(gdb-frame-address, gdb-var-changed, gdb-output-sink, gdba,
[emacs.git] / configure
blobf16082beff31ca962f06464f116b755306570e67
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization. ##
10 ## --------------------- ##
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14 emulate sh
15 NULLCMD=:
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20 set -o posix
22 DUALCASE=1; export DUALCASE # for MKS sh
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/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 -z "`(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 test -d ./-p && rmdir ./-p
222 as_mkdir_p=false
225 as_executable_p="test -f"
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
234 # IFS
235 # We need space, tab and new line, in precisely that order.
236 as_nl='
238 IFS=" $as_nl"
240 # CDPATH.
241 $as_unset CDPATH
244 # Name of the host.
245 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246 # so uname gets run too.
247 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
249 exec 6>&1
252 # Initializations.
254 ac_default_prefix=/usr/local
255 ac_config_libobj_dir=.
256 cross_compiling=no
257 subdirs=
258 MFLAGS=
259 MAKEFLAGS=
260 SHELL=${CONFIG_SHELL-/bin/sh}
262 # Maximum number of lines to put in a shell here document.
263 # This variable seems obsolete. It should probably be removed, and
264 # only ac_max_sed_lines should be used.
265 : ${ac_max_here_lines=38}
267 # Identity of this package.
268 PACKAGE_NAME=
269 PACKAGE_TARNAME=
270 PACKAGE_VERSION=
271 PACKAGE_STRING=
272 PACKAGE_BUGREPORT=
274 ac_unique_file="src/lisp.h"
275 ac_config_libobj_dir=src
276 # Factoring default headers for most tests.
277 ac_includes_default="\
278 #include <stdio.h>
279 #if HAVE_SYS_TYPES_H
280 # include <sys/types.h>
281 #endif
282 #if HAVE_SYS_STAT_H
283 # include <sys/stat.h>
284 #endif
285 #if STDC_HEADERS
286 # include <stdlib.h>
287 # include <stddef.h>
288 #else
289 # if HAVE_STDLIB_H
290 # include <stdlib.h>
291 # endif
292 #endif
293 #if HAVE_STRING_H
294 # if !STDC_HEADERS && HAVE_MEMORY_H
295 # include <memory.h>
296 # endif
297 # include <string.h>
298 #endif
299 #if HAVE_STRINGS_H
300 # include <strings.h>
301 #endif
302 #if HAVE_INTTYPES_H
303 # include <inttypes.h>
304 #else
305 # if HAVE_STDINT_H
306 # include <stdint.h>
307 # endif
308 #endif
309 #if HAVE_UNISTD_H
310 # include <unistd.h>
311 #endif"
313 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 GETOPT_H GETOPTOBJS 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'
314 ac_subst_files=''
316 # Initialize some variables set by options.
317 ac_init_help=
318 ac_init_version=false
319 # The variables have the same names as the options, with
320 # dashes changed to underlines.
321 cache_file=/dev/null
322 exec_prefix=NONE
323 no_create=
324 no_recursion=
325 prefix=NONE
326 program_prefix=NONE
327 program_suffix=NONE
328 program_transform_name=s,x,x,
329 silent=
330 site=
331 srcdir=
332 verbose=
333 x_includes=NONE
334 x_libraries=NONE
336 # Installation directory options.
337 # These are left unexpanded so users can "make install exec_prefix=/foo"
338 # and all the variables that are supposed to be based on exec_prefix
339 # by default will actually change.
340 # Use braces instead of parens because sh, perl, etc. also accept them.
341 bindir='${exec_prefix}/bin'
342 sbindir='${exec_prefix}/sbin'
343 libexecdir='${exec_prefix}/libexec'
344 datadir='${prefix}/share'
345 sysconfdir='${prefix}/etc'
346 sharedstatedir='${prefix}/com'
347 localstatedir='${prefix}/var'
348 libdir='${exec_prefix}/lib'
349 includedir='${prefix}/include'
350 oldincludedir='/usr/include'
351 infodir='${prefix}/info'
352 mandir='${prefix}/man'
354 ac_prev=
355 for ac_option
357 # If the previous option needs an argument, assign it.
358 if test -n "$ac_prev"; then
359 eval "$ac_prev=\$ac_option"
360 ac_prev=
361 continue
364 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
366 # Accept the important Cygnus configure options, so we can diagnose typos.
368 case $ac_option in
370 -bindir | --bindir | --bindi | --bind | --bin | --bi)
371 ac_prev=bindir ;;
372 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
373 bindir=$ac_optarg ;;
375 -build | --build | --buil | --bui | --bu)
376 ac_prev=build_alias ;;
377 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
378 build_alias=$ac_optarg ;;
380 -cache-file | --cache-file | --cache-fil | --cache-fi \
381 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
382 ac_prev=cache_file ;;
383 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
384 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
385 cache_file=$ac_optarg ;;
387 --config-cache | -C)
388 cache_file=config.cache ;;
390 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
391 ac_prev=datadir ;;
392 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
393 | --da=*)
394 datadir=$ac_optarg ;;
396 -disable-* | --disable-*)
397 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
398 # Reject names that are not valid shell variable names.
399 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
400 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
401 { (exit 1); exit 1; }; }
402 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
403 eval "enable_$ac_feature=no" ;;
405 -enable-* | --enable-*)
406 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
407 # Reject names that are not valid shell variable names.
408 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
409 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
410 { (exit 1); exit 1; }; }
411 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
412 case $ac_option in
413 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
414 *) ac_optarg=yes ;;
415 esac
416 eval "enable_$ac_feature='$ac_optarg'" ;;
418 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
419 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
420 | --exec | --exe | --ex)
421 ac_prev=exec_prefix ;;
422 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
423 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
424 | --exec=* | --exe=* | --ex=*)
425 exec_prefix=$ac_optarg ;;
427 -gas | --gas | --ga | --g)
428 # Obsolete; use --with-gas.
429 with_gas=yes ;;
431 -help | --help | --hel | --he | -h)
432 ac_init_help=long ;;
433 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
434 ac_init_help=recursive ;;
435 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
436 ac_init_help=short ;;
438 -host | --host | --hos | --ho)
439 ac_prev=host_alias ;;
440 -host=* | --host=* | --hos=* | --ho=*)
441 host_alias=$ac_optarg ;;
443 -includedir | --includedir | --includedi | --included | --include \
444 | --includ | --inclu | --incl | --inc)
445 ac_prev=includedir ;;
446 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
447 | --includ=* | --inclu=* | --incl=* | --inc=*)
448 includedir=$ac_optarg ;;
450 -infodir | --infodir | --infodi | --infod | --info | --inf)
451 ac_prev=infodir ;;
452 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
453 infodir=$ac_optarg ;;
455 -libdir | --libdir | --libdi | --libd)
456 ac_prev=libdir ;;
457 -libdir=* | --libdir=* | --libdi=* | --libd=*)
458 libdir=$ac_optarg ;;
460 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
461 | --libexe | --libex | --libe)
462 ac_prev=libexecdir ;;
463 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
464 | --libexe=* | --libex=* | --libe=*)
465 libexecdir=$ac_optarg ;;
467 -localstatedir | --localstatedir | --localstatedi | --localstated \
468 | --localstate | --localstat | --localsta | --localst \
469 | --locals | --local | --loca | --loc | --lo)
470 ac_prev=localstatedir ;;
471 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
472 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
473 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
474 localstatedir=$ac_optarg ;;
476 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
477 ac_prev=mandir ;;
478 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
479 mandir=$ac_optarg ;;
481 -nfp | --nfp | --nf)
482 # Obsolete; use --without-fp.
483 with_fp=no ;;
485 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
486 | --no-cr | --no-c | -n)
487 no_create=yes ;;
489 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
490 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
491 no_recursion=yes ;;
493 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
494 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
495 | --oldin | --oldi | --old | --ol | --o)
496 ac_prev=oldincludedir ;;
497 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
498 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
499 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
500 oldincludedir=$ac_optarg ;;
502 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
503 ac_prev=prefix ;;
504 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
505 prefix=$ac_optarg ;;
507 -program-prefix | --program-prefix | --program-prefi | --program-pref \
508 | --program-pre | --program-pr | --program-p)
509 ac_prev=program_prefix ;;
510 -program-prefix=* | --program-prefix=* | --program-prefi=* \
511 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
512 program_prefix=$ac_optarg ;;
514 -program-suffix | --program-suffix | --program-suffi | --program-suff \
515 | --program-suf | --program-su | --program-s)
516 ac_prev=program_suffix ;;
517 -program-suffix=* | --program-suffix=* | --program-suffi=* \
518 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
519 program_suffix=$ac_optarg ;;
521 -program-transform-name | --program-transform-name \
522 | --program-transform-nam | --program-transform-na \
523 | --program-transform-n | --program-transform- \
524 | --program-transform | --program-transfor \
525 | --program-transfo | --program-transf \
526 | --program-trans | --program-tran \
527 | --progr-tra | --program-tr | --program-t)
528 ac_prev=program_transform_name ;;
529 -program-transform-name=* | --program-transform-name=* \
530 | --program-transform-nam=* | --program-transform-na=* \
531 | --program-transform-n=* | --program-transform-=* \
532 | --program-transform=* | --program-transfor=* \
533 | --program-transfo=* | --program-transf=* \
534 | --program-trans=* | --program-tran=* \
535 | --progr-tra=* | --program-tr=* | --program-t=*)
536 program_transform_name=$ac_optarg ;;
538 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
539 | -silent | --silent | --silen | --sile | --sil)
540 silent=yes ;;
542 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
543 ac_prev=sbindir ;;
544 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
545 | --sbi=* | --sb=*)
546 sbindir=$ac_optarg ;;
548 -sharedstatedir | --sharedstatedir | --sharedstatedi \
549 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
550 | --sharedst | --shareds | --shared | --share | --shar \
551 | --sha | --sh)
552 ac_prev=sharedstatedir ;;
553 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
554 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
555 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
556 | --sha=* | --sh=*)
557 sharedstatedir=$ac_optarg ;;
559 -site | --site | --sit)
560 ac_prev=site ;;
561 -site=* | --site=* | --sit=*)
562 site=$ac_optarg ;;
564 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
565 ac_prev=srcdir ;;
566 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
567 srcdir=$ac_optarg ;;
569 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
570 | --syscon | --sysco | --sysc | --sys | --sy)
571 ac_prev=sysconfdir ;;
572 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
573 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
574 sysconfdir=$ac_optarg ;;
576 -target | --target | --targe | --targ | --tar | --ta | --t)
577 ac_prev=target_alias ;;
578 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
579 target_alias=$ac_optarg ;;
581 -v | -verbose | --verbose | --verbos | --verbo | --verb)
582 verbose=yes ;;
584 -version | --version | --versio | --versi | --vers | -V)
585 ac_init_version=: ;;
587 -with-* | --with-*)
588 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
589 # Reject names that are not valid shell variable names.
590 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
591 { echo "$as_me: error: invalid package name: $ac_package" >&2
592 { (exit 1); exit 1; }; }
593 ac_package=`echo $ac_package| sed 's/-/_/g'`
594 case $ac_option in
595 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
596 *) ac_optarg=yes ;;
597 esac
598 eval "with_$ac_package='$ac_optarg'" ;;
600 -without-* | --without-*)
601 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
602 # Reject names that are not valid shell variable names.
603 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
604 { echo "$as_me: error: invalid package name: $ac_package" >&2
605 { (exit 1); exit 1; }; }
606 ac_package=`echo $ac_package | sed 's/-/_/g'`
607 eval "with_$ac_package=no" ;;
609 --x)
610 # Obsolete; use --with-x.
611 with_x=yes ;;
613 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
614 | --x-incl | --x-inc | --x-in | --x-i)
615 ac_prev=x_includes ;;
616 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
617 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
618 x_includes=$ac_optarg ;;
620 -x-libraries | --x-libraries | --x-librarie | --x-librari \
621 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
622 ac_prev=x_libraries ;;
623 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
624 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
625 x_libraries=$ac_optarg ;;
627 -*) { echo "$as_me: error: unrecognized option: $ac_option
628 Try \`$0 --help' for more information." >&2
629 { (exit 1); exit 1; }; }
632 *=*)
633 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
634 # Reject names that are not valid shell variable names.
635 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
636 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
637 { (exit 1); exit 1; }; }
638 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
639 eval "$ac_envvar='$ac_optarg'"
640 export $ac_envvar ;;
643 # FIXME: should be removed in autoconf 3.0.
644 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
645 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
646 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
647 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
650 esac
651 done
653 if test -n "$ac_prev"; then
654 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
655 { echo "$as_me: error: missing argument to $ac_option" >&2
656 { (exit 1); exit 1; }; }
659 # Be sure to have absolute paths.
660 for ac_var in exec_prefix prefix
662 eval ac_val=$`echo $ac_var`
663 case $ac_val in
664 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
665 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
666 { (exit 1); exit 1; }; };;
667 esac
668 done
670 # Be sure to have absolute paths.
671 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
672 localstatedir libdir includedir oldincludedir infodir mandir
674 eval ac_val=$`echo $ac_var`
675 case $ac_val in
676 [\\/$]* | ?:[\\/]* ) ;;
677 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
678 { (exit 1); exit 1; }; };;
679 esac
680 done
682 # There might be people who depend on the old broken behavior: `$host'
683 # used to hold the argument of --host etc.
684 # FIXME: To remove some day.
685 build=$build_alias
686 host=$host_alias
687 target=$target_alias
689 # FIXME: To remove some day.
690 if test "x$host_alias" != x; then
691 if test "x$build_alias" = x; then
692 cross_compiling=maybe
693 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
694 If a cross compiler is detected then cross compile mode will be used." >&2
695 elif test "x$build_alias" != "x$host_alias"; then
696 cross_compiling=yes
700 ac_tool_prefix=
701 test -n "$host_alias" && ac_tool_prefix=$host_alias-
703 test "$silent" = yes && exec 6>/dev/null
706 # Find the source files, if location was not specified.
707 if test -z "$srcdir"; then
708 ac_srcdir_defaulted=yes
709 # Try the directory containing this script, then its parent.
710 ac_confdir=`(dirname "$0") 2>/dev/null ||
711 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
712 X"$0" : 'X\(//\)[^/]' \| \
713 X"$0" : 'X\(//\)$' \| \
714 X"$0" : 'X\(/\)' \| \
715 . : '\(.\)' 2>/dev/null ||
716 echo X"$0" |
717 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
718 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
719 /^X\(\/\/\)$/{ s//\1/; q; }
720 /^X\(\/\).*/{ s//\1/; q; }
721 s/.*/./; q'`
722 srcdir=$ac_confdir
723 if test ! -r $srcdir/$ac_unique_file; then
724 srcdir=..
726 else
727 ac_srcdir_defaulted=no
729 if test ! -r $srcdir/$ac_unique_file; then
730 if test "$ac_srcdir_defaulted" = yes; then
731 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
732 { (exit 1); exit 1; }; }
733 else
734 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
735 { (exit 1); exit 1; }; }
738 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
739 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
740 { (exit 1); exit 1; }; }
741 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
742 ac_env_build_alias_set=${build_alias+set}
743 ac_env_build_alias_value=$build_alias
744 ac_cv_env_build_alias_set=${build_alias+set}
745 ac_cv_env_build_alias_value=$build_alias
746 ac_env_host_alias_set=${host_alias+set}
747 ac_env_host_alias_value=$host_alias
748 ac_cv_env_host_alias_set=${host_alias+set}
749 ac_cv_env_host_alias_value=$host_alias
750 ac_env_target_alias_set=${target_alias+set}
751 ac_env_target_alias_value=$target_alias
752 ac_cv_env_target_alias_set=${target_alias+set}
753 ac_cv_env_target_alias_value=$target_alias
754 ac_env_CC_set=${CC+set}
755 ac_env_CC_value=$CC
756 ac_cv_env_CC_set=${CC+set}
757 ac_cv_env_CC_value=$CC
758 ac_env_CFLAGS_set=${CFLAGS+set}
759 ac_env_CFLAGS_value=$CFLAGS
760 ac_cv_env_CFLAGS_set=${CFLAGS+set}
761 ac_cv_env_CFLAGS_value=$CFLAGS
762 ac_env_LDFLAGS_set=${LDFLAGS+set}
763 ac_env_LDFLAGS_value=$LDFLAGS
764 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
765 ac_cv_env_LDFLAGS_value=$LDFLAGS
766 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
767 ac_env_CPPFLAGS_value=$CPPFLAGS
768 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
769 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
770 ac_env_CPP_set=${CPP+set}
771 ac_env_CPP_value=$CPP
772 ac_cv_env_CPP_set=${CPP+set}
773 ac_cv_env_CPP_value=$CPP
776 # Report the --help message.
778 if test "$ac_init_help" = "long"; then
779 # Omit some internal or obsolete options to make the list less imposing.
780 # This message is too long to be a string in the A/UX 3.1 sh.
781 cat <<_ACEOF
782 \`configure' configures this package to adapt to many kinds of systems.
784 Usage: $0 [OPTION]... [VAR=VALUE]...
786 To assign environment variables (e.g., CC, CFLAGS...), specify them as
787 VAR=VALUE. See below for descriptions of some of the useful variables.
789 Defaults for the options are specified in brackets.
791 Configuration:
792 -h, --help display this help and exit
793 --help=short display options specific to this package
794 --help=recursive display the short help of all the included packages
795 -V, --version display version information and exit
796 -q, --quiet, --silent do not print \`checking...' messages
797 --cache-file=FILE cache test results in FILE [disabled]
798 -C, --config-cache alias for \`--cache-file=config.cache'
799 -n, --no-create do not create output files
800 --srcdir=DIR find the sources in DIR [configure dir or \`..']
802 _ACEOF
804 cat <<_ACEOF
805 Installation directories:
806 --prefix=PREFIX install architecture-independent files in PREFIX
807 [$ac_default_prefix]
808 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
809 [PREFIX]
811 By default, \`make install' will install all the files in
812 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
813 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
814 for instance \`--prefix=\$HOME'.
816 For better control, use the options below.
818 Fine tuning of the installation directories:
819 --bindir=DIR user executables [EPREFIX/bin]
820 --sbindir=DIR system admin executables [EPREFIX/sbin]
821 --libexecdir=DIR program executables [EPREFIX/libexec]
822 --datadir=DIR read-only architecture-independent data [PREFIX/share]
823 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
824 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
825 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
826 --libdir=DIR object code libraries [EPREFIX/lib]
827 --includedir=DIR C header files [PREFIX/include]
828 --oldincludedir=DIR C header files for non-gcc [/usr/include]
829 --infodir=DIR info documentation [PREFIX/info]
830 --mandir=DIR man documentation [PREFIX/man]
831 _ACEOF
833 cat <<\_ACEOF
835 Program names:
836 --program-prefix=PREFIX prepend PREFIX to installed program names
837 --program-suffix=SUFFIX append SUFFIX to installed program names
838 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
840 X features:
841 --x-includes=DIR X include files are in DIR
842 --x-libraries=DIR X library files are in DIR
844 System types:
845 --build=BUILD configure for building on BUILD [guessed]
846 --host=HOST cross-compile to build programs to run on HOST [BUILD]
847 _ACEOF
850 if test -n "$ac_init_help"; then
852 cat <<\_ACEOF
854 Optional Features:
855 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
856 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
857 --enable-carbon-app[=DIR] [DIR=/Application]
858 specify install directory for Emacs.app on Mac OS X
859 --enable-asserts compile code with asserts enabled
860 --enable-maintainer-mode enable make rules and dependencies not useful
861 (and sometimes confusing) to the casual installer
862 --enable-locallisppath=PATH
863 directories Emacs should search for lisp files
864 specific to this site
865 --disable-largefile omit support for large files
867 Optional Packages:
868 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
869 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
870 --without-gcc don't use GCC to compile Emacs if GCC is found
871 --without-pop don't support POP mail retrieval with movemail
872 --with-kerberos support Kerberos-authenticated POP
873 --with-kerberos5 support Kerberos version 5 authenticated POP
874 --with-hesiod support Hesiod to get the POP server host
875 --without-sound don't compile with sound support
876 --with-x-toolkit=KIT use an X toolkit
877 (KIT = yes/lucid/athena/motif/gtk/no)
878 --with-xpm use -lXpm for displaying XPM images
879 --with-jpeg use -ljpeg for displaying JPEG images
880 --with-tiff use -ltiff for displaying TIFF images
881 --with-gif use -lungif for displaying GIF images
882 --with-png use -lpng for displaying PNG images
883 --with-gtk use GTK (same as --with-x-toolkit=gtk)
884 --with-pkg-config-prog Path to pkg-config to use for finding GTK
885 --without-toolkit-scroll-bars
886 don't use Motif or Xaw3d scroll bars
887 --without-xim don't use X11 XIM
888 --without-carbon don't use Carbon GUI on Mac OS X
889 --with-x use the X Window System
891 Some influential environment variables:
892 CC C compiler command
893 CFLAGS C compiler flags
894 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
895 nonstandard directory <lib dir>
896 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
897 headers in a nonstandard directory <include dir>
898 CPP C preprocessor
900 Use these variables to override the choices made by `configure' or to help
901 it to find libraries and programs with nonstandard names/locations.
903 _ACEOF
906 if test "$ac_init_help" = "recursive"; then
907 # If there are subdirs, report their specific --help.
908 ac_popdir=`pwd`
909 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
910 test -d $ac_dir || continue
911 ac_builddir=.
913 if test "$ac_dir" != .; then
914 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
915 # A "../" for each directory in $ac_dir_suffix.
916 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
917 else
918 ac_dir_suffix= ac_top_builddir=
921 case $srcdir in
922 .) # No --srcdir option. We are building in place.
923 ac_srcdir=.
924 if test -z "$ac_top_builddir"; then
925 ac_top_srcdir=.
926 else
927 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
928 fi ;;
929 [\\/]* | ?:[\\/]* ) # Absolute path.
930 ac_srcdir=$srcdir$ac_dir_suffix;
931 ac_top_srcdir=$srcdir ;;
932 *) # Relative path.
933 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
934 ac_top_srcdir=$ac_top_builddir$srcdir ;;
935 esac
937 # Do not use `cd foo && pwd` to compute absolute paths, because
938 # the directories may not exist.
939 case `pwd` in
940 .) ac_abs_builddir="$ac_dir";;
942 case "$ac_dir" in
943 .) ac_abs_builddir=`pwd`;;
944 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
945 *) ac_abs_builddir=`pwd`/"$ac_dir";;
946 esac;;
947 esac
948 case $ac_abs_builddir in
949 .) ac_abs_top_builddir=${ac_top_builddir}.;;
951 case ${ac_top_builddir}. in
952 .) ac_abs_top_builddir=$ac_abs_builddir;;
953 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
954 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
955 esac;;
956 esac
957 case $ac_abs_builddir in
958 .) ac_abs_srcdir=$ac_srcdir;;
960 case $ac_srcdir in
961 .) ac_abs_srcdir=$ac_abs_builddir;;
962 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
963 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
964 esac;;
965 esac
966 case $ac_abs_builddir in
967 .) ac_abs_top_srcdir=$ac_top_srcdir;;
969 case $ac_top_srcdir in
970 .) ac_abs_top_srcdir=$ac_abs_builddir;;
971 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
972 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
973 esac;;
974 esac
976 cd $ac_dir
977 # Check for guested configure; otherwise get Cygnus style configure.
978 if test -f $ac_srcdir/configure.gnu; then
979 echo
980 $SHELL $ac_srcdir/configure.gnu --help=recursive
981 elif test -f $ac_srcdir/configure; then
982 echo
983 $SHELL $ac_srcdir/configure --help=recursive
984 elif test -f $ac_srcdir/configure.ac ||
985 test -f $ac_srcdir/configure.in; then
986 echo
987 $ac_configure --help
988 else
989 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
991 cd "$ac_popdir"
992 done
995 test -n "$ac_init_help" && exit 0
996 if $ac_init_version; then
997 cat <<\_ACEOF
999 Copyright (C) 2003 Free Software Foundation, Inc.
1000 This configure script is free software; the Free Software Foundation
1001 gives unlimited permission to copy, distribute and modify it.
1002 _ACEOF
1003 exit 0
1005 exec 5>config.log
1006 cat >&5 <<_ACEOF
1007 This file contains any messages produced by compilers while
1008 running configure, to aid debugging if configure makes a mistake.
1010 It was created by $as_me, which was
1011 generated by GNU Autoconf 2.59. Invocation command line was
1013 $ $0 $@
1015 _ACEOF
1017 cat <<_ASUNAME
1018 ## --------- ##
1019 ## Platform. ##
1020 ## --------- ##
1022 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1023 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1024 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1025 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1026 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1028 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1029 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1031 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1032 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1033 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1034 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1035 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1036 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1037 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1039 _ASUNAME
1041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1042 for as_dir in $PATH
1044 IFS=$as_save_IFS
1045 test -z "$as_dir" && as_dir=.
1046 echo "PATH: $as_dir"
1047 done
1049 } >&5
1051 cat >&5 <<_ACEOF
1054 ## ----------- ##
1055 ## Core tests. ##
1056 ## ----------- ##
1058 _ACEOF
1061 # Keep a trace of the command line.
1062 # Strip out --no-create and --no-recursion so they do not pile up.
1063 # Strip out --silent because we don't want to record it for future runs.
1064 # Also quote any args containing shell meta-characters.
1065 # Make two passes to allow for proper duplicate-argument suppression.
1066 ac_configure_args=
1067 ac_configure_args0=
1068 ac_configure_args1=
1069 ac_sep=
1070 ac_must_keep_next=false
1071 for ac_pass in 1 2
1073 for ac_arg
1075 case $ac_arg in
1076 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1077 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1078 | -silent | --silent | --silen | --sile | --sil)
1079 continue ;;
1080 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1081 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1082 esac
1083 case $ac_pass in
1084 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1086 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1087 if test $ac_must_keep_next = true; then
1088 ac_must_keep_next=false # Got value, back to normal.
1089 else
1090 case $ac_arg in
1091 *=* | --config-cache | -C | -disable-* | --disable-* \
1092 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1093 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1094 | -with-* | --with-* | -without-* | --without-* | --x)
1095 case "$ac_configure_args0 " in
1096 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1097 esac
1099 -* ) ac_must_keep_next=true ;;
1100 esac
1102 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1103 # Get rid of the leading space.
1104 ac_sep=" "
1106 esac
1107 done
1108 done
1109 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1110 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1112 # When interrupted or exit'd, cleanup temporary files, and complete
1113 # config.log. We remove comments because anyway the quotes in there
1114 # would cause problems or look ugly.
1115 # WARNING: Be sure not to use single quotes in there, as some shells,
1116 # such as our DU 5.0 friend, will then `close' the trap.
1117 trap 'exit_status=$?
1118 # Save into config.log some information that might help in debugging.
1120 echo
1122 cat <<\_ASBOX
1123 ## ---------------- ##
1124 ## Cache variables. ##
1125 ## ---------------- ##
1126 _ASBOX
1127 echo
1128 # The following way of writing the cache mishandles newlines in values,
1130 (set) 2>&1 |
1131 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1132 *ac_space=\ *)
1133 sed -n \
1134 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1135 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1138 sed -n \
1139 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1141 esac;
1143 echo
1145 cat <<\_ASBOX
1146 ## ----------------- ##
1147 ## Output variables. ##
1148 ## ----------------- ##
1149 _ASBOX
1150 echo
1151 for ac_var in $ac_subst_vars
1153 eval ac_val=$`echo $ac_var`
1154 echo "$ac_var='"'"'$ac_val'"'"'"
1155 done | sort
1156 echo
1158 if test -n "$ac_subst_files"; then
1159 cat <<\_ASBOX
1160 ## ------------- ##
1161 ## Output files. ##
1162 ## ------------- ##
1163 _ASBOX
1164 echo
1165 for ac_var in $ac_subst_files
1167 eval ac_val=$`echo $ac_var`
1168 echo "$ac_var='"'"'$ac_val'"'"'"
1169 done | sort
1170 echo
1173 if test -s confdefs.h; then
1174 cat <<\_ASBOX
1175 ## ----------- ##
1176 ## confdefs.h. ##
1177 ## ----------- ##
1178 _ASBOX
1179 echo
1180 sed "/^$/d" confdefs.h | sort
1181 echo
1183 test "$ac_signal" != 0 &&
1184 echo "$as_me: caught signal $ac_signal"
1185 echo "$as_me: exit $exit_status"
1186 } >&5
1187 rm -f core *.core &&
1188 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1189 exit $exit_status
1191 for ac_signal in 1 2 13 15; do
1192 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1193 done
1194 ac_signal=0
1196 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1197 rm -rf conftest* confdefs.h
1198 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1199 echo >confdefs.h
1201 # Predefined preprocessor variables.
1203 cat >>confdefs.h <<_ACEOF
1204 #define PACKAGE_NAME "$PACKAGE_NAME"
1205 _ACEOF
1208 cat >>confdefs.h <<_ACEOF
1209 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1210 _ACEOF
1213 cat >>confdefs.h <<_ACEOF
1214 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1215 _ACEOF
1218 cat >>confdefs.h <<_ACEOF
1219 #define PACKAGE_STRING "$PACKAGE_STRING"
1220 _ACEOF
1223 cat >>confdefs.h <<_ACEOF
1224 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1225 _ACEOF
1228 # Let the site file select an alternate cache file if it wants to.
1229 # Prefer explicitly selected file to automatically selected ones.
1230 if test -z "$CONFIG_SITE"; then
1231 if test "x$prefix" != xNONE; then
1232 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1233 else
1234 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1237 for ac_site_file in $CONFIG_SITE; do
1238 if test -r "$ac_site_file"; then
1239 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1240 echo "$as_me: loading site script $ac_site_file" >&6;}
1241 sed 's/^/| /' "$ac_site_file" >&5
1242 . "$ac_site_file"
1244 done
1246 if test -r "$cache_file"; then
1247 # Some versions of bash will fail to source /dev/null (special
1248 # files actually), so we avoid doing that.
1249 if test -f "$cache_file"; then
1250 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1251 echo "$as_me: loading cache $cache_file" >&6;}
1252 case $cache_file in
1253 [\\/]* | ?:[\\/]* ) . $cache_file;;
1254 *) . ./$cache_file;;
1255 esac
1257 else
1258 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1259 echo "$as_me: creating cache $cache_file" >&6;}
1260 >$cache_file
1263 # Check that the precious variables saved in the cache have kept the same
1264 # value.
1265 ac_cache_corrupted=false
1266 for ac_var in `(set) 2>&1 |
1267 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1268 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1269 eval ac_new_set=\$ac_env_${ac_var}_set
1270 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1271 eval ac_new_val="\$ac_env_${ac_var}_value"
1272 case $ac_old_set,$ac_new_set in
1273 set,)
1274 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1275 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1276 ac_cache_corrupted=: ;;
1277 ,set)
1278 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1279 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1280 ac_cache_corrupted=: ;;
1281 ,);;
1283 if test "x$ac_old_val" != "x$ac_new_val"; then
1284 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1285 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1286 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1287 echo "$as_me: former value: $ac_old_val" >&2;}
1288 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1289 echo "$as_me: current value: $ac_new_val" >&2;}
1290 ac_cache_corrupted=:
1291 fi;;
1292 esac
1293 # Pass precious variables to config.status.
1294 if test "$ac_new_set" = set; then
1295 case $ac_new_val in
1296 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1297 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1298 *) ac_arg=$ac_var=$ac_new_val ;;
1299 esac
1300 case " $ac_configure_args " in
1301 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1302 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1303 esac
1305 done
1306 if $ac_cache_corrupted; then
1307 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1308 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1309 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1310 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1311 { (exit 1); exit 1; }; }
1314 ac_ext=c
1315 ac_cpp='$CPP $CPPFLAGS'
1316 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1317 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1318 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1338 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
1341 test "$program_prefix" != NONE &&
1342 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1343 # Use a double $ so make ignores it.
1344 test "$program_suffix" != NONE &&
1345 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1346 # Double any \ or $. echo might interpret backslashes.
1347 # By default was `s,x,x', remove it if useless.
1348 cat <<\_ACEOF >conftest.sed
1349 s/[\\$]/&&/g;s/;s,x,x,$//
1350 _ACEOF
1351 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1352 rm conftest.sed
1355 lispdir='${datadir}/emacs/${version}/lisp'
1356 locallisppath='${datadir}/emacs/${version}/site-lisp:'\
1357 '${datadir}/emacs/site-lisp:${datadir}/emacs/${version}/leim'
1358 lisppath='${locallisppath}:${lispdir}'
1359 etcdir='${datadir}/emacs/${version}/etc'
1360 archlibdir='${libexecdir}/emacs/${version}/${configuration}'
1361 docdir='${datadir}/emacs/${version}/etc'
1362 gamedir='${localstatedir}/games/emacs'
1364 gameuser=games
1367 # Check whether --with-gcc or --without-gcc was given.
1368 if test "${with_gcc+set}" = set; then
1369 withval="$with_gcc"
1373 # Check whether --with-pop or --without-pop was given.
1374 if test "${with_pop+set}" = set; then
1375 withval="$with_pop"
1376 if test "$withval" = yes; then
1377 cat >>confdefs.h <<\_ACEOF
1378 #define MAIL_USE_POP 1
1379 _ACEOF
1381 else :
1383 else
1384 cat >>confdefs.h <<\_ACEOF
1385 #define MAIL_USE_POP 1
1386 _ACEOF
1391 # Check whether --with-kerberos or --without-kerberos was given.
1392 if test "${with_kerberos+set}" = set; then
1393 withval="$with_kerberos"
1394 cat >>confdefs.h <<\_ACEOF
1395 #define KERBEROS 1
1396 _ACEOF
1401 # Check whether --with-kerberos5 or --without-kerberos5 was given.
1402 if test "${with_kerberos5+set}" = set; then
1403 withval="$with_kerberos5"
1404 if test "${with_kerberos5+set}" = set; then
1405 if test "${with_kerberos+set}" != set; then
1406 with_kerberos=yes
1407 cat >>confdefs.h <<\_ACEOF
1408 #define KERBEROS 1
1409 _ACEOF
1414 cat >>confdefs.h <<\_ACEOF
1415 #define KERBEROS5 1
1416 _ACEOF
1420 # Check whether --with-hesiod or --without-hesiod was given.
1421 if test "${with_hesiod+set}" = set; then
1422 withval="$with_hesiod"
1424 cat >>confdefs.h <<\_ACEOF
1425 #define HESIOD 1
1426 _ACEOF
1431 # Check whether --with-sound or --without-sound was given.
1432 if test "${with_sound+set}" = set; then
1433 withval="$with_sound"
1438 # Check whether --with-x-toolkit or --without-x-toolkit was given.
1439 if test "${with_x_toolkit+set}" = set; then
1440 withval="$with_x_toolkit"
1441 case "${withval}" in
1442 y | ye | yes ) val=athena ;;
1443 n | no ) val=no ;;
1444 l | lu | luc | luci | lucid ) val=lucid ;;
1445 a | at | ath | athe | athen | athena ) val=athena ;;
1446 m | mo | mot | moti | motif ) val=motif ;;
1447 g | gt | gtk ) val=gtk ;;
1449 { { echo "$as_me:$LINENO: error: \`--with-x-toolkit=$withval' is invalid\;
1450 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
1451 Currently, \`yes', \`athena' and \`lucid' are synonyms." >&5
1452 echo "$as_me: error: \`--with-x-toolkit=$withval' is invalid\;
1453 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
1454 Currently, \`yes', \`athena' and \`lucid' are synonyms." >&2;}
1455 { (exit 1); exit 1; }; }
1457 esac
1458 with_x_toolkit=$val
1462 # Check whether --with-xpm or --without-xpm was given.
1463 if test "${with_xpm+set}" = set; then
1464 withval="$with_xpm"
1468 # Check whether --with-jpeg or --without-jpeg was given.
1469 if test "${with_jpeg+set}" = set; then
1470 withval="$with_jpeg"
1474 # Check whether --with-tiff or --without-tiff was given.
1475 if test "${with_tiff+set}" = set; then
1476 withval="$with_tiff"
1480 # Check whether --with-gif or --without-gif was given.
1481 if test "${with_gif+set}" = set; then
1482 withval="$with_gif"
1486 # Check whether --with-png or --without-png was given.
1487 if test "${with_png+set}" = set; then
1488 withval="$with_png"
1492 # Check whether --with-gtk or --without-gtk was given.
1493 if test "${with_gtk+set}" = set; then
1494 withval="$with_gtk"
1498 # Check whether --with-pkg-config-prog or --without-pkg-config-prog was given.
1499 if test "${with_pkg_config_prog+set}" = set; then
1500 withval="$with_pkg_config_prog"
1504 # Check whether --with-toolkit-scroll-bars or --without-toolkit-scroll-bars was given.
1505 if test "${with_toolkit_scroll_bars+set}" = set; then
1506 withval="$with_toolkit_scroll_bars"
1510 # Check whether --with-xim or --without-xim was given.
1511 if test "${with_xim+set}" = set; then
1512 withval="$with_xim"
1516 # Check whether --with-carbon or --without-carbon was given.
1517 if test "${with_carbon+set}" = set; then
1518 withval="$with_carbon"
1521 # Check whether --enable-carbon-app or --disable-carbon-app was given.
1522 if test "${enable_carbon_app+set}" = set; then
1523 enableval="$enable_carbon_app"
1524 carbon_appdir_x=${enableval}
1527 # Check whether --enable-asserts or --disable-asserts was given.
1528 if test "${enable_asserts+set}" = set; then
1529 enableval="$enable_asserts"
1530 USE_XASSERTS=$enableval
1531 else
1532 USE_XASSERTS=no
1535 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1536 if test "${enable_maintainer_mode+set}" = set; then
1537 enableval="$enable_maintainer_mode"
1538 USE_MAINTAINER_MODE=$enableval
1539 else
1540 USE_MAINTAINER_MODE=no
1542 if test $USE_MAINTAINER_MODE = yes; then
1543 MAINT=
1544 else
1545 MAINT=#
1549 # Check whether --enable-locallisppath or --disable-locallisppath was given.
1550 if test "${enable_locallisppath+set}" = set; then
1551 enableval="$enable_locallisppath"
1552 if test "${enableval}" = "no"; then
1553 locallisppath=
1554 elif test "${enableval}" != "yes"; then
1555 locallisppath=${enableval}
1559 #### Make srcdir absolute, if it isn't already. It's important to
1560 #### avoid running the path through pwd unnecessarily, since pwd can
1561 #### give you automounter prefixes, which can go away. We do all this
1562 #### so Emacs can find its files when run uninstalled.
1563 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
1564 unset CDPATH
1565 case "${srcdir}" in
1566 /* ) ;;
1568 ## We may be able to use the $PWD environment variable to make this
1569 ## absolute. But sometimes PWD is inaccurate.
1570 ## Note: we used to use ${PWD} at the end instead of `pwd`,
1571 ## but that tested only for a well-formed and valid PWD,
1572 ## it did not object when PWD was well-formed and valid but just wrong.
1573 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
1574 then
1575 srcdir="$PWD"
1576 else
1577 srcdir="`(cd ${srcdir}; pwd)`"
1580 * ) srcdir="`(cd ${srcdir}; pwd)`" ;;
1581 esac
1583 #### Check if the source directory already has a configured system in it.
1584 if test `pwd` != `(cd ${srcdir} && pwd)` \
1585 && test -f "${srcdir}/src/config.h" ; then
1586 { echo "$as_me:$LINENO: WARNING: The directory tree \`${srcdir}' is being used
1587 as a build directory right now; it has been configured in its own
1588 right. To configure in another directory as well, you MUST
1589 use GNU make. If you do not have GNU make, then you must
1590 now do \`make distclean' in ${srcdir},
1591 and then run $0 again." >&5
1592 echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
1593 as a build directory right now; it has been configured in its own
1594 right. To configure in another directory as well, you MUST
1595 use GNU make. If you do not have GNU make, then you must
1596 now do \`make distclean' in ${srcdir},
1597 and then run $0 again." >&2;}
1600 #### Given the configuration name, set machfile and opsysfile to the
1601 #### names of the m/*.h and s/*.h files we should use.
1603 ### Canonicalize the configuration name.
1605 ac_aux_dir=
1606 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1607 if test -f $ac_dir/install-sh; then
1608 ac_aux_dir=$ac_dir
1609 ac_install_sh="$ac_aux_dir/install-sh -c"
1610 break
1611 elif test -f $ac_dir/install.sh; then
1612 ac_aux_dir=$ac_dir
1613 ac_install_sh="$ac_aux_dir/install.sh -c"
1614 break
1615 elif test -f $ac_dir/shtool; then
1616 ac_aux_dir=$ac_dir
1617 ac_install_sh="$ac_aux_dir/shtool install -c"
1618 break
1620 done
1621 if test -z "$ac_aux_dir"; then
1622 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1623 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1624 { (exit 1); exit 1; }; }
1626 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1627 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1628 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1630 # Make sure we can run config.sub.
1631 $ac_config_sub sun4 >/dev/null 2>&1 ||
1632 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1633 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1634 { (exit 1); exit 1; }; }
1636 echo "$as_me:$LINENO: checking build system type" >&5
1637 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1638 if test "${ac_cv_build+set}" = set; then
1639 echo $ECHO_N "(cached) $ECHO_C" >&6
1640 else
1641 ac_cv_build_alias=$build_alias
1642 test -z "$ac_cv_build_alias" &&
1643 ac_cv_build_alias=`$ac_config_guess`
1644 test -z "$ac_cv_build_alias" &&
1645 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1646 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1647 { (exit 1); exit 1; }; }
1648 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1649 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1650 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1651 { (exit 1); exit 1; }; }
1654 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1655 echo "${ECHO_T}$ac_cv_build" >&6
1656 build=$ac_cv_build
1657 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1658 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1659 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1662 echo "$as_me:$LINENO: checking host system type" >&5
1663 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1664 if test "${ac_cv_host+set}" = set; then
1665 echo $ECHO_N "(cached) $ECHO_C" >&6
1666 else
1667 ac_cv_host_alias=$host_alias
1668 test -z "$ac_cv_host_alias" &&
1669 ac_cv_host_alias=$ac_cv_build_alias
1670 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1671 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1672 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1673 { (exit 1); exit 1; }; }
1676 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1677 echo "${ECHO_T}$ac_cv_host" >&6
1678 host=$ac_cv_host
1679 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1680 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1681 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1684 canonical=$host
1685 configuration=${host_alias-$host}
1689 ### If you add support for a new configuration, add code to this
1690 ### switch statement to recognize your configuration name and select
1691 ### the appropriate operating system and machine description files.
1693 ### You would hope that you could choose an m/*.h file pretty much
1694 ### based on the machine portion of the configuration name, and an s-
1695 ### file based on the operating system portion. However, it turns out
1696 ### that each m/*.h file is pretty manufacturer-specific - for
1697 ### example, apollo.h, hp9000s300.h, mega68k, news.h, and tad68k are
1698 ### all 68000 machines; mips.h, pmax.h, and news-risc are all MIPS
1699 ### machines. So we basically have to have a special case for each
1700 ### configuration name.
1702 ### As far as handling version numbers on operating systems is
1703 ### concerned, make sure things will fail in a fixable way. If
1704 ### /etc/MACHINES doesn't say anything about version numbers, be
1705 ### prepared to handle anything reasonably. If version numbers
1706 ### matter, be sure /etc/MACHINES says something about it.
1708 ### Eric Raymond says we should accept strings like "sysvr4" to mean
1709 ### "System V Release 4"; he writes, "The old convention encouraged
1710 ### confusion between `system' and `release' levels'."
1712 machine='' opsys='' unported=no
1713 case "${canonical}" in
1715 ## FreeBSD ports
1716 *-*-freebsd* )
1717 opsys=freebsd
1718 case "${canonical}" in
1719 alpha*-*-freebsd*) machine=alpha ;;
1720 i[3456]86-*-freebsd*) machine=intel386 ;;
1721 esac
1724 ## NetBSD ports
1725 *-*-netbsd* )
1726 opsys=netbsd
1727 if test -f /usr/lib/crti.o; then
1729 cat >>confdefs.h <<\_ACEOF
1730 #define HAVE_CRTIN
1731 _ACEOF
1735 case "${canonical}" in
1736 alpha*-*-netbsd*) machine=alpha ;;
1737 i[3456]86-*-netbsd*) machine=intel386 ;;
1738 m68k-*-netbsd*)
1739 # This is somewhat bogus.
1740 machine=hp9000s300 ;;
1741 powerpc-apple-netbsd*) machine=macppc ;;
1742 mips-*-netbsd*) machine=pmax ;;
1743 mipsel-*-netbsd*) machine=pmax ;;
1744 mipseb-*-netbsd*) machine=pmax ;;
1745 ns32k-*-netbsd*) machine=ns32000 ;;
1746 powerpc-*-netbsd*) machine=macppc ;;
1747 sparc*-*-netbsd*) machine=sparc ;;
1748 vax-*-netbsd*) machine=vax ;;
1749 arm-*-netbsd*) machine=arm ;;
1750 esac
1753 ## OpenBSD ports
1754 *-*-openbsd* )
1755 opsys=openbsd
1756 case "${canonical}" in
1757 alpha*-*-openbsd*) machine=alpha ;;
1758 i386-*-openbsd*) machine=intel386 ;;
1759 m68k-*-openbsd*) machine=hp9000s300 ;;
1760 mipsel-*-openbsd*) machine=pmax ;;
1761 ns32k-*-openbsd*) machine=ns32000 ;;
1762 sparc-*-openbsd*) machine=sparc ;;
1763 vax-*-openbsd*) machine=vax ;;
1764 esac
1767 ## Acorn RISCiX:
1768 arm-acorn-riscix1.1* )
1769 machine=acorn opsys=riscix1-1
1771 arm-acorn-riscix1.2* | arm-acorn-riscix )
1772 ## This name is riscix12 instead of riscix1.2
1773 ## to avoid a file name conflict on MSDOS.
1774 machine=acorn opsys=riscix12
1777 ## BSDI ports
1778 *-*-bsdi* )
1779 opsys=bsdi
1780 case "${canonical}" in
1781 i[345]86-*-bsdi*) machine=intel386 ;;
1782 sparc-*-bsdi*) machine=sparc ;;
1783 powerpc-*-bsdi*) machine=macppc ;;
1784 esac
1785 case "${canonical}" in
1786 *-*-bsd386* | *-*-bsdi1* ) opsys=bsd386 ;;
1787 *-*-bsdi2.0* ) opsys=bsdos2 ;;
1788 *-*-bsdi2* ) opsys=bsdos2-1 ;;
1789 *-*-bsdi3* ) opsys=bsdos3 ;;
1790 *-*-bsdi[45]* ) opsys=bsdos4 ;;
1791 esac
1794 ## Alliant machines
1795 ## Strictly speaking, we need the version of the alliant operating
1796 ## system to choose the right machine file, but currently the
1797 ## configuration name doesn't tell us enough to choose the right
1798 ## one; we need to give alliants their own operating system name to
1799 ## do this right. When someone cares, they can help us.
1800 fx80-alliant-* )
1801 machine=alliant4 opsys=bsd4-2
1803 i860-alliant-* )
1804 machine=alliant-2800 opsys=bsd4-3
1807 ## Alpha (DEC) machines.
1808 alpha*-dec-osf* )
1809 machine=alpha opsys=osf1
1810 # This is needed to find X11R6.1 libraries for certain tests.
1811 NON_GCC_LINK_TEST_OPTIONS=-Wl,-rpath,/usr/X11R6/lib
1812 GCC_LINK_TEST_OPTIONS=-Wl,-rpath,/usr/X11R6/lib
1813 # NON_GNU_CPP is necessary on 5.0 to avoid mangling src/Makefile
1814 # due to non-traditional preprocessing with the current compiler
1815 # defaults. OSF 4 can also have that compiler version, and there
1816 # seems always to have been a usable /usr/bin/cpp.
1817 NON_GNU_CPP=/usr/bin/cpp
1818 case "${canonical}" in
1819 alpha*-dec-osf[5-9]*)
1820 opsys=osf5-0 ;;
1821 esac
1824 alpha*-*-linux-gnu* )
1825 machine=alpha opsys=gnu-linux
1828 arm*-*-linux-gnu* )
1829 machine=arm opsys=gnu-linux
1832 ## Altos 3068
1833 m68*-altos-sysv* )
1834 machine=altos opsys=usg5-2
1837 ## Amdahl UTS
1838 580-amdahl-sysv* )
1839 machine=amdahl opsys=usg5-2-2
1842 ## Apollo, Domain/OS
1843 m68*-apollo-* )
1844 machine=apollo opsys=bsd4-3
1847 ## AT&T 3b2, 3b5, 3b15, 3b20
1848 we32k-att-sysv* )
1849 machine=att3b opsys=usg5-2-2
1852 ## AT&T 3b1 - The Mighty Unix PC!
1853 m68*-att-sysv* )
1854 machine=7300 opsys=usg5-2-2
1857 ## Bull dpx20
1858 rs6000-bull-bosx* )
1859 machine=ibmrs6000 opsys=aix3-2
1862 ## Bull dpx2
1863 m68*-bull-sysv3* )
1864 machine=dpx2 opsys=usg5-3
1867 ## Bull sps7
1868 m68*-bull-sysv2* )
1869 machine=sps7 opsys=usg5-2
1872 ## CCI 5/32, 6/32 -- see "Tahoe".
1874 ## Celerity
1875 ## I don't know what configuration name to use for this; config.sub
1876 ## doesn't seem to know anything about it. Hey, Celerity users, get
1877 ## in touch with us!
1878 celerity-celerity-bsd* )
1879 machine=celerity opsys=bsd4-2
1882 ## Clipper
1883 ## What operating systems does this chip run that Emacs has been
1884 ## tested on?
1885 clipper-* )
1886 machine=clipper
1887 ## We'll use the catch-all code at the bottom to guess the
1888 ## operating system.
1891 ## Compaq Nonstop
1892 mips-compaq-nonstopux* )
1893 machine=nonstopux opsys=nonstopux
1896 ## Convex
1897 *-convex-bsd* | *-convex-convexos* )
1898 machine=convex opsys=bsd4-3
1899 ## Prevents spurious white space in makefiles - d.m.cooke@larc.nasa.gov
1900 NON_GNU_CPP="cc -E -P"
1903 ## Cubix QBx/386
1904 i[3456]86-cubix-sysv* )
1905 machine=intel386 opsys=usg5-3
1908 ## Cydra 5
1909 cydra*-cydrome-sysv* )
1910 machine=cydra5 opsys=usg5-3
1913 ## Data General AViiON Machines
1914 ## DG changed naming conventions with the release of 5.4.4.10, they
1915 ## dropped the initial 5.4 but left the intervening R. Because of the
1916 ## R this shouldn't conflict with older versions of the OS (which I
1917 ## think were named like dgux4.*). In addition, DG new AViiONs series
1918 ## uses either Motorola M88k or Intel Pentium CPUs.
1919 m88k-dg-dguxR4.* | m88k-dg-dgux4* )
1920 machine=aviion opsys=dgux4
1922 m88k-dg-dgux5.4R3* | m88k-dg-dgux5.4.3* )
1923 ## This name is dgux5-4-3 instead of dgux5-4r3
1924 ## to avoid a file name conflict on MSDOS.
1925 machine=aviion opsys=dgux5-4-3
1927 m88k-dg-dgux5.4R2* | m88k-dg-dgux5.4.2* )
1928 machine=aviion opsys=dgux5-4r2
1930 m88k-dg-dgux* )
1931 machine=aviion opsys=dgux
1934 ## Data General AViiON Intel (x86) Machines
1935 ## Exists from 5.4.3 (current i586-dg-dguxR4.11)
1936 ## Ehud Karni, 1998-may-30, ehud@unix.simonwiesel.co.il
1937 i[345]86-dg-dguxR4* )
1938 machine=aviion-intel opsys=dgux4
1941 ## DECstations
1942 mips-dec-ultrix[0-3].* | mips-dec-ultrix4.0* | mips-dec-bsd4.2* )
1943 machine=pmax opsys=bsd4-2
1945 mips-dec-ultrix4.[12]* | mips-dec-bsd* )
1946 machine=pmax opsys=bsd4-3
1948 mips-dec-ultrix* )
1949 machine=pmax opsys=ultrix4-3
1951 mips-dec-osf* )
1952 machine=pmax opsys=osf1
1954 mips-dec-mach_bsd4.3* )
1955 machine=pmax opsys=mach-bsd4-3
1958 ## Motorola Delta machines
1959 m68k-motorola-sysv* | m68000-motorola-sysv* )
1960 machine=delta opsys=usg5-3
1961 if test -z "`type gnucc | grep 'not found'`"
1962 then
1963 if test -s /etc/167config
1964 then CC="gnucc -m68040"
1965 else CC="gnucc -m68881"
1967 else
1968 if test -z "`type gcc | grep 'not found'`"
1969 then CC=gcc
1970 else CC=cc
1974 m88k-motorola-sysv4* )
1975 # jbotte@bnr.ca says that UNIX_System_V <hostName> 4.0 R40V4.3 m88k mc88110
1976 # needs POSIX_SIGNALS and therefore needs usg5-4-2.
1977 # I hope there are not other 4.0 versions for this machine
1978 # which really need usg5-4 instead.
1979 machine=delta88k opsys=usg5-4-2
1981 m88k-motorola-sysv* | m88k-motorola-m88kbcs* )
1982 machine=delta88k opsys=usg5-3
1985 ## Dual machines
1986 m68*-dual-sysv* )
1987 machine=dual opsys=usg5-2
1989 m68*-dual-uniplus* )
1990 machine=dual opsys=unipl5-2
1993 ## Elxsi 6400
1994 elxsi-elxsi-sysv* )
1995 machine=elxsi opsys=usg5-2
1998 ## Encore machines
1999 ns16k-encore-bsd* )
2000 machine=ns16000 opsys=umax
2003 ## The GEC 63 - apparently, this port isn't really finished yet.
2004 # I'm sure we finished off the last of the machines, though. -- fx
2006 ## Gould Power Node and NP1
2007 pn-gould-bsd4.2* )
2008 machine=gould opsys=bsd4-2
2010 pn-gould-bsd4.3* )
2011 machine=gould opsys=bsd4-3
2013 np1-gould-bsd* )
2014 machine=gould-np1 opsys=bsd4-3
2017 ## Harris Night Hawk machines running CX/UX (a 5000 looks just like a 4000
2018 ## as far as Emacs is concerned).
2019 m88k-harris-cxux* )
2020 # Build needs to be different on 7.0 and later releases
2021 case "`uname -r`" in
2022 [56].[0-9] ) machine=nh4000 opsys=cxux ;;
2023 [7].[0-9] ) machine=nh4000 opsys=cxux7 ;;
2024 esac
2025 NON_GNU_CPP="/lib/cpp"
2027 ## Harris ecx or gcx running CX/UX (Series 1200, Series 3000)
2028 m68k-harris-cxux* )
2029 machine=nh3000 opsys=cxux
2031 ## Harris power pc NightHawk running Power UNIX (Series 6000)
2032 powerpc-harris-powerunix )
2033 machine=nh6000 opsys=powerunix
2034 NON_GNU_CPP="cc -Xo -E -P"
2036 ## SR2001/SR2201 running HI-UX/MPP
2037 hppa1.1-hitachi-hiuxmpp* )
2038 machine=sr2k opsys=hiuxmpp
2040 hppa1.1-hitachi-hiuxwe2* )
2041 machine=sr2k opsys=hiuxwe2
2043 ## Honeywell XPS100
2044 xps*-honeywell-sysv* )
2045 machine=xps100 opsys=usg5-2
2048 ## HP 9000 series 200 or 300
2049 m68*-hp-bsd* )
2050 machine=hp9000s300 opsys=bsd4-3
2052 ## HP/UX 7, 8, 9, and 10 are supported on these machines.
2053 m68*-hp-hpux* )
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=hp9000s300 opsys=hpux8 ;;
2058 *.08.* ) machine=hp9000s300 opsys=hpux8 ;;
2059 *.09.* ) machine=hp9000s300 opsys=hpux9 ;;
2060 *.1[0-9].* ) machine=hp9000s300 opsys=hpux9shr ;;
2061 *) machine=hp9000s300 opsys=hpux ;;
2062 esac
2065 ## HP 9000 series 700 and 800, running HP/UX
2066 hppa*-hp-hpux7* )
2067 machine=hp800 opsys=hpux
2069 hppa*-hp-hpux8* )
2070 machine=hp800 opsys=hpux8
2072 hppa*-hp-hpux9shr* )
2073 machine=hp800 opsys=hpux9shr
2075 hppa*-hp-hpux9* )
2076 machine=hp800 opsys=hpux9
2078 hppa*-hp-hpux10.2* )
2079 machine=hp800 opsys=hpux10-20
2081 hppa*-hp-hpux10* )
2082 machine=hp800 opsys=hpux10
2084 hppa*-hp-hpux1[1-9]* )
2085 machine=hp800 opsys=hpux11
2088 hppa*-*-linux-gnu* )
2089 machine=hp800 opsys=gnu-linux
2092 ## HP 9000 series 700 and 800, running HP/UX
2093 hppa*-hp-hpux* )
2094 ## Cross-compilation? Nah!
2095 case "`uname -r`" in
2096 ## Someone's system reports A.B8.05 for this.
2097 ## I wonder what other possibilities there are.
2098 *.B8.* ) machine=hp800 opsys=hpux8 ;;
2099 *.08.* ) machine=hp800 opsys=hpux8 ;;
2100 *.09.* ) machine=hp800 opsys=hpux9 ;;
2101 *) machine=hp800 opsys=hpux10 ;;
2102 esac
2104 hppa*-*-nextstep* )
2105 machine=hp800 opsys=nextstep
2108 ## Orion machines
2109 orion-orion-bsd* )
2110 machine=orion opsys=bsd4-2
2112 clipper-orion-bsd* )
2113 machine=orion105 opsys=bsd4-2
2116 ## IBM machines
2117 i[3456]86-ibm-aix1.1* )
2118 machine=ibmps2-aix opsys=usg5-2-2
2120 i[3456]86-ibm-aix1.[23]* | i[3456]86-ibm-aix* )
2121 machine=ibmps2-aix opsys=usg5-3
2123 i370-ibm-aix*)
2124 machine=ibm370aix opsys=usg5-3
2126 s390-*-linux-gnu* )
2127 machine=ibms390 opsys=gnu-linux
2129 rs6000-ibm-aix3.1* | powerpc-ibm-aix3.1* )
2130 machine=ibmrs6000 opsys=aix3-1
2132 rs6000-ibm-aix3.2.5 | powerpc-ibm-aix3.2.5 )
2133 machine=ibmrs6000 opsys=aix3-2-5
2135 rs6000-ibm-aix4.1* | powerpc-ibm-aix4.1* )
2136 machine=ibmrs6000 opsys=aix4-1
2138 rs6000-ibm-aix4.2* | powerpc-ibm-aix4.2* )
2139 machine=ibmrs6000 opsys=aix4-2
2141 rs6000-ibm-aix5* | powerpc-ibm-aix5* )
2142 machine=ibmrs6000 opsys=aix4-2
2144 rs6000-ibm-aix4.0* | powerpc-ibm-aix4.0* )
2145 machine=ibmrs6000 opsys=aix4
2147 rs6000-ibm-aix4* | powerpc-ibm-aix4* )
2148 machine=ibmrs6000 opsys=aix4-1
2150 rs6000-ibm-aix* | powerpc-ibm-aix* )
2151 machine=ibmrs6000 opsys=aix3-2
2153 romp-ibm-bsd4.3* )
2154 machine=ibmrt opsys=bsd4-3
2156 romp-ibm-bsd4.2* )
2157 machine=ibmrt opsys=bsd4-2
2159 romp-ibm-aos4.3* )
2160 machine=ibmrt opsys=bsd4-3
2162 romp-ibm-aos4.2* )
2163 machine=ibmrt opsys=bsd4-2
2165 romp-ibm-aos* )
2166 machine=ibmrt opsys=bsd4-3
2168 romp-ibm-bsd* )
2169 machine=ibmrt opsys=bsd4-3
2171 romp-ibm-aix* )
2172 machine=ibmrt-aix opsys=usg5-2-2
2175 ## Integrated Solutions `Optimum V'
2176 m68*-isi-bsd4.2* )
2177 machine=isi-ov opsys=bsd4-2
2179 m68*-isi-bsd4.3* )
2180 machine=isi-ov opsys=bsd4-3
2183 ## Intel 386 machines where we do care about the manufacturer
2184 i[3456]86-intsys-sysv* )
2185 machine=is386 opsys=usg5-2-2
2188 ## Prime EXL
2189 i[3456]86-prime-sysv* )
2190 machine=i386 opsys=usg5-3
2193 ## Sequent Symmetry running Dynix
2194 i[3456]86-sequent-bsd* )
2195 machine=symmetry opsys=bsd4-3
2198 ## Sequent Symmetry running ptx 4, which is a modified SVR4.
2199 i[3456]86-sequent-ptx4* | i[3456]86-sequent-sysv4* )
2200 machine=sequent-ptx opsys=ptx4
2201 NON_GNU_CPP=/lib/cpp
2204 ## Sequent Symmetry running DYNIX/ptx
2205 ## Use the old cpp rather than the newer ANSI one.
2206 i[3456]86-sequent-ptx* )
2207 machine=sequent-ptx opsys=ptx
2208 NON_GNU_CPP="/lib/cpp"
2211 ## ncr machine running svr4.3.
2212 i[3456]86-ncr-sysv4.3 )
2213 machine=ncr386 opsys=usg5-4-3
2216 ## Unspecified sysv on an ncr machine defaults to svr4.2.
2217 ## (Plain usg5-4 doesn't turn on POSIX signals, which we need.)
2218 i[3456]86-ncr-sysv* )
2219 machine=ncr386 opsys=usg5-4-2
2222 ## Intel Paragon OSF/1
2223 i860-intel-osf1* )
2224 machine=paragon opsys=osf1 NON_GNU_CPP=/usr/mach/lib/cpp
2227 ## Intel 860
2228 i860-*-sysv4* )
2229 machine=i860 opsys=usg5-4
2230 NON_GNU_CC="/bin/cc" # Ie, not the one in /usr/ucb/cc.
2231 NON_GNU_CPP="/usr/ccs/lib/cpp" # cc -E tokenizes macro expansion.
2234 ## Macintosh PowerPC
2235 powerpc*-*-linux-gnu* )
2236 machine=macppc opsys=gnu-linux
2239 ## Masscomp machines
2240 m68*-masscomp-rtu* )
2241 machine=masscomp opsys=rtu
2244 ## Megatest machines
2245 m68*-megatest-bsd* )
2246 machine=mega68 opsys=bsd4-2
2249 ## Workstations sold by MIPS
2250 ## This is not necessarily all workstations using the MIPS processor -
2251 ## Irises are produced by SGI, and DECstations by DEC.
2253 ## etc/MACHINES lists mips.h and mips4.h as possible machine files,
2254 ## and usg5-2-2 and bsd4-3 as possible OS files. The only guidance
2255 ## it gives for choosing between the alternatives seems to be "Use
2256 ## -machine=mips4 for RISCOS version 4; use -opsystem=bsd4-3 with
2257 ## the BSD world." I'll assume that these are instructions for
2258 ## handling two odd situations, and that every other situation
2259 ## should use mips.h and usg5-2-2, they being listed first.
2260 mips-mips-usg* )
2261 machine=mips4
2262 ## Fall through to the general code at the bottom to decide on the OS.
2264 mips-mips-riscos4* )
2265 machine=mips4 opsys=bsd4-3
2266 NON_GNU_CC="cc -systype bsd43"
2267 NON_GNU_CPP="cc -systype bsd43 -E"
2269 mips-mips-riscos5* )
2270 machine=mips4 opsys=riscos5
2271 NON_GNU_CC="cc -systype bsd43"
2272 NON_GNU_CPP="cc -systype bsd43 -E"
2274 mips-mips-bsd* )
2275 machine=mips opsys=bsd4-3
2277 mips-mips-* )
2278 machine=mips opsys=usg5-2-2
2281 ## NeXT
2282 m68*-next-* | m68k-*-nextstep* )
2283 machine=m68k opsys=nextstep
2286 ## The complete machine from National Semiconductor
2287 ns32k-ns-genix* )
2288 machine=ns32000 opsys=usg5-2
2291 ## NCR machines
2292 m68*-ncr-sysv2* | m68*-ncr-sysvr2* )
2293 machine=tower32 opsys=usg5-2-2
2295 m68*-ncr-sysv3* | m68*-ncr-sysvr3* )
2296 machine=tower32v3 opsys=usg5-3
2299 ## NEC EWS4800
2300 mips-nec-sysv4*)
2301 machine=ews4800 opsys=ux4800
2304 ## Nixdorf Targon 31
2305 m68*-nixdorf-sysv* )
2306 machine=targon31 opsys=usg5-2-2
2309 ## Nu (TI or LMI)
2310 m68*-nu-sysv* )
2311 machine=nu opsys=usg5-2
2314 ## Plexus
2315 m68*-plexus-sysv* )
2316 machine=plexus opsys=usg5-2
2319 ## Pyramid machines
2320 ## I don't really have any idea what sort of processor the Pyramid has,
2321 ## so I'm assuming it is its own architecture.
2322 pyramid-pyramid-bsd* )
2323 machine=pyramid opsys=bsd4-2
2326 ## Sequent Balance
2327 ns32k-sequent-bsd4.2* )
2328 machine=sequent opsys=bsd4-2
2330 ns32k-sequent-bsd4.3* )
2331 machine=sequent opsys=bsd4-3
2334 ## Siemens Nixdorf
2335 mips-siemens-sysv* | mips-sni-sysv*)
2336 machine=mips-siemens opsys=usg5-4
2337 NON_GNU_CC=/usr/ccs/bin/cc
2338 NON_GNU_CPP=/usr/ccs/lib/cpp
2341 ## Silicon Graphics machines
2342 ## Iris 2500 and Iris 2500 Turbo (aka the Iris 3030)
2343 m68*-sgi-iris3.5* )
2344 machine=irist opsys=iris3-5
2346 m68*-sgi-iris3.6* | m68*-sgi-iris*)
2347 machine=irist opsys=iris3-6
2349 ## Iris 4D
2350 mips-sgi-irix3* )
2351 machine=iris4d opsys=irix3-3
2353 mips-sgi-irix4* )
2354 machine=iris4d opsys=irix4-0
2356 mips-sgi-irix6.5 )
2357 machine=iris4d opsys=irix6-5
2358 # Without defining _LANGUAGE_C, things get masked out in the headers
2359 # so that, for instance, grepping for `free' in stdlib.h fails and
2360 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
2361 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
2362 NON_GCC_TEST_OPTIONS="-D_LANGUAGE_C"
2364 mips-sgi-irix6* )
2365 machine=iris4d opsys=irix6-0
2366 # It's not clear whether -D_LANGUAGE_C is necessary as it is for 6.5,
2367 # but presumably it does no harm.
2368 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
2369 # -32 probably isn't necessary in later v.6s -- anyone know which?
2370 NON_GCC_TEST_OPTIONS=-32
2372 mips-sgi-irix5.[01]* )
2373 machine=iris4d opsys=irix5-0
2375 mips-sgi-irix5* | mips-sgi-irix* )
2376 machine=iris4d opsys=irix5-2
2379 ## SONY machines
2380 m68*-sony-bsd4.2* )
2381 machine=news opsys=bsd4-2
2383 m68*-sony-bsd4.3* )
2384 machine=news opsys=bsd4-3
2386 m68*-sony-newsos3* | m68*-sony-news3*)
2387 machine=news opsys=bsd4-3
2389 mips-sony-bsd* | mips-sony-newsos4* | mips-sony-news4*)
2390 machine=news-risc opsys=bsd4-3
2392 mips-sony-newsos6* )
2393 machine=news-r6 opsys=newsos6
2395 mips-sony-news* )
2396 machine=news-risc opsys=newsos5
2399 ## Stride
2400 m68*-stride-sysv* )
2401 machine=stride opsys=usg5-2
2404 ## Suns
2405 sparc-*-linux-gnu* | sparc64-*-linux-gnu* )
2406 machine=sparc opsys=gnu-linux
2409 *-auspex-sunos* | *-sun-sunos* | *-sun-bsd* | *-sun-solaris* \
2410 | i[3456]86-*-solaris2* | i[3456]86-*-sunos5* | powerpc*-*-solaris2* \
2411 | rs6000-*-solaris2*)
2412 case "${canonical}" in
2413 m68*-sunos1* ) machine=sun1 ;;
2414 m68*-sunos2* ) machine=sun2 ;;
2415 m68* ) machine=sun3 ;;
2416 i[3456]86-sun-sunos[34]* ) machine=sun386 ;;
2417 i[3456]86-*-* ) machine=intel386 ;;
2418 powerpcle* ) machine=powerpcle ;;
2419 powerpc* | rs6000* ) machine=ibmrs6000 ;;
2420 sparc* ) machine=sparc ;;
2421 * ) unported=yes ;;
2422 esac
2423 case "${canonical}" in
2424 ## The Sun386 didn't get past 4.0.
2425 i[3456]86-*-sunos4 ) opsys=sunos4-0 ;;
2426 *-sunos4.0* ) opsys=sunos4-0 ;;
2427 *-sunos4.1.[3-9]*noshare )
2428 ## This name is sunos413 instead of sunos4-1-3
2429 ## to avoid a file name conflict on MSDOS.
2430 opsys=sunos413
2431 NON_GNU_CPP=/usr/lib/cpp
2432 NON_GCC_TEST_OPTIONS=-Bstatic
2433 GCC_TEST_OPTIONS=-static
2435 *-sunos4.1.[3-9]* | *-sunos4shr*)
2436 opsys=sunos4shr
2437 NON_GNU_CPP=/usr/lib/cpp
2439 *-sunos4* | *-sunos )
2440 opsys=sunos4-1
2441 NON_GCC_TEST_OPTIONS=-Bstatic
2442 GCC_TEST_OPTIONS=-static
2444 *-sunos5.3* | *-solaris2.3* )
2445 opsys=sol2-3
2446 NON_GNU_CPP=/usr/ccs/lib/cpp
2448 *-sunos5.4* | *-solaris2.4* )
2449 opsys=sol2-4
2450 NON_GNU_CPP=/usr/ccs/lib/cpp
2451 RANLIB="ar -ts"
2453 *-sunos5.5* | *-solaris2.5* )
2454 opsys=sol2-5
2455 NON_GNU_CPP=/usr/ccs/lib/cpp
2456 RANLIB="ar -ts"
2458 *-sunos5.6* | *-solaris2.6* )
2459 opsys=sol2-6
2460 NON_GNU_CPP=/usr/ccs/lib/cpp
2461 RANLIB="ar -ts"
2463 *-sunos5* | *-solaris* )
2464 opsys=sol2-6
2465 NON_GNU_CPP=/usr/ccs/lib/cpp
2467 * ) opsys=bsd4-2 ;;
2468 esac
2469 ## Watch out for a compiler that we know will not work.
2470 case "${canonical}" in
2471 *-solaris* | *-sunos5* )
2472 if [ "x$CC" = x/usr/ucb/cc ]; then
2473 ## /usr/ucb/cc doesn't work;
2474 ## we should find some other compiler that does work.
2475 unset CC
2478 *) ;;
2479 esac
2481 sparc-*-nextstep* )
2482 machine=sparc opsys=nextstep
2485 ## Tadpole 68k
2486 m68*-tadpole-sysv* )
2487 machine=tad68k opsys=usg5-3
2490 ## Tahoe machines
2491 tahoe-tahoe-bsd4.2* )
2492 machine=tahoe opsys=bsd4-2
2494 tahoe-tahoe-bsd4.3* )
2495 machine=tahoe opsys=bsd4-3
2498 ## Tandem Integrity S2
2499 mips-tandem-sysv* )
2500 machine=tandem-s2 opsys=usg5-3
2503 ## Tektronix XD88
2504 m88k-tektronix-sysv3* )
2505 machine=tekxd88 opsys=usg5-3
2508 ## Tektronix 16000 box (6130?)
2509 ns16k-tektronix-bsd* )
2510 machine=ns16000 opsys=bsd4-2
2512 ## Tektronix 4300
2513 ## src/m/tek4300.h hints that this is a m68k machine.
2514 m68*-tektronix-bsd* )
2515 machine=tek4300 opsys=bsd4-3
2518 ## Titan P2 or P3
2519 ## We seem to have lost the machine-description file titan.h!
2520 titan-titan-sysv* )
2521 machine=titan opsys=usg5-3
2524 ## Ustation E30 (SS5E)
2525 m68*-unisys-uniplus* )
2526 machine=ustation opsystem=unipl5-2
2529 ## Vaxen.
2530 vax-dec-* )
2531 machine=vax
2532 case "${canonical}" in
2533 *-bsd4.1* ) opsys=bsd4-1 ;;
2534 *-bsd4.2* | *-ultrix[0-3].* | *-ultrix4.0* ) opsys=bsd4-2 ;;
2535 *-bsd4.3* | *-ultrix* ) opsys=bsd4-3 ;;
2536 *-sysv[01]* | *-sysvr[01]* ) opsys=usg5-0 ;;
2537 *-sysv2* | *-sysvr2* ) opsys=usg5-2 ;;
2538 *-vms* ) opsys=vms ;;
2539 * ) unported=yes
2540 esac
2543 ## Whitechapel MG1
2544 ns16k-whitechapel-* )
2545 machine=mg1
2546 ## We don't know what sort of OS runs on these; we'll let the
2547 ## operating system guessing code below try.
2550 ## Wicat
2551 m68*-wicat-sysv* )
2552 machine=wicat opsys=usg5-2
2555 ## IA-64
2556 ia64*-*-linux* )
2557 machine=ia64 opsys=gnu-linux
2560 ## Intel 386 machines where we don't care about the manufacturer
2561 i[3456]86-*-* )
2562 machine=intel386
2563 case "${canonical}" in
2564 *-cygwin ) opsys=cygwin ;;
2565 *-darwin ) opsys=darwin
2566 CPP="${CC-cc} -E -no-cpp-precomp"
2568 *-lynxos* ) opsys=lynxos ;;
2569 *-isc1.* | *-isc2.[01]* ) opsys=386-ix ;;
2570 *-isc2.2* ) opsys=isc2-2 ;;
2571 *-isc4.0* ) opsys=isc4-0 ;;
2572 *-isc4.* ) opsys=isc4-1
2573 GCC_TEST_OPTIONS=-posix
2574 NON_GCC_TEST_OPTIONS=-Xp
2576 *-isc* ) opsys=isc3-0 ;;
2577 *-esix5* ) opsys=esix5r4; NON_GNU_CPP=/usr/lib/cpp ;;
2578 *-esix* ) opsys=esix ;;
2579 *-xenix* ) opsys=xenix ;;
2580 *-linux-gnu* ) opsys=gnu-linux ;;
2581 *-sco3.2v4* ) opsys=sco4 ; NON_GNU_CPP=/lib/cpp ;;
2582 *-sco3.2v5* ) opsys=sco5
2583 NON_GNU_CPP=/lib/cpp
2584 # Prevent -belf from being passed to $CPP.
2585 # /lib/cpp does not accept it.
2586 OVERRIDE_CPPFLAGS=" "
2588 *-sysv4.2uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
2589 *-sysv5uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
2590 *-sysv5OpenUNIX* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
2591 *-386bsd* ) opsys=386bsd ;;
2592 *-nextstep* ) opsys=nextstep ;;
2593 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
2594 esac
2597 ## m68k Linux-based GNU system
2598 m68k-*-linux-gnu* )
2599 machine=m68k opsys=gnu-linux
2602 ## Mips Linux-based GNU system
2603 mips-*-linux-gnu* | mipsel-*-linux-gnu* )
2604 machine=mips opsys=gnu-linux
2607 ## UXP/DS
2608 sparc-fujitsu-sysv4* )
2609 machine=sparc opsys=uxpds
2610 NON_GNU_CPP=/usr/ccs/lib/cpp
2611 RANLIB="ar -ts"
2614 ## UXP/V
2615 f301-fujitsu-uxpv4.1)
2616 machine=f301 opsys=uxpv
2619 ## Darwin / Mac OS X
2620 powerpc-apple-darwin* )
2621 machine=powermac opsys=darwin
2622 # Define CPP as follows to make autoconf work correctly.
2623 CPP="${CC-cc} -E -no-cpp-precomp"
2624 # Use fink packages if available.
2625 if test -d /sw/include && test -d /sw/lib; then
2626 GCC_TEST_OPTIONS="-I/sw/include -L/sw/lib"
2627 CPP="${CPP} ${GCC_TEST_OPTIONS}"
2628 NON_GCC_TEST_OPTIONS=${GCC_TEST_OPTIONS}
2632 ## AMD x86-64 Linux-based GNU system
2633 x86_64-*-linux-gnu* )
2634 machine=amdx86-64 opsys=gnu-linux
2638 unported=yes
2640 esac
2642 ### If the code above didn't choose an operating system, just choose
2643 ### an operating system based on the configuration name. You really
2644 ### only want to use this when you have no idea what the right
2645 ### operating system is; if you know what operating systems a machine
2646 ### runs, it's cleaner to make it explicit in the case statement
2647 ### above.
2648 if test x"${opsys}" = x; then
2649 case "${canonical}" in
2650 *-gnu* ) opsys=gnu ;;
2651 *-bsd4.[01] ) opsys=bsd4-1 ;;
2652 *-bsd4.2 ) opsys=bsd4-2 ;;
2653 *-bsd4.3 ) opsys=bsd4-3 ;;
2654 *-sysv0 | *-sysvr0 ) opsys=usg5-0 ;;
2655 *-sysv2 | *-sysvr2 ) opsys=usg5-2 ;;
2656 *-sysv2.2 | *-sysvr2.2 ) opsys=usg5-2-2 ;;
2657 *-sysv3* | *-sysvr3* ) opsys=usg5-3 ;;
2658 *-sysv4.2uw* ) opsys=unixware ;;
2659 *-sysv5uw* ) opsys=unixware ;;
2660 *-sysv5OpenUNIX* ) opsys=unixware ;;
2661 *-sysv4.1* | *-sysvr4.1* )
2662 NON_GNU_CPP=/usr/lib/cpp
2663 opsys=usg5-4 ;;
2664 *-sysv4.[2-9]* | *-sysvr4.[2-9]* )
2665 if [ x$NON_GNU_CPP = x ]; then
2666 if [ -f /usr/ccs/lib/cpp ]; then
2667 NON_GNU_CPP=/usr/ccs/lib/cpp
2668 else
2669 NON_GNU_CPP=/lib/cpp
2672 opsys=usg5-4-2 ;;
2673 *-sysv4* | *-sysvr4* ) opsys=usg5-4 ;;
2675 unported=yes
2677 esac
2682 if test $unported = yes; then
2683 { { echo "$as_me:$LINENO: error: Emacs hasn't been ported to \`${canonical}' systems.
2684 Check \`etc/MACHINES' for recognized configuration names." >&5
2685 echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems.
2686 Check \`etc/MACHINES' for recognized configuration names." >&2;}
2687 { (exit 1); exit 1; }; }
2690 machfile="m/${machine}.h"
2691 opsysfile="s/${opsys}.h"
2694 #### Choose a compiler.
2695 test -n "$CC" && cc_specified=yes
2697 # Save the value of CFLAGS that the user specified.
2698 SPECIFIED_CFLAGS="$CFLAGS"
2700 case ${with_gcc} in
2701 "yes" ) CC="gcc" GCC=yes ;;
2702 "no" ) : ${CC=cc} ;;
2704 esac
2705 ac_ext=c
2706 ac_cpp='$CPP $CPPFLAGS'
2707 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2708 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2709 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2710 if test -n "$ac_tool_prefix"; then
2711 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2712 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2713 echo "$as_me:$LINENO: checking for $ac_word" >&5
2714 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2715 if test "${ac_cv_prog_CC+set}" = set; then
2716 echo $ECHO_N "(cached) $ECHO_C" >&6
2717 else
2718 if test -n "$CC"; then
2719 ac_cv_prog_CC="$CC" # Let the user override the test.
2720 else
2721 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2722 for as_dir in $PATH
2724 IFS=$as_save_IFS
2725 test -z "$as_dir" && as_dir=.
2726 for ac_exec_ext in '' $ac_executable_extensions; do
2727 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2728 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2729 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2730 break 2
2732 done
2733 done
2737 CC=$ac_cv_prog_CC
2738 if test -n "$CC"; then
2739 echo "$as_me:$LINENO: result: $CC" >&5
2740 echo "${ECHO_T}$CC" >&6
2741 else
2742 echo "$as_me:$LINENO: result: no" >&5
2743 echo "${ECHO_T}no" >&6
2747 if test -z "$ac_cv_prog_CC"; then
2748 ac_ct_CC=$CC
2749 # Extract the first word of "gcc", so it can be a program name with args.
2750 set dummy gcc; ac_word=$2
2751 echo "$as_me:$LINENO: checking for $ac_word" >&5
2752 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2753 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2754 echo $ECHO_N "(cached) $ECHO_C" >&6
2755 else
2756 if test -n "$ac_ct_CC"; then
2757 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2758 else
2759 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2760 for as_dir in $PATH
2762 IFS=$as_save_IFS
2763 test -z "$as_dir" && as_dir=.
2764 for ac_exec_ext in '' $ac_executable_extensions; do
2765 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2766 ac_cv_prog_ac_ct_CC="gcc"
2767 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2768 break 2
2770 done
2771 done
2775 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2776 if test -n "$ac_ct_CC"; then
2777 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2778 echo "${ECHO_T}$ac_ct_CC" >&6
2779 else
2780 echo "$as_me:$LINENO: result: no" >&5
2781 echo "${ECHO_T}no" >&6
2784 CC=$ac_ct_CC
2785 else
2786 CC="$ac_cv_prog_CC"
2789 if test -z "$CC"; then
2790 if test -n "$ac_tool_prefix"; then
2791 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2792 set dummy ${ac_tool_prefix}cc; ac_word=$2
2793 echo "$as_me:$LINENO: checking for $ac_word" >&5
2794 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2795 if test "${ac_cv_prog_CC+set}" = set; then
2796 echo $ECHO_N "(cached) $ECHO_C" >&6
2797 else
2798 if test -n "$CC"; then
2799 ac_cv_prog_CC="$CC" # Let the user override the test.
2800 else
2801 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2802 for as_dir in $PATH
2804 IFS=$as_save_IFS
2805 test -z "$as_dir" && as_dir=.
2806 for ac_exec_ext in '' $ac_executable_extensions; do
2807 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2808 ac_cv_prog_CC="${ac_tool_prefix}cc"
2809 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2810 break 2
2812 done
2813 done
2817 CC=$ac_cv_prog_CC
2818 if test -n "$CC"; then
2819 echo "$as_me:$LINENO: result: $CC" >&5
2820 echo "${ECHO_T}$CC" >&6
2821 else
2822 echo "$as_me:$LINENO: result: no" >&5
2823 echo "${ECHO_T}no" >&6
2827 if test -z "$ac_cv_prog_CC"; then
2828 ac_ct_CC=$CC
2829 # Extract the first word of "cc", so it can be a program name with args.
2830 set dummy cc; ac_word=$2
2831 echo "$as_me:$LINENO: checking for $ac_word" >&5
2832 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2833 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2834 echo $ECHO_N "(cached) $ECHO_C" >&6
2835 else
2836 if test -n "$ac_ct_CC"; then
2837 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2838 else
2839 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2840 for as_dir in $PATH
2842 IFS=$as_save_IFS
2843 test -z "$as_dir" && as_dir=.
2844 for ac_exec_ext in '' $ac_executable_extensions; do
2845 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2846 ac_cv_prog_ac_ct_CC="cc"
2847 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2848 break 2
2850 done
2851 done
2855 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2856 if test -n "$ac_ct_CC"; then
2857 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2858 echo "${ECHO_T}$ac_ct_CC" >&6
2859 else
2860 echo "$as_me:$LINENO: result: no" >&5
2861 echo "${ECHO_T}no" >&6
2864 CC=$ac_ct_CC
2865 else
2866 CC="$ac_cv_prog_CC"
2870 if test -z "$CC"; then
2871 # Extract the first word of "cc", so it can be a program name with args.
2872 set dummy cc; ac_word=$2
2873 echo "$as_me:$LINENO: checking for $ac_word" >&5
2874 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2875 if test "${ac_cv_prog_CC+set}" = set; then
2876 echo $ECHO_N "(cached) $ECHO_C" >&6
2877 else
2878 if test -n "$CC"; then
2879 ac_cv_prog_CC="$CC" # Let the user override the test.
2880 else
2881 ac_prog_rejected=no
2882 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2883 for as_dir in $PATH
2885 IFS=$as_save_IFS
2886 test -z "$as_dir" && as_dir=.
2887 for ac_exec_ext in '' $ac_executable_extensions; do
2888 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2889 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2890 ac_prog_rejected=yes
2891 continue
2893 ac_cv_prog_CC="cc"
2894 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2895 break 2
2897 done
2898 done
2900 if test $ac_prog_rejected = yes; then
2901 # We found a bogon in the path, so make sure we never use it.
2902 set dummy $ac_cv_prog_CC
2903 shift
2904 if test $# != 0; then
2905 # We chose a different compiler from the bogus one.
2906 # However, it has the same basename, so the bogon will be chosen
2907 # first if we set CC to just the basename; use the full file name.
2908 shift
2909 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2914 CC=$ac_cv_prog_CC
2915 if test -n "$CC"; then
2916 echo "$as_me:$LINENO: result: $CC" >&5
2917 echo "${ECHO_T}$CC" >&6
2918 else
2919 echo "$as_me:$LINENO: result: no" >&5
2920 echo "${ECHO_T}no" >&6
2924 if test -z "$CC"; then
2925 if test -n "$ac_tool_prefix"; then
2926 for ac_prog in cl
2928 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2929 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2930 echo "$as_me:$LINENO: checking for $ac_word" >&5
2931 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2932 if test "${ac_cv_prog_CC+set}" = set; then
2933 echo $ECHO_N "(cached) $ECHO_C" >&6
2934 else
2935 if test -n "$CC"; then
2936 ac_cv_prog_CC="$CC" # Let the user override the test.
2937 else
2938 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2939 for as_dir in $PATH
2941 IFS=$as_save_IFS
2942 test -z "$as_dir" && as_dir=.
2943 for ac_exec_ext in '' $ac_executable_extensions; do
2944 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2945 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2946 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2947 break 2
2949 done
2950 done
2954 CC=$ac_cv_prog_CC
2955 if test -n "$CC"; then
2956 echo "$as_me:$LINENO: result: $CC" >&5
2957 echo "${ECHO_T}$CC" >&6
2958 else
2959 echo "$as_me:$LINENO: result: no" >&5
2960 echo "${ECHO_T}no" >&6
2963 test -n "$CC" && break
2964 done
2966 if test -z "$CC"; then
2967 ac_ct_CC=$CC
2968 for ac_prog in cl
2970 # Extract the first word of "$ac_prog", so it can be a program name with args.
2971 set dummy $ac_prog; ac_word=$2
2972 echo "$as_me:$LINENO: checking for $ac_word" >&5
2973 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2974 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2975 echo $ECHO_N "(cached) $ECHO_C" >&6
2976 else
2977 if test -n "$ac_ct_CC"; then
2978 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2979 else
2980 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2981 for as_dir in $PATH
2983 IFS=$as_save_IFS
2984 test -z "$as_dir" && as_dir=.
2985 for ac_exec_ext in '' $ac_executable_extensions; do
2986 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2987 ac_cv_prog_ac_ct_CC="$ac_prog"
2988 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2989 break 2
2991 done
2992 done
2996 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2997 if test -n "$ac_ct_CC"; then
2998 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2999 echo "${ECHO_T}$ac_ct_CC" >&6
3000 else
3001 echo "$as_me:$LINENO: result: no" >&5
3002 echo "${ECHO_T}no" >&6
3005 test -n "$ac_ct_CC" && break
3006 done
3008 CC=$ac_ct_CC
3014 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3015 See \`config.log' for more details." >&5
3016 echo "$as_me: error: no acceptable C compiler found in \$PATH
3017 See \`config.log' for more details." >&2;}
3018 { (exit 1); exit 1; }; }
3020 # Provide some information about the compiler.
3021 echo "$as_me:$LINENO:" \
3022 "checking for C compiler version" >&5
3023 ac_compiler=`set X $ac_compile; echo $2`
3024 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3025 (eval $ac_compiler --version </dev/null >&5) 2>&5
3026 ac_status=$?
3027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3028 (exit $ac_status); }
3029 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3030 (eval $ac_compiler -v </dev/null >&5) 2>&5
3031 ac_status=$?
3032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3033 (exit $ac_status); }
3034 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3035 (eval $ac_compiler -V </dev/null >&5) 2>&5
3036 ac_status=$?
3037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3038 (exit $ac_status); }
3040 cat >conftest.$ac_ext <<_ACEOF
3041 /* confdefs.h. */
3042 _ACEOF
3043 cat confdefs.h >>conftest.$ac_ext
3044 cat >>conftest.$ac_ext <<_ACEOF
3045 /* end confdefs.h. */
3048 main ()
3052 return 0;
3054 _ACEOF
3055 ac_clean_files_save=$ac_clean_files
3056 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3057 # Try to create an executable without -o first, disregard a.out.
3058 # It will help us diagnose broken compilers, and finding out an intuition
3059 # of exeext.
3060 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3061 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
3062 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3063 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
3064 (eval $ac_link_default) 2>&5
3065 ac_status=$?
3066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3067 (exit $ac_status); }; then
3068 # Find the output, starting from the most likely. This scheme is
3069 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
3070 # resort.
3072 # Be careful to initialize this variable, since it used to be cached.
3073 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
3074 ac_cv_exeext=
3075 # b.out is created by i960 compilers.
3076 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
3078 test -f "$ac_file" || continue
3079 case $ac_file in
3080 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
3082 conftest.$ac_ext )
3083 # This is the source file.
3085 [ab].out )
3086 # We found the default executable, but exeext='' is most
3087 # certainly right.
3088 break;;
3089 *.* )
3090 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3091 # FIXME: I believe we export ac_cv_exeext for Libtool,
3092 # but it would be cool to find out if it's true. Does anybody
3093 # maintain Libtool? --akim.
3094 export ac_cv_exeext
3095 break;;
3097 break;;
3098 esac
3099 done
3100 else
3101 echo "$as_me: failed program was:" >&5
3102 sed 's/^/| /' conftest.$ac_ext >&5
3104 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3105 See \`config.log' for more details." >&5
3106 echo "$as_me: error: C compiler cannot create executables
3107 See \`config.log' for more details." >&2;}
3108 { (exit 77); exit 77; }; }
3111 ac_exeext=$ac_cv_exeext
3112 echo "$as_me:$LINENO: result: $ac_file" >&5
3113 echo "${ECHO_T}$ac_file" >&6
3115 # Check the compiler produces executables we can run. If not, either
3116 # the compiler is broken, or we cross compile.
3117 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3118 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
3119 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3120 # If not cross compiling, check that we can run a simple program.
3121 if test "$cross_compiling" != yes; then
3122 if { ac_try='./$ac_file'
3123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3124 (eval $ac_try) 2>&5
3125 ac_status=$?
3126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3127 (exit $ac_status); }; }; then
3128 cross_compiling=no
3129 else
3130 if test "$cross_compiling" = maybe; then
3131 cross_compiling=yes
3132 else
3133 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3134 If you meant to cross compile, use \`--host'.
3135 See \`config.log' for more details." >&5
3136 echo "$as_me: error: cannot run C compiled programs.
3137 If you meant to cross compile, use \`--host'.
3138 See \`config.log' for more details." >&2;}
3139 { (exit 1); exit 1; }; }
3143 echo "$as_me:$LINENO: result: yes" >&5
3144 echo "${ECHO_T}yes" >&6
3146 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3147 ac_clean_files=$ac_clean_files_save
3148 # Check the compiler produces executables we can run. If not, either
3149 # the compiler is broken, or we cross compile.
3150 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3151 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
3152 echo "$as_me:$LINENO: result: $cross_compiling" >&5
3153 echo "${ECHO_T}$cross_compiling" >&6
3155 echo "$as_me:$LINENO: checking for suffix of executables" >&5
3156 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
3157 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3158 (eval $ac_link) 2>&5
3159 ac_status=$?
3160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3161 (exit $ac_status); }; then
3162 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3163 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3164 # work properly (i.e., refer to `conftest.exe'), while it won't with
3165 # `rm'.
3166 for ac_file in conftest.exe conftest conftest.*; do
3167 test -f "$ac_file" || continue
3168 case $ac_file in
3169 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
3170 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3171 export ac_cv_exeext
3172 break;;
3173 * ) break;;
3174 esac
3175 done
3176 else
3177 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3178 See \`config.log' for more details." >&5
3179 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3180 See \`config.log' for more details." >&2;}
3181 { (exit 1); exit 1; }; }
3184 rm -f conftest$ac_cv_exeext
3185 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3186 echo "${ECHO_T}$ac_cv_exeext" >&6
3188 rm -f conftest.$ac_ext
3189 EXEEXT=$ac_cv_exeext
3190 ac_exeext=$EXEEXT
3191 echo "$as_me:$LINENO: checking for suffix of object files" >&5
3192 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
3193 if test "${ac_cv_objext+set}" = set; then
3194 echo $ECHO_N "(cached) $ECHO_C" >&6
3195 else
3196 cat >conftest.$ac_ext <<_ACEOF
3197 /* confdefs.h. */
3198 _ACEOF
3199 cat confdefs.h >>conftest.$ac_ext
3200 cat >>conftest.$ac_ext <<_ACEOF
3201 /* end confdefs.h. */
3204 main ()
3208 return 0;
3210 _ACEOF
3211 rm -f conftest.o conftest.obj
3212 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3213 (eval $ac_compile) 2>&5
3214 ac_status=$?
3215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3216 (exit $ac_status); }; then
3217 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
3218 case $ac_file in
3219 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
3220 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3221 break;;
3222 esac
3223 done
3224 else
3225 echo "$as_me: failed program was:" >&5
3226 sed 's/^/| /' conftest.$ac_ext >&5
3228 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3229 See \`config.log' for more details." >&5
3230 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3231 See \`config.log' for more details." >&2;}
3232 { (exit 1); exit 1; }; }
3235 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3237 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3238 echo "${ECHO_T}$ac_cv_objext" >&6
3239 OBJEXT=$ac_cv_objext
3240 ac_objext=$OBJEXT
3241 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3242 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3243 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3244 echo $ECHO_N "(cached) $ECHO_C" >&6
3245 else
3246 cat >conftest.$ac_ext <<_ACEOF
3247 /* confdefs.h. */
3248 _ACEOF
3249 cat confdefs.h >>conftest.$ac_ext
3250 cat >>conftest.$ac_ext <<_ACEOF
3251 /* end confdefs.h. */
3254 main ()
3256 #ifndef __GNUC__
3257 choke me
3258 #endif
3261 return 0;
3263 _ACEOF
3264 rm -f conftest.$ac_objext
3265 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3266 (eval $ac_compile) 2>conftest.er1
3267 ac_status=$?
3268 grep -v '^ *+' conftest.er1 >conftest.err
3269 rm -f conftest.er1
3270 cat conftest.err >&5
3271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3272 (exit $ac_status); } &&
3273 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
3279 { ac_try='test -s conftest.$ac_objext'
3280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3281 (eval $ac_try) 2>&5
3282 ac_status=$?
3283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3284 (exit $ac_status); }; }; then
3285 ac_compiler_gnu=yes
3286 else
3287 echo "$as_me: failed program was:" >&5
3288 sed 's/^/| /' conftest.$ac_ext >&5
3290 ac_compiler_gnu=no
3292 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3293 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3296 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3297 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3298 GCC=`test $ac_compiler_gnu = yes && echo yes`
3299 ac_test_CFLAGS=${CFLAGS+set}
3300 ac_save_CFLAGS=$CFLAGS
3301 CFLAGS="-g"
3302 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3303 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3304 if test "${ac_cv_prog_cc_g+set}" = set; then
3305 echo $ECHO_N "(cached) $ECHO_C" >&6
3306 else
3307 cat >conftest.$ac_ext <<_ACEOF
3308 /* confdefs.h. */
3309 _ACEOF
3310 cat confdefs.h >>conftest.$ac_ext
3311 cat >>conftest.$ac_ext <<_ACEOF
3312 /* end confdefs.h. */
3315 main ()
3319 return 0;
3321 _ACEOF
3322 rm -f conftest.$ac_objext
3323 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3324 (eval $ac_compile) 2>conftest.er1
3325 ac_status=$?
3326 grep -v '^ *+' conftest.er1 >conftest.err
3327 rm -f conftest.er1
3328 cat conftest.err >&5
3329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3330 (exit $ac_status); } &&
3331 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3333 (eval $ac_try) 2>&5
3334 ac_status=$?
3335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3336 (exit $ac_status); }; } &&
3337 { ac_try='test -s conftest.$ac_objext'
3338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3339 (eval $ac_try) 2>&5
3340 ac_status=$?
3341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3342 (exit $ac_status); }; }; then
3343 ac_cv_prog_cc_g=yes
3344 else
3345 echo "$as_me: failed program was:" >&5
3346 sed 's/^/| /' conftest.$ac_ext >&5
3348 ac_cv_prog_cc_g=no
3350 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3352 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3353 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3354 if test "$ac_test_CFLAGS" = set; then
3355 CFLAGS=$ac_save_CFLAGS
3356 elif test $ac_cv_prog_cc_g = yes; then
3357 if test "$GCC" = yes; then
3358 CFLAGS="-g -O2"
3359 else
3360 CFLAGS="-g"
3362 else
3363 if test "$GCC" = yes; then
3364 CFLAGS="-O2"
3365 else
3366 CFLAGS=
3369 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3370 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3371 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3372 echo $ECHO_N "(cached) $ECHO_C" >&6
3373 else
3374 ac_cv_prog_cc_stdc=no
3375 ac_save_CC=$CC
3376 cat >conftest.$ac_ext <<_ACEOF
3377 /* confdefs.h. */
3378 _ACEOF
3379 cat confdefs.h >>conftest.$ac_ext
3380 cat >>conftest.$ac_ext <<_ACEOF
3381 /* end confdefs.h. */
3382 #include <stdarg.h>
3383 #include <stdio.h>
3384 #include <sys/types.h>
3385 #include <sys/stat.h>
3386 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3387 struct buf { int x; };
3388 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3389 static char *e (p, i)
3390 char **p;
3391 int i;
3393 return p[i];
3395 static char *f (char * (*g) (char **, int), char **p, ...)
3397 char *s;
3398 va_list v;
3399 va_start (v,p);
3400 s = g (p, va_arg (v,int));
3401 va_end (v);
3402 return s;
3405 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3406 function prototypes and stuff, but not '\xHH' hex character constants.
3407 These don't provoke an error unfortunately, instead are silently treated
3408 as 'x'. The following induces an error, until -std1 is added to get
3409 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3410 array size at least. It's necessary to write '\x00'==0 to get something
3411 that's true only with -std1. */
3412 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3414 int test (int i, double x);
3415 struct s1 {int (*f) (int a);};
3416 struct s2 {int (*f) (double a);};
3417 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3418 int argc;
3419 char **argv;
3421 main ()
3423 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3425 return 0;
3427 _ACEOF
3428 # Don't try gcc -ansi; that turns off useful extensions and
3429 # breaks some systems' header files.
3430 # AIX -qlanglvl=ansi
3431 # Ultrix and OSF/1 -std1
3432 # HP-UX 10.20 and later -Ae
3433 # HP-UX older versions -Aa -D_HPUX_SOURCE
3434 # SVR4 -Xc -D__EXTENSIONS__
3435 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3437 CC="$ac_save_CC $ac_arg"
3438 rm -f conftest.$ac_objext
3439 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3440 (eval $ac_compile) 2>conftest.er1
3441 ac_status=$?
3442 grep -v '^ *+' conftest.er1 >conftest.err
3443 rm -f conftest.er1
3444 cat conftest.err >&5
3445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3446 (exit $ac_status); } &&
3447 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3449 (eval $ac_try) 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
3459 ac_cv_prog_cc_stdc=$ac_arg
3460 break
3461 else
3462 echo "$as_me: failed program was:" >&5
3463 sed 's/^/| /' conftest.$ac_ext >&5
3466 rm -f conftest.err conftest.$ac_objext
3467 done
3468 rm -f conftest.$ac_ext conftest.$ac_objext
3469 CC=$ac_save_CC
3473 case "x$ac_cv_prog_cc_stdc" in
3474 x|xno)
3475 echo "$as_me:$LINENO: result: none needed" >&5
3476 echo "${ECHO_T}none needed" >&6 ;;
3478 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3479 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3480 CC="$CC $ac_cv_prog_cc_stdc" ;;
3481 esac
3483 # Some people use a C++ compiler to compile C. Since we use `exit',
3484 # in C++ we need to declare it. In case someone uses the same compiler
3485 # for both compiling C and C++ we need to have the C++ compiler decide
3486 # the declaration of exit, since it's the most demanding environment.
3487 cat >conftest.$ac_ext <<_ACEOF
3488 #ifndef __cplusplus
3489 choke me
3490 #endif
3491 _ACEOF
3492 rm -f conftest.$ac_objext
3493 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3494 (eval $ac_compile) 2>conftest.er1
3495 ac_status=$?
3496 grep -v '^ *+' conftest.er1 >conftest.err
3497 rm -f conftest.er1
3498 cat conftest.err >&5
3499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3500 (exit $ac_status); } &&
3501 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3503 (eval $ac_try) 2>&5
3504 ac_status=$?
3505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3506 (exit $ac_status); }; } &&
3507 { ac_try='test -s conftest.$ac_objext'
3508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3509 (eval $ac_try) 2>&5
3510 ac_status=$?
3511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3512 (exit $ac_status); }; }; then
3513 for ac_declaration in \
3514 '' \
3515 'extern "C" void std::exit (int) throw (); using std::exit;' \
3516 'extern "C" void std::exit (int); using std::exit;' \
3517 'extern "C" void exit (int) throw ();' \
3518 'extern "C" void exit (int);' \
3519 'void exit (int);'
3521 cat >conftest.$ac_ext <<_ACEOF
3522 /* confdefs.h. */
3523 _ACEOF
3524 cat confdefs.h >>conftest.$ac_ext
3525 cat >>conftest.$ac_ext <<_ACEOF
3526 /* end confdefs.h. */
3527 $ac_declaration
3528 #include <stdlib.h>
3530 main ()
3532 exit (42);
3534 return 0;
3536 _ACEOF
3537 rm -f conftest.$ac_objext
3538 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3539 (eval $ac_compile) 2>conftest.er1
3540 ac_status=$?
3541 grep -v '^ *+' conftest.er1 >conftest.err
3542 rm -f conftest.er1
3543 cat conftest.err >&5
3544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3545 (exit $ac_status); } &&
3546 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3548 (eval $ac_try) 2>&5
3549 ac_status=$?
3550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3551 (exit $ac_status); }; } &&
3552 { ac_try='test -s conftest.$ac_objext'
3553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3554 (eval $ac_try) 2>&5
3555 ac_status=$?
3556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3557 (exit $ac_status); }; }; then
3559 else
3560 echo "$as_me: failed program was:" >&5
3561 sed 's/^/| /' conftest.$ac_ext >&5
3563 continue
3565 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3566 cat >conftest.$ac_ext <<_ACEOF
3567 /* confdefs.h. */
3568 _ACEOF
3569 cat confdefs.h >>conftest.$ac_ext
3570 cat >>conftest.$ac_ext <<_ACEOF
3571 /* end confdefs.h. */
3572 $ac_declaration
3574 main ()
3576 exit (42);
3578 return 0;
3580 _ACEOF
3581 rm -f conftest.$ac_objext
3582 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3583 (eval $ac_compile) 2>conftest.er1
3584 ac_status=$?
3585 grep -v '^ *+' conftest.er1 >conftest.err
3586 rm -f conftest.er1
3587 cat conftest.err >&5
3588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3589 (exit $ac_status); } &&
3590 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3592 (eval $ac_try) 2>&5
3593 ac_status=$?
3594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3595 (exit $ac_status); }; } &&
3596 { ac_try='test -s conftest.$ac_objext'
3597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3598 (eval $ac_try) 2>&5
3599 ac_status=$?
3600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3601 (exit $ac_status); }; }; then
3602 break
3603 else
3604 echo "$as_me: failed program was:" >&5
3605 sed 's/^/| /' conftest.$ac_ext >&5
3608 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3609 done
3610 rm -f conftest*
3611 if test -n "$ac_declaration"; then
3612 echo '#ifdef __cplusplus' >>confdefs.h
3613 echo $ac_declaration >>confdefs.h
3614 echo '#endif' >>confdefs.h
3617 else
3618 echo "$as_me: failed program was:" >&5
3619 sed 's/^/| /' conftest.$ac_ext >&5
3622 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3623 ac_ext=c
3624 ac_cpp='$CPP $CPPFLAGS'
3625 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3626 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3627 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3630 # On Suns, sometimes $CPP names a directory.
3631 if test -n "$CPP" && test -d "$CPP"; then
3632 CPP=
3635 #### Some systems specify a CPP to use unless we are using GCC.
3636 #### Now that we know whether we are using GCC, we can decide whether
3637 #### to use that one.
3638 if test "x$NON_GNU_CPP" != x && test x$GCC != xyes && test "x$CPP" = x
3639 then
3640 CPP="$NON_GNU_CPP"
3643 #### Some systems specify a CC to use unless we are using GCC.
3644 #### Now that we know whether we are using GCC, we can decide whether
3645 #### to use that one.
3646 if test "x$NON_GNU_CC" != x && test x$GCC != xyes &&
3647 test x$cc_specified != xyes
3648 then
3649 CC="$NON_GNU_CC"
3652 if test x$GCC = xyes && test "x$GCC_TEST_OPTIONS" != x
3653 then
3654 CC="$CC $GCC_TEST_OPTIONS"
3657 if test x$GCC = x && test "x$NON_GCC_TEST_OPTIONS" != x
3658 then
3659 CC="$CC $NON_GCC_TEST_OPTIONS"
3662 #### Some other nice autoconf tests.
3664 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3665 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3666 LN_S=$as_ln_s
3667 if test "$LN_S" = "ln -s"; then
3668 echo "$as_me:$LINENO: result: yes" >&5
3669 echo "${ECHO_T}yes" >&6
3670 else
3671 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3672 echo "${ECHO_T}no, using $LN_S" >&6
3675 ac_ext=c
3676 ac_cpp='$CPP $CPPFLAGS'
3677 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3678 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3679 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3680 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3681 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3682 # On Suns, sometimes $CPP names a directory.
3683 if test -n "$CPP" && test -d "$CPP"; then
3684 CPP=
3686 if test -z "$CPP"; then
3687 if test "${ac_cv_prog_CPP+set}" = set; then
3688 echo $ECHO_N "(cached) $ECHO_C" >&6
3689 else
3690 # Double quotes because CPP needs to be expanded
3691 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
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 /* confdefs.h. */
3704 _ACEOF
3705 cat confdefs.h >>conftest.$ac_ext
3706 cat >>conftest.$ac_ext <<_ACEOF
3707 /* end confdefs.h. */
3708 #ifdef __STDC__
3709 # include <limits.h>
3710 #else
3711 # include <assert.h>
3712 #endif
3713 Syntax error
3714 _ACEOF
3715 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3716 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3717 ac_status=$?
3718 grep -v '^ *+' conftest.er1 >conftest.err
3719 rm -f conftest.er1
3720 cat conftest.err >&5
3721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3722 (exit $ac_status); } >/dev/null; then
3723 if test -s conftest.err; then
3724 ac_cpp_err=$ac_c_preproc_warn_flag
3725 ac_cpp_err=$ac_cpp_err$ac_c_werror_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 /* confdefs.h. */
3747 _ACEOF
3748 cat confdefs.h >>conftest.$ac_ext
3749 cat >>conftest.$ac_ext <<_ACEOF
3750 /* end confdefs.h. */
3751 #include <ac_nonexistent.h>
3752 _ACEOF
3753 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3754 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3755 ac_status=$?
3756 grep -v '^ *+' conftest.er1 >conftest.err
3757 rm -f conftest.er1
3758 cat conftest.err >&5
3759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3760 (exit $ac_status); } >/dev/null; then
3761 if test -s conftest.err; then
3762 ac_cpp_err=$ac_c_preproc_warn_flag
3763 ac_cpp_err=$ac_cpp_err$ac_c_werror_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
3787 break
3790 done
3791 ac_cv_prog_CPP=$CPP
3794 CPP=$ac_cv_prog_CPP
3795 else
3796 ac_cv_prog_CPP=$CPP
3798 echo "$as_me:$LINENO: result: $CPP" >&5
3799 echo "${ECHO_T}$CPP" >&6
3800 ac_preproc_ok=false
3801 for ac_c_preproc_warn_flag in '' yes
3803 # Use a header file that comes with gcc, so configuring glibc
3804 # with a fresh cross-compiler works.
3805 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3806 # <limits.h> exists even on freestanding compilers.
3807 # On the NeXT, cc -E runs the code through the compiler's parser,
3808 # not just through cpp. "Syntax error" is here to catch this case.
3809 cat >conftest.$ac_ext <<_ACEOF
3810 /* confdefs.h. */
3811 _ACEOF
3812 cat confdefs.h >>conftest.$ac_ext
3813 cat >>conftest.$ac_ext <<_ACEOF
3814 /* end confdefs.h. */
3815 #ifdef __STDC__
3816 # include <limits.h>
3817 #else
3818 # include <assert.h>
3819 #endif
3820 Syntax error
3821 _ACEOF
3822 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3823 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3824 ac_status=$?
3825 grep -v '^ *+' conftest.er1 >conftest.err
3826 rm -f conftest.er1
3827 cat conftest.err >&5
3828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3829 (exit $ac_status); } >/dev/null; then
3830 if test -s conftest.err; then
3831 ac_cpp_err=$ac_c_preproc_warn_flag
3832 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3833 else
3834 ac_cpp_err=
3836 else
3837 ac_cpp_err=yes
3839 if test -z "$ac_cpp_err"; then
3841 else
3842 echo "$as_me: failed program was:" >&5
3843 sed 's/^/| /' conftest.$ac_ext >&5
3845 # Broken: fails on valid input.
3846 continue
3848 rm -f conftest.err conftest.$ac_ext
3850 # OK, works on sane cases. Now check whether non-existent headers
3851 # can be detected and how.
3852 cat >conftest.$ac_ext <<_ACEOF
3853 /* confdefs.h. */
3854 _ACEOF
3855 cat confdefs.h >>conftest.$ac_ext
3856 cat >>conftest.$ac_ext <<_ACEOF
3857 /* end confdefs.h. */
3858 #include <ac_nonexistent.h>
3859 _ACEOF
3860 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3861 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3862 ac_status=$?
3863 grep -v '^ *+' conftest.er1 >conftest.err
3864 rm -f conftest.er1
3865 cat conftest.err >&5
3866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3867 (exit $ac_status); } >/dev/null; then
3868 if test -s conftest.err; then
3869 ac_cpp_err=$ac_c_preproc_warn_flag
3870 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3871 else
3872 ac_cpp_err=
3874 else
3875 ac_cpp_err=yes
3877 if test -z "$ac_cpp_err"; then
3878 # Broken: success on invalid input.
3879 continue
3880 else
3881 echo "$as_me: failed program was:" >&5
3882 sed 's/^/| /' conftest.$ac_ext >&5
3884 # Passes both tests.
3885 ac_preproc_ok=:
3886 break
3888 rm -f conftest.err conftest.$ac_ext
3890 done
3891 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3892 rm -f conftest.err conftest.$ac_ext
3893 if $ac_preproc_ok; then
3895 else
3896 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3897 See \`config.log' for more details." >&5
3898 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3899 See \`config.log' for more details." >&2;}
3900 { (exit 1); exit 1; }; }
3903 ac_ext=c
3904 ac_cpp='$CPP $CPPFLAGS'
3905 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3906 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3907 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3909 # Find a good install program. We prefer a C program (faster),
3910 # so one script is as good as another. But avoid the broken or
3911 # incompatible versions:
3912 # SysV /etc/install, /usr/sbin/install
3913 # SunOS /usr/etc/install
3914 # IRIX /sbin/install
3915 # AIX /bin/install
3916 # AmigaOS /C/install, which installs bootblocks on floppy discs
3917 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3918 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3919 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3920 # OS/2's system install, which has a completely different semantic
3921 # ./install, which can be erroneously created by make from ./install.sh.
3922 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3923 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3924 if test -z "$INSTALL"; then
3925 if test "${ac_cv_path_install+set}" = set; then
3926 echo $ECHO_N "(cached) $ECHO_C" >&6
3927 else
3928 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3929 for as_dir in $PATH
3931 IFS=$as_save_IFS
3932 test -z "$as_dir" && as_dir=.
3933 # Account for people who put trailing slashes in PATH elements.
3934 case $as_dir/ in
3935 ./ | .// | /cC/* | \
3936 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3937 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3938 /usr/ucb/* ) ;;
3940 # OSF1 and SCO ODT 3.0 have their own names for install.
3941 # Don't use installbsd from OSF since it installs stuff as root
3942 # by default.
3943 for ac_prog in ginstall scoinst install; do
3944 for ac_exec_ext in '' $ac_executable_extensions; do
3945 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3946 if test $ac_prog = install &&
3947 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3948 # AIX install. It has an incompatible calling convention.
3950 elif test $ac_prog = install &&
3951 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3952 # program-specific install script used by HP pwplus--don't use.
3954 else
3955 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3956 break 3
3959 done
3960 done
3962 esac
3963 done
3967 if test "${ac_cv_path_install+set}" = set; then
3968 INSTALL=$ac_cv_path_install
3969 else
3970 # As a last resort, use the slow shell script. We don't cache a
3971 # path for INSTALL within a source directory, because that will
3972 # break other packages using the cache if that directory is
3973 # removed, or if the path is relative.
3974 INSTALL=$ac_install_sh
3977 echo "$as_me:$LINENO: result: $INSTALL" >&5
3978 echo "${ECHO_T}$INSTALL" >&6
3980 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3981 # It thinks the first close brace ends the variable substitution.
3982 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3984 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3986 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3988 if test "x$RANLIB" = x; then
3989 if test -n "$ac_tool_prefix"; then
3990 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3991 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3992 echo "$as_me:$LINENO: checking for $ac_word" >&5
3993 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3994 if test "${ac_cv_prog_RANLIB+set}" = set; then
3995 echo $ECHO_N "(cached) $ECHO_C" >&6
3996 else
3997 if test -n "$RANLIB"; then
3998 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3999 else
4000 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4001 for as_dir in $PATH
4003 IFS=$as_save_IFS
4004 test -z "$as_dir" && as_dir=.
4005 for ac_exec_ext in '' $ac_executable_extensions; do
4006 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4007 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4008 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4009 break 2
4011 done
4012 done
4016 RANLIB=$ac_cv_prog_RANLIB
4017 if test -n "$RANLIB"; then
4018 echo "$as_me:$LINENO: result: $RANLIB" >&5
4019 echo "${ECHO_T}$RANLIB" >&6
4020 else
4021 echo "$as_me:$LINENO: result: no" >&5
4022 echo "${ECHO_T}no" >&6
4026 if test -z "$ac_cv_prog_RANLIB"; then
4027 ac_ct_RANLIB=$RANLIB
4028 # Extract the first word of "ranlib", so it can be a program name with args.
4029 set dummy ranlib; ac_word=$2
4030 echo "$as_me:$LINENO: checking for $ac_word" >&5
4031 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4032 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4033 echo $ECHO_N "(cached) $ECHO_C" >&6
4034 else
4035 if test -n "$ac_ct_RANLIB"; then
4036 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4037 else
4038 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4039 for as_dir in $PATH
4041 IFS=$as_save_IFS
4042 test -z "$as_dir" && as_dir=.
4043 for ac_exec_ext in '' $ac_executable_extensions; do
4044 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4045 ac_cv_prog_ac_ct_RANLIB="ranlib"
4046 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4047 break 2
4049 done
4050 done
4052 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4055 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4056 if test -n "$ac_ct_RANLIB"; then
4057 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4058 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4059 else
4060 echo "$as_me:$LINENO: result: no" >&5
4061 echo "${ECHO_T}no" >&6
4064 RANLIB=$ac_ct_RANLIB
4065 else
4066 RANLIB="$ac_cv_prog_RANLIB"
4070 # Extract the first word of "install-info", so it can be a program name with args.
4071 set dummy install-info; ac_word=$2
4072 echo "$as_me:$LINENO: checking for $ac_word" >&5
4073 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4074 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
4075 echo $ECHO_N "(cached) $ECHO_C" >&6
4076 else
4077 case $INSTALL_INFO in
4078 [\\/]* | ?:[\\/]*)
4079 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
4082 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4083 for as_dir in $PATH
4085 IFS=$as_save_IFS
4086 test -z "$as_dir" && as_dir=.
4087 for ac_exec_ext in '' $ac_executable_extensions; do
4088 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4089 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
4090 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4091 break 2
4093 done
4094 done
4097 esac
4099 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
4101 if test -n "$INSTALL_INFO"; then
4102 echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
4103 echo "${ECHO_T}$INSTALL_INFO" >&6
4104 else
4105 echo "$as_me:$LINENO: result: no" >&5
4106 echo "${ECHO_T}no" >&6
4109 # Extract the first word of "install-info", so it can be a program name with args.
4110 set dummy install-info; ac_word=$2
4111 echo "$as_me:$LINENO: checking for $ac_word" >&5
4112 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4113 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
4114 echo $ECHO_N "(cached) $ECHO_C" >&6
4115 else
4116 case $INSTALL_INFO in
4117 [\\/]* | ?:[\\/]*)
4118 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
4121 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4122 for as_dir in /usr/sbin
4124 IFS=$as_save_IFS
4125 test -z "$as_dir" && as_dir=.
4126 for ac_exec_ext in '' $ac_executable_extensions; do
4127 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4128 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
4129 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4130 break 2
4132 done
4133 done
4136 esac
4138 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
4140 if test -n "$INSTALL_INFO"; then
4141 echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
4142 echo "${ECHO_T}$INSTALL_INFO" >&6
4143 else
4144 echo "$as_me:$LINENO: result: no" >&5
4145 echo "${ECHO_T}no" >&6
4148 # Extract the first word of "install-info", so it can be a program name with args.
4149 set dummy install-info; ac_word=$2
4150 echo "$as_me:$LINENO: checking for $ac_word" >&5
4151 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4152 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
4153 echo $ECHO_N "(cached) $ECHO_C" >&6
4154 else
4155 case $INSTALL_INFO in
4156 [\\/]* | ?:[\\/]*)
4157 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
4160 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4161 for as_dir in /sbin
4163 IFS=$as_save_IFS
4164 test -z "$as_dir" && as_dir=.
4165 for ac_exec_ext in '' $ac_executable_extensions; do
4166 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4167 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
4168 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4169 break 2
4171 done
4172 done
4174 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO=":"
4176 esac
4178 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
4180 if test -n "$INSTALL_INFO"; then
4181 echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
4182 echo "${ECHO_T}$INSTALL_INFO" >&6
4183 else
4184 echo "$as_me:$LINENO: result: no" >&5
4185 echo "${ECHO_T}no" >&6
4190 if test x$GCC = xyes && test "x$GCC_LINK_TEST_OPTIONS" != x
4191 then
4192 ac_link="$ac_link $GCC_LINK_TEST_OPTIONS"
4195 if test x$GCC = x && test "x$NON_GCC_LINK_TEST_OPTIONS" != x
4196 then
4197 ac_link="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
4201 late_LDFLAGS=$LDFLAGS
4202 if test "$GCC" = yes; then
4203 LDFLAGS="$LDFLAGS -Wl,-znocombreloc"
4204 else
4205 LDFLAGS="$LDFLAGS -znocombreloc"
4208 echo "$as_me:$LINENO: checking for -znocombreloc" >&5
4209 echo $ECHO_N "checking for -znocombreloc... $ECHO_C" >&6
4211 cat >conftest.$ac_ext <<_ACEOF
4212 main(){return 0;}
4213 _ACEOF
4214 rm -f conftest.$ac_objext conftest$ac_exeext
4215 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4216 (eval $ac_link) 2>conftest.er1
4217 ac_status=$?
4218 grep -v '^ *+' conftest.er1 >conftest.err
4219 rm -f conftest.er1
4220 cat conftest.err >&5
4221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4222 (exit $ac_status); } &&
4223 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4225 (eval $ac_try) 2>&5
4226 ac_status=$?
4227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4228 (exit $ac_status); }; } &&
4229 { ac_try='test -s conftest$ac_exeext'
4230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4231 (eval $ac_try) 2>&5
4232 ac_status=$?
4233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4234 (exit $ac_status); }; }; then
4235 echo "$as_me:$LINENO: result: yes" >&5
4236 echo "${ECHO_T}yes" >&6
4237 else
4238 echo "$as_me: failed program was:" >&5
4239 sed 's/^/| /' conftest.$ac_ext >&5
4241 LDFLAGS=$late_LDFLAGS
4242 echo "$as_me:$LINENO: result: no" >&5
4243 echo "${ECHO_T}no" >&6
4245 rm -f conftest.err conftest.$ac_objext \
4246 conftest$ac_exeext conftest.$ac_ext
4249 echo "$as_me:$LINENO: checking for egrep" >&5
4250 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4251 if test "${ac_cv_prog_egrep+set}" = set; then
4252 echo $ECHO_N "(cached) $ECHO_C" >&6
4253 else
4254 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4255 then ac_cv_prog_egrep='grep -E'
4256 else ac_cv_prog_egrep='egrep'
4259 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4260 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4261 EGREP=$ac_cv_prog_egrep
4265 echo "$as_me:$LINENO: checking for AIX" >&5
4266 echo $ECHO_N "checking for AIX... $ECHO_C" >&6
4267 cat >conftest.$ac_ext <<_ACEOF
4268 /* confdefs.h. */
4269 _ACEOF
4270 cat confdefs.h >>conftest.$ac_ext
4271 cat >>conftest.$ac_ext <<_ACEOF
4272 /* end confdefs.h. */
4273 #ifdef _AIX
4275 #endif
4277 _ACEOF
4278 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4279 $EGREP "yes" >/dev/null 2>&1; then
4280 echo "$as_me:$LINENO: result: yes" >&5
4281 echo "${ECHO_T}yes" >&6
4282 cat >>confdefs.h <<\_ACEOF
4283 #define _ALL_SOURCE 1
4284 _ACEOF
4286 else
4287 echo "$as_me:$LINENO: result: no" >&5
4288 echo "${ECHO_T}no" >&6
4290 rm -f conftest*
4295 #### Extract some information from the operating system and machine files.
4297 { echo "$as_me:$LINENO: checking the machine- and system-dependent files to find out
4298 - which libraries the lib-src programs will want, and
4299 - whether the GNU malloc routines are usable..." >&5
4300 echo "$as_me: checking the machine- and system-dependent files to find out
4301 - which libraries the lib-src programs will want, and
4302 - whether the GNU malloc routines are usable..." >&6;}
4304 ### First figure out CFLAGS (which we use for running the compiler here)
4305 ### and REAL_CFLAGS (which we use for real compilation).
4306 ### The two are the same except on a few systems, where they are made
4307 ### different to work around various lossages. For example,
4308 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
4309 ### as implying static linking.
4311 ### If the CFLAGS env var is specified, we use that value
4312 ### instead of the default.
4314 ### It's not important that this name contain the PID; you can't run
4315 ### two configures in the same directory and have anything work
4316 ### anyway.
4317 tempcname="conftest.c"
4319 echo '
4320 #include "'${srcdir}'/src/'${opsysfile}'"
4321 #include "'${srcdir}'/src/'${machfile}'"
4322 #ifndef LIBS_MACHINE
4323 #define LIBS_MACHINE
4324 #endif
4325 #ifndef LIBS_SYSTEM
4326 #define LIBS_SYSTEM
4327 #endif
4328 #ifndef C_SWITCH_SYSTEM
4329 #define C_SWITCH_SYSTEM
4330 #endif
4331 #ifndef C_SWITCH_MACHINE
4332 #define C_SWITCH_MACHINE
4333 #endif
4334 configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM
4335 configure___ c_switch_system=C_SWITCH_SYSTEM
4336 configure___ c_switch_machine=C_SWITCH_MACHINE
4338 #ifndef LIB_X11_LIB
4339 #define LIB_X11_LIB -lX11
4340 #endif
4342 #ifndef LIBX11_MACHINE
4343 #define LIBX11_MACHINE
4344 #endif
4346 #ifndef LIBX11_SYSTEM
4347 #define LIBX11_SYSTEM
4348 #endif
4349 configure___ LIBX=LIB_X11_LIB LIBX11_MACHINE LIBX11_SYSTEM
4351 #ifdef UNEXEC
4352 configure___ unexec=UNEXEC
4353 #else
4354 configure___ unexec=unexec.o
4355 #endif
4357 #ifdef SYSTEM_MALLOC
4358 configure___ system_malloc=yes
4359 #else
4360 configure___ system_malloc=no
4361 #endif
4363 #ifdef USE_MMAP_FOR_BUFFERS
4364 configure___ use_mmap_for_buffers=yes
4365 #else
4366 configure___ use_mmap_for_buffers=no
4367 #endif
4369 #ifndef C_DEBUG_SWITCH
4370 #define C_DEBUG_SWITCH -g
4371 #endif
4373 #ifndef C_OPTIMIZE_SWITCH
4374 #ifdef __GNUC__
4375 #define C_OPTIMIZE_SWITCH -O2
4376 #else
4377 #define C_OPTIMIZE_SWITCH -O
4378 #endif
4379 #endif
4381 #ifndef LD_SWITCH_MACHINE
4382 #define LD_SWITCH_MACHINE
4383 #endif
4385 #ifndef LD_SWITCH_SYSTEM
4386 #define LD_SWITCH_SYSTEM
4387 #endif
4389 #ifndef LD_SWITCH_X_SITE_AUX
4390 #define LD_SWITCH_X_SITE_AUX
4391 #endif
4393 configure___ ld_switch_system=LD_SWITCH_SYSTEM
4394 configure___ ld_switch_machine=LD_SWITCH_MACHINE
4396 #ifdef THIS_IS_CONFIGURE
4398 /* Get the CFLAGS for tests in configure. */
4399 #ifdef __GNUC__
4400 configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
4401 #else
4402 configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
4403 #endif
4405 #else /* not THIS_IS_CONFIGURE */
4407 /* Get the CFLAGS for real compilation. */
4408 #ifdef __GNUC__
4409 configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
4410 #else
4411 configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
4412 #endif
4414 #endif /* not THIS_IS_CONFIGURE */
4415 ' > ${tempcname}
4417 # The value of CPP is a quoted variable reference, so we need to do this
4418 # to get its actual value...
4419 CPP=`eval "echo $CPP"`
4420 eval `${CPP} -Isrc ${tempcname} \
4421 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
4422 if test "x$SPECIFIED_CFLAGS" = x; then
4423 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
4424 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
4425 else
4426 REAL_CFLAGS="$CFLAGS"
4428 rm ${tempcname}
4430 ac_link="$ac_link $ld_switch_machine $ld_switch_system"
4432 ### Make sure subsequent tests use flags consistent with the build flags.
4434 if test x"${OVERRIDE_CPPFLAGS}" != x; then
4435 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
4436 else
4437 CPPFLAGS="$c_switch_system $c_switch_machine $CPPFLAGS"
4443 cat >>confdefs.h <<\_ACEOF
4444 #define _GNU_SOURCE 1
4445 _ACEOF
4449 # Check whether --enable-largefile or --disable-largefile was given.
4450 if test "${enable_largefile+set}" = set; then
4451 enableval="$enable_largefile"
4454 if test "$enable_largefile" != no; then
4456 echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
4457 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
4458 if test "${ac_cv_sys_largefile_CC+set}" = set; then
4459 echo $ECHO_N "(cached) $ECHO_C" >&6
4460 else
4461 ac_cv_sys_largefile_CC=no
4462 if test "$GCC" != yes; then
4463 ac_save_CC=$CC
4464 while :; do
4465 # IRIX 6.2 and later do not support large files by default,
4466 # so use the C compiler's -n32 option if that helps.
4467 cat >conftest.$ac_ext <<_ACEOF
4468 /* confdefs.h. */
4469 _ACEOF
4470 cat confdefs.h >>conftest.$ac_ext
4471 cat >>conftest.$ac_ext <<_ACEOF
4472 /* end confdefs.h. */
4473 #include <sys/types.h>
4474 /* Check that off_t can represent 2**63 - 1 correctly.
4475 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4476 since some C++ compilers masquerading as C compilers
4477 incorrectly reject 9223372036854775807. */
4478 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4479 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4480 && LARGE_OFF_T % 2147483647 == 1)
4481 ? 1 : -1];
4483 main ()
4487 return 0;
4489 _ACEOF
4490 rm -f conftest.$ac_objext
4491 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4492 (eval $ac_compile) 2>conftest.er1
4493 ac_status=$?
4494 grep -v '^ *+' conftest.er1 >conftest.err
4495 rm -f conftest.er1
4496 cat conftest.err >&5
4497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4498 (exit $ac_status); } &&
4499 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4501 (eval $ac_try) 2>&5
4502 ac_status=$?
4503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4504 (exit $ac_status); }; } &&
4505 { ac_try='test -s conftest.$ac_objext'
4506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4507 (eval $ac_try) 2>&5
4508 ac_status=$?
4509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4510 (exit $ac_status); }; }; then
4511 break
4512 else
4513 echo "$as_me: failed program was:" >&5
4514 sed 's/^/| /' conftest.$ac_ext >&5
4517 rm -f conftest.err conftest.$ac_objext
4518 CC="$CC -n32"
4519 rm -f conftest.$ac_objext
4520 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4521 (eval $ac_compile) 2>conftest.er1
4522 ac_status=$?
4523 grep -v '^ *+' conftest.er1 >conftest.err
4524 rm -f conftest.er1
4525 cat conftest.err >&5
4526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4527 (exit $ac_status); } &&
4528 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4530 (eval $ac_try) 2>&5
4531 ac_status=$?
4532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4533 (exit $ac_status); }; } &&
4534 { ac_try='test -s conftest.$ac_objext'
4535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4536 (eval $ac_try) 2>&5
4537 ac_status=$?
4538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4539 (exit $ac_status); }; }; then
4540 ac_cv_sys_largefile_CC=' -n32'; break
4541 else
4542 echo "$as_me: failed program was:" >&5
4543 sed 's/^/| /' conftest.$ac_ext >&5
4546 rm -f conftest.err conftest.$ac_objext
4547 break
4548 done
4549 CC=$ac_save_CC
4550 rm -f conftest.$ac_ext
4553 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
4554 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
4555 if test "$ac_cv_sys_largefile_CC" != no; then
4556 CC=$CC$ac_cv_sys_largefile_CC
4559 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4560 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
4561 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
4562 echo $ECHO_N "(cached) $ECHO_C" >&6
4563 else
4564 while :; do
4565 ac_cv_sys_file_offset_bits=no
4566 cat >conftest.$ac_ext <<_ACEOF
4567 /* confdefs.h. */
4568 _ACEOF
4569 cat confdefs.h >>conftest.$ac_ext
4570 cat >>conftest.$ac_ext <<_ACEOF
4571 /* end confdefs.h. */
4572 #include <sys/types.h>
4573 /* Check that off_t can represent 2**63 - 1 correctly.
4574 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4575 since some C++ compilers masquerading as C compilers
4576 incorrectly reject 9223372036854775807. */
4577 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4578 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4579 && LARGE_OFF_T % 2147483647 == 1)
4580 ? 1 : -1];
4582 main ()
4586 return 0;
4588 _ACEOF
4589 rm -f conftest.$ac_objext
4590 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4591 (eval $ac_compile) 2>conftest.er1
4592 ac_status=$?
4593 grep -v '^ *+' conftest.er1 >conftest.err
4594 rm -f conftest.er1
4595 cat conftest.err >&5
4596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4597 (exit $ac_status); } &&
4598 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4600 (eval $ac_try) 2>&5
4601 ac_status=$?
4602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4603 (exit $ac_status); }; } &&
4604 { ac_try='test -s conftest.$ac_objext'
4605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4606 (eval $ac_try) 2>&5
4607 ac_status=$?
4608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4609 (exit $ac_status); }; }; then
4610 break
4611 else
4612 echo "$as_me: failed program was:" >&5
4613 sed 's/^/| /' conftest.$ac_ext >&5
4616 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4617 cat >conftest.$ac_ext <<_ACEOF
4618 /* confdefs.h. */
4619 _ACEOF
4620 cat confdefs.h >>conftest.$ac_ext
4621 cat >>conftest.$ac_ext <<_ACEOF
4622 /* end confdefs.h. */
4623 #define _FILE_OFFSET_BITS 64
4624 #include <sys/types.h>
4625 /* Check that off_t can represent 2**63 - 1 correctly.
4626 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4627 since some C++ compilers masquerading as C compilers
4628 incorrectly reject 9223372036854775807. */
4629 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4630 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4631 && LARGE_OFF_T % 2147483647 == 1)
4632 ? 1 : -1];
4634 main ()
4638 return 0;
4640 _ACEOF
4641 rm -f conftest.$ac_objext
4642 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4643 (eval $ac_compile) 2>conftest.er1
4644 ac_status=$?
4645 grep -v '^ *+' conftest.er1 >conftest.err
4646 rm -f conftest.er1
4647 cat conftest.err >&5
4648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4649 (exit $ac_status); } &&
4650 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4652 (eval $ac_try) 2>&5
4653 ac_status=$?
4654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4655 (exit $ac_status); }; } &&
4656 { ac_try='test -s conftest.$ac_objext'
4657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4658 (eval $ac_try) 2>&5
4659 ac_status=$?
4660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4661 (exit $ac_status); }; }; then
4662 ac_cv_sys_file_offset_bits=64; break
4663 else
4664 echo "$as_me: failed program was:" >&5
4665 sed 's/^/| /' conftest.$ac_ext >&5
4668 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4669 break
4670 done
4672 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
4673 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
4674 if test "$ac_cv_sys_file_offset_bits" != no; then
4676 cat >>confdefs.h <<_ACEOF
4677 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4678 _ACEOF
4681 rm -f conftest*
4682 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
4683 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
4684 if test "${ac_cv_sys_large_files+set}" = set; then
4685 echo $ECHO_N "(cached) $ECHO_C" >&6
4686 else
4687 while :; do
4688 ac_cv_sys_large_files=no
4689 cat >conftest.$ac_ext <<_ACEOF
4690 /* confdefs.h. */
4691 _ACEOF
4692 cat confdefs.h >>conftest.$ac_ext
4693 cat >>conftest.$ac_ext <<_ACEOF
4694 /* end confdefs.h. */
4695 #include <sys/types.h>
4696 /* Check that off_t can represent 2**63 - 1 correctly.
4697 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4698 since some C++ compilers masquerading as C compilers
4699 incorrectly reject 9223372036854775807. */
4700 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4701 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4702 && LARGE_OFF_T % 2147483647 == 1)
4703 ? 1 : -1];
4705 main ()
4709 return 0;
4711 _ACEOF
4712 rm -f conftest.$ac_objext
4713 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4714 (eval $ac_compile) 2>conftest.er1
4715 ac_status=$?
4716 grep -v '^ *+' conftest.er1 >conftest.err
4717 rm -f conftest.er1
4718 cat conftest.err >&5
4719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4720 (exit $ac_status); } &&
4721 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4723 (eval $ac_try) 2>&5
4724 ac_status=$?
4725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4726 (exit $ac_status); }; } &&
4727 { ac_try='test -s conftest.$ac_objext'
4728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4729 (eval $ac_try) 2>&5
4730 ac_status=$?
4731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4732 (exit $ac_status); }; }; then
4733 break
4734 else
4735 echo "$as_me: failed program was:" >&5
4736 sed 's/^/| /' conftest.$ac_ext >&5
4739 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4740 cat >conftest.$ac_ext <<_ACEOF
4741 /* confdefs.h. */
4742 _ACEOF
4743 cat confdefs.h >>conftest.$ac_ext
4744 cat >>conftest.$ac_ext <<_ACEOF
4745 /* end confdefs.h. */
4746 #define _LARGE_FILES 1
4747 #include <sys/types.h>
4748 /* Check that off_t can represent 2**63 - 1 correctly.
4749 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4750 since some C++ compilers masquerading as C compilers
4751 incorrectly reject 9223372036854775807. */
4752 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4753 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4754 && LARGE_OFF_T % 2147483647 == 1)
4755 ? 1 : -1];
4757 main ()
4761 return 0;
4763 _ACEOF
4764 rm -f conftest.$ac_objext
4765 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4766 (eval $ac_compile) 2>conftest.er1
4767 ac_status=$?
4768 grep -v '^ *+' conftest.er1 >conftest.err
4769 rm -f conftest.er1
4770 cat conftest.err >&5
4771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4772 (exit $ac_status); } &&
4773 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4775 (eval $ac_try) 2>&5
4776 ac_status=$?
4777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4778 (exit $ac_status); }; } &&
4779 { ac_try='test -s conftest.$ac_objext'
4780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4781 (eval $ac_try) 2>&5
4782 ac_status=$?
4783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4784 (exit $ac_status); }; }; then
4785 ac_cv_sys_large_files=1; break
4786 else
4787 echo "$as_me: failed program was:" >&5
4788 sed 's/^/| /' conftest.$ac_ext >&5
4791 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4792 break
4793 done
4795 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
4796 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
4797 if test "$ac_cv_sys_large_files" != no; then
4799 cat >>confdefs.h <<_ACEOF
4800 #define _LARGE_FILES $ac_cv_sys_large_files
4801 _ACEOF
4804 rm -f conftest*
4808 if test "${with_sound}" != "no"; then
4809 # Sound support for GNU/Linux and the free BSDs.
4810 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4811 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4812 if test "${ac_cv_header_stdc+set}" = set; then
4813 echo $ECHO_N "(cached) $ECHO_C" >&6
4814 else
4815 cat >conftest.$ac_ext <<_ACEOF
4816 /* confdefs.h. */
4817 _ACEOF
4818 cat confdefs.h >>conftest.$ac_ext
4819 cat >>conftest.$ac_ext <<_ACEOF
4820 /* end confdefs.h. */
4821 #include <stdlib.h>
4822 #include <stdarg.h>
4823 #include <string.h>
4824 #include <float.h>
4827 main ()
4831 return 0;
4833 _ACEOF
4834 rm -f conftest.$ac_objext
4835 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4836 (eval $ac_compile) 2>conftest.er1
4837 ac_status=$?
4838 grep -v '^ *+' conftest.er1 >conftest.err
4839 rm -f conftest.er1
4840 cat conftest.err >&5
4841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4842 (exit $ac_status); } &&
4843 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4845 (eval $ac_try) 2>&5
4846 ac_status=$?
4847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4848 (exit $ac_status); }; } &&
4849 { ac_try='test -s conftest.$ac_objext'
4850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4851 (eval $ac_try) 2>&5
4852 ac_status=$?
4853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4854 (exit $ac_status); }; }; then
4855 ac_cv_header_stdc=yes
4856 else
4857 echo "$as_me: failed program was:" >&5
4858 sed 's/^/| /' conftest.$ac_ext >&5
4860 ac_cv_header_stdc=no
4862 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4864 if test $ac_cv_header_stdc = yes; then
4865 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4866 cat >conftest.$ac_ext <<_ACEOF
4867 /* confdefs.h. */
4868 _ACEOF
4869 cat confdefs.h >>conftest.$ac_ext
4870 cat >>conftest.$ac_ext <<_ACEOF
4871 /* end confdefs.h. */
4872 #include <string.h>
4874 _ACEOF
4875 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4876 $EGREP "memchr" >/dev/null 2>&1; then
4878 else
4879 ac_cv_header_stdc=no
4881 rm -f conftest*
4885 if test $ac_cv_header_stdc = yes; then
4886 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4887 cat >conftest.$ac_ext <<_ACEOF
4888 /* confdefs.h. */
4889 _ACEOF
4890 cat confdefs.h >>conftest.$ac_ext
4891 cat >>conftest.$ac_ext <<_ACEOF
4892 /* end confdefs.h. */
4893 #include <stdlib.h>
4895 _ACEOF
4896 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4897 $EGREP "free" >/dev/null 2>&1; then
4899 else
4900 ac_cv_header_stdc=no
4902 rm -f conftest*
4906 if test $ac_cv_header_stdc = yes; then
4907 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4908 if test "$cross_compiling" = yes; then
4910 else
4911 cat >conftest.$ac_ext <<_ACEOF
4912 /* confdefs.h. */
4913 _ACEOF
4914 cat confdefs.h >>conftest.$ac_ext
4915 cat >>conftest.$ac_ext <<_ACEOF
4916 /* end confdefs.h. */
4917 #include <ctype.h>
4918 #if ((' ' & 0x0FF) == 0x020)
4919 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4920 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4921 #else
4922 # define ISLOWER(c) \
4923 (('a' <= (c) && (c) <= 'i') \
4924 || ('j' <= (c) && (c) <= 'r') \
4925 || ('s' <= (c) && (c) <= 'z'))
4926 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4927 #endif
4929 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4931 main ()
4933 int i;
4934 for (i = 0; i < 256; i++)
4935 if (XOR (islower (i), ISLOWER (i))
4936 || toupper (i) != TOUPPER (i))
4937 exit(2);
4938 exit (0);
4940 _ACEOF
4941 rm -f conftest$ac_exeext
4942 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4943 (eval $ac_link) 2>&5
4944 ac_status=$?
4945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4946 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4948 (eval $ac_try) 2>&5
4949 ac_status=$?
4950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4951 (exit $ac_status); }; }; then
4953 else
4954 echo "$as_me: program exited with status $ac_status" >&5
4955 echo "$as_me: failed program was:" >&5
4956 sed 's/^/| /' conftest.$ac_ext >&5
4958 ( exit $ac_status )
4959 ac_cv_header_stdc=no
4961 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4965 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4966 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4967 if test $ac_cv_header_stdc = yes; then
4969 cat >>confdefs.h <<\_ACEOF
4970 #define STDC_HEADERS 1
4971 _ACEOF
4975 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4985 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4986 inttypes.h stdint.h unistd.h
4988 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4989 echo "$as_me:$LINENO: checking for $ac_header" >&5
4990 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4991 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4992 echo $ECHO_N "(cached) $ECHO_C" >&6
4993 else
4994 cat >conftest.$ac_ext <<_ACEOF
4995 /* confdefs.h. */
4996 _ACEOF
4997 cat confdefs.h >>conftest.$ac_ext
4998 cat >>conftest.$ac_ext <<_ACEOF
4999 /* end confdefs.h. */
5000 $ac_includes_default
5002 #include <$ac_header>
5003 _ACEOF
5004 rm -f conftest.$ac_objext
5005 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5006 (eval $ac_compile) 2>conftest.er1
5007 ac_status=$?
5008 grep -v '^ *+' conftest.er1 >conftest.err
5009 rm -f conftest.er1
5010 cat conftest.err >&5
5011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5012 (exit $ac_status); } &&
5013 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5015 (eval $ac_try) 2>&5
5016 ac_status=$?
5017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5018 (exit $ac_status); }; } &&
5019 { ac_try='test -s conftest.$ac_objext'
5020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5021 (eval $ac_try) 2>&5
5022 ac_status=$?
5023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5024 (exit $ac_status); }; }; then
5025 eval "$as_ac_Header=yes"
5026 else
5027 echo "$as_me: failed program was:" >&5
5028 sed 's/^/| /' conftest.$ac_ext >&5
5030 eval "$as_ac_Header=no"
5032 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5034 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5035 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5036 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5037 cat >>confdefs.h <<_ACEOF
5038 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5039 _ACEOF
5043 done
5049 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
5051 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5052 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5053 echo "$as_me:$LINENO: checking for $ac_header" >&5
5054 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5055 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5056 echo $ECHO_N "(cached) $ECHO_C" >&6
5058 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5059 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5060 else
5061 # Is the header compilable?
5062 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5063 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5064 cat >conftest.$ac_ext <<_ACEOF
5065 /* confdefs.h. */
5066 _ACEOF
5067 cat confdefs.h >>conftest.$ac_ext
5068 cat >>conftest.$ac_ext <<_ACEOF
5069 /* end confdefs.h. */
5070 $ac_includes_default
5071 #include <$ac_header>
5072 _ACEOF
5073 rm -f conftest.$ac_objext
5074 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5075 (eval $ac_compile) 2>conftest.er1
5076 ac_status=$?
5077 grep -v '^ *+' conftest.er1 >conftest.err
5078 rm -f conftest.er1
5079 cat conftest.err >&5
5080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5081 (exit $ac_status); } &&
5082 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5084 (eval $ac_try) 2>&5
5085 ac_status=$?
5086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5087 (exit $ac_status); }; } &&
5088 { ac_try='test -s conftest.$ac_objext'
5089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5090 (eval $ac_try) 2>&5
5091 ac_status=$?
5092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5093 (exit $ac_status); }; }; then
5094 ac_header_compiler=yes
5095 else
5096 echo "$as_me: failed program was:" >&5
5097 sed 's/^/| /' conftest.$ac_ext >&5
5099 ac_header_compiler=no
5101 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5102 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5103 echo "${ECHO_T}$ac_header_compiler" >&6
5105 # Is the header present?
5106 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5107 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5108 cat >conftest.$ac_ext <<_ACEOF
5109 /* confdefs.h. */
5110 _ACEOF
5111 cat confdefs.h >>conftest.$ac_ext
5112 cat >>conftest.$ac_ext <<_ACEOF
5113 /* end confdefs.h. */
5114 #include <$ac_header>
5115 _ACEOF
5116 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5117 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5118 ac_status=$?
5119 grep -v '^ *+' conftest.er1 >conftest.err
5120 rm -f conftest.er1
5121 cat conftest.err >&5
5122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5123 (exit $ac_status); } >/dev/null; then
5124 if test -s conftest.err; then
5125 ac_cpp_err=$ac_c_preproc_warn_flag
5126 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5127 else
5128 ac_cpp_err=
5130 else
5131 ac_cpp_err=yes
5133 if test -z "$ac_cpp_err"; then
5134 ac_header_preproc=yes
5135 else
5136 echo "$as_me: failed program was:" >&5
5137 sed 's/^/| /' conftest.$ac_ext >&5
5139 ac_header_preproc=no
5141 rm -f conftest.err conftest.$ac_ext
5142 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5143 echo "${ECHO_T}$ac_header_preproc" >&6
5145 # So? What about this header?
5146 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5147 yes:no: )
5148 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5149 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5150 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5151 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5152 ac_header_preproc=yes
5154 no:yes:* )
5155 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5156 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5157 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5158 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5159 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5160 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5161 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5162 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5163 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5164 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5165 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5166 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5168 cat <<\_ASBOX
5169 ## ------------------------------------------ ##
5170 ## Report this to the AC_PACKAGE_NAME lists. ##
5171 ## ------------------------------------------ ##
5172 _ASBOX
5174 sed "s/^/$as_me: WARNING: /" >&2
5176 esac
5177 echo "$as_me:$LINENO: checking for $ac_header" >&5
5178 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5179 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5180 echo $ECHO_N "(cached) $ECHO_C" >&6
5181 else
5182 eval "$as_ac_Header=\$ac_header_preproc"
5184 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5185 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5188 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5189 cat >>confdefs.h <<_ACEOF
5190 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5191 _ACEOF
5195 done
5197 # Emulation library used on NetBSD.
5198 echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
5199 echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6
5200 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
5201 echo $ECHO_N "(cached) $ECHO_C" >&6
5202 else
5203 ac_check_lib_save_LIBS=$LIBS
5204 LIBS="-lossaudio $LIBS"
5205 cat >conftest.$ac_ext <<_ACEOF
5206 /* confdefs.h. */
5207 _ACEOF
5208 cat confdefs.h >>conftest.$ac_ext
5209 cat >>conftest.$ac_ext <<_ACEOF
5210 /* end confdefs.h. */
5212 /* Override any gcc2 internal prototype to avoid an error. */
5213 #ifdef __cplusplus
5214 extern "C"
5215 #endif
5216 /* We use char because int might match the return type of a gcc2
5217 builtin and then its argument prototype would still apply. */
5218 char _oss_ioctl ();
5220 main ()
5222 _oss_ioctl ();
5224 return 0;
5226 _ACEOF
5227 rm -f conftest.$ac_objext conftest$ac_exeext
5228 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5229 (eval $ac_link) 2>conftest.er1
5230 ac_status=$?
5231 grep -v '^ *+' conftest.er1 >conftest.err
5232 rm -f conftest.er1
5233 cat conftest.err >&5
5234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5235 (exit $ac_status); } &&
5236 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5238 (eval $ac_try) 2>&5
5239 ac_status=$?
5240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5241 (exit $ac_status); }; } &&
5242 { ac_try='test -s conftest$ac_exeext'
5243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5244 (eval $ac_try) 2>&5
5245 ac_status=$?
5246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5247 (exit $ac_status); }; }; then
5248 ac_cv_lib_ossaudio__oss_ioctl=yes
5249 else
5250 echo "$as_me: failed program was:" >&5
5251 sed 's/^/| /' conftest.$ac_ext >&5
5253 ac_cv_lib_ossaudio__oss_ioctl=no
5255 rm -f conftest.err conftest.$ac_objext \
5256 conftest$ac_exeext conftest.$ac_ext
5257 LIBS=$ac_check_lib_save_LIBS
5259 echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
5260 echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6
5261 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
5262 LIBSOUND=-lossaudio
5263 else
5264 LIBSOUND=
5295 for ac_header in sys/select.h sys/timeb.h sys/time.h unistd.h utime.h \
5296 linux/version.h sys/systeminfo.h termios.h limits.h string.h stdlib.h \
5297 termcap.h stdio_ext.h fcntl.h strings.h coff.h pty.h sys/mman.h \
5298 sys/param.h sys/vlimit.h sys/resource.h locale.h sys/_mbstate_t.h \
5299 sys/utsname.h pwd.h
5301 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5302 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5303 echo "$as_me:$LINENO: checking for $ac_header" >&5
5304 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5305 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5306 echo $ECHO_N "(cached) $ECHO_C" >&6
5308 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5309 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5310 else
5311 # Is the header compilable?
5312 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5313 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5314 cat >conftest.$ac_ext <<_ACEOF
5315 /* confdefs.h. */
5316 _ACEOF
5317 cat confdefs.h >>conftest.$ac_ext
5318 cat >>conftest.$ac_ext <<_ACEOF
5319 /* end confdefs.h. */
5320 $ac_includes_default
5321 #include <$ac_header>
5322 _ACEOF
5323 rm -f conftest.$ac_objext
5324 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5325 (eval $ac_compile) 2>conftest.er1
5326 ac_status=$?
5327 grep -v '^ *+' conftest.er1 >conftest.err
5328 rm -f conftest.er1
5329 cat conftest.err >&5
5330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5331 (exit $ac_status); } &&
5332 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5334 (eval $ac_try) 2>&5
5335 ac_status=$?
5336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5337 (exit $ac_status); }; } &&
5338 { ac_try='test -s conftest.$ac_objext'
5339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5340 (eval $ac_try) 2>&5
5341 ac_status=$?
5342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5343 (exit $ac_status); }; }; then
5344 ac_header_compiler=yes
5345 else
5346 echo "$as_me: failed program was:" >&5
5347 sed 's/^/| /' conftest.$ac_ext >&5
5349 ac_header_compiler=no
5351 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5352 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5353 echo "${ECHO_T}$ac_header_compiler" >&6
5355 # Is the header present?
5356 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5357 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5358 cat >conftest.$ac_ext <<_ACEOF
5359 /* confdefs.h. */
5360 _ACEOF
5361 cat confdefs.h >>conftest.$ac_ext
5362 cat >>conftest.$ac_ext <<_ACEOF
5363 /* end confdefs.h. */
5364 #include <$ac_header>
5365 _ACEOF
5366 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5367 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5368 ac_status=$?
5369 grep -v '^ *+' conftest.er1 >conftest.err
5370 rm -f conftest.er1
5371 cat conftest.err >&5
5372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5373 (exit $ac_status); } >/dev/null; then
5374 if test -s conftest.err; then
5375 ac_cpp_err=$ac_c_preproc_warn_flag
5376 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5377 else
5378 ac_cpp_err=
5380 else
5381 ac_cpp_err=yes
5383 if test -z "$ac_cpp_err"; then
5384 ac_header_preproc=yes
5385 else
5386 echo "$as_me: failed program was:" >&5
5387 sed 's/^/| /' conftest.$ac_ext >&5
5389 ac_header_preproc=no
5391 rm -f conftest.err conftest.$ac_ext
5392 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5393 echo "${ECHO_T}$ac_header_preproc" >&6
5395 # So? What about this header?
5396 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5397 yes:no: )
5398 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5399 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5400 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5401 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5402 ac_header_preproc=yes
5404 no:yes:* )
5405 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5406 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5407 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5408 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5409 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5410 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5411 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5412 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5413 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5414 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5415 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5416 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5418 cat <<\_ASBOX
5419 ## ------------------------------------------ ##
5420 ## Report this to the AC_PACKAGE_NAME lists. ##
5421 ## ------------------------------------------ ##
5422 _ASBOX
5424 sed "s/^/$as_me: WARNING: /" >&2
5426 esac
5427 echo "$as_me:$LINENO: checking for $ac_header" >&5
5428 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5429 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5430 echo $ECHO_N "(cached) $ECHO_C" >&6
5431 else
5432 eval "$as_ac_Header=\$ac_header_preproc"
5434 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5435 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5438 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5439 cat >>confdefs.h <<_ACEOF
5440 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5441 _ACEOF
5445 done
5448 echo "$as_me:$LINENO: checking if personality LINUX32 can be set" >&5
5449 echo $ECHO_N "checking if personality LINUX32 can be set... $ECHO_C" >&6
5450 cat >conftest.$ac_ext <<_ACEOF
5451 /* confdefs.h. */
5452 _ACEOF
5453 cat confdefs.h >>conftest.$ac_ext
5454 cat >>conftest.$ac_ext <<_ACEOF
5455 /* end confdefs.h. */
5456 #include <sys/personality.h>
5458 main ()
5460 personality (PER_LINUX32)
5462 return 0;
5464 _ACEOF
5465 rm -f conftest.$ac_objext
5466 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5467 (eval $ac_compile) 2>conftest.er1
5468 ac_status=$?
5469 grep -v '^ *+' conftest.er1 >conftest.err
5470 rm -f conftest.er1
5471 cat conftest.err >&5
5472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5473 (exit $ac_status); } &&
5474 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5476 (eval $ac_try) 2>&5
5477 ac_status=$?
5478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5479 (exit $ac_status); }; } &&
5480 { ac_try='test -s conftest.$ac_objext'
5481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5482 (eval $ac_try) 2>&5
5483 ac_status=$?
5484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5485 (exit $ac_status); }; }; then
5486 emacs_cv_personality_linux32=yes
5487 else
5488 echo "$as_me: failed program was:" >&5
5489 sed 's/^/| /' conftest.$ac_ext >&5
5491 emacs_cv_personality_linux32=no
5493 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5494 echo "$as_me:$LINENO: result: $emacs_cv_personality_linux32" >&5
5495 echo "${ECHO_T}$emacs_cv_personality_linux32" >&6
5497 if test $emacs_cv_personality_linux32 = yes; then
5499 cat >>confdefs.h <<\_ACEOF
5500 #define HAVE_PERSONALITY_LINUX32 1
5501 _ACEOF
5506 for ac_header in term.h
5508 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5509 echo "$as_me:$LINENO: checking for $ac_header" >&5
5510 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5511 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5512 echo $ECHO_N "(cached) $ECHO_C" >&6
5513 else
5514 cat >conftest.$ac_ext <<_ACEOF
5515 /* confdefs.h. */
5516 _ACEOF
5517 cat confdefs.h >>conftest.$ac_ext
5518 cat >>conftest.$ac_ext <<_ACEOF
5519 /* end confdefs.h. */
5520 #include <$ac_header>
5521 _ACEOF
5522 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5523 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5524 ac_status=$?
5525 grep -v '^ *+' conftest.er1 >conftest.err
5526 rm -f conftest.er1
5527 cat conftest.err >&5
5528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5529 (exit $ac_status); } >/dev/null; then
5530 if test -s conftest.err; then
5531 ac_cpp_err=$ac_c_preproc_warn_flag
5532 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5533 else
5534 ac_cpp_err=
5536 else
5537 ac_cpp_err=yes
5539 if test -z "$ac_cpp_err"; then
5540 eval "$as_ac_Header=yes"
5541 else
5542 echo "$as_me: failed program was:" >&5
5543 sed 's/^/| /' conftest.$ac_ext >&5
5545 eval "$as_ac_Header=no"
5547 rm -f conftest.err conftest.$ac_ext
5549 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5550 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5551 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5552 cat >>confdefs.h <<_ACEOF
5553 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5554 _ACEOF
5558 done
5560 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5561 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5562 if test "${ac_cv_header_stdc+set}" = set; then
5563 echo $ECHO_N "(cached) $ECHO_C" >&6
5564 else
5565 cat >conftest.$ac_ext <<_ACEOF
5566 /* confdefs.h. */
5567 _ACEOF
5568 cat confdefs.h >>conftest.$ac_ext
5569 cat >>conftest.$ac_ext <<_ACEOF
5570 /* end confdefs.h. */
5571 #include <stdlib.h>
5572 #include <stdarg.h>
5573 #include <string.h>
5574 #include <float.h>
5577 main ()
5581 return 0;
5583 _ACEOF
5584 rm -f conftest.$ac_objext
5585 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5586 (eval $ac_compile) 2>conftest.er1
5587 ac_status=$?
5588 grep -v '^ *+' conftest.er1 >conftest.err
5589 rm -f conftest.er1
5590 cat conftest.err >&5
5591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5592 (exit $ac_status); } &&
5593 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5595 (eval $ac_try) 2>&5
5596 ac_status=$?
5597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5598 (exit $ac_status); }; } &&
5599 { ac_try='test -s conftest.$ac_objext'
5600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5601 (eval $ac_try) 2>&5
5602 ac_status=$?
5603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5604 (exit $ac_status); }; }; then
5605 ac_cv_header_stdc=yes
5606 else
5607 echo "$as_me: failed program was:" >&5
5608 sed 's/^/| /' conftest.$ac_ext >&5
5610 ac_cv_header_stdc=no
5612 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5614 if test $ac_cv_header_stdc = yes; then
5615 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5616 cat >conftest.$ac_ext <<_ACEOF
5617 /* confdefs.h. */
5618 _ACEOF
5619 cat confdefs.h >>conftest.$ac_ext
5620 cat >>conftest.$ac_ext <<_ACEOF
5621 /* end confdefs.h. */
5622 #include <string.h>
5624 _ACEOF
5625 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5626 $EGREP "memchr" >/dev/null 2>&1; then
5628 else
5629 ac_cv_header_stdc=no
5631 rm -f conftest*
5635 if test $ac_cv_header_stdc = yes; then
5636 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5637 cat >conftest.$ac_ext <<_ACEOF
5638 /* confdefs.h. */
5639 _ACEOF
5640 cat confdefs.h >>conftest.$ac_ext
5641 cat >>conftest.$ac_ext <<_ACEOF
5642 /* end confdefs.h. */
5643 #include <stdlib.h>
5645 _ACEOF
5646 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5647 $EGREP "free" >/dev/null 2>&1; then
5649 else
5650 ac_cv_header_stdc=no
5652 rm -f conftest*
5656 if test $ac_cv_header_stdc = yes; then
5657 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5658 if test "$cross_compiling" = yes; then
5660 else
5661 cat >conftest.$ac_ext <<_ACEOF
5662 /* confdefs.h. */
5663 _ACEOF
5664 cat confdefs.h >>conftest.$ac_ext
5665 cat >>conftest.$ac_ext <<_ACEOF
5666 /* end confdefs.h. */
5667 #include <ctype.h>
5668 #if ((' ' & 0x0FF) == 0x020)
5669 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5670 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5671 #else
5672 # define ISLOWER(c) \
5673 (('a' <= (c) && (c) <= 'i') \
5674 || ('j' <= (c) && (c) <= 'r') \
5675 || ('s' <= (c) && (c) <= 'z'))
5676 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5677 #endif
5679 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5681 main ()
5683 int i;
5684 for (i = 0; i < 256; i++)
5685 if (XOR (islower (i), ISLOWER (i))
5686 || toupper (i) != TOUPPER (i))
5687 exit(2);
5688 exit (0);
5690 _ACEOF
5691 rm -f conftest$ac_exeext
5692 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5693 (eval $ac_link) 2>&5
5694 ac_status=$?
5695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5696 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5698 (eval $ac_try) 2>&5
5699 ac_status=$?
5700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5701 (exit $ac_status); }; }; then
5703 else
5704 echo "$as_me: program exited with status $ac_status" >&5
5705 echo "$as_me: failed program was:" >&5
5706 sed 's/^/| /' conftest.$ac_ext >&5
5708 ( exit $ac_status )
5709 ac_cv_header_stdc=no
5711 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5715 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5716 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5717 if test $ac_cv_header_stdc = yes; then
5719 cat >>confdefs.h <<\_ACEOF
5720 #define STDC_HEADERS 1
5721 _ACEOF
5725 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
5726 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
5727 if test "${ac_cv_header_time+set}" = set; then
5728 echo $ECHO_N "(cached) $ECHO_C" >&6
5729 else
5730 cat >conftest.$ac_ext <<_ACEOF
5731 /* confdefs.h. */
5732 _ACEOF
5733 cat confdefs.h >>conftest.$ac_ext
5734 cat >>conftest.$ac_ext <<_ACEOF
5735 /* end confdefs.h. */
5736 #include <sys/types.h>
5737 #include <sys/time.h>
5738 #include <time.h>
5741 main ()
5743 if ((struct tm *) 0)
5744 return 0;
5746 return 0;
5748 _ACEOF
5749 rm -f conftest.$ac_objext
5750 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5751 (eval $ac_compile) 2>conftest.er1
5752 ac_status=$?
5753 grep -v '^ *+' conftest.er1 >conftest.err
5754 rm -f conftest.er1
5755 cat conftest.err >&5
5756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5757 (exit $ac_status); } &&
5758 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5760 (eval $ac_try) 2>&5
5761 ac_status=$?
5762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5763 (exit $ac_status); }; } &&
5764 { ac_try='test -s conftest.$ac_objext'
5765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5766 (eval $ac_try) 2>&5
5767 ac_status=$?
5768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5769 (exit $ac_status); }; }; then
5770 ac_cv_header_time=yes
5771 else
5772 echo "$as_me: failed program was:" >&5
5773 sed 's/^/| /' conftest.$ac_ext >&5
5775 ac_cv_header_time=no
5777 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5779 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
5780 echo "${ECHO_T}$ac_cv_header_time" >&6
5781 if test $ac_cv_header_time = yes; then
5783 cat >>confdefs.h <<\_ACEOF
5784 #define TIME_WITH_SYS_TIME 1
5785 _ACEOF
5789 echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
5790 echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6
5791 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
5792 echo $ECHO_N "(cached) $ECHO_C" >&6
5793 else
5794 cat >conftest.$ac_ext <<_ACEOF
5795 /* confdefs.h. */
5796 _ACEOF
5797 cat confdefs.h >>conftest.$ac_ext
5798 cat >>conftest.$ac_ext <<_ACEOF
5799 /* end confdefs.h. */
5800 $ac_includes_default
5802 main ()
5804 #ifndef sys_siglist
5805 char *p = (char *) sys_siglist;
5806 #endif
5809 return 0;
5811 _ACEOF
5812 rm -f conftest.$ac_objext
5813 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5814 (eval $ac_compile) 2>conftest.er1
5815 ac_status=$?
5816 grep -v '^ *+' conftest.er1 >conftest.err
5817 rm -f conftest.er1
5818 cat conftest.err >&5
5819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5820 (exit $ac_status); } &&
5821 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5823 (eval $ac_try) 2>&5
5824 ac_status=$?
5825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5826 (exit $ac_status); }; } &&
5827 { ac_try='test -s conftest.$ac_objext'
5828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5829 (eval $ac_try) 2>&5
5830 ac_status=$?
5831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5832 (exit $ac_status); }; }; then
5833 ac_cv_have_decl_sys_siglist=yes
5834 else
5835 echo "$as_me: failed program was:" >&5
5836 sed 's/^/| /' conftest.$ac_ext >&5
5838 ac_cv_have_decl_sys_siglist=no
5840 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5842 echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
5843 echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6
5844 if test $ac_cv_have_decl_sys_siglist = yes; then
5846 cat >>confdefs.h <<_ACEOF
5847 #define HAVE_DECL_SYS_SIGLIST 1
5848 _ACEOF
5851 else
5852 cat >>confdefs.h <<_ACEOF
5853 #define HAVE_DECL_SYS_SIGLIST 0
5854 _ACEOF
5860 if test $ac_cv_have_decl_sys_siglist != yes; then
5861 # For Tru64, at least:
5862 echo "$as_me:$LINENO: checking whether __sys_siglist is declared" >&5
5863 echo $ECHO_N "checking whether __sys_siglist is declared... $ECHO_C" >&6
5864 if test "${ac_cv_have_decl___sys_siglist+set}" = set; then
5865 echo $ECHO_N "(cached) $ECHO_C" >&6
5866 else
5867 cat >conftest.$ac_ext <<_ACEOF
5868 /* confdefs.h. */
5869 _ACEOF
5870 cat confdefs.h >>conftest.$ac_ext
5871 cat >>conftest.$ac_ext <<_ACEOF
5872 /* end confdefs.h. */
5873 $ac_includes_default
5875 main ()
5877 #ifndef __sys_siglist
5878 char *p = (char *) __sys_siglist;
5879 #endif
5882 return 0;
5884 _ACEOF
5885 rm -f conftest.$ac_objext
5886 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5887 (eval $ac_compile) 2>conftest.er1
5888 ac_status=$?
5889 grep -v '^ *+' conftest.er1 >conftest.err
5890 rm -f conftest.er1
5891 cat conftest.err >&5
5892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5893 (exit $ac_status); } &&
5894 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5896 (eval $ac_try) 2>&5
5897 ac_status=$?
5898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5899 (exit $ac_status); }; } &&
5900 { ac_try='test -s conftest.$ac_objext'
5901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5902 (eval $ac_try) 2>&5
5903 ac_status=$?
5904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5905 (exit $ac_status); }; }; then
5906 ac_cv_have_decl___sys_siglist=yes
5907 else
5908 echo "$as_me: failed program was:" >&5
5909 sed 's/^/| /' conftest.$ac_ext >&5
5911 ac_cv_have_decl___sys_siglist=no
5913 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5915 echo "$as_me:$LINENO: result: $ac_cv_have_decl___sys_siglist" >&5
5916 echo "${ECHO_T}$ac_cv_have_decl___sys_siglist" >&6
5917 if test $ac_cv_have_decl___sys_siglist = yes; then
5919 cat >>confdefs.h <<_ACEOF
5920 #define HAVE_DECL___SYS_SIGLIST 1
5921 _ACEOF
5924 else
5925 cat >>confdefs.h <<_ACEOF
5926 #define HAVE_DECL___SYS_SIGLIST 0
5927 _ACEOF
5933 if test $ac_cv_have_decl___sys_siglist = yes; then
5935 cat >>confdefs.h <<\_ACEOF
5936 #define sys_siglist __sys_siglist
5937 _ACEOF
5941 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
5942 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
5943 if test "${ac_cv_header_sys_wait_h+set}" = set; then
5944 echo $ECHO_N "(cached) $ECHO_C" >&6
5945 else
5946 cat >conftest.$ac_ext <<_ACEOF
5947 /* confdefs.h. */
5948 _ACEOF
5949 cat confdefs.h >>conftest.$ac_ext
5950 cat >>conftest.$ac_ext <<_ACEOF
5951 /* end confdefs.h. */
5952 #include <sys/types.h>
5953 #include <sys/wait.h>
5954 #ifndef WEXITSTATUS
5955 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
5956 #endif
5957 #ifndef WIFEXITED
5958 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
5959 #endif
5962 main ()
5964 int s;
5965 wait (&s);
5966 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
5968 return 0;
5970 _ACEOF
5971 rm -f conftest.$ac_objext
5972 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5973 (eval $ac_compile) 2>conftest.er1
5974 ac_status=$?
5975 grep -v '^ *+' conftest.er1 >conftest.err
5976 rm -f conftest.er1
5977 cat conftest.err >&5
5978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5979 (exit $ac_status); } &&
5980 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5982 (eval $ac_try) 2>&5
5983 ac_status=$?
5984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5985 (exit $ac_status); }; } &&
5986 { ac_try='test -s conftest.$ac_objext'
5987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5988 (eval $ac_try) 2>&5
5989 ac_status=$?
5990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5991 (exit $ac_status); }; }; then
5992 ac_cv_header_sys_wait_h=yes
5993 else
5994 echo "$as_me: failed program was:" >&5
5995 sed 's/^/| /' conftest.$ac_ext >&5
5997 ac_cv_header_sys_wait_h=no
5999 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6001 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
6002 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
6003 if test $ac_cv_header_sys_wait_h = yes; then
6005 cat >>confdefs.h <<\_ACEOF
6006 #define HAVE_SYS_WAIT_H 1
6007 _ACEOF
6012 echo "$as_me:$LINENO: checking for struct utimbuf" >&5
6013 echo $ECHO_N "checking for struct utimbuf... $ECHO_C" >&6
6014 if test "${emacs_cv_struct_utimbuf+set}" = set; then
6015 echo $ECHO_N "(cached) $ECHO_C" >&6
6016 else
6017 cat >conftest.$ac_ext <<_ACEOF
6018 /* confdefs.h. */
6019 _ACEOF
6020 cat confdefs.h >>conftest.$ac_ext
6021 cat >>conftest.$ac_ext <<_ACEOF
6022 /* end confdefs.h. */
6023 #ifdef TIME_WITH_SYS_TIME
6024 #include <sys/time.h>
6025 #include <time.h>
6026 #else
6027 #ifdef HAVE_SYS_TIME_H
6028 #include <sys/time.h>
6029 #else
6030 #include <time.h>
6031 #endif
6032 #endif
6033 #ifdef HAVE_UTIME_H
6034 #include <utime.h>
6035 #endif
6037 main ()
6039 static struct utimbuf x; x.actime = x.modtime;
6041 return 0;
6043 _ACEOF
6044 rm -f conftest.$ac_objext
6045 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6046 (eval $ac_compile) 2>conftest.er1
6047 ac_status=$?
6048 grep -v '^ *+' conftest.er1 >conftest.err
6049 rm -f conftest.er1
6050 cat conftest.err >&5
6051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6052 (exit $ac_status); } &&
6053 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6055 (eval $ac_try) 2>&5
6056 ac_status=$?
6057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6058 (exit $ac_status); }; } &&
6059 { ac_try='test -s conftest.$ac_objext'
6060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6061 (eval $ac_try) 2>&5
6062 ac_status=$?
6063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6064 (exit $ac_status); }; }; then
6065 emacs_cv_struct_utimbuf=yes
6066 else
6067 echo "$as_me: failed program was:" >&5
6068 sed 's/^/| /' conftest.$ac_ext >&5
6070 emacs_cv_struct_utimbuf=no
6072 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6074 echo "$as_me:$LINENO: result: $emacs_cv_struct_utimbuf" >&5
6075 echo "${ECHO_T}$emacs_cv_struct_utimbuf" >&6
6076 if test $emacs_cv_struct_utimbuf = yes; then
6078 cat >>confdefs.h <<\_ACEOF
6079 #define HAVE_STRUCT_UTIMBUF 1
6080 _ACEOF
6084 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
6085 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
6086 if test "${ac_cv_type_signal+set}" = set; then
6087 echo $ECHO_N "(cached) $ECHO_C" >&6
6088 else
6089 cat >conftest.$ac_ext <<_ACEOF
6090 /* confdefs.h. */
6091 _ACEOF
6092 cat confdefs.h >>conftest.$ac_ext
6093 cat >>conftest.$ac_ext <<_ACEOF
6094 /* end confdefs.h. */
6095 #include <sys/types.h>
6096 #include <signal.h>
6097 #ifdef signal
6098 # undef signal
6099 #endif
6100 #ifdef __cplusplus
6101 extern "C" void (*signal (int, void (*)(int)))(int);
6102 #else
6103 void (*signal ()) ();
6104 #endif
6107 main ()
6109 int i;
6111 return 0;
6113 _ACEOF
6114 rm -f conftest.$ac_objext
6115 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6116 (eval $ac_compile) 2>conftest.er1
6117 ac_status=$?
6118 grep -v '^ *+' conftest.er1 >conftest.err
6119 rm -f conftest.er1
6120 cat conftest.err >&5
6121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6122 (exit $ac_status); } &&
6123 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6125 (eval $ac_try) 2>&5
6126 ac_status=$?
6127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6128 (exit $ac_status); }; } &&
6129 { ac_try='test -s conftest.$ac_objext'
6130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6131 (eval $ac_try) 2>&5
6132 ac_status=$?
6133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6134 (exit $ac_status); }; }; then
6135 ac_cv_type_signal=void
6136 else
6137 echo "$as_me: failed program was:" >&5
6138 sed 's/^/| /' conftest.$ac_ext >&5
6140 ac_cv_type_signal=int
6142 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6144 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
6145 echo "${ECHO_T}$ac_cv_type_signal" >&6
6147 cat >>confdefs.h <<_ACEOF
6148 #define RETSIGTYPE $ac_cv_type_signal
6149 _ACEOF
6153 echo "$as_me:$LINENO: checking for speed_t" >&5
6154 echo $ECHO_N "checking for speed_t... $ECHO_C" >&6
6155 if test "${emacs_cv_speed_t+set}" = set; then
6156 echo $ECHO_N "(cached) $ECHO_C" >&6
6157 else
6158 cat >conftest.$ac_ext <<_ACEOF
6159 /* confdefs.h. */
6160 _ACEOF
6161 cat confdefs.h >>conftest.$ac_ext
6162 cat >>conftest.$ac_ext <<_ACEOF
6163 /* end confdefs.h. */
6164 #include <termios.h>
6166 main ()
6168 speed_t x = 1;
6170 return 0;
6172 _ACEOF
6173 rm -f conftest.$ac_objext
6174 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6175 (eval $ac_compile) 2>conftest.er1
6176 ac_status=$?
6177 grep -v '^ *+' conftest.er1 >conftest.err
6178 rm -f conftest.er1
6179 cat conftest.err >&5
6180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6181 (exit $ac_status); } &&
6182 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6184 (eval $ac_try) 2>&5
6185 ac_status=$?
6186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6187 (exit $ac_status); }; } &&
6188 { ac_try='test -s conftest.$ac_objext'
6189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6190 (eval $ac_try) 2>&5
6191 ac_status=$?
6192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6193 (exit $ac_status); }; }; then
6194 emacs_cv_speed_t=yes
6195 else
6196 echo "$as_me: failed program was:" >&5
6197 sed 's/^/| /' conftest.$ac_ext >&5
6199 emacs_cv_speed_t=no
6201 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6203 echo "$as_me:$LINENO: result: $emacs_cv_speed_t" >&5
6204 echo "${ECHO_T}$emacs_cv_speed_t" >&6
6205 if test $emacs_cv_speed_t = yes; then
6207 cat >>confdefs.h <<\_ACEOF
6208 #define HAVE_SPEED_T 1
6209 _ACEOF
6213 echo "$as_me:$LINENO: checking for struct timeval" >&5
6214 echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6
6215 if test "${emacs_cv_struct_timeval+set}" = set; then
6216 echo $ECHO_N "(cached) $ECHO_C" >&6
6217 else
6218 cat >conftest.$ac_ext <<_ACEOF
6219 /* confdefs.h. */
6220 _ACEOF
6221 cat confdefs.h >>conftest.$ac_ext
6222 cat >>conftest.$ac_ext <<_ACEOF
6223 /* end confdefs.h. */
6224 #ifdef TIME_WITH_SYS_TIME
6225 #include <sys/time.h>
6226 #include <time.h>
6227 #else
6228 #ifdef HAVE_SYS_TIME_H
6229 #include <sys/time.h>
6230 #else
6231 #include <time.h>
6232 #endif
6233 #endif
6235 main ()
6237 static struct timeval x; x.tv_sec = x.tv_usec;
6239 return 0;
6241 _ACEOF
6242 rm -f conftest.$ac_objext
6243 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6244 (eval $ac_compile) 2>conftest.er1
6245 ac_status=$?
6246 grep -v '^ *+' conftest.er1 >conftest.err
6247 rm -f conftest.er1
6248 cat conftest.err >&5
6249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6250 (exit $ac_status); } &&
6251 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6253 (eval $ac_try) 2>&5
6254 ac_status=$?
6255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6256 (exit $ac_status); }; } &&
6257 { ac_try='test -s conftest.$ac_objext'
6258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6259 (eval $ac_try) 2>&5
6260 ac_status=$?
6261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6262 (exit $ac_status); }; }; then
6263 emacs_cv_struct_timeval=yes
6264 else
6265 echo "$as_me: failed program was:" >&5
6266 sed 's/^/| /' conftest.$ac_ext >&5
6268 emacs_cv_struct_timeval=no
6270 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6272 echo "$as_me:$LINENO: result: $emacs_cv_struct_timeval" >&5
6273 echo "${ECHO_T}$emacs_cv_struct_timeval" >&6
6274 HAVE_TIMEVAL=$emacs_cv_struct_timeval
6275 if test $emacs_cv_struct_timeval = yes; then
6277 cat >>confdefs.h <<\_ACEOF
6278 #define HAVE_TIMEVAL 1
6279 _ACEOF
6283 echo "$as_me:$LINENO: checking for struct exception" >&5
6284 echo $ECHO_N "checking for struct exception... $ECHO_C" >&6
6285 if test "${emacs_cv_struct_exception+set}" = set; then
6286 echo $ECHO_N "(cached) $ECHO_C" >&6
6287 else
6288 cat >conftest.$ac_ext <<_ACEOF
6289 /* confdefs.h. */
6290 _ACEOF
6291 cat confdefs.h >>conftest.$ac_ext
6292 cat >>conftest.$ac_ext <<_ACEOF
6293 /* end confdefs.h. */
6294 #include <math.h>
6296 main ()
6298 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
6300 return 0;
6302 _ACEOF
6303 rm -f conftest.$ac_objext
6304 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6305 (eval $ac_compile) 2>conftest.er1
6306 ac_status=$?
6307 grep -v '^ *+' conftest.er1 >conftest.err
6308 rm -f conftest.er1
6309 cat conftest.err >&5
6310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6311 (exit $ac_status); } &&
6312 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6314 (eval $ac_try) 2>&5
6315 ac_status=$?
6316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6317 (exit $ac_status); }; } &&
6318 { ac_try='test -s conftest.$ac_objext'
6319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6320 (eval $ac_try) 2>&5
6321 ac_status=$?
6322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6323 (exit $ac_status); }; }; then
6324 emacs_cv_struct_exception=yes
6325 else
6326 echo "$as_me: failed program was:" >&5
6327 sed 's/^/| /' conftest.$ac_ext >&5
6329 emacs_cv_struct_exception=no
6331 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6333 echo "$as_me:$LINENO: result: $emacs_cv_struct_exception" >&5
6334 echo "${ECHO_T}$emacs_cv_struct_exception" >&6
6335 HAVE_EXCEPTION=$emacs_cv_struct_exception
6336 if test $emacs_cv_struct_exception != yes; then
6338 cat >>confdefs.h <<\_ACEOF
6339 #define NO_MATHERR 1
6340 _ACEOF
6345 for ac_header in sys/socket.h
6347 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6348 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6349 echo "$as_me:$LINENO: checking for $ac_header" >&5
6350 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6351 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6352 echo $ECHO_N "(cached) $ECHO_C" >&6
6354 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6355 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6356 else
6357 # Is the header compilable?
6358 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6359 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6360 cat >conftest.$ac_ext <<_ACEOF
6361 /* confdefs.h. */
6362 _ACEOF
6363 cat confdefs.h >>conftest.$ac_ext
6364 cat >>conftest.$ac_ext <<_ACEOF
6365 /* end confdefs.h. */
6366 $ac_includes_default
6367 #include <$ac_header>
6368 _ACEOF
6369 rm -f conftest.$ac_objext
6370 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6371 (eval $ac_compile) 2>conftest.er1
6372 ac_status=$?
6373 grep -v '^ *+' conftest.er1 >conftest.err
6374 rm -f conftest.er1
6375 cat conftest.err >&5
6376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6377 (exit $ac_status); } &&
6378 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6380 (eval $ac_try) 2>&5
6381 ac_status=$?
6382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6383 (exit $ac_status); }; } &&
6384 { ac_try='test -s conftest.$ac_objext'
6385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6386 (eval $ac_try) 2>&5
6387 ac_status=$?
6388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6389 (exit $ac_status); }; }; then
6390 ac_header_compiler=yes
6391 else
6392 echo "$as_me: failed program was:" >&5
6393 sed 's/^/| /' conftest.$ac_ext >&5
6395 ac_header_compiler=no
6397 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6398 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6399 echo "${ECHO_T}$ac_header_compiler" >&6
6401 # Is the header present?
6402 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6403 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6404 cat >conftest.$ac_ext <<_ACEOF
6405 /* confdefs.h. */
6406 _ACEOF
6407 cat confdefs.h >>conftest.$ac_ext
6408 cat >>conftest.$ac_ext <<_ACEOF
6409 /* end confdefs.h. */
6410 #include <$ac_header>
6411 _ACEOF
6412 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6413 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6414 ac_status=$?
6415 grep -v '^ *+' conftest.er1 >conftest.err
6416 rm -f conftest.er1
6417 cat conftest.err >&5
6418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6419 (exit $ac_status); } >/dev/null; then
6420 if test -s conftest.err; then
6421 ac_cpp_err=$ac_c_preproc_warn_flag
6422 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6423 else
6424 ac_cpp_err=
6426 else
6427 ac_cpp_err=yes
6429 if test -z "$ac_cpp_err"; then
6430 ac_header_preproc=yes
6431 else
6432 echo "$as_me: failed program was:" >&5
6433 sed 's/^/| /' conftest.$ac_ext >&5
6435 ac_header_preproc=no
6437 rm -f conftest.err conftest.$ac_ext
6438 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6439 echo "${ECHO_T}$ac_header_preproc" >&6
6441 # So? What about this header?
6442 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6443 yes:no: )
6444 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6445 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6446 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6447 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6448 ac_header_preproc=yes
6450 no:yes:* )
6451 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6452 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6453 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6454 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6455 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6456 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6457 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6458 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6459 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6460 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6461 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6462 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6464 cat <<\_ASBOX
6465 ## ------------------------------------------ ##
6466 ## Report this to the AC_PACKAGE_NAME lists. ##
6467 ## ------------------------------------------ ##
6468 _ASBOX
6470 sed "s/^/$as_me: WARNING: /" >&2
6472 esac
6473 echo "$as_me:$LINENO: checking for $ac_header" >&5
6474 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6475 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6476 echo $ECHO_N "(cached) $ECHO_C" >&6
6477 else
6478 eval "$as_ac_Header=\$ac_header_preproc"
6480 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6481 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6484 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6485 cat >>confdefs.h <<_ACEOF
6486 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6487 _ACEOF
6491 done
6494 for ac_header in net/if.h
6496 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6497 echo "$as_me:$LINENO: checking for $ac_header" >&5
6498 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6499 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6500 echo $ECHO_N "(cached) $ECHO_C" >&6
6501 else
6502 cat >conftest.$ac_ext <<_ACEOF
6503 /* confdefs.h. */
6504 _ACEOF
6505 cat confdefs.h >>conftest.$ac_ext
6506 cat >>conftest.$ac_ext <<_ACEOF
6507 /* end confdefs.h. */
6508 $ac_includes_default
6509 #if HAVE_SYS_SOCKET_H
6510 #include <sys/socket.h>
6511 #endif
6513 #include <$ac_header>
6514 _ACEOF
6515 rm -f conftest.$ac_objext
6516 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6517 (eval $ac_compile) 2>conftest.er1
6518 ac_status=$?
6519 grep -v '^ *+' conftest.er1 >conftest.err
6520 rm -f conftest.er1
6521 cat conftest.err >&5
6522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6523 (exit $ac_status); } &&
6524 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6526 (eval $ac_try) 2>&5
6527 ac_status=$?
6528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6529 (exit $ac_status); }; } &&
6530 { ac_try='test -s conftest.$ac_objext'
6531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6532 (eval $ac_try) 2>&5
6533 ac_status=$?
6534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6535 (exit $ac_status); }; }; then
6536 eval "$as_ac_Header=yes"
6537 else
6538 echo "$as_me: failed program was:" >&5
6539 sed 's/^/| /' conftest.$ac_ext >&5
6541 eval "$as_ac_Header=no"
6543 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6545 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6546 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6547 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6548 cat >>confdefs.h <<_ACEOF
6549 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6550 _ACEOF
6554 done
6557 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
6558 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
6559 if test "${ac_cv_struct_tm+set}" = set; then
6560 echo $ECHO_N "(cached) $ECHO_C" >&6
6561 else
6562 cat >conftest.$ac_ext <<_ACEOF
6563 /* confdefs.h. */
6564 _ACEOF
6565 cat confdefs.h >>conftest.$ac_ext
6566 cat >>conftest.$ac_ext <<_ACEOF
6567 /* end confdefs.h. */
6568 #include <sys/types.h>
6569 #include <time.h>
6572 main ()
6574 struct tm *tp; tp->tm_sec;
6576 return 0;
6578 _ACEOF
6579 rm -f conftest.$ac_objext
6580 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6581 (eval $ac_compile) 2>conftest.er1
6582 ac_status=$?
6583 grep -v '^ *+' conftest.er1 >conftest.err
6584 rm -f conftest.er1
6585 cat conftest.err >&5
6586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6587 (exit $ac_status); } &&
6588 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6590 (eval $ac_try) 2>&5
6591 ac_status=$?
6592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6593 (exit $ac_status); }; } &&
6594 { ac_try='test -s conftest.$ac_objext'
6595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6596 (eval $ac_try) 2>&5
6597 ac_status=$?
6598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6599 (exit $ac_status); }; }; then
6600 ac_cv_struct_tm=time.h
6601 else
6602 echo "$as_me: failed program was:" >&5
6603 sed 's/^/| /' conftest.$ac_ext >&5
6605 ac_cv_struct_tm=sys/time.h
6607 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6609 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
6610 echo "${ECHO_T}$ac_cv_struct_tm" >&6
6611 if test $ac_cv_struct_tm = sys/time.h; then
6613 cat >>confdefs.h <<\_ACEOF
6614 #define TM_IN_SYS_TIME 1
6615 _ACEOF
6619 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
6620 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
6621 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
6622 echo $ECHO_N "(cached) $ECHO_C" >&6
6623 else
6624 cat >conftest.$ac_ext <<_ACEOF
6625 /* confdefs.h. */
6626 _ACEOF
6627 cat confdefs.h >>conftest.$ac_ext
6628 cat >>conftest.$ac_ext <<_ACEOF
6629 /* end confdefs.h. */
6630 #include <sys/types.h>
6631 #include <$ac_cv_struct_tm>
6635 main ()
6637 static struct tm ac_aggr;
6638 if (ac_aggr.tm_zone)
6639 return 0;
6641 return 0;
6643 _ACEOF
6644 rm -f conftest.$ac_objext
6645 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6646 (eval $ac_compile) 2>conftest.er1
6647 ac_status=$?
6648 grep -v '^ *+' conftest.er1 >conftest.err
6649 rm -f conftest.er1
6650 cat conftest.err >&5
6651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6652 (exit $ac_status); } &&
6653 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6655 (eval $ac_try) 2>&5
6656 ac_status=$?
6657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6658 (exit $ac_status); }; } &&
6659 { ac_try='test -s conftest.$ac_objext'
6660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6661 (eval $ac_try) 2>&5
6662 ac_status=$?
6663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6664 (exit $ac_status); }; }; then
6665 ac_cv_member_struct_tm_tm_zone=yes
6666 else
6667 echo "$as_me: failed program was:" >&5
6668 sed 's/^/| /' conftest.$ac_ext >&5
6670 cat >conftest.$ac_ext <<_ACEOF
6671 /* confdefs.h. */
6672 _ACEOF
6673 cat confdefs.h >>conftest.$ac_ext
6674 cat >>conftest.$ac_ext <<_ACEOF
6675 /* end confdefs.h. */
6676 #include <sys/types.h>
6677 #include <$ac_cv_struct_tm>
6681 main ()
6683 static struct tm ac_aggr;
6684 if (sizeof ac_aggr.tm_zone)
6685 return 0;
6687 return 0;
6689 _ACEOF
6690 rm -f conftest.$ac_objext
6691 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6692 (eval $ac_compile) 2>conftest.er1
6693 ac_status=$?
6694 grep -v '^ *+' conftest.er1 >conftest.err
6695 rm -f conftest.er1
6696 cat conftest.err >&5
6697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6698 (exit $ac_status); } &&
6699 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6701 (eval $ac_try) 2>&5
6702 ac_status=$?
6703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6704 (exit $ac_status); }; } &&
6705 { ac_try='test -s conftest.$ac_objext'
6706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6707 (eval $ac_try) 2>&5
6708 ac_status=$?
6709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6710 (exit $ac_status); }; }; then
6711 ac_cv_member_struct_tm_tm_zone=yes
6712 else
6713 echo "$as_me: failed program was:" >&5
6714 sed 's/^/| /' conftest.$ac_ext >&5
6716 ac_cv_member_struct_tm_tm_zone=no
6718 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6720 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6722 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
6723 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
6724 if test $ac_cv_member_struct_tm_tm_zone = yes; then
6726 cat >>confdefs.h <<_ACEOF
6727 #define HAVE_STRUCT_TM_TM_ZONE 1
6728 _ACEOF
6733 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
6735 cat >>confdefs.h <<\_ACEOF
6736 #define HAVE_TM_ZONE 1
6737 _ACEOF
6739 else
6740 echo "$as_me:$LINENO: checking for tzname" >&5
6741 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
6742 if test "${ac_cv_var_tzname+set}" = set; then
6743 echo $ECHO_N "(cached) $ECHO_C" >&6
6744 else
6745 cat >conftest.$ac_ext <<_ACEOF
6746 /* confdefs.h. */
6747 _ACEOF
6748 cat confdefs.h >>conftest.$ac_ext
6749 cat >>conftest.$ac_ext <<_ACEOF
6750 /* end confdefs.h. */
6751 #include <time.h>
6752 #ifndef tzname /* For SGI. */
6753 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
6754 #endif
6757 main ()
6759 atoi(*tzname);
6761 return 0;
6763 _ACEOF
6764 rm -f conftest.$ac_objext conftest$ac_exeext
6765 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6766 (eval $ac_link) 2>conftest.er1
6767 ac_status=$?
6768 grep -v '^ *+' conftest.er1 >conftest.err
6769 rm -f conftest.er1
6770 cat conftest.err >&5
6771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6772 (exit $ac_status); } &&
6773 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6775 (eval $ac_try) 2>&5
6776 ac_status=$?
6777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6778 (exit $ac_status); }; } &&
6779 { ac_try='test -s conftest$ac_exeext'
6780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6781 (eval $ac_try) 2>&5
6782 ac_status=$?
6783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6784 (exit $ac_status); }; }; then
6785 ac_cv_var_tzname=yes
6786 else
6787 echo "$as_me: failed program was:" >&5
6788 sed 's/^/| /' conftest.$ac_ext >&5
6790 ac_cv_var_tzname=no
6792 rm -f conftest.err conftest.$ac_objext \
6793 conftest$ac_exeext conftest.$ac_ext
6795 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
6796 echo "${ECHO_T}$ac_cv_var_tzname" >&6
6797 if test $ac_cv_var_tzname = yes; then
6799 cat >>confdefs.h <<\_ACEOF
6800 #define HAVE_TZNAME 1
6801 _ACEOF
6806 echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
6807 echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6
6808 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
6809 echo $ECHO_N "(cached) $ECHO_C" >&6
6810 else
6811 cat >conftest.$ac_ext <<_ACEOF
6812 /* confdefs.h. */
6813 _ACEOF
6814 cat confdefs.h >>conftest.$ac_ext
6815 cat >>conftest.$ac_ext <<_ACEOF
6816 /* end confdefs.h. */
6817 #include <time.h>
6820 main ()
6822 static struct tm ac_aggr;
6823 if (ac_aggr.tm_gmtoff)
6824 return 0;
6826 return 0;
6828 _ACEOF
6829 rm -f conftest.$ac_objext
6830 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6831 (eval $ac_compile) 2>conftest.er1
6832 ac_status=$?
6833 grep -v '^ *+' conftest.er1 >conftest.err
6834 rm -f conftest.er1
6835 cat conftest.err >&5
6836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6837 (exit $ac_status); } &&
6838 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6840 (eval $ac_try) 2>&5
6841 ac_status=$?
6842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6843 (exit $ac_status); }; } &&
6844 { ac_try='test -s conftest.$ac_objext'
6845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6846 (eval $ac_try) 2>&5
6847 ac_status=$?
6848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6849 (exit $ac_status); }; }; then
6850 ac_cv_member_struct_tm_tm_gmtoff=yes
6851 else
6852 echo "$as_me: failed program was:" >&5
6853 sed 's/^/| /' conftest.$ac_ext >&5
6855 cat >conftest.$ac_ext <<_ACEOF
6856 /* confdefs.h. */
6857 _ACEOF
6858 cat confdefs.h >>conftest.$ac_ext
6859 cat >>conftest.$ac_ext <<_ACEOF
6860 /* end confdefs.h. */
6861 #include <time.h>
6864 main ()
6866 static struct tm ac_aggr;
6867 if (sizeof ac_aggr.tm_gmtoff)
6868 return 0;
6870 return 0;
6872 _ACEOF
6873 rm -f conftest.$ac_objext
6874 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6875 (eval $ac_compile) 2>conftest.er1
6876 ac_status=$?
6877 grep -v '^ *+' conftest.er1 >conftest.err
6878 rm -f conftest.er1
6879 cat conftest.err >&5
6880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6881 (exit $ac_status); } &&
6882 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6884 (eval $ac_try) 2>&5
6885 ac_status=$?
6886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6887 (exit $ac_status); }; } &&
6888 { ac_try='test -s conftest.$ac_objext'
6889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6890 (eval $ac_try) 2>&5
6891 ac_status=$?
6892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6893 (exit $ac_status); }; }; then
6894 ac_cv_member_struct_tm_tm_gmtoff=yes
6895 else
6896 echo "$as_me: failed program was:" >&5
6897 sed 's/^/| /' conftest.$ac_ext >&5
6899 ac_cv_member_struct_tm_tm_gmtoff=no
6901 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6903 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6905 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
6906 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6
6907 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
6909 cat >>confdefs.h <<\_ACEOF
6910 #define HAVE_TM_GMTOFF 1
6911 _ACEOF
6915 echo "$as_me:$LINENO: checking for struct ifreq.ifr_flags" >&5
6916 echo $ECHO_N "checking for struct ifreq.ifr_flags... $ECHO_C" >&6
6917 if test "${ac_cv_member_struct_ifreq_ifr_flags+set}" = set; then
6918 echo $ECHO_N "(cached) $ECHO_C" >&6
6919 else
6920 cat >conftest.$ac_ext <<_ACEOF
6921 /* confdefs.h. */
6922 _ACEOF
6923 cat confdefs.h >>conftest.$ac_ext
6924 cat >>conftest.$ac_ext <<_ACEOF
6925 /* end confdefs.h. */
6926 $ac_includes_default
6927 #if HAVE_SYS_SOCKET_H
6928 #include <sys/socket.h>
6929 #endif
6930 #if HAVE_NET_IF_H
6931 #include <net/if.h>
6932 #endif
6935 main ()
6937 static struct ifreq ac_aggr;
6938 if (ac_aggr.ifr_flags)
6939 return 0;
6941 return 0;
6943 _ACEOF
6944 rm -f conftest.$ac_objext
6945 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6946 (eval $ac_compile) 2>conftest.er1
6947 ac_status=$?
6948 grep -v '^ *+' conftest.er1 >conftest.err
6949 rm -f conftest.er1
6950 cat conftest.err >&5
6951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6952 (exit $ac_status); } &&
6953 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6955 (eval $ac_try) 2>&5
6956 ac_status=$?
6957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6958 (exit $ac_status); }; } &&
6959 { ac_try='test -s conftest.$ac_objext'
6960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6961 (eval $ac_try) 2>&5
6962 ac_status=$?
6963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6964 (exit $ac_status); }; }; then
6965 ac_cv_member_struct_ifreq_ifr_flags=yes
6966 else
6967 echo "$as_me: failed program was:" >&5
6968 sed 's/^/| /' conftest.$ac_ext >&5
6970 cat >conftest.$ac_ext <<_ACEOF
6971 /* confdefs.h. */
6972 _ACEOF
6973 cat confdefs.h >>conftest.$ac_ext
6974 cat >>conftest.$ac_ext <<_ACEOF
6975 /* end confdefs.h. */
6976 $ac_includes_default
6977 #if HAVE_SYS_SOCKET_H
6978 #include <sys/socket.h>
6979 #endif
6980 #if HAVE_NET_IF_H
6981 #include <net/if.h>
6982 #endif
6985 main ()
6987 static struct ifreq ac_aggr;
6988 if (sizeof ac_aggr.ifr_flags)
6989 return 0;
6991 return 0;
6993 _ACEOF
6994 rm -f conftest.$ac_objext
6995 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6996 (eval $ac_compile) 2>conftest.er1
6997 ac_status=$?
6998 grep -v '^ *+' conftest.er1 >conftest.err
6999 rm -f conftest.er1
7000 cat conftest.err >&5
7001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7002 (exit $ac_status); } &&
7003 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7005 (eval $ac_try) 2>&5
7006 ac_status=$?
7007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7008 (exit $ac_status); }; } &&
7009 { ac_try='test -s conftest.$ac_objext'
7010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7011 (eval $ac_try) 2>&5
7012 ac_status=$?
7013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7014 (exit $ac_status); }; }; then
7015 ac_cv_member_struct_ifreq_ifr_flags=yes
7016 else
7017 echo "$as_me: failed program was:" >&5
7018 sed 's/^/| /' conftest.$ac_ext >&5
7020 ac_cv_member_struct_ifreq_ifr_flags=no
7022 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7024 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7026 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_flags" >&5
7027 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_flags" >&6
7028 if test $ac_cv_member_struct_ifreq_ifr_flags = yes; then
7030 cat >>confdefs.h <<_ACEOF
7031 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
7032 _ACEOF
7036 echo "$as_me:$LINENO: checking for struct ifreq.ifr_hwaddr" >&5
7037 echo $ECHO_N "checking for struct ifreq.ifr_hwaddr... $ECHO_C" >&6
7038 if test "${ac_cv_member_struct_ifreq_ifr_hwaddr+set}" = set; then
7039 echo $ECHO_N "(cached) $ECHO_C" >&6
7040 else
7041 cat >conftest.$ac_ext <<_ACEOF
7042 /* confdefs.h. */
7043 _ACEOF
7044 cat confdefs.h >>conftest.$ac_ext
7045 cat >>conftest.$ac_ext <<_ACEOF
7046 /* end confdefs.h. */
7047 $ac_includes_default
7048 #if HAVE_SYS_SOCKET_H
7049 #include <sys/socket.h>
7050 #endif
7051 #if HAVE_NET_IF_H
7052 #include <net/if.h>
7053 #endif
7056 main ()
7058 static struct ifreq ac_aggr;
7059 if (ac_aggr.ifr_hwaddr)
7060 return 0;
7062 return 0;
7064 _ACEOF
7065 rm -f conftest.$ac_objext
7066 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7067 (eval $ac_compile) 2>conftest.er1
7068 ac_status=$?
7069 grep -v '^ *+' conftest.er1 >conftest.err
7070 rm -f conftest.er1
7071 cat conftest.err >&5
7072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7073 (exit $ac_status); } &&
7074 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7076 (eval $ac_try) 2>&5
7077 ac_status=$?
7078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7079 (exit $ac_status); }; } &&
7080 { ac_try='test -s conftest.$ac_objext'
7081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7082 (eval $ac_try) 2>&5
7083 ac_status=$?
7084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7085 (exit $ac_status); }; }; then
7086 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
7087 else
7088 echo "$as_me: failed program was:" >&5
7089 sed 's/^/| /' conftest.$ac_ext >&5
7091 cat >conftest.$ac_ext <<_ACEOF
7092 /* confdefs.h. */
7093 _ACEOF
7094 cat confdefs.h >>conftest.$ac_ext
7095 cat >>conftest.$ac_ext <<_ACEOF
7096 /* end confdefs.h. */
7097 $ac_includes_default
7098 #if HAVE_SYS_SOCKET_H
7099 #include <sys/socket.h>
7100 #endif
7101 #if HAVE_NET_IF_H
7102 #include <net/if.h>
7103 #endif
7106 main ()
7108 static struct ifreq ac_aggr;
7109 if (sizeof ac_aggr.ifr_hwaddr)
7110 return 0;
7112 return 0;
7114 _ACEOF
7115 rm -f conftest.$ac_objext
7116 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7117 (eval $ac_compile) 2>conftest.er1
7118 ac_status=$?
7119 grep -v '^ *+' conftest.er1 >conftest.err
7120 rm -f conftest.er1
7121 cat conftest.err >&5
7122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7123 (exit $ac_status); } &&
7124 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7126 (eval $ac_try) 2>&5
7127 ac_status=$?
7128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7129 (exit $ac_status); }; } &&
7130 { ac_try='test -s conftest.$ac_objext'
7131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7132 (eval $ac_try) 2>&5
7133 ac_status=$?
7134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7135 (exit $ac_status); }; }; then
7136 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
7137 else
7138 echo "$as_me: failed program was:" >&5
7139 sed 's/^/| /' conftest.$ac_ext >&5
7141 ac_cv_member_struct_ifreq_ifr_hwaddr=no
7143 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7145 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7147 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_hwaddr" >&5
7148 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_hwaddr" >&6
7149 if test $ac_cv_member_struct_ifreq_ifr_hwaddr = yes; then
7151 cat >>confdefs.h <<_ACEOF
7152 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
7153 _ACEOF
7157 echo "$as_me:$LINENO: checking for struct ifreq.ifr_netmask" >&5
7158 echo $ECHO_N "checking for struct ifreq.ifr_netmask... $ECHO_C" >&6
7159 if test "${ac_cv_member_struct_ifreq_ifr_netmask+set}" = set; then
7160 echo $ECHO_N "(cached) $ECHO_C" >&6
7161 else
7162 cat >conftest.$ac_ext <<_ACEOF
7163 /* confdefs.h. */
7164 _ACEOF
7165 cat confdefs.h >>conftest.$ac_ext
7166 cat >>conftest.$ac_ext <<_ACEOF
7167 /* end confdefs.h. */
7168 $ac_includes_default
7169 #if HAVE_SYS_SOCKET_H
7170 #include <sys/socket.h>
7171 #endif
7172 #if HAVE_NET_IF_H
7173 #include <net/if.h>
7174 #endif
7177 main ()
7179 static struct ifreq ac_aggr;
7180 if (ac_aggr.ifr_netmask)
7181 return 0;
7183 return 0;
7185 _ACEOF
7186 rm -f conftest.$ac_objext
7187 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7188 (eval $ac_compile) 2>conftest.er1
7189 ac_status=$?
7190 grep -v '^ *+' conftest.er1 >conftest.err
7191 rm -f conftest.er1
7192 cat conftest.err >&5
7193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7194 (exit $ac_status); } &&
7195 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7197 (eval $ac_try) 2>&5
7198 ac_status=$?
7199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7200 (exit $ac_status); }; } &&
7201 { ac_try='test -s conftest.$ac_objext'
7202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7203 (eval $ac_try) 2>&5
7204 ac_status=$?
7205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7206 (exit $ac_status); }; }; then
7207 ac_cv_member_struct_ifreq_ifr_netmask=yes
7208 else
7209 echo "$as_me: failed program was:" >&5
7210 sed 's/^/| /' conftest.$ac_ext >&5
7212 cat >conftest.$ac_ext <<_ACEOF
7213 /* confdefs.h. */
7214 _ACEOF
7215 cat confdefs.h >>conftest.$ac_ext
7216 cat >>conftest.$ac_ext <<_ACEOF
7217 /* end confdefs.h. */
7218 $ac_includes_default
7219 #if HAVE_SYS_SOCKET_H
7220 #include <sys/socket.h>
7221 #endif
7222 #if HAVE_NET_IF_H
7223 #include <net/if.h>
7224 #endif
7227 main ()
7229 static struct ifreq ac_aggr;
7230 if (sizeof ac_aggr.ifr_netmask)
7231 return 0;
7233 return 0;
7235 _ACEOF
7236 rm -f conftest.$ac_objext
7237 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7238 (eval $ac_compile) 2>conftest.er1
7239 ac_status=$?
7240 grep -v '^ *+' conftest.er1 >conftest.err
7241 rm -f conftest.er1
7242 cat conftest.err >&5
7243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7244 (exit $ac_status); } &&
7245 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7247 (eval $ac_try) 2>&5
7248 ac_status=$?
7249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7250 (exit $ac_status); }; } &&
7251 { ac_try='test -s conftest.$ac_objext'
7252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7253 (eval $ac_try) 2>&5
7254 ac_status=$?
7255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7256 (exit $ac_status); }; }; then
7257 ac_cv_member_struct_ifreq_ifr_netmask=yes
7258 else
7259 echo "$as_me: failed program was:" >&5
7260 sed 's/^/| /' conftest.$ac_ext >&5
7262 ac_cv_member_struct_ifreq_ifr_netmask=no
7264 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7266 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7268 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_netmask" >&5
7269 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_netmask" >&6
7270 if test $ac_cv_member_struct_ifreq_ifr_netmask = yes; then
7272 cat >>confdefs.h <<_ACEOF
7273 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
7274 _ACEOF
7278 echo "$as_me:$LINENO: checking for struct ifreq.ifr_broadaddr" >&5
7279 echo $ECHO_N "checking for struct ifreq.ifr_broadaddr... $ECHO_C" >&6
7280 if test "${ac_cv_member_struct_ifreq_ifr_broadaddr+set}" = set; then
7281 echo $ECHO_N "(cached) $ECHO_C" >&6
7282 else
7283 cat >conftest.$ac_ext <<_ACEOF
7284 /* confdefs.h. */
7285 _ACEOF
7286 cat confdefs.h >>conftest.$ac_ext
7287 cat >>conftest.$ac_ext <<_ACEOF
7288 /* end confdefs.h. */
7289 $ac_includes_default
7290 #if HAVE_SYS_SOCKET_H
7291 #include <sys/socket.h>
7292 #endif
7293 #if HAVE_NET_IF_H
7294 #include <net/if.h>
7295 #endif
7298 main ()
7300 static struct ifreq ac_aggr;
7301 if (ac_aggr.ifr_broadaddr)
7302 return 0;
7304 return 0;
7306 _ACEOF
7307 rm -f conftest.$ac_objext
7308 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7309 (eval $ac_compile) 2>conftest.er1
7310 ac_status=$?
7311 grep -v '^ *+' conftest.er1 >conftest.err
7312 rm -f conftest.er1
7313 cat conftest.err >&5
7314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7315 (exit $ac_status); } &&
7316 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7318 (eval $ac_try) 2>&5
7319 ac_status=$?
7320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7321 (exit $ac_status); }; } &&
7322 { ac_try='test -s conftest.$ac_objext'
7323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7324 (eval $ac_try) 2>&5
7325 ac_status=$?
7326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7327 (exit $ac_status); }; }; then
7328 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
7329 else
7330 echo "$as_me: failed program was:" >&5
7331 sed 's/^/| /' conftest.$ac_ext >&5
7333 cat >conftest.$ac_ext <<_ACEOF
7334 /* confdefs.h. */
7335 _ACEOF
7336 cat confdefs.h >>conftest.$ac_ext
7337 cat >>conftest.$ac_ext <<_ACEOF
7338 /* end confdefs.h. */
7339 $ac_includes_default
7340 #if HAVE_SYS_SOCKET_H
7341 #include <sys/socket.h>
7342 #endif
7343 #if HAVE_NET_IF_H
7344 #include <net/if.h>
7345 #endif
7348 main ()
7350 static struct ifreq ac_aggr;
7351 if (sizeof ac_aggr.ifr_broadaddr)
7352 return 0;
7354 return 0;
7356 _ACEOF
7357 rm -f conftest.$ac_objext
7358 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7359 (eval $ac_compile) 2>conftest.er1
7360 ac_status=$?
7361 grep -v '^ *+' conftest.er1 >conftest.err
7362 rm -f conftest.er1
7363 cat conftest.err >&5
7364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7365 (exit $ac_status); } &&
7366 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7368 (eval $ac_try) 2>&5
7369 ac_status=$?
7370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7371 (exit $ac_status); }; } &&
7372 { ac_try='test -s conftest.$ac_objext'
7373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7374 (eval $ac_try) 2>&5
7375 ac_status=$?
7376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7377 (exit $ac_status); }; }; then
7378 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
7379 else
7380 echo "$as_me: failed program was:" >&5
7381 sed 's/^/| /' conftest.$ac_ext >&5
7383 ac_cv_member_struct_ifreq_ifr_broadaddr=no
7385 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7387 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7389 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_broadaddr" >&5
7390 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_broadaddr" >&6
7391 if test $ac_cv_member_struct_ifreq_ifr_broadaddr = yes; then
7393 cat >>confdefs.h <<_ACEOF
7394 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
7395 _ACEOF
7399 echo "$as_me:$LINENO: checking for struct ifreq.ifr_addr" >&5
7400 echo $ECHO_N "checking for struct ifreq.ifr_addr... $ECHO_C" >&6
7401 if test "${ac_cv_member_struct_ifreq_ifr_addr+set}" = set; then
7402 echo $ECHO_N "(cached) $ECHO_C" >&6
7403 else
7404 cat >conftest.$ac_ext <<_ACEOF
7405 /* confdefs.h. */
7406 _ACEOF
7407 cat confdefs.h >>conftest.$ac_ext
7408 cat >>conftest.$ac_ext <<_ACEOF
7409 /* end confdefs.h. */
7410 $ac_includes_default
7411 #if HAVE_SYS_SOCKET_H
7412 #include <sys/socket.h>
7413 #endif
7414 #if HAVE_NET_IF_H
7415 #include <net/if.h>
7416 #endif
7419 main ()
7421 static struct ifreq ac_aggr;
7422 if (ac_aggr.ifr_addr)
7423 return 0;
7425 return 0;
7427 _ACEOF
7428 rm -f conftest.$ac_objext
7429 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7430 (eval $ac_compile) 2>conftest.er1
7431 ac_status=$?
7432 grep -v '^ *+' conftest.er1 >conftest.err
7433 rm -f conftest.er1
7434 cat conftest.err >&5
7435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7436 (exit $ac_status); } &&
7437 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7439 (eval $ac_try) 2>&5
7440 ac_status=$?
7441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7442 (exit $ac_status); }; } &&
7443 { ac_try='test -s conftest.$ac_objext'
7444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7445 (eval $ac_try) 2>&5
7446 ac_status=$?
7447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7448 (exit $ac_status); }; }; then
7449 ac_cv_member_struct_ifreq_ifr_addr=yes
7450 else
7451 echo "$as_me: failed program was:" >&5
7452 sed 's/^/| /' conftest.$ac_ext >&5
7454 cat >conftest.$ac_ext <<_ACEOF
7455 /* confdefs.h. */
7456 _ACEOF
7457 cat confdefs.h >>conftest.$ac_ext
7458 cat >>conftest.$ac_ext <<_ACEOF
7459 /* end confdefs.h. */
7460 $ac_includes_default
7461 #if HAVE_SYS_SOCKET_H
7462 #include <sys/socket.h>
7463 #endif
7464 #if HAVE_NET_IF_H
7465 #include <net/if.h>
7466 #endif
7469 main ()
7471 static struct ifreq ac_aggr;
7472 if (sizeof ac_aggr.ifr_addr)
7473 return 0;
7475 return 0;
7477 _ACEOF
7478 rm -f conftest.$ac_objext
7479 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7480 (eval $ac_compile) 2>conftest.er1
7481 ac_status=$?
7482 grep -v '^ *+' conftest.er1 >conftest.err
7483 rm -f conftest.er1
7484 cat conftest.err >&5
7485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7486 (exit $ac_status); } &&
7487 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7489 (eval $ac_try) 2>&5
7490 ac_status=$?
7491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7492 (exit $ac_status); }; } &&
7493 { ac_try='test -s conftest.$ac_objext'
7494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7495 (eval $ac_try) 2>&5
7496 ac_status=$?
7497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7498 (exit $ac_status); }; }; then
7499 ac_cv_member_struct_ifreq_ifr_addr=yes
7500 else
7501 echo "$as_me: failed program was:" >&5
7502 sed 's/^/| /' conftest.$ac_ext >&5
7504 ac_cv_member_struct_ifreq_ifr_addr=no
7506 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7508 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7510 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_addr" >&5
7511 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_addr" >&6
7512 if test $ac_cv_member_struct_ifreq_ifr_addr = yes; then
7514 cat >>confdefs.h <<_ACEOF
7515 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
7516 _ACEOF
7523 echo "$as_me:$LINENO: checking for function prototypes" >&5
7524 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
7525 if test "$ac_cv_prog_cc_stdc" != no; then
7526 echo "$as_me:$LINENO: result: yes" >&5
7527 echo "${ECHO_T}yes" >&6
7529 cat >>confdefs.h <<\_ACEOF
7530 #define PROTOTYPES 1
7531 _ACEOF
7534 cat >>confdefs.h <<\_ACEOF
7535 #define __PROTOTYPES 1
7536 _ACEOF
7538 else
7539 echo "$as_me:$LINENO: result: no" >&5
7540 echo "${ECHO_T}no" >&6
7543 echo "$as_me:$LINENO: checking for working volatile" >&5
7544 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
7545 if test "${ac_cv_c_volatile+set}" = set; then
7546 echo $ECHO_N "(cached) $ECHO_C" >&6
7547 else
7548 cat >conftest.$ac_ext <<_ACEOF
7549 /* confdefs.h. */
7550 _ACEOF
7551 cat confdefs.h >>conftest.$ac_ext
7552 cat >>conftest.$ac_ext <<_ACEOF
7553 /* end confdefs.h. */
7556 main ()
7559 volatile int x;
7560 int * volatile y;
7562 return 0;
7564 _ACEOF
7565 rm -f conftest.$ac_objext
7566 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7567 (eval $ac_compile) 2>conftest.er1
7568 ac_status=$?
7569 grep -v '^ *+' conftest.er1 >conftest.err
7570 rm -f conftest.er1
7571 cat conftest.err >&5
7572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7573 (exit $ac_status); } &&
7574 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7576 (eval $ac_try) 2>&5
7577 ac_status=$?
7578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7579 (exit $ac_status); }; } &&
7580 { ac_try='test -s conftest.$ac_objext'
7581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7582 (eval $ac_try) 2>&5
7583 ac_status=$?
7584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7585 (exit $ac_status); }; }; then
7586 ac_cv_c_volatile=yes
7587 else
7588 echo "$as_me: failed program was:" >&5
7589 sed 's/^/| /' conftest.$ac_ext >&5
7591 ac_cv_c_volatile=no
7593 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7595 echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
7596 echo "${ECHO_T}$ac_cv_c_volatile" >&6
7597 if test $ac_cv_c_volatile = no; then
7599 cat >>confdefs.h <<\_ACEOF
7600 #define volatile
7601 _ACEOF
7605 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
7606 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
7607 if test "${ac_cv_c_const+set}" = set; then
7608 echo $ECHO_N "(cached) $ECHO_C" >&6
7609 else
7610 cat >conftest.$ac_ext <<_ACEOF
7611 /* confdefs.h. */
7612 _ACEOF
7613 cat confdefs.h >>conftest.$ac_ext
7614 cat >>conftest.$ac_ext <<_ACEOF
7615 /* end confdefs.h. */
7618 main ()
7620 /* FIXME: Include the comments suggested by Paul. */
7621 #ifndef __cplusplus
7622 /* Ultrix mips cc rejects this. */
7623 typedef int charset[2];
7624 const charset x;
7625 /* SunOS 4.1.1 cc rejects this. */
7626 char const *const *ccp;
7627 char **p;
7628 /* NEC SVR4.0.2 mips cc rejects this. */
7629 struct point {int x, y;};
7630 static struct point const zero = {0,0};
7631 /* AIX XL C 1.02.0.0 rejects this.
7632 It does not let you subtract one const X* pointer from another in
7633 an arm of an if-expression whose if-part is not a constant
7634 expression */
7635 const char *g = "string";
7636 ccp = &g + (g ? g-g : 0);
7637 /* HPUX 7.0 cc rejects these. */
7638 ++ccp;
7639 p = (char**) ccp;
7640 ccp = (char const *const *) p;
7641 { /* SCO 3.2v4 cc rejects this. */
7642 char *t;
7643 char const *s = 0 ? (char *) 0 : (char const *) 0;
7645 *t++ = 0;
7647 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
7648 int x[] = {25, 17};
7649 const int *foo = &x[0];
7650 ++foo;
7652 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7653 typedef const int *iptr;
7654 iptr p = 0;
7655 ++p;
7657 { /* AIX XL C 1.02.0.0 rejects this saying
7658 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7659 struct s { int j; const int *ap[3]; };
7660 struct s *b; b->j = 5;
7662 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7663 const int foo = 10;
7665 #endif
7668 return 0;
7670 _ACEOF
7671 rm -f conftest.$ac_objext
7672 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7673 (eval $ac_compile) 2>conftest.er1
7674 ac_status=$?
7675 grep -v '^ *+' conftest.er1 >conftest.err
7676 rm -f conftest.er1
7677 cat conftest.err >&5
7678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7679 (exit $ac_status); } &&
7680 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7682 (eval $ac_try) 2>&5
7683 ac_status=$?
7684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7685 (exit $ac_status); }; } &&
7686 { ac_try='test -s conftest.$ac_objext'
7687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7688 (eval $ac_try) 2>&5
7689 ac_status=$?
7690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7691 (exit $ac_status); }; }; then
7692 ac_cv_c_const=yes
7693 else
7694 echo "$as_me: failed program was:" >&5
7695 sed 's/^/| /' conftest.$ac_ext >&5
7697 ac_cv_c_const=no
7699 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7701 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
7702 echo "${ECHO_T}$ac_cv_c_const" >&6
7703 if test $ac_cv_c_const = no; then
7705 cat >>confdefs.h <<\_ACEOF
7706 #define const
7707 _ACEOF
7711 echo "$as_me:$LINENO: checking for void * support" >&5
7712 echo $ECHO_N "checking for void * support... $ECHO_C" >&6
7713 if test "${emacs_cv_void_star+set}" = set; then
7714 echo $ECHO_N "(cached) $ECHO_C" >&6
7715 else
7716 cat >conftest.$ac_ext <<_ACEOF
7717 /* confdefs.h. */
7718 _ACEOF
7719 cat confdefs.h >>conftest.$ac_ext
7720 cat >>conftest.$ac_ext <<_ACEOF
7721 /* end confdefs.h. */
7724 main ()
7726 void * foo;
7728 return 0;
7730 _ACEOF
7731 rm -f conftest.$ac_objext
7732 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7733 (eval $ac_compile) 2>conftest.er1
7734 ac_status=$?
7735 grep -v '^ *+' conftest.er1 >conftest.err
7736 rm -f conftest.er1
7737 cat conftest.err >&5
7738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7739 (exit $ac_status); } &&
7740 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7742 (eval $ac_try) 2>&5
7743 ac_status=$?
7744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7745 (exit $ac_status); }; } &&
7746 { ac_try='test -s conftest.$ac_objext'
7747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7748 (eval $ac_try) 2>&5
7749 ac_status=$?
7750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7751 (exit $ac_status); }; }; then
7752 emacs_cv_void_star=yes
7753 else
7754 echo "$as_me: failed program was:" >&5
7755 sed 's/^/| /' conftest.$ac_ext >&5
7757 emacs_cv_void_star=no
7759 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7761 echo "$as_me:$LINENO: result: $emacs_cv_void_star" >&5
7762 echo "${ECHO_T}$emacs_cv_void_star" >&6
7763 if test $emacs_cv_void_star = yes; then
7764 cat >>confdefs.h <<\_ACEOF
7765 #define POINTER_TYPE void
7766 _ACEOF
7768 else
7769 cat >>confdefs.h <<\_ACEOF
7770 #define POINTER_TYPE char
7771 _ACEOF
7779 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7780 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
7781 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
7782 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
7783 echo $ECHO_N "(cached) $ECHO_C" >&6
7784 else
7785 cat >conftest.make <<\_ACEOF
7786 all:
7787 @echo 'ac_maketemp="$(MAKE)"'
7788 _ACEOF
7789 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7790 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
7791 if test -n "$ac_maketemp"; then
7792 eval ac_cv_prog_make_${ac_make}_set=yes
7793 else
7794 eval ac_cv_prog_make_${ac_make}_set=no
7796 rm -f conftest.make
7798 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
7799 echo "$as_me:$LINENO: result: yes" >&5
7800 echo "${ECHO_T}yes" >&6
7801 SET_MAKE=
7802 else
7803 echo "$as_me:$LINENO: result: no" >&5
7804 echo "${ECHO_T}no" >&6
7805 SET_MAKE="MAKE=${MAKE-make}"
7809 echo "$as_me:$LINENO: checking for long file names" >&5
7810 echo $ECHO_N "checking for long file names... $ECHO_C" >&6
7811 if test "${ac_cv_sys_long_file_names+set}" = set; then
7812 echo $ECHO_N "(cached) $ECHO_C" >&6
7813 else
7814 ac_cv_sys_long_file_names=yes
7815 # Test for long file names in all the places we know might matter:
7816 # . the current directory, where building will happen
7817 # $prefix/lib where we will be installing things
7818 # $exec_prefix/lib likewise
7819 # eval it to expand exec_prefix.
7820 # $TMPDIR if set, where it might want to write temporary files
7821 # if $TMPDIR is not set:
7822 # /tmp where it might want to write temporary files
7823 # /var/tmp likewise
7824 # /usr/tmp likewise
7825 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
7826 ac_tmpdirs=$TMPDIR
7827 else
7828 ac_tmpdirs='/tmp /var/tmp /usr/tmp'
7830 for ac_dir in . $ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
7831 test -d $ac_dir || continue
7832 test -w $ac_dir || continue # It is less confusing to not echo anything here.
7833 ac_xdir=$ac_dir/cf$$
7834 (umask 077 && mkdir $ac_xdir 2>/dev/null) || continue
7835 ac_tf1=$ac_xdir/conftest9012345
7836 ac_tf2=$ac_xdir/conftest9012346
7837 (echo 1 >$ac_tf1) 2>/dev/null
7838 (echo 2 >$ac_tf2) 2>/dev/null
7839 ac_val=`cat $ac_tf1 2>/dev/null`
7840 if test ! -f $ac_tf1 || test "$ac_val" != 1; then
7841 ac_cv_sys_long_file_names=no
7842 rm -rf $ac_xdir 2>/dev/null
7843 break
7845 rm -rf $ac_xdir 2>/dev/null
7846 done
7848 echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
7849 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6
7850 if test $ac_cv_sys_long_file_names = yes; then
7852 cat >>confdefs.h <<\_ACEOF
7853 #define HAVE_LONG_FILE_NAMES 1
7854 _ACEOF
7859 #### Choose a window system.
7861 echo "$as_me:$LINENO: checking for X" >&5
7862 echo $ECHO_N "checking for X... $ECHO_C" >&6
7864 ac_path_x_has_been_run=yes
7866 # Check whether --with-x or --without-x was given.
7867 if test "${with_x+set}" = set; then
7868 withval="$with_x"
7871 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
7872 if test "x$with_x" = xno; then
7873 # The user explicitly disabled X.
7874 have_x=disabled
7875 else
7876 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
7877 # Both variables are already set.
7878 have_x=yes
7879 else
7880 if test "${ac_cv_have_x+set}" = set; then
7881 echo $ECHO_N "(cached) $ECHO_C" >&6
7882 else
7883 # One or both of the vars are not set, and there is no cached value.
7884 ac_x_includes=no ac_x_libraries=no
7885 rm -fr conftest.dir
7886 if mkdir conftest.dir; then
7887 cd conftest.dir
7888 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
7889 cat >Imakefile <<'_ACEOF'
7890 acfindx:
7891 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
7892 _ACEOF
7893 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
7894 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7895 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
7896 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
7897 for ac_extension in a so sl; do
7898 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
7899 test -f $ac_im_libdir/libX11.$ac_extension; then
7900 ac_im_usrlibdir=$ac_im_libdir; break
7902 done
7903 # Screen out bogus values from the imake configuration. They are
7904 # bogus both because they are the default anyway, and because
7905 # using them would break gcc on systems where it needs fixed includes.
7906 case $ac_im_incroot in
7907 /usr/include) ;;
7908 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
7909 esac
7910 case $ac_im_usrlibdir in
7911 /usr/lib | /lib) ;;
7912 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
7913 esac
7915 cd ..
7916 rm -fr conftest.dir
7919 # Standard set of common directories for X headers.
7920 # Check X11 before X11Rn because it is often a symlink to the current release.
7921 ac_x_header_dirs='
7922 /usr/X11/include
7923 /usr/X11R6/include
7924 /usr/X11R5/include
7925 /usr/X11R4/include
7927 /usr/include/X11
7928 /usr/include/X11R6
7929 /usr/include/X11R5
7930 /usr/include/X11R4
7932 /usr/local/X11/include
7933 /usr/local/X11R6/include
7934 /usr/local/X11R5/include
7935 /usr/local/X11R4/include
7937 /usr/local/include/X11
7938 /usr/local/include/X11R6
7939 /usr/local/include/X11R5
7940 /usr/local/include/X11R4
7942 /usr/X386/include
7943 /usr/x386/include
7944 /usr/XFree86/include/X11
7946 /usr/include
7947 /usr/local/include
7948 /usr/unsupported/include
7949 /usr/athena/include
7950 /usr/local/x11r5/include
7951 /usr/lpp/Xamples/include
7953 /usr/openwin/include
7954 /usr/openwin/share/include'
7956 if test "$ac_x_includes" = no; then
7957 # Guess where to find include files, by looking for a specified header file.
7958 # First, try using that file with no special directory specified.
7959 cat >conftest.$ac_ext <<_ACEOF
7960 /* confdefs.h. */
7961 _ACEOF
7962 cat confdefs.h >>conftest.$ac_ext
7963 cat >>conftest.$ac_ext <<_ACEOF
7964 /* end confdefs.h. */
7965 #include <X11/Intrinsic.h>
7966 _ACEOF
7967 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7968 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7969 ac_status=$?
7970 grep -v '^ *+' conftest.er1 >conftest.err
7971 rm -f conftest.er1
7972 cat conftest.err >&5
7973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7974 (exit $ac_status); } >/dev/null; then
7975 if test -s conftest.err; then
7976 ac_cpp_err=$ac_c_preproc_warn_flag
7977 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7978 else
7979 ac_cpp_err=
7981 else
7982 ac_cpp_err=yes
7984 if test -z "$ac_cpp_err"; then
7985 # We can compile using X headers with no special include directory.
7986 ac_x_includes=
7987 else
7988 echo "$as_me: failed program was:" >&5
7989 sed 's/^/| /' conftest.$ac_ext >&5
7991 for ac_dir in $ac_x_header_dirs; do
7992 if test -r "$ac_dir/X11/Intrinsic.h"; then
7993 ac_x_includes=$ac_dir
7994 break
7996 done
7998 rm -f conftest.err conftest.$ac_ext
7999 fi # $ac_x_includes = no
8001 if test "$ac_x_libraries" = no; then
8002 # Check for the libraries.
8003 # See if we find them without any special options.
8004 # Don't add to $LIBS permanently.
8005 ac_save_LIBS=$LIBS
8006 LIBS="-lXt $LIBS"
8007 cat >conftest.$ac_ext <<_ACEOF
8008 /* confdefs.h. */
8009 _ACEOF
8010 cat confdefs.h >>conftest.$ac_ext
8011 cat >>conftest.$ac_ext <<_ACEOF
8012 /* end confdefs.h. */
8013 #include <X11/Intrinsic.h>
8015 main ()
8017 XtMalloc (0)
8019 return 0;
8021 _ACEOF
8022 rm -f conftest.$ac_objext conftest$ac_exeext
8023 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8024 (eval $ac_link) 2>conftest.er1
8025 ac_status=$?
8026 grep -v '^ *+' conftest.er1 >conftest.err
8027 rm -f conftest.er1
8028 cat conftest.err >&5
8029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8030 (exit $ac_status); } &&
8031 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8033 (eval $ac_try) 2>&5
8034 ac_status=$?
8035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8036 (exit $ac_status); }; } &&
8037 { ac_try='test -s conftest$ac_exeext'
8038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8039 (eval $ac_try) 2>&5
8040 ac_status=$?
8041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8042 (exit $ac_status); }; }; then
8043 LIBS=$ac_save_LIBS
8044 # We can link X programs with no special library path.
8045 ac_x_libraries=
8046 else
8047 echo "$as_me: failed program was:" >&5
8048 sed 's/^/| /' conftest.$ac_ext >&5
8050 LIBS=$ac_save_LIBS
8051 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
8053 # Don't even attempt the hair of trying to link an X program!
8054 for ac_extension in a so sl; do
8055 if test -r $ac_dir/libXt.$ac_extension; then
8056 ac_x_libraries=$ac_dir
8057 break 2
8059 done
8060 done
8062 rm -f conftest.err conftest.$ac_objext \
8063 conftest$ac_exeext conftest.$ac_ext
8064 fi # $ac_x_libraries = no
8066 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
8067 # Didn't find X anywhere. Cache the known absence of X.
8068 ac_cv_have_x="have_x=no"
8069 else
8070 # Record where we found X for the cache.
8071 ac_cv_have_x="have_x=yes \
8072 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
8077 eval "$ac_cv_have_x"
8078 fi # $with_x != no
8080 if test "$have_x" != yes; then
8081 echo "$as_me:$LINENO: result: $have_x" >&5
8082 echo "${ECHO_T}$have_x" >&6
8083 no_x=yes
8084 else
8085 # If each of the values was on the command line, it overrides each guess.
8086 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
8087 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
8088 # Update the cache value to reflect the command line values.
8089 ac_cv_have_x="have_x=yes \
8090 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
8091 # It might be that x_includes is empty (headers are found in the
8092 # standard search path. Then output the corresponding message
8093 ac_out_x_includes=$x_includes
8094 test "x$x_includes" = x && ac_out_x_includes="in standard search path"
8095 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $ac_out_x_includes" >&5
8096 echo "${ECHO_T}libraries $x_libraries, headers $ac_out_x_includes" >&6
8099 if test "$no_x" = yes; then
8100 window_system=none
8101 else
8102 window_system=x11
8105 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
8106 LD_SWITCH_X_SITE=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
8107 LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
8108 x_default_search_path=""
8109 for x_library in `echo ${x_libraries} | sed -e "s/:/ /g"`; do
8110 x_search_path="\
8111 ${x_library}/X11/%L/%T/%N%C%S:\
8112 ${x_library}/X11/%l/%T/%N%C%S:\
8113 ${x_library}/X11/%T/%N%C%S:\
8114 ${x_library}/X11/%L/%T/%N%S:\
8115 ${x_library}/X11/%l/%T/%N%S:\
8116 ${x_library}/X11/%T/%N%S"
8117 if test x"${x_default_search_path}" = x; then
8118 x_default_search_path=${x_search_path}
8119 else
8120 x_default_search_path="${x_search_path}:${x_default_search_path}"
8122 done
8124 if test "${x_includes}" != NONE && test -n "${x_includes}"; then
8125 C_SWITCH_X_SITE=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
8128 if test x"${x_includes}" = x; then
8129 bitmapdir=/usr/include/X11/bitmaps
8130 else
8131 # accumulate include directories that have X11 bitmap subdirectories
8132 bmd_acc="dummyval"
8133 for bmd in `echo ${x_includes} | sed -e "s/:/ /g"`; do
8134 if test -d "${bmd}/X11/bitmaps"; then
8135 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
8137 if test -d "${bmd}/bitmaps"; then
8138 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
8140 done
8141 if test ${bmd_acc} != "dummyval"; then
8142 bitmapdir=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
8146 case "${window_system}" in
8147 x11 )
8148 HAVE_X_WINDOWS=yes
8149 HAVE_X11=yes
8150 case "${with_x_toolkit}" in
8151 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
8152 motif ) USE_X_TOOLKIT=MOTIF ;;
8153 gtk ) with_gtk=yes
8154 USE_X_TOOLKIT=none ;;
8155 no ) USE_X_TOOLKIT=none ;;
8156 * ) USE_X_TOOLKIT=maybe ;;
8157 esac
8159 none )
8160 HAVE_X_WINDOWS=no
8161 HAVE_X11=no
8162 USE_X_TOOLKIT=none
8164 esac
8166 ### If we're using X11, we should use the X menu package.
8167 HAVE_MENUS=no
8168 case ${HAVE_X11} in
8169 yes ) HAVE_MENUS=yes ;;
8170 esac
8172 if test "${opsys}" = "hpux9"; then
8173 case "${x_libraries}" in
8174 *X11R4* )
8175 opsysfile="s/hpux9-x11r4.h"
8177 esac
8180 if test "${opsys}" = "hpux9shr"; then
8181 case "${x_libraries}" in
8182 *X11R4* )
8183 opsysfile="s/hpux9shxr4.h"
8185 esac
8188 HAVE_CARBON=no
8189 if test "${HAVE_X11}" != "yes"; then
8190 if test "${with_carbon}" != "no"; then
8191 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
8192 echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
8193 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6
8194 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
8195 echo $ECHO_N "(cached) $ECHO_C" >&6
8197 echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
8198 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6
8199 else
8200 # Is the header compilable?
8201 echo "$as_me:$LINENO: checking Carbon/Carbon.h usability" >&5
8202 echo $ECHO_N "checking Carbon/Carbon.h usability... $ECHO_C" >&6
8203 cat >conftest.$ac_ext <<_ACEOF
8204 /* confdefs.h. */
8205 _ACEOF
8206 cat confdefs.h >>conftest.$ac_ext
8207 cat >>conftest.$ac_ext <<_ACEOF
8208 /* end confdefs.h. */
8209 $ac_includes_default
8210 #include <Carbon/Carbon.h>
8211 _ACEOF
8212 rm -f conftest.$ac_objext
8213 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8214 (eval $ac_compile) 2>conftest.er1
8215 ac_status=$?
8216 grep -v '^ *+' conftest.er1 >conftest.err
8217 rm -f conftest.er1
8218 cat conftest.err >&5
8219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8220 (exit $ac_status); } &&
8221 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8223 (eval $ac_try) 2>&5
8224 ac_status=$?
8225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8226 (exit $ac_status); }; } &&
8227 { ac_try='test -s conftest.$ac_objext'
8228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8229 (eval $ac_try) 2>&5
8230 ac_status=$?
8231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8232 (exit $ac_status); }; }; then
8233 ac_header_compiler=yes
8234 else
8235 echo "$as_me: failed program was:" >&5
8236 sed 's/^/| /' conftest.$ac_ext >&5
8238 ac_header_compiler=no
8240 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8241 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8242 echo "${ECHO_T}$ac_header_compiler" >&6
8244 # Is the header present?
8245 echo "$as_me:$LINENO: checking Carbon/Carbon.h presence" >&5
8246 echo $ECHO_N "checking Carbon/Carbon.h presence... $ECHO_C" >&6
8247 cat >conftest.$ac_ext <<_ACEOF
8248 /* confdefs.h. */
8249 _ACEOF
8250 cat confdefs.h >>conftest.$ac_ext
8251 cat >>conftest.$ac_ext <<_ACEOF
8252 /* end confdefs.h. */
8253 #include <Carbon/Carbon.h>
8254 _ACEOF
8255 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8256 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8257 ac_status=$?
8258 grep -v '^ *+' conftest.er1 >conftest.err
8259 rm -f conftest.er1
8260 cat conftest.err >&5
8261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8262 (exit $ac_status); } >/dev/null; then
8263 if test -s conftest.err; then
8264 ac_cpp_err=$ac_c_preproc_warn_flag
8265 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8266 else
8267 ac_cpp_err=
8269 else
8270 ac_cpp_err=yes
8272 if test -z "$ac_cpp_err"; then
8273 ac_header_preproc=yes
8274 else
8275 echo "$as_me: failed program was:" >&5
8276 sed 's/^/| /' conftest.$ac_ext >&5
8278 ac_header_preproc=no
8280 rm -f conftest.err conftest.$ac_ext
8281 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8282 echo "${ECHO_T}$ac_header_preproc" >&6
8284 # So? What about this header?
8285 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8286 yes:no: )
8287 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&5
8288 echo "$as_me: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8289 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&5
8290 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&2;}
8291 ac_header_preproc=yes
8293 no:yes:* )
8294 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&5
8295 echo "$as_me: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&2;}
8296 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&5
8297 echo "$as_me: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&2;}
8298 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&5
8299 echo "$as_me: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&2;}
8300 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&5
8301 echo "$as_me: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&2;}
8302 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5
8303 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;}
8304 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&5
8305 echo "$as_me: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&2;}
8307 cat <<\_ASBOX
8308 ## ------------------------------------------ ##
8309 ## Report this to the AC_PACKAGE_NAME lists. ##
8310 ## ------------------------------------------ ##
8311 _ASBOX
8313 sed "s/^/$as_me: WARNING: /" >&2
8315 esac
8316 echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
8317 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6
8318 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
8319 echo $ECHO_N "(cached) $ECHO_C" >&6
8320 else
8321 ac_cv_header_Carbon_Carbon_h=$ac_header_preproc
8323 echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
8324 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6
8327 if test $ac_cv_header_Carbon_Carbon_h = yes; then
8328 HAVE_CARBON=yes
8335 ### Compute the unexec source name from the object name.
8336 UNEXEC_SRC="`echo ${unexec} | sed 's/\.o/.c/'`"
8338 # Do the opsystem or machine files prohibit the use of the GNU malloc?
8339 # Assume not, until told otherwise.
8340 GNU_MALLOC=yes
8341 doug_lea_malloc=yes
8342 echo "$as_me:$LINENO: checking for malloc_get_state" >&5
8343 echo $ECHO_N "checking for malloc_get_state... $ECHO_C" >&6
8344 if test "${ac_cv_func_malloc_get_state+set}" = set; then
8345 echo $ECHO_N "(cached) $ECHO_C" >&6
8346 else
8347 cat >conftest.$ac_ext <<_ACEOF
8348 /* confdefs.h. */
8349 _ACEOF
8350 cat confdefs.h >>conftest.$ac_ext
8351 cat >>conftest.$ac_ext <<_ACEOF
8352 /* end confdefs.h. */
8353 /* Define malloc_get_state to an innocuous variant, in case <limits.h> declares malloc_get_state.
8354 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8355 #define malloc_get_state innocuous_malloc_get_state
8357 /* System header to define __stub macros and hopefully few prototypes,
8358 which can conflict with char malloc_get_state (); below.
8359 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8360 <limits.h> exists even on freestanding compilers. */
8362 #ifdef __STDC__
8363 # include <limits.h>
8364 #else
8365 # include <assert.h>
8366 #endif
8368 #undef malloc_get_state
8370 /* Override any gcc2 internal prototype to avoid an error. */
8371 #ifdef __cplusplus
8372 extern "C"
8374 #endif
8375 /* We use char because int might match the return type of a gcc2
8376 builtin and then its argument prototype would still apply. */
8377 char malloc_get_state ();
8378 /* The GNU C library defines this for functions which it implements
8379 to always fail with ENOSYS. Some functions are actually named
8380 something starting with __ and the normal name is an alias. */
8381 #if defined (__stub_malloc_get_state) || defined (__stub___malloc_get_state)
8382 choke me
8383 #else
8384 char (*f) () = malloc_get_state;
8385 #endif
8386 #ifdef __cplusplus
8388 #endif
8391 main ()
8393 return f != malloc_get_state;
8395 return 0;
8397 _ACEOF
8398 rm -f conftest.$ac_objext conftest$ac_exeext
8399 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8400 (eval $ac_link) 2>conftest.er1
8401 ac_status=$?
8402 grep -v '^ *+' conftest.er1 >conftest.err
8403 rm -f conftest.er1
8404 cat conftest.err >&5
8405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8406 (exit $ac_status); } &&
8407 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8409 (eval $ac_try) 2>&5
8410 ac_status=$?
8411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8412 (exit $ac_status); }; } &&
8413 { ac_try='test -s conftest$ac_exeext'
8414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8415 (eval $ac_try) 2>&5
8416 ac_status=$?
8417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8418 (exit $ac_status); }; }; then
8419 ac_cv_func_malloc_get_state=yes
8420 else
8421 echo "$as_me: failed program was:" >&5
8422 sed 's/^/| /' conftest.$ac_ext >&5
8424 ac_cv_func_malloc_get_state=no
8426 rm -f conftest.err conftest.$ac_objext \
8427 conftest$ac_exeext conftest.$ac_ext
8429 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_get_state" >&5
8430 echo "${ECHO_T}$ac_cv_func_malloc_get_state" >&6
8431 if test $ac_cv_func_malloc_get_state = yes; then
8433 else
8434 doug_lea_malloc=no
8437 echo "$as_me:$LINENO: checking for malloc_set_state" >&5
8438 echo $ECHO_N "checking for malloc_set_state... $ECHO_C" >&6
8439 if test "${ac_cv_func_malloc_set_state+set}" = set; then
8440 echo $ECHO_N "(cached) $ECHO_C" >&6
8441 else
8442 cat >conftest.$ac_ext <<_ACEOF
8443 /* confdefs.h. */
8444 _ACEOF
8445 cat confdefs.h >>conftest.$ac_ext
8446 cat >>conftest.$ac_ext <<_ACEOF
8447 /* end confdefs.h. */
8448 /* Define malloc_set_state to an innocuous variant, in case <limits.h> declares malloc_set_state.
8449 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8450 #define malloc_set_state innocuous_malloc_set_state
8452 /* System header to define __stub macros and hopefully few prototypes,
8453 which can conflict with char malloc_set_state (); below.
8454 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8455 <limits.h> exists even on freestanding compilers. */
8457 #ifdef __STDC__
8458 # include <limits.h>
8459 #else
8460 # include <assert.h>
8461 #endif
8463 #undef malloc_set_state
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 malloc_set_state ();
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_malloc_set_state) || defined (__stub___malloc_set_state)
8477 choke me
8478 #else
8479 char (*f) () = malloc_set_state;
8480 #endif
8481 #ifdef __cplusplus
8483 #endif
8486 main ()
8488 return f != malloc_set_state;
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>conftest.er1
8496 ac_status=$?
8497 grep -v '^ *+' conftest.er1 >conftest.err
8498 rm -f conftest.er1
8499 cat conftest.err >&5
8500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8501 (exit $ac_status); } &&
8502 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8504 (eval $ac_try) 2>&5
8505 ac_status=$?
8506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8507 (exit $ac_status); }; } &&
8508 { ac_try='test -s conftest$ac_exeext'
8509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8510 (eval $ac_try) 2>&5
8511 ac_status=$?
8512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8513 (exit $ac_status); }; }; then
8514 ac_cv_func_malloc_set_state=yes
8515 else
8516 echo "$as_me: failed program was:" >&5
8517 sed 's/^/| /' conftest.$ac_ext >&5
8519 ac_cv_func_malloc_set_state=no
8521 rm -f conftest.err conftest.$ac_objext \
8522 conftest$ac_exeext conftest.$ac_ext
8524 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_set_state" >&5
8525 echo "${ECHO_T}$ac_cv_func_malloc_set_state" >&6
8526 if test $ac_cv_func_malloc_set_state = yes; then
8528 else
8529 doug_lea_malloc=no
8532 echo "$as_me:$LINENO: checking whether __after_morecore_hook exists" >&5
8533 echo $ECHO_N "checking whether __after_morecore_hook exists... $ECHO_C" >&6
8534 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then
8535 echo $ECHO_N "(cached) $ECHO_C" >&6
8536 else
8537 cat >conftest.$ac_ext <<_ACEOF
8538 /* confdefs.h. */
8539 _ACEOF
8540 cat confdefs.h >>conftest.$ac_ext
8541 cat >>conftest.$ac_ext <<_ACEOF
8542 /* end confdefs.h. */
8543 extern void (* __after_morecore_hook)();
8545 main ()
8547 __after_morecore_hook = 0
8549 return 0;
8551 _ACEOF
8552 rm -f conftest.$ac_objext conftest$ac_exeext
8553 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8554 (eval $ac_link) 2>conftest.er1
8555 ac_status=$?
8556 grep -v '^ *+' conftest.er1 >conftest.err
8557 rm -f conftest.er1
8558 cat conftest.err >&5
8559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8560 (exit $ac_status); } &&
8561 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8563 (eval $ac_try) 2>&5
8564 ac_status=$?
8565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8566 (exit $ac_status); }; } &&
8567 { ac_try='test -s conftest$ac_exeext'
8568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8569 (eval $ac_try) 2>&5
8570 ac_status=$?
8571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8572 (exit $ac_status); }; }; then
8573 emacs_cv_var___after_morecore_hook=yes
8574 else
8575 echo "$as_me: failed program was:" >&5
8576 sed 's/^/| /' conftest.$ac_ext >&5
8578 emacs_cv_var___after_morecore_hook=no
8580 rm -f conftest.err conftest.$ac_objext \
8581 conftest$ac_exeext conftest.$ac_ext
8583 echo "$as_me:$LINENO: result: $emacs_cv_var___after_morecore_hook" >&5
8584 echo "${ECHO_T}$emacs_cv_var___after_morecore_hook" >&6
8585 if test $emacs_cv_var___after_morecore_hook = no; then
8586 doug_lea_malloc=no
8588 if test "${system_malloc}" = "yes"; then
8589 GNU_MALLOC=no
8590 GNU_MALLOC_reason="
8591 (The GNU allocators don't work with this system configuration.)"
8593 if test "$doug_lea_malloc" = "yes" ; then
8594 if test "$GNU_MALLOC" = yes ; then
8595 GNU_MALLOC_reason="
8596 (Using Doug Lea's new malloc from the GNU C Library.)"
8599 cat >>confdefs.h <<\_ACEOF
8600 #define DOUG_LEA_MALLOC 1
8601 _ACEOF
8605 if test x"${REL_ALLOC}" = x; then
8606 REL_ALLOC=${GNU_MALLOC}
8612 for ac_header in stdlib.h unistd.h
8614 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8615 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8616 echo "$as_me:$LINENO: checking for $ac_header" >&5
8617 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8618 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8619 echo $ECHO_N "(cached) $ECHO_C" >&6
8621 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8622 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8623 else
8624 # Is the header compilable?
8625 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8626 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8627 cat >conftest.$ac_ext <<_ACEOF
8628 /* confdefs.h. */
8629 _ACEOF
8630 cat confdefs.h >>conftest.$ac_ext
8631 cat >>conftest.$ac_ext <<_ACEOF
8632 /* end confdefs.h. */
8633 $ac_includes_default
8634 #include <$ac_header>
8635 _ACEOF
8636 rm -f conftest.$ac_objext
8637 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8638 (eval $ac_compile) 2>conftest.er1
8639 ac_status=$?
8640 grep -v '^ *+' conftest.er1 >conftest.err
8641 rm -f conftest.er1
8642 cat conftest.err >&5
8643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8644 (exit $ac_status); } &&
8645 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8647 (eval $ac_try) 2>&5
8648 ac_status=$?
8649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8650 (exit $ac_status); }; } &&
8651 { ac_try='test -s conftest.$ac_objext'
8652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8653 (eval $ac_try) 2>&5
8654 ac_status=$?
8655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8656 (exit $ac_status); }; }; then
8657 ac_header_compiler=yes
8658 else
8659 echo "$as_me: failed program was:" >&5
8660 sed 's/^/| /' conftest.$ac_ext >&5
8662 ac_header_compiler=no
8664 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8665 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8666 echo "${ECHO_T}$ac_header_compiler" >&6
8668 # Is the header present?
8669 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8670 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8671 cat >conftest.$ac_ext <<_ACEOF
8672 /* confdefs.h. */
8673 _ACEOF
8674 cat confdefs.h >>conftest.$ac_ext
8675 cat >>conftest.$ac_ext <<_ACEOF
8676 /* end confdefs.h. */
8677 #include <$ac_header>
8678 _ACEOF
8679 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8680 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8681 ac_status=$?
8682 grep -v '^ *+' conftest.er1 >conftest.err
8683 rm -f conftest.er1
8684 cat conftest.err >&5
8685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8686 (exit $ac_status); } >/dev/null; then
8687 if test -s conftest.err; then
8688 ac_cpp_err=$ac_c_preproc_warn_flag
8689 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8690 else
8691 ac_cpp_err=
8693 else
8694 ac_cpp_err=yes
8696 if test -z "$ac_cpp_err"; then
8697 ac_header_preproc=yes
8698 else
8699 echo "$as_me: failed program was:" >&5
8700 sed 's/^/| /' conftest.$ac_ext >&5
8702 ac_header_preproc=no
8704 rm -f conftest.err conftest.$ac_ext
8705 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8706 echo "${ECHO_T}$ac_header_preproc" >&6
8708 # So? What about this header?
8709 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8710 yes:no: )
8711 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8712 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8713 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8714 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8715 ac_header_preproc=yes
8717 no:yes:* )
8718 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8719 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8720 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8721 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8722 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8723 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8724 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8725 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8726 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8727 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8728 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8729 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8731 cat <<\_ASBOX
8732 ## ------------------------------------------ ##
8733 ## Report this to the AC_PACKAGE_NAME lists. ##
8734 ## ------------------------------------------ ##
8735 _ASBOX
8737 sed "s/^/$as_me: WARNING: /" >&2
8739 esac
8740 echo "$as_me:$LINENO: checking for $ac_header" >&5
8741 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8742 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8743 echo $ECHO_N "(cached) $ECHO_C" >&6
8744 else
8745 eval "$as_ac_Header=\$ac_header_preproc"
8747 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8748 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8751 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8752 cat >>confdefs.h <<_ACEOF
8753 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8754 _ACEOF
8758 done
8761 for ac_func in getpagesize
8763 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8764 echo "$as_me:$LINENO: checking for $ac_func" >&5
8765 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8766 if eval "test \"\${$as_ac_var+set}\" = set"; then
8767 echo $ECHO_N "(cached) $ECHO_C" >&6
8768 else
8769 cat >conftest.$ac_ext <<_ACEOF
8770 /* confdefs.h. */
8771 _ACEOF
8772 cat confdefs.h >>conftest.$ac_ext
8773 cat >>conftest.$ac_ext <<_ACEOF
8774 /* end confdefs.h. */
8775 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8776 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8777 #define $ac_func innocuous_$ac_func
8779 /* System header to define __stub macros and hopefully few prototypes,
8780 which can conflict with char $ac_func (); below.
8781 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8782 <limits.h> exists even on freestanding compilers. */
8784 #ifdef __STDC__
8785 # include <limits.h>
8786 #else
8787 # include <assert.h>
8788 #endif
8790 #undef $ac_func
8792 /* Override any gcc2 internal prototype to avoid an error. */
8793 #ifdef __cplusplus
8794 extern "C"
8796 #endif
8797 /* We use char because int might match the return type of a gcc2
8798 builtin and then its argument prototype would still apply. */
8799 char $ac_func ();
8800 /* The GNU C library defines this for functions which it implements
8801 to always fail with ENOSYS. Some functions are actually named
8802 something starting with __ and the normal name is an alias. */
8803 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8804 choke me
8805 #else
8806 char (*f) () = $ac_func;
8807 #endif
8808 #ifdef __cplusplus
8810 #endif
8813 main ()
8815 return f != $ac_func;
8817 return 0;
8819 _ACEOF
8820 rm -f conftest.$ac_objext conftest$ac_exeext
8821 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8822 (eval $ac_link) 2>conftest.er1
8823 ac_status=$?
8824 grep -v '^ *+' conftest.er1 >conftest.err
8825 rm -f conftest.er1
8826 cat conftest.err >&5
8827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8828 (exit $ac_status); } &&
8829 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8831 (eval $ac_try) 2>&5
8832 ac_status=$?
8833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8834 (exit $ac_status); }; } &&
8835 { ac_try='test -s conftest$ac_exeext'
8836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8837 (eval $ac_try) 2>&5
8838 ac_status=$?
8839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8840 (exit $ac_status); }; }; then
8841 eval "$as_ac_var=yes"
8842 else
8843 echo "$as_me: failed program was:" >&5
8844 sed 's/^/| /' conftest.$ac_ext >&5
8846 eval "$as_ac_var=no"
8848 rm -f conftest.err conftest.$ac_objext \
8849 conftest$ac_exeext conftest.$ac_ext
8851 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8852 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8853 if test `eval echo '${'$as_ac_var'}'` = yes; then
8854 cat >>confdefs.h <<_ACEOF
8855 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8856 _ACEOF
8859 done
8861 echo "$as_me:$LINENO: checking for working mmap" >&5
8862 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
8863 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
8864 echo $ECHO_N "(cached) $ECHO_C" >&6
8865 else
8866 if test "$cross_compiling" = yes; then
8867 ac_cv_func_mmap_fixed_mapped=no
8868 else
8869 cat >conftest.$ac_ext <<_ACEOF
8870 /* confdefs.h. */
8871 _ACEOF
8872 cat confdefs.h >>conftest.$ac_ext
8873 cat >>conftest.$ac_ext <<_ACEOF
8874 /* end confdefs.h. */
8875 $ac_includes_default
8876 /* malloc might have been renamed as rpl_malloc. */
8877 #undef malloc
8879 /* Thanks to Mike Haertel and Jim Avera for this test.
8880 Here is a matrix of mmap possibilities:
8881 mmap private not fixed
8882 mmap private fixed at somewhere currently unmapped
8883 mmap private fixed at somewhere already mapped
8884 mmap shared not fixed
8885 mmap shared fixed at somewhere currently unmapped
8886 mmap shared fixed at somewhere already mapped
8887 For private mappings, we should verify that changes cannot be read()
8888 back from the file, nor mmap's back from the file at a different
8889 address. (There have been systems where private was not correctly
8890 implemented like the infamous i386 svr4.0, and systems where the
8891 VM page cache was not coherent with the file system buffer cache
8892 like early versions of FreeBSD and possibly contemporary NetBSD.)
8893 For shared mappings, we should conversely verify that changes get
8894 propagated back to all the places they're supposed to be.
8896 Grep wants private fixed already mapped.
8897 The main things grep needs to know about mmap are:
8898 * does it exist and is it safe to write into the mmap'd area
8899 * how to use it (BSD variants) */
8901 #include <fcntl.h>
8902 #include <sys/mman.h>
8904 #if !STDC_HEADERS && !HAVE_STDLIB_H
8905 char *malloc ();
8906 #endif
8908 /* This mess was copied from the GNU getpagesize.h. */
8909 #if !HAVE_GETPAGESIZE
8910 /* Assume that all systems that can run configure have sys/param.h. */
8911 # if !HAVE_SYS_PARAM_H
8912 # define HAVE_SYS_PARAM_H 1
8913 # endif
8915 # ifdef _SC_PAGESIZE
8916 # define getpagesize() sysconf(_SC_PAGESIZE)
8917 # else /* no _SC_PAGESIZE */
8918 # if HAVE_SYS_PARAM_H
8919 # include <sys/param.h>
8920 # ifdef EXEC_PAGESIZE
8921 # define getpagesize() EXEC_PAGESIZE
8922 # else /* no EXEC_PAGESIZE */
8923 # ifdef NBPG
8924 # define getpagesize() NBPG * CLSIZE
8925 # ifndef CLSIZE
8926 # define CLSIZE 1
8927 # endif /* no CLSIZE */
8928 # else /* no NBPG */
8929 # ifdef NBPC
8930 # define getpagesize() NBPC
8931 # else /* no NBPC */
8932 # ifdef PAGESIZE
8933 # define getpagesize() PAGESIZE
8934 # endif /* PAGESIZE */
8935 # endif /* no NBPC */
8936 # endif /* no NBPG */
8937 # endif /* no EXEC_PAGESIZE */
8938 # else /* no HAVE_SYS_PARAM_H */
8939 # define getpagesize() 8192 /* punt totally */
8940 # endif /* no HAVE_SYS_PARAM_H */
8941 # endif /* no _SC_PAGESIZE */
8943 #endif /* no HAVE_GETPAGESIZE */
8946 main ()
8948 char *data, *data2, *data3;
8949 int i, pagesize;
8950 int fd;
8952 pagesize = getpagesize ();
8954 /* First, make a file with some known garbage in it. */
8955 data = (char *) malloc (pagesize);
8956 if (!data)
8957 exit (1);
8958 for (i = 0; i < pagesize; ++i)
8959 *(data + i) = rand ();
8960 umask (0);
8961 fd = creat ("conftest.mmap", 0600);
8962 if (fd < 0)
8963 exit (1);
8964 if (write (fd, data, pagesize) != pagesize)
8965 exit (1);
8966 close (fd);
8968 /* Next, try to mmap the file at a fixed address which already has
8969 something else allocated at it. If we can, also make sure that
8970 we see the same garbage. */
8971 fd = open ("conftest.mmap", O_RDWR);
8972 if (fd < 0)
8973 exit (1);
8974 data2 = (char *) malloc (2 * pagesize);
8975 if (!data2)
8976 exit (1);
8977 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
8978 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
8979 MAP_PRIVATE | MAP_FIXED, fd, 0L))
8980 exit (1);
8981 for (i = 0; i < pagesize; ++i)
8982 if (*(data + i) != *(data2 + i))
8983 exit (1);
8985 /* Finally, make sure that changes to the mapped area do not
8986 percolate back to the file as seen by read(). (This is a bug on
8987 some variants of i386 svr4.0.) */
8988 for (i = 0; i < pagesize; ++i)
8989 *(data2 + i) = *(data2 + i) + 1;
8990 data3 = (char *) malloc (pagesize);
8991 if (!data3)
8992 exit (1);
8993 if (read (fd, data3, pagesize) != pagesize)
8994 exit (1);
8995 for (i = 0; i < pagesize; ++i)
8996 if (*(data + i) != *(data3 + i))
8997 exit (1);
8998 close (fd);
8999 exit (0);
9001 _ACEOF
9002 rm -f conftest$ac_exeext
9003 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9004 (eval $ac_link) 2>&5
9005 ac_status=$?
9006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9007 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9009 (eval $ac_try) 2>&5
9010 ac_status=$?
9011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9012 (exit $ac_status); }; }; then
9013 ac_cv_func_mmap_fixed_mapped=yes
9014 else
9015 echo "$as_me: program exited with status $ac_status" >&5
9016 echo "$as_me: failed program was:" >&5
9017 sed 's/^/| /' conftest.$ac_ext >&5
9019 ( exit $ac_status )
9020 ac_cv_func_mmap_fixed_mapped=no
9022 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9025 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
9026 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
9027 if test $ac_cv_func_mmap_fixed_mapped = yes; then
9029 cat >>confdefs.h <<\_ACEOF
9030 #define HAVE_MMAP 1
9031 _ACEOF
9034 rm -f conftest.mmap
9036 if test $use_mmap_for_buffers = yes; then
9037 REL_ALLOC=no
9040 LIBS="$libsrc_libs $LIBS"
9043 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
9044 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
9045 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
9046 echo $ECHO_N "(cached) $ECHO_C" >&6
9047 else
9048 ac_check_lib_save_LIBS=$LIBS
9049 LIBS="-ldnet $LIBS"
9050 cat >conftest.$ac_ext <<_ACEOF
9051 /* confdefs.h. */
9052 _ACEOF
9053 cat confdefs.h >>conftest.$ac_ext
9054 cat >>conftest.$ac_ext <<_ACEOF
9055 /* end confdefs.h. */
9057 /* Override any gcc2 internal prototype to avoid an error. */
9058 #ifdef __cplusplus
9059 extern "C"
9060 #endif
9061 /* We use char because int might match the return type of a gcc2
9062 builtin and then its argument prototype would still apply. */
9063 char dnet_ntoa ();
9065 main ()
9067 dnet_ntoa ();
9069 return 0;
9071 _ACEOF
9072 rm -f conftest.$ac_objext conftest$ac_exeext
9073 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9074 (eval $ac_link) 2>conftest.er1
9075 ac_status=$?
9076 grep -v '^ *+' conftest.er1 >conftest.err
9077 rm -f conftest.er1
9078 cat conftest.err >&5
9079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9080 (exit $ac_status); } &&
9081 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9083 (eval $ac_try) 2>&5
9084 ac_status=$?
9085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9086 (exit $ac_status); }; } &&
9087 { ac_try='test -s conftest$ac_exeext'
9088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9089 (eval $ac_try) 2>&5
9090 ac_status=$?
9091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9092 (exit $ac_status); }; }; then
9093 ac_cv_lib_dnet_dnet_ntoa=yes
9094 else
9095 echo "$as_me: failed program was:" >&5
9096 sed 's/^/| /' conftest.$ac_ext >&5
9098 ac_cv_lib_dnet_dnet_ntoa=no
9100 rm -f conftest.err conftest.$ac_objext \
9101 conftest$ac_exeext conftest.$ac_ext
9102 LIBS=$ac_check_lib_save_LIBS
9104 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
9105 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
9106 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
9107 cat >>confdefs.h <<_ACEOF
9108 #define HAVE_LIBDNET 1
9109 _ACEOF
9111 LIBS="-ldnet $LIBS"
9116 echo "$as_me:$LINENO: checking for main in -lXbsd" >&5
9117 echo $ECHO_N "checking for main in -lXbsd... $ECHO_C" >&6
9118 if test "${ac_cv_lib_Xbsd_main+set}" = set; then
9119 echo $ECHO_N "(cached) $ECHO_C" >&6
9120 else
9121 ac_check_lib_save_LIBS=$LIBS
9122 LIBS="-lXbsd $LIBS"
9123 cat >conftest.$ac_ext <<_ACEOF
9124 /* confdefs.h. */
9125 _ACEOF
9126 cat confdefs.h >>conftest.$ac_ext
9127 cat >>conftest.$ac_ext <<_ACEOF
9128 /* end confdefs.h. */
9132 main ()
9134 main ();
9136 return 0;
9138 _ACEOF
9139 rm -f conftest.$ac_objext conftest$ac_exeext
9140 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9141 (eval $ac_link) 2>conftest.er1
9142 ac_status=$?
9143 grep -v '^ *+' conftest.er1 >conftest.err
9144 rm -f conftest.er1
9145 cat conftest.err >&5
9146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9147 (exit $ac_status); } &&
9148 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9150 (eval $ac_try) 2>&5
9151 ac_status=$?
9152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9153 (exit $ac_status); }; } &&
9154 { ac_try='test -s conftest$ac_exeext'
9155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9156 (eval $ac_try) 2>&5
9157 ac_status=$?
9158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9159 (exit $ac_status); }; }; then
9160 ac_cv_lib_Xbsd_main=yes
9161 else
9162 echo "$as_me: failed program was:" >&5
9163 sed 's/^/| /' conftest.$ac_ext >&5
9165 ac_cv_lib_Xbsd_main=no
9167 rm -f conftest.err conftest.$ac_objext \
9168 conftest$ac_exeext conftest.$ac_ext
9169 LIBS=$ac_check_lib_save_LIBS
9171 echo "$as_me:$LINENO: result: $ac_cv_lib_Xbsd_main" >&5
9172 echo "${ECHO_T}$ac_cv_lib_Xbsd_main" >&6
9173 if test $ac_cv_lib_Xbsd_main = yes; then
9174 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
9179 echo "$as_me:$LINENO: checking for cma_open in -lpthreads" >&5
9180 echo $ECHO_N "checking for cma_open in -lpthreads... $ECHO_C" >&6
9181 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then
9182 echo $ECHO_N "(cached) $ECHO_C" >&6
9183 else
9184 ac_check_lib_save_LIBS=$LIBS
9185 LIBS="-lpthreads $LIBS"
9186 cat >conftest.$ac_ext <<_ACEOF
9187 /* confdefs.h. */
9188 _ACEOF
9189 cat confdefs.h >>conftest.$ac_ext
9190 cat >>conftest.$ac_ext <<_ACEOF
9191 /* end confdefs.h. */
9193 /* Override any gcc2 internal prototype to avoid an error. */
9194 #ifdef __cplusplus
9195 extern "C"
9196 #endif
9197 /* We use char because int might match the return type of a gcc2
9198 builtin and then its argument prototype would still apply. */
9199 char cma_open ();
9201 main ()
9203 cma_open ();
9205 return 0;
9207 _ACEOF
9208 rm -f conftest.$ac_objext conftest$ac_exeext
9209 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9210 (eval $ac_link) 2>conftest.er1
9211 ac_status=$?
9212 grep -v '^ *+' conftest.er1 >conftest.err
9213 rm -f conftest.er1
9214 cat conftest.err >&5
9215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9216 (exit $ac_status); } &&
9217 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9219 (eval $ac_try) 2>&5
9220 ac_status=$?
9221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9222 (exit $ac_status); }; } &&
9223 { ac_try='test -s conftest$ac_exeext'
9224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9225 (eval $ac_try) 2>&5
9226 ac_status=$?
9227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9228 (exit $ac_status); }; }; then
9229 ac_cv_lib_pthreads_cma_open=yes
9230 else
9231 echo "$as_me: failed program was:" >&5
9232 sed 's/^/| /' conftest.$ac_ext >&5
9234 ac_cv_lib_pthreads_cma_open=no
9236 rm -f conftest.err conftest.$ac_objext \
9237 conftest$ac_exeext conftest.$ac_ext
9238 LIBS=$ac_check_lib_save_LIBS
9240 echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_cma_open" >&5
9241 echo "${ECHO_T}$ac_cv_lib_pthreads_cma_open" >&6
9242 if test $ac_cv_lib_pthreads_cma_open = yes; then
9243 cat >>confdefs.h <<_ACEOF
9244 #define HAVE_LIBPTHREADS 1
9245 _ACEOF
9247 LIBS="-lpthreads $LIBS"
9252 echo "$as_me:$LINENO: checking for XFree86 in /usr/X386" >&5
9253 echo $ECHO_N "checking for XFree86 in /usr/X386... $ECHO_C" >&6
9254 if test -d /usr/X386/include; then
9255 HAVE_XFREE386=yes
9256 : ${C_SWITCH_X_SITE="-I/usr/X386/include"}
9257 else
9258 HAVE_XFREE386=no
9260 echo "$as_me:$LINENO: result: $HAVE_XFREE386" >&5
9261 echo "${ECHO_T}$HAVE_XFREE386" >&6
9264 case ${host_os} in
9265 aix*)
9266 echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
9267 echo $ECHO_N "checking for -bbigtoc option... $ECHO_C" >&6
9268 if test "${gdb_cv_bigtoc+set}" = set; then
9269 echo $ECHO_N "(cached) $ECHO_C" >&6
9270 else
9272 case $GCC in
9273 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
9274 *) gdb_cv_bigtoc=-bbigtoc ;;
9275 esac
9277 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
9278 cat >conftest.$ac_ext <<_ACEOF
9279 /* confdefs.h. */
9280 _ACEOF
9281 cat confdefs.h >>conftest.$ac_ext
9282 cat >>conftest.$ac_ext <<_ACEOF
9283 /* end confdefs.h. */
9286 main ()
9288 int i;
9290 return 0;
9292 _ACEOF
9293 rm -f conftest.$ac_objext conftest$ac_exeext
9294 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9295 (eval $ac_link) 2>conftest.er1
9296 ac_status=$?
9297 grep -v '^ *+' conftest.er1 >conftest.err
9298 rm -f conftest.er1
9299 cat conftest.err >&5
9300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9301 (exit $ac_status); } &&
9302 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9304 (eval $ac_try) 2>&5
9305 ac_status=$?
9306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9307 (exit $ac_status); }; } &&
9308 { ac_try='test -s conftest$ac_exeext'
9309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9310 (eval $ac_try) 2>&5
9311 ac_status=$?
9312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9313 (exit $ac_status); }; }; then
9315 else
9316 echo "$as_me: failed program was:" >&5
9317 sed 's/^/| /' conftest.$ac_ext >&5
9319 gdb_cv_bigtoc=
9321 rm -f conftest.err conftest.$ac_objext \
9322 conftest$ac_exeext conftest.$ac_ext
9325 echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
9326 echo "${ECHO_T}$gdb_cv_bigtoc" >&6
9328 esac
9330 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
9331 # used for the tests that follow. We set them back to REAL_CFLAGS and
9332 # REAL_CPPFLAGS later on.
9334 REAL_CPPFLAGS="$CPPFLAGS"
9336 if test "${HAVE_X11}" = "yes"; then
9337 DEFS="$C_SWITCH_X_SITE $DEFS"
9338 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
9339 LIBS="$LIBX $LIBS"
9340 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
9341 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
9343 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
9344 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
9345 # but it's more convenient here to set LD_RUN_PATH
9346 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
9347 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
9348 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
9349 export LD_RUN_PATH
9352 if test "${opsys}" = "gnu-linux"; then
9353 echo "$as_me:$LINENO: checking whether X on GNU/Linux needs -b to link" >&5
9354 echo $ECHO_N "checking whether X on GNU/Linux needs -b to link... $ECHO_C" >&6
9355 cat >conftest.$ac_ext <<_ACEOF
9356 /* confdefs.h. */
9357 _ACEOF
9358 cat confdefs.h >>conftest.$ac_ext
9359 cat >>conftest.$ac_ext <<_ACEOF
9360 /* end confdefs.h. */
9363 main ()
9365 XOpenDisplay ("foo");
9367 return 0;
9369 _ACEOF
9370 rm -f conftest.$ac_objext conftest$ac_exeext
9371 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9372 (eval $ac_link) 2>conftest.er1
9373 ac_status=$?
9374 grep -v '^ *+' conftest.er1 >conftest.err
9375 rm -f conftest.er1
9376 cat conftest.err >&5
9377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9378 (exit $ac_status); } &&
9379 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9381 (eval $ac_try) 2>&5
9382 ac_status=$?
9383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9384 (exit $ac_status); }; } &&
9385 { ac_try='test -s conftest$ac_exeext'
9386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9387 (eval $ac_try) 2>&5
9388 ac_status=$?
9389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9390 (exit $ac_status); }; }; then
9391 xlinux_first_failure=no
9392 else
9393 echo "$as_me: failed program was:" >&5
9394 sed 's/^/| /' conftest.$ac_ext >&5
9396 xlinux_first_failure=yes
9398 rm -f conftest.err conftest.$ac_objext \
9399 conftest$ac_exeext conftest.$ac_ext
9400 if test "${xlinux_first_failure}" = "yes"; then
9401 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE"
9402 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE"
9403 OLD_CPPFLAGS="$CPPFLAGS"
9404 OLD_LIBS="$LIBS"
9405 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout"
9406 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout"
9407 CPPFLAGS="$CPPFLAGS -b i486-linuxaout"
9408 LIBS="$LIBS -b i486-linuxaout"
9409 cat >conftest.$ac_ext <<_ACEOF
9410 /* confdefs.h. */
9411 _ACEOF
9412 cat confdefs.h >>conftest.$ac_ext
9413 cat >>conftest.$ac_ext <<_ACEOF
9414 /* end confdefs.h. */
9417 main ()
9419 XOpenDisplay ("foo");
9421 return 0;
9423 _ACEOF
9424 rm -f conftest.$ac_objext conftest$ac_exeext
9425 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9426 (eval $ac_link) 2>conftest.er1
9427 ac_status=$?
9428 grep -v '^ *+' conftest.er1 >conftest.err
9429 rm -f conftest.er1
9430 cat conftest.err >&5
9431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9432 (exit $ac_status); } &&
9433 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9435 (eval $ac_try) 2>&5
9436 ac_status=$?
9437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9438 (exit $ac_status); }; } &&
9439 { ac_try='test -s conftest$ac_exeext'
9440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9441 (eval $ac_try) 2>&5
9442 ac_status=$?
9443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9444 (exit $ac_status); }; }; then
9445 xlinux_second_failure=no
9446 else
9447 echo "$as_me: failed program was:" >&5
9448 sed 's/^/| /' conftest.$ac_ext >&5
9450 xlinux_second_failure=yes
9452 rm -f conftest.err conftest.$ac_objext \
9453 conftest$ac_exeext conftest.$ac_ext
9454 if test "${xlinux_second_failure}" = "yes"; then
9455 # If we get the same failure with -b, there is no use adding -b.
9456 # So take it out. This plays safe.
9457 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
9458 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
9459 CPPFLAGS="$OLD_CPPFLAGS"
9460 LIBS="$OLD_LIBS"
9461 echo "$as_me:$LINENO: result: no" >&5
9462 echo "${ECHO_T}no" >&6
9463 else
9464 echo "$as_me:$LINENO: result: yes" >&5
9465 echo "${ECHO_T}yes" >&6
9467 else
9468 echo "$as_me:$LINENO: result: no" >&5
9469 echo "${ECHO_T}no" >&6
9473 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
9474 # header files included from there.
9475 echo "$as_me:$LINENO: checking for Xkb" >&5
9476 echo $ECHO_N "checking for Xkb... $ECHO_C" >&6
9477 cat >conftest.$ac_ext <<_ACEOF
9478 /* confdefs.h. */
9479 _ACEOF
9480 cat confdefs.h >>conftest.$ac_ext
9481 cat >>conftest.$ac_ext <<_ACEOF
9482 /* end confdefs.h. */
9483 #include <X11/Xlib.h>
9484 #include <X11/XKBlib.h>
9486 main ()
9488 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
9490 return 0;
9492 _ACEOF
9493 rm -f conftest.$ac_objext conftest$ac_exeext
9494 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9495 (eval $ac_link) 2>conftest.er1
9496 ac_status=$?
9497 grep -v '^ *+' conftest.er1 >conftest.err
9498 rm -f conftest.er1
9499 cat conftest.err >&5
9500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9501 (exit $ac_status); } &&
9502 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9504 (eval $ac_try) 2>&5
9505 ac_status=$?
9506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9507 (exit $ac_status); }; } &&
9508 { ac_try='test -s conftest$ac_exeext'
9509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9510 (eval $ac_try) 2>&5
9511 ac_status=$?
9512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9513 (exit $ac_status); }; }; then
9514 emacs_xkb=yes
9515 else
9516 echo "$as_me: failed program was:" >&5
9517 sed 's/^/| /' conftest.$ac_ext >&5
9519 emacs_xkb=no
9521 rm -f conftest.err conftest.$ac_objext \
9522 conftest$ac_exeext conftest.$ac_ext
9523 echo "$as_me:$LINENO: result: $emacs_xkb" >&5
9524 echo "${ECHO_T}$emacs_xkb" >&6
9525 if test $emacs_xkb = yes; then
9527 cat >>confdefs.h <<\_ACEOF
9528 #define HAVE_XKBGETKEYBOARD 1
9529 _ACEOF
9537 for ac_func in XrmSetDatabase XScreenResourceString \
9538 XScreenNumberOfScreen XSetWMProtocols
9540 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9541 echo "$as_me:$LINENO: checking for $ac_func" >&5
9542 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9543 if eval "test \"\${$as_ac_var+set}\" = set"; then
9544 echo $ECHO_N "(cached) $ECHO_C" >&6
9545 else
9546 cat >conftest.$ac_ext <<_ACEOF
9547 /* confdefs.h. */
9548 _ACEOF
9549 cat confdefs.h >>conftest.$ac_ext
9550 cat >>conftest.$ac_ext <<_ACEOF
9551 /* end confdefs.h. */
9552 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9553 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9554 #define $ac_func innocuous_$ac_func
9556 /* System header to define __stub macros and hopefully few prototypes,
9557 which can conflict with char $ac_func (); below.
9558 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9559 <limits.h> exists even on freestanding compilers. */
9561 #ifdef __STDC__
9562 # include <limits.h>
9563 #else
9564 # include <assert.h>
9565 #endif
9567 #undef $ac_func
9569 /* Override any gcc2 internal prototype to avoid an error. */
9570 #ifdef __cplusplus
9571 extern "C"
9573 #endif
9574 /* We use char because int might match the return type of a gcc2
9575 builtin and then its argument prototype would still apply. */
9576 char $ac_func ();
9577 /* The GNU C library defines this for functions which it implements
9578 to always fail with ENOSYS. Some functions are actually named
9579 something starting with __ and the normal name is an alias. */
9580 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9581 choke me
9582 #else
9583 char (*f) () = $ac_func;
9584 #endif
9585 #ifdef __cplusplus
9587 #endif
9590 main ()
9592 return f != $ac_func;
9594 return 0;
9596 _ACEOF
9597 rm -f conftest.$ac_objext conftest$ac_exeext
9598 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9599 (eval $ac_link) 2>conftest.er1
9600 ac_status=$?
9601 grep -v '^ *+' conftest.er1 >conftest.err
9602 rm -f conftest.er1
9603 cat conftest.err >&5
9604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9605 (exit $ac_status); } &&
9606 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9608 (eval $ac_try) 2>&5
9609 ac_status=$?
9610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9611 (exit $ac_status); }; } &&
9612 { ac_try='test -s conftest$ac_exeext'
9613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9614 (eval $ac_try) 2>&5
9615 ac_status=$?
9616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9617 (exit $ac_status); }; }; then
9618 eval "$as_ac_var=yes"
9619 else
9620 echo "$as_me: failed program was:" >&5
9621 sed 's/^/| /' conftest.$ac_ext >&5
9623 eval "$as_ac_var=no"
9625 rm -f conftest.err conftest.$ac_objext \
9626 conftest$ac_exeext conftest.$ac_ext
9628 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9629 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9630 if test `eval echo '${'$as_ac_var'}'` = yes; then
9631 cat >>confdefs.h <<_ACEOF
9632 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9633 _ACEOF
9636 done
9640 if test "${window_system}" = "x11"; then
9641 echo "$as_me:$LINENO: checking X11 version 6" >&5
9642 echo $ECHO_N "checking X11 version 6... $ECHO_C" >&6
9643 if test "${emacs_cv_x11_version_6+set}" = set; then
9644 echo $ECHO_N "(cached) $ECHO_C" >&6
9645 else
9646 cat >conftest.$ac_ext <<_ACEOF
9647 /* confdefs.h. */
9648 _ACEOF
9649 cat confdefs.h >>conftest.$ac_ext
9650 cat >>conftest.$ac_ext <<_ACEOF
9651 /* end confdefs.h. */
9652 #include <X11/Xlib.h>
9654 main ()
9656 #if XlibSpecificationRelease < 6
9657 fail;
9658 #endif
9661 return 0;
9663 _ACEOF
9664 rm -f conftest.$ac_objext conftest$ac_exeext
9665 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9666 (eval $ac_link) 2>conftest.er1
9667 ac_status=$?
9668 grep -v '^ *+' conftest.er1 >conftest.err
9669 rm -f conftest.er1
9670 cat conftest.err >&5
9671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9672 (exit $ac_status); } &&
9673 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
9679 { ac_try='test -s conftest$ac_exeext'
9680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9681 (eval $ac_try) 2>&5
9682 ac_status=$?
9683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9684 (exit $ac_status); }; }; then
9685 emacs_cv_x11_version_6=yes
9686 else
9687 echo "$as_me: failed program was:" >&5
9688 sed 's/^/| /' conftest.$ac_ext >&5
9690 emacs_cv_x11_version_6=no
9692 rm -f conftest.err conftest.$ac_objext \
9693 conftest$ac_exeext conftest.$ac_ext
9696 if test $emacs_cv_x11_version_6 = yes; then
9697 echo "$as_me:$LINENO: result: 6 or newer" >&5
9698 echo "${ECHO_T}6 or newer" >&6
9700 cat >>confdefs.h <<\_ACEOF
9701 #define HAVE_X11R6 1
9702 _ACEOF
9704 else
9705 echo "$as_me:$LINENO: result: before 6" >&5
9706 echo "${ECHO_T}before 6" >&6
9710 if test "${window_system}" = "x11"; then
9711 echo "$as_me:$LINENO: checking X11 version 5" >&5
9712 echo $ECHO_N "checking X11 version 5... $ECHO_C" >&6
9713 if test "${emacs_cv_x11_version_5+set}" = set; then
9714 echo $ECHO_N "(cached) $ECHO_C" >&6
9715 else
9716 cat >conftest.$ac_ext <<_ACEOF
9717 /* confdefs.h. */
9718 _ACEOF
9719 cat confdefs.h >>conftest.$ac_ext
9720 cat >>conftest.$ac_ext <<_ACEOF
9721 /* end confdefs.h. */
9722 #include <X11/Xlib.h>
9724 main ()
9726 #if XlibSpecificationRelease < 5
9727 fail;
9728 #endif
9731 return 0;
9733 _ACEOF
9734 rm -f conftest.$ac_objext conftest$ac_exeext
9735 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9736 (eval $ac_link) 2>conftest.er1
9737 ac_status=$?
9738 grep -v '^ *+' conftest.er1 >conftest.err
9739 rm -f conftest.er1
9740 cat conftest.err >&5
9741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9742 (exit $ac_status); } &&
9743 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9745 (eval $ac_try) 2>&5
9746 ac_status=$?
9747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9748 (exit $ac_status); }; } &&
9749 { ac_try='test -s conftest$ac_exeext'
9750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9751 (eval $ac_try) 2>&5
9752 ac_status=$?
9753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9754 (exit $ac_status); }; }; then
9755 emacs_cv_x11_version_5=yes
9756 else
9757 echo "$as_me: failed program was:" >&5
9758 sed 's/^/| /' conftest.$ac_ext >&5
9760 emacs_cv_x11_version_5=no
9762 rm -f conftest.err conftest.$ac_objext \
9763 conftest$ac_exeext conftest.$ac_ext
9766 if test $emacs_cv_x11_version_5 = yes; then
9767 echo "$as_me:$LINENO: result: 5 or newer" >&5
9768 echo "${ECHO_T}5 or newer" >&6
9769 HAVE_X11R5=yes
9771 cat >>confdefs.h <<\_ACEOF
9772 #define HAVE_X11R5 1
9773 _ACEOF
9775 else
9776 HAVE_X11R5=no
9777 echo "$as_me:$LINENO: result: before 5" >&5
9778 echo "${ECHO_T}before 5" >&6
9784 HAVE_GTK=no
9785 if test "${with_gtk}" = "yes" || test "$USE_X_TOOLKIT" = "gtk"; then
9786 if test "$USE_X_TOOLKIT" != "none" && test "$USE_X_TOOLKIT" != "maybe"; then
9787 { { echo "$as_me:$LINENO: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&5
9788 echo "$as_me: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&2;}
9789 { (exit 1); exit 1; }; };
9791 GLIB_REQUIRED=2.0.1
9792 GTK_REQUIRED=2.0.1
9793 GTK_MODULES="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
9795 if test "X${with_pkg_config_prog}" != X; then
9796 PKG_CONFIG="${with_pkg_config_prog}"
9799 succeeded=no
9801 if test -z "$PKG_CONFIG"; then
9802 # Extract the first word of "pkg-config", so it can be a program name with args.
9803 set dummy pkg-config; ac_word=$2
9804 echo "$as_me:$LINENO: checking for $ac_word" >&5
9805 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9806 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
9807 echo $ECHO_N "(cached) $ECHO_C" >&6
9808 else
9809 case $PKG_CONFIG in
9810 [\\/]* | ?:[\\/]*)
9811 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
9814 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9815 for as_dir in $PATH
9817 IFS=$as_save_IFS
9818 test -z "$as_dir" && as_dir=.
9819 for ac_exec_ext in '' $ac_executable_extensions; do
9820 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9821 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9822 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9823 break 2
9825 done
9826 done
9828 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
9830 esac
9832 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
9834 if test -n "$PKG_CONFIG"; then
9835 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
9836 echo "${ECHO_T}$PKG_CONFIG" >&6
9837 else
9838 echo "$as_me:$LINENO: result: no" >&5
9839 echo "${ECHO_T}no" >&6
9844 if test "$PKG_CONFIG" = "no" ; then
9845 echo "*** The pkg-config script could not be found. Make sure it is"
9846 echo "*** in your path, or give the full path to pkg-config with"
9847 echo "*** the PKG_CONFIG environment variable or --with-pkg-config-prog."
9848 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
9849 else
9850 PKG_CONFIG_MIN_VERSION=0.9.0
9851 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
9852 echo "$as_me:$LINENO: checking for $GTK_MODULES" >&5
9853 echo $ECHO_N "checking for $GTK_MODULES... $ECHO_C" >&6
9855 if $PKG_CONFIG --exists "$GTK_MODULES" ; then
9856 echo "$as_me:$LINENO: result: yes" >&5
9857 echo "${ECHO_T}yes" >&6
9858 succeeded=yes
9860 echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
9861 echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6
9862 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"`
9863 echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
9864 echo "${ECHO_T}$GTK_CFLAGS" >&6
9866 echo "$as_me:$LINENO: checking GTK_LIBS" >&5
9867 echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6
9868 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"`
9869 echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
9870 echo "${ECHO_T}$GTK_LIBS" >&6
9871 else
9872 GTK_CFLAGS=""
9873 GTK_LIBS=""
9874 ## If we have a custom action on failure, don't print errors, but
9875 ## do set a variable so people can do so.
9876 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
9877 echo $GTK_PKG_ERRORS
9882 else
9883 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
9884 echo "*** See http://www.freedesktop.org/software/pkgconfig"
9888 if test $succeeded = yes; then
9890 else
9891 { { 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
9892 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;}
9893 { (exit 1); exit 1; }; }
9898 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS"
9899 CFLAGS="$CFLAGS $GTK_CFLAGS"
9900 LIBS="$GTK_LIBS $LIBS"
9901 HAVE_GTK=yes
9903 cat >>confdefs.h <<\_ACEOF
9904 #define HAVE_GTK 1
9905 _ACEOF
9907 USE_X_TOOLKIT=none
9909 if test "$with_toolkit_scroll_bars" != no; then
9910 with_toolkit_scroll_bars=yes
9913 HAVE_GTK_MULTIDISPLAY=no
9915 for ac_func in gdk_display_open
9917 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9918 echo "$as_me:$LINENO: checking for $ac_func" >&5
9919 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9920 if eval "test \"\${$as_ac_var+set}\" = set"; then
9921 echo $ECHO_N "(cached) $ECHO_C" >&6
9922 else
9923 cat >conftest.$ac_ext <<_ACEOF
9924 /* confdefs.h. */
9925 _ACEOF
9926 cat confdefs.h >>conftest.$ac_ext
9927 cat >>conftest.$ac_ext <<_ACEOF
9928 /* end confdefs.h. */
9929 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9930 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9931 #define $ac_func innocuous_$ac_func
9933 /* System header to define __stub macros and hopefully few prototypes,
9934 which can conflict with char $ac_func (); below.
9935 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9936 <limits.h> exists even on freestanding compilers. */
9938 #ifdef __STDC__
9939 # include <limits.h>
9940 #else
9941 # include <assert.h>
9942 #endif
9944 #undef $ac_func
9946 /* Override any gcc2 internal prototype to avoid an error. */
9947 #ifdef __cplusplus
9948 extern "C"
9950 #endif
9951 /* We use char because int might match the return type of a gcc2
9952 builtin and then its argument prototype would still apply. */
9953 char $ac_func ();
9954 /* The GNU C library defines this for functions which it implements
9955 to always fail with ENOSYS. Some functions are actually named
9956 something starting with __ and the normal name is an alias. */
9957 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9958 choke me
9959 #else
9960 char (*f) () = $ac_func;
9961 #endif
9962 #ifdef __cplusplus
9964 #endif
9967 main ()
9969 return f != $ac_func;
9971 return 0;
9973 _ACEOF
9974 rm -f conftest.$ac_objext conftest$ac_exeext
9975 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9976 (eval $ac_link) 2>conftest.er1
9977 ac_status=$?
9978 grep -v '^ *+' conftest.er1 >conftest.err
9979 rm -f conftest.er1
9980 cat conftest.err >&5
9981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9982 (exit $ac_status); } &&
9983 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9985 (eval $ac_try) 2>&5
9986 ac_status=$?
9987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9988 (exit $ac_status); }; } &&
9989 { ac_try='test -s conftest$ac_exeext'
9990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9991 (eval $ac_try) 2>&5
9992 ac_status=$?
9993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9994 (exit $ac_status); }; }; then
9995 eval "$as_ac_var=yes"
9996 else
9997 echo "$as_me: failed program was:" >&5
9998 sed 's/^/| /' conftest.$ac_ext >&5
10000 eval "$as_ac_var=no"
10002 rm -f conftest.err conftest.$ac_objext \
10003 conftest$ac_exeext conftest.$ac_ext
10005 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10006 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10007 if test `eval echo '${'$as_ac_var'}'` = yes; then
10008 cat >>confdefs.h <<_ACEOF
10009 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10010 _ACEOF
10011 HAVE_GTK_MULTIDISPLAY=yes
10013 done
10015 if test "${HAVE_GTK_MULTIDISPLAY}" = "yes"; then
10017 cat >>confdefs.h <<\_ACEOF
10018 #define HAVE_GTK_MULTIDISPLAY 1
10019 _ACEOF
10022 HAVE_GTK_FILE_SELECTION=no
10024 for ac_func in gtk_file_selection_new
10026 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10027 echo "$as_me:$LINENO: checking for $ac_func" >&5
10028 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10029 if eval "test \"\${$as_ac_var+set}\" = set"; then
10030 echo $ECHO_N "(cached) $ECHO_C" >&6
10031 else
10032 cat >conftest.$ac_ext <<_ACEOF
10033 /* confdefs.h. */
10034 _ACEOF
10035 cat confdefs.h >>conftest.$ac_ext
10036 cat >>conftest.$ac_ext <<_ACEOF
10037 /* end confdefs.h. */
10038 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10039 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10040 #define $ac_func innocuous_$ac_func
10042 /* System header to define __stub macros and hopefully few prototypes,
10043 which can conflict with char $ac_func (); below.
10044 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10045 <limits.h> exists even on freestanding compilers. */
10047 #ifdef __STDC__
10048 # include <limits.h>
10049 #else
10050 # include <assert.h>
10051 #endif
10053 #undef $ac_func
10055 /* Override any gcc2 internal prototype to avoid an error. */
10056 #ifdef __cplusplus
10057 extern "C"
10059 #endif
10060 /* We use char because int might match the return type of a gcc2
10061 builtin and then its argument prototype would still apply. */
10062 char $ac_func ();
10063 /* The GNU C library defines this for functions which it implements
10064 to always fail with ENOSYS. Some functions are actually named
10065 something starting with __ and the normal name is an alias. */
10066 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10067 choke me
10068 #else
10069 char (*f) () = $ac_func;
10070 #endif
10071 #ifdef __cplusplus
10073 #endif
10076 main ()
10078 return f != $ac_func;
10080 return 0;
10082 _ACEOF
10083 rm -f conftest.$ac_objext conftest$ac_exeext
10084 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10085 (eval $ac_link) 2>conftest.er1
10086 ac_status=$?
10087 grep -v '^ *+' conftest.er1 >conftest.err
10088 rm -f conftest.er1
10089 cat conftest.err >&5
10090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10091 (exit $ac_status); } &&
10092 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10094 (eval $ac_try) 2>&5
10095 ac_status=$?
10096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10097 (exit $ac_status); }; } &&
10098 { ac_try='test -s conftest$ac_exeext'
10099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10100 (eval $ac_try) 2>&5
10101 ac_status=$?
10102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10103 (exit $ac_status); }; }; then
10104 eval "$as_ac_var=yes"
10105 else
10106 echo "$as_me: failed program was:" >&5
10107 sed 's/^/| /' conftest.$ac_ext >&5
10109 eval "$as_ac_var=no"
10111 rm -f conftest.err conftest.$ac_objext \
10112 conftest$ac_exeext conftest.$ac_ext
10114 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10115 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10116 if test `eval echo '${'$as_ac_var'}'` = yes; then
10117 cat >>confdefs.h <<_ACEOF
10118 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10119 _ACEOF
10120 HAVE_GTK_FILE_SELECTION=yes
10122 done
10125 HAVE_GTK_FILE_CHOOSER=no
10127 for ac_func in gtk_file_chooser_dialog_new
10129 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10130 echo "$as_me:$LINENO: checking for $ac_func" >&5
10131 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10132 if eval "test \"\${$as_ac_var+set}\" = set"; then
10133 echo $ECHO_N "(cached) $ECHO_C" >&6
10134 else
10135 cat >conftest.$ac_ext <<_ACEOF
10136 /* confdefs.h. */
10137 _ACEOF
10138 cat confdefs.h >>conftest.$ac_ext
10139 cat >>conftest.$ac_ext <<_ACEOF
10140 /* end confdefs.h. */
10141 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10142 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10143 #define $ac_func innocuous_$ac_func
10145 /* System header to define __stub macros and hopefully few prototypes,
10146 which can conflict with char $ac_func (); below.
10147 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10148 <limits.h> exists even on freestanding compilers. */
10150 #ifdef __STDC__
10151 # include <limits.h>
10152 #else
10153 # include <assert.h>
10154 #endif
10156 #undef $ac_func
10158 /* Override any gcc2 internal prototype to avoid an error. */
10159 #ifdef __cplusplus
10160 extern "C"
10162 #endif
10163 /* We use char because int might match the return type of a gcc2
10164 builtin and then its argument prototype would still apply. */
10165 char $ac_func ();
10166 /* The GNU C library defines this for functions which it implements
10167 to always fail with ENOSYS. Some functions are actually named
10168 something starting with __ and the normal name is an alias. */
10169 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10170 choke me
10171 #else
10172 char (*f) () = $ac_func;
10173 #endif
10174 #ifdef __cplusplus
10176 #endif
10179 main ()
10181 return f != $ac_func;
10183 return 0;
10185 _ACEOF
10186 rm -f conftest.$ac_objext conftest$ac_exeext
10187 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10188 (eval $ac_link) 2>conftest.er1
10189 ac_status=$?
10190 grep -v '^ *+' conftest.er1 >conftest.err
10191 rm -f conftest.er1
10192 cat conftest.err >&5
10193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10194 (exit $ac_status); } &&
10195 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10197 (eval $ac_try) 2>&5
10198 ac_status=$?
10199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10200 (exit $ac_status); }; } &&
10201 { ac_try='test -s conftest$ac_exeext'
10202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10203 (eval $ac_try) 2>&5
10204 ac_status=$?
10205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10206 (exit $ac_status); }; }; then
10207 eval "$as_ac_var=yes"
10208 else
10209 echo "$as_me: failed program was:" >&5
10210 sed 's/^/| /' conftest.$ac_ext >&5
10212 eval "$as_ac_var=no"
10214 rm -f conftest.err conftest.$ac_objext \
10215 conftest$ac_exeext conftest.$ac_ext
10217 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10218 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10219 if test `eval echo '${'$as_ac_var'}'` = yes; then
10220 cat >>confdefs.h <<_ACEOF
10221 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10222 _ACEOF
10223 HAVE_GTK_FILE_CHOOSER=yes
10225 done
10228 if test "$HAVE_GTK_FILE_SELECTION" = yes \
10229 && test "$HAVE_GTK_FILE_CHOOSER" = yes; then
10231 cat >>confdefs.h <<\_ACEOF
10232 #define HAVE_GTK_FILE_BOTH 1
10233 _ACEOF
10237 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
10238 HAVE_GTK_AND_PTHREAD=no
10240 for ac_header in pthread.h
10242 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10243 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10244 echo "$as_me:$LINENO: checking for $ac_header" >&5
10245 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10246 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10247 echo $ECHO_N "(cached) $ECHO_C" >&6
10249 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10250 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10251 else
10252 # Is the header compilable?
10253 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10254 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10255 cat >conftest.$ac_ext <<_ACEOF
10256 /* confdefs.h. */
10257 _ACEOF
10258 cat confdefs.h >>conftest.$ac_ext
10259 cat >>conftest.$ac_ext <<_ACEOF
10260 /* end confdefs.h. */
10261 $ac_includes_default
10262 #include <$ac_header>
10263 _ACEOF
10264 rm -f conftest.$ac_objext
10265 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10266 (eval $ac_compile) 2>conftest.er1
10267 ac_status=$?
10268 grep -v '^ *+' conftest.er1 >conftest.err
10269 rm -f conftest.er1
10270 cat conftest.err >&5
10271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10272 (exit $ac_status); } &&
10273 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10275 (eval $ac_try) 2>&5
10276 ac_status=$?
10277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10278 (exit $ac_status); }; } &&
10279 { ac_try='test -s conftest.$ac_objext'
10280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10281 (eval $ac_try) 2>&5
10282 ac_status=$?
10283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10284 (exit $ac_status); }; }; then
10285 ac_header_compiler=yes
10286 else
10287 echo "$as_me: failed program was:" >&5
10288 sed 's/^/| /' conftest.$ac_ext >&5
10290 ac_header_compiler=no
10292 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10293 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10294 echo "${ECHO_T}$ac_header_compiler" >&6
10296 # Is the header present?
10297 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10298 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10299 cat >conftest.$ac_ext <<_ACEOF
10300 /* confdefs.h. */
10301 _ACEOF
10302 cat confdefs.h >>conftest.$ac_ext
10303 cat >>conftest.$ac_ext <<_ACEOF
10304 /* end confdefs.h. */
10305 #include <$ac_header>
10306 _ACEOF
10307 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10308 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10309 ac_status=$?
10310 grep -v '^ *+' conftest.er1 >conftest.err
10311 rm -f conftest.er1
10312 cat conftest.err >&5
10313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10314 (exit $ac_status); } >/dev/null; then
10315 if test -s conftest.err; then
10316 ac_cpp_err=$ac_c_preproc_warn_flag
10317 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10318 else
10319 ac_cpp_err=
10321 else
10322 ac_cpp_err=yes
10324 if test -z "$ac_cpp_err"; then
10325 ac_header_preproc=yes
10326 else
10327 echo "$as_me: failed program was:" >&5
10328 sed 's/^/| /' conftest.$ac_ext >&5
10330 ac_header_preproc=no
10332 rm -f conftest.err conftest.$ac_ext
10333 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10334 echo "${ECHO_T}$ac_header_preproc" >&6
10336 # So? What about this header?
10337 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10338 yes:no: )
10339 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10340 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10341 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10342 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10343 ac_header_preproc=yes
10345 no:yes:* )
10346 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10347 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10348 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10349 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10350 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10351 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10352 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10353 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10354 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10355 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10356 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10357 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10359 cat <<\_ASBOX
10360 ## ------------------------------------------ ##
10361 ## Report this to the AC_PACKAGE_NAME lists. ##
10362 ## ------------------------------------------ ##
10363 _ASBOX
10365 sed "s/^/$as_me: WARNING: /" >&2
10367 esac
10368 echo "$as_me:$LINENO: checking for $ac_header" >&5
10369 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10370 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10371 echo $ECHO_N "(cached) $ECHO_C" >&6
10372 else
10373 eval "$as_ac_Header=\$ac_header_preproc"
10375 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10376 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10379 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10380 cat >>confdefs.h <<_ACEOF
10381 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10382 _ACEOF
10386 done
10388 if test "$ac_cv_header_pthread_h"; then
10389 echo "$as_me:$LINENO: checking for pthread_self in -lpthread" >&5
10390 echo $ECHO_N "checking for pthread_self in -lpthread... $ECHO_C" >&6
10391 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then
10392 echo $ECHO_N "(cached) $ECHO_C" >&6
10393 else
10394 ac_check_lib_save_LIBS=$LIBS
10395 LIBS="-lpthread $LIBS"
10396 cat >conftest.$ac_ext <<_ACEOF
10397 /* confdefs.h. */
10398 _ACEOF
10399 cat confdefs.h >>conftest.$ac_ext
10400 cat >>conftest.$ac_ext <<_ACEOF
10401 /* end confdefs.h. */
10403 /* Override any gcc2 internal prototype to avoid an error. */
10404 #ifdef __cplusplus
10405 extern "C"
10406 #endif
10407 /* We use char because int might match the return type of a gcc2
10408 builtin and then its argument prototype would still apply. */
10409 char pthread_self ();
10411 main ()
10413 pthread_self ();
10415 return 0;
10417 _ACEOF
10418 rm -f conftest.$ac_objext conftest$ac_exeext
10419 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10420 (eval $ac_link) 2>conftest.er1
10421 ac_status=$?
10422 grep -v '^ *+' conftest.er1 >conftest.err
10423 rm -f conftest.er1
10424 cat conftest.err >&5
10425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10426 (exit $ac_status); } &&
10427 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10429 (eval $ac_try) 2>&5
10430 ac_status=$?
10431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10432 (exit $ac_status); }; } &&
10433 { ac_try='test -s conftest$ac_exeext'
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_cv_lib_pthread_pthread_self=yes
10440 else
10441 echo "$as_me: failed program was:" >&5
10442 sed 's/^/| /' conftest.$ac_ext >&5
10444 ac_cv_lib_pthread_pthread_self=no
10446 rm -f conftest.err conftest.$ac_objext \
10447 conftest$ac_exeext conftest.$ac_ext
10448 LIBS=$ac_check_lib_save_LIBS
10450 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_self" >&5
10451 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_self" >&6
10452 if test $ac_cv_lib_pthread_pthread_self = yes; then
10453 HAVE_GTK_AND_PTHREAD=yes
10457 if test "$HAVE_GTK_AND_PTHREAD" = yes; then
10458 GTK_LIBS="$GTK_LIBS -lpthread"
10460 cat >>confdefs.h <<\_ACEOF
10461 #define HAVE_GTK_AND_PTHREAD 1
10462 _ACEOF
10468 if test x"${USE_X_TOOLKIT}" = xmaybe; then
10469 if test x"${HAVE_X11R5}" = xyes; then
10470 echo "$as_me:$LINENO: checking X11 version 5 with Xaw" >&5
10471 echo $ECHO_N "checking X11 version 5 with Xaw... $ECHO_C" >&6
10472 if test "${emacs_cv_x11_version_5_with_xaw+set}" = set; then
10473 echo $ECHO_N "(cached) $ECHO_C" >&6
10474 else
10475 cat >conftest.$ac_ext <<_ACEOF
10476 /* confdefs.h. */
10477 _ACEOF
10478 cat confdefs.h >>conftest.$ac_ext
10479 cat >>conftest.$ac_ext <<_ACEOF
10480 /* end confdefs.h. */
10482 #include <X11/Intrinsic.h>
10483 #include <X11/Xaw/Simple.h>
10485 main ()
10489 return 0;
10491 _ACEOF
10492 rm -f conftest.$ac_objext conftest$ac_exeext
10493 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10494 (eval $ac_link) 2>conftest.er1
10495 ac_status=$?
10496 grep -v '^ *+' conftest.er1 >conftest.err
10497 rm -f conftest.er1
10498 cat conftest.err >&5
10499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10500 (exit $ac_status); } &&
10501 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10503 (eval $ac_try) 2>&5
10504 ac_status=$?
10505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10506 (exit $ac_status); }; } &&
10507 { ac_try='test -s conftest$ac_exeext'
10508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10509 (eval $ac_try) 2>&5
10510 ac_status=$?
10511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10512 (exit $ac_status); }; }; then
10513 emacs_cv_x11_version_5_with_xaw=yes
10514 else
10515 echo "$as_me: failed program was:" >&5
10516 sed 's/^/| /' conftest.$ac_ext >&5
10518 emacs_cv_x11_version_5_with_xaw=no
10520 rm -f conftest.err conftest.$ac_objext \
10521 conftest$ac_exeext conftest.$ac_ext
10524 if test $emacs_cv_x11_version_5_with_xaw = yes; then
10525 echo "$as_me:$LINENO: result: 5 or newer, with Xaw; use toolkit by default" >&5
10526 echo "${ECHO_T}5 or newer, with Xaw; use toolkit by default" >&6
10527 USE_X_TOOLKIT=LUCID
10528 else
10529 echo "$as_me:$LINENO: result: before 5 or no Xaw; do not use toolkit by default" >&5
10530 echo "${ECHO_T}before 5 or no Xaw; do not use toolkit by default" >&6
10531 USE_X_TOOLKIT=none
10533 else
10534 USE_X_TOOLKIT=none
10538 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
10540 if test "${USE_X_TOOLKIT}" != "none"; then
10541 echo "$as_me:$LINENO: checking X11 toolkit version" >&5
10542 echo $ECHO_N "checking X11 toolkit version... $ECHO_C" >&6
10543 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then
10544 echo $ECHO_N "(cached) $ECHO_C" >&6
10545 else
10546 cat >conftest.$ac_ext <<_ACEOF
10547 /* confdefs.h. */
10548 _ACEOF
10549 cat confdefs.h >>conftest.$ac_ext
10550 cat >>conftest.$ac_ext <<_ACEOF
10551 /* end confdefs.h. */
10552 #include <X11/Intrinsic.h>
10554 main ()
10556 #if XtSpecificationRelease < 6
10557 fail;
10558 #endif
10561 return 0;
10563 _ACEOF
10564 rm -f conftest.$ac_objext conftest$ac_exeext
10565 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10566 (eval $ac_link) 2>conftest.er1
10567 ac_status=$?
10568 grep -v '^ *+' conftest.er1 >conftest.err
10569 rm -f conftest.er1
10570 cat conftest.err >&5
10571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10572 (exit $ac_status); } &&
10573 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
10579 { ac_try='test -s conftest$ac_exeext'
10580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10581 (eval $ac_try) 2>&5
10582 ac_status=$?
10583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10584 (exit $ac_status); }; }; then
10585 emacs_cv_x11_toolkit_version_6=yes
10586 else
10587 echo "$as_me: failed program was:" >&5
10588 sed 's/^/| /' conftest.$ac_ext >&5
10590 emacs_cv_x11_toolkit_version_6=no
10592 rm -f conftest.err conftest.$ac_objext \
10593 conftest$ac_exeext conftest.$ac_ext
10596 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
10597 if test $emacs_cv_x11_toolkit_version_6 = yes; then
10598 echo "$as_me:$LINENO: result: 6 or newer" >&5
10599 echo "${ECHO_T}6 or newer" >&6
10601 cat >>confdefs.h <<\_ACEOF
10602 #define HAVE_X11XTR6 1
10603 _ACEOF
10605 else
10606 echo "$as_me:$LINENO: result: before 6" >&5
10607 echo "${ECHO_T}before 6" >&6
10610 OLDLIBS="$LIBS"
10611 if test x$HAVE_X11XTR6 = xyes; then
10612 LIBS="-lXt -lSM -lICE $LIBS"
10613 else
10614 LIBS="-lXt $LIBS"
10617 echo "$as_me:$LINENO: checking for XmuConvertStandardSelection in -lXmu" >&5
10618 echo $ECHO_N "checking for XmuConvertStandardSelection in -lXmu... $ECHO_C" >&6
10619 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then
10620 echo $ECHO_N "(cached) $ECHO_C" >&6
10621 else
10622 ac_check_lib_save_LIBS=$LIBS
10623 LIBS="-lXmu $LIBS"
10624 cat >conftest.$ac_ext <<_ACEOF
10625 /* confdefs.h. */
10626 _ACEOF
10627 cat confdefs.h >>conftest.$ac_ext
10628 cat >>conftest.$ac_ext <<_ACEOF
10629 /* end confdefs.h. */
10631 /* Override any gcc2 internal prototype to avoid an error. */
10632 #ifdef __cplusplus
10633 extern "C"
10634 #endif
10635 /* We use char because int might match the return type of a gcc2
10636 builtin and then its argument prototype would still apply. */
10637 char XmuConvertStandardSelection ();
10639 main ()
10641 XmuConvertStandardSelection ();
10643 return 0;
10645 _ACEOF
10646 rm -f conftest.$ac_objext conftest$ac_exeext
10647 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10648 (eval $ac_link) 2>conftest.er1
10649 ac_status=$?
10650 grep -v '^ *+' conftest.er1 >conftest.err
10651 rm -f conftest.er1
10652 cat conftest.err >&5
10653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10654 (exit $ac_status); } &&
10655 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10657 (eval $ac_try) 2>&5
10658 ac_status=$?
10659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10660 (exit $ac_status); }; } &&
10661 { ac_try='test -s conftest$ac_exeext'
10662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10663 (eval $ac_try) 2>&5
10664 ac_status=$?
10665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10666 (exit $ac_status); }; }; then
10667 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
10668 else
10669 echo "$as_me: failed program was:" >&5
10670 sed 's/^/| /' conftest.$ac_ext >&5
10672 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
10674 rm -f conftest.err conftest.$ac_objext \
10675 conftest$ac_exeext conftest.$ac_ext
10676 LIBS=$ac_check_lib_save_LIBS
10678 echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
10679 echo "${ECHO_T}$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6
10680 if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then
10681 cat >>confdefs.h <<_ACEOF
10682 #define HAVE_LIBXMU 1
10683 _ACEOF
10685 LIBS="-lXmu $LIBS"
10689 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
10692 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
10693 if test "${HAVE_X11}" = "yes"; then
10694 if test "${USE_X_TOOLKIT}" != "none"; then
10696 echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
10697 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
10698 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
10699 echo $ECHO_N "(cached) $ECHO_C" >&6
10700 else
10701 ac_check_lib_save_LIBS=$LIBS
10702 LIBS="-lXext $LIBS"
10703 cat >conftest.$ac_ext <<_ACEOF
10704 /* confdefs.h. */
10705 _ACEOF
10706 cat confdefs.h >>conftest.$ac_ext
10707 cat >>conftest.$ac_ext <<_ACEOF
10708 /* end confdefs.h. */
10710 /* Override any gcc2 internal prototype to avoid an error. */
10711 #ifdef __cplusplus
10712 extern "C"
10713 #endif
10714 /* We use char because int might match the return type of a gcc2
10715 builtin and then its argument prototype would still apply. */
10716 char XShapeQueryExtension ();
10718 main ()
10720 XShapeQueryExtension ();
10722 return 0;
10724 _ACEOF
10725 rm -f conftest.$ac_objext conftest$ac_exeext
10726 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10727 (eval $ac_link) 2>conftest.er1
10728 ac_status=$?
10729 grep -v '^ *+' conftest.er1 >conftest.err
10730 rm -f conftest.er1
10731 cat conftest.err >&5
10732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10733 (exit $ac_status); } &&
10734 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10736 (eval $ac_try) 2>&5
10737 ac_status=$?
10738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10739 (exit $ac_status); }; } &&
10740 { ac_try='test -s conftest$ac_exeext'
10741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10742 (eval $ac_try) 2>&5
10743 ac_status=$?
10744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10745 (exit $ac_status); }; }; then
10746 ac_cv_lib_Xext_XShapeQueryExtension=yes
10747 else
10748 echo "$as_me: failed program was:" >&5
10749 sed 's/^/| /' conftest.$ac_ext >&5
10751 ac_cv_lib_Xext_XShapeQueryExtension=no
10753 rm -f conftest.err conftest.$ac_objext \
10754 conftest$ac_exeext conftest.$ac_ext
10755 LIBS=$ac_check_lib_save_LIBS
10757 echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
10758 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
10759 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
10760 cat >>confdefs.h <<_ACEOF
10761 #define HAVE_LIBXEXT 1
10762 _ACEOF
10764 LIBS="-lXext $LIBS"
10771 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
10772 echo "$as_me:$LINENO: checking for Motif version 2.1" >&5
10773 echo $ECHO_N "checking for Motif version 2.1... $ECHO_C" >&6
10774 if test "${emacs_cv_motif_version_2_1+set}" = set; then
10775 echo $ECHO_N "(cached) $ECHO_C" >&6
10776 else
10777 cat >conftest.$ac_ext <<_ACEOF
10778 /* confdefs.h. */
10779 _ACEOF
10780 cat confdefs.h >>conftest.$ac_ext
10781 cat >>conftest.$ac_ext <<_ACEOF
10782 /* end confdefs.h. */
10783 #include <Xm/Xm.h>
10785 main ()
10787 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
10788 int x = 5;
10789 #else
10790 Motif version prior to 2.1.
10791 #endif
10793 return 0;
10795 _ACEOF
10796 rm -f conftest.$ac_objext
10797 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10798 (eval $ac_compile) 2>conftest.er1
10799 ac_status=$?
10800 grep -v '^ *+' conftest.er1 >conftest.err
10801 rm -f conftest.er1
10802 cat conftest.err >&5
10803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10804 (exit $ac_status); } &&
10805 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10807 (eval $ac_try) 2>&5
10808 ac_status=$?
10809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10810 (exit $ac_status); }; } &&
10811 { ac_try='test -s conftest.$ac_objext'
10812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10813 (eval $ac_try) 2>&5
10814 ac_status=$?
10815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10816 (exit $ac_status); }; }; then
10817 emacs_cv_motif_version_2_1=yes
10818 else
10819 echo "$as_me: failed program was:" >&5
10820 sed 's/^/| /' conftest.$ac_ext >&5
10822 emacs_cv_motif_version_2_1=no
10824 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10826 echo "$as_me:$LINENO: result: $emacs_cv_motif_version_2_1" >&5
10827 echo "${ECHO_T}$emacs_cv_motif_version_2_1" >&6
10828 HAVE_MOTIF_2_1=$emacs_cv_motif_version_2_1
10829 if test $emacs_cv_motif_version_2_1 = yes; then
10830 HAVE_LIBXP=no
10832 cat >>confdefs.h <<\_ACEOF
10833 #define HAVE_MOTIF_2_1 1
10834 _ACEOF
10836 echo "$as_me:$LINENO: checking for XpCreateContext in -lXp" >&5
10837 echo $ECHO_N "checking for XpCreateContext in -lXp... $ECHO_C" >&6
10838 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then
10839 echo $ECHO_N "(cached) $ECHO_C" >&6
10840 else
10841 ac_check_lib_save_LIBS=$LIBS
10842 LIBS="-lXp $LIBS"
10843 cat >conftest.$ac_ext <<_ACEOF
10844 /* confdefs.h. */
10845 _ACEOF
10846 cat confdefs.h >>conftest.$ac_ext
10847 cat >>conftest.$ac_ext <<_ACEOF
10848 /* end confdefs.h. */
10850 /* Override any gcc2 internal prototype to avoid an error. */
10851 #ifdef __cplusplus
10852 extern "C"
10853 #endif
10854 /* We use char because int might match the return type of a gcc2
10855 builtin and then its argument prototype would still apply. */
10856 char XpCreateContext ();
10858 main ()
10860 XpCreateContext ();
10862 return 0;
10864 _ACEOF
10865 rm -f conftest.$ac_objext conftest$ac_exeext
10866 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10867 (eval $ac_link) 2>conftest.er1
10868 ac_status=$?
10869 grep -v '^ *+' conftest.er1 >conftest.err
10870 rm -f conftest.er1
10871 cat conftest.err >&5
10872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10873 (exit $ac_status); } &&
10874 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10876 (eval $ac_try) 2>&5
10877 ac_status=$?
10878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10879 (exit $ac_status); }; } &&
10880 { ac_try='test -s conftest$ac_exeext'
10881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10882 (eval $ac_try) 2>&5
10883 ac_status=$?
10884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10885 (exit $ac_status); }; }; then
10886 ac_cv_lib_Xp_XpCreateContext=yes
10887 else
10888 echo "$as_me: failed program was:" >&5
10889 sed 's/^/| /' conftest.$ac_ext >&5
10891 ac_cv_lib_Xp_XpCreateContext=no
10893 rm -f conftest.err conftest.$ac_objext \
10894 conftest$ac_exeext conftest.$ac_ext
10895 LIBS=$ac_check_lib_save_LIBS
10897 echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpCreateContext" >&5
10898 echo "${ECHO_T}$ac_cv_lib_Xp_XpCreateContext" >&6
10899 if test $ac_cv_lib_Xp_XpCreateContext = yes; then
10900 HAVE_LIBXP=yes
10903 if test ${HAVE_LIBXP} = yes; then
10905 cat >>confdefs.h <<\_ACEOF
10906 #define HAVE_LIBXP 1
10907 _ACEOF
10910 else
10911 echo "$as_me:$LINENO: checking for LessTif where some systems put it" >&5
10912 echo $ECHO_N "checking for LessTif where some systems put it... $ECHO_C" >&6
10913 if test "${emacs_cv_lesstif+set}" = set; then
10914 echo $ECHO_N "(cached) $ECHO_C" >&6
10915 else
10916 # We put this in CFLAGS temporarily to precede other -I options
10917 # that might be in CFLAGS temporarily.
10918 # We put this in CPPFLAGS where it precedes the other -I options.
10919 OLD_CPPFLAGS=$CPPFLAGS
10920 OLD_CFLAGS=$CFLAGS
10921 CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
10922 CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
10923 cat >conftest.$ac_ext <<_ACEOF
10924 /* confdefs.h. */
10925 _ACEOF
10926 cat confdefs.h >>conftest.$ac_ext
10927 cat >>conftest.$ac_ext <<_ACEOF
10928 /* end confdefs.h. */
10929 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
10931 main ()
10933 int x = 5;
10935 return 0;
10937 _ACEOF
10938 rm -f conftest.$ac_objext
10939 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10940 (eval $ac_compile) 2>conftest.er1
10941 ac_status=$?
10942 grep -v '^ *+' conftest.er1 >conftest.err
10943 rm -f conftest.er1
10944 cat conftest.err >&5
10945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10946 (exit $ac_status); } &&
10947 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10949 (eval $ac_try) 2>&5
10950 ac_status=$?
10951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10952 (exit $ac_status); }; } &&
10953 { ac_try='test -s conftest.$ac_objext'
10954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10955 (eval $ac_try) 2>&5
10956 ac_status=$?
10957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10958 (exit $ac_status); }; }; then
10959 emacs_cv_lesstif=yes
10960 else
10961 echo "$as_me: failed program was:" >&5
10962 sed 's/^/| /' conftest.$ac_ext >&5
10964 emacs_cv_lesstif=no
10966 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10968 echo "$as_me:$LINENO: result: $emacs_cv_lesstif" >&5
10969 echo "${ECHO_T}$emacs_cv_lesstif" >&6
10970 if test $emacs_cv_lesstif = yes; then
10971 # Make sure this -I option remains in CPPFLAGS after it is set
10972 # back to REAL_CPPFLAGS.
10973 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
10974 # have those other -I options anyway. Ultimately, having this
10975 # directory ultimately in CPPFLAGS will be enough.
10976 REAL_CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
10977 LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
10978 else
10979 CFLAGS=$OLD_CFLAGS
10980 CPPFLAGS=$OLD_CPPFLAGS
10985 ### Is -lXaw3d available?
10986 HAVE_XAW3D=no
10987 if test "${HAVE_X11}" = "yes"; then
10988 if test "${USE_X_TOOLKIT}" != "none"; then
10989 echo "$as_me:$LINENO: checking for X11/Xaw3d/Scrollbar.h" >&5
10990 echo $ECHO_N "checking for X11/Xaw3d/Scrollbar.h... $ECHO_C" >&6
10991 if test "${ac_cv_header_X11_Xaw3d_Scrollbar_h+set}" = set; then
10992 echo $ECHO_N "(cached) $ECHO_C" >&6
10993 else
10994 cat >conftest.$ac_ext <<_ACEOF
10995 /* confdefs.h. */
10996 _ACEOF
10997 cat confdefs.h >>conftest.$ac_ext
10998 cat >>conftest.$ac_ext <<_ACEOF
10999 /* end confdefs.h. */
11000 #include <X11/Xaw3d/Scrollbar.h>
11001 _ACEOF
11002 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11003 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11004 ac_status=$?
11005 grep -v '^ *+' conftest.er1 >conftest.err
11006 rm -f conftest.er1
11007 cat conftest.err >&5
11008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11009 (exit $ac_status); } >/dev/null; then
11010 if test -s conftest.err; then
11011 ac_cpp_err=$ac_c_preproc_warn_flag
11012 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11013 else
11014 ac_cpp_err=
11016 else
11017 ac_cpp_err=yes
11019 if test -z "$ac_cpp_err"; then
11020 ac_cv_header_X11_Xaw3d_Scrollbar_h=yes
11021 else
11022 echo "$as_me: failed program was:" >&5
11023 sed 's/^/| /' conftest.$ac_ext >&5
11025 ac_cv_header_X11_Xaw3d_Scrollbar_h=no
11027 rm -f conftest.err conftest.$ac_ext
11029 echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xaw3d_Scrollbar_h" >&5
11030 echo "${ECHO_T}$ac_cv_header_X11_Xaw3d_Scrollbar_h" >&6
11031 if test $ac_cv_header_X11_Xaw3d_Scrollbar_h = yes; then
11032 echo "$as_me:$LINENO: checking for XawScrollbarSetThumb in -lXaw3d" >&5
11033 echo $ECHO_N "checking for XawScrollbarSetThumb in -lXaw3d... $ECHO_C" >&6
11034 if test "${ac_cv_lib_Xaw3d_XawScrollbarSetThumb+set}" = set; then
11035 echo $ECHO_N "(cached) $ECHO_C" >&6
11036 else
11037 ac_check_lib_save_LIBS=$LIBS
11038 LIBS="-lXaw3d $LIBS"
11039 cat >conftest.$ac_ext <<_ACEOF
11040 /* confdefs.h. */
11041 _ACEOF
11042 cat confdefs.h >>conftest.$ac_ext
11043 cat >>conftest.$ac_ext <<_ACEOF
11044 /* end confdefs.h. */
11046 /* Override any gcc2 internal prototype to avoid an error. */
11047 #ifdef __cplusplus
11048 extern "C"
11049 #endif
11050 /* We use char because int might match the return type of a gcc2
11051 builtin and then its argument prototype would still apply. */
11052 char XawScrollbarSetThumb ();
11054 main ()
11056 XawScrollbarSetThumb ();
11058 return 0;
11060 _ACEOF
11061 rm -f conftest.$ac_objext conftest$ac_exeext
11062 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11063 (eval $ac_link) 2>conftest.er1
11064 ac_status=$?
11065 grep -v '^ *+' conftest.er1 >conftest.err
11066 rm -f conftest.er1
11067 cat conftest.err >&5
11068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11069 (exit $ac_status); } &&
11070 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11072 (eval $ac_try) 2>&5
11073 ac_status=$?
11074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11075 (exit $ac_status); }; } &&
11076 { ac_try='test -s conftest$ac_exeext'
11077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11078 (eval $ac_try) 2>&5
11079 ac_status=$?
11080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11081 (exit $ac_status); }; }; then
11082 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=yes
11083 else
11084 echo "$as_me: failed program was:" >&5
11085 sed 's/^/| /' conftest.$ac_ext >&5
11087 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=no
11089 rm -f conftest.err conftest.$ac_objext \
11090 conftest$ac_exeext conftest.$ac_ext
11091 LIBS=$ac_check_lib_save_LIBS
11093 echo "$as_me:$LINENO: result: $ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&5
11094 echo "${ECHO_T}$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&6
11095 if test $ac_cv_lib_Xaw3d_XawScrollbarSetThumb = yes; then
11096 HAVE_XAW3D=yes
11102 if test "${HAVE_XAW3D}" = "yes"; then
11104 cat >>confdefs.h <<\_ACEOF
11105 #define HAVE_XAW3D 1
11106 _ACEOF
11114 USE_TOOLKIT_SCROLL_BARS=no
11115 if test "${with_toolkit_scroll_bars}" != "no"; then
11116 if test "${USE_X_TOOLKIT}" != "none"; then
11117 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
11118 cat >>confdefs.h <<\_ACEOF
11119 #define USE_TOOLKIT_SCROLL_BARS 1
11120 _ACEOF
11122 HAVE_XAW3D=no
11123 USE_TOOLKIT_SCROLL_BARS=yes
11124 elif test "${HAVE_XAW3D}" = "yes"; then
11125 cat >>confdefs.h <<\_ACEOF
11126 #define USE_TOOLKIT_SCROLL_BARS 1
11127 _ACEOF
11129 USE_TOOLKIT_SCROLL_BARS=yes
11131 elif test "${HAVE_GTK}" = "yes"; then
11132 cat >>confdefs.h <<\_ACEOF
11133 #define USE_TOOLKIT_SCROLL_BARS 1
11134 _ACEOF
11136 USE_TOOLKIT_SCROLL_BARS=yes
11137 elif test "${HAVE_CARBON}" = "yes"; then
11138 cat >>confdefs.h <<\_ACEOF
11139 #define USE_TOOLKIT_SCROLL_BARS 1
11140 _ACEOF
11142 USE_TOOLKIT_SCROLL_BARS=yes
11146 cat >conftest.$ac_ext <<_ACEOF
11147 /* confdefs.h. */
11148 _ACEOF
11149 cat confdefs.h >>conftest.$ac_ext
11150 cat >>conftest.$ac_ext <<_ACEOF
11151 /* end confdefs.h. */
11153 #include <X11/Xlib.h>
11154 #include <X11/Xresource.h>
11156 main ()
11158 XIMProc callback;
11160 return 0;
11162 _ACEOF
11163 rm -f conftest.$ac_objext
11164 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11165 (eval $ac_compile) 2>conftest.er1
11166 ac_status=$?
11167 grep -v '^ *+' conftest.er1 >conftest.err
11168 rm -f conftest.er1
11169 cat conftest.err >&5
11170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11171 (exit $ac_status); } &&
11172 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11174 (eval $ac_try) 2>&5
11175 ac_status=$?
11176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11177 (exit $ac_status); }; } &&
11178 { ac_try='test -s conftest.$ac_objext'
11179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11180 (eval $ac_try) 2>&5
11181 ac_status=$?
11182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11183 (exit $ac_status); }; }; then
11184 HAVE_XIM=yes
11186 cat >>confdefs.h <<\_ACEOF
11187 #define HAVE_XIM 1
11188 _ACEOF
11190 else
11191 echo "$as_me: failed program was:" >&5
11192 sed 's/^/| /' conftest.$ac_ext >&5
11194 HAVE_XIM=no
11196 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11199 if test "${with_xim}" != "no"; then
11201 cat >>confdefs.h <<\_ACEOF
11202 #define USE_XIM 1
11203 _ACEOF
11208 if test "${HAVE_XIM}" != "no"; then
11209 late_CFLAGS=$CFLAGS
11210 if test "$GCC" = yes; then
11211 CFLAGS="$CFLAGS --pedantic-errors"
11213 cat >conftest.$ac_ext <<_ACEOF
11214 /* confdefs.h. */
11215 _ACEOF
11216 cat confdefs.h >>conftest.$ac_ext
11217 cat >>conftest.$ac_ext <<_ACEOF
11218 /* end confdefs.h. */
11220 #include <X11/Xlib.h>
11221 #include <X11/Xresource.h>
11223 main ()
11225 Display *display;
11226 XrmDatabase db;
11227 char *res_name;
11228 char *res_class;
11229 XIMProc callback;
11230 XPointer *client_data;
11231 #ifndef __GNUC__
11232 /* If we're not using GCC, it's probably not XFree86, and this is
11233 probably right, but we can't use something like --pedantic-errors. */
11234 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
11235 char*, XIMProc, XPointer*);
11236 #endif
11237 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
11238 client_data);
11240 return 0;
11242 _ACEOF
11243 rm -f conftest.$ac_objext
11244 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11245 (eval $ac_compile) 2>conftest.er1
11246 ac_status=$?
11247 grep -v '^ *+' conftest.er1 >conftest.err
11248 rm -f conftest.er1
11249 cat conftest.err >&5
11250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11251 (exit $ac_status); } &&
11252 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11254 (eval $ac_try) 2>&5
11255 ac_status=$?
11256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11257 (exit $ac_status); }; } &&
11258 { ac_try='test -s conftest.$ac_objext'
11259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11260 (eval $ac_try) 2>&5
11261 ac_status=$?
11262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11263 (exit $ac_status); }; }; then
11264 emacs_cv_arg6_star=yes
11265 else
11266 echo "$as_me: failed program was:" >&5
11267 sed 's/^/| /' conftest.$ac_ext >&5
11270 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11272 if test "$emacs_cv_arg6_star" = yes; then
11273 cat >>confdefs.h <<\_ACEOF
11274 #define XRegisterIMInstantiateCallback_arg6 XPointer*
11275 _ACEOF
11277 else
11278 cat >>confdefs.h <<\_ACEOF
11279 #define XRegisterIMInstantiateCallback_arg6 XPointer
11280 _ACEOF
11283 CFLAGS=$late_CFLAGS
11286 ### Use -lXpm if available, unless `--with-xpm=no'.
11287 HAVE_XPM=no
11288 if test "${HAVE_X11}" = "yes"; then
11289 if test "${with_xpm}" != "no"; then
11290 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
11291 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
11292 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
11293 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
11294 echo $ECHO_N "(cached) $ECHO_C" >&6
11296 echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
11297 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
11298 else
11299 # Is the header compilable?
11300 echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
11301 echo $ECHO_N "checking X11/xpm.h usability... $ECHO_C" >&6
11302 cat >conftest.$ac_ext <<_ACEOF
11303 /* confdefs.h. */
11304 _ACEOF
11305 cat confdefs.h >>conftest.$ac_ext
11306 cat >>conftest.$ac_ext <<_ACEOF
11307 /* end confdefs.h. */
11308 $ac_includes_default
11309 #include <X11/xpm.h>
11310 _ACEOF
11311 rm -f conftest.$ac_objext
11312 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11313 (eval $ac_compile) 2>conftest.er1
11314 ac_status=$?
11315 grep -v '^ *+' conftest.er1 >conftest.err
11316 rm -f conftest.er1
11317 cat conftest.err >&5
11318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11319 (exit $ac_status); } &&
11320 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11322 (eval $ac_try) 2>&5
11323 ac_status=$?
11324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11325 (exit $ac_status); }; } &&
11326 { ac_try='test -s conftest.$ac_objext'
11327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11328 (eval $ac_try) 2>&5
11329 ac_status=$?
11330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11331 (exit $ac_status); }; }; then
11332 ac_header_compiler=yes
11333 else
11334 echo "$as_me: failed program was:" >&5
11335 sed 's/^/| /' conftest.$ac_ext >&5
11337 ac_header_compiler=no
11339 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11340 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11341 echo "${ECHO_T}$ac_header_compiler" >&6
11343 # Is the header present?
11344 echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
11345 echo $ECHO_N "checking X11/xpm.h presence... $ECHO_C" >&6
11346 cat >conftest.$ac_ext <<_ACEOF
11347 /* confdefs.h. */
11348 _ACEOF
11349 cat confdefs.h >>conftest.$ac_ext
11350 cat >>conftest.$ac_ext <<_ACEOF
11351 /* end confdefs.h. */
11352 #include <X11/xpm.h>
11353 _ACEOF
11354 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11355 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11356 ac_status=$?
11357 grep -v '^ *+' conftest.er1 >conftest.err
11358 rm -f conftest.er1
11359 cat conftest.err >&5
11360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11361 (exit $ac_status); } >/dev/null; then
11362 if test -s conftest.err; then
11363 ac_cpp_err=$ac_c_preproc_warn_flag
11364 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11365 else
11366 ac_cpp_err=
11368 else
11369 ac_cpp_err=yes
11371 if test -z "$ac_cpp_err"; then
11372 ac_header_preproc=yes
11373 else
11374 echo "$as_me: failed program was:" >&5
11375 sed 's/^/| /' conftest.$ac_ext >&5
11377 ac_header_preproc=no
11379 rm -f conftest.err conftest.$ac_ext
11380 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11381 echo "${ECHO_T}$ac_header_preproc" >&6
11383 # So? What about this header?
11384 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11385 yes:no: )
11386 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
11387 echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11388 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the compiler's result" >&5
11389 echo "$as_me: WARNING: X11/xpm.h: proceeding with the compiler's result" >&2;}
11390 ac_header_preproc=yes
11392 no:yes:* )
11393 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
11394 echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
11395 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5
11396 echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;}
11397 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: see the Autoconf documentation" >&5
11398 echo "$as_me: WARNING: X11/xpm.h: see the Autoconf documentation" >&2;}
11399 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&5
11400 echo "$as_me: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
11401 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
11402 echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
11403 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&5
11404 echo "$as_me: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&2;}
11406 cat <<\_ASBOX
11407 ## ------------------------------------------ ##
11408 ## Report this to the AC_PACKAGE_NAME lists. ##
11409 ## ------------------------------------------ ##
11410 _ASBOX
11412 sed "s/^/$as_me: WARNING: /" >&2
11414 esac
11415 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
11416 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
11417 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
11418 echo $ECHO_N "(cached) $ECHO_C" >&6
11419 else
11420 ac_cv_header_X11_xpm_h=$ac_header_preproc
11422 echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
11423 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
11426 if test $ac_cv_header_X11_xpm_h = yes; then
11427 echo "$as_me:$LINENO: checking for XpmReadFileToPixmap in -lXpm" >&5
11428 echo $ECHO_N "checking for XpmReadFileToPixmap in -lXpm... $ECHO_C" >&6
11429 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
11430 echo $ECHO_N "(cached) $ECHO_C" >&6
11431 else
11432 ac_check_lib_save_LIBS=$LIBS
11433 LIBS="-lXpm -lX11 $LIBS"
11434 cat >conftest.$ac_ext <<_ACEOF
11435 /* confdefs.h. */
11436 _ACEOF
11437 cat confdefs.h >>conftest.$ac_ext
11438 cat >>conftest.$ac_ext <<_ACEOF
11439 /* end confdefs.h. */
11441 /* Override any gcc2 internal prototype to avoid an error. */
11442 #ifdef __cplusplus
11443 extern "C"
11444 #endif
11445 /* We use char because int might match the return type of a gcc2
11446 builtin and then its argument prototype would still apply. */
11447 char XpmReadFileToPixmap ();
11449 main ()
11451 XpmReadFileToPixmap ();
11453 return 0;
11455 _ACEOF
11456 rm -f conftest.$ac_objext conftest$ac_exeext
11457 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11458 (eval $ac_link) 2>conftest.er1
11459 ac_status=$?
11460 grep -v '^ *+' conftest.er1 >conftest.err
11461 rm -f conftest.er1
11462 cat conftest.err >&5
11463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11464 (exit $ac_status); } &&
11465 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11467 (eval $ac_try) 2>&5
11468 ac_status=$?
11469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11470 (exit $ac_status); }; } &&
11471 { ac_try='test -s conftest$ac_exeext'
11472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11473 (eval $ac_try) 2>&5
11474 ac_status=$?
11475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11476 (exit $ac_status); }; }; then
11477 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
11478 else
11479 echo "$as_me: failed program was:" >&5
11480 sed 's/^/| /' conftest.$ac_ext >&5
11482 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
11484 rm -f conftest.err conftest.$ac_objext \
11485 conftest$ac_exeext conftest.$ac_ext
11486 LIBS=$ac_check_lib_save_LIBS
11488 echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
11489 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6
11490 if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
11491 HAVE_XPM=yes
11497 if test "${HAVE_XPM}" = "yes"; then
11498 echo "$as_me:$LINENO: checking for XpmReturnAllocPixels preprocessor define" >&5
11499 echo $ECHO_N "checking for XpmReturnAllocPixels preprocessor define... $ECHO_C" >&6
11500 cat >conftest.$ac_ext <<_ACEOF
11501 /* confdefs.h. */
11502 _ACEOF
11503 cat confdefs.h >>conftest.$ac_ext
11504 cat >>conftest.$ac_ext <<_ACEOF
11505 /* end confdefs.h. */
11506 #include "X11/xpm.h"
11507 #ifndef XpmReturnAllocPixels
11508 no_return_alloc_pixels
11509 #endif
11511 _ACEOF
11512 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11513 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then
11514 HAVE_XPM=no
11515 else
11516 HAVE_XPM=yes
11518 rm -f conftest*
11521 if test "${HAVE_XPM}" = "yes"; then
11522 echo "$as_me:$LINENO: result: yes" >&5
11523 echo "${ECHO_T}yes" >&6
11524 else
11525 echo "$as_me:$LINENO: result: no" >&5
11526 echo "${ECHO_T}no" >&6
11531 if test "${HAVE_XPM}" = "yes"; then
11533 cat >>confdefs.h <<\_ACEOF
11534 #define HAVE_XPM 1
11535 _ACEOF
11540 ### Use -ljpeg if available, unless `--with-jpeg=no'.
11541 HAVE_JPEG=no
11542 if test "${HAVE_X11}" = "yes"; then
11543 if test "${with_jpeg}" != "no"; then
11544 if test "${ac_cv_header_jerror_h+set}" = set; then
11545 echo "$as_me:$LINENO: checking for jerror.h" >&5
11546 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6
11547 if test "${ac_cv_header_jerror_h+set}" = set; then
11548 echo $ECHO_N "(cached) $ECHO_C" >&6
11550 echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
11551 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6
11552 else
11553 # Is the header compilable?
11554 echo "$as_me:$LINENO: checking jerror.h usability" >&5
11555 echo $ECHO_N "checking jerror.h usability... $ECHO_C" >&6
11556 cat >conftest.$ac_ext <<_ACEOF
11557 /* confdefs.h. */
11558 _ACEOF
11559 cat confdefs.h >>conftest.$ac_ext
11560 cat >>conftest.$ac_ext <<_ACEOF
11561 /* end confdefs.h. */
11562 $ac_includes_default
11563 #include <jerror.h>
11564 _ACEOF
11565 rm -f conftest.$ac_objext
11566 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11567 (eval $ac_compile) 2>conftest.er1
11568 ac_status=$?
11569 grep -v '^ *+' conftest.er1 >conftest.err
11570 rm -f conftest.er1
11571 cat conftest.err >&5
11572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11573 (exit $ac_status); } &&
11574 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11576 (eval $ac_try) 2>&5
11577 ac_status=$?
11578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11579 (exit $ac_status); }; } &&
11580 { ac_try='test -s conftest.$ac_objext'
11581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11582 (eval $ac_try) 2>&5
11583 ac_status=$?
11584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11585 (exit $ac_status); }; }; then
11586 ac_header_compiler=yes
11587 else
11588 echo "$as_me: failed program was:" >&5
11589 sed 's/^/| /' conftest.$ac_ext >&5
11591 ac_header_compiler=no
11593 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11594 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11595 echo "${ECHO_T}$ac_header_compiler" >&6
11597 # Is the header present?
11598 echo "$as_me:$LINENO: checking jerror.h presence" >&5
11599 echo $ECHO_N "checking jerror.h presence... $ECHO_C" >&6
11600 cat >conftest.$ac_ext <<_ACEOF
11601 /* confdefs.h. */
11602 _ACEOF
11603 cat confdefs.h >>conftest.$ac_ext
11604 cat >>conftest.$ac_ext <<_ACEOF
11605 /* end confdefs.h. */
11606 #include <jerror.h>
11607 _ACEOF
11608 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11609 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11610 ac_status=$?
11611 grep -v '^ *+' conftest.er1 >conftest.err
11612 rm -f conftest.er1
11613 cat conftest.err >&5
11614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11615 (exit $ac_status); } >/dev/null; then
11616 if test -s conftest.err; then
11617 ac_cpp_err=$ac_c_preproc_warn_flag
11618 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11619 else
11620 ac_cpp_err=
11622 else
11623 ac_cpp_err=yes
11625 if test -z "$ac_cpp_err"; then
11626 ac_header_preproc=yes
11627 else
11628 echo "$as_me: failed program was:" >&5
11629 sed 's/^/| /' conftest.$ac_ext >&5
11631 ac_header_preproc=no
11633 rm -f conftest.err conftest.$ac_ext
11634 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11635 echo "${ECHO_T}$ac_header_preproc" >&6
11637 # So? What about this header?
11638 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11639 yes:no: )
11640 { echo "$as_me:$LINENO: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&5
11641 echo "$as_me: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11642 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the compiler's result" >&5
11643 echo "$as_me: WARNING: jerror.h: proceeding with the compiler's result" >&2;}
11644 ac_header_preproc=yes
11646 no:yes:* )
11647 { echo "$as_me:$LINENO: WARNING: jerror.h: present but cannot be compiled" >&5
11648 echo "$as_me: WARNING: jerror.h: present but cannot be compiled" >&2;}
11649 { echo "$as_me:$LINENO: WARNING: jerror.h: check for missing prerequisite headers?" >&5
11650 echo "$as_me: WARNING: jerror.h: check for missing prerequisite headers?" >&2;}
11651 { echo "$as_me:$LINENO: WARNING: jerror.h: see the Autoconf documentation" >&5
11652 echo "$as_me: WARNING: jerror.h: see the Autoconf documentation" >&2;}
11653 { echo "$as_me:$LINENO: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&5
11654 echo "$as_me: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&2;}
11655 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result" >&5
11656 echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result" >&2;}
11657 { echo "$as_me:$LINENO: WARNING: jerror.h: in the future, the compiler will take precedence" >&5
11658 echo "$as_me: WARNING: jerror.h: in the future, the compiler will take precedence" >&2;}
11660 cat <<\_ASBOX
11661 ## ------------------------------------------ ##
11662 ## Report this to the AC_PACKAGE_NAME lists. ##
11663 ## ------------------------------------------ ##
11664 _ASBOX
11666 sed "s/^/$as_me: WARNING: /" >&2
11668 esac
11669 echo "$as_me:$LINENO: checking for jerror.h" >&5
11670 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6
11671 if test "${ac_cv_header_jerror_h+set}" = set; then
11672 echo $ECHO_N "(cached) $ECHO_C" >&6
11673 else
11674 ac_cv_header_jerror_h=$ac_header_preproc
11676 echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
11677 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6
11680 if test $ac_cv_header_jerror_h = yes; then
11681 echo "$as_me:$LINENO: checking for jpeg_destroy_compress in -ljpeg" >&5
11682 echo $ECHO_N "checking for jpeg_destroy_compress in -ljpeg... $ECHO_C" >&6
11683 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
11684 echo $ECHO_N "(cached) $ECHO_C" >&6
11685 else
11686 ac_check_lib_save_LIBS=$LIBS
11687 LIBS="-ljpeg $LIBS"
11688 cat >conftest.$ac_ext <<_ACEOF
11689 /* confdefs.h. */
11690 _ACEOF
11691 cat confdefs.h >>conftest.$ac_ext
11692 cat >>conftest.$ac_ext <<_ACEOF
11693 /* end confdefs.h. */
11695 /* Override any gcc2 internal prototype to avoid an error. */
11696 #ifdef __cplusplus
11697 extern "C"
11698 #endif
11699 /* We use char because int might match the return type of a gcc2
11700 builtin and then its argument prototype would still apply. */
11701 char jpeg_destroy_compress ();
11703 main ()
11705 jpeg_destroy_compress ();
11707 return 0;
11709 _ACEOF
11710 rm -f conftest.$ac_objext conftest$ac_exeext
11711 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11712 (eval $ac_link) 2>conftest.er1
11713 ac_status=$?
11714 grep -v '^ *+' conftest.er1 >conftest.err
11715 rm -f conftest.er1
11716 cat conftest.err >&5
11717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11718 (exit $ac_status); } &&
11719 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
11725 { ac_try='test -s conftest$ac_exeext'
11726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11727 (eval $ac_try) 2>&5
11728 ac_status=$?
11729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11730 (exit $ac_status); }; }; then
11731 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
11732 else
11733 echo "$as_me: failed program was:" >&5
11734 sed 's/^/| /' conftest.$ac_ext >&5
11736 ac_cv_lib_jpeg_jpeg_destroy_compress=no
11738 rm -f conftest.err conftest.$ac_objext \
11739 conftest$ac_exeext conftest.$ac_ext
11740 LIBS=$ac_check_lib_save_LIBS
11742 echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
11743 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6
11744 if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then
11745 HAVE_JPEG=yes
11754 if test "${HAVE_JPEG}" = "yes"; then
11755 cat >>confdefs.h <<\_ACEOF
11756 #define HAVE_JPEG 1
11757 _ACEOF
11759 cat >conftest.$ac_ext <<_ACEOF
11760 /* confdefs.h. */
11761 _ACEOF
11762 cat confdefs.h >>conftest.$ac_ext
11763 cat >>conftest.$ac_ext <<_ACEOF
11764 /* end confdefs.h. */
11765 #include <jpeglib.h>
11766 version=JPEG_LIB_VERSION
11768 _ACEOF
11769 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11770 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then
11771 cat >>confdefs.h <<\_ACEOF
11772 #define HAVE_JPEG 1
11773 _ACEOF
11775 else
11776 { echo "$as_me:$LINENO: WARNING: libjpeg found, but not version 6b or later" >&5
11777 echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
11778 HAVE_JPEG=no
11780 rm -f conftest*
11785 ### Use -lpng if available, unless `--with-png=no'.
11786 HAVE_PNG=no
11787 if test "${HAVE_X11}" = "yes"; then
11788 if test "${with_png}" != "no"; then
11789 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
11790 # in /usr/include/libpng.
11793 for ac_header in png.h libpng/png.h
11795 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11796 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11797 echo "$as_me:$LINENO: checking for $ac_header" >&5
11798 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11799 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11800 echo $ECHO_N "(cached) $ECHO_C" >&6
11802 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11803 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11804 else
11805 # Is the header compilable?
11806 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11807 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11808 cat >conftest.$ac_ext <<_ACEOF
11809 /* confdefs.h. */
11810 _ACEOF
11811 cat confdefs.h >>conftest.$ac_ext
11812 cat >>conftest.$ac_ext <<_ACEOF
11813 /* end confdefs.h. */
11814 $ac_includes_default
11815 #include <$ac_header>
11816 _ACEOF
11817 rm -f conftest.$ac_objext
11818 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11819 (eval $ac_compile) 2>conftest.er1
11820 ac_status=$?
11821 grep -v '^ *+' conftest.er1 >conftest.err
11822 rm -f conftest.er1
11823 cat conftest.err >&5
11824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11825 (exit $ac_status); } &&
11826 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11828 (eval $ac_try) 2>&5
11829 ac_status=$?
11830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11831 (exit $ac_status); }; } &&
11832 { ac_try='test -s conftest.$ac_objext'
11833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11834 (eval $ac_try) 2>&5
11835 ac_status=$?
11836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11837 (exit $ac_status); }; }; then
11838 ac_header_compiler=yes
11839 else
11840 echo "$as_me: failed program was:" >&5
11841 sed 's/^/| /' conftest.$ac_ext >&5
11843 ac_header_compiler=no
11845 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11846 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11847 echo "${ECHO_T}$ac_header_compiler" >&6
11849 # Is the header present?
11850 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11851 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11852 cat >conftest.$ac_ext <<_ACEOF
11853 /* confdefs.h. */
11854 _ACEOF
11855 cat confdefs.h >>conftest.$ac_ext
11856 cat >>conftest.$ac_ext <<_ACEOF
11857 /* end confdefs.h. */
11858 #include <$ac_header>
11859 _ACEOF
11860 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11861 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11862 ac_status=$?
11863 grep -v '^ *+' conftest.er1 >conftest.err
11864 rm -f conftest.er1
11865 cat conftest.err >&5
11866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11867 (exit $ac_status); } >/dev/null; then
11868 if test -s conftest.err; then
11869 ac_cpp_err=$ac_c_preproc_warn_flag
11870 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11871 else
11872 ac_cpp_err=
11874 else
11875 ac_cpp_err=yes
11877 if test -z "$ac_cpp_err"; then
11878 ac_header_preproc=yes
11879 else
11880 echo "$as_me: failed program was:" >&5
11881 sed 's/^/| /' conftest.$ac_ext >&5
11883 ac_header_preproc=no
11885 rm -f conftest.err conftest.$ac_ext
11886 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11887 echo "${ECHO_T}$ac_header_preproc" >&6
11889 # So? What about this header?
11890 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11891 yes:no: )
11892 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11893 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11894 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11895 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11896 ac_header_preproc=yes
11898 no:yes:* )
11899 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11900 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11901 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11902 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11903 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11904 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11905 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11906 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11907 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11908 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11909 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11910 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11912 cat <<\_ASBOX
11913 ## ------------------------------------------ ##
11914 ## Report this to the AC_PACKAGE_NAME lists. ##
11915 ## ------------------------------------------ ##
11916 _ASBOX
11918 sed "s/^/$as_me: WARNING: /" >&2
11920 esac
11921 echo "$as_me:$LINENO: checking for $ac_header" >&5
11922 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11923 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11924 echo $ECHO_N "(cached) $ECHO_C" >&6
11925 else
11926 eval "$as_ac_Header=\$ac_header_preproc"
11928 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11929 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11932 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11933 cat >>confdefs.h <<_ACEOF
11934 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11935 _ACEOF
11939 done
11941 if test "$ac_cv_header_png_h" = yes || test "$ac_cv_header_libpng_png_h" = yes ; then
11942 echo "$as_me:$LINENO: checking for png_get_channels in -lpng" >&5
11943 echo $ECHO_N "checking for png_get_channels in -lpng... $ECHO_C" >&6
11944 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then
11945 echo $ECHO_N "(cached) $ECHO_C" >&6
11946 else
11947 ac_check_lib_save_LIBS=$LIBS
11948 LIBS="-lpng -lz -lm $LIBS"
11949 cat >conftest.$ac_ext <<_ACEOF
11950 /* confdefs.h. */
11951 _ACEOF
11952 cat confdefs.h >>conftest.$ac_ext
11953 cat >>conftest.$ac_ext <<_ACEOF
11954 /* end confdefs.h. */
11956 /* Override any gcc2 internal prototype to avoid an error. */
11957 #ifdef __cplusplus
11958 extern "C"
11959 #endif
11960 /* We use char because int might match the return type of a gcc2
11961 builtin and then its argument prototype would still apply. */
11962 char png_get_channels ();
11964 main ()
11966 png_get_channels ();
11968 return 0;
11970 _ACEOF
11971 rm -f conftest.$ac_objext conftest$ac_exeext
11972 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11973 (eval $ac_link) 2>conftest.er1
11974 ac_status=$?
11975 grep -v '^ *+' conftest.er1 >conftest.err
11976 rm -f conftest.er1
11977 cat conftest.err >&5
11978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11979 (exit $ac_status); } &&
11980 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11982 (eval $ac_try) 2>&5
11983 ac_status=$?
11984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11985 (exit $ac_status); }; } &&
11986 { ac_try='test -s conftest$ac_exeext'
11987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11988 (eval $ac_try) 2>&5
11989 ac_status=$?
11990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11991 (exit $ac_status); }; }; then
11992 ac_cv_lib_png_png_get_channels=yes
11993 else
11994 echo "$as_me: failed program was:" >&5
11995 sed 's/^/| /' conftest.$ac_ext >&5
11997 ac_cv_lib_png_png_get_channels=no
11999 rm -f conftest.err conftest.$ac_objext \
12000 conftest$ac_exeext conftest.$ac_ext
12001 LIBS=$ac_check_lib_save_LIBS
12003 echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_get_channels" >&5
12004 echo "${ECHO_T}$ac_cv_lib_png_png_get_channels" >&6
12005 if test $ac_cv_lib_png_png_get_channels = yes; then
12006 HAVE_PNG=yes
12012 if test "${HAVE_PNG}" = "yes"; then
12014 cat >>confdefs.h <<\_ACEOF
12015 #define HAVE_PNG 1
12016 _ACEOF
12021 ### Use -ltiff if available, unless `--with-tiff=no'.
12022 HAVE_TIFF=no
12023 if test "${HAVE_X11}" = "yes"; then
12024 if test "${with_tiff}" != "no"; then
12025 if test "${ac_cv_header_tiffio_h+set}" = set; then
12026 echo "$as_me:$LINENO: checking for tiffio.h" >&5
12027 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
12028 if test "${ac_cv_header_tiffio_h+set}" = set; then
12029 echo $ECHO_N "(cached) $ECHO_C" >&6
12031 echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
12032 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
12033 else
12034 # Is the header compilable?
12035 echo "$as_me:$LINENO: checking tiffio.h usability" >&5
12036 echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6
12037 cat >conftest.$ac_ext <<_ACEOF
12038 /* confdefs.h. */
12039 _ACEOF
12040 cat confdefs.h >>conftest.$ac_ext
12041 cat >>conftest.$ac_ext <<_ACEOF
12042 /* end confdefs.h. */
12043 $ac_includes_default
12044 #include <tiffio.h>
12045 _ACEOF
12046 rm -f conftest.$ac_objext
12047 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12048 (eval $ac_compile) 2>conftest.er1
12049 ac_status=$?
12050 grep -v '^ *+' conftest.er1 >conftest.err
12051 rm -f conftest.er1
12052 cat conftest.err >&5
12053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12054 (exit $ac_status); } &&
12055 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12057 (eval $ac_try) 2>&5
12058 ac_status=$?
12059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12060 (exit $ac_status); }; } &&
12061 { ac_try='test -s conftest.$ac_objext'
12062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12063 (eval $ac_try) 2>&5
12064 ac_status=$?
12065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12066 (exit $ac_status); }; }; then
12067 ac_header_compiler=yes
12068 else
12069 echo "$as_me: failed program was:" >&5
12070 sed 's/^/| /' conftest.$ac_ext >&5
12072 ac_header_compiler=no
12074 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12075 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12076 echo "${ECHO_T}$ac_header_compiler" >&6
12078 # Is the header present?
12079 echo "$as_me:$LINENO: checking tiffio.h presence" >&5
12080 echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6
12081 cat >conftest.$ac_ext <<_ACEOF
12082 /* confdefs.h. */
12083 _ACEOF
12084 cat confdefs.h >>conftest.$ac_ext
12085 cat >>conftest.$ac_ext <<_ACEOF
12086 /* end confdefs.h. */
12087 #include <tiffio.h>
12088 _ACEOF
12089 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12090 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12091 ac_status=$?
12092 grep -v '^ *+' conftest.er1 >conftest.err
12093 rm -f conftest.er1
12094 cat conftest.err >&5
12095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12096 (exit $ac_status); } >/dev/null; then
12097 if test -s conftest.err; then
12098 ac_cpp_err=$ac_c_preproc_warn_flag
12099 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12100 else
12101 ac_cpp_err=
12103 else
12104 ac_cpp_err=yes
12106 if test -z "$ac_cpp_err"; then
12107 ac_header_preproc=yes
12108 else
12109 echo "$as_me: failed program was:" >&5
12110 sed 's/^/| /' conftest.$ac_ext >&5
12112 ac_header_preproc=no
12114 rm -f conftest.err conftest.$ac_ext
12115 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12116 echo "${ECHO_T}$ac_header_preproc" >&6
12118 # So? What about this header?
12119 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12120 yes:no: )
12121 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
12122 echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12123 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
12124 echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
12125 ac_header_preproc=yes
12127 no:yes:* )
12128 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
12129 echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
12130 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
12131 echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
12132 { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
12133 echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
12134 { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
12135 echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
12136 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
12137 echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
12138 { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
12139 echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
12141 cat <<\_ASBOX
12142 ## ------------------------------------------ ##
12143 ## Report this to the AC_PACKAGE_NAME lists. ##
12144 ## ------------------------------------------ ##
12145 _ASBOX
12147 sed "s/^/$as_me: WARNING: /" >&2
12149 esac
12150 echo "$as_me:$LINENO: checking for tiffio.h" >&5
12151 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
12152 if test "${ac_cv_header_tiffio_h+set}" = set; then
12153 echo $ECHO_N "(cached) $ECHO_C" >&6
12154 else
12155 ac_cv_header_tiffio_h=$ac_header_preproc
12157 echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
12158 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
12161 if test $ac_cv_header_tiffio_h = yes; then
12162 tifflibs="-lz -lm"
12163 # At least one tiff package requires the jpeg library.
12164 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
12165 echo "$as_me:$LINENO: checking for TIFFGetVersion in -ltiff" >&5
12166 echo $ECHO_N "checking for TIFFGetVersion in -ltiff... $ECHO_C" >&6
12167 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
12168 echo $ECHO_N "(cached) $ECHO_C" >&6
12169 else
12170 ac_check_lib_save_LIBS=$LIBS
12171 LIBS="-ltiff $tifflibs $LIBS"
12172 cat >conftest.$ac_ext <<_ACEOF
12173 /* confdefs.h. */
12174 _ACEOF
12175 cat confdefs.h >>conftest.$ac_ext
12176 cat >>conftest.$ac_ext <<_ACEOF
12177 /* end confdefs.h. */
12179 /* Override any gcc2 internal prototype to avoid an error. */
12180 #ifdef __cplusplus
12181 extern "C"
12182 #endif
12183 /* We use char because int might match the return type of a gcc2
12184 builtin and then its argument prototype would still apply. */
12185 char TIFFGetVersion ();
12187 main ()
12189 TIFFGetVersion ();
12191 return 0;
12193 _ACEOF
12194 rm -f conftest.$ac_objext conftest$ac_exeext
12195 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12196 (eval $ac_link) 2>conftest.er1
12197 ac_status=$?
12198 grep -v '^ *+' conftest.er1 >conftest.err
12199 rm -f conftest.er1
12200 cat conftest.err >&5
12201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12202 (exit $ac_status); } &&
12203 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12205 (eval $ac_try) 2>&5
12206 ac_status=$?
12207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12208 (exit $ac_status); }; } &&
12209 { ac_try='test -s conftest$ac_exeext'
12210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12211 (eval $ac_try) 2>&5
12212 ac_status=$?
12213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12214 (exit $ac_status); }; }; then
12215 ac_cv_lib_tiff_TIFFGetVersion=yes
12216 else
12217 echo "$as_me: failed program was:" >&5
12218 sed 's/^/| /' conftest.$ac_ext >&5
12220 ac_cv_lib_tiff_TIFFGetVersion=no
12222 rm -f conftest.err conftest.$ac_objext \
12223 conftest$ac_exeext conftest.$ac_ext
12224 LIBS=$ac_check_lib_save_LIBS
12226 echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
12227 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFGetVersion" >&6
12228 if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then
12229 HAVE_TIFF=yes
12237 if test "${HAVE_TIFF}" = "yes"; then
12239 cat >>confdefs.h <<\_ACEOF
12240 #define HAVE_TIFF 1
12241 _ACEOF
12246 ### Use -lgif if available, unless `--with-gif=no'.
12247 HAVE_GIF=no
12248 if test "${HAVE_X11}" = "yes"; then
12249 if test "${with_gif}" != "no"; then
12250 if test "${ac_cv_header_gif_lib_h+set}" = set; then
12251 echo "$as_me:$LINENO: checking for gif_lib.h" >&5
12252 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6
12253 if test "${ac_cv_header_gif_lib_h+set}" = set; then
12254 echo $ECHO_N "(cached) $ECHO_C" >&6
12256 echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
12257 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6
12258 else
12259 # Is the header compilable?
12260 echo "$as_me:$LINENO: checking gif_lib.h usability" >&5
12261 echo $ECHO_N "checking gif_lib.h usability... $ECHO_C" >&6
12262 cat >conftest.$ac_ext <<_ACEOF
12263 /* confdefs.h. */
12264 _ACEOF
12265 cat confdefs.h >>conftest.$ac_ext
12266 cat >>conftest.$ac_ext <<_ACEOF
12267 /* end confdefs.h. */
12268 $ac_includes_default
12269 #include <gif_lib.h>
12270 _ACEOF
12271 rm -f conftest.$ac_objext
12272 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12273 (eval $ac_compile) 2>conftest.er1
12274 ac_status=$?
12275 grep -v '^ *+' conftest.er1 >conftest.err
12276 rm -f conftest.er1
12277 cat conftest.err >&5
12278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12279 (exit $ac_status); } &&
12280 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12282 (eval $ac_try) 2>&5
12283 ac_status=$?
12284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12285 (exit $ac_status); }; } &&
12286 { ac_try='test -s conftest.$ac_objext'
12287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12288 (eval $ac_try) 2>&5
12289 ac_status=$?
12290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12291 (exit $ac_status); }; }; then
12292 ac_header_compiler=yes
12293 else
12294 echo "$as_me: failed program was:" >&5
12295 sed 's/^/| /' conftest.$ac_ext >&5
12297 ac_header_compiler=no
12299 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12300 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12301 echo "${ECHO_T}$ac_header_compiler" >&6
12303 # Is the header present?
12304 echo "$as_me:$LINENO: checking gif_lib.h presence" >&5
12305 echo $ECHO_N "checking gif_lib.h presence... $ECHO_C" >&6
12306 cat >conftest.$ac_ext <<_ACEOF
12307 /* confdefs.h. */
12308 _ACEOF
12309 cat confdefs.h >>conftest.$ac_ext
12310 cat >>conftest.$ac_ext <<_ACEOF
12311 /* end confdefs.h. */
12312 #include <gif_lib.h>
12313 _ACEOF
12314 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12315 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12316 ac_status=$?
12317 grep -v '^ *+' conftest.er1 >conftest.err
12318 rm -f conftest.er1
12319 cat conftest.err >&5
12320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12321 (exit $ac_status); } >/dev/null; then
12322 if test -s conftest.err; then
12323 ac_cpp_err=$ac_c_preproc_warn_flag
12324 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12325 else
12326 ac_cpp_err=
12328 else
12329 ac_cpp_err=yes
12331 if test -z "$ac_cpp_err"; then
12332 ac_header_preproc=yes
12333 else
12334 echo "$as_me: failed program was:" >&5
12335 sed 's/^/| /' conftest.$ac_ext >&5
12337 ac_header_preproc=no
12339 rm -f conftest.err conftest.$ac_ext
12340 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12341 echo "${ECHO_T}$ac_header_preproc" >&6
12343 # So? What about this header?
12344 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12345 yes:no: )
12346 { echo "$as_me:$LINENO: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&5
12347 echo "$as_me: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12348 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the compiler's result" >&5
12349 echo "$as_me: WARNING: gif_lib.h: proceeding with the compiler's result" >&2;}
12350 ac_header_preproc=yes
12352 no:yes:* )
12353 { echo "$as_me:$LINENO: WARNING: gif_lib.h: present but cannot be compiled" >&5
12354 echo "$as_me: WARNING: gif_lib.h: present but cannot be compiled" >&2;}
12355 { echo "$as_me:$LINENO: WARNING: gif_lib.h: check for missing prerequisite headers?" >&5
12356 echo "$as_me: WARNING: gif_lib.h: check for missing prerequisite headers?" >&2;}
12357 { echo "$as_me:$LINENO: WARNING: gif_lib.h: see the Autoconf documentation" >&5
12358 echo "$as_me: WARNING: gif_lib.h: see the Autoconf documentation" >&2;}
12359 { echo "$as_me:$LINENO: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&5
12360 echo "$as_me: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&2;}
12361 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5
12362 echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;}
12363 { echo "$as_me:$LINENO: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&5
12364 echo "$as_me: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&2;}
12366 cat <<\_ASBOX
12367 ## ------------------------------------------ ##
12368 ## Report this to the AC_PACKAGE_NAME lists. ##
12369 ## ------------------------------------------ ##
12370 _ASBOX
12372 sed "s/^/$as_me: WARNING: /" >&2
12374 esac
12375 echo "$as_me:$LINENO: checking for gif_lib.h" >&5
12376 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6
12377 if test "${ac_cv_header_gif_lib_h+set}" = set; then
12378 echo $ECHO_N "(cached) $ECHO_C" >&6
12379 else
12380 ac_cv_header_gif_lib_h=$ac_header_preproc
12382 echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
12383 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6
12386 if test $ac_cv_header_gif_lib_h = yes; then
12387 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
12388 # Earlier versions can crash Emacs.
12389 echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lungif" >&5
12390 echo $ECHO_N "checking for EGifPutExtensionLast in -lungif... $ECHO_C" >&6
12391 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then
12392 echo $ECHO_N "(cached) $ECHO_C" >&6
12393 else
12394 ac_check_lib_save_LIBS=$LIBS
12395 LIBS="-lungif $LIBS"
12396 cat >conftest.$ac_ext <<_ACEOF
12397 /* confdefs.h. */
12398 _ACEOF
12399 cat confdefs.h >>conftest.$ac_ext
12400 cat >>conftest.$ac_ext <<_ACEOF
12401 /* end confdefs.h. */
12403 /* Override any gcc2 internal prototype to avoid an error. */
12404 #ifdef __cplusplus
12405 extern "C"
12406 #endif
12407 /* We use char because int might match the return type of a gcc2
12408 builtin and then its argument prototype would still apply. */
12409 char EGifPutExtensionLast ();
12411 main ()
12413 EGifPutExtensionLast ();
12415 return 0;
12417 _ACEOF
12418 rm -f conftest.$ac_objext conftest$ac_exeext
12419 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12420 (eval $ac_link) 2>conftest.er1
12421 ac_status=$?
12422 grep -v '^ *+' conftest.er1 >conftest.err
12423 rm -f conftest.er1
12424 cat conftest.err >&5
12425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12426 (exit $ac_status); } &&
12427 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12429 (eval $ac_try) 2>&5
12430 ac_status=$?
12431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12432 (exit $ac_status); }; } &&
12433 { ac_try='test -s conftest$ac_exeext'
12434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12435 (eval $ac_try) 2>&5
12436 ac_status=$?
12437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12438 (exit $ac_status); }; }; then
12439 ac_cv_lib_ungif_EGifPutExtensionLast=yes
12440 else
12441 echo "$as_me: failed program was:" >&5
12442 sed 's/^/| /' conftest.$ac_ext >&5
12444 ac_cv_lib_ungif_EGifPutExtensionLast=no
12446 rm -f conftest.err conftest.$ac_objext \
12447 conftest$ac_exeext conftest.$ac_ext
12448 LIBS=$ac_check_lib_save_LIBS
12450 echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
12451 echo "${ECHO_T}$ac_cv_lib_ungif_EGifPutExtensionLast" >&6
12452 if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then
12453 HAVE_GIF=yes
12461 if test "${HAVE_GIF}" = "yes"; then
12463 cat >>confdefs.h <<\_ACEOF
12464 #define HAVE_GIF 1
12465 _ACEOF
12470 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
12471 echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
12472 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6
12473 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
12474 echo $ECHO_N "(cached) $ECHO_C" >&6
12476 echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
12477 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6
12478 else
12479 # Is the header compilable?
12480 echo "$as_me:$LINENO: checking malloc/malloc.h usability" >&5
12481 echo $ECHO_N "checking malloc/malloc.h usability... $ECHO_C" >&6
12482 cat >conftest.$ac_ext <<_ACEOF
12483 /* confdefs.h. */
12484 _ACEOF
12485 cat confdefs.h >>conftest.$ac_ext
12486 cat >>conftest.$ac_ext <<_ACEOF
12487 /* end confdefs.h. */
12488 $ac_includes_default
12489 #include <malloc/malloc.h>
12490 _ACEOF
12491 rm -f conftest.$ac_objext
12492 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12493 (eval $ac_compile) 2>conftest.er1
12494 ac_status=$?
12495 grep -v '^ *+' conftest.er1 >conftest.err
12496 rm -f conftest.er1
12497 cat conftest.err >&5
12498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12499 (exit $ac_status); } &&
12500 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12502 (eval $ac_try) 2>&5
12503 ac_status=$?
12504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12505 (exit $ac_status); }; } &&
12506 { ac_try='test -s conftest.$ac_objext'
12507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12508 (eval $ac_try) 2>&5
12509 ac_status=$?
12510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12511 (exit $ac_status); }; }; then
12512 ac_header_compiler=yes
12513 else
12514 echo "$as_me: failed program was:" >&5
12515 sed 's/^/| /' conftest.$ac_ext >&5
12517 ac_header_compiler=no
12519 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12520 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12521 echo "${ECHO_T}$ac_header_compiler" >&6
12523 # Is the header present?
12524 echo "$as_me:$LINENO: checking malloc/malloc.h presence" >&5
12525 echo $ECHO_N "checking malloc/malloc.h presence... $ECHO_C" >&6
12526 cat >conftest.$ac_ext <<_ACEOF
12527 /* confdefs.h. */
12528 _ACEOF
12529 cat confdefs.h >>conftest.$ac_ext
12530 cat >>conftest.$ac_ext <<_ACEOF
12531 /* end confdefs.h. */
12532 #include <malloc/malloc.h>
12533 _ACEOF
12534 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12535 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12536 ac_status=$?
12537 grep -v '^ *+' conftest.er1 >conftest.err
12538 rm -f conftest.er1
12539 cat conftest.err >&5
12540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12541 (exit $ac_status); } >/dev/null; then
12542 if test -s conftest.err; then
12543 ac_cpp_err=$ac_c_preproc_warn_flag
12544 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12545 else
12546 ac_cpp_err=
12548 else
12549 ac_cpp_err=yes
12551 if test -z "$ac_cpp_err"; then
12552 ac_header_preproc=yes
12553 else
12554 echo "$as_me: failed program was:" >&5
12555 sed 's/^/| /' conftest.$ac_ext >&5
12557 ac_header_preproc=no
12559 rm -f conftest.err conftest.$ac_ext
12560 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12561 echo "${ECHO_T}$ac_header_preproc" >&6
12563 # So? What about this header?
12564 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12565 yes:no: )
12566 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&5
12567 echo "$as_me: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12568 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&5
12569 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&2;}
12570 ac_header_preproc=yes
12572 no:yes:* )
12573 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: present but cannot be compiled" >&5
12574 echo "$as_me: WARNING: malloc/malloc.h: present but cannot be compiled" >&2;}
12575 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&5
12576 echo "$as_me: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&2;}
12577 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: see the Autoconf documentation" >&5
12578 echo "$as_me: WARNING: malloc/malloc.h: see the Autoconf documentation" >&2;}
12579 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&5
12580 echo "$as_me: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&2;}
12581 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&5
12582 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&2;}
12583 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&5
12584 echo "$as_me: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&2;}
12586 cat <<\_ASBOX
12587 ## ------------------------------------------ ##
12588 ## Report this to the AC_PACKAGE_NAME lists. ##
12589 ## ------------------------------------------ ##
12590 _ASBOX
12592 sed "s/^/$as_me: WARNING: /" >&2
12594 esac
12595 echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
12596 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6
12597 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
12598 echo $ECHO_N "(cached) $ECHO_C" >&6
12599 else
12600 ac_cv_header_malloc_malloc_h=$ac_header_preproc
12602 echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
12603 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6
12606 if test $ac_cv_header_malloc_malloc_h = yes; then
12608 cat >>confdefs.h <<\_ACEOF
12609 #define HAVE_MALLOC_MALLOC_H 1
12610 _ACEOF
12616 ### Use Mac OS X Carbon API to implement GUI.
12617 if test "${HAVE_CARBON}" = "yes"; then
12619 cat >>confdefs.h <<\_ACEOF
12620 #define HAVE_CARBON 1
12621 _ACEOF
12623 window_system=mac
12624 ## Specify the install directory
12625 carbon_appdir=
12626 if test "${carbon_appdir_x}" != ""; then
12627 case ${carbon_appdir_x} in
12628 y | ye | yes) carbon_appdir=/Applications ;;
12629 * ) carbon_appdir=${carbon_appdir_x} ;;
12630 esac
12632 # We also have mouse menus.
12633 HAVE_MENUS=yes
12635 tmp_CFLAGS="$CFLAGS"
12636 CFLAGS="$CFLAGS -framework Carbon"
12637 echo "$as_me:$LINENO: checking for CancelMenuTracking" >&5
12638 echo $ECHO_N "checking for CancelMenuTracking... $ECHO_C" >&6
12639 if test "${ac_cv_func_CancelMenuTracking+set}" = set; then
12640 echo $ECHO_N "(cached) $ECHO_C" >&6
12641 else
12642 cat >conftest.$ac_ext <<_ACEOF
12643 /* confdefs.h. */
12644 _ACEOF
12645 cat confdefs.h >>conftest.$ac_ext
12646 cat >>conftest.$ac_ext <<_ACEOF
12647 /* end confdefs.h. */
12648 /* Define CancelMenuTracking to an innocuous variant, in case <limits.h> declares CancelMenuTracking.
12649 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12650 #define CancelMenuTracking innocuous_CancelMenuTracking
12652 /* System header to define __stub macros and hopefully few prototypes,
12653 which can conflict with char CancelMenuTracking (); below.
12654 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12655 <limits.h> exists even on freestanding compilers. */
12657 #ifdef __STDC__
12658 # include <limits.h>
12659 #else
12660 # include <assert.h>
12661 #endif
12663 #undef CancelMenuTracking
12665 /* Override any gcc2 internal prototype to avoid an error. */
12666 #ifdef __cplusplus
12667 extern "C"
12669 #endif
12670 /* We use char because int might match the return type of a gcc2
12671 builtin and then its argument prototype would still apply. */
12672 char CancelMenuTracking ();
12673 /* The GNU C library defines this for functions which it implements
12674 to always fail with ENOSYS. Some functions are actually named
12675 something starting with __ and the normal name is an alias. */
12676 #if defined (__stub_CancelMenuTracking) || defined (__stub___CancelMenuTracking)
12677 choke me
12678 #else
12679 char (*f) () = CancelMenuTracking;
12680 #endif
12681 #ifdef __cplusplus
12683 #endif
12686 main ()
12688 return f != CancelMenuTracking;
12690 return 0;
12692 _ACEOF
12693 rm -f conftest.$ac_objext conftest$ac_exeext
12694 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12695 (eval $ac_link) 2>conftest.er1
12696 ac_status=$?
12697 grep -v '^ *+' conftest.er1 >conftest.err
12698 rm -f conftest.er1
12699 cat conftest.err >&5
12700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12701 (exit $ac_status); } &&
12702 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12704 (eval $ac_try) 2>&5
12705 ac_status=$?
12706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12707 (exit $ac_status); }; } &&
12708 { ac_try='test -s conftest$ac_exeext'
12709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12710 (eval $ac_try) 2>&5
12711 ac_status=$?
12712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12713 (exit $ac_status); }; }; then
12714 ac_cv_func_CancelMenuTracking=yes
12715 else
12716 echo "$as_me: failed program was:" >&5
12717 sed 's/^/| /' conftest.$ac_ext >&5
12719 ac_cv_func_CancelMenuTracking=no
12721 rm -f conftest.err conftest.$ac_objext \
12722 conftest$ac_exeext conftest.$ac_ext
12724 echo "$as_me:$LINENO: result: $ac_cv_func_CancelMenuTracking" >&5
12725 echo "${ECHO_T}$ac_cv_func_CancelMenuTracking" >&6
12726 if test $ac_cv_func_CancelMenuTracking = yes; then
12727 have_cmt=yes
12728 else
12729 have_cmt=no
12732 if test "$have_cmt" = yes; then
12734 cat >>confdefs.h <<\_ACEOF
12735 #define HAVE_CANCELMENUTRACKING 1
12736 _ACEOF
12739 CFLAGS="$tmp_CFLAGS"
12742 ### Use session management (-lSM -lICE) if available
12743 HAVE_X_SM=no
12744 if test "${HAVE_X11}" = "yes"; then
12745 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
12746 echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
12747 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6
12748 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
12749 echo $ECHO_N "(cached) $ECHO_C" >&6
12751 echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
12752 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6
12753 else
12754 # Is the header compilable?
12755 echo "$as_me:$LINENO: checking X11/SM/SMlib.h usability" >&5
12756 echo $ECHO_N "checking X11/SM/SMlib.h usability... $ECHO_C" >&6
12757 cat >conftest.$ac_ext <<_ACEOF
12758 /* confdefs.h. */
12759 _ACEOF
12760 cat confdefs.h >>conftest.$ac_ext
12761 cat >>conftest.$ac_ext <<_ACEOF
12762 /* end confdefs.h. */
12763 $ac_includes_default
12764 #include <X11/SM/SMlib.h>
12765 _ACEOF
12766 rm -f conftest.$ac_objext
12767 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12768 (eval $ac_compile) 2>conftest.er1
12769 ac_status=$?
12770 grep -v '^ *+' conftest.er1 >conftest.err
12771 rm -f conftest.er1
12772 cat conftest.err >&5
12773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12774 (exit $ac_status); } &&
12775 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12777 (eval $ac_try) 2>&5
12778 ac_status=$?
12779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12780 (exit $ac_status); }; } &&
12781 { ac_try='test -s conftest.$ac_objext'
12782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12783 (eval $ac_try) 2>&5
12784 ac_status=$?
12785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12786 (exit $ac_status); }; }; then
12787 ac_header_compiler=yes
12788 else
12789 echo "$as_me: failed program was:" >&5
12790 sed 's/^/| /' conftest.$ac_ext >&5
12792 ac_header_compiler=no
12794 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12795 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12796 echo "${ECHO_T}$ac_header_compiler" >&6
12798 # Is the header present?
12799 echo "$as_me:$LINENO: checking X11/SM/SMlib.h presence" >&5
12800 echo $ECHO_N "checking X11/SM/SMlib.h presence... $ECHO_C" >&6
12801 cat >conftest.$ac_ext <<_ACEOF
12802 /* confdefs.h. */
12803 _ACEOF
12804 cat confdefs.h >>conftest.$ac_ext
12805 cat >>conftest.$ac_ext <<_ACEOF
12806 /* end confdefs.h. */
12807 #include <X11/SM/SMlib.h>
12808 _ACEOF
12809 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12810 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12811 ac_status=$?
12812 grep -v '^ *+' conftest.er1 >conftest.err
12813 rm -f conftest.er1
12814 cat conftest.err >&5
12815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12816 (exit $ac_status); } >/dev/null; then
12817 if test -s conftest.err; then
12818 ac_cpp_err=$ac_c_preproc_warn_flag
12819 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12820 else
12821 ac_cpp_err=
12823 else
12824 ac_cpp_err=yes
12826 if test -z "$ac_cpp_err"; then
12827 ac_header_preproc=yes
12828 else
12829 echo "$as_me: failed program was:" >&5
12830 sed 's/^/| /' conftest.$ac_ext >&5
12832 ac_header_preproc=no
12834 rm -f conftest.err conftest.$ac_ext
12835 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12836 echo "${ECHO_T}$ac_header_preproc" >&6
12838 # So? What about this header?
12839 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12840 yes:no: )
12841 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
12842 echo "$as_me: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12843 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&5
12844 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&2;}
12845 ac_header_preproc=yes
12847 no:yes:* )
12848 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&5
12849 echo "$as_me: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&2;}
12850 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&5
12851 echo "$as_me: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&2;}
12852 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&5
12853 echo "$as_me: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&2;}
12854 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&5
12855 echo "$as_me: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
12856 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
12857 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;}
12858 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&5
12859 echo "$as_me: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&2;}
12861 cat <<\_ASBOX
12862 ## ------------------------------------------ ##
12863 ## Report this to the AC_PACKAGE_NAME lists. ##
12864 ## ------------------------------------------ ##
12865 _ASBOX
12867 sed "s/^/$as_me: WARNING: /" >&2
12869 esac
12870 echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
12871 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6
12872 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
12873 echo $ECHO_N "(cached) $ECHO_C" >&6
12874 else
12875 ac_cv_header_X11_SM_SMlib_h=$ac_header_preproc
12877 echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
12878 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6
12881 if test $ac_cv_header_X11_SM_SMlib_h = yes; then
12882 echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
12883 echo $ECHO_N "checking for SmcOpenConnection in -lSM... $ECHO_C" >&6
12884 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
12885 echo $ECHO_N "(cached) $ECHO_C" >&6
12886 else
12887 ac_check_lib_save_LIBS=$LIBS
12888 LIBS="-lSM -lICE $LIBS"
12889 cat >conftest.$ac_ext <<_ACEOF
12890 /* confdefs.h. */
12891 _ACEOF
12892 cat confdefs.h >>conftest.$ac_ext
12893 cat >>conftest.$ac_ext <<_ACEOF
12894 /* end confdefs.h. */
12896 /* Override any gcc2 internal prototype to avoid an error. */
12897 #ifdef __cplusplus
12898 extern "C"
12899 #endif
12900 /* We use char because int might match the return type of a gcc2
12901 builtin and then its argument prototype would still apply. */
12902 char SmcOpenConnection ();
12904 main ()
12906 SmcOpenConnection ();
12908 return 0;
12910 _ACEOF
12911 rm -f conftest.$ac_objext conftest$ac_exeext
12912 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12913 (eval $ac_link) 2>conftest.er1
12914 ac_status=$?
12915 grep -v '^ *+' conftest.er1 >conftest.err
12916 rm -f conftest.er1
12917 cat conftest.err >&5
12918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12919 (exit $ac_status); } &&
12920 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12922 (eval $ac_try) 2>&5
12923 ac_status=$?
12924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12925 (exit $ac_status); }; } &&
12926 { ac_try='test -s conftest$ac_exeext'
12927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12928 (eval $ac_try) 2>&5
12929 ac_status=$?
12930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12931 (exit $ac_status); }; }; then
12932 ac_cv_lib_SM_SmcOpenConnection=yes
12933 else
12934 echo "$as_me: failed program was:" >&5
12935 sed 's/^/| /' conftest.$ac_ext >&5
12937 ac_cv_lib_SM_SmcOpenConnection=no
12939 rm -f conftest.err conftest.$ac_objext \
12940 conftest$ac_exeext conftest.$ac_ext
12941 LIBS=$ac_check_lib_save_LIBS
12943 echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
12944 echo "${ECHO_T}$ac_cv_lib_SM_SmcOpenConnection" >&6
12945 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
12946 HAVE_X_SM=yes
12953 if test "${HAVE_X_SM}" = "yes"; then
12955 cat >>confdefs.h <<\_ACEOF
12956 #define HAVE_X_SM 1
12957 _ACEOF
12959 case "$LIBS" in
12960 *-lSM*) ;;
12961 *) LIBS="-lSM -lICE $LIBS" ;;
12962 esac
12966 # If netdb.h doesn't declare h_errno, we must declare it by hand.
12967 echo "$as_me:$LINENO: checking whether netdb declares h_errno" >&5
12968 echo $ECHO_N "checking whether netdb declares h_errno... $ECHO_C" >&6
12969 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then
12970 echo $ECHO_N "(cached) $ECHO_C" >&6
12971 else
12972 cat >conftest.$ac_ext <<_ACEOF
12973 /* confdefs.h. */
12974 _ACEOF
12975 cat confdefs.h >>conftest.$ac_ext
12976 cat >>conftest.$ac_ext <<_ACEOF
12977 /* end confdefs.h. */
12978 #include <netdb.h>
12980 main ()
12982 return h_errno;
12984 return 0;
12986 _ACEOF
12987 rm -f conftest.$ac_objext conftest$ac_exeext
12988 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12989 (eval $ac_link) 2>conftest.er1
12990 ac_status=$?
12991 grep -v '^ *+' conftest.er1 >conftest.err
12992 rm -f conftest.er1
12993 cat conftest.err >&5
12994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12995 (exit $ac_status); } &&
12996 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12998 (eval $ac_try) 2>&5
12999 ac_status=$?
13000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13001 (exit $ac_status); }; } &&
13002 { ac_try='test -s conftest$ac_exeext'
13003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13004 (eval $ac_try) 2>&5
13005 ac_status=$?
13006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13007 (exit $ac_status); }; }; then
13008 emacs_cv_netdb_declares_h_errno=yes
13009 else
13010 echo "$as_me: failed program was:" >&5
13011 sed 's/^/| /' conftest.$ac_ext >&5
13013 emacs_cv_netdb_declares_h_errno=no
13015 rm -f conftest.err conftest.$ac_objext \
13016 conftest$ac_exeext conftest.$ac_ext
13018 echo "$as_me:$LINENO: result: $emacs_cv_netdb_declares_h_errno" >&5
13019 echo "${ECHO_T}$emacs_cv_netdb_declares_h_errno" >&6
13020 if test $emacs_cv_netdb_declares_h_errno = yes; then
13022 cat >>confdefs.h <<\_ACEOF
13023 #define HAVE_H_ERRNO 1
13024 _ACEOF
13028 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
13029 # for constant arguments. Useless!
13030 echo "$as_me:$LINENO: checking for working alloca.h" >&5
13031 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
13032 if test "${ac_cv_working_alloca_h+set}" = set; then
13033 echo $ECHO_N "(cached) $ECHO_C" >&6
13034 else
13035 cat >conftest.$ac_ext <<_ACEOF
13036 /* confdefs.h. */
13037 _ACEOF
13038 cat confdefs.h >>conftest.$ac_ext
13039 cat >>conftest.$ac_ext <<_ACEOF
13040 /* end confdefs.h. */
13041 #include <alloca.h>
13043 main ()
13045 char *p = (char *) alloca (2 * sizeof (int));
13047 return 0;
13049 _ACEOF
13050 rm -f conftest.$ac_objext conftest$ac_exeext
13051 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13052 (eval $ac_link) 2>conftest.er1
13053 ac_status=$?
13054 grep -v '^ *+' conftest.er1 >conftest.err
13055 rm -f conftest.er1
13056 cat conftest.err >&5
13057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13058 (exit $ac_status); } &&
13059 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13061 (eval $ac_try) 2>&5
13062 ac_status=$?
13063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13064 (exit $ac_status); }; } &&
13065 { ac_try='test -s conftest$ac_exeext'
13066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13067 (eval $ac_try) 2>&5
13068 ac_status=$?
13069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13070 (exit $ac_status); }; }; then
13071 ac_cv_working_alloca_h=yes
13072 else
13073 echo "$as_me: failed program was:" >&5
13074 sed 's/^/| /' conftest.$ac_ext >&5
13076 ac_cv_working_alloca_h=no
13078 rm -f conftest.err conftest.$ac_objext \
13079 conftest$ac_exeext conftest.$ac_ext
13081 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
13082 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
13083 if test $ac_cv_working_alloca_h = yes; then
13085 cat >>confdefs.h <<\_ACEOF
13086 #define HAVE_ALLOCA_H 1
13087 _ACEOF
13091 echo "$as_me:$LINENO: checking for alloca" >&5
13092 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
13093 if test "${ac_cv_func_alloca_works+set}" = set; then
13094 echo $ECHO_N "(cached) $ECHO_C" >&6
13095 else
13096 cat >conftest.$ac_ext <<_ACEOF
13097 /* confdefs.h. */
13098 _ACEOF
13099 cat confdefs.h >>conftest.$ac_ext
13100 cat >>conftest.$ac_ext <<_ACEOF
13101 /* end confdefs.h. */
13102 #ifdef __GNUC__
13103 # define alloca __builtin_alloca
13104 #else
13105 # ifdef _MSC_VER
13106 # include <malloc.h>
13107 # define alloca _alloca
13108 # else
13109 # if HAVE_ALLOCA_H
13110 # include <alloca.h>
13111 # else
13112 # ifdef _AIX
13113 #pragma alloca
13114 # else
13115 # ifndef alloca /* predefined by HP cc +Olibcalls */
13116 char *alloca ();
13117 # endif
13118 # endif
13119 # endif
13120 # endif
13121 #endif
13124 main ()
13126 char *p = (char *) alloca (1);
13128 return 0;
13130 _ACEOF
13131 rm -f conftest.$ac_objext conftest$ac_exeext
13132 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13133 (eval $ac_link) 2>conftest.er1
13134 ac_status=$?
13135 grep -v '^ *+' conftest.er1 >conftest.err
13136 rm -f conftest.er1
13137 cat conftest.err >&5
13138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13139 (exit $ac_status); } &&
13140 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13142 (eval $ac_try) 2>&5
13143 ac_status=$?
13144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13145 (exit $ac_status); }; } &&
13146 { ac_try='test -s conftest$ac_exeext'
13147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13148 (eval $ac_try) 2>&5
13149 ac_status=$?
13150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13151 (exit $ac_status); }; }; then
13152 ac_cv_func_alloca_works=yes
13153 else
13154 echo "$as_me: failed program was:" >&5
13155 sed 's/^/| /' conftest.$ac_ext >&5
13157 ac_cv_func_alloca_works=no
13159 rm -f conftest.err conftest.$ac_objext \
13160 conftest$ac_exeext conftest.$ac_ext
13162 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
13163 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
13165 if test $ac_cv_func_alloca_works = yes; then
13167 cat >>confdefs.h <<\_ACEOF
13168 #define HAVE_ALLOCA 1
13169 _ACEOF
13171 else
13172 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
13173 # that cause trouble. Some versions do not even contain alloca or
13174 # contain a buggy version. If you still want to use their alloca,
13175 # use ar to extract alloca.o from them instead of compiling alloca.c.
13177 ALLOCA=alloca.$ac_objext
13179 cat >>confdefs.h <<\_ACEOF
13180 #define C_ALLOCA 1
13181 _ACEOF
13184 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
13185 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
13186 if test "${ac_cv_os_cray+set}" = set; then
13187 echo $ECHO_N "(cached) $ECHO_C" >&6
13188 else
13189 cat >conftest.$ac_ext <<_ACEOF
13190 /* confdefs.h. */
13191 _ACEOF
13192 cat confdefs.h >>conftest.$ac_ext
13193 cat >>conftest.$ac_ext <<_ACEOF
13194 /* end confdefs.h. */
13195 #if defined(CRAY) && ! defined(CRAY2)
13196 webecray
13197 #else
13198 wenotbecray
13199 #endif
13201 _ACEOF
13202 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13203 $EGREP "webecray" >/dev/null 2>&1; then
13204 ac_cv_os_cray=yes
13205 else
13206 ac_cv_os_cray=no
13208 rm -f conftest*
13211 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
13212 echo "${ECHO_T}$ac_cv_os_cray" >&6
13213 if test $ac_cv_os_cray = yes; then
13214 for ac_func in _getb67 GETB67 getb67; do
13215 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13216 echo "$as_me:$LINENO: checking for $ac_func" >&5
13217 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13218 if eval "test \"\${$as_ac_var+set}\" = set"; then
13219 echo $ECHO_N "(cached) $ECHO_C" >&6
13220 else
13221 cat >conftest.$ac_ext <<_ACEOF
13222 /* confdefs.h. */
13223 _ACEOF
13224 cat confdefs.h >>conftest.$ac_ext
13225 cat >>conftest.$ac_ext <<_ACEOF
13226 /* end confdefs.h. */
13227 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13228 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13229 #define $ac_func innocuous_$ac_func
13231 /* System header to define __stub macros and hopefully few prototypes,
13232 which can conflict with char $ac_func (); below.
13233 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13234 <limits.h> exists even on freestanding compilers. */
13236 #ifdef __STDC__
13237 # include <limits.h>
13238 #else
13239 # include <assert.h>
13240 #endif
13242 #undef $ac_func
13244 /* Override any gcc2 internal prototype to avoid an error. */
13245 #ifdef __cplusplus
13246 extern "C"
13248 #endif
13249 /* We use char because int might match the return type of a gcc2
13250 builtin and then its argument prototype would still apply. */
13251 char $ac_func ();
13252 /* The GNU C library defines this for functions which it implements
13253 to always fail with ENOSYS. Some functions are actually named
13254 something starting with __ and the normal name is an alias. */
13255 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13256 choke me
13257 #else
13258 char (*f) () = $ac_func;
13259 #endif
13260 #ifdef __cplusplus
13262 #endif
13265 main ()
13267 return f != $ac_func;
13269 return 0;
13271 _ACEOF
13272 rm -f conftest.$ac_objext conftest$ac_exeext
13273 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13274 (eval $ac_link) 2>conftest.er1
13275 ac_status=$?
13276 grep -v '^ *+' conftest.er1 >conftest.err
13277 rm -f conftest.er1
13278 cat conftest.err >&5
13279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13280 (exit $ac_status); } &&
13281 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13283 (eval $ac_try) 2>&5
13284 ac_status=$?
13285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13286 (exit $ac_status); }; } &&
13287 { ac_try='test -s conftest$ac_exeext'
13288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13289 (eval $ac_try) 2>&5
13290 ac_status=$?
13291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13292 (exit $ac_status); }; }; then
13293 eval "$as_ac_var=yes"
13294 else
13295 echo "$as_me: failed program was:" >&5
13296 sed 's/^/| /' conftest.$ac_ext >&5
13298 eval "$as_ac_var=no"
13300 rm -f conftest.err conftest.$ac_objext \
13301 conftest$ac_exeext conftest.$ac_ext
13303 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13304 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13305 if test `eval echo '${'$as_ac_var'}'` = yes; then
13307 cat >>confdefs.h <<_ACEOF
13308 #define CRAY_STACKSEG_END $ac_func
13309 _ACEOF
13311 break
13314 done
13317 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
13318 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
13319 if test "${ac_cv_c_stack_direction+set}" = set; then
13320 echo $ECHO_N "(cached) $ECHO_C" >&6
13321 else
13322 if test "$cross_compiling" = yes; then
13323 ac_cv_c_stack_direction=0
13324 else
13325 cat >conftest.$ac_ext <<_ACEOF
13326 /* confdefs.h. */
13327 _ACEOF
13328 cat confdefs.h >>conftest.$ac_ext
13329 cat >>conftest.$ac_ext <<_ACEOF
13330 /* end confdefs.h. */
13332 find_stack_direction ()
13334 static char *addr = 0;
13335 auto char dummy;
13336 if (addr == 0)
13338 addr = &dummy;
13339 return find_stack_direction ();
13341 else
13342 return (&dummy > addr) ? 1 : -1;
13346 main ()
13348 exit (find_stack_direction () < 0);
13350 _ACEOF
13351 rm -f conftest$ac_exeext
13352 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13353 (eval $ac_link) 2>&5
13354 ac_status=$?
13355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13356 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13358 (eval $ac_try) 2>&5
13359 ac_status=$?
13360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13361 (exit $ac_status); }; }; then
13362 ac_cv_c_stack_direction=1
13363 else
13364 echo "$as_me: program exited with status $ac_status" >&5
13365 echo "$as_me: failed program was:" >&5
13366 sed 's/^/| /' conftest.$ac_ext >&5
13368 ( exit $ac_status )
13369 ac_cv_c_stack_direction=-1
13371 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13374 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
13375 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
13377 cat >>confdefs.h <<_ACEOF
13378 #define STACK_DIRECTION $ac_cv_c_stack_direction
13379 _ACEOF
13385 # fmod, logb, and frexp are found in -lm on most systems.
13386 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
13388 echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
13389 echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6
13390 if test "${ac_cv_lib_m_sqrt+set}" = set; then
13391 echo $ECHO_N "(cached) $ECHO_C" >&6
13392 else
13393 ac_check_lib_save_LIBS=$LIBS
13394 LIBS="-lm $LIBS"
13395 cat >conftest.$ac_ext <<_ACEOF
13396 /* confdefs.h. */
13397 _ACEOF
13398 cat confdefs.h >>conftest.$ac_ext
13399 cat >>conftest.$ac_ext <<_ACEOF
13400 /* end confdefs.h. */
13402 /* Override any gcc2 internal prototype to avoid an error. */
13403 #ifdef __cplusplus
13404 extern "C"
13405 #endif
13406 /* We use char because int might match the return type of a gcc2
13407 builtin and then its argument prototype would still apply. */
13408 char sqrt ();
13410 main ()
13412 sqrt ();
13414 return 0;
13416 _ACEOF
13417 rm -f conftest.$ac_objext conftest$ac_exeext
13418 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13419 (eval $ac_link) 2>conftest.er1
13420 ac_status=$?
13421 grep -v '^ *+' conftest.er1 >conftest.err
13422 rm -f conftest.er1
13423 cat conftest.err >&5
13424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13425 (exit $ac_status); } &&
13426 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13428 (eval $ac_try) 2>&5
13429 ac_status=$?
13430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13431 (exit $ac_status); }; } &&
13432 { ac_try='test -s conftest$ac_exeext'
13433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13434 (eval $ac_try) 2>&5
13435 ac_status=$?
13436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13437 (exit $ac_status); }; }; then
13438 ac_cv_lib_m_sqrt=yes
13439 else
13440 echo "$as_me: failed program was:" >&5
13441 sed 's/^/| /' conftest.$ac_ext >&5
13443 ac_cv_lib_m_sqrt=no
13445 rm -f conftest.err conftest.$ac_objext \
13446 conftest$ac_exeext conftest.$ac_ext
13447 LIBS=$ac_check_lib_save_LIBS
13449 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
13450 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6
13451 if test $ac_cv_lib_m_sqrt = yes; then
13452 cat >>confdefs.h <<_ACEOF
13453 #define HAVE_LIBM 1
13454 _ACEOF
13456 LIBS="-lm $LIBS"
13461 # Check for mail-locking functions in a "mail" library. Probably this should
13462 # have the same check as for liblockfile below.
13464 echo "$as_me:$LINENO: checking for maillock in -lmail" >&5
13465 echo $ECHO_N "checking for maillock in -lmail... $ECHO_C" >&6
13466 if test "${ac_cv_lib_mail_maillock+set}" = set; then
13467 echo $ECHO_N "(cached) $ECHO_C" >&6
13468 else
13469 ac_check_lib_save_LIBS=$LIBS
13470 LIBS="-lmail $LIBS"
13471 cat >conftest.$ac_ext <<_ACEOF
13472 /* confdefs.h. */
13473 _ACEOF
13474 cat confdefs.h >>conftest.$ac_ext
13475 cat >>conftest.$ac_ext <<_ACEOF
13476 /* end confdefs.h. */
13478 /* Override any gcc2 internal prototype to avoid an error. */
13479 #ifdef __cplusplus
13480 extern "C"
13481 #endif
13482 /* We use char because int might match the return type of a gcc2
13483 builtin and then its argument prototype would still apply. */
13484 char maillock ();
13486 main ()
13488 maillock ();
13490 return 0;
13492 _ACEOF
13493 rm -f conftest.$ac_objext conftest$ac_exeext
13494 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13495 (eval $ac_link) 2>conftest.er1
13496 ac_status=$?
13497 grep -v '^ *+' conftest.er1 >conftest.err
13498 rm -f conftest.er1
13499 cat conftest.err >&5
13500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13501 (exit $ac_status); } &&
13502 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13504 (eval $ac_try) 2>&5
13505 ac_status=$?
13506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13507 (exit $ac_status); }; } &&
13508 { ac_try='test -s conftest$ac_exeext'
13509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13510 (eval $ac_try) 2>&5
13511 ac_status=$?
13512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13513 (exit $ac_status); }; }; then
13514 ac_cv_lib_mail_maillock=yes
13515 else
13516 echo "$as_me: failed program was:" >&5
13517 sed 's/^/| /' conftest.$ac_ext >&5
13519 ac_cv_lib_mail_maillock=no
13521 rm -f conftest.err conftest.$ac_objext \
13522 conftest$ac_exeext conftest.$ac_ext
13523 LIBS=$ac_check_lib_save_LIBS
13525 echo "$as_me:$LINENO: result: $ac_cv_lib_mail_maillock" >&5
13526 echo "${ECHO_T}$ac_cv_lib_mail_maillock" >&6
13527 if test $ac_cv_lib_mail_maillock = yes; then
13528 cat >>confdefs.h <<_ACEOF
13529 #define HAVE_LIBMAIL 1
13530 _ACEOF
13532 LIBS="-lmail $LIBS"
13537 echo "$as_me:$LINENO: checking for maillock in -llockfile" >&5
13538 echo $ECHO_N "checking for maillock in -llockfile... $ECHO_C" >&6
13539 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
13540 echo $ECHO_N "(cached) $ECHO_C" >&6
13541 else
13542 ac_check_lib_save_LIBS=$LIBS
13543 LIBS="-llockfile $LIBS"
13544 cat >conftest.$ac_ext <<_ACEOF
13545 /* confdefs.h. */
13546 _ACEOF
13547 cat confdefs.h >>conftest.$ac_ext
13548 cat >>conftest.$ac_ext <<_ACEOF
13549 /* end confdefs.h. */
13551 /* Override any gcc2 internal prototype to avoid an error. */
13552 #ifdef __cplusplus
13553 extern "C"
13554 #endif
13555 /* We use char because int might match the return type of a gcc2
13556 builtin and then its argument prototype would still apply. */
13557 char maillock ();
13559 main ()
13561 maillock ();
13563 return 0;
13565 _ACEOF
13566 rm -f conftest.$ac_objext conftest$ac_exeext
13567 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13568 (eval $ac_link) 2>conftest.er1
13569 ac_status=$?
13570 grep -v '^ *+' conftest.er1 >conftest.err
13571 rm -f conftest.er1
13572 cat conftest.err >&5
13573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13574 (exit $ac_status); } &&
13575 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13577 (eval $ac_try) 2>&5
13578 ac_status=$?
13579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13580 (exit $ac_status); }; } &&
13581 { ac_try='test -s conftest$ac_exeext'
13582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13583 (eval $ac_try) 2>&5
13584 ac_status=$?
13585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13586 (exit $ac_status); }; }; then
13587 ac_cv_lib_lockfile_maillock=yes
13588 else
13589 echo "$as_me: failed program was:" >&5
13590 sed 's/^/| /' conftest.$ac_ext >&5
13592 ac_cv_lib_lockfile_maillock=no
13594 rm -f conftest.err conftest.$ac_objext \
13595 conftest$ac_exeext conftest.$ac_ext
13596 LIBS=$ac_check_lib_save_LIBS
13598 echo "$as_me:$LINENO: result: $ac_cv_lib_lockfile_maillock" >&5
13599 echo "${ECHO_T}$ac_cv_lib_lockfile_maillock" >&6
13600 if test $ac_cv_lib_lockfile_maillock = yes; then
13601 cat >>confdefs.h <<_ACEOF
13602 #define HAVE_LIBLOCKFILE 1
13603 _ACEOF
13605 LIBS="-llockfile $LIBS"
13609 # If we have the shared liblockfile, assume we must use it for mail
13610 # locking (e.g. Debian). If we couldn't link against liblockfile
13611 # (no liblockfile.a installed), ensure that we don't need to.
13612 if test "$ac_cv_lib_lockfile_maillock" = no; then
13613 # Extract the first word of "liblockfile.so", so it can be a program name with args.
13614 set dummy liblockfile.so; ac_word=$2
13615 echo "$as_me:$LINENO: checking for $ac_word" >&5
13616 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13617 if test "${ac_cv_prog_liblockfile+set}" = set; then
13618 echo $ECHO_N "(cached) $ECHO_C" >&6
13619 else
13620 if test -n "$liblockfile"; then
13621 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
13622 else
13623 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13624 as_dummy="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
13625 for as_dir in $as_dummy
13627 IFS=$as_save_IFS
13628 test -z "$as_dir" && as_dir=.
13629 for ac_exec_ext in '' $ac_executable_extensions; do
13630 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13631 ac_cv_prog_liblockfile="yes"
13632 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13633 break 2
13635 done
13636 done
13638 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no"
13641 liblockfile=$ac_cv_prog_liblockfile
13642 if test -n "$liblockfile"; then
13643 echo "$as_me:$LINENO: result: $liblockfile" >&5
13644 echo "${ECHO_T}$liblockfile" >&6
13645 else
13646 echo "$as_me:$LINENO: result: no" >&5
13647 echo "${ECHO_T}no" >&6
13650 if test $ac_cv_prog_liblockfile = yes; then
13651 { { echo "$as_me:$LINENO: error: Shared liblockfile found but can't link against it.
13652 This probably means that movemail could lose mail.
13653 There may be a \`development' package to install containing liblockfile." >&5
13654 echo "$as_me: error: Shared liblockfile found but can't link against it.
13655 This probably means that movemail could lose mail.
13656 There may be a \`development' package to install containing liblockfile." >&2;}
13657 { (exit 1); exit 1; }; }
13658 else :
13662 for ac_func in touchlock
13664 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13665 echo "$as_me:$LINENO: checking for $ac_func" >&5
13666 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13667 if eval "test \"\${$as_ac_var+set}\" = set"; then
13668 echo $ECHO_N "(cached) $ECHO_C" >&6
13669 else
13670 cat >conftest.$ac_ext <<_ACEOF
13671 /* confdefs.h. */
13672 _ACEOF
13673 cat confdefs.h >>conftest.$ac_ext
13674 cat >>conftest.$ac_ext <<_ACEOF
13675 /* end confdefs.h. */
13676 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13677 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13678 #define $ac_func innocuous_$ac_func
13680 /* System header to define __stub macros and hopefully few prototypes,
13681 which can conflict with char $ac_func (); below.
13682 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13683 <limits.h> exists even on freestanding compilers. */
13685 #ifdef __STDC__
13686 # include <limits.h>
13687 #else
13688 # include <assert.h>
13689 #endif
13691 #undef $ac_func
13693 /* Override any gcc2 internal prototype to avoid an error. */
13694 #ifdef __cplusplus
13695 extern "C"
13697 #endif
13698 /* We use char because int might match the return type of a gcc2
13699 builtin and then its argument prototype would still apply. */
13700 char $ac_func ();
13701 /* The GNU C library defines this for functions which it implements
13702 to always fail with ENOSYS. Some functions are actually named
13703 something starting with __ and the normal name is an alias. */
13704 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13705 choke me
13706 #else
13707 char (*f) () = $ac_func;
13708 #endif
13709 #ifdef __cplusplus
13711 #endif
13714 main ()
13716 return f != $ac_func;
13718 return 0;
13720 _ACEOF
13721 rm -f conftest.$ac_objext conftest$ac_exeext
13722 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13723 (eval $ac_link) 2>conftest.er1
13724 ac_status=$?
13725 grep -v '^ *+' conftest.er1 >conftest.err
13726 rm -f conftest.er1
13727 cat conftest.err >&5
13728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13729 (exit $ac_status); } &&
13730 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13732 (eval $ac_try) 2>&5
13733 ac_status=$?
13734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13735 (exit $ac_status); }; } &&
13736 { ac_try='test -s conftest$ac_exeext'
13737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13738 (eval $ac_try) 2>&5
13739 ac_status=$?
13740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13741 (exit $ac_status); }; }; then
13742 eval "$as_ac_var=yes"
13743 else
13744 echo "$as_me: failed program was:" >&5
13745 sed 's/^/| /' conftest.$ac_ext >&5
13747 eval "$as_ac_var=no"
13749 rm -f conftest.err conftest.$ac_objext \
13750 conftest$ac_exeext conftest.$ac_ext
13752 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13753 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13754 if test `eval echo '${'$as_ac_var'}'` = yes; then
13755 cat >>confdefs.h <<_ACEOF
13756 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13757 _ACEOF
13760 done
13763 for ac_header in maillock.h
13765 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13766 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13767 echo "$as_me:$LINENO: checking for $ac_header" >&5
13768 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13769 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13770 echo $ECHO_N "(cached) $ECHO_C" >&6
13772 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13773 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13774 else
13775 # Is the header compilable?
13776 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13777 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13778 cat >conftest.$ac_ext <<_ACEOF
13779 /* confdefs.h. */
13780 _ACEOF
13781 cat confdefs.h >>conftest.$ac_ext
13782 cat >>conftest.$ac_ext <<_ACEOF
13783 /* end confdefs.h. */
13784 $ac_includes_default
13785 #include <$ac_header>
13786 _ACEOF
13787 rm -f conftest.$ac_objext
13788 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13789 (eval $ac_compile) 2>conftest.er1
13790 ac_status=$?
13791 grep -v '^ *+' conftest.er1 >conftest.err
13792 rm -f conftest.er1
13793 cat conftest.err >&5
13794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13795 (exit $ac_status); } &&
13796 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13798 (eval $ac_try) 2>&5
13799 ac_status=$?
13800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13801 (exit $ac_status); }; } &&
13802 { ac_try='test -s conftest.$ac_objext'
13803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13804 (eval $ac_try) 2>&5
13805 ac_status=$?
13806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13807 (exit $ac_status); }; }; then
13808 ac_header_compiler=yes
13809 else
13810 echo "$as_me: failed program was:" >&5
13811 sed 's/^/| /' conftest.$ac_ext >&5
13813 ac_header_compiler=no
13815 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13816 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13817 echo "${ECHO_T}$ac_header_compiler" >&6
13819 # Is the header present?
13820 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13821 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13822 cat >conftest.$ac_ext <<_ACEOF
13823 /* confdefs.h. */
13824 _ACEOF
13825 cat confdefs.h >>conftest.$ac_ext
13826 cat >>conftest.$ac_ext <<_ACEOF
13827 /* end confdefs.h. */
13828 #include <$ac_header>
13829 _ACEOF
13830 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13831 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13832 ac_status=$?
13833 grep -v '^ *+' conftest.er1 >conftest.err
13834 rm -f conftest.er1
13835 cat conftest.err >&5
13836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13837 (exit $ac_status); } >/dev/null; then
13838 if test -s conftest.err; then
13839 ac_cpp_err=$ac_c_preproc_warn_flag
13840 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13841 else
13842 ac_cpp_err=
13844 else
13845 ac_cpp_err=yes
13847 if test -z "$ac_cpp_err"; then
13848 ac_header_preproc=yes
13849 else
13850 echo "$as_me: failed program was:" >&5
13851 sed 's/^/| /' conftest.$ac_ext >&5
13853 ac_header_preproc=no
13855 rm -f conftest.err conftest.$ac_ext
13856 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13857 echo "${ECHO_T}$ac_header_preproc" >&6
13859 # So? What about this header?
13860 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13861 yes:no: )
13862 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13863 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13864 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13865 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13866 ac_header_preproc=yes
13868 no:yes:* )
13869 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13870 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13871 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13872 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13873 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13874 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13875 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13876 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13877 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13878 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13879 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13880 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13882 cat <<\_ASBOX
13883 ## ------------------------------------------ ##
13884 ## Report this to the AC_PACKAGE_NAME lists. ##
13885 ## ------------------------------------------ ##
13886 _ASBOX
13888 sed "s/^/$as_me: WARNING: /" >&2
13890 esac
13891 echo "$as_me:$LINENO: checking for $ac_header" >&5
13892 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13893 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13894 echo $ECHO_N "(cached) $ECHO_C" >&6
13895 else
13896 eval "$as_ac_Header=\$ac_header_preproc"
13898 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13899 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13902 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13903 cat >>confdefs.h <<_ACEOF
13904 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13905 _ACEOF
13909 done
13979 for ac_func in gethostname getdomainname dup2 \
13980 rename closedir mkdir rmdir sysinfo getrusage \
13981 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime res_init setsid \
13982 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \
13983 utimes setrlimit setpgid getcwd getwd shutdown getaddrinfo \
13984 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
13985 sendto recvfrom getsockopt setsockopt getsockname getpeername \
13986 gai_strerror mkstemp getline getdelim mremap memmove fsync bzero \
13987 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign
13989 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13990 echo "$as_me:$LINENO: checking for $ac_func" >&5
13991 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13992 if eval "test \"\${$as_ac_var+set}\" = set"; then
13993 echo $ECHO_N "(cached) $ECHO_C" >&6
13994 else
13995 cat >conftest.$ac_ext <<_ACEOF
13996 /* confdefs.h. */
13997 _ACEOF
13998 cat confdefs.h >>conftest.$ac_ext
13999 cat >>conftest.$ac_ext <<_ACEOF
14000 /* end confdefs.h. */
14001 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14002 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14003 #define $ac_func innocuous_$ac_func
14005 /* System header to define __stub macros and hopefully few prototypes,
14006 which can conflict with char $ac_func (); below.
14007 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14008 <limits.h> exists even on freestanding compilers. */
14010 #ifdef __STDC__
14011 # include <limits.h>
14012 #else
14013 # include <assert.h>
14014 #endif
14016 #undef $ac_func
14018 /* Override any gcc2 internal prototype to avoid an error. */
14019 #ifdef __cplusplus
14020 extern "C"
14022 #endif
14023 /* We use char because int might match the return type of a gcc2
14024 builtin and then its argument prototype would still apply. */
14025 char $ac_func ();
14026 /* The GNU C library defines this for functions which it implements
14027 to always fail with ENOSYS. Some functions are actually named
14028 something starting with __ and the normal name is an alias. */
14029 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14030 choke me
14031 #else
14032 char (*f) () = $ac_func;
14033 #endif
14034 #ifdef __cplusplus
14036 #endif
14039 main ()
14041 return f != $ac_func;
14043 return 0;
14045 _ACEOF
14046 rm -f conftest.$ac_objext conftest$ac_exeext
14047 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14048 (eval $ac_link) 2>conftest.er1
14049 ac_status=$?
14050 grep -v '^ *+' conftest.er1 >conftest.err
14051 rm -f conftest.er1
14052 cat conftest.err >&5
14053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14054 (exit $ac_status); } &&
14055 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14057 (eval $ac_try) 2>&5
14058 ac_status=$?
14059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14060 (exit $ac_status); }; } &&
14061 { ac_try='test -s conftest$ac_exeext'
14062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14063 (eval $ac_try) 2>&5
14064 ac_status=$?
14065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14066 (exit $ac_status); }; }; then
14067 eval "$as_ac_var=yes"
14068 else
14069 echo "$as_me: failed program was:" >&5
14070 sed 's/^/| /' conftest.$ac_ext >&5
14072 eval "$as_ac_var=no"
14074 rm -f conftest.err conftest.$ac_objext \
14075 conftest$ac_exeext conftest.$ac_ext
14077 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14078 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14079 if test `eval echo '${'$as_ac_var'}'` = yes; then
14080 cat >>confdefs.h <<_ACEOF
14081 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14082 _ACEOF
14085 done
14089 for ac_header in sys/un.h
14091 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14092 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14093 echo "$as_me:$LINENO: checking for $ac_header" >&5
14094 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14095 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14096 echo $ECHO_N "(cached) $ECHO_C" >&6
14098 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14099 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14100 else
14101 # Is the header compilable?
14102 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14103 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14104 cat >conftest.$ac_ext <<_ACEOF
14105 /* confdefs.h. */
14106 _ACEOF
14107 cat confdefs.h >>conftest.$ac_ext
14108 cat >>conftest.$ac_ext <<_ACEOF
14109 /* end confdefs.h. */
14110 $ac_includes_default
14111 #include <$ac_header>
14112 _ACEOF
14113 rm -f conftest.$ac_objext
14114 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14115 (eval $ac_compile) 2>conftest.er1
14116 ac_status=$?
14117 grep -v '^ *+' conftest.er1 >conftest.err
14118 rm -f conftest.er1
14119 cat conftest.err >&5
14120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14121 (exit $ac_status); } &&
14122 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14124 (eval $ac_try) 2>&5
14125 ac_status=$?
14126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14127 (exit $ac_status); }; } &&
14128 { ac_try='test -s conftest.$ac_objext'
14129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14130 (eval $ac_try) 2>&5
14131 ac_status=$?
14132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14133 (exit $ac_status); }; }; then
14134 ac_header_compiler=yes
14135 else
14136 echo "$as_me: failed program was:" >&5
14137 sed 's/^/| /' conftest.$ac_ext >&5
14139 ac_header_compiler=no
14141 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14142 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14143 echo "${ECHO_T}$ac_header_compiler" >&6
14145 # Is the header present?
14146 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14147 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14148 cat >conftest.$ac_ext <<_ACEOF
14149 /* confdefs.h. */
14150 _ACEOF
14151 cat confdefs.h >>conftest.$ac_ext
14152 cat >>conftest.$ac_ext <<_ACEOF
14153 /* end confdefs.h. */
14154 #include <$ac_header>
14155 _ACEOF
14156 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14157 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14158 ac_status=$?
14159 grep -v '^ *+' conftest.er1 >conftest.err
14160 rm -f conftest.er1
14161 cat conftest.err >&5
14162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14163 (exit $ac_status); } >/dev/null; then
14164 if test -s conftest.err; then
14165 ac_cpp_err=$ac_c_preproc_warn_flag
14166 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14167 else
14168 ac_cpp_err=
14170 else
14171 ac_cpp_err=yes
14173 if test -z "$ac_cpp_err"; then
14174 ac_header_preproc=yes
14175 else
14176 echo "$as_me: failed program was:" >&5
14177 sed 's/^/| /' conftest.$ac_ext >&5
14179 ac_header_preproc=no
14181 rm -f conftest.err conftest.$ac_ext
14182 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14183 echo "${ECHO_T}$ac_header_preproc" >&6
14185 # So? What about this header?
14186 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14187 yes:no: )
14188 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14189 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14190 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14191 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14192 ac_header_preproc=yes
14194 no:yes:* )
14195 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14196 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14197 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14198 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14199 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14200 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14201 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14202 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14203 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14204 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14205 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14206 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14208 cat <<\_ASBOX
14209 ## ------------------------------------------ ##
14210 ## Report this to the AC_PACKAGE_NAME lists. ##
14211 ## ------------------------------------------ ##
14212 _ASBOX
14214 sed "s/^/$as_me: WARNING: /" >&2
14216 esac
14217 echo "$as_me:$LINENO: checking for $ac_header" >&5
14218 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14219 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14220 echo $ECHO_N "(cached) $ECHO_C" >&6
14221 else
14222 eval "$as_ac_Header=\$ac_header_preproc"
14224 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14225 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14228 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14229 cat >>confdefs.h <<_ACEOF
14230 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14231 _ACEOF
14235 done
14241 for ac_header in stdlib.h sys/time.h unistd.h
14243 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14244 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14245 echo "$as_me:$LINENO: checking for $ac_header" >&5
14246 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14247 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14248 echo $ECHO_N "(cached) $ECHO_C" >&6
14250 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14251 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14252 else
14253 # Is the header compilable?
14254 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14255 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14256 cat >conftest.$ac_ext <<_ACEOF
14257 /* confdefs.h. */
14258 _ACEOF
14259 cat confdefs.h >>conftest.$ac_ext
14260 cat >>conftest.$ac_ext <<_ACEOF
14261 /* end confdefs.h. */
14262 $ac_includes_default
14263 #include <$ac_header>
14264 _ACEOF
14265 rm -f conftest.$ac_objext
14266 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14267 (eval $ac_compile) 2>conftest.er1
14268 ac_status=$?
14269 grep -v '^ *+' conftest.er1 >conftest.err
14270 rm -f conftest.er1
14271 cat conftest.err >&5
14272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14273 (exit $ac_status); } &&
14274 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14276 (eval $ac_try) 2>&5
14277 ac_status=$?
14278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14279 (exit $ac_status); }; } &&
14280 { ac_try='test -s conftest.$ac_objext'
14281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14282 (eval $ac_try) 2>&5
14283 ac_status=$?
14284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14285 (exit $ac_status); }; }; then
14286 ac_header_compiler=yes
14287 else
14288 echo "$as_me: failed program was:" >&5
14289 sed 's/^/| /' conftest.$ac_ext >&5
14291 ac_header_compiler=no
14293 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14294 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14295 echo "${ECHO_T}$ac_header_compiler" >&6
14297 # Is the header present?
14298 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14299 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14300 cat >conftest.$ac_ext <<_ACEOF
14301 /* confdefs.h. */
14302 _ACEOF
14303 cat confdefs.h >>conftest.$ac_ext
14304 cat >>conftest.$ac_ext <<_ACEOF
14305 /* end confdefs.h. */
14306 #include <$ac_header>
14307 _ACEOF
14308 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14309 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14310 ac_status=$?
14311 grep -v '^ *+' conftest.er1 >conftest.err
14312 rm -f conftest.er1
14313 cat conftest.err >&5
14314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14315 (exit $ac_status); } >/dev/null; then
14316 if test -s conftest.err; then
14317 ac_cpp_err=$ac_c_preproc_warn_flag
14318 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14319 else
14320 ac_cpp_err=
14322 else
14323 ac_cpp_err=yes
14325 if test -z "$ac_cpp_err"; then
14326 ac_header_preproc=yes
14327 else
14328 echo "$as_me: failed program was:" >&5
14329 sed 's/^/| /' conftest.$ac_ext >&5
14331 ac_header_preproc=no
14333 rm -f conftest.err conftest.$ac_ext
14334 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14335 echo "${ECHO_T}$ac_header_preproc" >&6
14337 # So? What about this header?
14338 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14339 yes:no: )
14340 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14341 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14342 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14343 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14344 ac_header_preproc=yes
14346 no:yes:* )
14347 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14348 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14349 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14350 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14351 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14352 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14353 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14354 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14355 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14356 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14357 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14358 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14360 cat <<\_ASBOX
14361 ## ------------------------------------------ ##
14362 ## Report this to the AC_PACKAGE_NAME lists. ##
14363 ## ------------------------------------------ ##
14364 _ASBOX
14366 sed "s/^/$as_me: WARNING: /" >&2
14368 esac
14369 echo "$as_me:$LINENO: checking for $ac_header" >&5
14370 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14371 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14372 echo $ECHO_N "(cached) $ECHO_C" >&6
14373 else
14374 eval "$as_ac_Header=\$ac_header_preproc"
14376 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14377 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14380 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14381 cat >>confdefs.h <<_ACEOF
14382 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14383 _ACEOF
14387 done
14390 for ac_func in alarm
14392 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14393 echo "$as_me:$LINENO: checking for $ac_func" >&5
14394 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14395 if eval "test \"\${$as_ac_var+set}\" = set"; then
14396 echo $ECHO_N "(cached) $ECHO_C" >&6
14397 else
14398 cat >conftest.$ac_ext <<_ACEOF
14399 /* confdefs.h. */
14400 _ACEOF
14401 cat confdefs.h >>conftest.$ac_ext
14402 cat >>conftest.$ac_ext <<_ACEOF
14403 /* end confdefs.h. */
14404 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14405 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14406 #define $ac_func innocuous_$ac_func
14408 /* System header to define __stub macros and hopefully few prototypes,
14409 which can conflict with char $ac_func (); below.
14410 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14411 <limits.h> exists even on freestanding compilers. */
14413 #ifdef __STDC__
14414 # include <limits.h>
14415 #else
14416 # include <assert.h>
14417 #endif
14419 #undef $ac_func
14421 /* Override any gcc2 internal prototype to avoid an error. */
14422 #ifdef __cplusplus
14423 extern "C"
14425 #endif
14426 /* We use char because int might match the return type of a gcc2
14427 builtin and then its argument prototype would still apply. */
14428 char $ac_func ();
14429 /* The GNU C library defines this for functions which it implements
14430 to always fail with ENOSYS. Some functions are actually named
14431 something starting with __ and the normal name is an alias. */
14432 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14433 choke me
14434 #else
14435 char (*f) () = $ac_func;
14436 #endif
14437 #ifdef __cplusplus
14439 #endif
14442 main ()
14444 return f != $ac_func;
14446 return 0;
14448 _ACEOF
14449 rm -f conftest.$ac_objext conftest$ac_exeext
14450 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14451 (eval $ac_link) 2>conftest.er1
14452 ac_status=$?
14453 grep -v '^ *+' conftest.er1 >conftest.err
14454 rm -f conftest.er1
14455 cat conftest.err >&5
14456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14457 (exit $ac_status); } &&
14458 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14460 (eval $ac_try) 2>&5
14461 ac_status=$?
14462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14463 (exit $ac_status); }; } &&
14464 { ac_try='test -s conftest$ac_exeext'
14465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14466 (eval $ac_try) 2>&5
14467 ac_status=$?
14468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14469 (exit $ac_status); }; }; then
14470 eval "$as_ac_var=yes"
14471 else
14472 echo "$as_me: failed program was:" >&5
14473 sed 's/^/| /' conftest.$ac_ext >&5
14475 eval "$as_ac_var=no"
14477 rm -f conftest.err conftest.$ac_objext \
14478 conftest$ac_exeext conftest.$ac_ext
14480 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14481 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14482 if test `eval echo '${'$as_ac_var'}'` = yes; then
14483 cat >>confdefs.h <<_ACEOF
14484 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14485 _ACEOF
14488 done
14490 echo "$as_me:$LINENO: checking for working mktime" >&5
14491 echo $ECHO_N "checking for working mktime... $ECHO_C" >&6
14492 if test "${ac_cv_func_working_mktime+set}" = set; then
14493 echo $ECHO_N "(cached) $ECHO_C" >&6
14494 else
14495 if test "$cross_compiling" = yes; then
14496 ac_cv_func_working_mktime=no
14497 else
14498 cat >conftest.$ac_ext <<_ACEOF
14499 /* confdefs.h. */
14500 _ACEOF
14501 cat confdefs.h >>conftest.$ac_ext
14502 cat >>conftest.$ac_ext <<_ACEOF
14503 /* end confdefs.h. */
14504 /* Test program from Paul Eggert and Tony Leneis. */
14505 #if TIME_WITH_SYS_TIME
14506 # include <sys/time.h>
14507 # include <time.h>
14508 #else
14509 # if HAVE_SYS_TIME_H
14510 # include <sys/time.h>
14511 # else
14512 # include <time.h>
14513 # endif
14514 #endif
14516 #if HAVE_STDLIB_H
14517 # include <stdlib.h>
14518 #endif
14520 #if HAVE_UNISTD_H
14521 # include <unistd.h>
14522 #endif
14524 #if !HAVE_ALARM
14525 # define alarm(X) /* empty */
14526 #endif
14528 /* Work around redefinition to rpl_putenv by other config tests. */
14529 #undef putenv
14531 static time_t time_t_max;
14532 static time_t time_t_min;
14534 /* Values we'll use to set the TZ environment variable. */
14535 static char *tz_strings[] = {
14536 (char *) 0, "TZ=GMT0", "TZ=JST-9",
14537 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
14539 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
14541 /* Fail if mktime fails to convert a date in the spring-forward gap.
14542 Based on a problem report from Andreas Jaeger. */
14543 static void
14544 spring_forward_gap ()
14546 /* glibc (up to about 1998-10-07) failed this test. */
14547 struct tm tm;
14549 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
14550 instead of "TZ=America/Vancouver" in order to detect the bug even
14551 on systems that don't support the Olson extension, or don't have the
14552 full zoneinfo tables installed. */
14553 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
14555 tm.tm_year = 98;
14556 tm.tm_mon = 3;
14557 tm.tm_mday = 5;
14558 tm.tm_hour = 2;
14559 tm.tm_min = 0;
14560 tm.tm_sec = 0;
14561 tm.tm_isdst = -1;
14562 if (mktime (&tm) == (time_t)-1)
14563 exit (1);
14566 static void
14567 mktime_test1 (now)
14568 time_t now;
14570 struct tm *lt;
14571 if ((lt = localtime (&now)) && mktime (lt) != now)
14572 exit (1);
14575 static void
14576 mktime_test (now)
14577 time_t now;
14579 mktime_test1 (now);
14580 mktime_test1 ((time_t) (time_t_max - now));
14581 mktime_test1 ((time_t) (time_t_min + now));
14584 static void
14585 irix_6_4_bug ()
14587 /* Based on code from Ariel Faigon. */
14588 struct tm tm;
14589 tm.tm_year = 96;
14590 tm.tm_mon = 3;
14591 tm.tm_mday = 0;
14592 tm.tm_hour = 0;
14593 tm.tm_min = 0;
14594 tm.tm_sec = 0;
14595 tm.tm_isdst = -1;
14596 mktime (&tm);
14597 if (tm.tm_mon != 2 || tm.tm_mday != 31)
14598 exit (1);
14601 static void
14602 bigtime_test (j)
14603 int j;
14605 struct tm tm;
14606 time_t now;
14607 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
14608 now = mktime (&tm);
14609 if (now != (time_t) -1)
14611 struct tm *lt = localtime (&now);
14612 if (! (lt
14613 && lt->tm_year == tm.tm_year
14614 && lt->tm_mon == tm.tm_mon
14615 && lt->tm_mday == tm.tm_mday
14616 && lt->tm_hour == tm.tm_hour
14617 && lt->tm_min == tm.tm_min
14618 && lt->tm_sec == tm.tm_sec
14619 && lt->tm_yday == tm.tm_yday
14620 && lt->tm_wday == tm.tm_wday
14621 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
14622 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
14623 exit (1);
14628 main ()
14630 time_t t, delta;
14631 int i, j;
14633 /* This test makes some buggy mktime implementations loop.
14634 Give up after 60 seconds; a mktime slower than that
14635 isn't worth using anyway. */
14636 alarm (60);
14638 for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
14639 continue;
14640 time_t_max--;
14641 if ((time_t) -1 < 0)
14642 for (time_t_min = -1; (time_t) (time_t_min * 2) < 0; time_t_min *= 2)
14643 continue;
14644 delta = time_t_max / 997; /* a suitable prime number */
14645 for (i = 0; i < N_STRINGS; i++)
14647 if (tz_strings[i])
14648 putenv (tz_strings[i]);
14650 for (t = 0; t <= time_t_max - delta; t += delta)
14651 mktime_test (t);
14652 mktime_test ((time_t) 1);
14653 mktime_test ((time_t) (60 * 60));
14654 mktime_test ((time_t) (60 * 60 * 24));
14656 for (j = 1; 0 < j; j *= 2)
14657 bigtime_test (j);
14658 bigtime_test (j - 1);
14660 irix_6_4_bug ();
14661 spring_forward_gap ();
14662 exit (0);
14664 _ACEOF
14665 rm -f conftest$ac_exeext
14666 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14667 (eval $ac_link) 2>&5
14668 ac_status=$?
14669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14670 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14672 (eval $ac_try) 2>&5
14673 ac_status=$?
14674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14675 (exit $ac_status); }; }; then
14676 ac_cv_func_working_mktime=yes
14677 else
14678 echo "$as_me: program exited with status $ac_status" >&5
14679 echo "$as_me: failed program was:" >&5
14680 sed 's/^/| /' conftest.$ac_ext >&5
14682 ( exit $ac_status )
14683 ac_cv_func_working_mktime=no
14685 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14688 echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
14689 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6
14690 if test $ac_cv_func_working_mktime = no; then
14691 case $LIBOBJS in
14692 "mktime.$ac_objext" | \
14693 *" mktime.$ac_objext" | \
14694 "mktime.$ac_objext "* | \
14695 *" mktime.$ac_objext "* ) ;;
14696 *) LIBOBJS="$LIBOBJS mktime.$ac_objext" ;;
14697 esac
14701 if test "$ac_cv_func_working_mktime" = no; then
14703 cat >>confdefs.h <<\_ACEOF
14704 #define BROKEN_MKTIME 1
14705 _ACEOF
14709 ac_have_func=no # yes means we've found a way to get the load average.
14711 # Make sure getloadavg.c is where it belongs, at configure-time.
14712 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" ||
14713 { { echo "$as_me:$LINENO: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&5
14714 echo "$as_me: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&2;}
14715 { (exit 1); exit 1; }; }
14717 ac_save_LIBS=$LIBS
14719 # Check for getloadavg, but be sure not to touch the cache variable.
14720 (echo "$as_me:$LINENO: checking for getloadavg" >&5
14721 echo $ECHO_N "checking for getloadavg... $ECHO_C" >&6
14722 if test "${ac_cv_func_getloadavg+set}" = set; then
14723 echo $ECHO_N "(cached) $ECHO_C" >&6
14724 else
14725 cat >conftest.$ac_ext <<_ACEOF
14726 /* confdefs.h. */
14727 _ACEOF
14728 cat confdefs.h >>conftest.$ac_ext
14729 cat >>conftest.$ac_ext <<_ACEOF
14730 /* end confdefs.h. */
14731 /* Define getloadavg to an innocuous variant, in case <limits.h> declares getloadavg.
14732 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14733 #define getloadavg innocuous_getloadavg
14735 /* System header to define __stub macros and hopefully few prototypes,
14736 which can conflict with char getloadavg (); below.
14737 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14738 <limits.h> exists even on freestanding compilers. */
14740 #ifdef __STDC__
14741 # include <limits.h>
14742 #else
14743 # include <assert.h>
14744 #endif
14746 #undef getloadavg
14748 /* Override any gcc2 internal prototype to avoid an error. */
14749 #ifdef __cplusplus
14750 extern "C"
14752 #endif
14753 /* We use char because int might match the return type of a gcc2
14754 builtin and then its argument prototype would still apply. */
14755 char getloadavg ();
14756 /* The GNU C library defines this for functions which it implements
14757 to always fail with ENOSYS. Some functions are actually named
14758 something starting with __ and the normal name is an alias. */
14759 #if defined (__stub_getloadavg) || defined (__stub___getloadavg)
14760 choke me
14761 #else
14762 char (*f) () = getloadavg;
14763 #endif
14764 #ifdef __cplusplus
14766 #endif
14769 main ()
14771 return f != getloadavg;
14773 return 0;
14775 _ACEOF
14776 rm -f conftest.$ac_objext conftest$ac_exeext
14777 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14778 (eval $ac_link) 2>conftest.er1
14779 ac_status=$?
14780 grep -v '^ *+' conftest.er1 >conftest.err
14781 rm -f conftest.er1
14782 cat conftest.err >&5
14783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14784 (exit $ac_status); } &&
14785 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14787 (eval $ac_try) 2>&5
14788 ac_status=$?
14789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14790 (exit $ac_status); }; } &&
14791 { ac_try='test -s conftest$ac_exeext'
14792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14793 (eval $ac_try) 2>&5
14794 ac_status=$?
14795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14796 (exit $ac_status); }; }; then
14797 ac_cv_func_getloadavg=yes
14798 else
14799 echo "$as_me: failed program was:" >&5
14800 sed 's/^/| /' conftest.$ac_ext >&5
14802 ac_cv_func_getloadavg=no
14804 rm -f conftest.err conftest.$ac_objext \
14805 conftest$ac_exeext conftest.$ac_ext
14807 echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg" >&5
14808 echo "${ECHO_T}$ac_cv_func_getloadavg" >&6
14809 if test $ac_cv_func_getloadavg = yes; then
14810 exit 0
14811 else
14812 exit 1
14814 ) && ac_have_func=yes
14816 # On HPUX9, an unprivileged user can get load averages through this function.
14818 for ac_func in pstat_getdynamic
14820 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14821 echo "$as_me:$LINENO: checking for $ac_func" >&5
14822 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14823 if eval "test \"\${$as_ac_var+set}\" = set"; then
14824 echo $ECHO_N "(cached) $ECHO_C" >&6
14825 else
14826 cat >conftest.$ac_ext <<_ACEOF
14827 /* confdefs.h. */
14828 _ACEOF
14829 cat confdefs.h >>conftest.$ac_ext
14830 cat >>conftest.$ac_ext <<_ACEOF
14831 /* end confdefs.h. */
14832 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14833 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14834 #define $ac_func innocuous_$ac_func
14836 /* System header to define __stub macros and hopefully few prototypes,
14837 which can conflict with char $ac_func (); below.
14838 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14839 <limits.h> exists even on freestanding compilers. */
14841 #ifdef __STDC__
14842 # include <limits.h>
14843 #else
14844 # include <assert.h>
14845 #endif
14847 #undef $ac_func
14849 /* Override any gcc2 internal prototype to avoid an error. */
14850 #ifdef __cplusplus
14851 extern "C"
14853 #endif
14854 /* We use char because int might match the return type of a gcc2
14855 builtin and then its argument prototype would still apply. */
14856 char $ac_func ();
14857 /* The GNU C library defines this for functions which it implements
14858 to always fail with ENOSYS. Some functions are actually named
14859 something starting with __ and the normal name is an alias. */
14860 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14861 choke me
14862 #else
14863 char (*f) () = $ac_func;
14864 #endif
14865 #ifdef __cplusplus
14867 #endif
14870 main ()
14872 return f != $ac_func;
14874 return 0;
14876 _ACEOF
14877 rm -f conftest.$ac_objext conftest$ac_exeext
14878 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14879 (eval $ac_link) 2>conftest.er1
14880 ac_status=$?
14881 grep -v '^ *+' conftest.er1 >conftest.err
14882 rm -f conftest.er1
14883 cat conftest.err >&5
14884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14885 (exit $ac_status); } &&
14886 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14888 (eval $ac_try) 2>&5
14889 ac_status=$?
14890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14891 (exit $ac_status); }; } &&
14892 { ac_try='test -s conftest$ac_exeext'
14893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14894 (eval $ac_try) 2>&5
14895 ac_status=$?
14896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14897 (exit $ac_status); }; }; then
14898 eval "$as_ac_var=yes"
14899 else
14900 echo "$as_me: failed program was:" >&5
14901 sed 's/^/| /' conftest.$ac_ext >&5
14903 eval "$as_ac_var=no"
14905 rm -f conftest.err conftest.$ac_objext \
14906 conftest$ac_exeext conftest.$ac_ext
14908 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14909 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14910 if test `eval echo '${'$as_ac_var'}'` = yes; then
14911 cat >>confdefs.h <<_ACEOF
14912 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14913 _ACEOF
14916 done
14919 # Solaris has libkstat which does not require root.
14921 echo "$as_me:$LINENO: checking for kstat_open in -lkstat" >&5
14922 echo $ECHO_N "checking for kstat_open in -lkstat... $ECHO_C" >&6
14923 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
14924 echo $ECHO_N "(cached) $ECHO_C" >&6
14925 else
14926 ac_check_lib_save_LIBS=$LIBS
14927 LIBS="-lkstat $LIBS"
14928 cat >conftest.$ac_ext <<_ACEOF
14929 /* confdefs.h. */
14930 _ACEOF
14931 cat confdefs.h >>conftest.$ac_ext
14932 cat >>conftest.$ac_ext <<_ACEOF
14933 /* end confdefs.h. */
14935 /* Override any gcc2 internal prototype to avoid an error. */
14936 #ifdef __cplusplus
14937 extern "C"
14938 #endif
14939 /* We use char because int might match the return type of a gcc2
14940 builtin and then its argument prototype would still apply. */
14941 char kstat_open ();
14943 main ()
14945 kstat_open ();
14947 return 0;
14949 _ACEOF
14950 rm -f conftest.$ac_objext conftest$ac_exeext
14951 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14952 (eval $ac_link) 2>conftest.er1
14953 ac_status=$?
14954 grep -v '^ *+' conftest.er1 >conftest.err
14955 rm -f conftest.er1
14956 cat conftest.err >&5
14957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14958 (exit $ac_status); } &&
14959 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14961 (eval $ac_try) 2>&5
14962 ac_status=$?
14963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14964 (exit $ac_status); }; } &&
14965 { ac_try='test -s conftest$ac_exeext'
14966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14967 (eval $ac_try) 2>&5
14968 ac_status=$?
14969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14970 (exit $ac_status); }; }; then
14971 ac_cv_lib_kstat_kstat_open=yes
14972 else
14973 echo "$as_me: failed program was:" >&5
14974 sed 's/^/| /' conftest.$ac_ext >&5
14976 ac_cv_lib_kstat_kstat_open=no
14978 rm -f conftest.err conftest.$ac_objext \
14979 conftest$ac_exeext conftest.$ac_ext
14980 LIBS=$ac_check_lib_save_LIBS
14982 echo "$as_me:$LINENO: result: $ac_cv_lib_kstat_kstat_open" >&5
14983 echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6
14984 if test $ac_cv_lib_kstat_kstat_open = yes; then
14985 cat >>confdefs.h <<_ACEOF
14986 #define HAVE_LIBKSTAT 1
14987 _ACEOF
14989 LIBS="-lkstat $LIBS"
14993 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes
14995 # Some systems with -lutil have (and need) -lkvm as well, some do not.
14996 # On Solaris, -lkvm requires nlist from -lelf, so check that first
14997 # to get the right answer into the cache.
14998 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
14999 if test $ac_have_func = no; then
15000 echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
15001 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
15002 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
15003 echo $ECHO_N "(cached) $ECHO_C" >&6
15004 else
15005 ac_check_lib_save_LIBS=$LIBS
15006 LIBS="-lelf $LIBS"
15007 cat >conftest.$ac_ext <<_ACEOF
15008 /* confdefs.h. */
15009 _ACEOF
15010 cat confdefs.h >>conftest.$ac_ext
15011 cat >>conftest.$ac_ext <<_ACEOF
15012 /* end confdefs.h. */
15014 /* Override any gcc2 internal prototype to avoid an error. */
15015 #ifdef __cplusplus
15016 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 elf_begin ();
15022 main ()
15024 elf_begin ();
15026 return 0;
15028 _ACEOF
15029 rm -f conftest.$ac_objext conftest$ac_exeext
15030 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15031 (eval $ac_link) 2>conftest.er1
15032 ac_status=$?
15033 grep -v '^ *+' conftest.er1 >conftest.err
15034 rm -f conftest.er1
15035 cat conftest.err >&5
15036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15037 (exit $ac_status); } &&
15038 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15040 (eval $ac_try) 2>&5
15041 ac_status=$?
15042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15043 (exit $ac_status); }; } &&
15044 { ac_try='test -s conftest$ac_exeext'
15045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15046 (eval $ac_try) 2>&5
15047 ac_status=$?
15048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15049 (exit $ac_status); }; }; then
15050 ac_cv_lib_elf_elf_begin=yes
15051 else
15052 echo "$as_me: failed program was:" >&5
15053 sed 's/^/| /' conftest.$ac_ext >&5
15055 ac_cv_lib_elf_elf_begin=no
15057 rm -f conftest.err conftest.$ac_objext \
15058 conftest$ac_exeext conftest.$ac_ext
15059 LIBS=$ac_check_lib_save_LIBS
15061 echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
15062 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
15063 if test $ac_cv_lib_elf_elf_begin = yes; then
15064 LIBS="-lelf $LIBS"
15068 if test $ac_have_func = no; then
15069 echo "$as_me:$LINENO: checking for kvm_open in -lkvm" >&5
15070 echo $ECHO_N "checking for kvm_open in -lkvm... $ECHO_C" >&6
15071 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
15072 echo $ECHO_N "(cached) $ECHO_C" >&6
15073 else
15074 ac_check_lib_save_LIBS=$LIBS
15075 LIBS="-lkvm $LIBS"
15076 cat >conftest.$ac_ext <<_ACEOF
15077 /* confdefs.h. */
15078 _ACEOF
15079 cat confdefs.h >>conftest.$ac_ext
15080 cat >>conftest.$ac_ext <<_ACEOF
15081 /* end confdefs.h. */
15083 /* Override any gcc2 internal prototype to avoid an error. */
15084 #ifdef __cplusplus
15085 extern "C"
15086 #endif
15087 /* We use char because int might match the return type of a gcc2
15088 builtin and then its argument prototype would still apply. */
15089 char kvm_open ();
15091 main ()
15093 kvm_open ();
15095 return 0;
15097 _ACEOF
15098 rm -f conftest.$ac_objext conftest$ac_exeext
15099 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15100 (eval $ac_link) 2>conftest.er1
15101 ac_status=$?
15102 grep -v '^ *+' conftest.er1 >conftest.err
15103 rm -f conftest.er1
15104 cat conftest.err >&5
15105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15106 (exit $ac_status); } &&
15107 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15109 (eval $ac_try) 2>&5
15110 ac_status=$?
15111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15112 (exit $ac_status); }; } &&
15113 { ac_try='test -s conftest$ac_exeext'
15114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15115 (eval $ac_try) 2>&5
15116 ac_status=$?
15117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15118 (exit $ac_status); }; }; then
15119 ac_cv_lib_kvm_kvm_open=yes
15120 else
15121 echo "$as_me: failed program was:" >&5
15122 sed 's/^/| /' conftest.$ac_ext >&5
15124 ac_cv_lib_kvm_kvm_open=no
15126 rm -f conftest.err conftest.$ac_objext \
15127 conftest$ac_exeext conftest.$ac_ext
15128 LIBS=$ac_check_lib_save_LIBS
15130 echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_kvm_open" >&5
15131 echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6
15132 if test $ac_cv_lib_kvm_kvm_open = yes; then
15133 LIBS="-lkvm $LIBS"
15136 # Check for the 4.4BSD definition of getloadavg.
15137 echo "$as_me:$LINENO: checking for getloadavg in -lutil" >&5
15138 echo $ECHO_N "checking for getloadavg in -lutil... $ECHO_C" >&6
15139 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
15140 echo $ECHO_N "(cached) $ECHO_C" >&6
15141 else
15142 ac_check_lib_save_LIBS=$LIBS
15143 LIBS="-lutil $LIBS"
15144 cat >conftest.$ac_ext <<_ACEOF
15145 /* confdefs.h. */
15146 _ACEOF
15147 cat confdefs.h >>conftest.$ac_ext
15148 cat >>conftest.$ac_ext <<_ACEOF
15149 /* end confdefs.h. */
15151 /* Override any gcc2 internal prototype to avoid an error. */
15152 #ifdef __cplusplus
15153 extern "C"
15154 #endif
15155 /* We use char because int might match the return type of a gcc2
15156 builtin and then its argument prototype would still apply. */
15157 char getloadavg ();
15159 main ()
15161 getloadavg ();
15163 return 0;
15165 _ACEOF
15166 rm -f conftest.$ac_objext conftest$ac_exeext
15167 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15168 (eval $ac_link) 2>conftest.er1
15169 ac_status=$?
15170 grep -v '^ *+' conftest.er1 >conftest.err
15171 rm -f conftest.er1
15172 cat conftest.err >&5
15173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15174 (exit $ac_status); } &&
15175 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15177 (eval $ac_try) 2>&5
15178 ac_status=$?
15179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15180 (exit $ac_status); }; } &&
15181 { ac_try='test -s conftest$ac_exeext'
15182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15183 (eval $ac_try) 2>&5
15184 ac_status=$?
15185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15186 (exit $ac_status); }; }; then
15187 ac_cv_lib_util_getloadavg=yes
15188 else
15189 echo "$as_me: failed program was:" >&5
15190 sed 's/^/| /' conftest.$ac_ext >&5
15192 ac_cv_lib_util_getloadavg=no
15194 rm -f conftest.err conftest.$ac_objext \
15195 conftest$ac_exeext conftest.$ac_ext
15196 LIBS=$ac_check_lib_save_LIBS
15198 echo "$as_me:$LINENO: result: $ac_cv_lib_util_getloadavg" >&5
15199 echo "${ECHO_T}$ac_cv_lib_util_getloadavg" >&6
15200 if test $ac_cv_lib_util_getloadavg = yes; then
15201 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
15206 if test $ac_have_func = no; then
15207 # There is a commonly available library for RS/6000 AIX.
15208 # Since it is not a standard part of AIX, it might be installed locally.
15209 ac_getloadavg_LIBS=$LIBS
15210 LIBS="-L/usr/local/lib $LIBS"
15211 echo "$as_me:$LINENO: checking for getloadavg in -lgetloadavg" >&5
15212 echo $ECHO_N "checking for getloadavg in -lgetloadavg... $ECHO_C" >&6
15213 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
15214 echo $ECHO_N "(cached) $ECHO_C" >&6
15215 else
15216 ac_check_lib_save_LIBS=$LIBS
15217 LIBS="-lgetloadavg $LIBS"
15218 cat >conftest.$ac_ext <<_ACEOF
15219 /* confdefs.h. */
15220 _ACEOF
15221 cat confdefs.h >>conftest.$ac_ext
15222 cat >>conftest.$ac_ext <<_ACEOF
15223 /* end confdefs.h. */
15225 /* Override any gcc2 internal prototype to avoid an error. */
15226 #ifdef __cplusplus
15227 extern "C"
15228 #endif
15229 /* We use char because int might match the return type of a gcc2
15230 builtin and then its argument prototype would still apply. */
15231 char getloadavg ();
15233 main ()
15235 getloadavg ();
15237 return 0;
15239 _ACEOF
15240 rm -f conftest.$ac_objext conftest$ac_exeext
15241 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15242 (eval $ac_link) 2>conftest.er1
15243 ac_status=$?
15244 grep -v '^ *+' conftest.er1 >conftest.err
15245 rm -f conftest.er1
15246 cat conftest.err >&5
15247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15248 (exit $ac_status); } &&
15249 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15251 (eval $ac_try) 2>&5
15252 ac_status=$?
15253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15254 (exit $ac_status); }; } &&
15255 { ac_try='test -s conftest$ac_exeext'
15256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15257 (eval $ac_try) 2>&5
15258 ac_status=$?
15259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15260 (exit $ac_status); }; }; then
15261 ac_cv_lib_getloadavg_getloadavg=yes
15262 else
15263 echo "$as_me: failed program was:" >&5
15264 sed 's/^/| /' conftest.$ac_ext >&5
15266 ac_cv_lib_getloadavg_getloadavg=no
15268 rm -f conftest.err conftest.$ac_objext \
15269 conftest$ac_exeext conftest.$ac_ext
15270 LIBS=$ac_check_lib_save_LIBS
15272 echo "$as_me:$LINENO: result: $ac_cv_lib_getloadavg_getloadavg" >&5
15273 echo "${ECHO_T}$ac_cv_lib_getloadavg_getloadavg" >&6
15274 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
15275 LIBS="-lgetloadavg $LIBS"
15276 else
15277 LIBS=$ac_getloadavg_LIBS
15282 # Make sure it is really in the library, if we think we found it,
15283 # otherwise set up the replacement function.
15285 for ac_func in getloadavg
15287 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15288 echo "$as_me:$LINENO: checking for $ac_func" >&5
15289 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15290 if eval "test \"\${$as_ac_var+set}\" = set"; then
15291 echo $ECHO_N "(cached) $ECHO_C" >&6
15292 else
15293 cat >conftest.$ac_ext <<_ACEOF
15294 /* confdefs.h. */
15295 _ACEOF
15296 cat confdefs.h >>conftest.$ac_ext
15297 cat >>conftest.$ac_ext <<_ACEOF
15298 /* end confdefs.h. */
15299 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15300 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15301 #define $ac_func innocuous_$ac_func
15303 /* System header to define __stub macros and hopefully few prototypes,
15304 which can conflict with char $ac_func (); below.
15305 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15306 <limits.h> exists even on freestanding compilers. */
15308 #ifdef __STDC__
15309 # include <limits.h>
15310 #else
15311 # include <assert.h>
15312 #endif
15314 #undef $ac_func
15316 /* Override any gcc2 internal prototype to avoid an error. */
15317 #ifdef __cplusplus
15318 extern "C"
15320 #endif
15321 /* We use char because int might match the return type of a gcc2
15322 builtin and then its argument prototype would still apply. */
15323 char $ac_func ();
15324 /* The GNU C library defines this for functions which it implements
15325 to always fail with ENOSYS. Some functions are actually named
15326 something starting with __ and the normal name is an alias. */
15327 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15328 choke me
15329 #else
15330 char (*f) () = $ac_func;
15331 #endif
15332 #ifdef __cplusplus
15334 #endif
15337 main ()
15339 return f != $ac_func;
15341 return 0;
15343 _ACEOF
15344 rm -f conftest.$ac_objext conftest$ac_exeext
15345 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15346 (eval $ac_link) 2>conftest.er1
15347 ac_status=$?
15348 grep -v '^ *+' conftest.er1 >conftest.err
15349 rm -f conftest.er1
15350 cat conftest.err >&5
15351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15352 (exit $ac_status); } &&
15353 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15355 (eval $ac_try) 2>&5
15356 ac_status=$?
15357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15358 (exit $ac_status); }; } &&
15359 { ac_try='test -s conftest$ac_exeext'
15360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15361 (eval $ac_try) 2>&5
15362 ac_status=$?
15363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15364 (exit $ac_status); }; }; then
15365 eval "$as_ac_var=yes"
15366 else
15367 echo "$as_me: failed program was:" >&5
15368 sed 's/^/| /' conftest.$ac_ext >&5
15370 eval "$as_ac_var=no"
15372 rm -f conftest.err conftest.$ac_objext \
15373 conftest$ac_exeext conftest.$ac_ext
15375 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15376 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15377 if test `eval echo '${'$as_ac_var'}'` = yes; then
15378 cat >>confdefs.h <<_ACEOF
15379 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15380 _ACEOF
15382 else
15383 case $LIBOBJS in
15384 "getloadavg.$ac_objext" | \
15385 *" getloadavg.$ac_objext" | \
15386 "getloadavg.$ac_objext "* | \
15387 *" getloadavg.$ac_objext "* ) ;;
15388 *) LIBOBJS="$LIBOBJS getloadavg.$ac_objext" ;;
15389 esac
15392 cat >>confdefs.h <<\_ACEOF
15393 #define C_GETLOADAVG 1
15394 _ACEOF
15396 # Figure out what our getloadavg.c needs.
15397 ac_have_func=no
15398 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
15399 echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
15400 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
15401 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
15402 echo $ECHO_N "(cached) $ECHO_C" >&6
15404 echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
15405 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
15406 else
15407 # Is the header compilable?
15408 echo "$as_me:$LINENO: checking sys/dg_sys_info.h usability" >&5
15409 echo $ECHO_N "checking sys/dg_sys_info.h usability... $ECHO_C" >&6
15410 cat >conftest.$ac_ext <<_ACEOF
15411 /* confdefs.h. */
15412 _ACEOF
15413 cat confdefs.h >>conftest.$ac_ext
15414 cat >>conftest.$ac_ext <<_ACEOF
15415 /* end confdefs.h. */
15416 $ac_includes_default
15417 #include <sys/dg_sys_info.h>
15418 _ACEOF
15419 rm -f conftest.$ac_objext
15420 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15421 (eval $ac_compile) 2>conftest.er1
15422 ac_status=$?
15423 grep -v '^ *+' conftest.er1 >conftest.err
15424 rm -f conftest.er1
15425 cat conftest.err >&5
15426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15427 (exit $ac_status); } &&
15428 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15430 (eval $ac_try) 2>&5
15431 ac_status=$?
15432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15433 (exit $ac_status); }; } &&
15434 { ac_try='test -s conftest.$ac_objext'
15435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15436 (eval $ac_try) 2>&5
15437 ac_status=$?
15438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15439 (exit $ac_status); }; }; then
15440 ac_header_compiler=yes
15441 else
15442 echo "$as_me: failed program was:" >&5
15443 sed 's/^/| /' conftest.$ac_ext >&5
15445 ac_header_compiler=no
15447 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15448 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15449 echo "${ECHO_T}$ac_header_compiler" >&6
15451 # Is the header present?
15452 echo "$as_me:$LINENO: checking sys/dg_sys_info.h presence" >&5
15453 echo $ECHO_N "checking sys/dg_sys_info.h presence... $ECHO_C" >&6
15454 cat >conftest.$ac_ext <<_ACEOF
15455 /* confdefs.h. */
15456 _ACEOF
15457 cat confdefs.h >>conftest.$ac_ext
15458 cat >>conftest.$ac_ext <<_ACEOF
15459 /* end confdefs.h. */
15460 #include <sys/dg_sys_info.h>
15461 _ACEOF
15462 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15463 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15464 ac_status=$?
15465 grep -v '^ *+' conftest.er1 >conftest.err
15466 rm -f conftest.er1
15467 cat conftest.err >&5
15468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15469 (exit $ac_status); } >/dev/null; then
15470 if test -s conftest.err; then
15471 ac_cpp_err=$ac_c_preproc_warn_flag
15472 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15473 else
15474 ac_cpp_err=
15476 else
15477 ac_cpp_err=yes
15479 if test -z "$ac_cpp_err"; then
15480 ac_header_preproc=yes
15481 else
15482 echo "$as_me: failed program was:" >&5
15483 sed 's/^/| /' conftest.$ac_ext >&5
15485 ac_header_preproc=no
15487 rm -f conftest.err conftest.$ac_ext
15488 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15489 echo "${ECHO_T}$ac_header_preproc" >&6
15491 # So? What about this header?
15492 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15493 yes:no: )
15494 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&5
15495 echo "$as_me: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15496 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&5
15497 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&2;}
15498 ac_header_preproc=yes
15500 no:yes:* )
15501 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&5
15502 echo "$as_me: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&2;}
15503 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&5
15504 echo "$as_me: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&2;}
15505 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&5
15506 echo "$as_me: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&2;}
15507 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&5
15508 echo "$as_me: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&2;}
15509 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
15510 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;}
15511 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&5
15512 echo "$as_me: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&2;}
15514 cat <<\_ASBOX
15515 ## ------------------------------------------ ##
15516 ## Report this to the AC_PACKAGE_NAME lists. ##
15517 ## ------------------------------------------ ##
15518 _ASBOX
15520 sed "s/^/$as_me: WARNING: /" >&2
15522 esac
15523 echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
15524 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
15525 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
15526 echo $ECHO_N "(cached) $ECHO_C" >&6
15527 else
15528 ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc
15530 echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
15531 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
15534 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
15535 ac_have_func=yes
15537 cat >>confdefs.h <<\_ACEOF
15538 #define DGUX 1
15539 _ACEOF
15542 echo "$as_me:$LINENO: checking for dg_sys_info in -ldgc" >&5
15543 echo $ECHO_N "checking for dg_sys_info in -ldgc... $ECHO_C" >&6
15544 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
15545 echo $ECHO_N "(cached) $ECHO_C" >&6
15546 else
15547 ac_check_lib_save_LIBS=$LIBS
15548 LIBS="-ldgc $LIBS"
15549 cat >conftest.$ac_ext <<_ACEOF
15550 /* confdefs.h. */
15551 _ACEOF
15552 cat confdefs.h >>conftest.$ac_ext
15553 cat >>conftest.$ac_ext <<_ACEOF
15554 /* end confdefs.h. */
15556 /* Override any gcc2 internal prototype to avoid an error. */
15557 #ifdef __cplusplus
15558 extern "C"
15559 #endif
15560 /* We use char because int might match the return type of a gcc2
15561 builtin and then its argument prototype would still apply. */
15562 char dg_sys_info ();
15564 main ()
15566 dg_sys_info ();
15568 return 0;
15570 _ACEOF
15571 rm -f conftest.$ac_objext conftest$ac_exeext
15572 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15573 (eval $ac_link) 2>conftest.er1
15574 ac_status=$?
15575 grep -v '^ *+' conftest.er1 >conftest.err
15576 rm -f conftest.er1
15577 cat conftest.err >&5
15578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15579 (exit $ac_status); } &&
15580 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15582 (eval $ac_try) 2>&5
15583 ac_status=$?
15584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15585 (exit $ac_status); }; } &&
15586 { ac_try='test -s conftest$ac_exeext'
15587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15588 (eval $ac_try) 2>&5
15589 ac_status=$?
15590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15591 (exit $ac_status); }; }; then
15592 ac_cv_lib_dgc_dg_sys_info=yes
15593 else
15594 echo "$as_me: failed program was:" >&5
15595 sed 's/^/| /' conftest.$ac_ext >&5
15597 ac_cv_lib_dgc_dg_sys_info=no
15599 rm -f conftest.err conftest.$ac_objext \
15600 conftest$ac_exeext conftest.$ac_ext
15601 LIBS=$ac_check_lib_save_LIBS
15603 echo "$as_me:$LINENO: result: $ac_cv_lib_dgc_dg_sys_info" >&5
15604 echo "${ECHO_T}$ac_cv_lib_dgc_dg_sys_info" >&6
15605 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
15606 cat >>confdefs.h <<_ACEOF
15607 #define HAVE_LIBDGC 1
15608 _ACEOF
15610 LIBS="-ldgc $LIBS"
15618 if test "${ac_cv_header_locale_h+set}" = set; then
15619 echo "$as_me:$LINENO: checking for locale.h" >&5
15620 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
15621 if test "${ac_cv_header_locale_h+set}" = set; then
15622 echo $ECHO_N "(cached) $ECHO_C" >&6
15624 echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
15625 echo "${ECHO_T}$ac_cv_header_locale_h" >&6
15626 else
15627 # Is the header compilable?
15628 echo "$as_me:$LINENO: checking locale.h usability" >&5
15629 echo $ECHO_N "checking locale.h usability... $ECHO_C" >&6
15630 cat >conftest.$ac_ext <<_ACEOF
15631 /* confdefs.h. */
15632 _ACEOF
15633 cat confdefs.h >>conftest.$ac_ext
15634 cat >>conftest.$ac_ext <<_ACEOF
15635 /* end confdefs.h. */
15636 $ac_includes_default
15637 #include <locale.h>
15638 _ACEOF
15639 rm -f conftest.$ac_objext
15640 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15641 (eval $ac_compile) 2>conftest.er1
15642 ac_status=$?
15643 grep -v '^ *+' conftest.er1 >conftest.err
15644 rm -f conftest.er1
15645 cat conftest.err >&5
15646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15647 (exit $ac_status); } &&
15648 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15650 (eval $ac_try) 2>&5
15651 ac_status=$?
15652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15653 (exit $ac_status); }; } &&
15654 { ac_try='test -s conftest.$ac_objext'
15655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15656 (eval $ac_try) 2>&5
15657 ac_status=$?
15658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15659 (exit $ac_status); }; }; then
15660 ac_header_compiler=yes
15661 else
15662 echo "$as_me: failed program was:" >&5
15663 sed 's/^/| /' conftest.$ac_ext >&5
15665 ac_header_compiler=no
15667 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15668 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15669 echo "${ECHO_T}$ac_header_compiler" >&6
15671 # Is the header present?
15672 echo "$as_me:$LINENO: checking locale.h presence" >&5
15673 echo $ECHO_N "checking locale.h presence... $ECHO_C" >&6
15674 cat >conftest.$ac_ext <<_ACEOF
15675 /* confdefs.h. */
15676 _ACEOF
15677 cat confdefs.h >>conftest.$ac_ext
15678 cat >>conftest.$ac_ext <<_ACEOF
15679 /* end confdefs.h. */
15680 #include <locale.h>
15681 _ACEOF
15682 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15683 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15684 ac_status=$?
15685 grep -v '^ *+' conftest.er1 >conftest.err
15686 rm -f conftest.er1
15687 cat conftest.err >&5
15688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15689 (exit $ac_status); } >/dev/null; then
15690 if test -s conftest.err; then
15691 ac_cpp_err=$ac_c_preproc_warn_flag
15692 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15693 else
15694 ac_cpp_err=
15696 else
15697 ac_cpp_err=yes
15699 if test -z "$ac_cpp_err"; then
15700 ac_header_preproc=yes
15701 else
15702 echo "$as_me: failed program was:" >&5
15703 sed 's/^/| /' conftest.$ac_ext >&5
15705 ac_header_preproc=no
15707 rm -f conftest.err conftest.$ac_ext
15708 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15709 echo "${ECHO_T}$ac_header_preproc" >&6
15711 # So? What about this header?
15712 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15713 yes:no: )
15714 { echo "$as_me:$LINENO: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&5
15715 echo "$as_me: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15716 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the compiler's result" >&5
15717 echo "$as_me: WARNING: locale.h: proceeding with the compiler's result" >&2;}
15718 ac_header_preproc=yes
15720 no:yes:* )
15721 { echo "$as_me:$LINENO: WARNING: locale.h: present but cannot be compiled" >&5
15722 echo "$as_me: WARNING: locale.h: present but cannot be compiled" >&2;}
15723 { echo "$as_me:$LINENO: WARNING: locale.h: check for missing prerequisite headers?" >&5
15724 echo "$as_me: WARNING: locale.h: check for missing prerequisite headers?" >&2;}
15725 { echo "$as_me:$LINENO: WARNING: locale.h: see the Autoconf documentation" >&5
15726 echo "$as_me: WARNING: locale.h: see the Autoconf documentation" >&2;}
15727 { echo "$as_me:$LINENO: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&5
15728 echo "$as_me: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&2;}
15729 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
15730 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;}
15731 { echo "$as_me:$LINENO: WARNING: locale.h: in the future, the compiler will take precedence" >&5
15732 echo "$as_me: WARNING: locale.h: in the future, the compiler will take precedence" >&2;}
15734 cat <<\_ASBOX
15735 ## ------------------------------------------ ##
15736 ## Report this to the AC_PACKAGE_NAME lists. ##
15737 ## ------------------------------------------ ##
15738 _ASBOX
15740 sed "s/^/$as_me: WARNING: /" >&2
15742 esac
15743 echo "$as_me:$LINENO: checking for locale.h" >&5
15744 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
15745 if test "${ac_cv_header_locale_h+set}" = set; then
15746 echo $ECHO_N "(cached) $ECHO_C" >&6
15747 else
15748 ac_cv_header_locale_h=$ac_header_preproc
15750 echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
15751 echo "${ECHO_T}$ac_cv_header_locale_h" >&6
15757 for ac_func in setlocale
15759 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15760 echo "$as_me:$LINENO: checking for $ac_func" >&5
15761 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15762 if eval "test \"\${$as_ac_var+set}\" = set"; then
15763 echo $ECHO_N "(cached) $ECHO_C" >&6
15764 else
15765 cat >conftest.$ac_ext <<_ACEOF
15766 /* confdefs.h. */
15767 _ACEOF
15768 cat confdefs.h >>conftest.$ac_ext
15769 cat >>conftest.$ac_ext <<_ACEOF
15770 /* end confdefs.h. */
15771 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15772 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15773 #define $ac_func innocuous_$ac_func
15775 /* System header to define __stub macros and hopefully few prototypes,
15776 which can conflict with char $ac_func (); below.
15777 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15778 <limits.h> exists even on freestanding compilers. */
15780 #ifdef __STDC__
15781 # include <limits.h>
15782 #else
15783 # include <assert.h>
15784 #endif
15786 #undef $ac_func
15788 /* Override any gcc2 internal prototype to avoid an error. */
15789 #ifdef __cplusplus
15790 extern "C"
15792 #endif
15793 /* We use char because int might match the return type of a gcc2
15794 builtin and then its argument prototype would still apply. */
15795 char $ac_func ();
15796 /* The GNU C library defines this for functions which it implements
15797 to always fail with ENOSYS. Some functions are actually named
15798 something starting with __ and the normal name is an alias. */
15799 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15800 choke me
15801 #else
15802 char (*f) () = $ac_func;
15803 #endif
15804 #ifdef __cplusplus
15806 #endif
15809 main ()
15811 return f != $ac_func;
15813 return 0;
15815 _ACEOF
15816 rm -f conftest.$ac_objext conftest$ac_exeext
15817 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15818 (eval $ac_link) 2>conftest.er1
15819 ac_status=$?
15820 grep -v '^ *+' conftest.er1 >conftest.err
15821 rm -f conftest.er1
15822 cat conftest.err >&5
15823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15824 (exit $ac_status); } &&
15825 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15827 (eval $ac_try) 2>&5
15828 ac_status=$?
15829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15830 (exit $ac_status); }; } &&
15831 { ac_try='test -s conftest$ac_exeext'
15832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15833 (eval $ac_try) 2>&5
15834 ac_status=$?
15835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15836 (exit $ac_status); }; }; then
15837 eval "$as_ac_var=yes"
15838 else
15839 echo "$as_me: failed program was:" >&5
15840 sed 's/^/| /' conftest.$ac_ext >&5
15842 eval "$as_ac_var=no"
15844 rm -f conftest.err conftest.$ac_objext \
15845 conftest$ac_exeext conftest.$ac_ext
15847 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15848 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15849 if test `eval echo '${'$as_ac_var'}'` = yes; then
15850 cat >>confdefs.h <<_ACEOF
15851 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15852 _ACEOF
15855 done
15858 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
15859 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
15860 # Irix 4.0.5F has the header but not the library.
15861 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
15862 ac_have_func=yes
15864 cat >>confdefs.h <<\_ACEOF
15865 #define SVR4 1
15866 _ACEOF
15870 if test $ac_have_func = no; then
15871 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
15872 echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
15873 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6
15874 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
15875 echo $ECHO_N "(cached) $ECHO_C" >&6
15877 echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
15878 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6
15879 else
15880 # Is the header compilable?
15881 echo "$as_me:$LINENO: checking inq_stats/cpustats.h usability" >&5
15882 echo $ECHO_N "checking inq_stats/cpustats.h usability... $ECHO_C" >&6
15883 cat >conftest.$ac_ext <<_ACEOF
15884 /* confdefs.h. */
15885 _ACEOF
15886 cat confdefs.h >>conftest.$ac_ext
15887 cat >>conftest.$ac_ext <<_ACEOF
15888 /* end confdefs.h. */
15889 $ac_includes_default
15890 #include <inq_stats/cpustats.h>
15891 _ACEOF
15892 rm -f conftest.$ac_objext
15893 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15894 (eval $ac_compile) 2>conftest.er1
15895 ac_status=$?
15896 grep -v '^ *+' conftest.er1 >conftest.err
15897 rm -f conftest.er1
15898 cat conftest.err >&5
15899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15900 (exit $ac_status); } &&
15901 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15903 (eval $ac_try) 2>&5
15904 ac_status=$?
15905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15906 (exit $ac_status); }; } &&
15907 { ac_try='test -s conftest.$ac_objext'
15908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15909 (eval $ac_try) 2>&5
15910 ac_status=$?
15911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15912 (exit $ac_status); }; }; then
15913 ac_header_compiler=yes
15914 else
15915 echo "$as_me: failed program was:" >&5
15916 sed 's/^/| /' conftest.$ac_ext >&5
15918 ac_header_compiler=no
15920 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15921 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15922 echo "${ECHO_T}$ac_header_compiler" >&6
15924 # Is the header present?
15925 echo "$as_me:$LINENO: checking inq_stats/cpustats.h presence" >&5
15926 echo $ECHO_N "checking inq_stats/cpustats.h presence... $ECHO_C" >&6
15927 cat >conftest.$ac_ext <<_ACEOF
15928 /* confdefs.h. */
15929 _ACEOF
15930 cat confdefs.h >>conftest.$ac_ext
15931 cat >>conftest.$ac_ext <<_ACEOF
15932 /* end confdefs.h. */
15933 #include <inq_stats/cpustats.h>
15934 _ACEOF
15935 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15936 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15937 ac_status=$?
15938 grep -v '^ *+' conftest.er1 >conftest.err
15939 rm -f conftest.er1
15940 cat conftest.err >&5
15941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15942 (exit $ac_status); } >/dev/null; then
15943 if test -s conftest.err; then
15944 ac_cpp_err=$ac_c_preproc_warn_flag
15945 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15946 else
15947 ac_cpp_err=
15949 else
15950 ac_cpp_err=yes
15952 if test -z "$ac_cpp_err"; then
15953 ac_header_preproc=yes
15954 else
15955 echo "$as_me: failed program was:" >&5
15956 sed 's/^/| /' conftest.$ac_ext >&5
15958 ac_header_preproc=no
15960 rm -f conftest.err conftest.$ac_ext
15961 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15962 echo "${ECHO_T}$ac_header_preproc" >&6
15964 # So? What about this header?
15965 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15966 yes:no: )
15967 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
15968 echo "$as_me: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15969 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&5
15970 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&2;}
15971 ac_header_preproc=yes
15973 no:yes:* )
15974 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&5
15975 echo "$as_me: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&2;}
15976 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&5
15977 echo "$as_me: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&2;}
15978 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&5
15979 echo "$as_me: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&2;}
15980 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
15981 echo "$as_me: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
15982 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
15983 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;}
15984 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&5
15985 echo "$as_me: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&2;}
15987 cat <<\_ASBOX
15988 ## ------------------------------------------ ##
15989 ## Report this to the AC_PACKAGE_NAME lists. ##
15990 ## ------------------------------------------ ##
15991 _ASBOX
15993 sed "s/^/$as_me: WARNING: /" >&2
15995 esac
15996 echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
15997 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6
15998 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
15999 echo $ECHO_N "(cached) $ECHO_C" >&6
16000 else
16001 ac_cv_header_inq_stats_cpustats_h=$ac_header_preproc
16003 echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
16004 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6
16007 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
16008 ac_have_func=yes
16010 cat >>confdefs.h <<\_ACEOF
16011 #define UMAX 1
16012 _ACEOF
16015 cat >>confdefs.h <<\_ACEOF
16016 #define UMAX4_3 1
16017 _ACEOF
16024 if test $ac_have_func = no; then
16025 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
16026 echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
16027 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6
16028 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
16029 echo $ECHO_N "(cached) $ECHO_C" >&6
16031 echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
16032 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6
16033 else
16034 # Is the header compilable?
16035 echo "$as_me:$LINENO: checking sys/cpustats.h usability" >&5
16036 echo $ECHO_N "checking sys/cpustats.h usability... $ECHO_C" >&6
16037 cat >conftest.$ac_ext <<_ACEOF
16038 /* confdefs.h. */
16039 _ACEOF
16040 cat confdefs.h >>conftest.$ac_ext
16041 cat >>conftest.$ac_ext <<_ACEOF
16042 /* end confdefs.h. */
16043 $ac_includes_default
16044 #include <sys/cpustats.h>
16045 _ACEOF
16046 rm -f conftest.$ac_objext
16047 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16048 (eval $ac_compile) 2>conftest.er1
16049 ac_status=$?
16050 grep -v '^ *+' conftest.er1 >conftest.err
16051 rm -f conftest.er1
16052 cat conftest.err >&5
16053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16054 (exit $ac_status); } &&
16055 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16057 (eval $ac_try) 2>&5
16058 ac_status=$?
16059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16060 (exit $ac_status); }; } &&
16061 { ac_try='test -s conftest.$ac_objext'
16062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16063 (eval $ac_try) 2>&5
16064 ac_status=$?
16065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16066 (exit $ac_status); }; }; then
16067 ac_header_compiler=yes
16068 else
16069 echo "$as_me: failed program was:" >&5
16070 sed 's/^/| /' conftest.$ac_ext >&5
16072 ac_header_compiler=no
16074 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16075 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16076 echo "${ECHO_T}$ac_header_compiler" >&6
16078 # Is the header present?
16079 echo "$as_me:$LINENO: checking sys/cpustats.h presence" >&5
16080 echo $ECHO_N "checking sys/cpustats.h presence... $ECHO_C" >&6
16081 cat >conftest.$ac_ext <<_ACEOF
16082 /* confdefs.h. */
16083 _ACEOF
16084 cat confdefs.h >>conftest.$ac_ext
16085 cat >>conftest.$ac_ext <<_ACEOF
16086 /* end confdefs.h. */
16087 #include <sys/cpustats.h>
16088 _ACEOF
16089 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16090 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16091 ac_status=$?
16092 grep -v '^ *+' conftest.er1 >conftest.err
16093 rm -f conftest.er1
16094 cat conftest.err >&5
16095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16096 (exit $ac_status); } >/dev/null; then
16097 if test -s conftest.err; then
16098 ac_cpp_err=$ac_c_preproc_warn_flag
16099 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16100 else
16101 ac_cpp_err=
16103 else
16104 ac_cpp_err=yes
16106 if test -z "$ac_cpp_err"; then
16107 ac_header_preproc=yes
16108 else
16109 echo "$as_me: failed program was:" >&5
16110 sed 's/^/| /' conftest.$ac_ext >&5
16112 ac_header_preproc=no
16114 rm -f conftest.err conftest.$ac_ext
16115 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16116 echo "${ECHO_T}$ac_header_preproc" >&6
16118 # So? What about this header?
16119 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16120 yes:no: )
16121 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
16122 echo "$as_me: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16123 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&5
16124 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&2;}
16125 ac_header_preproc=yes
16127 no:yes:* )
16128 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: present but cannot be compiled" >&5
16129 echo "$as_me: WARNING: sys/cpustats.h: present but cannot be compiled" >&2;}
16130 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&5
16131 echo "$as_me: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&2;}
16132 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: see the Autoconf documentation" >&5
16133 echo "$as_me: WARNING: sys/cpustats.h: see the Autoconf documentation" >&2;}
16134 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
16135 echo "$as_me: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
16136 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
16137 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;}
16138 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&5
16139 echo "$as_me: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&2;}
16141 cat <<\_ASBOX
16142 ## ------------------------------------------ ##
16143 ## Report this to the AC_PACKAGE_NAME lists. ##
16144 ## ------------------------------------------ ##
16145 _ASBOX
16147 sed "s/^/$as_me: WARNING: /" >&2
16149 esac
16150 echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
16151 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6
16152 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
16153 echo $ECHO_N "(cached) $ECHO_C" >&6
16154 else
16155 ac_cv_header_sys_cpustats_h=$ac_header_preproc
16157 echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
16158 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6
16161 if test $ac_cv_header_sys_cpustats_h = yes; then
16162 ac_have_func=yes; cat >>confdefs.h <<\_ACEOF
16163 #define UMAX 1
16164 _ACEOF
16171 if test $ac_have_func = no; then
16173 for ac_header in mach/mach.h
16175 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16176 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16177 echo "$as_me:$LINENO: checking for $ac_header" >&5
16178 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16179 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16180 echo $ECHO_N "(cached) $ECHO_C" >&6
16182 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16183 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16184 else
16185 # Is the header compilable?
16186 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16187 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16188 cat >conftest.$ac_ext <<_ACEOF
16189 /* confdefs.h. */
16190 _ACEOF
16191 cat confdefs.h >>conftest.$ac_ext
16192 cat >>conftest.$ac_ext <<_ACEOF
16193 /* end confdefs.h. */
16194 $ac_includes_default
16195 #include <$ac_header>
16196 _ACEOF
16197 rm -f conftest.$ac_objext
16198 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16199 (eval $ac_compile) 2>conftest.er1
16200 ac_status=$?
16201 grep -v '^ *+' conftest.er1 >conftest.err
16202 rm -f conftest.er1
16203 cat conftest.err >&5
16204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16205 (exit $ac_status); } &&
16206 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16208 (eval $ac_try) 2>&5
16209 ac_status=$?
16210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16211 (exit $ac_status); }; } &&
16212 { ac_try='test -s conftest.$ac_objext'
16213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16214 (eval $ac_try) 2>&5
16215 ac_status=$?
16216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16217 (exit $ac_status); }; }; then
16218 ac_header_compiler=yes
16219 else
16220 echo "$as_me: failed program was:" >&5
16221 sed 's/^/| /' conftest.$ac_ext >&5
16223 ac_header_compiler=no
16225 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16226 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16227 echo "${ECHO_T}$ac_header_compiler" >&6
16229 # Is the header present?
16230 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16231 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16232 cat >conftest.$ac_ext <<_ACEOF
16233 /* confdefs.h. */
16234 _ACEOF
16235 cat confdefs.h >>conftest.$ac_ext
16236 cat >>conftest.$ac_ext <<_ACEOF
16237 /* end confdefs.h. */
16238 #include <$ac_header>
16239 _ACEOF
16240 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16241 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16242 ac_status=$?
16243 grep -v '^ *+' conftest.er1 >conftest.err
16244 rm -f conftest.er1
16245 cat conftest.err >&5
16246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16247 (exit $ac_status); } >/dev/null; then
16248 if test -s conftest.err; then
16249 ac_cpp_err=$ac_c_preproc_warn_flag
16250 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16251 else
16252 ac_cpp_err=
16254 else
16255 ac_cpp_err=yes
16257 if test -z "$ac_cpp_err"; then
16258 ac_header_preproc=yes
16259 else
16260 echo "$as_me: failed program was:" >&5
16261 sed 's/^/| /' conftest.$ac_ext >&5
16263 ac_header_preproc=no
16265 rm -f conftest.err conftest.$ac_ext
16266 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16267 echo "${ECHO_T}$ac_header_preproc" >&6
16269 # So? What about this header?
16270 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16271 yes:no: )
16272 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16273 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16274 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16275 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16276 ac_header_preproc=yes
16278 no:yes:* )
16279 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16280 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16281 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16282 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16283 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16284 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16285 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16286 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16287 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16288 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16289 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16290 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16292 cat <<\_ASBOX
16293 ## ------------------------------------------ ##
16294 ## Report this to the AC_PACKAGE_NAME lists. ##
16295 ## ------------------------------------------ ##
16296 _ASBOX
16298 sed "s/^/$as_me: WARNING: /" >&2
16300 esac
16301 echo "$as_me:$LINENO: checking for $ac_header" >&5
16302 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16303 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16304 echo $ECHO_N "(cached) $ECHO_C" >&6
16305 else
16306 eval "$as_ac_Header=\$ac_header_preproc"
16308 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16309 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16312 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16313 cat >>confdefs.h <<_ACEOF
16314 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16315 _ACEOF
16319 done
16324 for ac_header in nlist.h
16326 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16327 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16328 echo "$as_me:$LINENO: checking for $ac_header" >&5
16329 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16330 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16331 echo $ECHO_N "(cached) $ECHO_C" >&6
16333 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16334 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16335 else
16336 # Is the header compilable?
16337 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16338 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16339 cat >conftest.$ac_ext <<_ACEOF
16340 /* confdefs.h. */
16341 _ACEOF
16342 cat confdefs.h >>conftest.$ac_ext
16343 cat >>conftest.$ac_ext <<_ACEOF
16344 /* end confdefs.h. */
16345 $ac_includes_default
16346 #include <$ac_header>
16347 _ACEOF
16348 rm -f conftest.$ac_objext
16349 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16350 (eval $ac_compile) 2>conftest.er1
16351 ac_status=$?
16352 grep -v '^ *+' conftest.er1 >conftest.err
16353 rm -f conftest.er1
16354 cat conftest.err >&5
16355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16356 (exit $ac_status); } &&
16357 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16359 (eval $ac_try) 2>&5
16360 ac_status=$?
16361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16362 (exit $ac_status); }; } &&
16363 { ac_try='test -s conftest.$ac_objext'
16364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16365 (eval $ac_try) 2>&5
16366 ac_status=$?
16367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16368 (exit $ac_status); }; }; then
16369 ac_header_compiler=yes
16370 else
16371 echo "$as_me: failed program was:" >&5
16372 sed 's/^/| /' conftest.$ac_ext >&5
16374 ac_header_compiler=no
16376 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16377 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16378 echo "${ECHO_T}$ac_header_compiler" >&6
16380 # Is the header present?
16381 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16382 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16383 cat >conftest.$ac_ext <<_ACEOF
16384 /* confdefs.h. */
16385 _ACEOF
16386 cat confdefs.h >>conftest.$ac_ext
16387 cat >>conftest.$ac_ext <<_ACEOF
16388 /* end confdefs.h. */
16389 #include <$ac_header>
16390 _ACEOF
16391 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16392 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16393 ac_status=$?
16394 grep -v '^ *+' conftest.er1 >conftest.err
16395 rm -f conftest.er1
16396 cat conftest.err >&5
16397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16398 (exit $ac_status); } >/dev/null; then
16399 if test -s conftest.err; then
16400 ac_cpp_err=$ac_c_preproc_warn_flag
16401 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16402 else
16403 ac_cpp_err=
16405 else
16406 ac_cpp_err=yes
16408 if test -z "$ac_cpp_err"; then
16409 ac_header_preproc=yes
16410 else
16411 echo "$as_me: failed program was:" >&5
16412 sed 's/^/| /' conftest.$ac_ext >&5
16414 ac_header_preproc=no
16416 rm -f conftest.err conftest.$ac_ext
16417 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16418 echo "${ECHO_T}$ac_header_preproc" >&6
16420 # So? What about this header?
16421 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16422 yes:no: )
16423 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16424 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16425 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16426 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16427 ac_header_preproc=yes
16429 no:yes:* )
16430 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16431 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16432 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16433 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16434 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16435 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16436 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16437 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16438 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16439 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16440 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16441 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16443 cat <<\_ASBOX
16444 ## ------------------------------------------ ##
16445 ## Report this to the AC_PACKAGE_NAME lists. ##
16446 ## ------------------------------------------ ##
16447 _ASBOX
16449 sed "s/^/$as_me: WARNING: /" >&2
16451 esac
16452 echo "$as_me:$LINENO: checking for $ac_header" >&5
16453 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16454 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16455 echo $ECHO_N "(cached) $ECHO_C" >&6
16456 else
16457 eval "$as_ac_Header=\$ac_header_preproc"
16459 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16460 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16463 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16464 cat >>confdefs.h <<_ACEOF
16465 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16466 _ACEOF
16467 echo "$as_me:$LINENO: checking for struct nlist.n_un.n_name" >&5
16468 echo $ECHO_N "checking for struct nlist.n_un.n_name... $ECHO_C" >&6
16469 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
16470 echo $ECHO_N "(cached) $ECHO_C" >&6
16471 else
16472 cat >conftest.$ac_ext <<_ACEOF
16473 /* confdefs.h. */
16474 _ACEOF
16475 cat confdefs.h >>conftest.$ac_ext
16476 cat >>conftest.$ac_ext <<_ACEOF
16477 /* end confdefs.h. */
16478 #include <nlist.h>
16481 main ()
16483 static struct nlist ac_aggr;
16484 if (ac_aggr.n_un.n_name)
16485 return 0;
16487 return 0;
16489 _ACEOF
16490 rm -f conftest.$ac_objext
16491 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16492 (eval $ac_compile) 2>conftest.er1
16493 ac_status=$?
16494 grep -v '^ *+' conftest.er1 >conftest.err
16495 rm -f conftest.er1
16496 cat conftest.err >&5
16497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16498 (exit $ac_status); } &&
16499 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16501 (eval $ac_try) 2>&5
16502 ac_status=$?
16503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16504 (exit $ac_status); }; } &&
16505 { ac_try='test -s conftest.$ac_objext'
16506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16507 (eval $ac_try) 2>&5
16508 ac_status=$?
16509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16510 (exit $ac_status); }; }; then
16511 ac_cv_member_struct_nlist_n_un_n_name=yes
16512 else
16513 echo "$as_me: failed program was:" >&5
16514 sed 's/^/| /' conftest.$ac_ext >&5
16516 cat >conftest.$ac_ext <<_ACEOF
16517 /* confdefs.h. */
16518 _ACEOF
16519 cat confdefs.h >>conftest.$ac_ext
16520 cat >>conftest.$ac_ext <<_ACEOF
16521 /* end confdefs.h. */
16522 #include <nlist.h>
16525 main ()
16527 static struct nlist ac_aggr;
16528 if (sizeof ac_aggr.n_un.n_name)
16529 return 0;
16531 return 0;
16533 _ACEOF
16534 rm -f conftest.$ac_objext
16535 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16536 (eval $ac_compile) 2>conftest.er1
16537 ac_status=$?
16538 grep -v '^ *+' conftest.er1 >conftest.err
16539 rm -f conftest.er1
16540 cat conftest.err >&5
16541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16542 (exit $ac_status); } &&
16543 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16545 (eval $ac_try) 2>&5
16546 ac_status=$?
16547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16548 (exit $ac_status); }; } &&
16549 { ac_try='test -s conftest.$ac_objext'
16550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16551 (eval $ac_try) 2>&5
16552 ac_status=$?
16553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16554 (exit $ac_status); }; }; then
16555 ac_cv_member_struct_nlist_n_un_n_name=yes
16556 else
16557 echo "$as_me: failed program was:" >&5
16558 sed 's/^/| /' conftest.$ac_ext >&5
16560 ac_cv_member_struct_nlist_n_un_n_name=no
16562 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16564 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16566 echo "$as_me:$LINENO: result: $ac_cv_member_struct_nlist_n_un_n_name" >&5
16567 echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6
16568 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
16570 cat >>confdefs.h <<_ACEOF
16571 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
16572 _ACEOF
16575 cat >>confdefs.h <<\_ACEOF
16576 #define NLIST_NAME_UNION 1
16577 _ACEOF
16584 done
16587 done
16590 # Some definitions of getloadavg require that the program be installed setgid.
16591 echo "$as_me:$LINENO: checking whether getloadavg requires setgid" >&5
16592 echo $ECHO_N "checking whether getloadavg requires setgid... $ECHO_C" >&6
16593 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
16594 echo $ECHO_N "(cached) $ECHO_C" >&6
16595 else
16596 cat >conftest.$ac_ext <<_ACEOF
16597 /* confdefs.h. */
16598 _ACEOF
16599 cat confdefs.h >>conftest.$ac_ext
16600 cat >>conftest.$ac_ext <<_ACEOF
16601 /* end confdefs.h. */
16602 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c"
16603 #ifdef LDAV_PRIVILEGED
16604 Yowza Am I SETGID yet
16605 #endif
16606 _ACEOF
16607 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16608 $EGREP "Yowza Am I SETGID yet" >/dev/null 2>&1; then
16609 ac_cv_func_getloadavg_setgid=yes
16610 else
16611 ac_cv_func_getloadavg_setgid=no
16613 rm -f conftest*
16616 echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg_setgid" >&5
16617 echo "${ECHO_T}$ac_cv_func_getloadavg_setgid" >&6
16618 if test $ac_cv_func_getloadavg_setgid = yes; then
16619 NEED_SETGID=true
16621 cat >>confdefs.h <<\_ACEOF
16622 #define GETLOADAVG_PRIVILEGED 1
16623 _ACEOF
16625 else
16626 NEED_SETGID=false
16629 if test $ac_cv_func_getloadavg_setgid = yes; then
16630 echo "$as_me:$LINENO: checking group of /dev/kmem" >&5
16631 echo $ECHO_N "checking group of /dev/kmem... $ECHO_C" >&6
16632 if test "${ac_cv_group_kmem+set}" = set; then
16633 echo $ECHO_N "(cached) $ECHO_C" >&6
16634 else
16635 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
16636 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
16637 # If we got an error (system does not support symlinks), try without -L.
16638 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
16639 ac_cv_group_kmem=`echo $ac_ls_output \
16640 | sed -ne 's/[ ][ ]*/ /g;
16641 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
16642 / /s/.* //;p;'`
16645 echo "$as_me:$LINENO: result: $ac_cv_group_kmem" >&5
16646 echo "${ECHO_T}$ac_cv_group_kmem" >&6
16647 KMEM_GROUP=$ac_cv_group_kmem
16649 if test "x$ac_save_LIBS" = x; then
16650 GETLOADAVG_LIBS=$LIBS
16651 else
16652 GETLOADAVG_LIBS=`echo "$LIBS" | sed "s!$ac_save_LIBS!!"`
16654 LIBS=$ac_save_LIBS
16658 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
16659 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
16660 if test "${ac_cv_sys_largefile_source+set}" = set; then
16661 echo $ECHO_N "(cached) $ECHO_C" >&6
16662 else
16663 while :; do
16664 ac_cv_sys_largefile_source=no
16665 cat >conftest.$ac_ext <<_ACEOF
16666 /* confdefs.h. */
16667 _ACEOF
16668 cat confdefs.h >>conftest.$ac_ext
16669 cat >>conftest.$ac_ext <<_ACEOF
16670 /* end confdefs.h. */
16671 #include <stdio.h>
16673 main ()
16675 return !fseeko;
16677 return 0;
16679 _ACEOF
16680 rm -f conftest.$ac_objext
16681 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16682 (eval $ac_compile) 2>conftest.er1
16683 ac_status=$?
16684 grep -v '^ *+' conftest.er1 >conftest.err
16685 rm -f conftest.er1
16686 cat conftest.err >&5
16687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16688 (exit $ac_status); } &&
16689 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16691 (eval $ac_try) 2>&5
16692 ac_status=$?
16693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16694 (exit $ac_status); }; } &&
16695 { ac_try='test -s conftest.$ac_objext'
16696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16697 (eval $ac_try) 2>&5
16698 ac_status=$?
16699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16700 (exit $ac_status); }; }; then
16701 break
16702 else
16703 echo "$as_me: failed program was:" >&5
16704 sed 's/^/| /' conftest.$ac_ext >&5
16707 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16708 cat >conftest.$ac_ext <<_ACEOF
16709 /* confdefs.h. */
16710 _ACEOF
16711 cat confdefs.h >>conftest.$ac_ext
16712 cat >>conftest.$ac_ext <<_ACEOF
16713 /* end confdefs.h. */
16714 #define _LARGEFILE_SOURCE 1
16715 #include <stdio.h>
16717 main ()
16719 return !fseeko;
16721 return 0;
16723 _ACEOF
16724 rm -f conftest.$ac_objext
16725 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16726 (eval $ac_compile) 2>conftest.er1
16727 ac_status=$?
16728 grep -v '^ *+' conftest.er1 >conftest.err
16729 rm -f conftest.er1
16730 cat conftest.err >&5
16731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16732 (exit $ac_status); } &&
16733 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16735 (eval $ac_try) 2>&5
16736 ac_status=$?
16737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16738 (exit $ac_status); }; } &&
16739 { ac_try='test -s conftest.$ac_objext'
16740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16741 (eval $ac_try) 2>&5
16742 ac_status=$?
16743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16744 (exit $ac_status); }; }; then
16745 ac_cv_sys_largefile_source=1; break
16746 else
16747 echo "$as_me: failed program was:" >&5
16748 sed 's/^/| /' conftest.$ac_ext >&5
16751 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16752 break
16753 done
16755 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
16756 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
16757 if test "$ac_cv_sys_largefile_source" != no; then
16759 cat >>confdefs.h <<_ACEOF
16760 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
16761 _ACEOF
16764 rm -f conftest*
16766 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
16767 # in glibc 2.1.3, but that breaks too many other things.
16768 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
16769 echo "$as_me:$LINENO: checking for fseeko" >&5
16770 echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
16771 if test "${ac_cv_func_fseeko+set}" = set; then
16772 echo $ECHO_N "(cached) $ECHO_C" >&6
16773 else
16774 cat >conftest.$ac_ext <<_ACEOF
16775 /* confdefs.h. */
16776 _ACEOF
16777 cat confdefs.h >>conftest.$ac_ext
16778 cat >>conftest.$ac_ext <<_ACEOF
16779 /* end confdefs.h. */
16780 #include <stdio.h>
16782 main ()
16784 return fseeko && fseeko (stdin, 0, 0);
16786 return 0;
16788 _ACEOF
16789 rm -f conftest.$ac_objext conftest$ac_exeext
16790 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16791 (eval $ac_link) 2>conftest.er1
16792 ac_status=$?
16793 grep -v '^ *+' conftest.er1 >conftest.err
16794 rm -f conftest.er1
16795 cat conftest.err >&5
16796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16797 (exit $ac_status); } &&
16798 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16800 (eval $ac_try) 2>&5
16801 ac_status=$?
16802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16803 (exit $ac_status); }; } &&
16804 { ac_try='test -s conftest$ac_exeext'
16805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16806 (eval $ac_try) 2>&5
16807 ac_status=$?
16808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16809 (exit $ac_status); }; }; then
16810 ac_cv_func_fseeko=yes
16811 else
16812 echo "$as_me: failed program was:" >&5
16813 sed 's/^/| /' conftest.$ac_ext >&5
16815 ac_cv_func_fseeko=no
16817 rm -f conftest.err conftest.$ac_objext \
16818 conftest$ac_exeext conftest.$ac_ext
16820 echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5
16821 echo "${ECHO_T}$ac_cv_func_fseeko" >&6
16822 if test $ac_cv_func_fseeko = yes; then
16824 cat >>confdefs.h <<\_ACEOF
16825 #define HAVE_FSEEKO 1
16826 _ACEOF
16831 # Configure getopt.
16832 # getopt.m4 serial 10
16834 # The getopt module assume you want GNU getopt, with getopt_long etc,
16835 # rather than vanilla POSIX getopt. This means your your code should
16836 # always include <getopt.h> for the getopt prototypes.
16848 # Prerequisites of lib/getopt*.
16852 GETOPT_H=
16854 for ac_header in getopt.h
16856 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16857 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16858 echo "$as_me:$LINENO: checking for $ac_header" >&5
16859 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16860 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16861 echo $ECHO_N "(cached) $ECHO_C" >&6
16863 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16864 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16865 else
16866 # Is the header compilable?
16867 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16868 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16869 cat >conftest.$ac_ext <<_ACEOF
16870 /* confdefs.h. */
16871 _ACEOF
16872 cat confdefs.h >>conftest.$ac_ext
16873 cat >>conftest.$ac_ext <<_ACEOF
16874 /* end confdefs.h. */
16875 $ac_includes_default
16876 #include <$ac_header>
16877 _ACEOF
16878 rm -f conftest.$ac_objext
16879 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16880 (eval $ac_compile) 2>conftest.er1
16881 ac_status=$?
16882 grep -v '^ *+' conftest.er1 >conftest.err
16883 rm -f conftest.er1
16884 cat conftest.err >&5
16885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16886 (exit $ac_status); } &&
16887 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16889 (eval $ac_try) 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.err 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 /* confdefs.h. */
16915 _ACEOF
16916 cat confdefs.h >>conftest.$ac_ext
16917 cat >>conftest.$ac_ext <<_ACEOF
16918 /* end confdefs.h. */
16919 #include <$ac_header>
16920 _ACEOF
16921 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16922 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16923 ac_status=$?
16924 grep -v '^ *+' conftest.er1 >conftest.err
16925 rm -f conftest.er1
16926 cat conftest.err >&5
16927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16928 (exit $ac_status); } >/dev/null; then
16929 if test -s conftest.err; then
16930 ac_cpp_err=$ac_c_preproc_warn_flag
16931 ac_cpp_err=$ac_cpp_err$ac_c_werror_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:$ac_c_preproc_warn_flag 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 compiler's result" >&5
16956 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16957 ac_header_preproc=yes
16959 no:yes:* )
16960 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16961 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16962 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16963 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16964 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16965 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16966 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16967 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16968 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16969 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16970 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16971 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16973 cat <<\_ASBOX
16974 ## ------------------------------------------ ##
16975 ## Report this to the AC_PACKAGE_NAME lists. ##
16976 ## ------------------------------------------ ##
16977 _ASBOX
16979 sed "s/^/$as_me: WARNING: /" >&2
16981 esac
16982 echo "$as_me:$LINENO: checking for $ac_header" >&5
16983 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16984 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16985 echo $ECHO_N "(cached) $ECHO_C" >&6
16986 else
16987 eval "$as_ac_Header=\$ac_header_preproc"
16989 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16990 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16993 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16994 cat >>confdefs.h <<_ACEOF
16995 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16996 _ACEOF
16998 else
16999 GETOPT_H=getopt.h
17002 done
17004 if test -z "$GETOPT_H"; then
17006 for ac_func in getopt_long_only
17008 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17009 echo "$as_me:$LINENO: checking for $ac_func" >&5
17010 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17011 if eval "test \"\${$as_ac_var+set}\" = set"; then
17012 echo $ECHO_N "(cached) $ECHO_C" >&6
17013 else
17014 cat >conftest.$ac_ext <<_ACEOF
17015 /* confdefs.h. */
17016 _ACEOF
17017 cat confdefs.h >>conftest.$ac_ext
17018 cat >>conftest.$ac_ext <<_ACEOF
17019 /* end confdefs.h. */
17020 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17021 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17022 #define $ac_func innocuous_$ac_func
17024 /* System header to define __stub macros and hopefully few prototypes,
17025 which can conflict with char $ac_func (); below.
17026 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17027 <limits.h> exists even on freestanding compilers. */
17029 #ifdef __STDC__
17030 # include <limits.h>
17031 #else
17032 # include <assert.h>
17033 #endif
17035 #undef $ac_func
17037 /* Override any gcc2 internal prototype to avoid an error. */
17038 #ifdef __cplusplus
17039 extern "C"
17041 #endif
17042 /* We use char because int might match the return type of a gcc2
17043 builtin and then its argument prototype would still apply. */
17044 char $ac_func ();
17045 /* The GNU C library defines this for functions which it implements
17046 to always fail with ENOSYS. Some functions are actually named
17047 something starting with __ and the normal name is an alias. */
17048 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17049 choke me
17050 #else
17051 char (*f) () = $ac_func;
17052 #endif
17053 #ifdef __cplusplus
17055 #endif
17058 main ()
17060 return f != $ac_func;
17062 return 0;
17064 _ACEOF
17065 rm -f conftest.$ac_objext conftest$ac_exeext
17066 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17067 (eval $ac_link) 2>conftest.er1
17068 ac_status=$?
17069 grep -v '^ *+' conftest.er1 >conftest.err
17070 rm -f conftest.er1
17071 cat conftest.err >&5
17072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17073 (exit $ac_status); } &&
17074 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17076 (eval $ac_try) 2>&5
17077 ac_status=$?
17078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17079 (exit $ac_status); }; } &&
17080 { ac_try='test -s conftest$ac_exeext'
17081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17082 (eval $ac_try) 2>&5
17083 ac_status=$?
17084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17085 (exit $ac_status); }; }; then
17086 eval "$as_ac_var=yes"
17087 else
17088 echo "$as_me: failed program was:" >&5
17089 sed 's/^/| /' conftest.$ac_ext >&5
17091 eval "$as_ac_var=no"
17093 rm -f conftest.err conftest.$ac_objext \
17094 conftest$ac_exeext conftest.$ac_ext
17096 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17097 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17098 if test `eval echo '${'$as_ac_var'}'` = yes; then
17099 cat >>confdefs.h <<_ACEOF
17100 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17101 _ACEOF
17103 else
17104 GETOPT_H=getopt.h
17106 done
17110 if test -z "$GETOPT_H"; then
17111 echo "$as_me:$LINENO: checking whether optreset is declared" >&5
17112 echo $ECHO_N "checking whether optreset is declared... $ECHO_C" >&6
17113 if test "${ac_cv_have_decl_optreset+set}" = set; then
17114 echo $ECHO_N "(cached) $ECHO_C" >&6
17115 else
17116 cat >conftest.$ac_ext <<_ACEOF
17117 /* confdefs.h. */
17118 _ACEOF
17119 cat confdefs.h >>conftest.$ac_ext
17120 cat >>conftest.$ac_ext <<_ACEOF
17121 /* end confdefs.h. */
17122 #include <getopt.h>
17125 main ()
17127 #ifndef optreset
17128 char *p = (char *) optreset;
17129 #endif
17132 return 0;
17134 _ACEOF
17135 rm -f conftest.$ac_objext
17136 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17137 (eval $ac_compile) 2>conftest.er1
17138 ac_status=$?
17139 grep -v '^ *+' conftest.er1 >conftest.err
17140 rm -f conftest.er1
17141 cat conftest.err >&5
17142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17143 (exit $ac_status); } &&
17144 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17146 (eval $ac_try) 2>&5
17147 ac_status=$?
17148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17149 (exit $ac_status); }; } &&
17150 { ac_try='test -s conftest.$ac_objext'
17151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17152 (eval $ac_try) 2>&5
17153 ac_status=$?
17154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17155 (exit $ac_status); }; }; then
17156 ac_cv_have_decl_optreset=yes
17157 else
17158 echo "$as_me: failed program was:" >&5
17159 sed 's/^/| /' conftest.$ac_ext >&5
17161 ac_cv_have_decl_optreset=no
17163 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17165 echo "$as_me:$LINENO: result: $ac_cv_have_decl_optreset" >&5
17166 echo "${ECHO_T}$ac_cv_have_decl_optreset" >&6
17167 if test $ac_cv_have_decl_optreset = yes; then
17168 GETOPT_H=getopt.h
17173 if test -z "$GETOPT_H"; then
17174 echo "$as_me:$LINENO: checking for working GNU getopt function" >&5
17175 echo $ECHO_N "checking for working GNU getopt function... $ECHO_C" >&6
17176 if test "${gl_cv_func_gnu_getopt+set}" = set; then
17177 echo $ECHO_N "(cached) $ECHO_C" >&6
17178 else
17179 if test "$cross_compiling" = yes; then
17180 echo "$as_me:$LINENO: checking whether getopt_clip is declared" >&5
17181 echo $ECHO_N "checking whether getopt_clip is declared... $ECHO_C" >&6
17182 if test "${ac_cv_have_decl_getopt_clip+set}" = set; then
17183 echo $ECHO_N "(cached) $ECHO_C" >&6
17184 else
17185 cat >conftest.$ac_ext <<_ACEOF
17186 /* confdefs.h. */
17187 _ACEOF
17188 cat confdefs.h >>conftest.$ac_ext
17189 cat >>conftest.$ac_ext <<_ACEOF
17190 /* end confdefs.h. */
17191 #include <getopt.h>
17194 main ()
17196 #ifndef getopt_clip
17197 char *p = (char *) getopt_clip;
17198 #endif
17201 return 0;
17203 _ACEOF
17204 rm -f conftest.$ac_objext
17205 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17206 (eval $ac_compile) 2>conftest.er1
17207 ac_status=$?
17208 grep -v '^ *+' conftest.er1 >conftest.err
17209 rm -f conftest.er1
17210 cat conftest.err >&5
17211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17212 (exit $ac_status); } &&
17213 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17215 (eval $ac_try) 2>&5
17216 ac_status=$?
17217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17218 (exit $ac_status); }; } &&
17219 { ac_try='test -s conftest.$ac_objext'
17220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17221 (eval $ac_try) 2>&5
17222 ac_status=$?
17223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17224 (exit $ac_status); }; }; then
17225 ac_cv_have_decl_getopt_clip=yes
17226 else
17227 echo "$as_me: failed program was:" >&5
17228 sed 's/^/| /' conftest.$ac_ext >&5
17230 ac_cv_have_decl_getopt_clip=no
17232 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17234 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getopt_clip" >&5
17235 echo "${ECHO_T}$ac_cv_have_decl_getopt_clip" >&6
17236 if test $ac_cv_have_decl_getopt_clip = yes; then
17237 gl_cv_func_gnu_getopt=no
17238 else
17239 gl_cv_func_gnu_getopt=yes
17242 else
17243 cat >conftest.$ac_ext <<_ACEOF
17244 /* confdefs.h. */
17245 _ACEOF
17246 cat confdefs.h >>conftest.$ac_ext
17247 cat >>conftest.$ac_ext <<_ACEOF
17248 /* end confdefs.h. */
17249 #include <getopt.h>
17251 main ()
17254 char *myargv[3];
17255 myargv[0] = "conftest";
17256 myargv[1] = "-+";
17257 myargv[2] = 0;
17258 return getopt (2, myargv, "+a") != '?';
17261 return 0;
17263 _ACEOF
17264 rm -f conftest$ac_exeext
17265 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17266 (eval $ac_link) 2>&5
17267 ac_status=$?
17268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17269 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17271 (eval $ac_try) 2>&5
17272 ac_status=$?
17273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17274 (exit $ac_status); }; }; then
17275 gl_cv_func_gnu_getopt=yes
17276 else
17277 echo "$as_me: program exited with status $ac_status" >&5
17278 echo "$as_me: failed program was:" >&5
17279 sed 's/^/| /' conftest.$ac_ext >&5
17281 ( exit $ac_status )
17282 gl_cv_func_gnu_getopt=no
17284 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17287 echo "$as_me:$LINENO: result: $gl_cv_func_gnu_getopt" >&5
17288 echo "${ECHO_T}$gl_cv_func_gnu_getopt" >&6
17289 if test "$gl_cv_func_gnu_getopt" = "no"; then
17290 GETOPT_H=getopt.h
17296 if test -n "$GETOPT_H"; then
17299 GETOPT_H=getopt.h
17301 cat >>confdefs.h <<\_ACEOF
17302 #define __GETOPT_PREFIX rpl_
17303 _ACEOF
17308 GETOPTOBJS='getopt.o getopt1.o'
17315 echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5
17316 echo $ECHO_N "checking whether getpgrp requires zero arguments... $ECHO_C" >&6
17317 if test "${ac_cv_func_getpgrp_void+set}" = set; then
17318 echo $ECHO_N "(cached) $ECHO_C" >&6
17319 else
17320 # Use it with a single arg.
17321 cat >conftest.$ac_ext <<_ACEOF
17322 /* confdefs.h. */
17323 _ACEOF
17324 cat confdefs.h >>conftest.$ac_ext
17325 cat >>conftest.$ac_ext <<_ACEOF
17326 /* end confdefs.h. */
17327 $ac_includes_default
17329 main ()
17331 getpgrp (0);
17333 return 0;
17335 _ACEOF
17336 rm -f conftest.$ac_objext
17337 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17338 (eval $ac_compile) 2>conftest.er1
17339 ac_status=$?
17340 grep -v '^ *+' conftest.er1 >conftest.err
17341 rm -f conftest.er1
17342 cat conftest.err >&5
17343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17344 (exit $ac_status); } &&
17345 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17347 (eval $ac_try) 2>&5
17348 ac_status=$?
17349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17350 (exit $ac_status); }; } &&
17351 { ac_try='test -s conftest.$ac_objext'
17352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17353 (eval $ac_try) 2>&5
17354 ac_status=$?
17355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17356 (exit $ac_status); }; }; then
17357 ac_cv_func_getpgrp_void=no
17358 else
17359 echo "$as_me: failed program was:" >&5
17360 sed 's/^/| /' conftest.$ac_ext >&5
17362 ac_cv_func_getpgrp_void=yes
17364 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17367 echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5
17368 echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6
17369 if test $ac_cv_func_getpgrp_void = yes; then
17371 cat >>confdefs.h <<\_ACEOF
17372 #define GETPGRP_VOID 1
17373 _ACEOF
17379 for ac_func in strftime
17381 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17382 echo "$as_me:$LINENO: checking for $ac_func" >&5
17383 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17384 if eval "test \"\${$as_ac_var+set}\" = set"; then
17385 echo $ECHO_N "(cached) $ECHO_C" >&6
17386 else
17387 cat >conftest.$ac_ext <<_ACEOF
17388 /* confdefs.h. */
17389 _ACEOF
17390 cat confdefs.h >>conftest.$ac_ext
17391 cat >>conftest.$ac_ext <<_ACEOF
17392 /* end confdefs.h. */
17393 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17394 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17395 #define $ac_func innocuous_$ac_func
17397 /* System header to define __stub macros and hopefully few prototypes,
17398 which can conflict with char $ac_func (); below.
17399 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17400 <limits.h> exists even on freestanding compilers. */
17402 #ifdef __STDC__
17403 # include <limits.h>
17404 #else
17405 # include <assert.h>
17406 #endif
17408 #undef $ac_func
17410 /* Override any gcc2 internal prototype to avoid an error. */
17411 #ifdef __cplusplus
17412 extern "C"
17414 #endif
17415 /* We use char because int might match the return type of a gcc2
17416 builtin and then its argument prototype would still apply. */
17417 char $ac_func ();
17418 /* The GNU C library defines this for functions which it implements
17419 to always fail with ENOSYS. Some functions are actually named
17420 something starting with __ and the normal name is an alias. */
17421 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17422 choke me
17423 #else
17424 char (*f) () = $ac_func;
17425 #endif
17426 #ifdef __cplusplus
17428 #endif
17431 main ()
17433 return f != $ac_func;
17435 return 0;
17437 _ACEOF
17438 rm -f conftest.$ac_objext conftest$ac_exeext
17439 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17440 (eval $ac_link) 2>conftest.er1
17441 ac_status=$?
17442 grep -v '^ *+' conftest.er1 >conftest.err
17443 rm -f conftest.er1
17444 cat conftest.err >&5
17445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17446 (exit $ac_status); } &&
17447 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17449 (eval $ac_try) 2>&5
17450 ac_status=$?
17451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17452 (exit $ac_status); }; } &&
17453 { ac_try='test -s conftest$ac_exeext'
17454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17455 (eval $ac_try) 2>&5
17456 ac_status=$?
17457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17458 (exit $ac_status); }; }; then
17459 eval "$as_ac_var=yes"
17460 else
17461 echo "$as_me: failed program was:" >&5
17462 sed 's/^/| /' conftest.$ac_ext >&5
17464 eval "$as_ac_var=no"
17466 rm -f conftest.err conftest.$ac_objext \
17467 conftest$ac_exeext conftest.$ac_ext
17469 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17470 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17471 if test `eval echo '${'$as_ac_var'}'` = yes; then
17472 cat >>confdefs.h <<_ACEOF
17473 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17474 _ACEOF
17476 else
17477 # strftime is in -lintl on SCO UNIX.
17478 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
17479 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
17480 if test "${ac_cv_lib_intl_strftime+set}" = set; then
17481 echo $ECHO_N "(cached) $ECHO_C" >&6
17482 else
17483 ac_check_lib_save_LIBS=$LIBS
17484 LIBS="-lintl $LIBS"
17485 cat >conftest.$ac_ext <<_ACEOF
17486 /* confdefs.h. */
17487 _ACEOF
17488 cat confdefs.h >>conftest.$ac_ext
17489 cat >>conftest.$ac_ext <<_ACEOF
17490 /* end confdefs.h. */
17492 /* Override any gcc2 internal prototype to avoid an error. */
17493 #ifdef __cplusplus
17494 extern "C"
17495 #endif
17496 /* We use char because int might match the return type of a gcc2
17497 builtin and then its argument prototype would still apply. */
17498 char strftime ();
17500 main ()
17502 strftime ();
17504 return 0;
17506 _ACEOF
17507 rm -f conftest.$ac_objext conftest$ac_exeext
17508 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17509 (eval $ac_link) 2>conftest.er1
17510 ac_status=$?
17511 grep -v '^ *+' conftest.er1 >conftest.err
17512 rm -f conftest.er1
17513 cat conftest.err >&5
17514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17515 (exit $ac_status); } &&
17516 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17518 (eval $ac_try) 2>&5
17519 ac_status=$?
17520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17521 (exit $ac_status); }; } &&
17522 { ac_try='test -s conftest$ac_exeext'
17523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17524 (eval $ac_try) 2>&5
17525 ac_status=$?
17526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17527 (exit $ac_status); }; }; then
17528 ac_cv_lib_intl_strftime=yes
17529 else
17530 echo "$as_me: failed program was:" >&5
17531 sed 's/^/| /' conftest.$ac_ext >&5
17533 ac_cv_lib_intl_strftime=no
17535 rm -f conftest.err conftest.$ac_objext \
17536 conftest$ac_exeext conftest.$ac_ext
17537 LIBS=$ac_check_lib_save_LIBS
17539 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
17540 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
17541 if test $ac_cv_lib_intl_strftime = yes; then
17542 cat >>confdefs.h <<\_ACEOF
17543 #define HAVE_STRFTIME 1
17544 _ACEOF
17546 LIBS="-lintl $LIBS"
17550 done
17553 # UNIX98 PTYs.
17555 for ac_func in grantpt
17557 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17558 echo "$as_me:$LINENO: checking for $ac_func" >&5
17559 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17560 if eval "test \"\${$as_ac_var+set}\" = set"; then
17561 echo $ECHO_N "(cached) $ECHO_C" >&6
17562 else
17563 cat >conftest.$ac_ext <<_ACEOF
17564 /* confdefs.h. */
17565 _ACEOF
17566 cat confdefs.h >>conftest.$ac_ext
17567 cat >>conftest.$ac_ext <<_ACEOF
17568 /* end confdefs.h. */
17569 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17570 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17571 #define $ac_func innocuous_$ac_func
17573 /* System header to define __stub macros and hopefully few prototypes,
17574 which can conflict with char $ac_func (); below.
17575 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17576 <limits.h> exists even on freestanding compilers. */
17578 #ifdef __STDC__
17579 # include <limits.h>
17580 #else
17581 # include <assert.h>
17582 #endif
17584 #undef $ac_func
17586 /* Override any gcc2 internal prototype to avoid an error. */
17587 #ifdef __cplusplus
17588 extern "C"
17590 #endif
17591 /* We use char because int might match the return type of a gcc2
17592 builtin and then its argument prototype would still apply. */
17593 char $ac_func ();
17594 /* The GNU C library defines this for functions which it implements
17595 to always fail with ENOSYS. Some functions are actually named
17596 something starting with __ and the normal name is an alias. */
17597 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17598 choke me
17599 #else
17600 char (*f) () = $ac_func;
17601 #endif
17602 #ifdef __cplusplus
17604 #endif
17607 main ()
17609 return f != $ac_func;
17611 return 0;
17613 _ACEOF
17614 rm -f conftest.$ac_objext conftest$ac_exeext
17615 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17616 (eval $ac_link) 2>conftest.er1
17617 ac_status=$?
17618 grep -v '^ *+' conftest.er1 >conftest.err
17619 rm -f conftest.er1
17620 cat conftest.err >&5
17621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17622 (exit $ac_status); } &&
17623 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
17629 { ac_try='test -s conftest$ac_exeext'
17630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17631 (eval $ac_try) 2>&5
17632 ac_status=$?
17633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17634 (exit $ac_status); }; }; then
17635 eval "$as_ac_var=yes"
17636 else
17637 echo "$as_me: failed program was:" >&5
17638 sed 's/^/| /' conftest.$ac_ext >&5
17640 eval "$as_ac_var=no"
17642 rm -f conftest.err conftest.$ac_objext \
17643 conftest$ac_exeext conftest.$ac_ext
17645 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17646 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17647 if test `eval echo '${'$as_ac_var'}'` = yes; then
17648 cat >>confdefs.h <<_ACEOF
17649 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17650 _ACEOF
17653 done
17656 # PTY-related GNU extensions.
17658 for ac_func in getpt
17660 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17661 echo "$as_me:$LINENO: checking for $ac_func" >&5
17662 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17663 if eval "test \"\${$as_ac_var+set}\" = set"; then
17664 echo $ECHO_N "(cached) $ECHO_C" >&6
17665 else
17666 cat >conftest.$ac_ext <<_ACEOF
17667 /* confdefs.h. */
17668 _ACEOF
17669 cat confdefs.h >>conftest.$ac_ext
17670 cat >>conftest.$ac_ext <<_ACEOF
17671 /* end confdefs.h. */
17672 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17673 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17674 #define $ac_func innocuous_$ac_func
17676 /* System header to define __stub macros and hopefully few prototypes,
17677 which can conflict with char $ac_func (); below.
17678 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17679 <limits.h> exists even on freestanding compilers. */
17681 #ifdef __STDC__
17682 # include <limits.h>
17683 #else
17684 # include <assert.h>
17685 #endif
17687 #undef $ac_func
17689 /* Override any gcc2 internal prototype to avoid an error. */
17690 #ifdef __cplusplus
17691 extern "C"
17693 #endif
17694 /* We use char because int might match the return type of a gcc2
17695 builtin and then its argument prototype would still apply. */
17696 char $ac_func ();
17697 /* The GNU C library defines this for functions which it implements
17698 to always fail with ENOSYS. Some functions are actually named
17699 something starting with __ and the normal name is an alias. */
17700 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17701 choke me
17702 #else
17703 char (*f) () = $ac_func;
17704 #endif
17705 #ifdef __cplusplus
17707 #endif
17710 main ()
17712 return f != $ac_func;
17714 return 0;
17716 _ACEOF
17717 rm -f conftest.$ac_objext conftest$ac_exeext
17718 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17719 (eval $ac_link) 2>conftest.er1
17720 ac_status=$?
17721 grep -v '^ *+' conftest.er1 >conftest.err
17722 rm -f conftest.er1
17723 cat conftest.err >&5
17724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17725 (exit $ac_status); } &&
17726 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17728 (eval $ac_try) 2>&5
17729 ac_status=$?
17730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17731 (exit $ac_status); }; } &&
17732 { ac_try='test -s conftest$ac_exeext'
17733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17734 (eval $ac_try) 2>&5
17735 ac_status=$?
17736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17737 (exit $ac_status); }; }; then
17738 eval "$as_ac_var=yes"
17739 else
17740 echo "$as_me: failed program was:" >&5
17741 sed 's/^/| /' conftest.$ac_ext >&5
17743 eval "$as_ac_var=no"
17745 rm -f conftest.err conftest.$ac_objext \
17746 conftest$ac_exeext conftest.$ac_ext
17748 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17749 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17750 if test `eval echo '${'$as_ac_var'}'` = yes; then
17751 cat >>confdefs.h <<_ACEOF
17752 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17753 _ACEOF
17756 done
17759 # Check this now, so that we will NOT find the above functions in ncurses.
17760 # That is because we have not set up to link ncurses in lib-src.
17761 # It's better to believe a function is not available
17762 # than to expect to find it in ncurses.
17764 echo "$as_me:$LINENO: checking for tparm in -lncurses" >&5
17765 echo $ECHO_N "checking for tparm in -lncurses... $ECHO_C" >&6
17766 if test "${ac_cv_lib_ncurses_tparm+set}" = set; then
17767 echo $ECHO_N "(cached) $ECHO_C" >&6
17768 else
17769 ac_check_lib_save_LIBS=$LIBS
17770 LIBS="-lncurses $LIBS"
17771 cat >conftest.$ac_ext <<_ACEOF
17772 /* confdefs.h. */
17773 _ACEOF
17774 cat confdefs.h >>conftest.$ac_ext
17775 cat >>conftest.$ac_ext <<_ACEOF
17776 /* end confdefs.h. */
17778 /* Override any gcc2 internal prototype to avoid an error. */
17779 #ifdef __cplusplus
17780 extern "C"
17781 #endif
17782 /* We use char because int might match the return type of a gcc2
17783 builtin and then its argument prototype would still apply. */
17784 char tparm ();
17786 main ()
17788 tparm ();
17790 return 0;
17792 _ACEOF
17793 rm -f conftest.$ac_objext conftest$ac_exeext
17794 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17795 (eval $ac_link) 2>conftest.er1
17796 ac_status=$?
17797 grep -v '^ *+' conftest.er1 >conftest.err
17798 rm -f conftest.er1
17799 cat conftest.err >&5
17800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17801 (exit $ac_status); } &&
17802 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17804 (eval $ac_try) 2>&5
17805 ac_status=$?
17806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17807 (exit $ac_status); }; } &&
17808 { ac_try='test -s conftest$ac_exeext'
17809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17810 (eval $ac_try) 2>&5
17811 ac_status=$?
17812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17813 (exit $ac_status); }; }; then
17814 ac_cv_lib_ncurses_tparm=yes
17815 else
17816 echo "$as_me: failed program was:" >&5
17817 sed 's/^/| /' conftest.$ac_ext >&5
17819 ac_cv_lib_ncurses_tparm=no
17821 rm -f conftest.err conftest.$ac_objext \
17822 conftest$ac_exeext conftest.$ac_ext
17823 LIBS=$ac_check_lib_save_LIBS
17825 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tparm" >&5
17826 echo "${ECHO_T}$ac_cv_lib_ncurses_tparm" >&6
17827 if test $ac_cv_lib_ncurses_tparm = yes; then
17828 cat >>confdefs.h <<_ACEOF
17829 #define HAVE_LIBNCURSES 1
17830 _ACEOF
17832 LIBS="-lncurses $LIBS"
17837 # Do we need the Hesiod library to provide the support routines?
17838 if test "$with_hesiod" = yes ; then
17839 # Don't set $LIBS here -- see comments above.
17840 resolv=no
17841 echo "$as_me:$LINENO: checking for res_send" >&5
17842 echo $ECHO_N "checking for res_send... $ECHO_C" >&6
17843 if test "${ac_cv_func_res_send+set}" = set; then
17844 echo $ECHO_N "(cached) $ECHO_C" >&6
17845 else
17846 cat >conftest.$ac_ext <<_ACEOF
17847 /* confdefs.h. */
17848 _ACEOF
17849 cat confdefs.h >>conftest.$ac_ext
17850 cat >>conftest.$ac_ext <<_ACEOF
17851 /* end confdefs.h. */
17852 /* Define res_send to an innocuous variant, in case <limits.h> declares res_send.
17853 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17854 #define res_send innocuous_res_send
17856 /* System header to define __stub macros and hopefully few prototypes,
17857 which can conflict with char res_send (); below.
17858 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17859 <limits.h> exists even on freestanding compilers. */
17861 #ifdef __STDC__
17862 # include <limits.h>
17863 #else
17864 # include <assert.h>
17865 #endif
17867 #undef res_send
17869 /* Override any gcc2 internal prototype to avoid an error. */
17870 #ifdef __cplusplus
17871 extern "C"
17873 #endif
17874 /* We use char because int might match the return type of a gcc2
17875 builtin and then its argument prototype would still apply. */
17876 char res_send ();
17877 /* The GNU C library defines this for functions which it implements
17878 to always fail with ENOSYS. Some functions are actually named
17879 something starting with __ and the normal name is an alias. */
17880 #if defined (__stub_res_send) || defined (__stub___res_send)
17881 choke me
17882 #else
17883 char (*f) () = res_send;
17884 #endif
17885 #ifdef __cplusplus
17887 #endif
17890 main ()
17892 return f != res_send;
17894 return 0;
17896 _ACEOF
17897 rm -f conftest.$ac_objext conftest$ac_exeext
17898 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17899 (eval $ac_link) 2>conftest.er1
17900 ac_status=$?
17901 grep -v '^ *+' conftest.er1 >conftest.err
17902 rm -f conftest.er1
17903 cat conftest.err >&5
17904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17905 (exit $ac_status); } &&
17906 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17908 (eval $ac_try) 2>&5
17909 ac_status=$?
17910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17911 (exit $ac_status); }; } &&
17912 { ac_try='test -s conftest$ac_exeext'
17913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17914 (eval $ac_try) 2>&5
17915 ac_status=$?
17916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17917 (exit $ac_status); }; }; then
17918 ac_cv_func_res_send=yes
17919 else
17920 echo "$as_me: failed program was:" >&5
17921 sed 's/^/| /' conftest.$ac_ext >&5
17923 ac_cv_func_res_send=no
17925 rm -f conftest.err conftest.$ac_objext \
17926 conftest$ac_exeext conftest.$ac_ext
17928 echo "$as_me:$LINENO: result: $ac_cv_func_res_send" >&5
17929 echo "${ECHO_T}$ac_cv_func_res_send" >&6
17930 if test $ac_cv_func_res_send = yes; then
17932 else
17933 echo "$as_me:$LINENO: checking for __res_send" >&5
17934 echo $ECHO_N "checking for __res_send... $ECHO_C" >&6
17935 if test "${ac_cv_func___res_send+set}" = set; then
17936 echo $ECHO_N "(cached) $ECHO_C" >&6
17937 else
17938 cat >conftest.$ac_ext <<_ACEOF
17939 /* confdefs.h. */
17940 _ACEOF
17941 cat confdefs.h >>conftest.$ac_ext
17942 cat >>conftest.$ac_ext <<_ACEOF
17943 /* end confdefs.h. */
17944 /* Define __res_send to an innocuous variant, in case <limits.h> declares __res_send.
17945 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17946 #define __res_send innocuous___res_send
17948 /* System header to define __stub macros and hopefully few prototypes,
17949 which can conflict with char __res_send (); below.
17950 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17951 <limits.h> exists even on freestanding compilers. */
17953 #ifdef __STDC__
17954 # include <limits.h>
17955 #else
17956 # include <assert.h>
17957 #endif
17959 #undef __res_send
17961 /* Override any gcc2 internal prototype to avoid an error. */
17962 #ifdef __cplusplus
17963 extern "C"
17965 #endif
17966 /* We use char because int might match the return type of a gcc2
17967 builtin and then its argument prototype would still apply. */
17968 char __res_send ();
17969 /* The GNU C library defines this for functions which it implements
17970 to always fail with ENOSYS. Some functions are actually named
17971 something starting with __ and the normal name is an alias. */
17972 #if defined (__stub___res_send) || defined (__stub_____res_send)
17973 choke me
17974 #else
17975 char (*f) () = __res_send;
17976 #endif
17977 #ifdef __cplusplus
17979 #endif
17982 main ()
17984 return f != __res_send;
17986 return 0;
17988 _ACEOF
17989 rm -f conftest.$ac_objext conftest$ac_exeext
17990 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17991 (eval $ac_link) 2>conftest.er1
17992 ac_status=$?
17993 grep -v '^ *+' conftest.er1 >conftest.err
17994 rm -f conftest.er1
17995 cat conftest.err >&5
17996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17997 (exit $ac_status); } &&
17998 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18000 (eval $ac_try) 2>&5
18001 ac_status=$?
18002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18003 (exit $ac_status); }; } &&
18004 { ac_try='test -s conftest$ac_exeext'
18005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18006 (eval $ac_try) 2>&5
18007 ac_status=$?
18008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18009 (exit $ac_status); }; }; then
18010 ac_cv_func___res_send=yes
18011 else
18012 echo "$as_me: failed program was:" >&5
18013 sed 's/^/| /' conftest.$ac_ext >&5
18015 ac_cv_func___res_send=no
18017 rm -f conftest.err conftest.$ac_objext \
18018 conftest$ac_exeext conftest.$ac_ext
18020 echo "$as_me:$LINENO: result: $ac_cv_func___res_send" >&5
18021 echo "${ECHO_T}$ac_cv_func___res_send" >&6
18022 if test $ac_cv_func___res_send = yes; then
18024 else
18025 echo "$as_me:$LINENO: checking for res_send in -lresolv" >&5
18026 echo $ECHO_N "checking for res_send in -lresolv... $ECHO_C" >&6
18027 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
18028 echo $ECHO_N "(cached) $ECHO_C" >&6
18029 else
18030 ac_check_lib_save_LIBS=$LIBS
18031 LIBS="-lresolv $LIBS"
18032 cat >conftest.$ac_ext <<_ACEOF
18033 /* confdefs.h. */
18034 _ACEOF
18035 cat confdefs.h >>conftest.$ac_ext
18036 cat >>conftest.$ac_ext <<_ACEOF
18037 /* end confdefs.h. */
18039 /* Override any gcc2 internal prototype to avoid an error. */
18040 #ifdef __cplusplus
18041 extern "C"
18042 #endif
18043 /* We use char because int might match the return type of a gcc2
18044 builtin and then its argument prototype would still apply. */
18045 char res_send ();
18047 main ()
18049 res_send ();
18051 return 0;
18053 _ACEOF
18054 rm -f conftest.$ac_objext conftest$ac_exeext
18055 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18056 (eval $ac_link) 2>conftest.er1
18057 ac_status=$?
18058 grep -v '^ *+' conftest.er1 >conftest.err
18059 rm -f conftest.er1
18060 cat conftest.err >&5
18061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18062 (exit $ac_status); } &&
18063 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18065 (eval $ac_try) 2>&5
18066 ac_status=$?
18067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18068 (exit $ac_status); }; } &&
18069 { ac_try='test -s conftest$ac_exeext'
18070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18071 (eval $ac_try) 2>&5
18072 ac_status=$?
18073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18074 (exit $ac_status); }; }; then
18075 ac_cv_lib_resolv_res_send=yes
18076 else
18077 echo "$as_me: failed program was:" >&5
18078 sed 's/^/| /' conftest.$ac_ext >&5
18080 ac_cv_lib_resolv_res_send=no
18082 rm -f conftest.err conftest.$ac_objext \
18083 conftest$ac_exeext conftest.$ac_ext
18084 LIBS=$ac_check_lib_save_LIBS
18086 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_send" >&5
18087 echo "${ECHO_T}$ac_cv_lib_resolv_res_send" >&6
18088 if test $ac_cv_lib_resolv_res_send = yes; then
18089 resolv=yes
18090 else
18091 echo "$as_me:$LINENO: checking for __res_send in -lresolv" >&5
18092 echo $ECHO_N "checking for __res_send in -lresolv... $ECHO_C" >&6
18093 if test "${ac_cv_lib_resolv___res_send+set}" = set; then
18094 echo $ECHO_N "(cached) $ECHO_C" >&6
18095 else
18096 ac_check_lib_save_LIBS=$LIBS
18097 LIBS="-lresolv $LIBS"
18098 cat >conftest.$ac_ext <<_ACEOF
18099 /* confdefs.h. */
18100 _ACEOF
18101 cat confdefs.h >>conftest.$ac_ext
18102 cat >>conftest.$ac_ext <<_ACEOF
18103 /* end confdefs.h. */
18105 /* Override any gcc2 internal prototype to avoid an error. */
18106 #ifdef __cplusplus
18107 extern "C"
18108 #endif
18109 /* We use char because int might match the return type of a gcc2
18110 builtin and then its argument prototype would still apply. */
18111 char __res_send ();
18113 main ()
18115 __res_send ();
18117 return 0;
18119 _ACEOF
18120 rm -f conftest.$ac_objext conftest$ac_exeext
18121 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18122 (eval $ac_link) 2>conftest.er1
18123 ac_status=$?
18124 grep -v '^ *+' conftest.er1 >conftest.err
18125 rm -f conftest.er1
18126 cat conftest.err >&5
18127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18128 (exit $ac_status); } &&
18129 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18131 (eval $ac_try) 2>&5
18132 ac_status=$?
18133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18134 (exit $ac_status); }; } &&
18135 { ac_try='test -s conftest$ac_exeext'
18136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18137 (eval $ac_try) 2>&5
18138 ac_status=$?
18139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18140 (exit $ac_status); }; }; then
18141 ac_cv_lib_resolv___res_send=yes
18142 else
18143 echo "$as_me: failed program was:" >&5
18144 sed 's/^/| /' conftest.$ac_ext >&5
18146 ac_cv_lib_resolv___res_send=no
18148 rm -f conftest.err conftest.$ac_objext \
18149 conftest$ac_exeext conftest.$ac_ext
18150 LIBS=$ac_check_lib_save_LIBS
18152 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv___res_send" >&5
18153 echo "${ECHO_T}$ac_cv_lib_resolv___res_send" >&6
18154 if test $ac_cv_lib_resolv___res_send = yes; then
18155 resolv=yes
18164 if test "$resolv" = yes ; then
18165 RESOLVLIB=-lresolv
18167 cat >>confdefs.h <<\_ACEOF
18168 #define HAVE_LIBRESOLV 1
18169 _ACEOF
18171 else
18172 RESOLVLIB=
18174 echo "$as_me:$LINENO: checking for hes_getmailhost" >&5
18175 echo $ECHO_N "checking for hes_getmailhost... $ECHO_C" >&6
18176 if test "${ac_cv_func_hes_getmailhost+set}" = set; then
18177 echo $ECHO_N "(cached) $ECHO_C" >&6
18178 else
18179 cat >conftest.$ac_ext <<_ACEOF
18180 /* confdefs.h. */
18181 _ACEOF
18182 cat confdefs.h >>conftest.$ac_ext
18183 cat >>conftest.$ac_ext <<_ACEOF
18184 /* end confdefs.h. */
18185 /* Define hes_getmailhost to an innocuous variant, in case <limits.h> declares hes_getmailhost.
18186 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18187 #define hes_getmailhost innocuous_hes_getmailhost
18189 /* System header to define __stub macros and hopefully few prototypes,
18190 which can conflict with char hes_getmailhost (); below.
18191 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18192 <limits.h> exists even on freestanding compilers. */
18194 #ifdef __STDC__
18195 # include <limits.h>
18196 #else
18197 # include <assert.h>
18198 #endif
18200 #undef hes_getmailhost
18202 /* Override any gcc2 internal prototype to avoid an error. */
18203 #ifdef __cplusplus
18204 extern "C"
18206 #endif
18207 /* We use char because int might match the return type of a gcc2
18208 builtin and then its argument prototype would still apply. */
18209 char hes_getmailhost ();
18210 /* The GNU C library defines this for functions which it implements
18211 to always fail with ENOSYS. Some functions are actually named
18212 something starting with __ and the normal name is an alias. */
18213 #if defined (__stub_hes_getmailhost) || defined (__stub___hes_getmailhost)
18214 choke me
18215 #else
18216 char (*f) () = hes_getmailhost;
18217 #endif
18218 #ifdef __cplusplus
18220 #endif
18223 main ()
18225 return f != hes_getmailhost;
18227 return 0;
18229 _ACEOF
18230 rm -f conftest.$ac_objext conftest$ac_exeext
18231 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18232 (eval $ac_link) 2>conftest.er1
18233 ac_status=$?
18234 grep -v '^ *+' conftest.er1 >conftest.err
18235 rm -f conftest.er1
18236 cat conftest.err >&5
18237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18238 (exit $ac_status); } &&
18239 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18241 (eval $ac_try) 2>&5
18242 ac_status=$?
18243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18244 (exit $ac_status); }; } &&
18245 { ac_try='test -s conftest$ac_exeext'
18246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18247 (eval $ac_try) 2>&5
18248 ac_status=$?
18249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18250 (exit $ac_status); }; }; then
18251 ac_cv_func_hes_getmailhost=yes
18252 else
18253 echo "$as_me: failed program was:" >&5
18254 sed 's/^/| /' conftest.$ac_ext >&5
18256 ac_cv_func_hes_getmailhost=no
18258 rm -f conftest.err conftest.$ac_objext \
18259 conftest$ac_exeext conftest.$ac_ext
18261 echo "$as_me:$LINENO: result: $ac_cv_func_hes_getmailhost" >&5
18262 echo "${ECHO_T}$ac_cv_func_hes_getmailhost" >&6
18263 if test $ac_cv_func_hes_getmailhost = yes; then
18265 else
18266 echo "$as_me:$LINENO: checking for hes_getmailhost in -lhesiod" >&5
18267 echo $ECHO_N "checking for hes_getmailhost in -lhesiod... $ECHO_C" >&6
18268 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
18269 echo $ECHO_N "(cached) $ECHO_C" >&6
18270 else
18271 ac_check_lib_save_LIBS=$LIBS
18272 LIBS="-lhesiod $RESOLVLIB $LIBS"
18273 cat >conftest.$ac_ext <<_ACEOF
18274 /* confdefs.h. */
18275 _ACEOF
18276 cat confdefs.h >>conftest.$ac_ext
18277 cat >>conftest.$ac_ext <<_ACEOF
18278 /* end confdefs.h. */
18280 /* Override any gcc2 internal prototype to avoid an error. */
18281 #ifdef __cplusplus
18282 extern "C"
18283 #endif
18284 /* We use char because int might match the return type of a gcc2
18285 builtin and then its argument prototype would still apply. */
18286 char hes_getmailhost ();
18288 main ()
18290 hes_getmailhost ();
18292 return 0;
18294 _ACEOF
18295 rm -f conftest.$ac_objext conftest$ac_exeext
18296 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18297 (eval $ac_link) 2>conftest.er1
18298 ac_status=$?
18299 grep -v '^ *+' conftest.er1 >conftest.err
18300 rm -f conftest.er1
18301 cat conftest.err >&5
18302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18303 (exit $ac_status); } &&
18304 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18306 (eval $ac_try) 2>&5
18307 ac_status=$?
18308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18309 (exit $ac_status); }; } &&
18310 { ac_try='test -s conftest$ac_exeext'
18311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18312 (eval $ac_try) 2>&5
18313 ac_status=$?
18314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18315 (exit $ac_status); }; }; then
18316 ac_cv_lib_hesiod_hes_getmailhost=yes
18317 else
18318 echo "$as_me: failed program was:" >&5
18319 sed 's/^/| /' conftest.$ac_ext >&5
18321 ac_cv_lib_hesiod_hes_getmailhost=no
18323 rm -f conftest.err conftest.$ac_objext \
18324 conftest$ac_exeext conftest.$ac_ext
18325 LIBS=$ac_check_lib_save_LIBS
18327 echo "$as_me:$LINENO: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
18328 echo "${ECHO_T}$ac_cv_lib_hesiod_hes_getmailhost" >&6
18329 if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then
18331 cat >>confdefs.h <<\_ACEOF
18332 #define HAVE_LIBHESIOD 1
18333 _ACEOF
18335 else
18343 # These tell us which Kerberos-related libraries to use.
18344 if test "${with_kerberos+set}" = set; then
18346 echo "$as_me:$LINENO: checking for com_err in -lcom_err" >&5
18347 echo $ECHO_N "checking for com_err in -lcom_err... $ECHO_C" >&6
18348 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
18349 echo $ECHO_N "(cached) $ECHO_C" >&6
18350 else
18351 ac_check_lib_save_LIBS=$LIBS
18352 LIBS="-lcom_err $LIBS"
18353 cat >conftest.$ac_ext <<_ACEOF
18354 /* confdefs.h. */
18355 _ACEOF
18356 cat confdefs.h >>conftest.$ac_ext
18357 cat >>conftest.$ac_ext <<_ACEOF
18358 /* end confdefs.h. */
18360 /* Override any gcc2 internal prototype to avoid an error. */
18361 #ifdef __cplusplus
18362 extern "C"
18363 #endif
18364 /* We use char because int might match the return type of a gcc2
18365 builtin and then its argument prototype would still apply. */
18366 char com_err ();
18368 main ()
18370 com_err ();
18372 return 0;
18374 _ACEOF
18375 rm -f conftest.$ac_objext conftest$ac_exeext
18376 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18377 (eval $ac_link) 2>conftest.er1
18378 ac_status=$?
18379 grep -v '^ *+' conftest.er1 >conftest.err
18380 rm -f conftest.er1
18381 cat conftest.err >&5
18382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18383 (exit $ac_status); } &&
18384 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18386 (eval $ac_try) 2>&5
18387 ac_status=$?
18388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18389 (exit $ac_status); }; } &&
18390 { ac_try='test -s conftest$ac_exeext'
18391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18392 (eval $ac_try) 2>&5
18393 ac_status=$?
18394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18395 (exit $ac_status); }; }; then
18396 ac_cv_lib_com_err_com_err=yes
18397 else
18398 echo "$as_me: failed program was:" >&5
18399 sed 's/^/| /' conftest.$ac_ext >&5
18401 ac_cv_lib_com_err_com_err=no
18403 rm -f conftest.err conftest.$ac_objext \
18404 conftest$ac_exeext conftest.$ac_ext
18405 LIBS=$ac_check_lib_save_LIBS
18407 echo "$as_me:$LINENO: result: $ac_cv_lib_com_err_com_err" >&5
18408 echo "${ECHO_T}$ac_cv_lib_com_err_com_err" >&6
18409 if test $ac_cv_lib_com_err_com_err = yes; then
18410 cat >>confdefs.h <<_ACEOF
18411 #define HAVE_LIBCOM_ERR 1
18412 _ACEOF
18414 LIBS="-lcom_err $LIBS"
18419 echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
18420 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lk5crypto... $ECHO_C" >&6
18421 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
18422 echo $ECHO_N "(cached) $ECHO_C" >&6
18423 else
18424 ac_check_lib_save_LIBS=$LIBS
18425 LIBS="-lk5crypto $LIBS"
18426 cat >conftest.$ac_ext <<_ACEOF
18427 /* confdefs.h. */
18428 _ACEOF
18429 cat confdefs.h >>conftest.$ac_ext
18430 cat >>conftest.$ac_ext <<_ACEOF
18431 /* end confdefs.h. */
18433 /* Override any gcc2 internal prototype to avoid an error. */
18434 #ifdef __cplusplus
18435 extern "C"
18436 #endif
18437 /* We use char because int might match the return type of a gcc2
18438 builtin and then its argument prototype would still apply. */
18439 char mit_des_cbc_encrypt ();
18441 main ()
18443 mit_des_cbc_encrypt ();
18445 return 0;
18447 _ACEOF
18448 rm -f conftest.$ac_objext conftest$ac_exeext
18449 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18450 (eval $ac_link) 2>conftest.er1
18451 ac_status=$?
18452 grep -v '^ *+' conftest.er1 >conftest.err
18453 rm -f conftest.er1
18454 cat conftest.err >&5
18455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18456 (exit $ac_status); } &&
18457 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18459 (eval $ac_try) 2>&5
18460 ac_status=$?
18461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18462 (exit $ac_status); }; } &&
18463 { ac_try='test -s conftest$ac_exeext'
18464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18465 (eval $ac_try) 2>&5
18466 ac_status=$?
18467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18468 (exit $ac_status); }; }; then
18469 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
18470 else
18471 echo "$as_me: failed program was:" >&5
18472 sed 's/^/| /' conftest.$ac_ext >&5
18474 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
18476 rm -f conftest.err conftest.$ac_objext \
18477 conftest$ac_exeext conftest.$ac_ext
18478 LIBS=$ac_check_lib_save_LIBS
18480 echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
18481 echo "${ECHO_T}$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6
18482 if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then
18483 cat >>confdefs.h <<_ACEOF
18484 #define HAVE_LIBK5CRYPTO 1
18485 _ACEOF
18487 LIBS="-lk5crypto $LIBS"
18492 echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lcrypto" >&5
18493 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lcrypto... $ECHO_C" >&6
18494 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
18495 echo $ECHO_N "(cached) $ECHO_C" >&6
18496 else
18497 ac_check_lib_save_LIBS=$LIBS
18498 LIBS="-lcrypto $LIBS"
18499 cat >conftest.$ac_ext <<_ACEOF
18500 /* confdefs.h. */
18501 _ACEOF
18502 cat confdefs.h >>conftest.$ac_ext
18503 cat >>conftest.$ac_ext <<_ACEOF
18504 /* end confdefs.h. */
18506 /* Override any gcc2 internal prototype to avoid an error. */
18507 #ifdef __cplusplus
18508 extern "C"
18509 #endif
18510 /* We use char because int might match the return type of a gcc2
18511 builtin and then its argument prototype would still apply. */
18512 char mit_des_cbc_encrypt ();
18514 main ()
18516 mit_des_cbc_encrypt ();
18518 return 0;
18520 _ACEOF
18521 rm -f conftest.$ac_objext conftest$ac_exeext
18522 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18523 (eval $ac_link) 2>conftest.er1
18524 ac_status=$?
18525 grep -v '^ *+' conftest.er1 >conftest.err
18526 rm -f conftest.er1
18527 cat conftest.err >&5
18528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18529 (exit $ac_status); } &&
18530 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18532 (eval $ac_try) 2>&5
18533 ac_status=$?
18534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18535 (exit $ac_status); }; } &&
18536 { ac_try='test -s conftest$ac_exeext'
18537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18538 (eval $ac_try) 2>&5
18539 ac_status=$?
18540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18541 (exit $ac_status); }; }; then
18542 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
18543 else
18544 echo "$as_me: failed program was:" >&5
18545 sed 's/^/| /' conftest.$ac_ext >&5
18547 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
18549 rm -f conftest.err conftest.$ac_objext \
18550 conftest$ac_exeext conftest.$ac_ext
18551 LIBS=$ac_check_lib_save_LIBS
18553 echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
18554 echo "${ECHO_T}$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6
18555 if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then
18556 cat >>confdefs.h <<_ACEOF
18557 #define HAVE_LIBCRYPTO 1
18558 _ACEOF
18560 LIBS="-lcrypto $LIBS"
18565 echo "$as_me:$LINENO: checking for krb5_init_context in -lkrb5" >&5
18566 echo $ECHO_N "checking for krb5_init_context in -lkrb5... $ECHO_C" >&6
18567 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
18568 echo $ECHO_N "(cached) $ECHO_C" >&6
18569 else
18570 ac_check_lib_save_LIBS=$LIBS
18571 LIBS="-lkrb5 $LIBS"
18572 cat >conftest.$ac_ext <<_ACEOF
18573 /* confdefs.h. */
18574 _ACEOF
18575 cat confdefs.h >>conftest.$ac_ext
18576 cat >>conftest.$ac_ext <<_ACEOF
18577 /* end confdefs.h. */
18579 /* Override any gcc2 internal prototype to avoid an error. */
18580 #ifdef __cplusplus
18581 extern "C"
18582 #endif
18583 /* We use char because int might match the return type of a gcc2
18584 builtin and then its argument prototype would still apply. */
18585 char krb5_init_context ();
18587 main ()
18589 krb5_init_context ();
18591 return 0;
18593 _ACEOF
18594 rm -f conftest.$ac_objext conftest$ac_exeext
18595 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18596 (eval $ac_link) 2>conftest.er1
18597 ac_status=$?
18598 grep -v '^ *+' conftest.er1 >conftest.err
18599 rm -f conftest.er1
18600 cat conftest.err >&5
18601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18602 (exit $ac_status); } &&
18603 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18605 (eval $ac_try) 2>&5
18606 ac_status=$?
18607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18608 (exit $ac_status); }; } &&
18609 { ac_try='test -s conftest$ac_exeext'
18610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18611 (eval $ac_try) 2>&5
18612 ac_status=$?
18613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18614 (exit $ac_status); }; }; then
18615 ac_cv_lib_krb5_krb5_init_context=yes
18616 else
18617 echo "$as_me: failed program was:" >&5
18618 sed 's/^/| /' conftest.$ac_ext >&5
18620 ac_cv_lib_krb5_krb5_init_context=no
18622 rm -f conftest.err conftest.$ac_objext \
18623 conftest$ac_exeext conftest.$ac_ext
18624 LIBS=$ac_check_lib_save_LIBS
18626 echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_krb5_init_context" >&5
18627 echo "${ECHO_T}$ac_cv_lib_krb5_krb5_init_context" >&6
18628 if test $ac_cv_lib_krb5_krb5_init_context = yes; then
18629 cat >>confdefs.h <<_ACEOF
18630 #define HAVE_LIBKRB5 1
18631 _ACEOF
18633 LIBS="-lkrb5 $LIBS"
18637 if test "${with_kerberos5+set}" != set; then
18639 echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes425" >&5
18640 echo $ECHO_N "checking for des_cbc_encrypt in -ldes425... $ECHO_C" >&6
18641 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
18642 echo $ECHO_N "(cached) $ECHO_C" >&6
18643 else
18644 ac_check_lib_save_LIBS=$LIBS
18645 LIBS="-ldes425 $LIBS"
18646 cat >conftest.$ac_ext <<_ACEOF
18647 /* confdefs.h. */
18648 _ACEOF
18649 cat confdefs.h >>conftest.$ac_ext
18650 cat >>conftest.$ac_ext <<_ACEOF
18651 /* end confdefs.h. */
18653 /* Override any gcc2 internal prototype to avoid an error. */
18654 #ifdef __cplusplus
18655 extern "C"
18656 #endif
18657 /* We use char because int might match the return type of a gcc2
18658 builtin and then its argument prototype would still apply. */
18659 char des_cbc_encrypt ();
18661 main ()
18663 des_cbc_encrypt ();
18665 return 0;
18667 _ACEOF
18668 rm -f conftest.$ac_objext conftest$ac_exeext
18669 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18670 (eval $ac_link) 2>conftest.er1
18671 ac_status=$?
18672 grep -v '^ *+' conftest.er1 >conftest.err
18673 rm -f conftest.er1
18674 cat conftest.err >&5
18675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18676 (exit $ac_status); } &&
18677 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18679 (eval $ac_try) 2>&5
18680 ac_status=$?
18681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18682 (exit $ac_status); }; } &&
18683 { ac_try='test -s conftest$ac_exeext'
18684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18685 (eval $ac_try) 2>&5
18686 ac_status=$?
18687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18688 (exit $ac_status); }; }; then
18689 ac_cv_lib_des425_des_cbc_encrypt=yes
18690 else
18691 echo "$as_me: failed program was:" >&5
18692 sed 's/^/| /' conftest.$ac_ext >&5
18694 ac_cv_lib_des425_des_cbc_encrypt=no
18696 rm -f conftest.err conftest.$ac_objext \
18697 conftest$ac_exeext conftest.$ac_ext
18698 LIBS=$ac_check_lib_save_LIBS
18700 echo "$as_me:$LINENO: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
18701 echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6
18702 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
18703 cat >>confdefs.h <<_ACEOF
18704 #define HAVE_LIBDES425 1
18705 _ACEOF
18707 LIBS="-ldes425 $LIBS"
18709 else
18711 echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes" >&5
18712 echo $ECHO_N "checking for des_cbc_encrypt in -ldes... $ECHO_C" >&6
18713 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
18714 echo $ECHO_N "(cached) $ECHO_C" >&6
18715 else
18716 ac_check_lib_save_LIBS=$LIBS
18717 LIBS="-ldes $LIBS"
18718 cat >conftest.$ac_ext <<_ACEOF
18719 /* confdefs.h. */
18720 _ACEOF
18721 cat confdefs.h >>conftest.$ac_ext
18722 cat >>conftest.$ac_ext <<_ACEOF
18723 /* end confdefs.h. */
18725 /* Override any gcc2 internal prototype to avoid an error. */
18726 #ifdef __cplusplus
18727 extern "C"
18728 #endif
18729 /* We use char because int might match the return type of a gcc2
18730 builtin and then its argument prototype would still apply. */
18731 char des_cbc_encrypt ();
18733 main ()
18735 des_cbc_encrypt ();
18737 return 0;
18739 _ACEOF
18740 rm -f conftest.$ac_objext conftest$ac_exeext
18741 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18742 (eval $ac_link) 2>conftest.er1
18743 ac_status=$?
18744 grep -v '^ *+' conftest.er1 >conftest.err
18745 rm -f conftest.er1
18746 cat conftest.err >&5
18747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18748 (exit $ac_status); } &&
18749 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18751 (eval $ac_try) 2>&5
18752 ac_status=$?
18753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18754 (exit $ac_status); }; } &&
18755 { ac_try='test -s conftest$ac_exeext'
18756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18757 (eval $ac_try) 2>&5
18758 ac_status=$?
18759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18760 (exit $ac_status); }; }; then
18761 ac_cv_lib_des_des_cbc_encrypt=yes
18762 else
18763 echo "$as_me: failed program was:" >&5
18764 sed 's/^/| /' conftest.$ac_ext >&5
18766 ac_cv_lib_des_des_cbc_encrypt=no
18768 rm -f conftest.err conftest.$ac_objext \
18769 conftest$ac_exeext conftest.$ac_ext
18770 LIBS=$ac_check_lib_save_LIBS
18772 echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
18773 echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6
18774 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
18775 cat >>confdefs.h <<_ACEOF
18776 #define HAVE_LIBDES 1
18777 _ACEOF
18779 LIBS="-ldes $LIBS"
18786 echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb4" >&5
18787 echo $ECHO_N "checking for krb_get_cred in -lkrb4... $ECHO_C" >&6
18788 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
18789 echo $ECHO_N "(cached) $ECHO_C" >&6
18790 else
18791 ac_check_lib_save_LIBS=$LIBS
18792 LIBS="-lkrb4 $LIBS"
18793 cat >conftest.$ac_ext <<_ACEOF
18794 /* confdefs.h. */
18795 _ACEOF
18796 cat confdefs.h >>conftest.$ac_ext
18797 cat >>conftest.$ac_ext <<_ACEOF
18798 /* end confdefs.h. */
18800 /* Override any gcc2 internal prototype to avoid an error. */
18801 #ifdef __cplusplus
18802 extern "C"
18803 #endif
18804 /* We use char because int might match the return type of a gcc2
18805 builtin and then its argument prototype would still apply. */
18806 char krb_get_cred ();
18808 main ()
18810 krb_get_cred ();
18812 return 0;
18814 _ACEOF
18815 rm -f conftest.$ac_objext conftest$ac_exeext
18816 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18817 (eval $ac_link) 2>conftest.er1
18818 ac_status=$?
18819 grep -v '^ *+' conftest.er1 >conftest.err
18820 rm -f conftest.er1
18821 cat conftest.err >&5
18822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18823 (exit $ac_status); } &&
18824 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18826 (eval $ac_try) 2>&5
18827 ac_status=$?
18828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18829 (exit $ac_status); }; } &&
18830 { ac_try='test -s conftest$ac_exeext'
18831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18832 (eval $ac_try) 2>&5
18833 ac_status=$?
18834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18835 (exit $ac_status); }; }; then
18836 ac_cv_lib_krb4_krb_get_cred=yes
18837 else
18838 echo "$as_me: failed program was:" >&5
18839 sed 's/^/| /' conftest.$ac_ext >&5
18841 ac_cv_lib_krb4_krb_get_cred=no
18843 rm -f conftest.err conftest.$ac_objext \
18844 conftest$ac_exeext conftest.$ac_ext
18845 LIBS=$ac_check_lib_save_LIBS
18847 echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_krb_get_cred" >&5
18848 echo "${ECHO_T}$ac_cv_lib_krb4_krb_get_cred" >&6
18849 if test $ac_cv_lib_krb4_krb_get_cred = yes; then
18850 cat >>confdefs.h <<_ACEOF
18851 #define HAVE_LIBKRB4 1
18852 _ACEOF
18854 LIBS="-lkrb4 $LIBS"
18856 else
18858 echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb" >&5
18859 echo $ECHO_N "checking for krb_get_cred in -lkrb... $ECHO_C" >&6
18860 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
18861 echo $ECHO_N "(cached) $ECHO_C" >&6
18862 else
18863 ac_check_lib_save_LIBS=$LIBS
18864 LIBS="-lkrb $LIBS"
18865 cat >conftest.$ac_ext <<_ACEOF
18866 /* confdefs.h. */
18867 _ACEOF
18868 cat confdefs.h >>conftest.$ac_ext
18869 cat >>conftest.$ac_ext <<_ACEOF
18870 /* end confdefs.h. */
18872 /* Override any gcc2 internal prototype to avoid an error. */
18873 #ifdef __cplusplus
18874 extern "C"
18875 #endif
18876 /* We use char because int might match the return type of a gcc2
18877 builtin and then its argument prototype would still apply. */
18878 char krb_get_cred ();
18880 main ()
18882 krb_get_cred ();
18884 return 0;
18886 _ACEOF
18887 rm -f conftest.$ac_objext conftest$ac_exeext
18888 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18889 (eval $ac_link) 2>conftest.er1
18890 ac_status=$?
18891 grep -v '^ *+' conftest.er1 >conftest.err
18892 rm -f conftest.er1
18893 cat conftest.err >&5
18894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18895 (exit $ac_status); } &&
18896 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18898 (eval $ac_try) 2>&5
18899 ac_status=$?
18900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18901 (exit $ac_status); }; } &&
18902 { ac_try='test -s conftest$ac_exeext'
18903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18904 (eval $ac_try) 2>&5
18905 ac_status=$?
18906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18907 (exit $ac_status); }; }; then
18908 ac_cv_lib_krb_krb_get_cred=yes
18909 else
18910 echo "$as_me: failed program was:" >&5
18911 sed 's/^/| /' conftest.$ac_ext >&5
18913 ac_cv_lib_krb_krb_get_cred=no
18915 rm -f conftest.err conftest.$ac_objext \
18916 conftest$ac_exeext conftest.$ac_ext
18917 LIBS=$ac_check_lib_save_LIBS
18919 echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_get_cred" >&5
18920 echo "${ECHO_T}$ac_cv_lib_krb_krb_get_cred" >&6
18921 if test $ac_cv_lib_krb_krb_get_cred = yes; then
18922 cat >>confdefs.h <<_ACEOF
18923 #define HAVE_LIBKRB 1
18924 _ACEOF
18926 LIBS="-lkrb $LIBS"
18934 if test "${with_kerberos5+set}" = set; then
18936 for ac_header in krb5.h
18938 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18939 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18940 echo "$as_me:$LINENO: checking for $ac_header" >&5
18941 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18942 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18943 echo $ECHO_N "(cached) $ECHO_C" >&6
18945 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18946 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18947 else
18948 # Is the header compilable?
18949 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18950 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18951 cat >conftest.$ac_ext <<_ACEOF
18952 /* confdefs.h. */
18953 _ACEOF
18954 cat confdefs.h >>conftest.$ac_ext
18955 cat >>conftest.$ac_ext <<_ACEOF
18956 /* end confdefs.h. */
18957 $ac_includes_default
18958 #include <$ac_header>
18959 _ACEOF
18960 rm -f conftest.$ac_objext
18961 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18962 (eval $ac_compile) 2>conftest.er1
18963 ac_status=$?
18964 grep -v '^ *+' conftest.er1 >conftest.err
18965 rm -f conftest.er1
18966 cat conftest.err >&5
18967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18968 (exit $ac_status); } &&
18969 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18971 (eval $ac_try) 2>&5
18972 ac_status=$?
18973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18974 (exit $ac_status); }; } &&
18975 { ac_try='test -s conftest.$ac_objext'
18976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18977 (eval $ac_try) 2>&5
18978 ac_status=$?
18979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18980 (exit $ac_status); }; }; then
18981 ac_header_compiler=yes
18982 else
18983 echo "$as_me: failed program was:" >&5
18984 sed 's/^/| /' conftest.$ac_ext >&5
18986 ac_header_compiler=no
18988 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18989 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18990 echo "${ECHO_T}$ac_header_compiler" >&6
18992 # Is the header present?
18993 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18994 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18995 cat >conftest.$ac_ext <<_ACEOF
18996 /* confdefs.h. */
18997 _ACEOF
18998 cat confdefs.h >>conftest.$ac_ext
18999 cat >>conftest.$ac_ext <<_ACEOF
19000 /* end confdefs.h. */
19001 #include <$ac_header>
19002 _ACEOF
19003 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19004 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19005 ac_status=$?
19006 grep -v '^ *+' conftest.er1 >conftest.err
19007 rm -f conftest.er1
19008 cat conftest.err >&5
19009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19010 (exit $ac_status); } >/dev/null; then
19011 if test -s conftest.err; then
19012 ac_cpp_err=$ac_c_preproc_warn_flag
19013 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19014 else
19015 ac_cpp_err=
19017 else
19018 ac_cpp_err=yes
19020 if test -z "$ac_cpp_err"; then
19021 ac_header_preproc=yes
19022 else
19023 echo "$as_me: failed program was:" >&5
19024 sed 's/^/| /' conftest.$ac_ext >&5
19026 ac_header_preproc=no
19028 rm -f conftest.err conftest.$ac_ext
19029 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19030 echo "${ECHO_T}$ac_header_preproc" >&6
19032 # So? What about this header?
19033 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19034 yes:no: )
19035 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19036 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19037 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19038 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19039 ac_header_preproc=yes
19041 no:yes:* )
19042 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19043 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19044 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19045 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19046 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19047 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19048 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19049 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19050 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19051 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19052 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19053 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19055 cat <<\_ASBOX
19056 ## ------------------------------------------ ##
19057 ## Report this to the AC_PACKAGE_NAME lists. ##
19058 ## ------------------------------------------ ##
19059 _ASBOX
19061 sed "s/^/$as_me: WARNING: /" >&2
19063 esac
19064 echo "$as_me:$LINENO: checking for $ac_header" >&5
19065 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19066 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19067 echo $ECHO_N "(cached) $ECHO_C" >&6
19068 else
19069 eval "$as_ac_Header=\$ac_header_preproc"
19071 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19072 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19075 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19076 cat >>confdefs.h <<_ACEOF
19077 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19078 _ACEOF
19082 done
19084 else
19086 for ac_header in des.h
19088 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19089 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19090 echo "$as_me:$LINENO: checking for $ac_header" >&5
19091 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19092 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19093 echo $ECHO_N "(cached) $ECHO_C" >&6
19095 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19096 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19097 else
19098 # Is the header compilable?
19099 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19100 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19101 cat >conftest.$ac_ext <<_ACEOF
19102 /* confdefs.h. */
19103 _ACEOF
19104 cat confdefs.h >>conftest.$ac_ext
19105 cat >>conftest.$ac_ext <<_ACEOF
19106 /* end confdefs.h. */
19107 $ac_includes_default
19108 #include <$ac_header>
19109 _ACEOF
19110 rm -f conftest.$ac_objext
19111 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19112 (eval $ac_compile) 2>conftest.er1
19113 ac_status=$?
19114 grep -v '^ *+' conftest.er1 >conftest.err
19115 rm -f conftest.er1
19116 cat conftest.err >&5
19117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19118 (exit $ac_status); } &&
19119 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19121 (eval $ac_try) 2>&5
19122 ac_status=$?
19123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19124 (exit $ac_status); }; } &&
19125 { ac_try='test -s conftest.$ac_objext'
19126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19127 (eval $ac_try) 2>&5
19128 ac_status=$?
19129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19130 (exit $ac_status); }; }; then
19131 ac_header_compiler=yes
19132 else
19133 echo "$as_me: failed program was:" >&5
19134 sed 's/^/| /' conftest.$ac_ext >&5
19136 ac_header_compiler=no
19138 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19139 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19140 echo "${ECHO_T}$ac_header_compiler" >&6
19142 # Is the header present?
19143 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19144 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19145 cat >conftest.$ac_ext <<_ACEOF
19146 /* confdefs.h. */
19147 _ACEOF
19148 cat confdefs.h >>conftest.$ac_ext
19149 cat >>conftest.$ac_ext <<_ACEOF
19150 /* end confdefs.h. */
19151 #include <$ac_header>
19152 _ACEOF
19153 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19154 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19155 ac_status=$?
19156 grep -v '^ *+' conftest.er1 >conftest.err
19157 rm -f conftest.er1
19158 cat conftest.err >&5
19159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19160 (exit $ac_status); } >/dev/null; then
19161 if test -s conftest.err; then
19162 ac_cpp_err=$ac_c_preproc_warn_flag
19163 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19164 else
19165 ac_cpp_err=
19167 else
19168 ac_cpp_err=yes
19170 if test -z "$ac_cpp_err"; then
19171 ac_header_preproc=yes
19172 else
19173 echo "$as_me: failed program was:" >&5
19174 sed 's/^/| /' conftest.$ac_ext >&5
19176 ac_header_preproc=no
19178 rm -f conftest.err conftest.$ac_ext
19179 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19180 echo "${ECHO_T}$ac_header_preproc" >&6
19182 # So? What about this header?
19183 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19184 yes:no: )
19185 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19186 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19187 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19188 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19189 ac_header_preproc=yes
19191 no:yes:* )
19192 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19193 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19194 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19195 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19196 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19197 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19198 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19199 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19200 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19201 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19202 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19203 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19205 cat <<\_ASBOX
19206 ## ------------------------------------------ ##
19207 ## Report this to the AC_PACKAGE_NAME lists. ##
19208 ## ------------------------------------------ ##
19209 _ASBOX
19211 sed "s/^/$as_me: WARNING: /" >&2
19213 esac
19214 echo "$as_me:$LINENO: checking for $ac_header" >&5
19215 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19216 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19217 echo $ECHO_N "(cached) $ECHO_C" >&6
19218 else
19219 eval "$as_ac_Header=\$ac_header_preproc"
19221 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19222 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19225 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19226 cat >>confdefs.h <<_ACEOF
19227 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19228 _ACEOF
19230 else
19232 for ac_header in kerberosIV/des.h
19234 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19235 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19236 echo "$as_me:$LINENO: checking for $ac_header" >&5
19237 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19238 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19239 echo $ECHO_N "(cached) $ECHO_C" >&6
19241 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19242 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19243 else
19244 # Is the header compilable?
19245 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19246 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19247 cat >conftest.$ac_ext <<_ACEOF
19248 /* confdefs.h. */
19249 _ACEOF
19250 cat confdefs.h >>conftest.$ac_ext
19251 cat >>conftest.$ac_ext <<_ACEOF
19252 /* end confdefs.h. */
19253 $ac_includes_default
19254 #include <$ac_header>
19255 _ACEOF
19256 rm -f conftest.$ac_objext
19257 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19258 (eval $ac_compile) 2>conftest.er1
19259 ac_status=$?
19260 grep -v '^ *+' conftest.er1 >conftest.err
19261 rm -f conftest.er1
19262 cat conftest.err >&5
19263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19264 (exit $ac_status); } &&
19265 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19267 (eval $ac_try) 2>&5
19268 ac_status=$?
19269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19270 (exit $ac_status); }; } &&
19271 { ac_try='test -s conftest.$ac_objext'
19272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19273 (eval $ac_try) 2>&5
19274 ac_status=$?
19275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19276 (exit $ac_status); }; }; then
19277 ac_header_compiler=yes
19278 else
19279 echo "$as_me: failed program was:" >&5
19280 sed 's/^/| /' conftest.$ac_ext >&5
19282 ac_header_compiler=no
19284 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19285 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19286 echo "${ECHO_T}$ac_header_compiler" >&6
19288 # Is the header present?
19289 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19290 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19291 cat >conftest.$ac_ext <<_ACEOF
19292 /* confdefs.h. */
19293 _ACEOF
19294 cat confdefs.h >>conftest.$ac_ext
19295 cat >>conftest.$ac_ext <<_ACEOF
19296 /* end confdefs.h. */
19297 #include <$ac_header>
19298 _ACEOF
19299 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19300 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19301 ac_status=$?
19302 grep -v '^ *+' conftest.er1 >conftest.err
19303 rm -f conftest.er1
19304 cat conftest.err >&5
19305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19306 (exit $ac_status); } >/dev/null; then
19307 if test -s conftest.err; then
19308 ac_cpp_err=$ac_c_preproc_warn_flag
19309 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19310 else
19311 ac_cpp_err=
19313 else
19314 ac_cpp_err=yes
19316 if test -z "$ac_cpp_err"; then
19317 ac_header_preproc=yes
19318 else
19319 echo "$as_me: failed program was:" >&5
19320 sed 's/^/| /' conftest.$ac_ext >&5
19322 ac_header_preproc=no
19324 rm -f conftest.err conftest.$ac_ext
19325 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19326 echo "${ECHO_T}$ac_header_preproc" >&6
19328 # So? What about this header?
19329 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19330 yes:no: )
19331 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19332 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19333 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19334 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19335 ac_header_preproc=yes
19337 no:yes:* )
19338 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19339 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19340 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19341 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19342 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19343 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19344 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19345 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19346 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19347 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19348 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19349 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19351 cat <<\_ASBOX
19352 ## ------------------------------------------ ##
19353 ## Report this to the AC_PACKAGE_NAME lists. ##
19354 ## ------------------------------------------ ##
19355 _ASBOX
19357 sed "s/^/$as_me: WARNING: /" >&2
19359 esac
19360 echo "$as_me:$LINENO: checking for $ac_header" >&5
19361 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19362 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19363 echo $ECHO_N "(cached) $ECHO_C" >&6
19364 else
19365 eval "$as_ac_Header=\$ac_header_preproc"
19367 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19368 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19371 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19372 cat >>confdefs.h <<_ACEOF
19373 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19374 _ACEOF
19376 else
19378 for ac_header in kerberos/des.h
19380 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19381 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19382 echo "$as_me:$LINENO: checking for $ac_header" >&5
19383 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19384 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19385 echo $ECHO_N "(cached) $ECHO_C" >&6
19387 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19388 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19389 else
19390 # Is the header compilable?
19391 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19392 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19393 cat >conftest.$ac_ext <<_ACEOF
19394 /* confdefs.h. */
19395 _ACEOF
19396 cat confdefs.h >>conftest.$ac_ext
19397 cat >>conftest.$ac_ext <<_ACEOF
19398 /* end confdefs.h. */
19399 $ac_includes_default
19400 #include <$ac_header>
19401 _ACEOF
19402 rm -f conftest.$ac_objext
19403 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19404 (eval $ac_compile) 2>conftest.er1
19405 ac_status=$?
19406 grep -v '^ *+' conftest.er1 >conftest.err
19407 rm -f conftest.er1
19408 cat conftest.err >&5
19409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19410 (exit $ac_status); } &&
19411 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19413 (eval $ac_try) 2>&5
19414 ac_status=$?
19415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19416 (exit $ac_status); }; } &&
19417 { ac_try='test -s conftest.$ac_objext'
19418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19419 (eval $ac_try) 2>&5
19420 ac_status=$?
19421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19422 (exit $ac_status); }; }; then
19423 ac_header_compiler=yes
19424 else
19425 echo "$as_me: failed program was:" >&5
19426 sed 's/^/| /' conftest.$ac_ext >&5
19428 ac_header_compiler=no
19430 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19431 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19432 echo "${ECHO_T}$ac_header_compiler" >&6
19434 # Is the header present?
19435 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19436 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19437 cat >conftest.$ac_ext <<_ACEOF
19438 /* confdefs.h. */
19439 _ACEOF
19440 cat confdefs.h >>conftest.$ac_ext
19441 cat >>conftest.$ac_ext <<_ACEOF
19442 /* end confdefs.h. */
19443 #include <$ac_header>
19444 _ACEOF
19445 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19446 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19447 ac_status=$?
19448 grep -v '^ *+' conftest.er1 >conftest.err
19449 rm -f conftest.er1
19450 cat conftest.err >&5
19451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19452 (exit $ac_status); } >/dev/null; then
19453 if test -s conftest.err; then
19454 ac_cpp_err=$ac_c_preproc_warn_flag
19455 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19456 else
19457 ac_cpp_err=
19459 else
19460 ac_cpp_err=yes
19462 if test -z "$ac_cpp_err"; then
19463 ac_header_preproc=yes
19464 else
19465 echo "$as_me: failed program was:" >&5
19466 sed 's/^/| /' conftest.$ac_ext >&5
19468 ac_header_preproc=no
19470 rm -f conftest.err conftest.$ac_ext
19471 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19472 echo "${ECHO_T}$ac_header_preproc" >&6
19474 # So? What about this header?
19475 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19476 yes:no: )
19477 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19478 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19479 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19480 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19481 ac_header_preproc=yes
19483 no:yes:* )
19484 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19485 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19486 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19487 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19488 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19489 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19490 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19491 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19492 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19493 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19494 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19495 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19497 cat <<\_ASBOX
19498 ## ------------------------------------------ ##
19499 ## Report this to the AC_PACKAGE_NAME lists. ##
19500 ## ------------------------------------------ ##
19501 _ASBOX
19503 sed "s/^/$as_me: WARNING: /" >&2
19505 esac
19506 echo "$as_me:$LINENO: checking for $ac_header" >&5
19507 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19508 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19509 echo $ECHO_N "(cached) $ECHO_C" >&6
19510 else
19511 eval "$as_ac_Header=\$ac_header_preproc"
19513 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19514 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19517 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19518 cat >>confdefs.h <<_ACEOF
19519 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19520 _ACEOF
19524 done
19528 done
19532 done
19535 for ac_header in krb.h
19537 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19538 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19539 echo "$as_me:$LINENO: checking for $ac_header" >&5
19540 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19541 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19542 echo $ECHO_N "(cached) $ECHO_C" >&6
19544 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19545 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19546 else
19547 # Is the header compilable?
19548 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19549 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19550 cat >conftest.$ac_ext <<_ACEOF
19551 /* confdefs.h. */
19552 _ACEOF
19553 cat confdefs.h >>conftest.$ac_ext
19554 cat >>conftest.$ac_ext <<_ACEOF
19555 /* end confdefs.h. */
19556 $ac_includes_default
19557 #include <$ac_header>
19558 _ACEOF
19559 rm -f conftest.$ac_objext
19560 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19561 (eval $ac_compile) 2>conftest.er1
19562 ac_status=$?
19563 grep -v '^ *+' conftest.er1 >conftest.err
19564 rm -f conftest.er1
19565 cat conftest.err >&5
19566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19567 (exit $ac_status); } &&
19568 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19570 (eval $ac_try) 2>&5
19571 ac_status=$?
19572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19573 (exit $ac_status); }; } &&
19574 { ac_try='test -s conftest.$ac_objext'
19575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19576 (eval $ac_try) 2>&5
19577 ac_status=$?
19578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19579 (exit $ac_status); }; }; then
19580 ac_header_compiler=yes
19581 else
19582 echo "$as_me: failed program was:" >&5
19583 sed 's/^/| /' conftest.$ac_ext >&5
19585 ac_header_compiler=no
19587 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19588 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19589 echo "${ECHO_T}$ac_header_compiler" >&6
19591 # Is the header present?
19592 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19593 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19594 cat >conftest.$ac_ext <<_ACEOF
19595 /* confdefs.h. */
19596 _ACEOF
19597 cat confdefs.h >>conftest.$ac_ext
19598 cat >>conftest.$ac_ext <<_ACEOF
19599 /* end confdefs.h. */
19600 #include <$ac_header>
19601 _ACEOF
19602 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19603 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19604 ac_status=$?
19605 grep -v '^ *+' conftest.er1 >conftest.err
19606 rm -f conftest.er1
19607 cat conftest.err >&5
19608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19609 (exit $ac_status); } >/dev/null; then
19610 if test -s conftest.err; then
19611 ac_cpp_err=$ac_c_preproc_warn_flag
19612 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19613 else
19614 ac_cpp_err=
19616 else
19617 ac_cpp_err=yes
19619 if test -z "$ac_cpp_err"; then
19620 ac_header_preproc=yes
19621 else
19622 echo "$as_me: failed program was:" >&5
19623 sed 's/^/| /' conftest.$ac_ext >&5
19625 ac_header_preproc=no
19627 rm -f conftest.err conftest.$ac_ext
19628 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19629 echo "${ECHO_T}$ac_header_preproc" >&6
19631 # So? What about this header?
19632 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19633 yes:no: )
19634 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19635 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19636 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19637 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19638 ac_header_preproc=yes
19640 no:yes:* )
19641 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19642 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19643 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19644 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19645 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19646 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19647 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19648 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19649 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19650 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19651 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19652 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19654 cat <<\_ASBOX
19655 ## ------------------------------------------ ##
19656 ## Report this to the AC_PACKAGE_NAME lists. ##
19657 ## ------------------------------------------ ##
19658 _ASBOX
19660 sed "s/^/$as_me: WARNING: /" >&2
19662 esac
19663 echo "$as_me:$LINENO: checking for $ac_header" >&5
19664 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19665 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19666 echo $ECHO_N "(cached) $ECHO_C" >&6
19667 else
19668 eval "$as_ac_Header=\$ac_header_preproc"
19670 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19671 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19674 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19675 cat >>confdefs.h <<_ACEOF
19676 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19677 _ACEOF
19679 else
19681 for ac_header in kerberosIV/krb.h
19683 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19684 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19685 echo "$as_me:$LINENO: checking for $ac_header" >&5
19686 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19687 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19688 echo $ECHO_N "(cached) $ECHO_C" >&6
19690 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19691 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19692 else
19693 # Is the header compilable?
19694 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19695 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19696 cat >conftest.$ac_ext <<_ACEOF
19697 /* confdefs.h. */
19698 _ACEOF
19699 cat confdefs.h >>conftest.$ac_ext
19700 cat >>conftest.$ac_ext <<_ACEOF
19701 /* end confdefs.h. */
19702 $ac_includes_default
19703 #include <$ac_header>
19704 _ACEOF
19705 rm -f conftest.$ac_objext
19706 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19707 (eval $ac_compile) 2>conftest.er1
19708 ac_status=$?
19709 grep -v '^ *+' conftest.er1 >conftest.err
19710 rm -f conftest.er1
19711 cat conftest.err >&5
19712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19713 (exit $ac_status); } &&
19714 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19716 (eval $ac_try) 2>&5
19717 ac_status=$?
19718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19719 (exit $ac_status); }; } &&
19720 { ac_try='test -s conftest.$ac_objext'
19721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19722 (eval $ac_try) 2>&5
19723 ac_status=$?
19724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19725 (exit $ac_status); }; }; then
19726 ac_header_compiler=yes
19727 else
19728 echo "$as_me: failed program was:" >&5
19729 sed 's/^/| /' conftest.$ac_ext >&5
19731 ac_header_compiler=no
19733 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19734 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19735 echo "${ECHO_T}$ac_header_compiler" >&6
19737 # Is the header present?
19738 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19739 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19740 cat >conftest.$ac_ext <<_ACEOF
19741 /* confdefs.h. */
19742 _ACEOF
19743 cat confdefs.h >>conftest.$ac_ext
19744 cat >>conftest.$ac_ext <<_ACEOF
19745 /* end confdefs.h. */
19746 #include <$ac_header>
19747 _ACEOF
19748 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19749 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19750 ac_status=$?
19751 grep -v '^ *+' conftest.er1 >conftest.err
19752 rm -f conftest.er1
19753 cat conftest.err >&5
19754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19755 (exit $ac_status); } >/dev/null; then
19756 if test -s conftest.err; then
19757 ac_cpp_err=$ac_c_preproc_warn_flag
19758 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19759 else
19760 ac_cpp_err=
19762 else
19763 ac_cpp_err=yes
19765 if test -z "$ac_cpp_err"; then
19766 ac_header_preproc=yes
19767 else
19768 echo "$as_me: failed program was:" >&5
19769 sed 's/^/| /' conftest.$ac_ext >&5
19771 ac_header_preproc=no
19773 rm -f conftest.err conftest.$ac_ext
19774 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19775 echo "${ECHO_T}$ac_header_preproc" >&6
19777 # So? What about this header?
19778 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19779 yes:no: )
19780 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19781 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19782 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19783 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19784 ac_header_preproc=yes
19786 no:yes:* )
19787 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19788 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19789 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19790 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19791 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19792 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19793 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19794 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19795 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19796 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19797 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19798 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19800 cat <<\_ASBOX
19801 ## ------------------------------------------ ##
19802 ## Report this to the AC_PACKAGE_NAME lists. ##
19803 ## ------------------------------------------ ##
19804 _ASBOX
19806 sed "s/^/$as_me: WARNING: /" >&2
19808 esac
19809 echo "$as_me:$LINENO: checking for $ac_header" >&5
19810 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19811 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19812 echo $ECHO_N "(cached) $ECHO_C" >&6
19813 else
19814 eval "$as_ac_Header=\$ac_header_preproc"
19816 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19817 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19820 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19821 cat >>confdefs.h <<_ACEOF
19822 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19823 _ACEOF
19825 else
19827 for ac_header in kerberos/krb.h
19829 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19830 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19831 echo "$as_me:$LINENO: checking for $ac_header" >&5
19832 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19833 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19834 echo $ECHO_N "(cached) $ECHO_C" >&6
19836 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19837 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19838 else
19839 # Is the header compilable?
19840 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19841 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19842 cat >conftest.$ac_ext <<_ACEOF
19843 /* confdefs.h. */
19844 _ACEOF
19845 cat confdefs.h >>conftest.$ac_ext
19846 cat >>conftest.$ac_ext <<_ACEOF
19847 /* end confdefs.h. */
19848 $ac_includes_default
19849 #include <$ac_header>
19850 _ACEOF
19851 rm -f conftest.$ac_objext
19852 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19853 (eval $ac_compile) 2>conftest.er1
19854 ac_status=$?
19855 grep -v '^ *+' conftest.er1 >conftest.err
19856 rm -f conftest.er1
19857 cat conftest.err >&5
19858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19859 (exit $ac_status); } &&
19860 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19862 (eval $ac_try) 2>&5
19863 ac_status=$?
19864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19865 (exit $ac_status); }; } &&
19866 { ac_try='test -s conftest.$ac_objext'
19867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19868 (eval $ac_try) 2>&5
19869 ac_status=$?
19870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19871 (exit $ac_status); }; }; then
19872 ac_header_compiler=yes
19873 else
19874 echo "$as_me: failed program was:" >&5
19875 sed 's/^/| /' conftest.$ac_ext >&5
19877 ac_header_compiler=no
19879 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19880 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19881 echo "${ECHO_T}$ac_header_compiler" >&6
19883 # Is the header present?
19884 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19885 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19886 cat >conftest.$ac_ext <<_ACEOF
19887 /* confdefs.h. */
19888 _ACEOF
19889 cat confdefs.h >>conftest.$ac_ext
19890 cat >>conftest.$ac_ext <<_ACEOF
19891 /* end confdefs.h. */
19892 #include <$ac_header>
19893 _ACEOF
19894 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19895 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19896 ac_status=$?
19897 grep -v '^ *+' conftest.er1 >conftest.err
19898 rm -f conftest.er1
19899 cat conftest.err >&5
19900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19901 (exit $ac_status); } >/dev/null; then
19902 if test -s conftest.err; then
19903 ac_cpp_err=$ac_c_preproc_warn_flag
19904 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19905 else
19906 ac_cpp_err=
19908 else
19909 ac_cpp_err=yes
19911 if test -z "$ac_cpp_err"; then
19912 ac_header_preproc=yes
19913 else
19914 echo "$as_me: failed program was:" >&5
19915 sed 's/^/| /' conftest.$ac_ext >&5
19917 ac_header_preproc=no
19919 rm -f conftest.err conftest.$ac_ext
19920 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19921 echo "${ECHO_T}$ac_header_preproc" >&6
19923 # So? What about this header?
19924 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19925 yes:no: )
19926 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19927 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19928 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19929 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19930 ac_header_preproc=yes
19932 no:yes:* )
19933 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19934 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19935 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19936 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19937 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19938 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19939 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19940 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19941 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19942 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19943 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19944 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19946 cat <<\_ASBOX
19947 ## ------------------------------------------ ##
19948 ## Report this to the AC_PACKAGE_NAME lists. ##
19949 ## ------------------------------------------ ##
19950 _ASBOX
19952 sed "s/^/$as_me: WARNING: /" >&2
19954 esac
19955 echo "$as_me:$LINENO: checking for $ac_header" >&5
19956 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19957 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19958 echo $ECHO_N "(cached) $ECHO_C" >&6
19959 else
19960 eval "$as_ac_Header=\$ac_header_preproc"
19962 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19963 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19966 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19967 cat >>confdefs.h <<_ACEOF
19968 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19969 _ACEOF
19973 done
19977 done
19981 done
19985 for ac_header in com_err.h
19987 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19988 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19989 echo "$as_me:$LINENO: checking for $ac_header" >&5
19990 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19991 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19992 echo $ECHO_N "(cached) $ECHO_C" >&6
19994 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19995 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19996 else
19997 # Is the header compilable?
19998 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19999 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20000 cat >conftest.$ac_ext <<_ACEOF
20001 /* confdefs.h. */
20002 _ACEOF
20003 cat confdefs.h >>conftest.$ac_ext
20004 cat >>conftest.$ac_ext <<_ACEOF
20005 /* end confdefs.h. */
20006 $ac_includes_default
20007 #include <$ac_header>
20008 _ACEOF
20009 rm -f conftest.$ac_objext
20010 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20011 (eval $ac_compile) 2>conftest.er1
20012 ac_status=$?
20013 grep -v '^ *+' conftest.er1 >conftest.err
20014 rm -f conftest.er1
20015 cat conftest.err >&5
20016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20017 (exit $ac_status); } &&
20018 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20020 (eval $ac_try) 2>&5
20021 ac_status=$?
20022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20023 (exit $ac_status); }; } &&
20024 { ac_try='test -s conftest.$ac_objext'
20025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20026 (eval $ac_try) 2>&5
20027 ac_status=$?
20028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20029 (exit $ac_status); }; }; then
20030 ac_header_compiler=yes
20031 else
20032 echo "$as_me: failed program was:" >&5
20033 sed 's/^/| /' conftest.$ac_ext >&5
20035 ac_header_compiler=no
20037 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20038 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20039 echo "${ECHO_T}$ac_header_compiler" >&6
20041 # Is the header present?
20042 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20043 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20044 cat >conftest.$ac_ext <<_ACEOF
20045 /* confdefs.h. */
20046 _ACEOF
20047 cat confdefs.h >>conftest.$ac_ext
20048 cat >>conftest.$ac_ext <<_ACEOF
20049 /* end confdefs.h. */
20050 #include <$ac_header>
20051 _ACEOF
20052 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20053 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20054 ac_status=$?
20055 grep -v '^ *+' conftest.er1 >conftest.err
20056 rm -f conftest.er1
20057 cat conftest.err >&5
20058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20059 (exit $ac_status); } >/dev/null; then
20060 if test -s conftest.err; then
20061 ac_cpp_err=$ac_c_preproc_warn_flag
20062 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20063 else
20064 ac_cpp_err=
20066 else
20067 ac_cpp_err=yes
20069 if test -z "$ac_cpp_err"; then
20070 ac_header_preproc=yes
20071 else
20072 echo "$as_me: failed program was:" >&5
20073 sed 's/^/| /' conftest.$ac_ext >&5
20075 ac_header_preproc=no
20077 rm -f conftest.err conftest.$ac_ext
20078 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20079 echo "${ECHO_T}$ac_header_preproc" >&6
20081 # So? What about this header?
20082 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20083 yes:no: )
20084 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20085 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20086 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20087 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20088 ac_header_preproc=yes
20090 no:yes:* )
20091 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20092 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20093 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20094 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20095 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20096 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20097 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20098 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20099 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20100 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20101 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20102 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20104 cat <<\_ASBOX
20105 ## ------------------------------------------ ##
20106 ## Report this to the AC_PACKAGE_NAME lists. ##
20107 ## ------------------------------------------ ##
20108 _ASBOX
20110 sed "s/^/$as_me: WARNING: /" >&2
20112 esac
20113 echo "$as_me:$LINENO: checking for $ac_header" >&5
20114 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20115 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20116 echo $ECHO_N "(cached) $ECHO_C" >&6
20117 else
20118 eval "$as_ac_Header=\$ac_header_preproc"
20120 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20121 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20124 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20125 cat >>confdefs.h <<_ACEOF
20126 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20127 _ACEOF
20131 done
20135 # Solaris requires -lintl if you want strerror (which calls dgettext)
20136 # to return localized messages.
20138 echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
20139 echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6
20140 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
20141 echo $ECHO_N "(cached) $ECHO_C" >&6
20142 else
20143 ac_check_lib_save_LIBS=$LIBS
20144 LIBS="-lintl $LIBS"
20145 cat >conftest.$ac_ext <<_ACEOF
20146 /* confdefs.h. */
20147 _ACEOF
20148 cat confdefs.h >>conftest.$ac_ext
20149 cat >>conftest.$ac_ext <<_ACEOF
20150 /* end confdefs.h. */
20152 /* Override any gcc2 internal prototype to avoid an error. */
20153 #ifdef __cplusplus
20154 extern "C"
20155 #endif
20156 /* We use char because int might match the return type of a gcc2
20157 builtin and then its argument prototype would still apply. */
20158 char dgettext ();
20160 main ()
20162 dgettext ();
20164 return 0;
20166 _ACEOF
20167 rm -f conftest.$ac_objext conftest$ac_exeext
20168 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20169 (eval $ac_link) 2>conftest.er1
20170 ac_status=$?
20171 grep -v '^ *+' conftest.er1 >conftest.err
20172 rm -f conftest.er1
20173 cat conftest.err >&5
20174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20175 (exit $ac_status); } &&
20176 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20178 (eval $ac_try) 2>&5
20179 ac_status=$?
20180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20181 (exit $ac_status); }; } &&
20182 { ac_try='test -s conftest$ac_exeext'
20183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20184 (eval $ac_try) 2>&5
20185 ac_status=$?
20186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20187 (exit $ac_status); }; }; then
20188 ac_cv_lib_intl_dgettext=yes
20189 else
20190 echo "$as_me: failed program was:" >&5
20191 sed 's/^/| /' conftest.$ac_ext >&5
20193 ac_cv_lib_intl_dgettext=no
20195 rm -f conftest.err conftest.$ac_objext \
20196 conftest$ac_exeext conftest.$ac_ext
20197 LIBS=$ac_check_lib_save_LIBS
20199 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
20200 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6
20201 if test $ac_cv_lib_intl_dgettext = yes; then
20202 cat >>confdefs.h <<_ACEOF
20203 #define HAVE_LIBINTL 1
20204 _ACEOF
20206 LIBS="-lintl $LIBS"
20211 echo "$as_me:$LINENO: checking whether localtime caches TZ" >&5
20212 echo $ECHO_N "checking whether localtime caches TZ... $ECHO_C" >&6
20213 if test "${emacs_cv_localtime_cache+set}" = set; then
20214 echo $ECHO_N "(cached) $ECHO_C" >&6
20215 else
20216 if test x$ac_cv_func_tzset = xyes; then
20217 if test "$cross_compiling" = yes; then
20218 # If we have tzset, assume the worst when cross-compiling.
20219 emacs_cv_localtime_cache=yes
20220 else
20221 cat >conftest.$ac_ext <<_ACEOF
20222 /* confdefs.h. */
20223 _ACEOF
20224 cat confdefs.h >>conftest.$ac_ext
20225 cat >>conftest.$ac_ext <<_ACEOF
20226 /* end confdefs.h. */
20227 #include <time.h>
20228 extern char **environ;
20229 unset_TZ ()
20231 char **from, **to;
20232 for (to = from = environ; (*to = *from); from++)
20233 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
20234 to++;
20236 char TZ_GMT0[] = "TZ=GMT0";
20237 char TZ_PST8[] = "TZ=PST8";
20238 main()
20240 time_t now = time ((time_t *) 0);
20241 int hour_GMT0, hour_unset;
20242 if (putenv (TZ_GMT0) != 0)
20243 exit (1);
20244 hour_GMT0 = localtime (&now)->tm_hour;
20245 unset_TZ ();
20246 hour_unset = localtime (&now)->tm_hour;
20247 if (putenv (TZ_PST8) != 0)
20248 exit (1);
20249 if (localtime (&now)->tm_hour == hour_GMT0)
20250 exit (1);
20251 unset_TZ ();
20252 if (localtime (&now)->tm_hour != hour_unset)
20253 exit (1);
20254 exit (0);
20256 _ACEOF
20257 rm -f conftest$ac_exeext
20258 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20259 (eval $ac_link) 2>&5
20260 ac_status=$?
20261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20262 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20264 (eval $ac_try) 2>&5
20265 ac_status=$?
20266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20267 (exit $ac_status); }; }; then
20268 emacs_cv_localtime_cache=no
20269 else
20270 echo "$as_me: program exited with status $ac_status" >&5
20271 echo "$as_me: failed program was:" >&5
20272 sed 's/^/| /' conftest.$ac_ext >&5
20274 ( exit $ac_status )
20275 emacs_cv_localtime_cache=yes
20277 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20279 else
20280 # If we lack tzset, report that localtime does not cache TZ,
20281 # since we can't invalidate the cache if we don't have tzset.
20282 emacs_cv_localtime_cache=no
20285 echo "$as_me:$LINENO: result: $emacs_cv_localtime_cache" >&5
20286 echo "${ECHO_T}$emacs_cv_localtime_cache" >&6
20287 if test $emacs_cv_localtime_cache = yes; then
20289 cat >>confdefs.h <<\_ACEOF
20290 #define LOCALTIME_CACHE 1
20291 _ACEOF
20295 if test "x$HAVE_TIMEVAL" = xyes; then
20297 for ac_func in gettimeofday
20299 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20300 echo "$as_me:$LINENO: checking for $ac_func" >&5
20301 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20302 if eval "test \"\${$as_ac_var+set}\" = set"; then
20303 echo $ECHO_N "(cached) $ECHO_C" >&6
20304 else
20305 cat >conftest.$ac_ext <<_ACEOF
20306 /* confdefs.h. */
20307 _ACEOF
20308 cat confdefs.h >>conftest.$ac_ext
20309 cat >>conftest.$ac_ext <<_ACEOF
20310 /* end confdefs.h. */
20311 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20312 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20313 #define $ac_func innocuous_$ac_func
20315 /* System header to define __stub macros and hopefully few prototypes,
20316 which can conflict with char $ac_func (); below.
20317 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20318 <limits.h> exists even on freestanding compilers. */
20320 #ifdef __STDC__
20321 # include <limits.h>
20322 #else
20323 # include <assert.h>
20324 #endif
20326 #undef $ac_func
20328 /* Override any gcc2 internal prototype to avoid an error. */
20329 #ifdef __cplusplus
20330 extern "C"
20332 #endif
20333 /* We use char because int might match the return type of a gcc2
20334 builtin and then its argument prototype would still apply. */
20335 char $ac_func ();
20336 /* The GNU C library defines this for functions which it implements
20337 to always fail with ENOSYS. Some functions are actually named
20338 something starting with __ and the normal name is an alias. */
20339 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20340 choke me
20341 #else
20342 char (*f) () = $ac_func;
20343 #endif
20344 #ifdef __cplusplus
20346 #endif
20349 main ()
20351 return f != $ac_func;
20353 return 0;
20355 _ACEOF
20356 rm -f conftest.$ac_objext conftest$ac_exeext
20357 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20358 (eval $ac_link) 2>conftest.er1
20359 ac_status=$?
20360 grep -v '^ *+' conftest.er1 >conftest.err
20361 rm -f conftest.er1
20362 cat conftest.err >&5
20363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20364 (exit $ac_status); } &&
20365 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20367 (eval $ac_try) 2>&5
20368 ac_status=$?
20369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20370 (exit $ac_status); }; } &&
20371 { ac_try='test -s conftest$ac_exeext'
20372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20373 (eval $ac_try) 2>&5
20374 ac_status=$?
20375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20376 (exit $ac_status); }; }; then
20377 eval "$as_ac_var=yes"
20378 else
20379 echo "$as_me: failed program was:" >&5
20380 sed 's/^/| /' conftest.$ac_ext >&5
20382 eval "$as_ac_var=no"
20384 rm -f conftest.err conftest.$ac_objext \
20385 conftest$ac_exeext conftest.$ac_ext
20387 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20388 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20389 if test `eval echo '${'$as_ac_var'}'` = yes; then
20390 cat >>confdefs.h <<_ACEOF
20391 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20392 _ACEOF
20395 done
20397 if test $ac_cv_func_gettimeofday = yes; then
20398 echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments" >&5
20399 echo $ECHO_N "checking whether gettimeofday can accept two arguments... $ECHO_C" >&6
20400 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
20401 echo $ECHO_N "(cached) $ECHO_C" >&6
20402 else
20403 cat >conftest.$ac_ext <<_ACEOF
20404 /* confdefs.h. */
20405 _ACEOF
20406 cat confdefs.h >>conftest.$ac_ext
20407 cat >>conftest.$ac_ext <<_ACEOF
20408 /* end confdefs.h. */
20410 #ifdef TIME_WITH_SYS_TIME
20411 #include <sys/time.h>
20412 #include <time.h>
20413 #else
20414 #ifdef HAVE_SYS_TIME_H
20415 #include <sys/time.h>
20416 #else
20417 #include <time.h>
20418 #endif
20419 #endif
20421 main ()
20423 struct timeval time;
20424 gettimeofday (&time, 0);
20426 return 0;
20428 _ACEOF
20429 rm -f conftest.$ac_objext
20430 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20431 (eval $ac_compile) 2>conftest.er1
20432 ac_status=$?
20433 grep -v '^ *+' conftest.er1 >conftest.err
20434 rm -f conftest.er1
20435 cat conftest.err >&5
20436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20437 (exit $ac_status); } &&
20438 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20440 (eval $ac_try) 2>&5
20441 ac_status=$?
20442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20443 (exit $ac_status); }; } &&
20444 { ac_try='test -s conftest.$ac_objext'
20445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20446 (eval $ac_try) 2>&5
20447 ac_status=$?
20448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20449 (exit $ac_status); }; }; then
20450 emacs_cv_gettimeofday_two_arguments=yes
20451 else
20452 echo "$as_me: failed program was:" >&5
20453 sed 's/^/| /' conftest.$ac_ext >&5
20455 emacs_cv_gettimeofday_two_arguments=no
20457 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20459 echo "$as_me:$LINENO: result: $emacs_cv_gettimeofday_two_arguments" >&5
20460 echo "${ECHO_T}$emacs_cv_gettimeofday_two_arguments" >&6
20461 if test $emacs_cv_gettimeofday_two_arguments = no; then
20463 cat >>confdefs.h <<\_ACEOF
20464 #define GETTIMEOFDAY_ONE_ARGUMENT 1
20465 _ACEOF
20471 # This defines (or not) HAVE_TZNAME and HAVE_TM_ZONE.
20472 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
20473 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
20474 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
20475 echo $ECHO_N "(cached) $ECHO_C" >&6
20476 else
20477 cat >conftest.$ac_ext <<_ACEOF
20478 /* confdefs.h. */
20479 _ACEOF
20480 cat confdefs.h >>conftest.$ac_ext
20481 cat >>conftest.$ac_ext <<_ACEOF
20482 /* end confdefs.h. */
20483 #include <sys/types.h>
20484 #include <$ac_cv_struct_tm>
20488 main ()
20490 static struct tm ac_aggr;
20491 if (ac_aggr.tm_zone)
20492 return 0;
20494 return 0;
20496 _ACEOF
20497 rm -f conftest.$ac_objext
20498 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20499 (eval $ac_compile) 2>conftest.er1
20500 ac_status=$?
20501 grep -v '^ *+' conftest.er1 >conftest.err
20502 rm -f conftest.er1
20503 cat conftest.err >&5
20504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20505 (exit $ac_status); } &&
20506 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20508 (eval $ac_try) 2>&5
20509 ac_status=$?
20510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20511 (exit $ac_status); }; } &&
20512 { ac_try='test -s conftest.$ac_objext'
20513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20514 (eval $ac_try) 2>&5
20515 ac_status=$?
20516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20517 (exit $ac_status); }; }; then
20518 ac_cv_member_struct_tm_tm_zone=yes
20519 else
20520 echo "$as_me: failed program was:" >&5
20521 sed 's/^/| /' conftest.$ac_ext >&5
20523 cat >conftest.$ac_ext <<_ACEOF
20524 /* confdefs.h. */
20525 _ACEOF
20526 cat confdefs.h >>conftest.$ac_ext
20527 cat >>conftest.$ac_ext <<_ACEOF
20528 /* end confdefs.h. */
20529 #include <sys/types.h>
20530 #include <$ac_cv_struct_tm>
20534 main ()
20536 static struct tm ac_aggr;
20537 if (sizeof ac_aggr.tm_zone)
20538 return 0;
20540 return 0;
20542 _ACEOF
20543 rm -f conftest.$ac_objext
20544 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20545 (eval $ac_compile) 2>conftest.er1
20546 ac_status=$?
20547 grep -v '^ *+' conftest.er1 >conftest.err
20548 rm -f conftest.er1
20549 cat conftest.err >&5
20550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20551 (exit $ac_status); } &&
20552 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20554 (eval $ac_try) 2>&5
20555 ac_status=$?
20556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20557 (exit $ac_status); }; } &&
20558 { ac_try='test -s conftest.$ac_objext'
20559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20560 (eval $ac_try) 2>&5
20561 ac_status=$?
20562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20563 (exit $ac_status); }; }; then
20564 ac_cv_member_struct_tm_tm_zone=yes
20565 else
20566 echo "$as_me: failed program was:" >&5
20567 sed 's/^/| /' conftest.$ac_ext >&5
20569 ac_cv_member_struct_tm_tm_zone=no
20571 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20573 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20575 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
20576 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
20577 if test $ac_cv_member_struct_tm_tm_zone = yes; then
20579 cat >>confdefs.h <<_ACEOF
20580 #define HAVE_STRUCT_TM_TM_ZONE 1
20581 _ACEOF
20586 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
20588 cat >>confdefs.h <<\_ACEOF
20589 #define HAVE_TM_ZONE 1
20590 _ACEOF
20592 else
20593 echo "$as_me:$LINENO: checking for tzname" >&5
20594 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
20595 if test "${ac_cv_var_tzname+set}" = set; then
20596 echo $ECHO_N "(cached) $ECHO_C" >&6
20597 else
20598 cat >conftest.$ac_ext <<_ACEOF
20599 /* confdefs.h. */
20600 _ACEOF
20601 cat confdefs.h >>conftest.$ac_ext
20602 cat >>conftest.$ac_ext <<_ACEOF
20603 /* end confdefs.h. */
20604 #include <time.h>
20605 #ifndef tzname /* For SGI. */
20606 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
20607 #endif
20610 main ()
20612 atoi(*tzname);
20614 return 0;
20616 _ACEOF
20617 rm -f conftest.$ac_objext conftest$ac_exeext
20618 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20619 (eval $ac_link) 2>conftest.er1
20620 ac_status=$?
20621 grep -v '^ *+' conftest.er1 >conftest.err
20622 rm -f conftest.er1
20623 cat conftest.err >&5
20624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20625 (exit $ac_status); } &&
20626 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20628 (eval $ac_try) 2>&5
20629 ac_status=$?
20630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20631 (exit $ac_status); }; } &&
20632 { ac_try='test -s conftest$ac_exeext'
20633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20634 (eval $ac_try) 2>&5
20635 ac_status=$?
20636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20637 (exit $ac_status); }; }; then
20638 ac_cv_var_tzname=yes
20639 else
20640 echo "$as_me: failed program was:" >&5
20641 sed 's/^/| /' conftest.$ac_ext >&5
20643 ac_cv_var_tzname=no
20645 rm -f conftest.err conftest.$ac_objext \
20646 conftest$ac_exeext conftest.$ac_ext
20648 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
20649 echo "${ECHO_T}$ac_cv_var_tzname" >&6
20650 if test $ac_cv_var_tzname = yes; then
20652 cat >>confdefs.h <<\_ACEOF
20653 #define HAVE_TZNAME 1
20654 _ACEOF
20660 if test "$ac_cv_func_gettimeofday" = yes; then
20661 echo "$as_me:$LINENO: checking for struct timezone" >&5
20662 echo $ECHO_N "checking for struct timezone... $ECHO_C" >&6
20663 if test "${emacs_cv_struct_timezone+set}" = set; then
20664 echo $ECHO_N "(cached) $ECHO_C" >&6
20665 else
20666 cat >conftest.$ac_ext <<_ACEOF
20667 /* confdefs.h. */
20668 _ACEOF
20669 cat confdefs.h >>conftest.$ac_ext
20670 cat >>conftest.$ac_ext <<_ACEOF
20671 /* end confdefs.h. */
20672 #include <sys/time.h>
20674 main ()
20676 struct timezone tz;
20678 return 0;
20680 _ACEOF
20681 rm -f conftest.$ac_objext
20682 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20683 (eval $ac_compile) 2>conftest.er1
20684 ac_status=$?
20685 grep -v '^ *+' conftest.er1 >conftest.err
20686 rm -f conftest.er1
20687 cat conftest.err >&5
20688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20689 (exit $ac_status); } &&
20690 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20692 (eval $ac_try) 2>&5
20693 ac_status=$?
20694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20695 (exit $ac_status); }; } &&
20696 { ac_try='test -s conftest.$ac_objext'
20697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20698 (eval $ac_try) 2>&5
20699 ac_status=$?
20700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20701 (exit $ac_status); }; }; then
20702 if test "$cross_compiling" = yes; then
20703 emacs_cv_struct_timezone=yes
20704 else
20705 cat >conftest.$ac_ext <<_ACEOF
20706 /* confdefs.h. */
20707 _ACEOF
20708 cat confdefs.h >>conftest.$ac_ext
20709 cat >>conftest.$ac_ext <<_ACEOF
20710 /* end confdefs.h. */
20712 #ifdef TIME_WITH_SYS_TIME
20713 #include <sys/time.h>
20714 #include <time.h>
20715 #else
20716 #ifdef HAVE_SYS_TIME_H
20717 #include <sys/time.h>
20718 #else
20719 #include <time.h>
20720 #endif
20721 #endif
20722 main () {
20723 struct timeval time;
20724 struct timezone dummy;
20725 exit (gettimeofday (&time, &dummy));
20727 _ACEOF
20728 rm -f conftest$ac_exeext
20729 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20730 (eval $ac_link) 2>&5
20731 ac_status=$?
20732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20733 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20735 (eval $ac_try) 2>&5
20736 ac_status=$?
20737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20738 (exit $ac_status); }; }; then
20739 emacs_cv_struct_timezone=yes
20740 else
20741 echo "$as_me: program exited with status $ac_status" >&5
20742 echo "$as_me: failed program was:" >&5
20743 sed 's/^/| /' conftest.$ac_ext >&5
20745 ( exit $ac_status )
20746 emacs_cv_struct_timezone=no
20748 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20750 else
20751 echo "$as_me: failed program was:" >&5
20752 sed 's/^/| /' conftest.$ac_ext >&5
20754 emacs_cv_struct_timezone=no
20756 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20758 echo "$as_me:$LINENO: result: $emacs_cv_struct_timezone" >&5
20759 echo "${ECHO_T}$emacs_cv_struct_timezone" >&6
20762 ok_so_far=yes
20763 echo "$as_me:$LINENO: checking for socket" >&5
20764 echo $ECHO_N "checking for socket... $ECHO_C" >&6
20765 if test "${ac_cv_func_socket+set}" = set; then
20766 echo $ECHO_N "(cached) $ECHO_C" >&6
20767 else
20768 cat >conftest.$ac_ext <<_ACEOF
20769 /* confdefs.h. */
20770 _ACEOF
20771 cat confdefs.h >>conftest.$ac_ext
20772 cat >>conftest.$ac_ext <<_ACEOF
20773 /* end confdefs.h. */
20774 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
20775 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20776 #define socket innocuous_socket
20778 /* System header to define __stub macros and hopefully few prototypes,
20779 which can conflict with char socket (); below.
20780 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20781 <limits.h> exists even on freestanding compilers. */
20783 #ifdef __STDC__
20784 # include <limits.h>
20785 #else
20786 # include <assert.h>
20787 #endif
20789 #undef socket
20791 /* Override any gcc2 internal prototype to avoid an error. */
20792 #ifdef __cplusplus
20793 extern "C"
20795 #endif
20796 /* We use char because int might match the return type of a gcc2
20797 builtin and then its argument prototype would still apply. */
20798 char socket ();
20799 /* The GNU C library defines this for functions which it implements
20800 to always fail with ENOSYS. Some functions are actually named
20801 something starting with __ and the normal name is an alias. */
20802 #if defined (__stub_socket) || defined (__stub___socket)
20803 choke me
20804 #else
20805 char (*f) () = socket;
20806 #endif
20807 #ifdef __cplusplus
20809 #endif
20812 main ()
20814 return f != socket;
20816 return 0;
20818 _ACEOF
20819 rm -f conftest.$ac_objext conftest$ac_exeext
20820 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20821 (eval $ac_link) 2>conftest.er1
20822 ac_status=$?
20823 grep -v '^ *+' conftest.er1 >conftest.err
20824 rm -f conftest.er1
20825 cat conftest.err >&5
20826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20827 (exit $ac_status); } &&
20828 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20830 (eval $ac_try) 2>&5
20831 ac_status=$?
20832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20833 (exit $ac_status); }; } &&
20834 { ac_try='test -s conftest$ac_exeext'
20835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20836 (eval $ac_try) 2>&5
20837 ac_status=$?
20838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20839 (exit $ac_status); }; }; then
20840 ac_cv_func_socket=yes
20841 else
20842 echo "$as_me: failed program was:" >&5
20843 sed 's/^/| /' conftest.$ac_ext >&5
20845 ac_cv_func_socket=no
20847 rm -f conftest.err conftest.$ac_objext \
20848 conftest$ac_exeext conftest.$ac_ext
20850 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
20851 echo "${ECHO_T}$ac_cv_func_socket" >&6
20852 if test $ac_cv_func_socket = yes; then
20854 else
20855 ok_so_far=no
20858 if test $ok_so_far = yes; then
20859 if test "${ac_cv_header_netinet_in_h+set}" = set; then
20860 echo "$as_me:$LINENO: checking for netinet/in.h" >&5
20861 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6
20862 if test "${ac_cv_header_netinet_in_h+set}" = set; then
20863 echo $ECHO_N "(cached) $ECHO_C" >&6
20865 echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
20866 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6
20867 else
20868 # Is the header compilable?
20869 echo "$as_me:$LINENO: checking netinet/in.h usability" >&5
20870 echo $ECHO_N "checking netinet/in.h usability... $ECHO_C" >&6
20871 cat >conftest.$ac_ext <<_ACEOF
20872 /* confdefs.h. */
20873 _ACEOF
20874 cat confdefs.h >>conftest.$ac_ext
20875 cat >>conftest.$ac_ext <<_ACEOF
20876 /* end confdefs.h. */
20877 $ac_includes_default
20878 #include <netinet/in.h>
20879 _ACEOF
20880 rm -f conftest.$ac_objext
20881 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20882 (eval $ac_compile) 2>conftest.er1
20883 ac_status=$?
20884 grep -v '^ *+' conftest.er1 >conftest.err
20885 rm -f conftest.er1
20886 cat conftest.err >&5
20887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20888 (exit $ac_status); } &&
20889 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20891 (eval $ac_try) 2>&5
20892 ac_status=$?
20893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20894 (exit $ac_status); }; } &&
20895 { ac_try='test -s conftest.$ac_objext'
20896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20897 (eval $ac_try) 2>&5
20898 ac_status=$?
20899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20900 (exit $ac_status); }; }; then
20901 ac_header_compiler=yes
20902 else
20903 echo "$as_me: failed program was:" >&5
20904 sed 's/^/| /' conftest.$ac_ext >&5
20906 ac_header_compiler=no
20908 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20909 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20910 echo "${ECHO_T}$ac_header_compiler" >&6
20912 # Is the header present?
20913 echo "$as_me:$LINENO: checking netinet/in.h presence" >&5
20914 echo $ECHO_N "checking netinet/in.h presence... $ECHO_C" >&6
20915 cat >conftest.$ac_ext <<_ACEOF
20916 /* confdefs.h. */
20917 _ACEOF
20918 cat confdefs.h >>conftest.$ac_ext
20919 cat >>conftest.$ac_ext <<_ACEOF
20920 /* end confdefs.h. */
20921 #include <netinet/in.h>
20922 _ACEOF
20923 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20924 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20925 ac_status=$?
20926 grep -v '^ *+' conftest.er1 >conftest.err
20927 rm -f conftest.er1
20928 cat conftest.err >&5
20929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20930 (exit $ac_status); } >/dev/null; then
20931 if test -s conftest.err; then
20932 ac_cpp_err=$ac_c_preproc_warn_flag
20933 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20934 else
20935 ac_cpp_err=
20937 else
20938 ac_cpp_err=yes
20940 if test -z "$ac_cpp_err"; then
20941 ac_header_preproc=yes
20942 else
20943 echo "$as_me: failed program was:" >&5
20944 sed 's/^/| /' conftest.$ac_ext >&5
20946 ac_header_preproc=no
20948 rm -f conftest.err conftest.$ac_ext
20949 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20950 echo "${ECHO_T}$ac_header_preproc" >&6
20952 # So? What about this header?
20953 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20954 yes:no: )
20955 { echo "$as_me:$LINENO: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&5
20956 echo "$as_me: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20957 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the compiler's result" >&5
20958 echo "$as_me: WARNING: netinet/in.h: proceeding with the compiler's result" >&2;}
20959 ac_header_preproc=yes
20961 no:yes:* )
20962 { echo "$as_me:$LINENO: WARNING: netinet/in.h: present but cannot be compiled" >&5
20963 echo "$as_me: WARNING: netinet/in.h: present but cannot be compiled" >&2;}
20964 { echo "$as_me:$LINENO: WARNING: netinet/in.h: check for missing prerequisite headers?" >&5
20965 echo "$as_me: WARNING: netinet/in.h: check for missing prerequisite headers?" >&2;}
20966 { echo "$as_me:$LINENO: WARNING: netinet/in.h: see the Autoconf documentation" >&5
20967 echo "$as_me: WARNING: netinet/in.h: see the Autoconf documentation" >&2;}
20968 { echo "$as_me:$LINENO: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&5
20969 echo "$as_me: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&2;}
20970 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5
20971 echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;}
20972 { echo "$as_me:$LINENO: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&5
20973 echo "$as_me: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&2;}
20975 cat <<\_ASBOX
20976 ## ------------------------------------------ ##
20977 ## Report this to the AC_PACKAGE_NAME lists. ##
20978 ## ------------------------------------------ ##
20979 _ASBOX
20981 sed "s/^/$as_me: WARNING: /" >&2
20983 esac
20984 echo "$as_me:$LINENO: checking for netinet/in.h" >&5
20985 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6
20986 if test "${ac_cv_header_netinet_in_h+set}" = set; then
20987 echo $ECHO_N "(cached) $ECHO_C" >&6
20988 else
20989 ac_cv_header_netinet_in_h=$ac_header_preproc
20991 echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
20992 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6
20995 if test $ac_cv_header_netinet_in_h = yes; then
20997 else
20998 ok_so_far=no
21003 if test $ok_so_far = yes; then
21004 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
21005 echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
21006 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6
21007 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
21008 echo $ECHO_N "(cached) $ECHO_C" >&6
21010 echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
21011 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6
21012 else
21013 # Is the header compilable?
21014 echo "$as_me:$LINENO: checking arpa/inet.h usability" >&5
21015 echo $ECHO_N "checking arpa/inet.h usability... $ECHO_C" >&6
21016 cat >conftest.$ac_ext <<_ACEOF
21017 /* confdefs.h. */
21018 _ACEOF
21019 cat confdefs.h >>conftest.$ac_ext
21020 cat >>conftest.$ac_ext <<_ACEOF
21021 /* end confdefs.h. */
21022 $ac_includes_default
21023 #include <arpa/inet.h>
21024 _ACEOF
21025 rm -f conftest.$ac_objext
21026 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21027 (eval $ac_compile) 2>conftest.er1
21028 ac_status=$?
21029 grep -v '^ *+' conftest.er1 >conftest.err
21030 rm -f conftest.er1
21031 cat conftest.err >&5
21032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21033 (exit $ac_status); } &&
21034 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21036 (eval $ac_try) 2>&5
21037 ac_status=$?
21038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21039 (exit $ac_status); }; } &&
21040 { ac_try='test -s conftest.$ac_objext'
21041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21042 (eval $ac_try) 2>&5
21043 ac_status=$?
21044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21045 (exit $ac_status); }; }; then
21046 ac_header_compiler=yes
21047 else
21048 echo "$as_me: failed program was:" >&5
21049 sed 's/^/| /' conftest.$ac_ext >&5
21051 ac_header_compiler=no
21053 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21054 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21055 echo "${ECHO_T}$ac_header_compiler" >&6
21057 # Is the header present?
21058 echo "$as_me:$LINENO: checking arpa/inet.h presence" >&5
21059 echo $ECHO_N "checking arpa/inet.h presence... $ECHO_C" >&6
21060 cat >conftest.$ac_ext <<_ACEOF
21061 /* confdefs.h. */
21062 _ACEOF
21063 cat confdefs.h >>conftest.$ac_ext
21064 cat >>conftest.$ac_ext <<_ACEOF
21065 /* end confdefs.h. */
21066 #include <arpa/inet.h>
21067 _ACEOF
21068 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21069 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21070 ac_status=$?
21071 grep -v '^ *+' conftest.er1 >conftest.err
21072 rm -f conftest.er1
21073 cat conftest.err >&5
21074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21075 (exit $ac_status); } >/dev/null; then
21076 if test -s conftest.err; then
21077 ac_cpp_err=$ac_c_preproc_warn_flag
21078 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21079 else
21080 ac_cpp_err=
21082 else
21083 ac_cpp_err=yes
21085 if test -z "$ac_cpp_err"; then
21086 ac_header_preproc=yes
21087 else
21088 echo "$as_me: failed program was:" >&5
21089 sed 's/^/| /' conftest.$ac_ext >&5
21091 ac_header_preproc=no
21093 rm -f conftest.err conftest.$ac_ext
21094 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21095 echo "${ECHO_T}$ac_header_preproc" >&6
21097 # So? What about this header?
21098 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21099 yes:no: )
21100 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&5
21101 echo "$as_me: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21102 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the compiler's result" >&5
21103 echo "$as_me: WARNING: arpa/inet.h: proceeding with the compiler's result" >&2;}
21104 ac_header_preproc=yes
21106 no:yes:* )
21107 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: present but cannot be compiled" >&5
21108 echo "$as_me: WARNING: arpa/inet.h: present but cannot be compiled" >&2;}
21109 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&5
21110 echo "$as_me: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&2;}
21111 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: see the Autoconf documentation" >&5
21112 echo "$as_me: WARNING: arpa/inet.h: see the Autoconf documentation" >&2;}
21113 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&5
21114 echo "$as_me: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&2;}
21115 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5
21116 echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;}
21117 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&5
21118 echo "$as_me: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&2;}
21120 cat <<\_ASBOX
21121 ## ------------------------------------------ ##
21122 ## Report this to the AC_PACKAGE_NAME lists. ##
21123 ## ------------------------------------------ ##
21124 _ASBOX
21126 sed "s/^/$as_me: WARNING: /" >&2
21128 esac
21129 echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
21130 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6
21131 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
21132 echo $ECHO_N "(cached) $ECHO_C" >&6
21133 else
21134 ac_cv_header_arpa_inet_h=$ac_header_preproc
21136 echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
21137 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6
21140 if test $ac_cv_header_arpa_inet_h = yes; then
21142 else
21143 ok_so_far=no
21148 if test $ok_so_far = yes; then
21150 cat >>confdefs.h <<\_ACEOF
21151 #define HAVE_INET_SOCKETS 1
21152 _ACEOF
21157 for ac_header in sys/ioctl.h
21159 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21160 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21161 echo "$as_me:$LINENO: checking for $ac_header" >&5
21162 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21163 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21164 echo $ECHO_N "(cached) $ECHO_C" >&6
21166 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21167 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21168 else
21169 # Is the header compilable?
21170 echo "$as_me:$LINENO: checking $ac_header usability" >&5
21171 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21172 cat >conftest.$ac_ext <<_ACEOF
21173 /* confdefs.h. */
21174 _ACEOF
21175 cat confdefs.h >>conftest.$ac_ext
21176 cat >>conftest.$ac_ext <<_ACEOF
21177 /* end confdefs.h. */
21178 $ac_includes_default
21179 #include <$ac_header>
21180 _ACEOF
21181 rm -f conftest.$ac_objext
21182 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21183 (eval $ac_compile) 2>conftest.er1
21184 ac_status=$?
21185 grep -v '^ *+' conftest.er1 >conftest.err
21186 rm -f conftest.er1
21187 cat conftest.err >&5
21188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21189 (exit $ac_status); } &&
21190 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21192 (eval $ac_try) 2>&5
21193 ac_status=$?
21194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21195 (exit $ac_status); }; } &&
21196 { ac_try='test -s conftest.$ac_objext'
21197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21198 (eval $ac_try) 2>&5
21199 ac_status=$?
21200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21201 (exit $ac_status); }; }; then
21202 ac_header_compiler=yes
21203 else
21204 echo "$as_me: failed program was:" >&5
21205 sed 's/^/| /' conftest.$ac_ext >&5
21207 ac_header_compiler=no
21209 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21210 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21211 echo "${ECHO_T}$ac_header_compiler" >&6
21213 # Is the header present?
21214 echo "$as_me:$LINENO: checking $ac_header presence" >&5
21215 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21216 cat >conftest.$ac_ext <<_ACEOF
21217 /* confdefs.h. */
21218 _ACEOF
21219 cat confdefs.h >>conftest.$ac_ext
21220 cat >>conftest.$ac_ext <<_ACEOF
21221 /* end confdefs.h. */
21222 #include <$ac_header>
21223 _ACEOF
21224 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21225 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21226 ac_status=$?
21227 grep -v '^ *+' conftest.er1 >conftest.err
21228 rm -f conftest.er1
21229 cat conftest.err >&5
21230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21231 (exit $ac_status); } >/dev/null; then
21232 if test -s conftest.err; then
21233 ac_cpp_err=$ac_c_preproc_warn_flag
21234 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21235 else
21236 ac_cpp_err=
21238 else
21239 ac_cpp_err=yes
21241 if test -z "$ac_cpp_err"; then
21242 ac_header_preproc=yes
21243 else
21244 echo "$as_me: failed program was:" >&5
21245 sed 's/^/| /' conftest.$ac_ext >&5
21247 ac_header_preproc=no
21249 rm -f conftest.err conftest.$ac_ext
21250 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21251 echo "${ECHO_T}$ac_header_preproc" >&6
21253 # So? What about this header?
21254 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21255 yes:no: )
21256 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21257 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21258 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21259 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21260 ac_header_preproc=yes
21262 no:yes:* )
21263 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21264 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21265 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21266 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21267 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21268 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21269 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21270 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21271 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21272 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21273 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21274 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21276 cat <<\_ASBOX
21277 ## ------------------------------------------ ##
21278 ## Report this to the AC_PACKAGE_NAME lists. ##
21279 ## ------------------------------------------ ##
21280 _ASBOX
21282 sed "s/^/$as_me: WARNING: /" >&2
21284 esac
21285 echo "$as_me:$LINENO: checking for $ac_header" >&5
21286 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21287 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21288 echo $ECHO_N "(cached) $ECHO_C" >&6
21289 else
21290 eval "$as_ac_Header=\$ac_header_preproc"
21292 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21293 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21296 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21297 cat >>confdefs.h <<_ACEOF
21298 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21299 _ACEOF
21303 done
21306 if test -f /usr/lpp/X11/bin/smt.exp; then
21308 cat >>confdefs.h <<\_ACEOF
21309 #define HAVE_AIX_SMT_EXP 1
21310 _ACEOF
21314 echo "$as_me:$LINENO: checking whether system supports dynamic ptys" >&5
21315 echo $ECHO_N "checking whether system supports dynamic ptys... $ECHO_C" >&6
21316 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
21317 echo "$as_me:$LINENO: result: yes" >&5
21318 echo "${ECHO_T}yes" >&6
21320 cat >>confdefs.h <<\_ACEOF
21321 #define HAVE_DEV_PTMX 1
21322 _ACEOF
21324 else
21325 echo "$as_me:$LINENO: result: no" >&5
21326 echo "${ECHO_T}no" >&6
21329 echo "$as_me:$LINENO: checking for pid_t" >&5
21330 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
21331 if test "${ac_cv_type_pid_t+set}" = set; then
21332 echo $ECHO_N "(cached) $ECHO_C" >&6
21333 else
21334 cat >conftest.$ac_ext <<_ACEOF
21335 /* confdefs.h. */
21336 _ACEOF
21337 cat confdefs.h >>conftest.$ac_ext
21338 cat >>conftest.$ac_ext <<_ACEOF
21339 /* end confdefs.h. */
21340 $ac_includes_default
21342 main ()
21344 if ((pid_t *) 0)
21345 return 0;
21346 if (sizeof (pid_t))
21347 return 0;
21349 return 0;
21351 _ACEOF
21352 rm -f conftest.$ac_objext
21353 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21354 (eval $ac_compile) 2>conftest.er1
21355 ac_status=$?
21356 grep -v '^ *+' conftest.er1 >conftest.err
21357 rm -f conftest.er1
21358 cat conftest.err >&5
21359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21360 (exit $ac_status); } &&
21361 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21363 (eval $ac_try) 2>&5
21364 ac_status=$?
21365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21366 (exit $ac_status); }; } &&
21367 { ac_try='test -s conftest.$ac_objext'
21368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21369 (eval $ac_try) 2>&5
21370 ac_status=$?
21371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21372 (exit $ac_status); }; }; then
21373 ac_cv_type_pid_t=yes
21374 else
21375 echo "$as_me: failed program was:" >&5
21376 sed 's/^/| /' conftest.$ac_ext >&5
21378 ac_cv_type_pid_t=no
21380 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21382 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
21383 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
21384 if test $ac_cv_type_pid_t = yes; then
21386 else
21388 cat >>confdefs.h <<_ACEOF
21389 #define pid_t int
21390 _ACEOF
21396 for ac_header in unistd.h vfork.h
21398 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21399 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21400 echo "$as_me:$LINENO: checking for $ac_header" >&5
21401 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21402 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21403 echo $ECHO_N "(cached) $ECHO_C" >&6
21405 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21406 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21407 else
21408 # Is the header compilable?
21409 echo "$as_me:$LINENO: checking $ac_header usability" >&5
21410 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21411 cat >conftest.$ac_ext <<_ACEOF
21412 /* confdefs.h. */
21413 _ACEOF
21414 cat confdefs.h >>conftest.$ac_ext
21415 cat >>conftest.$ac_ext <<_ACEOF
21416 /* end confdefs.h. */
21417 $ac_includes_default
21418 #include <$ac_header>
21419 _ACEOF
21420 rm -f conftest.$ac_objext
21421 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21422 (eval $ac_compile) 2>conftest.er1
21423 ac_status=$?
21424 grep -v '^ *+' conftest.er1 >conftest.err
21425 rm -f conftest.er1
21426 cat conftest.err >&5
21427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21428 (exit $ac_status); } &&
21429 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21431 (eval $ac_try) 2>&5
21432 ac_status=$?
21433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21434 (exit $ac_status); }; } &&
21435 { ac_try='test -s conftest.$ac_objext'
21436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21437 (eval $ac_try) 2>&5
21438 ac_status=$?
21439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21440 (exit $ac_status); }; }; then
21441 ac_header_compiler=yes
21442 else
21443 echo "$as_me: failed program was:" >&5
21444 sed 's/^/| /' conftest.$ac_ext >&5
21446 ac_header_compiler=no
21448 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21449 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21450 echo "${ECHO_T}$ac_header_compiler" >&6
21452 # Is the header present?
21453 echo "$as_me:$LINENO: checking $ac_header presence" >&5
21454 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21455 cat >conftest.$ac_ext <<_ACEOF
21456 /* confdefs.h. */
21457 _ACEOF
21458 cat confdefs.h >>conftest.$ac_ext
21459 cat >>conftest.$ac_ext <<_ACEOF
21460 /* end confdefs.h. */
21461 #include <$ac_header>
21462 _ACEOF
21463 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21464 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21465 ac_status=$?
21466 grep -v '^ *+' conftest.er1 >conftest.err
21467 rm -f conftest.er1
21468 cat conftest.err >&5
21469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21470 (exit $ac_status); } >/dev/null; then
21471 if test -s conftest.err; then
21472 ac_cpp_err=$ac_c_preproc_warn_flag
21473 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21474 else
21475 ac_cpp_err=
21477 else
21478 ac_cpp_err=yes
21480 if test -z "$ac_cpp_err"; then
21481 ac_header_preproc=yes
21482 else
21483 echo "$as_me: failed program was:" >&5
21484 sed 's/^/| /' conftest.$ac_ext >&5
21486 ac_header_preproc=no
21488 rm -f conftest.err conftest.$ac_ext
21489 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21490 echo "${ECHO_T}$ac_header_preproc" >&6
21492 # So? What about this header?
21493 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21494 yes:no: )
21495 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21496 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21497 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21498 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21499 ac_header_preproc=yes
21501 no:yes:* )
21502 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21503 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21504 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21505 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21506 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21507 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21508 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21509 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21510 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21511 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21512 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21513 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21515 cat <<\_ASBOX
21516 ## ------------------------------------------ ##
21517 ## Report this to the AC_PACKAGE_NAME lists. ##
21518 ## ------------------------------------------ ##
21519 _ASBOX
21521 sed "s/^/$as_me: WARNING: /" >&2
21523 esac
21524 echo "$as_me:$LINENO: checking for $ac_header" >&5
21525 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21526 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21527 echo $ECHO_N "(cached) $ECHO_C" >&6
21528 else
21529 eval "$as_ac_Header=\$ac_header_preproc"
21531 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21532 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21535 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21536 cat >>confdefs.h <<_ACEOF
21537 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21538 _ACEOF
21542 done
21546 for ac_func in fork vfork
21548 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21549 echo "$as_me:$LINENO: checking for $ac_func" >&5
21550 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21551 if eval "test \"\${$as_ac_var+set}\" = set"; then
21552 echo $ECHO_N "(cached) $ECHO_C" >&6
21553 else
21554 cat >conftest.$ac_ext <<_ACEOF
21555 /* confdefs.h. */
21556 _ACEOF
21557 cat confdefs.h >>conftest.$ac_ext
21558 cat >>conftest.$ac_ext <<_ACEOF
21559 /* end confdefs.h. */
21560 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21561 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21562 #define $ac_func innocuous_$ac_func
21564 /* System header to define __stub macros and hopefully few prototypes,
21565 which can conflict with char $ac_func (); below.
21566 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21567 <limits.h> exists even on freestanding compilers. */
21569 #ifdef __STDC__
21570 # include <limits.h>
21571 #else
21572 # include <assert.h>
21573 #endif
21575 #undef $ac_func
21577 /* Override any gcc2 internal prototype to avoid an error. */
21578 #ifdef __cplusplus
21579 extern "C"
21581 #endif
21582 /* We use char because int might match the return type of a gcc2
21583 builtin and then its argument prototype would still apply. */
21584 char $ac_func ();
21585 /* The GNU C library defines this for functions which it implements
21586 to always fail with ENOSYS. Some functions are actually named
21587 something starting with __ and the normal name is an alias. */
21588 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21589 choke me
21590 #else
21591 char (*f) () = $ac_func;
21592 #endif
21593 #ifdef __cplusplus
21595 #endif
21598 main ()
21600 return f != $ac_func;
21602 return 0;
21604 _ACEOF
21605 rm -f conftest.$ac_objext conftest$ac_exeext
21606 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21607 (eval $ac_link) 2>conftest.er1
21608 ac_status=$?
21609 grep -v '^ *+' conftest.er1 >conftest.err
21610 rm -f conftest.er1
21611 cat conftest.err >&5
21612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21613 (exit $ac_status); } &&
21614 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21616 (eval $ac_try) 2>&5
21617 ac_status=$?
21618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21619 (exit $ac_status); }; } &&
21620 { ac_try='test -s conftest$ac_exeext'
21621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21622 (eval $ac_try) 2>&5
21623 ac_status=$?
21624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21625 (exit $ac_status); }; }; then
21626 eval "$as_ac_var=yes"
21627 else
21628 echo "$as_me: failed program was:" >&5
21629 sed 's/^/| /' conftest.$ac_ext >&5
21631 eval "$as_ac_var=no"
21633 rm -f conftest.err conftest.$ac_objext \
21634 conftest$ac_exeext conftest.$ac_ext
21636 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21637 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21638 if test `eval echo '${'$as_ac_var'}'` = yes; then
21639 cat >>confdefs.h <<_ACEOF
21640 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21641 _ACEOF
21644 done
21646 if test "x$ac_cv_func_fork" = xyes; then
21647 echo "$as_me:$LINENO: checking for working fork" >&5
21648 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
21649 if test "${ac_cv_func_fork_works+set}" = set; then
21650 echo $ECHO_N "(cached) $ECHO_C" >&6
21651 else
21652 if test "$cross_compiling" = yes; then
21653 ac_cv_func_fork_works=cross
21654 else
21655 cat >conftest.$ac_ext <<_ACEOF
21656 /* By Ruediger Kuhlmann. */
21657 #include <sys/types.h>
21658 #if HAVE_UNISTD_H
21659 # include <unistd.h>
21660 #endif
21661 /* Some systems only have a dummy stub for fork() */
21662 int main ()
21664 if (fork() < 0)
21665 exit (1);
21666 exit (0);
21668 _ACEOF
21669 rm -f conftest$ac_exeext
21670 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21671 (eval $ac_link) 2>&5
21672 ac_status=$?
21673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21674 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21676 (eval $ac_try) 2>&5
21677 ac_status=$?
21678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21679 (exit $ac_status); }; }; then
21680 ac_cv_func_fork_works=yes
21681 else
21682 echo "$as_me: program exited with status $ac_status" >&5
21683 echo "$as_me: failed program was:" >&5
21684 sed 's/^/| /' conftest.$ac_ext >&5
21686 ( exit $ac_status )
21687 ac_cv_func_fork_works=no
21689 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21692 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
21693 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
21695 else
21696 ac_cv_func_fork_works=$ac_cv_func_fork
21698 if test "x$ac_cv_func_fork_works" = xcross; then
21699 case $host in
21700 *-*-amigaos* | *-*-msdosdjgpp*)
21701 # Override, as these systems have only a dummy fork() stub
21702 ac_cv_func_fork_works=no
21705 ac_cv_func_fork_works=yes
21707 esac
21708 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
21709 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
21711 ac_cv_func_vfork_works=$ac_cv_func_vfork
21712 if test "x$ac_cv_func_vfork" = xyes; then
21713 echo "$as_me:$LINENO: checking for working vfork" >&5
21714 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
21715 if test "${ac_cv_func_vfork_works+set}" = set; then
21716 echo $ECHO_N "(cached) $ECHO_C" >&6
21717 else
21718 if test "$cross_compiling" = yes; then
21719 ac_cv_func_vfork_works=cross
21720 else
21721 cat >conftest.$ac_ext <<_ACEOF
21722 /* confdefs.h. */
21723 _ACEOF
21724 cat confdefs.h >>conftest.$ac_ext
21725 cat >>conftest.$ac_ext <<_ACEOF
21726 /* end confdefs.h. */
21727 /* Thanks to Paul Eggert for this test. */
21728 #include <stdio.h>
21729 #include <stdlib.h>
21730 #include <sys/types.h>
21731 #include <sys/stat.h>
21732 #include <sys/wait.h>
21733 #if HAVE_UNISTD_H
21734 # include <unistd.h>
21735 #endif
21736 #if HAVE_VFORK_H
21737 # include <vfork.h>
21738 #endif
21739 /* On some sparc systems, changes by the child to local and incoming
21740 argument registers are propagated back to the parent. The compiler
21741 is told about this with #include <vfork.h>, but some compilers
21742 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
21743 static variable whose address is put into a register that is
21744 clobbered by the vfork. */
21745 static void
21746 #ifdef __cplusplus
21747 sparc_address_test (int arg)
21748 # else
21749 sparc_address_test (arg) int arg;
21750 #endif
21752 static pid_t child;
21753 if (!child) {
21754 child = vfork ();
21755 if (child < 0) {
21756 perror ("vfork");
21757 _exit(2);
21759 if (!child) {
21760 arg = getpid();
21761 write(-1, "", 0);
21762 _exit (arg);
21768 main ()
21770 pid_t parent = getpid ();
21771 pid_t child;
21773 sparc_address_test (0);
21775 child = vfork ();
21777 if (child == 0) {
21778 /* Here is another test for sparc vfork register problems. This
21779 test uses lots of local variables, at least as many local
21780 variables as main has allocated so far including compiler
21781 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
21782 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
21783 reuse the register of parent for one of the local variables,
21784 since it will think that parent can't possibly be used any more
21785 in this routine. Assigning to the local variable will thus
21786 munge parent in the parent process. */
21787 pid_t
21788 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
21789 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
21790 /* Convince the compiler that p..p7 are live; otherwise, it might
21791 use the same hardware register for all 8 local variables. */
21792 if (p != p1 || p != p2 || p != p3 || p != p4
21793 || p != p5 || p != p6 || p != p7)
21794 _exit(1);
21796 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
21797 from child file descriptors. If the child closes a descriptor
21798 before it execs or exits, this munges the parent's descriptor
21799 as well. Test for this by closing stdout in the child. */
21800 _exit(close(fileno(stdout)) != 0);
21801 } else {
21802 int status;
21803 struct stat st;
21805 while (wait(&status) != child)
21807 exit(
21808 /* Was there some problem with vforking? */
21809 child < 0
21811 /* Did the child fail? (This shouldn't happen.) */
21812 || status
21814 /* Did the vfork/compiler bug occur? */
21815 || parent != getpid()
21817 /* Did the file descriptor bug occur? */
21818 || fstat(fileno(stdout), &st) != 0
21822 _ACEOF
21823 rm -f conftest$ac_exeext
21824 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21825 (eval $ac_link) 2>&5
21826 ac_status=$?
21827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21828 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21830 (eval $ac_try) 2>&5
21831 ac_status=$?
21832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21833 (exit $ac_status); }; }; then
21834 ac_cv_func_vfork_works=yes
21835 else
21836 echo "$as_me: program exited with status $ac_status" >&5
21837 echo "$as_me: failed program was:" >&5
21838 sed 's/^/| /' conftest.$ac_ext >&5
21840 ( exit $ac_status )
21841 ac_cv_func_vfork_works=no
21843 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21846 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
21847 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
21850 if test "x$ac_cv_func_fork_works" = xcross; then
21851 ac_cv_func_vfork_works=$ac_cv_func_vfork
21852 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
21853 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
21856 if test "x$ac_cv_func_vfork_works" = xyes; then
21858 cat >>confdefs.h <<\_ACEOF
21859 #define HAVE_WORKING_VFORK 1
21860 _ACEOF
21862 else
21864 cat >>confdefs.h <<\_ACEOF
21865 #define vfork fork
21866 _ACEOF
21869 if test "x$ac_cv_func_fork_works" = xyes; then
21871 cat >>confdefs.h <<\_ACEOF
21872 #define HAVE_WORKING_FORK 1
21873 _ACEOF
21878 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
21879 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
21880 if test "${emacs_cv_langinfo_codeset+set}" = set; then
21881 echo $ECHO_N "(cached) $ECHO_C" >&6
21882 else
21883 cat >conftest.$ac_ext <<_ACEOF
21884 /* confdefs.h. */
21885 _ACEOF
21886 cat confdefs.h >>conftest.$ac_ext
21887 cat >>conftest.$ac_ext <<_ACEOF
21888 /* end confdefs.h. */
21889 #include <langinfo.h>
21891 main ()
21893 char* cs = nl_langinfo(CODESET);
21895 return 0;
21897 _ACEOF
21898 rm -f conftest.$ac_objext conftest$ac_exeext
21899 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21900 (eval $ac_link) 2>conftest.er1
21901 ac_status=$?
21902 grep -v '^ *+' conftest.er1 >conftest.err
21903 rm -f conftest.er1
21904 cat conftest.err >&5
21905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21906 (exit $ac_status); } &&
21907 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21909 (eval $ac_try) 2>&5
21910 ac_status=$?
21911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21912 (exit $ac_status); }; } &&
21913 { ac_try='test -s conftest$ac_exeext'
21914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21915 (eval $ac_try) 2>&5
21916 ac_status=$?
21917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21918 (exit $ac_status); }; }; then
21919 emacs_cv_langinfo_codeset=yes
21920 else
21921 echo "$as_me: failed program was:" >&5
21922 sed 's/^/| /' conftest.$ac_ext >&5
21924 emacs_cv_langinfo_codeset=no
21926 rm -f conftest.err conftest.$ac_objext \
21927 conftest$ac_exeext conftest.$ac_ext
21930 echo "$as_me:$LINENO: result: $emacs_cv_langinfo_codeset" >&5
21931 echo "${ECHO_T}$emacs_cv_langinfo_codeset" >&6
21932 if test $emacs_cv_langinfo_codeset = yes; then
21934 cat >>confdefs.h <<\_ACEOF
21935 #define HAVE_LANGINFO_CODESET 1
21936 _ACEOF
21940 echo "$as_me:$LINENO: checking for size_t" >&5
21941 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
21942 if test "${ac_cv_type_size_t+set}" = set; then
21943 echo $ECHO_N "(cached) $ECHO_C" >&6
21944 else
21945 cat >conftest.$ac_ext <<_ACEOF
21946 /* confdefs.h. */
21947 _ACEOF
21948 cat confdefs.h >>conftest.$ac_ext
21949 cat >>conftest.$ac_ext <<_ACEOF
21950 /* end confdefs.h. */
21951 $ac_includes_default
21953 main ()
21955 if ((size_t *) 0)
21956 return 0;
21957 if (sizeof (size_t))
21958 return 0;
21960 return 0;
21962 _ACEOF
21963 rm -f conftest.$ac_objext
21964 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21965 (eval $ac_compile) 2>conftest.er1
21966 ac_status=$?
21967 grep -v '^ *+' conftest.er1 >conftest.err
21968 rm -f conftest.er1
21969 cat conftest.err >&5
21970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21971 (exit $ac_status); } &&
21972 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21974 (eval $ac_try) 2>&5
21975 ac_status=$?
21976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21977 (exit $ac_status); }; } &&
21978 { ac_try='test -s conftest.$ac_objext'
21979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21980 (eval $ac_try) 2>&5
21981 ac_status=$?
21982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21983 (exit $ac_status); }; }; then
21984 ac_cv_type_size_t=yes
21985 else
21986 echo "$as_me: failed program was:" >&5
21987 sed 's/^/| /' conftest.$ac_ext >&5
21989 ac_cv_type_size_t=no
21991 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21993 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
21994 echo "${ECHO_T}$ac_cv_type_size_t" >&6
21995 if test $ac_cv_type_size_t = yes; then
21997 cat >>confdefs.h <<_ACEOF
21998 #define HAVE_SIZE_T 1
21999 _ACEOF
22005 echo "$as_me:$LINENO: checking for mbstate_t" >&5
22006 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
22007 if test "${ac_cv_type_mbstate_t+set}" = set; then
22008 echo $ECHO_N "(cached) $ECHO_C" >&6
22009 else
22010 cat >conftest.$ac_ext <<_ACEOF
22011 /* confdefs.h. */
22012 _ACEOF
22013 cat confdefs.h >>conftest.$ac_ext
22014 cat >>conftest.$ac_ext <<_ACEOF
22015 /* end confdefs.h. */
22016 $ac_includes_default
22017 # include <wchar.h>
22019 main ()
22021 mbstate_t x; return sizeof x;
22023 return 0;
22025 _ACEOF
22026 rm -f conftest.$ac_objext
22027 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22028 (eval $ac_compile) 2>conftest.er1
22029 ac_status=$?
22030 grep -v '^ *+' conftest.er1 >conftest.err
22031 rm -f conftest.er1
22032 cat conftest.err >&5
22033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22034 (exit $ac_status); } &&
22035 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22037 (eval $ac_try) 2>&5
22038 ac_status=$?
22039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22040 (exit $ac_status); }; } &&
22041 { ac_try='test -s conftest.$ac_objext'
22042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22043 (eval $ac_try) 2>&5
22044 ac_status=$?
22045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22046 (exit $ac_status); }; }; then
22047 ac_cv_type_mbstate_t=yes
22048 else
22049 echo "$as_me: failed program was:" >&5
22050 sed 's/^/| /' conftest.$ac_ext >&5
22052 ac_cv_type_mbstate_t=no
22054 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22056 echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
22057 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6
22058 if test $ac_cv_type_mbstate_t = yes; then
22060 cat >>confdefs.h <<\_ACEOF
22061 #define HAVE_MBSTATE_T 1
22062 _ACEOF
22064 else
22066 cat >>confdefs.h <<\_ACEOF
22067 #define mbstate_t int
22068 _ACEOF
22072 echo "$as_me:$LINENO: checking for C restrict keyword" >&5
22073 echo $ECHO_N "checking for C restrict keyword... $ECHO_C" >&6
22074 if test "${emacs_cv_c_restrict+set}" = set; then
22075 echo $ECHO_N "(cached) $ECHO_C" >&6
22076 else
22077 cat >conftest.$ac_ext <<_ACEOF
22078 /* confdefs.h. */
22079 _ACEOF
22080 cat confdefs.h >>conftest.$ac_ext
22081 cat >>conftest.$ac_ext <<_ACEOF
22082 /* end confdefs.h. */
22083 void fred (int *restrict x);
22085 main ()
22089 return 0;
22091 _ACEOF
22092 rm -f conftest.$ac_objext
22093 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22094 (eval $ac_compile) 2>conftest.er1
22095 ac_status=$?
22096 grep -v '^ *+' conftest.er1 >conftest.err
22097 rm -f conftest.er1
22098 cat conftest.err >&5
22099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22100 (exit $ac_status); } &&
22101 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22103 (eval $ac_try) 2>&5
22104 ac_status=$?
22105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22106 (exit $ac_status); }; } &&
22107 { ac_try='test -s conftest.$ac_objext'
22108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22109 (eval $ac_try) 2>&5
22110 ac_status=$?
22111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22112 (exit $ac_status); }; }; then
22113 emacs_cv_c_restrict=yes
22114 else
22115 echo "$as_me: failed program was:" >&5
22116 sed 's/^/| /' conftest.$ac_ext >&5
22118 cat >conftest.$ac_ext <<_ACEOF
22119 /* confdefs.h. */
22120 _ACEOF
22121 cat confdefs.h >>conftest.$ac_ext
22122 cat >>conftest.$ac_ext <<_ACEOF
22123 /* end confdefs.h. */
22124 void fred (int *__restrict x);
22126 main ()
22130 return 0;
22132 _ACEOF
22133 rm -f conftest.$ac_objext
22134 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22135 (eval $ac_compile) 2>conftest.er1
22136 ac_status=$?
22137 grep -v '^ *+' conftest.er1 >conftest.err
22138 rm -f conftest.er1
22139 cat conftest.err >&5
22140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22141 (exit $ac_status); } &&
22142 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22144 (eval $ac_try) 2>&5
22145 ac_status=$?
22146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22147 (exit $ac_status); }; } &&
22148 { ac_try='test -s conftest.$ac_objext'
22149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22150 (eval $ac_try) 2>&5
22151 ac_status=$?
22152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22153 (exit $ac_status); }; }; then
22154 emacs_cv_c_restrict=__restrict
22155 else
22156 echo "$as_me: failed program was:" >&5
22157 sed 's/^/| /' conftest.$ac_ext >&5
22159 emacs_cv_c_restrict=no
22161 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22163 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22165 echo "$as_me:$LINENO: result: $emacs_cv_c_restrict" >&5
22166 echo "${ECHO_T}$emacs_cv_c_restrict" >&6
22167 case "$emacs_cv_c_restrict" in
22168 yes) emacs_restrict=restrict;;
22169 no) emacs_restrict="";;
22170 *) emacs_restrict="$emacs_cv_c_restrict";;
22171 esac
22172 if test "$emacs_restrict" != __restrict; then
22174 cat >>confdefs.h <<_ACEOF
22175 #define __restrict $emacs_restrict
22176 _ACEOF
22180 echo "$as_me:$LINENO: checking for C restricted array declarations" >&5
22181 echo $ECHO_N "checking for C restricted array declarations... $ECHO_C" >&6
22182 if test "${emacs_cv_c_restrict_arr+set}" = set; then
22183 echo $ECHO_N "(cached) $ECHO_C" >&6
22184 else
22185 cat >conftest.$ac_ext <<_ACEOF
22186 /* confdefs.h. */
22187 _ACEOF
22188 cat confdefs.h >>conftest.$ac_ext
22189 cat >>conftest.$ac_ext <<_ACEOF
22190 /* end confdefs.h. */
22191 void fred (int x[__restrict]);
22193 main ()
22197 return 0;
22199 _ACEOF
22200 rm -f conftest.$ac_objext
22201 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22202 (eval $ac_compile) 2>conftest.er1
22203 ac_status=$?
22204 grep -v '^ *+' conftest.er1 >conftest.err
22205 rm -f conftest.er1
22206 cat conftest.err >&5
22207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22208 (exit $ac_status); } &&
22209 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22211 (eval $ac_try) 2>&5
22212 ac_status=$?
22213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22214 (exit $ac_status); }; } &&
22215 { ac_try='test -s conftest.$ac_objext'
22216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22217 (eval $ac_try) 2>&5
22218 ac_status=$?
22219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22220 (exit $ac_status); }; }; then
22221 emacs_cv_c_restrict_arr=yes
22222 else
22223 echo "$as_me: failed program was:" >&5
22224 sed 's/^/| /' conftest.$ac_ext >&5
22226 emacs_cv_c_restrict_arr=no
22228 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22230 echo "$as_me:$LINENO: result: $emacs_cv_c_restrict_arr" >&5
22231 echo "${ECHO_T}$emacs_cv_c_restrict_arr" >&6
22232 if test "$emacs_cv_c_restrict_arr" = yes; then
22234 cat >>confdefs.h <<\_ACEOF
22235 #define __restrict_arr __restrict
22236 _ACEOF
22242 # Set up the CFLAGS for real compilation, so we can substitute it.
22243 CFLAGS="$REAL_CFLAGS"
22244 CPPFLAGS="$REAL_CPPFLAGS"
22246 #### Find out which version of Emacs this is.
22247 version=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
22248 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`
22249 if test x"${version}" = x; then
22250 { { echo "$as_me:$LINENO: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&5
22251 echo "$as_me: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&2;}
22252 { (exit 1); exit 1; }; }
22255 ### Specify what sort of things we'll be editing into Makefile and config.h.
22256 ### Use configuration here uncanonicalized to avoid exceeding size limits.
22292 cat >>confdefs.h <<_ACEOF
22293 #define EMACS_CONFIGURATION "${canonical}"
22294 _ACEOF
22297 cat >>confdefs.h <<_ACEOF
22298 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
22299 _ACEOF
22302 cat >>confdefs.h <<_ACEOF
22303 #define config_machfile "${machfile}"
22304 _ACEOF
22307 cat >>confdefs.h <<_ACEOF
22308 #define config_opsysfile "${opsysfile}"
22309 _ACEOF
22312 cat >>confdefs.h <<_ACEOF
22313 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
22314 _ACEOF
22317 cat >>confdefs.h <<_ACEOF
22318 #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX}
22319 _ACEOF
22322 cat >>confdefs.h <<_ACEOF
22323 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
22324 _ACEOF
22327 cat >>confdefs.h <<_ACEOF
22328 #define UNEXEC_SRC ${UNEXEC_SRC}
22329 _ACEOF
22332 if test "${HAVE_X_WINDOWS}" = "yes" ; then
22334 cat >>confdefs.h <<\_ACEOF
22335 #define HAVE_X_WINDOWS 1
22336 _ACEOF
22339 if test "${USE_X_TOOLKIT}" != "none" ; then
22341 cat >>confdefs.h <<\_ACEOF
22342 #define USE_X_TOOLKIT 1
22343 _ACEOF
22346 if test "${HAVE_X11}" = "yes" ; then
22348 cat >>confdefs.h <<\_ACEOF
22349 #define HAVE_X11 1
22350 _ACEOF
22353 if test "${HAVE_XFREE386}" = "yes" ; then
22355 cat >>confdefs.h <<\_ACEOF
22356 #define HAVE_XFREE386 1
22357 _ACEOF
22360 if test "${HAVE_MENUS}" = "yes" ; then
22362 cat >>confdefs.h <<\_ACEOF
22363 #define HAVE_MENUS 1
22364 _ACEOF
22367 if test "${GNU_MALLOC}" = "yes" ; then
22369 cat >>confdefs.h <<\_ACEOF
22370 #define GNU_MALLOC 1
22371 _ACEOF
22374 if test "${REL_ALLOC}" = "yes" ; then
22376 cat >>confdefs.h <<\_ACEOF
22377 #define REL_ALLOC 1
22378 _ACEOF
22386 #### Report on what we decided to do.
22387 #### Report GTK as a toolkit, even if it doesn't use Xt.
22388 #### It makes printing result more understandable as using GTK sets
22389 #### toolkit_scroll_bars to yes by default.
22390 if test "${HAVE_GTK}" = "yes"; then
22391 USE_X_TOOLKIT=GTK
22394 echo "
22395 Configured for \`${canonical}'.
22397 Where should the build process find the source code? ${srcdir}
22398 What operating system and machine description files should Emacs use?
22399 \`${opsysfile}' and \`${machfile}'
22400 What compiler should emacs be built with? ${CC} ${CFLAGS}
22401 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
22402 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
22403 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
22404 What window system should Emacs use? ${window_system}
22405 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
22407 if test -n "${x_includes}"; then
22408 echo " Where do we find X Windows header files? ${x_includes}"
22409 else
22410 echo " Where do we find X Windows header files? Standard dirs"
22412 if test -n "${x_libraries}"; then
22413 echo " Where do we find X Windows libraries? ${x_libraries}"
22414 else
22415 echo " Where do we find X Windows libraries? Standard dirs"
22418 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
22419 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
22420 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
22421 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
22422 echo " Does Emacs use -lungif? ${HAVE_GIF}"
22423 echo " Does Emacs use -lpng? ${HAVE_PNG}"
22424 echo " Does Emacs use X toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
22425 echo
22427 if test $USE_XASSERTS = yes; then
22428 echo " Compiling with asserts turned on."
22429 CPPFLAGS="$CPPFLAGS -DXASSERTS=1"
22430 echo
22435 # Remove any trailing slashes in these variables.
22436 test "${prefix}" != NONE &&
22437 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
22438 test "${exec_prefix}" != NONE &&
22439 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
22441 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
22442 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
22443 ## from Makefile.c can correctly provide the arg `-traditional' to the
22444 ## C preprocessor.
22446 cat >conftest.$ac_ext <<_ACEOF
22447 /* confdefs.h. */
22448 _ACEOF
22449 cat confdefs.h >>conftest.$ac_ext
22450 cat >>conftest.$ac_ext <<_ACEOF
22451 /* end confdefs.h. */
22452 yes..yes
22453 _ACEOF
22454 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22455 $EGREP "yes..yes" >/dev/null 2>&1; then
22456 CPP_NEED_TRADITIONAL=no
22457 else
22458 CPP_NEED_TRADITIONAL=yes
22460 rm -f conftest*
22463 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"
22464 ac_config_commands="$ac_config_commands default"
22465 cat >confcache <<\_ACEOF
22466 # This file is a shell script that caches the results of configure
22467 # tests run on this system so they can be shared between configure
22468 # scripts and configure runs, see configure's option --config-cache.
22469 # It is not useful on other systems. If it contains results you don't
22470 # want to keep, you may remove or edit it.
22472 # config.status only pays attention to the cache file if you give it
22473 # the --recheck option to rerun configure.
22475 # `ac_cv_env_foo' variables (set or unset) will be overridden when
22476 # loading this file, other *unset* `ac_cv_foo' will be assigned the
22477 # following values.
22479 _ACEOF
22481 # The following way of writing the cache mishandles newlines in values,
22482 # but we know of no workaround that is simple, portable, and efficient.
22483 # So, don't put newlines in cache variables' values.
22484 # Ultrix sh set writes to stderr and can't be redirected directly,
22485 # and sets the high bit in the cache file unless we assign to the vars.
22487 (set) 2>&1 |
22488 case `(ac_space=' '; set | grep ac_space) 2>&1` in
22489 *ac_space=\ *)
22490 # `set' does not quote correctly, so add quotes (double-quote
22491 # substitution turns \\\\ into \\, and sed turns \\ into \).
22492 sed -n \
22493 "s/'/'\\\\''/g;
22494 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22497 # `set' quotes correctly as required by POSIX, so do not add quotes.
22498 sed -n \
22499 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
22501 esac;
22503 sed '
22504 t clear
22505 : clear
22506 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22507 t end
22508 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22509 : end' >>confcache
22510 if diff $cache_file confcache >/dev/null 2>&1; then :; else
22511 if test -w $cache_file; then
22512 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
22513 cat confcache >$cache_file
22514 else
22515 echo "not updating unwritable cache $cache_file"
22518 rm -f confcache
22520 test "x$prefix" = xNONE && prefix=$ac_default_prefix
22521 # Let make expand exec_prefix.
22522 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22524 # VPATH may cause trouble with some makes, so we remove $(srcdir),
22525 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22526 # trailing colons and then remove the whole line if VPATH becomes empty
22527 # (actually we leave an empty line to preserve line numbers).
22528 if test "x$srcdir" = x.; then
22529 ac_vpsub='/^[ ]*VPATH[ ]*=/{
22530 s/:*\$(srcdir):*/:/;
22531 s/:*\${srcdir}:*/:/;
22532 s/:*@srcdir@:*/:/;
22533 s/^\([^=]*=[ ]*\):*/\1/;
22534 s/:*$//;
22535 s/^[^=]*=[ ]*$//;
22539 DEFS=-DHAVE_CONFIG_H
22541 ac_libobjs=
22542 ac_ltlibobjs=
22543 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22544 # 1. Remove the extension, and $U if already installed.
22545 ac_i=`echo "$ac_i" |
22546 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
22547 # 2. Add them.
22548 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
22549 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
22550 done
22551 LIBOBJS=$ac_libobjs
22553 LTLIBOBJS=$ac_ltlibobjs
22557 : ${CONFIG_STATUS=./config.status}
22558 ac_clean_files_save=$ac_clean_files
22559 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22560 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22561 echo "$as_me: creating $CONFIG_STATUS" >&6;}
22562 cat >$CONFIG_STATUS <<_ACEOF
22563 #! $SHELL
22564 # Generated by $as_me.
22565 # Run this file to recreate the current configuration.
22566 # Compiler output produced by configure, useful for debugging
22567 # configure, is in config.log if it exists.
22569 debug=false
22570 ac_cs_recheck=false
22571 ac_cs_silent=false
22572 SHELL=\${CONFIG_SHELL-$SHELL}
22573 _ACEOF
22575 cat >>$CONFIG_STATUS <<\_ACEOF
22576 ## --------------------- ##
22577 ## M4sh Initialization. ##
22578 ## --------------------- ##
22580 # Be Bourne compatible
22581 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22582 emulate sh
22583 NULLCMD=:
22584 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22585 # is contrary to our usage. Disable this feature.
22586 alias -g '${1+"$@"}'='"$@"'
22587 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22588 set -o posix
22590 DUALCASE=1; export DUALCASE # for MKS sh
22592 # Support unset when possible.
22593 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
22594 as_unset=unset
22595 else
22596 as_unset=false
22600 # Work around bugs in pre-3.0 UWIN ksh.
22601 $as_unset ENV MAIL MAILPATH
22602 PS1='$ '
22603 PS2='> '
22604 PS4='+ '
22606 # NLS nuisances.
22607 for as_var in \
22608 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
22609 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
22610 LC_TELEPHONE LC_TIME
22612 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
22613 eval $as_var=C; export $as_var
22614 else
22615 $as_unset $as_var
22617 done
22619 # Required to use basename.
22620 if expr a : '\(a\)' >/dev/null 2>&1; then
22621 as_expr=expr
22622 else
22623 as_expr=false
22626 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
22627 as_basename=basename
22628 else
22629 as_basename=false
22633 # Name of the executable.
22634 as_me=`$as_basename "$0" ||
22635 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22636 X"$0" : 'X\(//\)$' \| \
22637 X"$0" : 'X\(/\)$' \| \
22638 . : '\(.\)' 2>/dev/null ||
22639 echo X/"$0" |
22640 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
22641 /^X\/\(\/\/\)$/{ s//\1/; q; }
22642 /^X\/\(\/\).*/{ s//\1/; q; }
22643 s/.*/./; q'`
22646 # PATH needs CR, and LINENO needs CR and PATH.
22647 # Avoid depending upon Character Ranges.
22648 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22649 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22650 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22651 as_cr_digits='0123456789'
22652 as_cr_alnum=$as_cr_Letters$as_cr_digits
22654 # The user is always right.
22655 if test "${PATH_SEPARATOR+set}" != set; then
22656 echo "#! /bin/sh" >conf$$.sh
22657 echo "exit 0" >>conf$$.sh
22658 chmod +x conf$$.sh
22659 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
22660 PATH_SEPARATOR=';'
22661 else
22662 PATH_SEPARATOR=:
22664 rm -f conf$$.sh
22668 as_lineno_1=$LINENO
22669 as_lineno_2=$LINENO
22670 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
22671 test "x$as_lineno_1" != "x$as_lineno_2" &&
22672 test "x$as_lineno_3" = "x$as_lineno_2" || {
22673 # Find who we are. Look in the path if we contain no path at all
22674 # relative or not.
22675 case $0 in
22676 *[\\/]* ) as_myself=$0 ;;
22677 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22678 for as_dir in $PATH
22680 IFS=$as_save_IFS
22681 test -z "$as_dir" && as_dir=.
22682 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22683 done
22686 esac
22687 # We did not find ourselves, most probably we were run as `sh COMMAND'
22688 # in which case we are not to be found in the path.
22689 if test "x$as_myself" = x; then
22690 as_myself=$0
22692 if test ! -f "$as_myself"; then
22693 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
22694 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
22695 { (exit 1); exit 1; }; }
22697 case $CONFIG_SHELL in
22699 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22700 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
22702 IFS=$as_save_IFS
22703 test -z "$as_dir" && as_dir=.
22704 for as_base in sh bash ksh sh5; do
22705 case $as_dir in
22707 if ("$as_dir/$as_base" -c '
22708 as_lineno_1=$LINENO
22709 as_lineno_2=$LINENO
22710 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
22711 test "x$as_lineno_1" != "x$as_lineno_2" &&
22712 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
22713 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
22714 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
22715 CONFIG_SHELL=$as_dir/$as_base
22716 export CONFIG_SHELL
22717 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
22718 fi;;
22719 esac
22720 done
22721 done
22723 esac
22725 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
22726 # uniformly replaced by the line number. The first 'sed' inserts a
22727 # line-number line before each line; the second 'sed' does the real
22728 # work. The second script uses 'N' to pair each line-number line
22729 # with the numbered line, and appends trailing '-' during
22730 # substitution so that $LINENO is not a special case at line end.
22731 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
22732 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
22733 sed '=' <$as_myself |
22734 sed '
22736 s,$,-,
22737 : loop
22738 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
22739 t loop
22740 s,-$,,
22741 s,^['$as_cr_digits']*\n,,
22742 ' >$as_me.lineno &&
22743 chmod +x $as_me.lineno ||
22744 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
22745 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
22746 { (exit 1); exit 1; }; }
22748 # Don't try to exec as it changes $[0], causing all sort of problems
22749 # (the dirname of $[0] is not the place where we might find the
22750 # original and so on. Autoconf is especially sensible to this).
22751 . ./$as_me.lineno
22752 # Exit status is that of the last command.
22753 exit
22757 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
22758 *c*,-n*) ECHO_N= ECHO_C='
22759 ' ECHO_T=' ' ;;
22760 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
22761 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
22762 esac
22764 if expr a : '\(a\)' >/dev/null 2>&1; then
22765 as_expr=expr
22766 else
22767 as_expr=false
22770 rm -f conf$$ conf$$.exe conf$$.file
22771 echo >conf$$.file
22772 if ln -s conf$$.file conf$$ 2>/dev/null; then
22773 # We could just check for DJGPP; but this test a) works b) is more generic
22774 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
22775 if test -f conf$$.exe; then
22776 # Don't use ln at all; we don't have any links
22777 as_ln_s='cp -p'
22778 else
22779 as_ln_s='ln -s'
22781 elif ln conf$$.file conf$$ 2>/dev/null; then
22782 as_ln_s=ln
22783 else
22784 as_ln_s='cp -p'
22786 rm -f conf$$ conf$$.exe conf$$.file
22788 if mkdir -p . 2>/dev/null; then
22789 as_mkdir_p=:
22790 else
22791 test -d ./-p && rmdir ./-p
22792 as_mkdir_p=false
22795 as_executable_p="test -f"
22797 # Sed expression to map a string onto a valid CPP name.
22798 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
22800 # Sed expression to map a string onto a valid variable name.
22801 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
22804 # IFS
22805 # We need space, tab and new line, in precisely that order.
22806 as_nl='
22808 IFS=" $as_nl"
22810 # CDPATH.
22811 $as_unset CDPATH
22813 exec 6>&1
22815 # Open the log real soon, to keep \$[0] and so on meaningful, and to
22816 # report actual input values of CONFIG_FILES etc. instead of their
22817 # values after options handling. Logging --version etc. is OK.
22818 exec 5>>config.log
22820 echo
22821 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22822 ## Running $as_me. ##
22823 _ASBOX
22824 } >&5
22825 cat >&5 <<_CSEOF
22827 This file was extended by $as_me, which was
22828 generated by GNU Autoconf 2.59. Invocation command line was
22830 CONFIG_FILES = $CONFIG_FILES
22831 CONFIG_HEADERS = $CONFIG_HEADERS
22832 CONFIG_LINKS = $CONFIG_LINKS
22833 CONFIG_COMMANDS = $CONFIG_COMMANDS
22834 $ $0 $@
22836 _CSEOF
22837 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
22838 echo >&5
22839 _ACEOF
22841 # Files that config.status was made for.
22842 if test -n "$ac_config_files"; then
22843 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
22846 if test -n "$ac_config_headers"; then
22847 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
22850 if test -n "$ac_config_links"; then
22851 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
22854 if test -n "$ac_config_commands"; then
22855 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
22858 cat >>$CONFIG_STATUS <<\_ACEOF
22860 ac_cs_usage="\
22861 \`$as_me' instantiates files from templates according to the
22862 current configuration.
22864 Usage: $0 [OPTIONS] [FILE]...
22866 -h, --help print this help, then exit
22867 -V, --version print version number, then exit
22868 -q, --quiet do not print progress messages
22869 -d, --debug don't remove temporary files
22870 --recheck update $as_me by reconfiguring in the same conditions
22871 --file=FILE[:TEMPLATE]
22872 instantiate the configuration file FILE
22873 --header=FILE[:TEMPLATE]
22874 instantiate the configuration header FILE
22876 Configuration files:
22877 $config_files
22879 Configuration headers:
22880 $config_headers
22882 Configuration commands:
22883 $config_commands
22885 Report bugs to <bug-autoconf@gnu.org>."
22886 _ACEOF
22888 cat >>$CONFIG_STATUS <<_ACEOF
22889 ac_cs_version="\\
22890 config.status
22891 configured by $0, generated by GNU Autoconf 2.59,
22892 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
22894 Copyright (C) 2003 Free Software Foundation, Inc.
22895 This config.status script is free software; the Free Software Foundation
22896 gives unlimited permission to copy, distribute and modify it."
22897 srcdir=$srcdir
22898 INSTALL="$INSTALL"
22899 _ACEOF
22901 cat >>$CONFIG_STATUS <<\_ACEOF
22902 # If no file are specified by the user, then we need to provide default
22903 # value. By we need to know if files were specified by the user.
22904 ac_need_defaults=:
22905 while test $# != 0
22907 case $1 in
22908 --*=*)
22909 ac_option=`expr "x$1" : 'x\([^=]*\)='`
22910 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
22911 ac_shift=:
22914 ac_option=$1
22915 ac_optarg=$2
22916 ac_shift=shift
22918 *) # This is not an option, so the user has probably given explicit
22919 # arguments.
22920 ac_option=$1
22921 ac_need_defaults=false;;
22922 esac
22924 case $ac_option in
22925 # Handling of the options.
22926 _ACEOF
22927 cat >>$CONFIG_STATUS <<\_ACEOF
22928 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22929 ac_cs_recheck=: ;;
22930 --version | --vers* | -V )
22931 echo "$ac_cs_version"; exit 0 ;;
22932 --he | --h)
22933 # Conflict between --help and --header
22934 { { echo "$as_me:$LINENO: error: ambiguous option: $1
22935 Try \`$0 --help' for more information." >&5
22936 echo "$as_me: error: ambiguous option: $1
22937 Try \`$0 --help' for more information." >&2;}
22938 { (exit 1); exit 1; }; };;
22939 --help | --hel | -h )
22940 echo "$ac_cs_usage"; exit 0 ;;
22941 --debug | --d* | -d )
22942 debug=: ;;
22943 --file | --fil | --fi | --f )
22944 $ac_shift
22945 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
22946 ac_need_defaults=false;;
22947 --header | --heade | --head | --hea )
22948 $ac_shift
22949 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
22950 ac_need_defaults=false;;
22951 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22952 | -silent | --silent | --silen | --sile | --sil | --si | --s)
22953 ac_cs_silent=: ;;
22955 # This is an error.
22956 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
22957 Try \`$0 --help' for more information." >&5
22958 echo "$as_me: error: unrecognized option: $1
22959 Try \`$0 --help' for more information." >&2;}
22960 { (exit 1); exit 1; }; } ;;
22962 *) ac_config_targets="$ac_config_targets $1" ;;
22964 esac
22965 shift
22966 done
22968 ac_configure_extra_args=
22970 if $ac_cs_silent; then
22971 exec 6>/dev/null
22972 ac_configure_extra_args="$ac_configure_extra_args --silent"
22975 _ACEOF
22976 cat >>$CONFIG_STATUS <<_ACEOF
22977 if \$ac_cs_recheck; then
22978 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
22979 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22982 _ACEOF
22984 cat >>$CONFIG_STATUS <<_ACEOF
22986 # INIT-COMMANDS section.
22989 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS"
22991 _ACEOF
22995 cat >>$CONFIG_STATUS <<\_ACEOF
22996 for ac_config_target in $ac_config_targets
22998 case "$ac_config_target" in
22999 # Handling of arguments.
23000 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
23001 "lib-src/Makefile.c" ) CONFIG_FILES="$CONFIG_FILES lib-src/Makefile.c:lib-src/Makefile.in" ;;
23002 "oldXMenu/Makefile" ) CONFIG_FILES="$CONFIG_FILES oldXMenu/Makefile" ;;
23003 "man/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
23004 "lwlib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lwlib/Makefile" ;;
23005 "src/Makefile.c" ) CONFIG_FILES="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;;
23006 "lisp/Makefile" ) CONFIG_FILES="$CONFIG_FILES lisp/Makefile" ;;
23007 "lispref/Makefile" ) CONFIG_FILES="$CONFIG_FILES lispref/Makefile" ;;
23008 "lispintro/Makefile" ) CONFIG_FILES="$CONFIG_FILES lispintro/Makefile" ;;
23009 "leim/Makefile" ) CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;;
23010 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
23011 "src/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:src/config.in" ;;
23012 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
23013 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
23014 { (exit 1); exit 1; }; };;
23015 esac
23016 done
23018 # If the user did not use the arguments to specify the items to instantiate,
23019 # then the envvar interface is used. Set only those that are not.
23020 # We use the long form for the default assignment because of an extremely
23021 # bizarre bug on SunOS 4.1.3.
23022 if $ac_need_defaults; then
23023 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23024 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
23025 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
23028 # Have a temporary directory for convenience. Make it in the build tree
23029 # simply because there is no reason to put it here, and in addition,
23030 # creating and moving files from /tmp can sometimes cause problems.
23031 # Create a temporary directory, and hook for its removal unless debugging.
23032 $debug ||
23034 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
23035 trap '{ (exit 1); exit 1; }' 1 2 13 15
23038 # Create a (secure) tmp directory for tmp files.
23041 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
23042 test -n "$tmp" && test -d "$tmp"
23043 } ||
23045 tmp=./confstat$$-$RANDOM
23046 (umask 077 && mkdir $tmp)
23047 } ||
23049 echo "$me: cannot create a temporary directory in ." >&2
23050 { (exit 1); exit 1; }
23053 _ACEOF
23055 cat >>$CONFIG_STATUS <<_ACEOF
23058 # CONFIG_FILES section.
23061 # No need to generate the scripts if there are no CONFIG_FILES.
23062 # This happens for instance when ./config.status config.h
23063 if test -n "\$CONFIG_FILES"; then
23064 # Protect against being on the right side of a sed subst in config.status.
23065 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
23066 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
23067 s,@SHELL@,$SHELL,;t t
23068 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
23069 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
23070 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
23071 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
23072 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
23073 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
23074 s,@exec_prefix@,$exec_prefix,;t t
23075 s,@prefix@,$prefix,;t t
23076 s,@program_transform_name@,$program_transform_name,;t t
23077 s,@bindir@,$bindir,;t t
23078 s,@sbindir@,$sbindir,;t t
23079 s,@libexecdir@,$libexecdir,;t t
23080 s,@datadir@,$datadir,;t t
23081 s,@sysconfdir@,$sysconfdir,;t t
23082 s,@sharedstatedir@,$sharedstatedir,;t t
23083 s,@localstatedir@,$localstatedir,;t t
23084 s,@libdir@,$libdir,;t t
23085 s,@includedir@,$includedir,;t t
23086 s,@oldincludedir@,$oldincludedir,;t t
23087 s,@infodir@,$infodir,;t t
23088 s,@mandir@,$mandir,;t t
23089 s,@build_alias@,$build_alias,;t t
23090 s,@host_alias@,$host_alias,;t t
23091 s,@target_alias@,$target_alias,;t t
23092 s,@DEFS@,$DEFS,;t t
23093 s,@ECHO_C@,$ECHO_C,;t t
23094 s,@ECHO_N@,$ECHO_N,;t t
23095 s,@ECHO_T@,$ECHO_T,;t t
23096 s,@LIBS@,$LIBS,;t t
23097 s,@MAINT@,$MAINT,;t t
23098 s,@build@,$build,;t t
23099 s,@build_cpu@,$build_cpu,;t t
23100 s,@build_vendor@,$build_vendor,;t t
23101 s,@build_os@,$build_os,;t t
23102 s,@host@,$host,;t t
23103 s,@host_cpu@,$host_cpu,;t t
23104 s,@host_vendor@,$host_vendor,;t t
23105 s,@host_os@,$host_os,;t t
23106 s,@CC@,$CC,;t t
23107 s,@CFLAGS@,$CFLAGS,;t t
23108 s,@LDFLAGS@,$LDFLAGS,;t t
23109 s,@CPPFLAGS@,$CPPFLAGS,;t t
23110 s,@ac_ct_CC@,$ac_ct_CC,;t t
23111 s,@EXEEXT@,$EXEEXT,;t t
23112 s,@OBJEXT@,$OBJEXT,;t t
23113 s,@LN_S@,$LN_S,;t t
23114 s,@CPP@,$CPP,;t t
23115 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
23116 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
23117 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
23118 s,@RANLIB@,$RANLIB,;t t
23119 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
23120 s,@INSTALL_INFO@,$INSTALL_INFO,;t t
23121 s,@EGREP@,$EGREP,;t t
23122 s,@LIBSOUND@,$LIBSOUND,;t t
23123 s,@SET_MAKE@,$SET_MAKE,;t t
23124 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
23125 s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
23126 s,@GTK_LIBS@,$GTK_LIBS,;t t
23127 s,@ALLOCA@,$ALLOCA,;t t
23128 s,@liblockfile@,$liblockfile,;t t
23129 s,@LIBOBJS@,$LIBOBJS,;t t
23130 s,@NEED_SETGID@,$NEED_SETGID,;t t
23131 s,@KMEM_GROUP@,$KMEM_GROUP,;t t
23132 s,@GETLOADAVG_LIBS@,$GETLOADAVG_LIBS,;t t
23133 s,@GETOPT_H@,$GETOPT_H,;t t
23134 s,@GETOPTOBJS@,$GETOPTOBJS,;t t
23135 s,@version@,$version,;t t
23136 s,@configuration@,$configuration,;t t
23137 s,@canonical@,$canonical,;t t
23138 s,@srcdir@,$srcdir,;t t
23139 s,@lispdir@,$lispdir,;t t
23140 s,@locallisppath@,$locallisppath,;t t
23141 s,@lisppath@,$lisppath,;t t
23142 s,@x_default_search_path@,$x_default_search_path,;t t
23143 s,@etcdir@,$etcdir,;t t
23144 s,@archlibdir@,$archlibdir,;t t
23145 s,@docdir@,$docdir,;t t
23146 s,@bitmapdir@,$bitmapdir,;t t
23147 s,@gamedir@,$gamedir,;t t
23148 s,@gameuser@,$gameuser,;t t
23149 s,@c_switch_system@,$c_switch_system,;t t
23150 s,@c_switch_machine@,$c_switch_machine,;t t
23151 s,@LD_SWITCH_X_SITE@,$LD_SWITCH_X_SITE,;t t
23152 s,@LD_SWITCH_X_SITE_AUX@,$LD_SWITCH_X_SITE_AUX,;t t
23153 s,@C_SWITCH_X_SITE@,$C_SWITCH_X_SITE,;t t
23154 s,@X_TOOLKIT_TYPE@,$X_TOOLKIT_TYPE,;t t
23155 s,@machfile@,$machfile,;t t
23156 s,@opsysfile@,$opsysfile,;t t
23157 s,@carbon_appdir@,$carbon_appdir,;t t
23158 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
23159 CEOF
23161 _ACEOF
23163 cat >>$CONFIG_STATUS <<\_ACEOF
23164 # Split the substitutions into bite-sized pieces for seds with
23165 # small command number limits, like on Digital OSF/1 and HP-UX.
23166 ac_max_sed_lines=48
23167 ac_sed_frag=1 # Number of current file.
23168 ac_beg=1 # First line for current file.
23169 ac_end=$ac_max_sed_lines # Line after last line for current file.
23170 ac_more_lines=:
23171 ac_sed_cmds=
23172 while $ac_more_lines; do
23173 if test $ac_beg -gt 1; then
23174 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
23175 else
23176 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
23178 if test ! -s $tmp/subs.frag; then
23179 ac_more_lines=false
23180 else
23181 # The purpose of the label and of the branching condition is to
23182 # speed up the sed processing (if there are no `@' at all, there
23183 # is no need to browse any of the substitutions).
23184 # These are the two extra sed commands mentioned above.
23185 (echo ':t
23186 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
23187 if test -z "$ac_sed_cmds"; then
23188 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
23189 else
23190 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
23192 ac_sed_frag=`expr $ac_sed_frag + 1`
23193 ac_beg=$ac_end
23194 ac_end=`expr $ac_end + $ac_max_sed_lines`
23196 done
23197 if test -z "$ac_sed_cmds"; then
23198 ac_sed_cmds=cat
23200 fi # test -n "$CONFIG_FILES"
23202 _ACEOF
23203 cat >>$CONFIG_STATUS <<\_ACEOF
23204 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
23205 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23206 case $ac_file in
23207 - | *:- | *:-:* ) # input from stdin
23208 cat >$tmp/stdin
23209 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23210 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23211 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23212 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23213 * ) ac_file_in=$ac_file.in ;;
23214 esac
23216 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
23217 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
23218 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23219 X"$ac_file" : 'X\(//\)[^/]' \| \
23220 X"$ac_file" : 'X\(//\)$' \| \
23221 X"$ac_file" : 'X\(/\)' \| \
23222 . : '\(.\)' 2>/dev/null ||
23223 echo X"$ac_file" |
23224 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23225 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23226 /^X\(\/\/\)$/{ s//\1/; q; }
23227 /^X\(\/\).*/{ s//\1/; q; }
23228 s/.*/./; q'`
23229 { if $as_mkdir_p; then
23230 mkdir -p "$ac_dir"
23231 else
23232 as_dir="$ac_dir"
23233 as_dirs=
23234 while test ! -d "$as_dir"; do
23235 as_dirs="$as_dir $as_dirs"
23236 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23237 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23238 X"$as_dir" : 'X\(//\)[^/]' \| \
23239 X"$as_dir" : 'X\(//\)$' \| \
23240 X"$as_dir" : 'X\(/\)' \| \
23241 . : '\(.\)' 2>/dev/null ||
23242 echo X"$as_dir" |
23243 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23244 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23245 /^X\(\/\/\)$/{ s//\1/; q; }
23246 /^X\(\/\).*/{ s//\1/; q; }
23247 s/.*/./; q'`
23248 done
23249 test ! -n "$as_dirs" || mkdir $as_dirs
23250 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23251 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23252 { (exit 1); exit 1; }; }; }
23254 ac_builddir=.
23256 if test "$ac_dir" != .; then
23257 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23258 # A "../" for each directory in $ac_dir_suffix.
23259 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23260 else
23261 ac_dir_suffix= ac_top_builddir=
23264 case $srcdir in
23265 .) # No --srcdir option. We are building in place.
23266 ac_srcdir=.
23267 if test -z "$ac_top_builddir"; then
23268 ac_top_srcdir=.
23269 else
23270 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23271 fi ;;
23272 [\\/]* | ?:[\\/]* ) # Absolute path.
23273 ac_srcdir=$srcdir$ac_dir_suffix;
23274 ac_top_srcdir=$srcdir ;;
23275 *) # Relative path.
23276 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23277 ac_top_srcdir=$ac_top_builddir$srcdir ;;
23278 esac
23280 # Do not use `cd foo && pwd` to compute absolute paths, because
23281 # the directories may not exist.
23282 case `pwd` in
23283 .) ac_abs_builddir="$ac_dir";;
23285 case "$ac_dir" in
23286 .) ac_abs_builddir=`pwd`;;
23287 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
23288 *) ac_abs_builddir=`pwd`/"$ac_dir";;
23289 esac;;
23290 esac
23291 case $ac_abs_builddir in
23292 .) ac_abs_top_builddir=${ac_top_builddir}.;;
23294 case ${ac_top_builddir}. in
23295 .) ac_abs_top_builddir=$ac_abs_builddir;;
23296 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
23297 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
23298 esac;;
23299 esac
23300 case $ac_abs_builddir in
23301 .) ac_abs_srcdir=$ac_srcdir;;
23303 case $ac_srcdir in
23304 .) ac_abs_srcdir=$ac_abs_builddir;;
23305 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
23306 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
23307 esac;;
23308 esac
23309 case $ac_abs_builddir in
23310 .) ac_abs_top_srcdir=$ac_top_srcdir;;
23312 case $ac_top_srcdir in
23313 .) ac_abs_top_srcdir=$ac_abs_builddir;;
23314 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
23315 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
23316 esac;;
23317 esac
23320 case $INSTALL in
23321 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
23322 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
23323 esac
23325 # Let's still pretend it is `configure' which instantiates (i.e., don't
23326 # use $as_me), people would be surprised to read:
23327 # /* config.h. Generated by config.status. */
23328 if test x"$ac_file" = x-; then
23329 configure_input=
23330 else
23331 configure_input="$ac_file. "
23333 configure_input=$configure_input"Generated from `echo $ac_file_in |
23334 sed 's,.*/,,'` by configure."
23336 # First look for the input files in the build tree, otherwise in the
23337 # src tree.
23338 ac_file_inputs=`IFS=:
23339 for f in $ac_file_in; do
23340 case $f in
23341 -) echo $tmp/stdin ;;
23342 [\\/$]*)
23343 # Absolute (can't be DOS-style, as IFS=:)
23344 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23345 echo "$as_me: error: cannot find input file: $f" >&2;}
23346 { (exit 1); exit 1; }; }
23347 echo "$f";;
23348 *) # Relative
23349 if test -f "$f"; then
23350 # Build tree
23351 echo "$f"
23352 elif test -f "$srcdir/$f"; then
23353 # Source tree
23354 echo "$srcdir/$f"
23355 else
23356 # /dev/null tree
23357 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23358 echo "$as_me: error: cannot find input file: $f" >&2;}
23359 { (exit 1); exit 1; }; }
23360 fi;;
23361 esac
23362 done` || { (exit 1); exit 1; }
23364 if test x"$ac_file" != x-; then
23365 { echo "$as_me:$LINENO: creating $ac_file" >&5
23366 echo "$as_me: creating $ac_file" >&6;}
23367 rm -f "$ac_file"
23369 _ACEOF
23370 cat >>$CONFIG_STATUS <<_ACEOF
23371 sed "$ac_vpsub
23372 $extrasub
23373 _ACEOF
23374 cat >>$CONFIG_STATUS <<\_ACEOF
23376 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23377 s,@configure_input@,$configure_input,;t t
23378 s,@srcdir@,$ac_srcdir,;t t
23379 s,@abs_srcdir@,$ac_abs_srcdir,;t t
23380 s,@top_srcdir@,$ac_top_srcdir,;t t
23381 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
23382 s,@builddir@,$ac_builddir,;t t
23383 s,@abs_builddir@,$ac_abs_builddir,;t t
23384 s,@top_builddir@,$ac_top_builddir,;t t
23385 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
23386 s,@INSTALL@,$ac_INSTALL,;t t
23387 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
23388 rm -f $tmp/stdin
23389 if test x"$ac_file" != x-; then
23390 mv $tmp/out $ac_file
23391 else
23392 cat $tmp/out
23393 rm -f $tmp/out
23396 done
23397 _ACEOF
23398 cat >>$CONFIG_STATUS <<\_ACEOF
23401 # CONFIG_HEADER section.
23404 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
23405 # NAME is the cpp macro being defined and VALUE is the value it is being given.
23407 # ac_d sets the value in "#define NAME VALUE" lines.
23408 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
23409 ac_dB='[ ].*$,\1#\2'
23410 ac_dC=' '
23411 ac_dD=',;t'
23412 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
23413 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
23414 ac_uB='$,\1#\2define\3'
23415 ac_uC=' '
23416 ac_uD=',;t'
23418 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
23419 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23420 case $ac_file in
23421 - | *:- | *:-:* ) # input from stdin
23422 cat >$tmp/stdin
23423 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23424 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23425 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23426 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23427 * ) ac_file_in=$ac_file.in ;;
23428 esac
23430 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
23431 echo "$as_me: creating $ac_file" >&6;}
23433 # First look for the input files in the build tree, otherwise in the
23434 # src tree.
23435 ac_file_inputs=`IFS=:
23436 for f in $ac_file_in; do
23437 case $f in
23438 -) echo $tmp/stdin ;;
23439 [\\/$]*)
23440 # Absolute (can't be DOS-style, as IFS=:)
23441 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23442 echo "$as_me: error: cannot find input file: $f" >&2;}
23443 { (exit 1); exit 1; }; }
23444 # Do quote $f, to prevent DOS paths from being IFS'd.
23445 echo "$f";;
23446 *) # Relative
23447 if test -f "$f"; then
23448 # Build tree
23449 echo "$f"
23450 elif test -f "$srcdir/$f"; then
23451 # Source tree
23452 echo "$srcdir/$f"
23453 else
23454 # /dev/null tree
23455 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23456 echo "$as_me: error: cannot find input file: $f" >&2;}
23457 { (exit 1); exit 1; }; }
23458 fi;;
23459 esac
23460 done` || { (exit 1); exit 1; }
23461 # Remove the trailing spaces.
23462 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
23464 _ACEOF
23466 # Transform confdefs.h into two sed scripts, `conftest.defines' and
23467 # `conftest.undefs', that substitutes the proper values into
23468 # config.h.in to produce config.h. The first handles `#define'
23469 # templates, and the second `#undef' templates.
23470 # And first: Protect against being on the right side of a sed subst in
23471 # config.status. Protect against being in an unquoted here document
23472 # in config.status.
23473 rm -f conftest.defines conftest.undefs
23474 # Using a here document instead of a string reduces the quoting nightmare.
23475 # Putting comments in sed scripts is not portable.
23477 # `end' is used to avoid that the second main sed command (meant for
23478 # 0-ary CPP macros) applies to n-ary macro definitions.
23479 # See the Autoconf documentation for `clear'.
23480 cat >confdef2sed.sed <<\_ACEOF
23481 s/[\\&,]/\\&/g
23482 s,[\\$`],\\&,g
23483 t clear
23484 : clear
23485 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
23486 t end
23487 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
23488 : end
23489 _ACEOF
23490 # If some macros were called several times there might be several times
23491 # the same #defines, which is useless. Nevertheless, we may not want to
23492 # sort them, since we want the *last* AC-DEFINE to be honored.
23493 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
23494 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
23495 rm -f confdef2sed.sed
23497 # This sed command replaces #undef with comments. This is necessary, for
23498 # example, in the case of _POSIX_SOURCE, which is predefined and required
23499 # on some systems where configure will not decide to define it.
23500 cat >>conftest.undefs <<\_ACEOF
23501 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
23502 _ACEOF
23504 # Break up conftest.defines because some shells have a limit on the size
23505 # of here documents, and old seds have small limits too (100 cmds).
23506 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
23507 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
23508 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
23509 echo ' :' >>$CONFIG_STATUS
23510 rm -f conftest.tail
23511 while grep . conftest.defines >/dev/null
23513 # Write a limited-size here document to $tmp/defines.sed.
23514 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
23515 # Speed up: don't consider the non `#define' lines.
23516 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
23517 # Work around the forget-to-reset-the-flag bug.
23518 echo 't clr' >>$CONFIG_STATUS
23519 echo ': clr' >>$CONFIG_STATUS
23520 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
23521 echo 'CEOF
23522 sed -f $tmp/defines.sed $tmp/in >$tmp/out
23523 rm -f $tmp/in
23524 mv $tmp/out $tmp/in
23525 ' >>$CONFIG_STATUS
23526 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
23527 rm -f conftest.defines
23528 mv conftest.tail conftest.defines
23529 done
23530 rm -f conftest.defines
23531 echo ' fi # grep' >>$CONFIG_STATUS
23532 echo >>$CONFIG_STATUS
23534 # Break up conftest.undefs because some shells have a limit on the size
23535 # of here documents, and old seds have small limits too (100 cmds).
23536 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
23537 rm -f conftest.tail
23538 while grep . conftest.undefs >/dev/null
23540 # Write a limited-size here document to $tmp/undefs.sed.
23541 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
23542 # Speed up: don't consider the non `#undef'
23543 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
23544 # Work around the forget-to-reset-the-flag bug.
23545 echo 't clr' >>$CONFIG_STATUS
23546 echo ': clr' >>$CONFIG_STATUS
23547 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
23548 echo 'CEOF
23549 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
23550 rm -f $tmp/in
23551 mv $tmp/out $tmp/in
23552 ' >>$CONFIG_STATUS
23553 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
23554 rm -f conftest.undefs
23555 mv conftest.tail conftest.undefs
23556 done
23557 rm -f conftest.undefs
23559 cat >>$CONFIG_STATUS <<\_ACEOF
23560 # Let's still pretend it is `configure' which instantiates (i.e., don't
23561 # use $as_me), people would be surprised to read:
23562 # /* config.h. Generated by config.status. */
23563 if test x"$ac_file" = x-; then
23564 echo "/* Generated by configure. */" >$tmp/config.h
23565 else
23566 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
23568 cat $tmp/in >>$tmp/config.h
23569 rm -f $tmp/in
23570 if test x"$ac_file" != x-; then
23571 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
23572 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
23573 echo "$as_me: $ac_file is unchanged" >&6;}
23574 else
23575 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
23576 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23577 X"$ac_file" : 'X\(//\)[^/]' \| \
23578 X"$ac_file" : 'X\(//\)$' \| \
23579 X"$ac_file" : 'X\(/\)' \| \
23580 . : '\(.\)' 2>/dev/null ||
23581 echo X"$ac_file" |
23582 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23583 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23584 /^X\(\/\/\)$/{ s//\1/; q; }
23585 /^X\(\/\).*/{ s//\1/; q; }
23586 s/.*/./; q'`
23587 { if $as_mkdir_p; then
23588 mkdir -p "$ac_dir"
23589 else
23590 as_dir="$ac_dir"
23591 as_dirs=
23592 while test ! -d "$as_dir"; do
23593 as_dirs="$as_dir $as_dirs"
23594 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23595 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23596 X"$as_dir" : 'X\(//\)[^/]' \| \
23597 X"$as_dir" : 'X\(//\)$' \| \
23598 X"$as_dir" : 'X\(/\)' \| \
23599 . : '\(.\)' 2>/dev/null ||
23600 echo X"$as_dir" |
23601 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23602 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23603 /^X\(\/\/\)$/{ s//\1/; q; }
23604 /^X\(\/\).*/{ s//\1/; q; }
23605 s/.*/./; q'`
23606 done
23607 test ! -n "$as_dirs" || mkdir $as_dirs
23608 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23609 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23610 { (exit 1); exit 1; }; }; }
23612 rm -f $ac_file
23613 mv $tmp/config.h $ac_file
23615 else
23616 cat $tmp/config.h
23617 rm -f $tmp/config.h
23619 done
23620 _ACEOF
23621 cat >>$CONFIG_STATUS <<\_ACEOF
23624 # CONFIG_COMMANDS section.
23626 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
23627 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
23628 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
23629 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
23630 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23631 X"$ac_dest" : 'X\(//\)[^/]' \| \
23632 X"$ac_dest" : 'X\(//\)$' \| \
23633 X"$ac_dest" : 'X\(/\)' \| \
23634 . : '\(.\)' 2>/dev/null ||
23635 echo X"$ac_dest" |
23636 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23637 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23638 /^X\(\/\/\)$/{ s//\1/; q; }
23639 /^X\(\/\).*/{ s//\1/; q; }
23640 s/.*/./; q'`
23641 { if $as_mkdir_p; then
23642 mkdir -p "$ac_dir"
23643 else
23644 as_dir="$ac_dir"
23645 as_dirs=
23646 while test ! -d "$as_dir"; do
23647 as_dirs="$as_dir $as_dirs"
23648 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23649 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23650 X"$as_dir" : 'X\(//\)[^/]' \| \
23651 X"$as_dir" : 'X\(//\)$' \| \
23652 X"$as_dir" : 'X\(/\)' \| \
23653 . : '\(.\)' 2>/dev/null ||
23654 echo X"$as_dir" |
23655 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23656 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23657 /^X\(\/\/\)$/{ s//\1/; q; }
23658 /^X\(\/\).*/{ s//\1/; q; }
23659 s/.*/./; q'`
23660 done
23661 test ! -n "$as_dirs" || mkdir $as_dirs
23662 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23663 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23664 { (exit 1); exit 1; }; }; }
23666 ac_builddir=.
23668 if test "$ac_dir" != .; then
23669 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23670 # A "../" for each directory in $ac_dir_suffix.
23671 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23672 else
23673 ac_dir_suffix= ac_top_builddir=
23676 case $srcdir in
23677 .) # No --srcdir option. We are building in place.
23678 ac_srcdir=.
23679 if test -z "$ac_top_builddir"; then
23680 ac_top_srcdir=.
23681 else
23682 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23683 fi ;;
23684 [\\/]* | ?:[\\/]* ) # Absolute path.
23685 ac_srcdir=$srcdir$ac_dir_suffix;
23686 ac_top_srcdir=$srcdir ;;
23687 *) # Relative path.
23688 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23689 ac_top_srcdir=$ac_top_builddir$srcdir ;;
23690 esac
23692 # Do not use `cd foo && pwd` to compute absolute paths, because
23693 # the directories may not exist.
23694 case `pwd` in
23695 .) ac_abs_builddir="$ac_dir";;
23697 case "$ac_dir" in
23698 .) ac_abs_builddir=`pwd`;;
23699 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
23700 *) ac_abs_builddir=`pwd`/"$ac_dir";;
23701 esac;;
23702 esac
23703 case $ac_abs_builddir in
23704 .) ac_abs_top_builddir=${ac_top_builddir}.;;
23706 case ${ac_top_builddir}. in
23707 .) ac_abs_top_builddir=$ac_abs_builddir;;
23708 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
23709 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
23710 esac;;
23711 esac
23712 case $ac_abs_builddir in
23713 .) ac_abs_srcdir=$ac_srcdir;;
23715 case $ac_srcdir in
23716 .) ac_abs_srcdir=$ac_abs_builddir;;
23717 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
23718 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
23719 esac;;
23720 esac
23721 case $ac_abs_builddir in
23722 .) ac_abs_top_srcdir=$ac_top_srcdir;;
23724 case $ac_top_srcdir in
23725 .) ac_abs_top_srcdir=$ac_abs_builddir;;
23726 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
23727 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
23728 esac;;
23729 esac
23732 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
23733 echo "$as_me: executing $ac_dest commands" >&6;}
23734 case $ac_dest in
23735 default )
23737 ### Make the necessary directories, if they don't exist.
23738 for dir in etc lisp ; do
23739 test -d ${dir} || mkdir ${dir}
23740 done
23742 # Build src/Makefile from ${srcdir}/src/Makefile.c
23743 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
23744 # This must be done after src/config.h is built, since we rely on that file.
23746 # Now get this: Some word that is part of the ${srcdir} directory name
23747 # or the ${configuration} value might, just might, happen to be an
23748 # identifier like `sun4' or `i386' or something, and be predefined by
23749 # the C preprocessor to some helpful value like 1, or maybe the empty
23750 # string. Needless to say consequent macro substitutions are less
23751 # than conducive to the makefile finding the correct directory.
23752 undefs="`echo $top_srcdir $configuration $canonical |
23753 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
23754 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g' \
23757 echo creating src/epaths.h
23758 ${MAKE-make} epaths-force
23760 # As of 2000-11-19, newest development versions of GNU cpp preprocess
23761 # `..' to `. .' unless invoked with -traditional
23763 if test "x$GCC" = xyes && test "x$CPP_NEED_TRADITIONAL" = xyes; then
23764 CPPFLAGS="$CPPFLAGS -traditional"
23767 echo creating lib-src/Makefile
23768 ( cd lib-src
23769 rm -f junk.c junk1.c junk2.c
23770 sed -e '/start of cpp stuff/q' \
23771 < Makefile.c > junk1.c
23772 sed -e '1,/start of cpp stuff/d'\
23773 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
23774 < Makefile.c > junk.c
23775 $CPP $undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
23776 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
23777 cat junk1.c junk2.c > Makefile.new
23778 rm -f junk.c junk1.c junk2.c
23779 chmod 444 Makefile.new
23780 mv -f Makefile.new Makefile
23783 echo creating src/Makefile
23784 ( cd src
23785 rm -f junk.c junk1.c junk2.c
23786 sed -e '/start of cpp stuff/q' \
23787 < Makefile.c > junk1.c
23788 sed -e '1,/start of cpp stuff/d'\
23789 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
23790 < Makefile.c > junk.c
23791 $CPP $undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
23792 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
23793 cat junk1.c junk2.c > Makefile.new
23794 rm -f junk.c junk1.c junk2.c
23795 chmod 444 Makefile.new
23796 mv -f Makefile.new Makefile
23799 if test ! -f src/.gdbinit && test -f $srcdir/src/.gdbinit; then
23800 echo creating src/.gdbinit
23801 echo source $srcdir/src/.gdbinit > src/.gdbinit
23804 # This is how we know whether to re-run configure in certain cases.
23805 touch src/config.stamp
23808 esac
23809 done
23810 _ACEOF
23812 cat >>$CONFIG_STATUS <<\_ACEOF
23814 { (exit 0); exit 0; }
23815 _ACEOF
23816 chmod +x $CONFIG_STATUS
23817 ac_clean_files=$ac_clean_files_save
23820 # configure is writing to config.log, and then calls config.status.
23821 # config.status does its own redirection, appending to config.log.
23822 # Unfortunately, on DOS this fails, as config.log is still kept open
23823 # by configure, so config.status won't be able to write to it; its
23824 # output is simply discarded. So we exec the FD to /dev/null,
23825 # effectively closing config.log, so it can be properly (re)opened and
23826 # appended to by config.status. When coming back to configure, we
23827 # need to make the FD available again.
23828 if test "$no_create" != yes; then
23829 ac_cs_success=:
23830 ac_config_status_args=
23831 test "$silent" = yes &&
23832 ac_config_status_args="$ac_config_status_args --quiet"
23833 exec 5>/dev/null
23834 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23835 exec 5>>config.log
23836 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23837 # would make configure fail if this is the last instruction.
23838 $ac_cs_success || { (exit 1); exit 1; }