Fix crashes in `delete-terminal' caused by recursive calls or X displays with live...
[emacs.git] / configure
blob2477f104bc4373af99e0c42d3de97465e491fa25
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 CPP EGREP LN_S INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA RANLIB ac_ct_RANLIB INSTALL_INFO GZIP_PROG LIBSOUND PKG_CONFIG ALSA_CFLAGS ALSA_LIBS CFLAGS_SOUND SET_MAKE 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 amd64-*-freebsd*|x86_64-*-freebsd*) machine=amdx86-64 ;;
1722 esac
1725 ## NetBSD ports
1726 *-*-netbsd* )
1727 opsys=netbsd
1728 if test -f /usr/lib/crti.o; then
1730 cat >>confdefs.h <<\_ACEOF
1731 #define HAVE_CRTIN
1732 _ACEOF
1736 case "${canonical}" in
1737 alpha*-*-netbsd*) machine=alpha ;;
1738 i[3456]86-*-netbsd*) machine=intel386 ;;
1739 m68k-*-netbsd*)
1740 # This is somewhat bogus.
1741 machine=hp9000s300 ;;
1742 powerpc-apple-netbsd*) machine=macppc ;;
1743 mips-*-netbsd*) machine=pmax ;;
1744 mipsel-*-netbsd*) machine=pmax ;;
1745 mipseb-*-netbsd*) machine=pmax ;;
1746 ns32k-*-netbsd*) machine=ns32000 ;;
1747 powerpc-*-netbsd*) machine=macppc ;;
1748 sparc*-*-netbsd*) machine=sparc ;;
1749 vax-*-netbsd*) machine=vax ;;
1750 arm-*-netbsd*) machine=arm ;;
1751 esac
1754 ## OpenBSD ports
1755 *-*-openbsd* )
1756 opsys=openbsd
1757 case "${canonical}" in
1758 alpha*-*-openbsd*) machine=alpha ;;
1759 i386-*-openbsd*) machine=intel386 ;;
1760 m68k-*-openbsd*) machine=hp9000s300 ;;
1761 mipsel-*-openbsd*) machine=pmax ;;
1762 ns32k-*-openbsd*) machine=ns32000 ;;
1763 sparc-*-openbsd*) machine=sparc ;;
1764 vax-*-openbsd*) machine=vax ;;
1765 esac
1768 ## LynxOS ports
1769 *-*-lynxos* )
1770 opsys=lynxos
1771 case "${canonical}" in
1772 i[3456]86-*-lynxos*) machine=intel386 ;;
1773 powerpc-*-lynxos*) machine=powerpc ;;
1774 esac
1777 ## Acorn RISCiX:
1778 arm-acorn-riscix1.1* )
1779 machine=acorn opsys=riscix1-1
1781 arm-acorn-riscix1.2* | arm-acorn-riscix )
1782 ## This name is riscix12 instead of riscix1.2
1783 ## to avoid a file name conflict on MSDOS.
1784 machine=acorn opsys=riscix12
1787 ## BSDI ports
1788 *-*-bsdi* )
1789 opsys=bsdi
1790 case "${canonical}" in
1791 i[345]86-*-bsdi*) machine=intel386 ;;
1792 sparc-*-bsdi*) machine=sparc ;;
1793 powerpc-*-bsdi*) machine=macppc ;;
1794 esac
1795 case "${canonical}" in
1796 *-*-bsd386* | *-*-bsdi1* ) opsys=bsd386 ;;
1797 *-*-bsdi2.0* ) opsys=bsdos2 ;;
1798 *-*-bsdi2* ) opsys=bsdos2-1 ;;
1799 *-*-bsdi3* ) opsys=bsdos3 ;;
1800 *-*-bsdi[45]* ) opsys=bsdos4 ;;
1801 esac
1804 ## Alliant machines
1805 ## Strictly speaking, we need the version of the alliant operating
1806 ## system to choose the right machine file, but currently the
1807 ## configuration name doesn't tell us enough to choose the right
1808 ## one; we need to give alliants their own operating system name to
1809 ## do this right. When someone cares, they can help us.
1810 fx80-alliant-* )
1811 machine=alliant4 opsys=bsd4-2
1813 i860-alliant-* )
1814 machine=alliant-2800 opsys=bsd4-3
1817 ## Alpha (DEC) machines.
1818 alpha*-dec-osf* )
1819 machine=alpha opsys=osf1
1820 # This is needed to find X11R6.1 libraries for certain tests.
1821 NON_GCC_LINK_TEST_OPTIONS=-Wl,-rpath,/usr/X11R6/lib
1822 GCC_LINK_TEST_OPTIONS=-Wl,-rpath,/usr/X11R6/lib
1823 # NON_GNU_CPP is necessary on 5.0 to avoid mangling src/Makefile
1824 # due to non-traditional preprocessing with the current compiler
1825 # defaults. OSF 4 can also have that compiler version, and there
1826 # seems always to have been a usable /usr/bin/cpp.
1827 NON_GNU_CPP=/usr/bin/cpp
1828 case "${canonical}" in
1829 alpha*-dec-osf[5-9]*)
1830 opsys=osf5-0 ;;
1831 esac
1834 alpha*-*-linux-gnu* )
1835 machine=alpha opsys=gnu-linux
1838 arm*-*-linux-gnu* )
1839 machine=arm opsys=gnu-linux
1842 ## Altos 3068
1843 m68*-altos-sysv* )
1844 machine=altos opsys=usg5-2
1847 ## Amdahl UTS
1848 580-amdahl-sysv* )
1849 machine=amdahl opsys=usg5-2-2
1852 ## Apollo, Domain/OS
1853 m68*-apollo-* )
1854 machine=apollo opsys=bsd4-3
1857 ## AT&T 3b2, 3b5, 3b15, 3b20
1858 we32k-att-sysv* )
1859 machine=att3b opsys=usg5-2-2
1862 ## AT&T 3b1 - The Mighty Unix PC!
1863 m68*-att-sysv* )
1864 machine=7300 opsys=usg5-2-2
1867 ## Bull dpx20
1868 rs6000-bull-bosx* )
1869 machine=ibmrs6000 opsys=aix3-2
1872 ## Bull dpx2
1873 m68*-bull-sysv3* )
1874 machine=dpx2 opsys=usg5-3
1877 ## Bull sps7
1878 m68*-bull-sysv2* )
1879 machine=sps7 opsys=usg5-2
1882 ## CCI 5/32, 6/32 -- see "Tahoe".
1884 ## Celerity
1885 ## I don't know what configuration name to use for this; config.sub
1886 ## doesn't seem to know anything about it. Hey, Celerity users, get
1887 ## in touch with us!
1888 celerity-celerity-bsd* )
1889 machine=celerity opsys=bsd4-2
1892 ## Clipper
1893 ## What operating systems does this chip run that Emacs has been
1894 ## tested on?
1895 clipper-* )
1896 machine=clipper
1897 ## We'll use the catch-all code at the bottom to guess the
1898 ## operating system.
1901 ## Compaq Nonstop
1902 mips-compaq-nonstopux* )
1903 machine=nonstopux opsys=nonstopux
1906 ## Convex
1907 *-convex-bsd* | *-convex-convexos* )
1908 machine=convex opsys=bsd4-3
1909 ## Prevents spurious white space in makefiles - d.m.cooke@larc.nasa.gov
1910 NON_GNU_CPP="cc -E -P"
1913 ## Cubix QBx/386
1914 i[3456]86-cubix-sysv* )
1915 machine=intel386 opsys=usg5-3
1918 ## Cydra 5
1919 cydra*-cydrome-sysv* )
1920 machine=cydra5 opsys=usg5-3
1923 ## Data General AViiON Machines
1924 ## DG changed naming conventions with the release of 5.4.4.10, they
1925 ## dropped the initial 5.4 but left the intervening R. Because of the
1926 ## R this shouldn't conflict with older versions of the OS (which I
1927 ## think were named like dgux4.*). In addition, DG new AViiONs series
1928 ## uses either Motorola M88k or Intel Pentium CPUs.
1929 m88k-dg-dguxR4.* | m88k-dg-dgux4* )
1930 machine=aviion opsys=dgux4
1932 m88k-dg-dgux5.4R3* | m88k-dg-dgux5.4.3* )
1933 ## This name is dgux5-4-3 instead of dgux5-4r3
1934 ## to avoid a file name conflict on MSDOS.
1935 machine=aviion opsys=dgux5-4-3
1937 m88k-dg-dgux5.4R2* | m88k-dg-dgux5.4.2* )
1938 machine=aviion opsys=dgux5-4r2
1940 m88k-dg-dgux* )
1941 machine=aviion opsys=dgux
1944 ## Data General AViiON Intel (x86) Machines
1945 ## Exists from 5.4.3 (current i586-dg-dguxR4.11)
1946 ## Ehud Karni, 1998-may-30, ehud@unix.simonwiesel.co.il
1947 i[345]86-dg-dguxR4* )
1948 machine=aviion-intel opsys=dgux4
1951 ## DECstations
1952 mips-dec-ultrix[0-3].* | mips-dec-ultrix4.0* | mips-dec-bsd4.2* )
1953 machine=pmax opsys=bsd4-2
1955 mips-dec-ultrix4.[12]* | mips-dec-bsd* )
1956 machine=pmax opsys=bsd4-3
1958 mips-dec-ultrix* )
1959 machine=pmax opsys=ultrix4-3
1961 mips-dec-osf* )
1962 machine=pmax opsys=osf1
1964 mips-dec-mach_bsd4.3* )
1965 machine=pmax opsys=mach-bsd4-3
1968 ## Motorola Delta machines
1969 m68k-motorola-sysv* | m68000-motorola-sysv* )
1970 machine=delta opsys=usg5-3
1971 if test -z "`type gnucc | grep 'not found'`"
1972 then
1973 if test -s /etc/167config
1974 then CC="gnucc -m68040"
1975 else CC="gnucc -m68881"
1977 else
1978 if test -z "`type gcc | grep 'not found'`"
1979 then CC=gcc
1980 else CC=cc
1984 m88k-motorola-sysv4* )
1985 # jbotte@bnr.ca says that UNIX_System_V <hostName> 4.0 R40V4.3 m88k mc88110
1986 # needs POSIX_SIGNALS and therefore needs usg5-4-2.
1987 # I hope there are not other 4.0 versions for this machine
1988 # which really need usg5-4 instead.
1989 machine=delta88k opsys=usg5-4-2
1991 m88k-motorola-sysv* | m88k-motorola-m88kbcs* )
1992 machine=delta88k opsys=usg5-3
1995 ## Dual machines
1996 m68*-dual-sysv* )
1997 machine=dual opsys=usg5-2
1999 m68*-dual-uniplus* )
2000 machine=dual opsys=unipl5-2
2003 ## Elxsi 6400
2004 elxsi-elxsi-sysv* )
2005 machine=elxsi opsys=usg5-2
2008 ## Encore machines
2009 ns16k-encore-bsd* )
2010 machine=ns16000 opsys=umax
2013 ## The GEC 63 - apparently, this port isn't really finished yet.
2014 # I'm sure we finished off the last of the machines, though. -- fx
2016 ## Gould Power Node and NP1
2017 pn-gould-bsd4.2* )
2018 machine=gould opsys=bsd4-2
2020 pn-gould-bsd4.3* )
2021 machine=gould opsys=bsd4-3
2023 np1-gould-bsd* )
2024 machine=gould-np1 opsys=bsd4-3
2027 ## Harris Night Hawk machines running CX/UX (a 5000 looks just like a 4000
2028 ## as far as Emacs is concerned).
2029 m88k-harris-cxux* )
2030 # Build needs to be different on 7.0 and later releases
2031 case "`uname -r`" in
2032 [56].[0-9] ) machine=nh4000 opsys=cxux ;;
2033 [7].[0-9] ) machine=nh4000 opsys=cxux7 ;;
2034 esac
2035 NON_GNU_CPP="/lib/cpp"
2037 ## Harris ecx or gcx running CX/UX (Series 1200, Series 3000)
2038 m68k-harris-cxux* )
2039 machine=nh3000 opsys=cxux
2041 ## Harris power pc NightHawk running Power UNIX (Series 6000)
2042 powerpc-harris-powerunix )
2043 machine=nh6000 opsys=powerunix
2044 NON_GNU_CPP="cc -Xo -E -P"
2046 ## SR2001/SR2201 running HI-UX/MPP
2047 hppa1.1-hitachi-hiuxmpp* )
2048 machine=sr2k opsys=hiuxmpp
2050 hppa1.1-hitachi-hiuxwe2* )
2051 machine=sr2k opsys=hiuxwe2
2053 ## Honeywell XPS100
2054 xps*-honeywell-sysv* )
2055 machine=xps100 opsys=usg5-2
2058 ## HP 9000 series 200 or 300
2059 m68*-hp-bsd* )
2060 machine=hp9000s300 opsys=bsd4-3
2062 ## HP/UX 7, 8, 9, and 10 are supported on these machines.
2063 m68*-hp-hpux* )
2064 case "`uname -r`" in
2065 ## Someone's system reports A.B8.05 for this.
2066 ## I wonder what other possibilities there are.
2067 *.B8.* ) machine=hp9000s300 opsys=hpux8 ;;
2068 *.08.* ) machine=hp9000s300 opsys=hpux8 ;;
2069 *.09.* ) machine=hp9000s300 opsys=hpux9 ;;
2070 *.1[0-9].* ) machine=hp9000s300 opsys=hpux9shr ;;
2071 *) machine=hp9000s300 opsys=hpux ;;
2072 esac
2075 ## HP 9000 series 700 and 800, running HP/UX
2076 hppa*-hp-hpux7* )
2077 machine=hp800 opsys=hpux
2079 hppa*-hp-hpux8* )
2080 machine=hp800 opsys=hpux8
2082 hppa*-hp-hpux9shr* )
2083 machine=hp800 opsys=hpux9shr
2085 hppa*-hp-hpux9* )
2086 machine=hp800 opsys=hpux9
2088 hppa*-hp-hpux10.2* )
2089 machine=hp800 opsys=hpux10-20
2091 hppa*-hp-hpux10* )
2092 machine=hp800 opsys=hpux10
2094 hppa*-hp-hpux1[1-9]* )
2095 machine=hp800 opsys=hpux11
2096 CFLAGS="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
2099 hppa*-*-linux-gnu* )
2100 machine=hp800 opsys=gnu-linux
2103 ## HP 9000 series 700 and 800, running HP/UX
2104 hppa*-hp-hpux* )
2105 ## Cross-compilation? Nah!
2106 case "`uname -r`" in
2107 ## Someone's system reports A.B8.05 for this.
2108 ## I wonder what other possibilities there are.
2109 *.B8.* ) machine=hp800 opsys=hpux8 ;;
2110 *.08.* ) machine=hp800 opsys=hpux8 ;;
2111 *.09.* ) machine=hp800 opsys=hpux9 ;;
2112 *) machine=hp800 opsys=hpux10 ;;
2113 esac
2115 hppa*-*-nextstep* )
2116 machine=hp800 opsys=nextstep
2119 ## Orion machines
2120 orion-orion-bsd* )
2121 machine=orion opsys=bsd4-2
2123 clipper-orion-bsd* )
2124 machine=orion105 opsys=bsd4-2
2127 ## IBM machines
2128 i[3456]86-ibm-aix1.1* )
2129 machine=ibmps2-aix opsys=usg5-2-2
2131 i[3456]86-ibm-aix1.[23]* | i[3456]86-ibm-aix* )
2132 machine=ibmps2-aix opsys=usg5-3
2134 i370-ibm-aix*)
2135 machine=ibm370aix opsys=usg5-3
2137 s390-*-linux-gnu* )
2138 machine=ibms390 opsys=gnu-linux
2140 s390x-*-linux-gnu* )
2141 machine=ibms390x opsys=gnu-linux
2143 rs6000-ibm-aix3.1* | powerpc-ibm-aix3.1* )
2144 machine=ibmrs6000 opsys=aix3-1
2146 rs6000-ibm-aix3.2.5 | powerpc-ibm-aix3.2.5 )
2147 machine=ibmrs6000 opsys=aix3-2-5
2149 rs6000-ibm-aix4.1* | powerpc-ibm-aix4.1* )
2150 machine=ibmrs6000 opsys=aix4-1
2152 rs6000-ibm-aix4.2* | powerpc-ibm-aix4.2* )
2153 machine=ibmrs6000 opsys=aix4-2
2155 rs6000-ibm-aix5* | powerpc-ibm-aix5* )
2156 machine=ibmrs6000 opsys=aix4-2
2158 rs6000-ibm-aix4.0* | powerpc-ibm-aix4.0* )
2159 machine=ibmrs6000 opsys=aix4
2161 rs6000-ibm-aix4* | powerpc-ibm-aix4* )
2162 machine=ibmrs6000 opsys=aix4-1
2164 rs6000-ibm-aix* | powerpc-ibm-aix* )
2165 machine=ibmrs6000 opsys=aix3-2
2167 romp-ibm-bsd4.3* )
2168 machine=ibmrt opsys=bsd4-3
2170 romp-ibm-bsd4.2* )
2171 machine=ibmrt opsys=bsd4-2
2173 romp-ibm-aos4.3* )
2174 machine=ibmrt opsys=bsd4-3
2176 romp-ibm-aos4.2* )
2177 machine=ibmrt opsys=bsd4-2
2179 romp-ibm-aos* )
2180 machine=ibmrt opsys=bsd4-3
2182 romp-ibm-bsd* )
2183 machine=ibmrt opsys=bsd4-3
2185 romp-ibm-aix* )
2186 machine=ibmrt-aix opsys=usg5-2-2
2189 ## Integrated Solutions `Optimum V'
2190 m68*-isi-bsd4.2* )
2191 machine=isi-ov opsys=bsd4-2
2193 m68*-isi-bsd4.3* )
2194 machine=isi-ov opsys=bsd4-3
2197 ## Intel 386 machines where we do care about the manufacturer
2198 i[3456]86-intsys-sysv* )
2199 machine=is386 opsys=usg5-2-2
2202 ## Prime EXL
2203 i[3456]86-prime-sysv* )
2204 machine=i386 opsys=usg5-3
2207 ## Sequent Symmetry running Dynix
2208 i[3456]86-sequent-bsd* )
2209 machine=symmetry opsys=bsd4-3
2212 ## Sequent Symmetry running ptx 4, which is a modified SVR4.
2213 i[3456]86-sequent-ptx4* | i[3456]86-sequent-sysv4* )
2214 machine=sequent-ptx opsys=ptx4
2215 NON_GNU_CPP=/lib/cpp
2218 ## Sequent Symmetry running DYNIX/ptx
2219 ## Use the old cpp rather than the newer ANSI one.
2220 i[3456]86-sequent-ptx* )
2221 machine=sequent-ptx opsys=ptx
2222 NON_GNU_CPP="/lib/cpp"
2225 ## ncr machine running svr4.3.
2226 i[3456]86-ncr-sysv4.3 )
2227 machine=ncr386 opsys=usg5-4-3
2230 ## Unspecified sysv on an ncr machine defaults to svr4.2.
2231 ## (Plain usg5-4 doesn't turn on POSIX signals, which we need.)
2232 i[3456]86-ncr-sysv* )
2233 machine=ncr386 opsys=usg5-4-2
2236 ## Intel Paragon OSF/1
2237 i860-intel-osf1* )
2238 machine=paragon opsys=osf1 NON_GNU_CPP=/usr/mach/lib/cpp
2241 ## Intel 860
2242 i860-*-sysv4* )
2243 machine=i860 opsys=usg5-4
2244 NON_GNU_CC="/bin/cc" # Ie, not the one in /usr/ucb/cc.
2245 NON_GNU_CPP="/usr/ccs/lib/cpp" # cc -E tokenizes macro expansion.
2248 ## Macintosh PowerPC
2249 powerpc*-*-linux-gnu* )
2250 machine=macppc opsys=gnu-linux
2253 ## Masscomp machines
2254 m68*-masscomp-rtu* )
2255 machine=masscomp opsys=rtu
2258 ## Megatest machines
2259 m68*-megatest-bsd* )
2260 machine=mega68 opsys=bsd4-2
2263 ## Workstations sold by MIPS
2264 ## This is not necessarily all workstations using the MIPS processor -
2265 ## Irises are produced by SGI, and DECstations by DEC.
2267 ## etc/MACHINES lists mips.h and mips4.h as possible machine files,
2268 ## and usg5-2-2 and bsd4-3 as possible OS files. The only guidance
2269 ## it gives for choosing between the alternatives seems to be "Use
2270 ## -machine=mips4 for RISCOS version 4; use -opsystem=bsd4-3 with
2271 ## the BSD world." I'll assume that these are instructions for
2272 ## handling two odd situations, and that every other situation
2273 ## should use mips.h and usg5-2-2, they being listed first.
2274 mips-mips-usg* )
2275 machine=mips4
2276 ## Fall through to the general code at the bottom to decide on the OS.
2278 mips-mips-riscos4* )
2279 machine=mips4 opsys=bsd4-3
2280 NON_GNU_CC="cc -systype bsd43"
2281 NON_GNU_CPP="cc -systype bsd43 -E"
2283 mips-mips-riscos5* )
2284 machine=mips4 opsys=riscos5
2285 NON_GNU_CC="cc -systype bsd43"
2286 NON_GNU_CPP="cc -systype bsd43 -E"
2288 mips-mips-bsd* )
2289 machine=mips opsys=bsd4-3
2291 mips-mips-* )
2292 machine=mips opsys=usg5-2-2
2295 ## NeXT
2296 m68*-next-* | m68k-*-nextstep* )
2297 machine=m68k opsys=nextstep
2300 ## The complete machine from National Semiconductor
2301 ns32k-ns-genix* )
2302 machine=ns32000 opsys=usg5-2
2305 ## NCR machines
2306 m68*-ncr-sysv2* | m68*-ncr-sysvr2* )
2307 machine=tower32 opsys=usg5-2-2
2309 m68*-ncr-sysv3* | m68*-ncr-sysvr3* )
2310 machine=tower32v3 opsys=usg5-3
2313 ## NEC EWS4800
2314 mips-nec-sysv4*)
2315 machine=ews4800 opsys=ux4800
2318 ## Nixdorf Targon 31
2319 m68*-nixdorf-sysv* )
2320 machine=targon31 opsys=usg5-2-2
2323 ## Nu (TI or LMI)
2324 m68*-nu-sysv* )
2325 machine=nu opsys=usg5-2
2328 ## Plexus
2329 m68*-plexus-sysv* )
2330 machine=plexus opsys=usg5-2
2333 ## Pyramid machines
2334 ## I don't really have any idea what sort of processor the Pyramid has,
2335 ## so I'm assuming it is its own architecture.
2336 pyramid-pyramid-bsd* )
2337 machine=pyramid opsys=bsd4-2
2340 ## Sequent Balance
2341 ns32k-sequent-bsd4.2* )
2342 machine=sequent opsys=bsd4-2
2344 ns32k-sequent-bsd4.3* )
2345 machine=sequent opsys=bsd4-3
2348 ## Siemens Nixdorf
2349 mips-siemens-sysv* | mips-sni-sysv*)
2350 machine=mips-siemens opsys=usg5-4
2351 NON_GNU_CC=/usr/ccs/bin/cc
2352 NON_GNU_CPP=/usr/ccs/lib/cpp
2355 ## Silicon Graphics machines
2356 ## Iris 2500 and Iris 2500 Turbo (aka the Iris 3030)
2357 m68*-sgi-iris3.5* )
2358 machine=irist opsys=iris3-5
2360 m68*-sgi-iris3.6* | m68*-sgi-iris*)
2361 machine=irist opsys=iris3-6
2363 ## Iris 4D
2364 mips-sgi-irix3* )
2365 machine=iris4d opsys=irix3-3
2367 mips-sgi-irix4* )
2368 machine=iris4d opsys=irix4-0
2370 mips-sgi-irix6.5 )
2371 machine=iris4d opsys=irix6-5
2372 # Without defining _LANGUAGE_C, things get masked out in the headers
2373 # so that, for instance, grepping for `free' in stdlib.h fails and
2374 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
2375 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
2376 NON_GCC_TEST_OPTIONS="-D_LANGUAGE_C"
2378 mips-sgi-irix6* )
2379 machine=iris4d opsys=irix6-0
2380 # It's not clear whether -D_LANGUAGE_C is necessary as it is for 6.5,
2381 # but presumably it does no harm.
2382 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
2383 # -32 probably isn't necessary in later v.6s -- anyone know which?
2384 NON_GCC_TEST_OPTIONS=-32
2386 mips-sgi-irix5.[01]* )
2387 machine=iris4d opsys=irix5-0
2389 mips-sgi-irix5* | mips-sgi-irix* )
2390 machine=iris4d opsys=irix5-2
2393 ## SONY machines
2394 m68*-sony-bsd4.2* )
2395 machine=news opsys=bsd4-2
2397 m68*-sony-bsd4.3* )
2398 machine=news opsys=bsd4-3
2400 m68*-sony-newsos3* | m68*-sony-news3*)
2401 machine=news opsys=bsd4-3
2403 mips-sony-bsd* | mips-sony-newsos4* | mips-sony-news4*)
2404 machine=news-risc opsys=bsd4-3
2406 mips-sony-newsos6* )
2407 machine=news-r6 opsys=newsos6
2409 mips-sony-news* )
2410 machine=news-risc opsys=newsos5
2413 ## Stride
2414 m68*-stride-sysv* )
2415 machine=stride opsys=usg5-2
2418 ## Suns
2419 sparc-*-linux-gnu* | sparc64-*-linux-gnu* )
2420 machine=sparc opsys=gnu-linux
2423 *-auspex-sunos* | *-sun-sunos* | *-sun-bsd* | *-sun-solaris* \
2424 | i[3456]86-*-solaris2* | i[3456]86-*-sunos5* | powerpc*-*-solaris2* \
2425 | rs6000-*-solaris2*)
2426 case "${canonical}" in
2427 m68*-sunos1* ) machine=sun1 ;;
2428 m68*-sunos2* ) machine=sun2 ;;
2429 m68* ) machine=sun3 ;;
2430 i[3456]86-sun-sunos[34]* ) machine=sun386 ;;
2431 i[3456]86-*-* ) machine=intel386 ;;
2432 powerpcle* ) machine=powerpcle ;;
2433 powerpc* | rs6000* ) machine=ibmrs6000 ;;
2434 sparc* ) machine=sparc ;;
2435 * ) unported=yes ;;
2436 esac
2437 case "${canonical}" in
2438 ## The Sun386 didn't get past 4.0.
2439 i[3456]86-*-sunos4 ) opsys=sunos4-0 ;;
2440 *-sunos4.0* ) opsys=sunos4-0 ;;
2441 *-sunos4.1.[3-9]*noshare )
2442 ## This name is sunos413 instead of sunos4-1-3
2443 ## to avoid a file name conflict on MSDOS.
2444 opsys=sunos413
2445 NON_GNU_CPP=/usr/lib/cpp
2446 NON_GCC_TEST_OPTIONS=-Bstatic
2447 GCC_TEST_OPTIONS=-static
2449 *-sunos4.1.[3-9]* | *-sunos4shr*)
2450 opsys=sunos4shr
2451 NON_GNU_CPP=/usr/lib/cpp
2453 *-sunos4* | *-sunos )
2454 opsys=sunos4-1
2455 NON_GCC_TEST_OPTIONS=-Bstatic
2456 GCC_TEST_OPTIONS=-static
2458 *-sunos5.3* | *-solaris2.3* )
2459 opsys=sol2-3
2460 NON_GNU_CPP=/usr/ccs/lib/cpp
2462 *-sunos5.4* | *-solaris2.4* )
2463 opsys=sol2-4
2464 NON_GNU_CPP=/usr/ccs/lib/cpp
2465 RANLIB="ar -ts"
2467 *-sunos5.5* | *-solaris2.5* )
2468 opsys=sol2-5
2469 NON_GNU_CPP=/usr/ccs/lib/cpp
2470 RANLIB="ar -ts"
2472 *-sunos5.6* | *-solaris2.6* )
2473 opsys=sol2-6
2474 NON_GNU_CPP=/usr/ccs/lib/cpp
2475 RANLIB="ar -ts"
2477 *-sunos5* | *-solaris* )
2478 opsys=sol2-6
2479 NON_GNU_CPP=/usr/ccs/lib/cpp
2481 * ) opsys=bsd4-2 ;;
2482 esac
2483 ## Watch out for a compiler that we know will not work.
2484 case "${canonical}" in
2485 *-solaris* | *-sunos5* )
2486 if [ "x$CC" = x/usr/ucb/cc ]; then
2487 ## /usr/ucb/cc doesn't work;
2488 ## we should find some other compiler that does work.
2489 unset CC
2492 *) ;;
2493 esac
2495 sparc-*-nextstep* )
2496 machine=sparc opsys=nextstep
2499 ## Tadpole 68k
2500 m68*-tadpole-sysv* )
2501 machine=tad68k opsys=usg5-3
2504 ## Tahoe machines
2505 tahoe-tahoe-bsd4.2* )
2506 machine=tahoe opsys=bsd4-2
2508 tahoe-tahoe-bsd4.3* )
2509 machine=tahoe opsys=bsd4-3
2512 ## Tandem Integrity S2
2513 mips-tandem-sysv* )
2514 machine=tandem-s2 opsys=usg5-3
2517 ## Tektronix XD88
2518 m88k-tektronix-sysv3* )
2519 machine=tekxd88 opsys=usg5-3
2522 ## Tektronix 16000 box (6130?)
2523 ns16k-tektronix-bsd* )
2524 machine=ns16000 opsys=bsd4-2
2526 ## Tektronix 4300
2527 ## src/m/tek4300.h hints that this is a m68k machine.
2528 m68*-tektronix-bsd* )
2529 machine=tek4300 opsys=bsd4-3
2532 ## Titan P2 or P3
2533 ## We seem to have lost the machine-description file titan.h!
2534 titan-titan-sysv* )
2535 machine=titan opsys=usg5-3
2538 ## Ustation E30 (SS5E)
2539 m68*-unisys-uniplus* )
2540 machine=ustation opsystem=unipl5-2
2543 ## Vaxen.
2544 vax-dec-* )
2545 machine=vax
2546 case "${canonical}" in
2547 *-bsd4.1* ) opsys=bsd4-1 ;;
2548 *-bsd4.2* | *-ultrix[0-3].* | *-ultrix4.0* ) opsys=bsd4-2 ;;
2549 *-bsd4.3* | *-ultrix* ) opsys=bsd4-3 ;;
2550 *-sysv[01]* | *-sysvr[01]* ) opsys=usg5-0 ;;
2551 *-sysv2* | *-sysvr2* ) opsys=usg5-2 ;;
2552 *-vms* ) opsys=vms ;;
2553 * ) unported=yes
2554 esac
2557 ## Whitechapel MG1
2558 ns16k-whitechapel-* )
2559 machine=mg1
2560 ## We don't know what sort of OS runs on these; we'll let the
2561 ## operating system guessing code below try.
2564 ## Wicat
2565 m68*-wicat-sysv* )
2566 machine=wicat opsys=usg5-2
2569 ## IA-64
2570 ia64*-*-linux* )
2571 machine=ia64 opsys=gnu-linux
2574 ## Intel 386 machines where we don't care about the manufacturer
2575 i[3456]86-*-* )
2576 machine=intel386
2577 case "${canonical}" in
2578 *-cygwin ) opsys=cygwin ;;
2579 *-darwin* ) opsys=darwin
2580 CPP="${CC-cc} -E -no-cpp-precomp"
2582 *-isc1.* | *-isc2.[01]* ) opsys=386-ix ;;
2583 *-isc2.2* ) opsys=isc2-2 ;;
2584 *-isc4.0* ) opsys=isc4-0 ;;
2585 *-isc4.* ) opsys=isc4-1
2586 GCC_TEST_OPTIONS=-posix
2587 NON_GCC_TEST_OPTIONS=-Xp
2589 *-isc* ) opsys=isc3-0 ;;
2590 *-esix5* ) opsys=esix5r4; NON_GNU_CPP=/usr/lib/cpp ;;
2591 *-esix* ) opsys=esix ;;
2592 *-xenix* ) opsys=xenix ;;
2593 *-linux-gnu* ) opsys=gnu-linux ;;
2594 *-sco3.2v4* ) opsys=sco4 ; NON_GNU_CPP=/lib/cpp ;;
2595 *-sco3.2v5* ) opsys=sco5
2596 NON_GNU_CPP=/lib/cpp
2597 # Prevent -belf from being passed to $CPP.
2598 # /lib/cpp does not accept it.
2599 OVERRIDE_CPPFLAGS=" "
2601 *-sysv4.2uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
2602 *-sysv5uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
2603 *-sysv5OpenUNIX* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
2604 *-386bsd* ) opsys=386bsd ;;
2605 *-nextstep* ) opsys=nextstep ;;
2606 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
2607 esac
2610 ## m68k Linux-based GNU system
2611 m68k-*-linux-gnu* )
2612 machine=m68k opsys=gnu-linux
2615 ## Mips Linux-based GNU system
2616 mips-*-linux-gnu* | mipsel-*-linux-gnu* )
2617 machine=mips opsys=gnu-linux
2620 ## UXP/DS
2621 sparc-fujitsu-sysv4* )
2622 machine=sparc opsys=uxpds
2623 NON_GNU_CPP=/usr/ccs/lib/cpp
2624 RANLIB="ar -ts"
2627 ## UXP/V
2628 f301-fujitsu-uxpv4.1)
2629 machine=f301 opsys=uxpv
2632 ## Darwin / Mac OS X
2633 powerpc-apple-darwin* )
2634 machine=powermac opsys=darwin
2635 # Define CPP as follows to make autoconf work correctly.
2636 CPP="${CC-cc} -E -no-cpp-precomp"
2637 # Use fink packages if available.
2638 if test -d /sw/include && test -d /sw/lib; then
2639 GCC_TEST_OPTIONS="-I/sw/include -L/sw/lib"
2640 CPP="${CPP} ${GCC_TEST_OPTIONS}"
2641 NON_GCC_TEST_OPTIONS=${GCC_TEST_OPTIONS}
2645 ## AMD x86-64 Linux-based GNU system
2646 x86_64-*-linux-gnu* )
2647 machine=amdx86-64 opsys=gnu-linux
2651 unported=yes
2653 esac
2655 ### If the code above didn't choose an operating system, just choose
2656 ### an operating system based on the configuration name. You really
2657 ### only want to use this when you have no idea what the right
2658 ### operating system is; if you know what operating systems a machine
2659 ### runs, it's cleaner to make it explicit in the case statement
2660 ### above.
2661 if test x"${opsys}" = x; then
2662 case "${canonical}" in
2663 *-gnu* ) opsys=gnu ;;
2664 *-bsd4.[01] ) opsys=bsd4-1 ;;
2665 *-bsd4.2 ) opsys=bsd4-2 ;;
2666 *-bsd4.3 ) opsys=bsd4-3 ;;
2667 *-sysv0 | *-sysvr0 ) opsys=usg5-0 ;;
2668 *-sysv2 | *-sysvr2 ) opsys=usg5-2 ;;
2669 *-sysv2.2 | *-sysvr2.2 ) opsys=usg5-2-2 ;;
2670 *-sysv3* | *-sysvr3* ) opsys=usg5-3 ;;
2671 *-sysv4.2uw* ) opsys=unixware ;;
2672 *-sysv5uw* ) opsys=unixware ;;
2673 *-sysv5OpenUNIX* ) opsys=unixware ;;
2674 *-sysv4.1* | *-sysvr4.1* )
2675 NON_GNU_CPP=/usr/lib/cpp
2676 opsys=usg5-4 ;;
2677 *-sysv4.[2-9]* | *-sysvr4.[2-9]* )
2678 if [ x$NON_GNU_CPP = x ]; then
2679 if [ -f /usr/ccs/lib/cpp ]; then
2680 NON_GNU_CPP=/usr/ccs/lib/cpp
2681 else
2682 NON_GNU_CPP=/lib/cpp
2685 opsys=usg5-4-2 ;;
2686 *-sysv4* | *-sysvr4* ) opsys=usg5-4 ;;
2688 unported=yes
2690 esac
2695 if test $unported = yes; then
2696 { { echo "$as_me:$LINENO: error: Emacs hasn't been ported to \`${canonical}' systems.
2697 Check \`etc/MACHINES' for recognized configuration names." >&5
2698 echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems.
2699 Check \`etc/MACHINES' for recognized configuration names." >&2;}
2700 { (exit 1); exit 1; }; }
2703 machfile="m/${machine}.h"
2704 opsysfile="s/${opsys}.h"
2707 #### Choose a compiler.
2708 test -n "$CC" && cc_specified=yes
2710 # Save the value of CFLAGS that the user specified.
2711 SPECIFIED_CFLAGS="$CFLAGS"
2713 case ${with_gcc} in
2714 "yes" ) CC="gcc" GCC=yes ;;
2715 "no" ) : ${CC=cc} ;;
2717 esac
2718 ac_ext=c
2719 ac_cpp='$CPP $CPPFLAGS'
2720 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2721 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2722 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2723 if test -n "$ac_tool_prefix"; then
2724 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2725 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2726 echo "$as_me:$LINENO: checking for $ac_word" >&5
2727 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2728 if test "${ac_cv_prog_CC+set}" = set; then
2729 echo $ECHO_N "(cached) $ECHO_C" >&6
2730 else
2731 if test -n "$CC"; then
2732 ac_cv_prog_CC="$CC" # Let the user override the test.
2733 else
2734 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2735 for as_dir in $PATH
2737 IFS=$as_save_IFS
2738 test -z "$as_dir" && as_dir=.
2739 for ac_exec_ext in '' $ac_executable_extensions; do
2740 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2741 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2742 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2743 break 2
2745 done
2746 done
2750 CC=$ac_cv_prog_CC
2751 if test -n "$CC"; then
2752 echo "$as_me:$LINENO: result: $CC" >&5
2753 echo "${ECHO_T}$CC" >&6
2754 else
2755 echo "$as_me:$LINENO: result: no" >&5
2756 echo "${ECHO_T}no" >&6
2760 if test -z "$ac_cv_prog_CC"; then
2761 ac_ct_CC=$CC
2762 # Extract the first word of "gcc", so it can be a program name with args.
2763 set dummy gcc; ac_word=$2
2764 echo "$as_me:$LINENO: checking for $ac_word" >&5
2765 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2766 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2767 echo $ECHO_N "(cached) $ECHO_C" >&6
2768 else
2769 if test -n "$ac_ct_CC"; then
2770 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2771 else
2772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2773 for as_dir in $PATH
2775 IFS=$as_save_IFS
2776 test -z "$as_dir" && as_dir=.
2777 for ac_exec_ext in '' $ac_executable_extensions; do
2778 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2779 ac_cv_prog_ac_ct_CC="gcc"
2780 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2781 break 2
2783 done
2784 done
2788 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2789 if test -n "$ac_ct_CC"; then
2790 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2791 echo "${ECHO_T}$ac_ct_CC" >&6
2792 else
2793 echo "$as_me:$LINENO: result: no" >&5
2794 echo "${ECHO_T}no" >&6
2797 CC=$ac_ct_CC
2798 else
2799 CC="$ac_cv_prog_CC"
2802 if test -z "$CC"; then
2803 if test -n "$ac_tool_prefix"; then
2804 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2805 set dummy ${ac_tool_prefix}cc; ac_word=$2
2806 echo "$as_me:$LINENO: checking for $ac_word" >&5
2807 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2808 if test "${ac_cv_prog_CC+set}" = set; then
2809 echo $ECHO_N "(cached) $ECHO_C" >&6
2810 else
2811 if test -n "$CC"; then
2812 ac_cv_prog_CC="$CC" # Let the user override the test.
2813 else
2814 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2815 for as_dir in $PATH
2817 IFS=$as_save_IFS
2818 test -z "$as_dir" && as_dir=.
2819 for ac_exec_ext in '' $ac_executable_extensions; do
2820 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2821 ac_cv_prog_CC="${ac_tool_prefix}cc"
2822 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2823 break 2
2825 done
2826 done
2830 CC=$ac_cv_prog_CC
2831 if test -n "$CC"; then
2832 echo "$as_me:$LINENO: result: $CC" >&5
2833 echo "${ECHO_T}$CC" >&6
2834 else
2835 echo "$as_me:$LINENO: result: no" >&5
2836 echo "${ECHO_T}no" >&6
2840 if test -z "$ac_cv_prog_CC"; then
2841 ac_ct_CC=$CC
2842 # Extract the first word of "cc", so it can be a program name with args.
2843 set dummy cc; ac_word=$2
2844 echo "$as_me:$LINENO: checking for $ac_word" >&5
2845 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2846 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2847 echo $ECHO_N "(cached) $ECHO_C" >&6
2848 else
2849 if test -n "$ac_ct_CC"; then
2850 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2851 else
2852 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2853 for as_dir in $PATH
2855 IFS=$as_save_IFS
2856 test -z "$as_dir" && as_dir=.
2857 for ac_exec_ext in '' $ac_executable_extensions; do
2858 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2859 ac_cv_prog_ac_ct_CC="cc"
2860 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2861 break 2
2863 done
2864 done
2868 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2869 if test -n "$ac_ct_CC"; then
2870 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2871 echo "${ECHO_T}$ac_ct_CC" >&6
2872 else
2873 echo "$as_me:$LINENO: result: no" >&5
2874 echo "${ECHO_T}no" >&6
2877 CC=$ac_ct_CC
2878 else
2879 CC="$ac_cv_prog_CC"
2883 if test -z "$CC"; then
2884 # Extract the first word of "cc", so it can be a program name with args.
2885 set dummy cc; ac_word=$2
2886 echo "$as_me:$LINENO: checking for $ac_word" >&5
2887 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2888 if test "${ac_cv_prog_CC+set}" = set; then
2889 echo $ECHO_N "(cached) $ECHO_C" >&6
2890 else
2891 if test -n "$CC"; then
2892 ac_cv_prog_CC="$CC" # Let the user override the test.
2893 else
2894 ac_prog_rejected=no
2895 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2896 for as_dir in $PATH
2898 IFS=$as_save_IFS
2899 test -z "$as_dir" && as_dir=.
2900 for ac_exec_ext in '' $ac_executable_extensions; do
2901 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2902 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2903 ac_prog_rejected=yes
2904 continue
2906 ac_cv_prog_CC="cc"
2907 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2908 break 2
2910 done
2911 done
2913 if test $ac_prog_rejected = yes; then
2914 # We found a bogon in the path, so make sure we never use it.
2915 set dummy $ac_cv_prog_CC
2916 shift
2917 if test $# != 0; then
2918 # We chose a different compiler from the bogus one.
2919 # However, it has the same basename, so the bogon will be chosen
2920 # first if we set CC to just the basename; use the full file name.
2921 shift
2922 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2927 CC=$ac_cv_prog_CC
2928 if test -n "$CC"; then
2929 echo "$as_me:$LINENO: result: $CC" >&5
2930 echo "${ECHO_T}$CC" >&6
2931 else
2932 echo "$as_me:$LINENO: result: no" >&5
2933 echo "${ECHO_T}no" >&6
2937 if test -z "$CC"; then
2938 if test -n "$ac_tool_prefix"; then
2939 for ac_prog in cl
2941 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2942 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2943 echo "$as_me:$LINENO: checking for $ac_word" >&5
2944 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2945 if test "${ac_cv_prog_CC+set}" = set; then
2946 echo $ECHO_N "(cached) $ECHO_C" >&6
2947 else
2948 if test -n "$CC"; then
2949 ac_cv_prog_CC="$CC" # Let the user override the test.
2950 else
2951 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2952 for as_dir in $PATH
2954 IFS=$as_save_IFS
2955 test -z "$as_dir" && as_dir=.
2956 for ac_exec_ext in '' $ac_executable_extensions; do
2957 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2958 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2959 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2960 break 2
2962 done
2963 done
2967 CC=$ac_cv_prog_CC
2968 if test -n "$CC"; then
2969 echo "$as_me:$LINENO: result: $CC" >&5
2970 echo "${ECHO_T}$CC" >&6
2971 else
2972 echo "$as_me:$LINENO: result: no" >&5
2973 echo "${ECHO_T}no" >&6
2976 test -n "$CC" && break
2977 done
2979 if test -z "$CC"; then
2980 ac_ct_CC=$CC
2981 for ac_prog in cl
2983 # Extract the first word of "$ac_prog", so it can be a program name with args.
2984 set dummy $ac_prog; ac_word=$2
2985 echo "$as_me:$LINENO: checking for $ac_word" >&5
2986 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2987 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2988 echo $ECHO_N "(cached) $ECHO_C" >&6
2989 else
2990 if test -n "$ac_ct_CC"; then
2991 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2992 else
2993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2994 for as_dir in $PATH
2996 IFS=$as_save_IFS
2997 test -z "$as_dir" && as_dir=.
2998 for ac_exec_ext in '' $ac_executable_extensions; do
2999 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3000 ac_cv_prog_ac_ct_CC="$ac_prog"
3001 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3002 break 2
3004 done
3005 done
3009 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3010 if test -n "$ac_ct_CC"; then
3011 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3012 echo "${ECHO_T}$ac_ct_CC" >&6
3013 else
3014 echo "$as_me:$LINENO: result: no" >&5
3015 echo "${ECHO_T}no" >&6
3018 test -n "$ac_ct_CC" && break
3019 done
3021 CC=$ac_ct_CC
3027 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3028 See \`config.log' for more details." >&5
3029 echo "$as_me: error: no acceptable C compiler found in \$PATH
3030 See \`config.log' for more details." >&2;}
3031 { (exit 1); exit 1; }; }
3033 # Provide some information about the compiler.
3034 echo "$as_me:$LINENO:" \
3035 "checking for C compiler version" >&5
3036 ac_compiler=`set X $ac_compile; echo $2`
3037 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3038 (eval $ac_compiler --version </dev/null >&5) 2>&5
3039 ac_status=$?
3040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3041 (exit $ac_status); }
3042 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3043 (eval $ac_compiler -v </dev/null >&5) 2>&5
3044 ac_status=$?
3045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3046 (exit $ac_status); }
3047 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3048 (eval $ac_compiler -V </dev/null >&5) 2>&5
3049 ac_status=$?
3050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3051 (exit $ac_status); }
3053 cat >conftest.$ac_ext <<_ACEOF
3054 /* confdefs.h. */
3055 _ACEOF
3056 cat confdefs.h >>conftest.$ac_ext
3057 cat >>conftest.$ac_ext <<_ACEOF
3058 /* end confdefs.h. */
3061 main ()
3065 return 0;
3067 _ACEOF
3068 ac_clean_files_save=$ac_clean_files
3069 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3070 # Try to create an executable without -o first, disregard a.out.
3071 # It will help us diagnose broken compilers, and finding out an intuition
3072 # of exeext.
3073 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3074 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
3075 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3076 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
3077 (eval $ac_link_default) 2>&5
3078 ac_status=$?
3079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3080 (exit $ac_status); }; then
3081 # Find the output, starting from the most likely. This scheme is
3082 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
3083 # resort.
3085 # Be careful to initialize this variable, since it used to be cached.
3086 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
3087 ac_cv_exeext=
3088 # b.out is created by i960 compilers.
3089 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
3091 test -f "$ac_file" || continue
3092 case $ac_file in
3093 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
3095 conftest.$ac_ext )
3096 # This is the source file.
3098 [ab].out )
3099 # We found the default executable, but exeext='' is most
3100 # certainly right.
3101 break;;
3102 *.* )
3103 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3104 # FIXME: I believe we export ac_cv_exeext for Libtool,
3105 # but it would be cool to find out if it's true. Does anybody
3106 # maintain Libtool? --akim.
3107 export ac_cv_exeext
3108 break;;
3110 break;;
3111 esac
3112 done
3113 else
3114 echo "$as_me: failed program was:" >&5
3115 sed 's/^/| /' conftest.$ac_ext >&5
3117 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3118 See \`config.log' for more details." >&5
3119 echo "$as_me: error: C compiler cannot create executables
3120 See \`config.log' for more details." >&2;}
3121 { (exit 77); exit 77; }; }
3124 ac_exeext=$ac_cv_exeext
3125 echo "$as_me:$LINENO: result: $ac_file" >&5
3126 echo "${ECHO_T}$ac_file" >&6
3128 # Check the compiler produces executables we can run. If not, either
3129 # the compiler is broken, or we cross compile.
3130 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3131 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
3132 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3133 # If not cross compiling, check that we can run a simple program.
3134 if test "$cross_compiling" != yes; then
3135 if { ac_try='./$ac_file'
3136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3137 (eval $ac_try) 2>&5
3138 ac_status=$?
3139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3140 (exit $ac_status); }; }; then
3141 cross_compiling=no
3142 else
3143 if test "$cross_compiling" = maybe; then
3144 cross_compiling=yes
3145 else
3146 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3147 If you meant to cross compile, use \`--host'.
3148 See \`config.log' for more details." >&5
3149 echo "$as_me: error: cannot run C compiled programs.
3150 If you meant to cross compile, use \`--host'.
3151 See \`config.log' for more details." >&2;}
3152 { (exit 1); exit 1; }; }
3156 echo "$as_me:$LINENO: result: yes" >&5
3157 echo "${ECHO_T}yes" >&6
3159 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3160 ac_clean_files=$ac_clean_files_save
3161 # Check the compiler produces executables we can run. If not, either
3162 # the compiler is broken, or we cross compile.
3163 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3164 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
3165 echo "$as_me:$LINENO: result: $cross_compiling" >&5
3166 echo "${ECHO_T}$cross_compiling" >&6
3168 echo "$as_me:$LINENO: checking for suffix of executables" >&5
3169 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
3170 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3171 (eval $ac_link) 2>&5
3172 ac_status=$?
3173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3174 (exit $ac_status); }; then
3175 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3176 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3177 # work properly (i.e., refer to `conftest.exe'), while it won't with
3178 # `rm'.
3179 for ac_file in conftest.exe conftest conftest.*; do
3180 test -f "$ac_file" || continue
3181 case $ac_file in
3182 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
3183 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3184 export ac_cv_exeext
3185 break;;
3186 * ) break;;
3187 esac
3188 done
3189 else
3190 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3191 See \`config.log' for more details." >&5
3192 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3193 See \`config.log' for more details." >&2;}
3194 { (exit 1); exit 1; }; }
3197 rm -f conftest$ac_cv_exeext
3198 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3199 echo "${ECHO_T}$ac_cv_exeext" >&6
3201 rm -f conftest.$ac_ext
3202 EXEEXT=$ac_cv_exeext
3203 ac_exeext=$EXEEXT
3204 echo "$as_me:$LINENO: checking for suffix of object files" >&5
3205 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
3206 if test "${ac_cv_objext+set}" = set; then
3207 echo $ECHO_N "(cached) $ECHO_C" >&6
3208 else
3209 cat >conftest.$ac_ext <<_ACEOF
3210 /* confdefs.h. */
3211 _ACEOF
3212 cat confdefs.h >>conftest.$ac_ext
3213 cat >>conftest.$ac_ext <<_ACEOF
3214 /* end confdefs.h. */
3217 main ()
3221 return 0;
3223 _ACEOF
3224 rm -f conftest.o conftest.obj
3225 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3226 (eval $ac_compile) 2>&5
3227 ac_status=$?
3228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3229 (exit $ac_status); }; then
3230 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
3231 case $ac_file in
3232 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
3233 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3234 break;;
3235 esac
3236 done
3237 else
3238 echo "$as_me: failed program was:" >&5
3239 sed 's/^/| /' conftest.$ac_ext >&5
3241 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3242 See \`config.log' for more details." >&5
3243 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3244 See \`config.log' for more details." >&2;}
3245 { (exit 1); exit 1; }; }
3248 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3250 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3251 echo "${ECHO_T}$ac_cv_objext" >&6
3252 OBJEXT=$ac_cv_objext
3253 ac_objext=$OBJEXT
3254 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3255 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3256 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3257 echo $ECHO_N "(cached) $ECHO_C" >&6
3258 else
3259 cat >conftest.$ac_ext <<_ACEOF
3260 /* confdefs.h. */
3261 _ACEOF
3262 cat confdefs.h >>conftest.$ac_ext
3263 cat >>conftest.$ac_ext <<_ACEOF
3264 /* end confdefs.h. */
3267 main ()
3269 #ifndef __GNUC__
3270 choke me
3271 #endif
3274 return 0;
3276 _ACEOF
3277 rm -f conftest.$ac_objext
3278 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3279 (eval $ac_compile) 2>conftest.er1
3280 ac_status=$?
3281 grep -v '^ *+' conftest.er1 >conftest.err
3282 rm -f conftest.er1
3283 cat conftest.err >&5
3284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3285 (exit $ac_status); } &&
3286 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3288 (eval $ac_try) 2>&5
3289 ac_status=$?
3290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3291 (exit $ac_status); }; } &&
3292 { ac_try='test -s conftest.$ac_objext'
3293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3294 (eval $ac_try) 2>&5
3295 ac_status=$?
3296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3297 (exit $ac_status); }; }; then
3298 ac_compiler_gnu=yes
3299 else
3300 echo "$as_me: failed program was:" >&5
3301 sed 's/^/| /' conftest.$ac_ext >&5
3303 ac_compiler_gnu=no
3305 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3306 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3309 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3310 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3311 GCC=`test $ac_compiler_gnu = yes && echo yes`
3312 ac_test_CFLAGS=${CFLAGS+set}
3313 ac_save_CFLAGS=$CFLAGS
3314 CFLAGS="-g"
3315 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3316 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3317 if test "${ac_cv_prog_cc_g+set}" = set; then
3318 echo $ECHO_N "(cached) $ECHO_C" >&6
3319 else
3320 cat >conftest.$ac_ext <<_ACEOF
3321 /* confdefs.h. */
3322 _ACEOF
3323 cat confdefs.h >>conftest.$ac_ext
3324 cat >>conftest.$ac_ext <<_ACEOF
3325 /* end confdefs.h. */
3328 main ()
3332 return 0;
3334 _ACEOF
3335 rm -f conftest.$ac_objext
3336 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3337 (eval $ac_compile) 2>conftest.er1
3338 ac_status=$?
3339 grep -v '^ *+' conftest.er1 >conftest.err
3340 rm -f conftest.er1
3341 cat conftest.err >&5
3342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3343 (exit $ac_status); } &&
3344 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3346 (eval $ac_try) 2>&5
3347 ac_status=$?
3348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3349 (exit $ac_status); }; } &&
3350 { ac_try='test -s conftest.$ac_objext'
3351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3352 (eval $ac_try) 2>&5
3353 ac_status=$?
3354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3355 (exit $ac_status); }; }; then
3356 ac_cv_prog_cc_g=yes
3357 else
3358 echo "$as_me: failed program was:" >&5
3359 sed 's/^/| /' conftest.$ac_ext >&5
3361 ac_cv_prog_cc_g=no
3363 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3365 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3366 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3367 if test "$ac_test_CFLAGS" = set; then
3368 CFLAGS=$ac_save_CFLAGS
3369 elif test $ac_cv_prog_cc_g = yes; then
3370 if test "$GCC" = yes; then
3371 CFLAGS="-g -O2"
3372 else
3373 CFLAGS="-g"
3375 else
3376 if test "$GCC" = yes; then
3377 CFLAGS="-O2"
3378 else
3379 CFLAGS=
3382 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3383 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3384 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3385 echo $ECHO_N "(cached) $ECHO_C" >&6
3386 else
3387 ac_cv_prog_cc_stdc=no
3388 ac_save_CC=$CC
3389 cat >conftest.$ac_ext <<_ACEOF
3390 /* confdefs.h. */
3391 _ACEOF
3392 cat confdefs.h >>conftest.$ac_ext
3393 cat >>conftest.$ac_ext <<_ACEOF
3394 /* end confdefs.h. */
3395 #include <stdarg.h>
3396 #include <stdio.h>
3397 #include <sys/types.h>
3398 #include <sys/stat.h>
3399 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3400 struct buf { int x; };
3401 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3402 static char *e (p, i)
3403 char **p;
3404 int i;
3406 return p[i];
3408 static char *f (char * (*g) (char **, int), char **p, ...)
3410 char *s;
3411 va_list v;
3412 va_start (v,p);
3413 s = g (p, va_arg (v,int));
3414 va_end (v);
3415 return s;
3418 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3419 function prototypes and stuff, but not '\xHH' hex character constants.
3420 These don't provoke an error unfortunately, instead are silently treated
3421 as 'x'. The following induces an error, until -std1 is added to get
3422 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3423 array size at least. It's necessary to write '\x00'==0 to get something
3424 that's true only with -std1. */
3425 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3427 int test (int i, double x);
3428 struct s1 {int (*f) (int a);};
3429 struct s2 {int (*f) (double a);};
3430 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3431 int argc;
3432 char **argv;
3434 main ()
3436 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3438 return 0;
3440 _ACEOF
3441 # Don't try gcc -ansi; that turns off useful extensions and
3442 # breaks some systems' header files.
3443 # AIX -qlanglvl=ansi
3444 # Ultrix and OSF/1 -std1
3445 # HP-UX 10.20 and later -Ae
3446 # HP-UX older versions -Aa -D_HPUX_SOURCE
3447 # SVR4 -Xc -D__EXTENSIONS__
3448 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3450 CC="$ac_save_CC $ac_arg"
3451 rm -f conftest.$ac_objext
3452 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3453 (eval $ac_compile) 2>conftest.er1
3454 ac_status=$?
3455 grep -v '^ *+' conftest.er1 >conftest.err
3456 rm -f conftest.er1
3457 cat conftest.err >&5
3458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3459 (exit $ac_status); } &&
3460 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3462 (eval $ac_try) 2>&5
3463 ac_status=$?
3464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3465 (exit $ac_status); }; } &&
3466 { ac_try='test -s conftest.$ac_objext'
3467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3468 (eval $ac_try) 2>&5
3469 ac_status=$?
3470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3471 (exit $ac_status); }; }; then
3472 ac_cv_prog_cc_stdc=$ac_arg
3473 break
3474 else
3475 echo "$as_me: failed program was:" >&5
3476 sed 's/^/| /' conftest.$ac_ext >&5
3479 rm -f conftest.err conftest.$ac_objext
3480 done
3481 rm -f conftest.$ac_ext conftest.$ac_objext
3482 CC=$ac_save_CC
3486 case "x$ac_cv_prog_cc_stdc" in
3487 x|xno)
3488 echo "$as_me:$LINENO: result: none needed" >&5
3489 echo "${ECHO_T}none needed" >&6 ;;
3491 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3492 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3493 CC="$CC $ac_cv_prog_cc_stdc" ;;
3494 esac
3496 # Some people use a C++ compiler to compile C. Since we use `exit',
3497 # in C++ we need to declare it. In case someone uses the same compiler
3498 # for both compiling C and C++ we need to have the C++ compiler decide
3499 # the declaration of exit, since it's the most demanding environment.
3500 cat >conftest.$ac_ext <<_ACEOF
3501 #ifndef __cplusplus
3502 choke me
3503 #endif
3504 _ACEOF
3505 rm -f conftest.$ac_objext
3506 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3507 (eval $ac_compile) 2>conftest.er1
3508 ac_status=$?
3509 grep -v '^ *+' conftest.er1 >conftest.err
3510 rm -f conftest.er1
3511 cat conftest.err >&5
3512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3513 (exit $ac_status); } &&
3514 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3516 (eval $ac_try) 2>&5
3517 ac_status=$?
3518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3519 (exit $ac_status); }; } &&
3520 { ac_try='test -s conftest.$ac_objext'
3521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3522 (eval $ac_try) 2>&5
3523 ac_status=$?
3524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3525 (exit $ac_status); }; }; then
3526 for ac_declaration in \
3527 '' \
3528 'extern "C" void std::exit (int) throw (); using std::exit;' \
3529 'extern "C" void std::exit (int); using std::exit;' \
3530 'extern "C" void exit (int) throw ();' \
3531 'extern "C" void exit (int);' \
3532 'void exit (int);'
3534 cat >conftest.$ac_ext <<_ACEOF
3535 /* confdefs.h. */
3536 _ACEOF
3537 cat confdefs.h >>conftest.$ac_ext
3538 cat >>conftest.$ac_ext <<_ACEOF
3539 /* end confdefs.h. */
3540 $ac_declaration
3541 #include <stdlib.h>
3543 main ()
3545 exit (42);
3547 return 0;
3549 _ACEOF
3550 rm -f conftest.$ac_objext
3551 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3552 (eval $ac_compile) 2>conftest.er1
3553 ac_status=$?
3554 grep -v '^ *+' conftest.er1 >conftest.err
3555 rm -f conftest.er1
3556 cat conftest.err >&5
3557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3558 (exit $ac_status); } &&
3559 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3561 (eval $ac_try) 2>&5
3562 ac_status=$?
3563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3564 (exit $ac_status); }; } &&
3565 { ac_try='test -s conftest.$ac_objext'
3566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3567 (eval $ac_try) 2>&5
3568 ac_status=$?
3569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3570 (exit $ac_status); }; }; then
3572 else
3573 echo "$as_me: failed program was:" >&5
3574 sed 's/^/| /' conftest.$ac_ext >&5
3576 continue
3578 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3579 cat >conftest.$ac_ext <<_ACEOF
3580 /* confdefs.h. */
3581 _ACEOF
3582 cat confdefs.h >>conftest.$ac_ext
3583 cat >>conftest.$ac_ext <<_ACEOF
3584 /* end confdefs.h. */
3585 $ac_declaration
3587 main ()
3589 exit (42);
3591 return 0;
3593 _ACEOF
3594 rm -f conftest.$ac_objext
3595 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3596 (eval $ac_compile) 2>conftest.er1
3597 ac_status=$?
3598 grep -v '^ *+' conftest.er1 >conftest.err
3599 rm -f conftest.er1
3600 cat conftest.err >&5
3601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3602 (exit $ac_status); } &&
3603 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3605 (eval $ac_try) 2>&5
3606 ac_status=$?
3607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3608 (exit $ac_status); }; } &&
3609 { ac_try='test -s conftest.$ac_objext'
3610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3611 (eval $ac_try) 2>&5
3612 ac_status=$?
3613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3614 (exit $ac_status); }; }; then
3615 break
3616 else
3617 echo "$as_me: failed program was:" >&5
3618 sed 's/^/| /' conftest.$ac_ext >&5
3621 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3622 done
3623 rm -f conftest*
3624 if test -n "$ac_declaration"; then
3625 echo '#ifdef __cplusplus' >>confdefs.h
3626 echo $ac_declaration >>confdefs.h
3627 echo '#endif' >>confdefs.h
3630 else
3631 echo "$as_me: failed program was:" >&5
3632 sed 's/^/| /' conftest.$ac_ext >&5
3635 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3636 ac_ext=c
3637 ac_cpp='$CPP $CPPFLAGS'
3638 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3639 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3640 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3643 # On Suns, sometimes $CPP names a directory.
3644 if test -n "$CPP" && test -d "$CPP"; then
3645 CPP=
3648 #### Some systems specify a CPP to use unless we are using GCC.
3649 #### Now that we know whether we are using GCC, we can decide whether
3650 #### to use that one.
3651 if test "x$NON_GNU_CPP" != x && test x$GCC != xyes && test "x$CPP" = x
3652 then
3653 CPP="$NON_GNU_CPP"
3656 #### Some systems specify a CC to use unless we are using GCC.
3657 #### Now that we know whether we are using GCC, we can decide whether
3658 #### to use that one.
3659 if test "x$NON_GNU_CC" != x && test x$GCC != xyes &&
3660 test x$cc_specified != xyes
3661 then
3662 CC="$NON_GNU_CC"
3665 if test x$GCC = xyes && test "x$GCC_TEST_OPTIONS" != x
3666 then
3667 CC="$CC $GCC_TEST_OPTIONS"
3670 if test x$GCC = x && test "x$NON_GCC_TEST_OPTIONS" != x
3671 then
3672 CC="$CC $NON_GCC_TEST_OPTIONS"
3676 ac_ext=c
3677 ac_cpp='$CPP $CPPFLAGS'
3678 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3679 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3680 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3681 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3682 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3683 # On Suns, sometimes $CPP names a directory.
3684 if test -n "$CPP" && test -d "$CPP"; then
3685 CPP=
3687 if test -z "$CPP"; then
3688 if test "${ac_cv_prog_CPP+set}" = set; then
3689 echo $ECHO_N "(cached) $ECHO_C" >&6
3690 else
3691 # Double quotes because CPP needs to be expanded
3692 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3694 ac_preproc_ok=false
3695 for ac_c_preproc_warn_flag in '' yes
3697 # Use a header file that comes with gcc, so configuring glibc
3698 # with a fresh cross-compiler works.
3699 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3700 # <limits.h> exists even on freestanding compilers.
3701 # On the NeXT, cc -E runs the code through the compiler's parser,
3702 # not just through cpp. "Syntax error" is here to catch this case.
3703 cat >conftest.$ac_ext <<_ACEOF
3704 /* confdefs.h. */
3705 _ACEOF
3706 cat confdefs.h >>conftest.$ac_ext
3707 cat >>conftest.$ac_ext <<_ACEOF
3708 /* end confdefs.h. */
3709 #ifdef __STDC__
3710 # include <limits.h>
3711 #else
3712 # include <assert.h>
3713 #endif
3714 Syntax error
3715 _ACEOF
3716 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3717 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3718 ac_status=$?
3719 grep -v '^ *+' conftest.er1 >conftest.err
3720 rm -f conftest.er1
3721 cat conftest.err >&5
3722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3723 (exit $ac_status); } >/dev/null; then
3724 if test -s conftest.err; then
3725 ac_cpp_err=$ac_c_preproc_warn_flag
3726 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3727 else
3728 ac_cpp_err=
3730 else
3731 ac_cpp_err=yes
3733 if test -z "$ac_cpp_err"; then
3735 else
3736 echo "$as_me: failed program was:" >&5
3737 sed 's/^/| /' conftest.$ac_ext >&5
3739 # Broken: fails on valid input.
3740 continue
3742 rm -f conftest.err conftest.$ac_ext
3744 # OK, works on sane cases. Now check whether non-existent headers
3745 # can be detected and how.
3746 cat >conftest.$ac_ext <<_ACEOF
3747 /* confdefs.h. */
3748 _ACEOF
3749 cat confdefs.h >>conftest.$ac_ext
3750 cat >>conftest.$ac_ext <<_ACEOF
3751 /* end confdefs.h. */
3752 #include <ac_nonexistent.h>
3753 _ACEOF
3754 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3755 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3756 ac_status=$?
3757 grep -v '^ *+' conftest.er1 >conftest.err
3758 rm -f conftest.er1
3759 cat conftest.err >&5
3760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3761 (exit $ac_status); } >/dev/null; then
3762 if test -s conftest.err; then
3763 ac_cpp_err=$ac_c_preproc_warn_flag
3764 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3765 else
3766 ac_cpp_err=
3768 else
3769 ac_cpp_err=yes
3771 if test -z "$ac_cpp_err"; then
3772 # Broken: success on invalid input.
3773 continue
3774 else
3775 echo "$as_me: failed program was:" >&5
3776 sed 's/^/| /' conftest.$ac_ext >&5
3778 # Passes both tests.
3779 ac_preproc_ok=:
3780 break
3782 rm -f conftest.err conftest.$ac_ext
3784 done
3785 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3786 rm -f conftest.err conftest.$ac_ext
3787 if $ac_preproc_ok; then
3788 break
3791 done
3792 ac_cv_prog_CPP=$CPP
3795 CPP=$ac_cv_prog_CPP
3796 else
3797 ac_cv_prog_CPP=$CPP
3799 echo "$as_me:$LINENO: result: $CPP" >&5
3800 echo "${ECHO_T}$CPP" >&6
3801 ac_preproc_ok=false
3802 for ac_c_preproc_warn_flag in '' yes
3804 # Use a header file that comes with gcc, so configuring glibc
3805 # with a fresh cross-compiler works.
3806 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3807 # <limits.h> exists even on freestanding compilers.
3808 # On the NeXT, cc -E runs the code through the compiler's parser,
3809 # not just through cpp. "Syntax error" is here to catch this case.
3810 cat >conftest.$ac_ext <<_ACEOF
3811 /* confdefs.h. */
3812 _ACEOF
3813 cat confdefs.h >>conftest.$ac_ext
3814 cat >>conftest.$ac_ext <<_ACEOF
3815 /* end confdefs.h. */
3816 #ifdef __STDC__
3817 # include <limits.h>
3818 #else
3819 # include <assert.h>
3820 #endif
3821 Syntax error
3822 _ACEOF
3823 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3824 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3825 ac_status=$?
3826 grep -v '^ *+' conftest.er1 >conftest.err
3827 rm -f conftest.er1
3828 cat conftest.err >&5
3829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3830 (exit $ac_status); } >/dev/null; then
3831 if test -s conftest.err; then
3832 ac_cpp_err=$ac_c_preproc_warn_flag
3833 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3834 else
3835 ac_cpp_err=
3837 else
3838 ac_cpp_err=yes
3840 if test -z "$ac_cpp_err"; then
3842 else
3843 echo "$as_me: failed program was:" >&5
3844 sed 's/^/| /' conftest.$ac_ext >&5
3846 # Broken: fails on valid input.
3847 continue
3849 rm -f conftest.err conftest.$ac_ext
3851 # OK, works on sane cases. Now check whether non-existent headers
3852 # can be detected and how.
3853 cat >conftest.$ac_ext <<_ACEOF
3854 /* confdefs.h. */
3855 _ACEOF
3856 cat confdefs.h >>conftest.$ac_ext
3857 cat >>conftest.$ac_ext <<_ACEOF
3858 /* end confdefs.h. */
3859 #include <ac_nonexistent.h>
3860 _ACEOF
3861 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3862 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3863 ac_status=$?
3864 grep -v '^ *+' conftest.er1 >conftest.err
3865 rm -f conftest.er1
3866 cat conftest.err >&5
3867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3868 (exit $ac_status); } >/dev/null; then
3869 if test -s conftest.err; then
3870 ac_cpp_err=$ac_c_preproc_warn_flag
3871 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3872 else
3873 ac_cpp_err=
3875 else
3876 ac_cpp_err=yes
3878 if test -z "$ac_cpp_err"; then
3879 # Broken: success on invalid input.
3880 continue
3881 else
3882 echo "$as_me: failed program was:" >&5
3883 sed 's/^/| /' conftest.$ac_ext >&5
3885 # Passes both tests.
3886 ac_preproc_ok=:
3887 break
3889 rm -f conftest.err conftest.$ac_ext
3891 done
3892 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3893 rm -f conftest.err conftest.$ac_ext
3894 if $ac_preproc_ok; then
3896 else
3897 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3898 See \`config.log' for more details." >&5
3899 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3900 See \`config.log' for more details." >&2;}
3901 { (exit 1); exit 1; }; }
3904 ac_ext=c
3905 ac_cpp='$CPP $CPPFLAGS'
3906 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3907 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3908 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3911 echo "$as_me:$LINENO: checking for egrep" >&5
3912 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3913 if test "${ac_cv_prog_egrep+set}" = set; then
3914 echo $ECHO_N "(cached) $ECHO_C" >&6
3915 else
3916 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3917 then ac_cv_prog_egrep='grep -E'
3918 else ac_cv_prog_egrep='egrep'
3921 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3922 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3923 EGREP=$ac_cv_prog_egrep
3927 echo "$as_me:$LINENO: checking for AIX" >&5
3928 echo $ECHO_N "checking for AIX... $ECHO_C" >&6
3929 cat >conftest.$ac_ext <<_ACEOF
3930 /* confdefs.h. */
3931 _ACEOF
3932 cat confdefs.h >>conftest.$ac_ext
3933 cat >>conftest.$ac_ext <<_ACEOF
3934 /* end confdefs.h. */
3935 #ifdef _AIX
3937 #endif
3939 _ACEOF
3940 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3941 $EGREP "yes" >/dev/null 2>&1; then
3942 echo "$as_me:$LINENO: result: yes" >&5
3943 echo "${ECHO_T}yes" >&6
3944 cat >>confdefs.h <<\_ACEOF
3945 #define _ALL_SOURCE 1
3946 _ACEOF
3948 else
3949 echo "$as_me:$LINENO: result: no" >&5
3950 echo "${ECHO_T}no" >&6
3952 rm -f conftest*
3956 cat >>confdefs.h <<\_ACEOF
3957 #define _GNU_SOURCE 1
3958 _ACEOF
3962 ### Use -Wno-pointer-sign if the compiler supports it
3963 echo "$as_me:$LINENO: checking whether gcc understands -Wno-pointer-sign" >&5
3964 echo $ECHO_N "checking whether gcc understands -Wno-pointer-sign... $ECHO_C" >&6
3965 SAVE_CFLAGS="$CFLAGS"
3966 CFLAGS="$CFLAGS -Wno-pointer-sign"
3967 cat >conftest.$ac_ext <<_ACEOF
3968 /* confdefs.h. */
3969 _ACEOF
3970 cat confdefs.h >>conftest.$ac_ext
3971 cat >>conftest.$ac_ext <<_ACEOF
3972 /* end confdefs.h. */
3975 main ()
3979 return 0;
3981 _ACEOF
3982 rm -f conftest.$ac_objext
3983 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3984 (eval $ac_compile) 2>conftest.er1
3985 ac_status=$?
3986 grep -v '^ *+' conftest.er1 >conftest.err
3987 rm -f conftest.er1
3988 cat conftest.err >&5
3989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3990 (exit $ac_status); } &&
3991 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3993 (eval $ac_try) 2>&5
3994 ac_status=$?
3995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3996 (exit $ac_status); }; } &&
3997 { ac_try='test -s conftest.$ac_objext'
3998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3999 (eval $ac_try) 2>&5
4000 ac_status=$?
4001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4002 (exit $ac_status); }; }; then
4003 has_option=yes
4004 else
4005 echo "$as_me: failed program was:" >&5
4006 sed 's/^/| /' conftest.$ac_ext >&5
4008 has_option=no
4010 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4011 if test $has_option = yes; then
4012 C_WARNINGS_SWITCH="-Wno-pointer-sign $C_WARNINGS_SWITCH"
4014 echo "$as_me:$LINENO: result: $has_option" >&5
4015 echo "${ECHO_T}$has_option" >&6
4016 CFLAGS="$SAVE_CFLAGS"
4017 unset has_option
4018 unset SAVE_CFLAGS
4020 #### Some other nice autoconf tests.
4022 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4023 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4024 LN_S=$as_ln_s
4025 if test "$LN_S" = "ln -s"; then
4026 echo "$as_me:$LINENO: result: yes" >&5
4027 echo "${ECHO_T}yes" >&6
4028 else
4029 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4030 echo "${ECHO_T}no, using $LN_S" >&6
4033 ac_ext=c
4034 ac_cpp='$CPP $CPPFLAGS'
4035 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4036 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4037 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4038 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4039 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
4040 # On Suns, sometimes $CPP names a directory.
4041 if test -n "$CPP" && test -d "$CPP"; then
4042 CPP=
4044 if test -z "$CPP"; then
4045 if test "${ac_cv_prog_CPP+set}" = set; then
4046 echo $ECHO_N "(cached) $ECHO_C" >&6
4047 else
4048 # Double quotes because CPP needs to be expanded
4049 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4051 ac_preproc_ok=false
4052 for ac_c_preproc_warn_flag in '' yes
4054 # Use a header file that comes with gcc, so configuring glibc
4055 # with a fresh cross-compiler works.
4056 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4057 # <limits.h> exists even on freestanding compilers.
4058 # On the NeXT, cc -E runs the code through the compiler's parser,
4059 # not just through cpp. "Syntax error" is here to catch this case.
4060 cat >conftest.$ac_ext <<_ACEOF
4061 /* confdefs.h. */
4062 _ACEOF
4063 cat confdefs.h >>conftest.$ac_ext
4064 cat >>conftest.$ac_ext <<_ACEOF
4065 /* end confdefs.h. */
4066 #ifdef __STDC__
4067 # include <limits.h>
4068 #else
4069 # include <assert.h>
4070 #endif
4071 Syntax error
4072 _ACEOF
4073 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4074 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4075 ac_status=$?
4076 grep -v '^ *+' conftest.er1 >conftest.err
4077 rm -f conftest.er1
4078 cat conftest.err >&5
4079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4080 (exit $ac_status); } >/dev/null; then
4081 if test -s conftest.err; then
4082 ac_cpp_err=$ac_c_preproc_warn_flag
4083 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4084 else
4085 ac_cpp_err=
4087 else
4088 ac_cpp_err=yes
4090 if test -z "$ac_cpp_err"; then
4092 else
4093 echo "$as_me: failed program was:" >&5
4094 sed 's/^/| /' conftest.$ac_ext >&5
4096 # Broken: fails on valid input.
4097 continue
4099 rm -f conftest.err conftest.$ac_ext
4101 # OK, works on sane cases. Now check whether non-existent headers
4102 # can be detected and how.
4103 cat >conftest.$ac_ext <<_ACEOF
4104 /* confdefs.h. */
4105 _ACEOF
4106 cat confdefs.h >>conftest.$ac_ext
4107 cat >>conftest.$ac_ext <<_ACEOF
4108 /* end confdefs.h. */
4109 #include <ac_nonexistent.h>
4110 _ACEOF
4111 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4112 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4113 ac_status=$?
4114 grep -v '^ *+' conftest.er1 >conftest.err
4115 rm -f conftest.er1
4116 cat conftest.err >&5
4117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4118 (exit $ac_status); } >/dev/null; then
4119 if test -s conftest.err; then
4120 ac_cpp_err=$ac_c_preproc_warn_flag
4121 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4122 else
4123 ac_cpp_err=
4125 else
4126 ac_cpp_err=yes
4128 if test -z "$ac_cpp_err"; then
4129 # Broken: success on invalid input.
4130 continue
4131 else
4132 echo "$as_me: failed program was:" >&5
4133 sed 's/^/| /' conftest.$ac_ext >&5
4135 # Passes both tests.
4136 ac_preproc_ok=:
4137 break
4139 rm -f conftest.err conftest.$ac_ext
4141 done
4142 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4143 rm -f conftest.err conftest.$ac_ext
4144 if $ac_preproc_ok; then
4145 break
4148 done
4149 ac_cv_prog_CPP=$CPP
4152 CPP=$ac_cv_prog_CPP
4153 else
4154 ac_cv_prog_CPP=$CPP
4156 echo "$as_me:$LINENO: result: $CPP" >&5
4157 echo "${ECHO_T}$CPP" >&6
4158 ac_preproc_ok=false
4159 for ac_c_preproc_warn_flag in '' yes
4161 # Use a header file that comes with gcc, so configuring glibc
4162 # with a fresh cross-compiler works.
4163 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4164 # <limits.h> exists even on freestanding compilers.
4165 # On the NeXT, cc -E runs the code through the compiler's parser,
4166 # not just through cpp. "Syntax error" is here to catch this case.
4167 cat >conftest.$ac_ext <<_ACEOF
4168 /* confdefs.h. */
4169 _ACEOF
4170 cat confdefs.h >>conftest.$ac_ext
4171 cat >>conftest.$ac_ext <<_ACEOF
4172 /* end confdefs.h. */
4173 #ifdef __STDC__
4174 # include <limits.h>
4175 #else
4176 # include <assert.h>
4177 #endif
4178 Syntax error
4179 _ACEOF
4180 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4181 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4182 ac_status=$?
4183 grep -v '^ *+' conftest.er1 >conftest.err
4184 rm -f conftest.er1
4185 cat conftest.err >&5
4186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4187 (exit $ac_status); } >/dev/null; then
4188 if test -s conftest.err; then
4189 ac_cpp_err=$ac_c_preproc_warn_flag
4190 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4191 else
4192 ac_cpp_err=
4194 else
4195 ac_cpp_err=yes
4197 if test -z "$ac_cpp_err"; then
4199 else
4200 echo "$as_me: failed program was:" >&5
4201 sed 's/^/| /' conftest.$ac_ext >&5
4203 # Broken: fails on valid input.
4204 continue
4206 rm -f conftest.err conftest.$ac_ext
4208 # OK, works on sane cases. Now check whether non-existent headers
4209 # can be detected and how.
4210 cat >conftest.$ac_ext <<_ACEOF
4211 /* confdefs.h. */
4212 _ACEOF
4213 cat confdefs.h >>conftest.$ac_ext
4214 cat >>conftest.$ac_ext <<_ACEOF
4215 /* end confdefs.h. */
4216 #include <ac_nonexistent.h>
4217 _ACEOF
4218 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4219 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4220 ac_status=$?
4221 grep -v '^ *+' conftest.er1 >conftest.err
4222 rm -f conftest.er1
4223 cat conftest.err >&5
4224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4225 (exit $ac_status); } >/dev/null; then
4226 if test -s conftest.err; then
4227 ac_cpp_err=$ac_c_preproc_warn_flag
4228 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4229 else
4230 ac_cpp_err=
4232 else
4233 ac_cpp_err=yes
4235 if test -z "$ac_cpp_err"; then
4236 # Broken: success on invalid input.
4237 continue
4238 else
4239 echo "$as_me: failed program was:" >&5
4240 sed 's/^/| /' conftest.$ac_ext >&5
4242 # Passes both tests.
4243 ac_preproc_ok=:
4244 break
4246 rm -f conftest.err conftest.$ac_ext
4248 done
4249 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4250 rm -f conftest.err conftest.$ac_ext
4251 if $ac_preproc_ok; then
4253 else
4254 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4255 See \`config.log' for more details." >&5
4256 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4257 See \`config.log' for more details." >&2;}
4258 { (exit 1); exit 1; }; }
4261 ac_ext=c
4262 ac_cpp='$CPP $CPPFLAGS'
4263 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4264 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4265 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4267 # Find a good install program. We prefer a C program (faster),
4268 # so one script is as good as another. But avoid the broken or
4269 # incompatible versions:
4270 # SysV /etc/install, /usr/sbin/install
4271 # SunOS /usr/etc/install
4272 # IRIX /sbin/install
4273 # AIX /bin/install
4274 # AmigaOS /C/install, which installs bootblocks on floppy discs
4275 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4276 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4277 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4278 # OS/2's system install, which has a completely different semantic
4279 # ./install, which can be erroneously created by make from ./install.sh.
4280 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4281 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
4282 if test -z "$INSTALL"; then
4283 if test "${ac_cv_path_install+set}" = set; then
4284 echo $ECHO_N "(cached) $ECHO_C" >&6
4285 else
4286 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4287 for as_dir in $PATH
4289 IFS=$as_save_IFS
4290 test -z "$as_dir" && as_dir=.
4291 # Account for people who put trailing slashes in PATH elements.
4292 case $as_dir/ in
4293 ./ | .// | /cC/* | \
4294 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4295 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4296 /usr/ucb/* ) ;;
4298 # OSF1 and SCO ODT 3.0 have their own names for install.
4299 # Don't use installbsd from OSF since it installs stuff as root
4300 # by default.
4301 for ac_prog in ginstall scoinst install; do
4302 for ac_exec_ext in '' $ac_executable_extensions; do
4303 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4304 if test $ac_prog = install &&
4305 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4306 # AIX install. It has an incompatible calling convention.
4308 elif test $ac_prog = install &&
4309 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4310 # program-specific install script used by HP pwplus--don't use.
4312 else
4313 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4314 break 3
4317 done
4318 done
4320 esac
4321 done
4325 if test "${ac_cv_path_install+set}" = set; then
4326 INSTALL=$ac_cv_path_install
4327 else
4328 # As a last resort, use the slow shell script. We don't cache a
4329 # path for INSTALL within a source directory, because that will
4330 # break other packages using the cache if that directory is
4331 # removed, or if the path is relative.
4332 INSTALL=$ac_install_sh
4335 echo "$as_me:$LINENO: result: $INSTALL" >&5
4336 echo "${ECHO_T}$INSTALL" >&6
4338 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4339 # It thinks the first close brace ends the variable substitution.
4340 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4342 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4344 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4346 if test "x$RANLIB" = x; then
4347 if test -n "$ac_tool_prefix"; then
4348 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4349 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4350 echo "$as_me:$LINENO: checking for $ac_word" >&5
4351 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4352 if test "${ac_cv_prog_RANLIB+set}" = set; then
4353 echo $ECHO_N "(cached) $ECHO_C" >&6
4354 else
4355 if test -n "$RANLIB"; then
4356 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4357 else
4358 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4359 for as_dir in $PATH
4361 IFS=$as_save_IFS
4362 test -z "$as_dir" && as_dir=.
4363 for ac_exec_ext in '' $ac_executable_extensions; do
4364 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4365 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4366 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4367 break 2
4369 done
4370 done
4374 RANLIB=$ac_cv_prog_RANLIB
4375 if test -n "$RANLIB"; then
4376 echo "$as_me:$LINENO: result: $RANLIB" >&5
4377 echo "${ECHO_T}$RANLIB" >&6
4378 else
4379 echo "$as_me:$LINENO: result: no" >&5
4380 echo "${ECHO_T}no" >&6
4384 if test -z "$ac_cv_prog_RANLIB"; then
4385 ac_ct_RANLIB=$RANLIB
4386 # Extract the first word of "ranlib", so it can be a program name with args.
4387 set dummy ranlib; ac_word=$2
4388 echo "$as_me:$LINENO: checking for $ac_word" >&5
4389 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4390 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4391 echo $ECHO_N "(cached) $ECHO_C" >&6
4392 else
4393 if test -n "$ac_ct_RANLIB"; then
4394 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4395 else
4396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4397 for as_dir in $PATH
4399 IFS=$as_save_IFS
4400 test -z "$as_dir" && as_dir=.
4401 for ac_exec_ext in '' $ac_executable_extensions; do
4402 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4403 ac_cv_prog_ac_ct_RANLIB="ranlib"
4404 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4405 break 2
4407 done
4408 done
4410 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4413 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4414 if test -n "$ac_ct_RANLIB"; then
4415 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4416 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4417 else
4418 echo "$as_me:$LINENO: result: no" >&5
4419 echo "${ECHO_T}no" >&6
4422 RANLIB=$ac_ct_RANLIB
4423 else
4424 RANLIB="$ac_cv_prog_RANLIB"
4428 # Extract the first word of "install-info", so it can be a program name with args.
4429 set dummy install-info; ac_word=$2
4430 echo "$as_me:$LINENO: checking for $ac_word" >&5
4431 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4432 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
4433 echo $ECHO_N "(cached) $ECHO_C" >&6
4434 else
4435 case $INSTALL_INFO in
4436 [\\/]* | ?:[\\/]*)
4437 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
4440 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4441 for as_dir in $PATH
4443 IFS=$as_save_IFS
4444 test -z "$as_dir" && as_dir=.
4445 for ac_exec_ext in '' $ac_executable_extensions; do
4446 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4447 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
4448 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4449 break 2
4451 done
4452 done
4455 esac
4457 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
4459 if test -n "$INSTALL_INFO"; then
4460 echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
4461 echo "${ECHO_T}$INSTALL_INFO" >&6
4462 else
4463 echo "$as_me:$LINENO: result: no" >&5
4464 echo "${ECHO_T}no" >&6
4467 # Extract the first word of "install-info", so it can be a program name with args.
4468 set dummy install-info; ac_word=$2
4469 echo "$as_me:$LINENO: checking for $ac_word" >&5
4470 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4471 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
4472 echo $ECHO_N "(cached) $ECHO_C" >&6
4473 else
4474 case $INSTALL_INFO in
4475 [\\/]* | ?:[\\/]*)
4476 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
4479 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4480 for as_dir in /usr/sbin
4482 IFS=$as_save_IFS
4483 test -z "$as_dir" && as_dir=.
4484 for ac_exec_ext in '' $ac_executable_extensions; do
4485 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4486 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
4487 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4488 break 2
4490 done
4491 done
4494 esac
4496 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
4498 if test -n "$INSTALL_INFO"; then
4499 echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
4500 echo "${ECHO_T}$INSTALL_INFO" >&6
4501 else
4502 echo "$as_me:$LINENO: result: no" >&5
4503 echo "${ECHO_T}no" >&6
4506 # Extract the first word of "install-info", so it can be a program name with args.
4507 set dummy install-info; ac_word=$2
4508 echo "$as_me:$LINENO: checking for $ac_word" >&5
4509 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4510 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
4511 echo $ECHO_N "(cached) $ECHO_C" >&6
4512 else
4513 case $INSTALL_INFO in
4514 [\\/]* | ?:[\\/]*)
4515 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
4518 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4519 for as_dir in /sbin
4521 IFS=$as_save_IFS
4522 test -z "$as_dir" && as_dir=.
4523 for ac_exec_ext in '' $ac_executable_extensions; do
4524 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4525 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
4526 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4527 break 2
4529 done
4530 done
4532 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO=":"
4534 esac
4536 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
4538 if test -n "$INSTALL_INFO"; then
4539 echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
4540 echo "${ECHO_T}$INSTALL_INFO" >&6
4541 else
4542 echo "$as_me:$LINENO: result: no" >&5
4543 echo "${ECHO_T}no" >&6
4546 # Extract the first word of "gzip", so it can be a program name with args.
4547 set dummy gzip; ac_word=$2
4548 echo "$as_me:$LINENO: checking for $ac_word" >&5
4549 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4550 if test "${ac_cv_path_GZIP_PROG+set}" = set; then
4551 echo $ECHO_N "(cached) $ECHO_C" >&6
4552 else
4553 case $GZIP_PROG in
4554 [\\/]* | ?:[\\/]*)
4555 ac_cv_path_GZIP_PROG="$GZIP_PROG" # Let the user override the test with a path.
4558 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4559 for as_dir in $PATH
4561 IFS=$as_save_IFS
4562 test -z "$as_dir" && as_dir=.
4563 for ac_exec_ext in '' $ac_executable_extensions; do
4564 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4565 ac_cv_path_GZIP_PROG="$as_dir/$ac_word$ac_exec_ext"
4566 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4567 break 2
4569 done
4570 done
4573 esac
4575 GZIP_PROG=$ac_cv_path_GZIP_PROG
4577 if test -n "$GZIP_PROG"; then
4578 echo "$as_me:$LINENO: result: $GZIP_PROG" >&5
4579 echo "${ECHO_T}$GZIP_PROG" >&6
4580 else
4581 echo "$as_me:$LINENO: result: no" >&5
4582 echo "${ECHO_T}no" >&6
4587 if test x$GCC = xyes && test "x$GCC_LINK_TEST_OPTIONS" != x
4588 then
4589 ac_link="$ac_link $GCC_LINK_TEST_OPTIONS"
4592 if test x$GCC = x && test "x$NON_GCC_LINK_TEST_OPTIONS" != x
4593 then
4594 ac_link="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
4598 late_LDFLAGS=$LDFLAGS
4599 if test "$GCC" = yes; then
4600 LDFLAGS="$LDFLAGS -Wl,-znocombreloc"
4601 else
4602 LDFLAGS="$LDFLAGS -znocombreloc"
4605 echo "$as_me:$LINENO: checking for -znocombreloc" >&5
4606 echo $ECHO_N "checking for -znocombreloc... $ECHO_C" >&6
4607 cat >conftest.$ac_ext <<_ACEOF
4608 main(){return 0;}
4609 _ACEOF
4610 rm -f conftest.$ac_objext conftest$ac_exeext
4611 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4612 (eval $ac_link) 2>conftest.er1
4613 ac_status=$?
4614 grep -v '^ *+' conftest.er1 >conftest.err
4615 rm -f conftest.er1
4616 cat conftest.err >&5
4617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4618 (exit $ac_status); } &&
4619 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4621 (eval $ac_try) 2>&5
4622 ac_status=$?
4623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4624 (exit $ac_status); }; } &&
4625 { ac_try='test -s conftest$ac_exeext'
4626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4627 (eval $ac_try) 2>&5
4628 ac_status=$?
4629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4630 (exit $ac_status); }; }; then
4631 echo "$as_me:$LINENO: result: yes" >&5
4632 echo "${ECHO_T}yes" >&6
4633 else
4634 echo "$as_me: failed program was:" >&5
4635 sed 's/^/| /' conftest.$ac_ext >&5
4637 LDFLAGS=$late_LDFLAGS
4638 echo "$as_me:$LINENO: result: no" >&5
4639 echo "${ECHO_T}no" >&6
4641 rm -f conftest.err conftest.$ac_objext \
4642 conftest$ac_exeext conftest.$ac_ext
4644 #### Extract some information from the operating system and machine files.
4646 { echo "$as_me:$LINENO: checking the machine- and system-dependent files to find out
4647 - which libraries the lib-src programs will want, and
4648 - whether the GNU malloc routines are usable..." >&5
4649 echo "$as_me: checking the machine- and system-dependent files to find out
4650 - which libraries the lib-src programs will want, and
4651 - whether the GNU malloc routines are usable..." >&6;}
4653 ### First figure out CFLAGS (which we use for running the compiler here)
4654 ### and REAL_CFLAGS (which we use for real compilation).
4655 ### The two are the same except on a few systems, where they are made
4656 ### different to work around various lossages. For example,
4657 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
4658 ### as implying static linking.
4660 ### If the CFLAGS env var is specified, we use that value
4661 ### instead of the default.
4663 ### It's not important that this name contain the PID; you can't run
4664 ### two configures in the same directory and have anything work
4665 ### anyway.
4666 tempcname="conftest.c"
4668 echo '
4669 #include "'${srcdir}'/src/'${opsysfile}'"
4670 #include "'${srcdir}'/src/'${machfile}'"
4671 #ifndef LIBS_MACHINE
4672 #define LIBS_MACHINE
4673 #endif
4674 #ifndef LIBS_SYSTEM
4675 #define LIBS_SYSTEM
4676 #endif
4677 #ifndef C_SWITCH_SYSTEM
4678 #define C_SWITCH_SYSTEM
4679 #endif
4680 #ifndef C_SWITCH_MACHINE
4681 #define C_SWITCH_MACHINE
4682 #endif
4683 configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM
4684 configure___ c_switch_system=C_SWITCH_SYSTEM
4685 configure___ c_switch_machine=C_SWITCH_MACHINE
4687 #ifndef LIB_X11_LIB
4688 #define LIB_X11_LIB -lX11
4689 #endif
4691 #ifndef LIBX11_MACHINE
4692 #define LIBX11_MACHINE
4693 #endif
4695 #ifndef LIBX11_SYSTEM
4696 #define LIBX11_SYSTEM
4697 #endif
4698 configure___ LIBX=LIB_X11_LIB LIBX11_MACHINE LIBX11_SYSTEM
4700 #ifdef UNEXEC
4701 configure___ unexec=UNEXEC
4702 #else
4703 configure___ unexec=unexec.o
4704 #endif
4706 #ifdef SYSTEM_MALLOC
4707 configure___ system_malloc=yes
4708 #else
4709 configure___ system_malloc=no
4710 #endif
4712 #ifdef USE_MMAP_FOR_BUFFERS
4713 configure___ use_mmap_for_buffers=yes
4714 #else
4715 configure___ use_mmap_for_buffers=no
4716 #endif
4718 #ifndef C_DEBUG_SWITCH
4719 #define C_DEBUG_SWITCH -g
4720 #endif
4722 #ifndef C_OPTIMIZE_SWITCH
4723 #ifdef __GNUC__
4724 #define C_OPTIMIZE_SWITCH -O2
4725 #else
4726 #define C_OPTIMIZE_SWITCH -O
4727 #endif
4728 #endif
4730 #ifndef C_WARNINGS_SWITCH
4731 #define C_WARNINGS_SWITCH ${C_WARNINGS_SWITCH}
4732 #endif
4734 #ifndef LD_SWITCH_MACHINE
4735 #define LD_SWITCH_MACHINE
4736 #endif
4738 #ifndef LD_SWITCH_SYSTEM
4739 #define LD_SWITCH_SYSTEM
4740 #endif
4742 #ifndef LD_SWITCH_X_SITE_AUX
4743 #define LD_SWITCH_X_SITE_AUX
4744 #endif
4746 configure___ ld_switch_system=LD_SWITCH_SYSTEM
4747 configure___ ld_switch_machine=LD_SWITCH_MACHINE
4749 #ifdef THIS_IS_CONFIGURE
4751 /* Get the CFLAGS for tests in configure. */
4752 #ifdef __GNUC__
4753 configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
4754 #else
4755 configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
4756 #endif
4758 #else /* not THIS_IS_CONFIGURE */
4760 /* Get the CFLAGS for real compilation. */
4761 #ifdef __GNUC__
4762 configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH C_WARNINGS_SWITCH '${SPECIFIED_CFLAGS}'
4763 #else
4764 configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
4765 #endif
4767 #endif /* not THIS_IS_CONFIGURE */
4768 ' > ${tempcname}
4770 # The value of CPP is a quoted variable reference, so we need to do this
4771 # to get its actual value...
4772 CPP=`eval "echo $CPP"`
4773 eval `${CPP} -Isrc ${tempcname} \
4774 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
4775 if test "x$SPECIFIED_CFLAGS" = x; then
4776 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
4777 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
4778 else
4779 REAL_CFLAGS="$CFLAGS"
4781 rm ${tempcname}
4783 ac_link="$ac_link $ld_switch_machine $ld_switch_system"
4785 ### Make sure subsequent tests use flags consistent with the build flags.
4787 if test x"${OVERRIDE_CPPFLAGS}" != x; then
4788 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
4789 else
4790 CPPFLAGS="$c_switch_system $c_switch_machine $CPPFLAGS"
4795 # Check whether --enable-largefile or --disable-largefile was given.
4796 if test "${enable_largefile+set}" = set; then
4797 enableval="$enable_largefile"
4800 if test "$enable_largefile" != no; then
4802 echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
4803 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
4804 if test "${ac_cv_sys_largefile_CC+set}" = set; then
4805 echo $ECHO_N "(cached) $ECHO_C" >&6
4806 else
4807 ac_cv_sys_largefile_CC=no
4808 if test "$GCC" != yes; then
4809 ac_save_CC=$CC
4810 while :; do
4811 # IRIX 6.2 and later do not support large files by default,
4812 # so use the C compiler's -n32 option if that helps.
4813 cat >conftest.$ac_ext <<_ACEOF
4814 /* confdefs.h. */
4815 _ACEOF
4816 cat confdefs.h >>conftest.$ac_ext
4817 cat >>conftest.$ac_ext <<_ACEOF
4818 /* end confdefs.h. */
4819 #include <sys/types.h>
4820 /* Check that off_t can represent 2**63 - 1 correctly.
4821 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4822 since some C++ compilers masquerading as C compilers
4823 incorrectly reject 9223372036854775807. */
4824 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4825 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4826 && LARGE_OFF_T % 2147483647 == 1)
4827 ? 1 : -1];
4829 main ()
4833 return 0;
4835 _ACEOF
4836 rm -f conftest.$ac_objext
4837 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4838 (eval $ac_compile) 2>conftest.er1
4839 ac_status=$?
4840 grep -v '^ *+' conftest.er1 >conftest.err
4841 rm -f conftest.er1
4842 cat conftest.err >&5
4843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4844 (exit $ac_status); } &&
4845 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4847 (eval $ac_try) 2>&5
4848 ac_status=$?
4849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4850 (exit $ac_status); }; } &&
4851 { ac_try='test -s conftest.$ac_objext'
4852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4853 (eval $ac_try) 2>&5
4854 ac_status=$?
4855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4856 (exit $ac_status); }; }; then
4857 break
4858 else
4859 echo "$as_me: failed program was:" >&5
4860 sed 's/^/| /' conftest.$ac_ext >&5
4863 rm -f conftest.err conftest.$ac_objext
4864 CC="$CC -n32"
4865 rm -f conftest.$ac_objext
4866 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4867 (eval $ac_compile) 2>conftest.er1
4868 ac_status=$?
4869 grep -v '^ *+' conftest.er1 >conftest.err
4870 rm -f conftest.er1
4871 cat conftest.err >&5
4872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4873 (exit $ac_status); } &&
4874 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4876 (eval $ac_try) 2>&5
4877 ac_status=$?
4878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4879 (exit $ac_status); }; } &&
4880 { ac_try='test -s conftest.$ac_objext'
4881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4882 (eval $ac_try) 2>&5
4883 ac_status=$?
4884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4885 (exit $ac_status); }; }; then
4886 ac_cv_sys_largefile_CC=' -n32'; break
4887 else
4888 echo "$as_me: failed program was:" >&5
4889 sed 's/^/| /' conftest.$ac_ext >&5
4892 rm -f conftest.err conftest.$ac_objext
4893 break
4894 done
4895 CC=$ac_save_CC
4896 rm -f conftest.$ac_ext
4899 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
4900 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
4901 if test "$ac_cv_sys_largefile_CC" != no; then
4902 CC=$CC$ac_cv_sys_largefile_CC
4905 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4906 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
4907 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
4908 echo $ECHO_N "(cached) $ECHO_C" >&6
4909 else
4910 while :; do
4911 ac_cv_sys_file_offset_bits=no
4912 cat >conftest.$ac_ext <<_ACEOF
4913 /* confdefs.h. */
4914 _ACEOF
4915 cat confdefs.h >>conftest.$ac_ext
4916 cat >>conftest.$ac_ext <<_ACEOF
4917 /* end confdefs.h. */
4918 #include <sys/types.h>
4919 /* Check that off_t can represent 2**63 - 1 correctly.
4920 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4921 since some C++ compilers masquerading as C compilers
4922 incorrectly reject 9223372036854775807. */
4923 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4924 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4925 && LARGE_OFF_T % 2147483647 == 1)
4926 ? 1 : -1];
4928 main ()
4932 return 0;
4934 _ACEOF
4935 rm -f conftest.$ac_objext
4936 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4937 (eval $ac_compile) 2>conftest.er1
4938 ac_status=$?
4939 grep -v '^ *+' conftest.er1 >conftest.err
4940 rm -f conftest.er1
4941 cat conftest.err >&5
4942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4943 (exit $ac_status); } &&
4944 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4946 (eval $ac_try) 2>&5
4947 ac_status=$?
4948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4949 (exit $ac_status); }; } &&
4950 { ac_try='test -s conftest.$ac_objext'
4951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4952 (eval $ac_try) 2>&5
4953 ac_status=$?
4954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4955 (exit $ac_status); }; }; then
4956 break
4957 else
4958 echo "$as_me: failed program was:" >&5
4959 sed 's/^/| /' conftest.$ac_ext >&5
4962 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4963 cat >conftest.$ac_ext <<_ACEOF
4964 /* confdefs.h. */
4965 _ACEOF
4966 cat confdefs.h >>conftest.$ac_ext
4967 cat >>conftest.$ac_ext <<_ACEOF
4968 /* end confdefs.h. */
4969 #define _FILE_OFFSET_BITS 64
4970 #include <sys/types.h>
4971 /* Check that off_t can represent 2**63 - 1 correctly.
4972 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4973 since some C++ compilers masquerading as C compilers
4974 incorrectly reject 9223372036854775807. */
4975 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4976 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4977 && LARGE_OFF_T % 2147483647 == 1)
4978 ? 1 : -1];
4980 main ()
4984 return 0;
4986 _ACEOF
4987 rm -f conftest.$ac_objext
4988 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4989 (eval $ac_compile) 2>conftest.er1
4990 ac_status=$?
4991 grep -v '^ *+' conftest.er1 >conftest.err
4992 rm -f conftest.er1
4993 cat conftest.err >&5
4994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4995 (exit $ac_status); } &&
4996 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4998 (eval $ac_try) 2>&5
4999 ac_status=$?
5000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5001 (exit $ac_status); }; } &&
5002 { ac_try='test -s conftest.$ac_objext'
5003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5004 (eval $ac_try) 2>&5
5005 ac_status=$?
5006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5007 (exit $ac_status); }; }; then
5008 ac_cv_sys_file_offset_bits=64; break
5009 else
5010 echo "$as_me: failed program was:" >&5
5011 sed 's/^/| /' conftest.$ac_ext >&5
5014 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5015 break
5016 done
5018 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
5019 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
5020 if test "$ac_cv_sys_file_offset_bits" != no; then
5022 cat >>confdefs.h <<_ACEOF
5023 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5024 _ACEOF
5027 rm -f conftest*
5028 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
5029 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
5030 if test "${ac_cv_sys_large_files+set}" = set; then
5031 echo $ECHO_N "(cached) $ECHO_C" >&6
5032 else
5033 while :; do
5034 ac_cv_sys_large_files=no
5035 cat >conftest.$ac_ext <<_ACEOF
5036 /* confdefs.h. */
5037 _ACEOF
5038 cat confdefs.h >>conftest.$ac_ext
5039 cat >>conftest.$ac_ext <<_ACEOF
5040 /* end confdefs.h. */
5041 #include <sys/types.h>
5042 /* Check that off_t can represent 2**63 - 1 correctly.
5043 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5044 since some C++ compilers masquerading as C compilers
5045 incorrectly reject 9223372036854775807. */
5046 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5047 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5048 && LARGE_OFF_T % 2147483647 == 1)
5049 ? 1 : -1];
5051 main ()
5055 return 0;
5057 _ACEOF
5058 rm -f conftest.$ac_objext
5059 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5060 (eval $ac_compile) 2>conftest.er1
5061 ac_status=$?
5062 grep -v '^ *+' conftest.er1 >conftest.err
5063 rm -f conftest.er1
5064 cat conftest.err >&5
5065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5066 (exit $ac_status); } &&
5067 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5069 (eval $ac_try) 2>&5
5070 ac_status=$?
5071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5072 (exit $ac_status); }; } &&
5073 { ac_try='test -s conftest.$ac_objext'
5074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5075 (eval $ac_try) 2>&5
5076 ac_status=$?
5077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5078 (exit $ac_status); }; }; then
5079 break
5080 else
5081 echo "$as_me: failed program was:" >&5
5082 sed 's/^/| /' conftest.$ac_ext >&5
5085 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5086 cat >conftest.$ac_ext <<_ACEOF
5087 /* confdefs.h. */
5088 _ACEOF
5089 cat confdefs.h >>conftest.$ac_ext
5090 cat >>conftest.$ac_ext <<_ACEOF
5091 /* end confdefs.h. */
5092 #define _LARGE_FILES 1
5093 #include <sys/types.h>
5094 /* Check that off_t can represent 2**63 - 1 correctly.
5095 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5096 since some C++ compilers masquerading as C compilers
5097 incorrectly reject 9223372036854775807. */
5098 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5099 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5100 && LARGE_OFF_T % 2147483647 == 1)
5101 ? 1 : -1];
5103 main ()
5107 return 0;
5109 _ACEOF
5110 rm -f conftest.$ac_objext
5111 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5112 (eval $ac_compile) 2>conftest.er1
5113 ac_status=$?
5114 grep -v '^ *+' conftest.er1 >conftest.err
5115 rm -f conftest.er1
5116 cat conftest.err >&5
5117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5118 (exit $ac_status); } &&
5119 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5121 (eval $ac_try) 2>&5
5122 ac_status=$?
5123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5124 (exit $ac_status); }; } &&
5125 { ac_try='test -s conftest.$ac_objext'
5126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5127 (eval $ac_try) 2>&5
5128 ac_status=$?
5129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5130 (exit $ac_status); }; }; then
5131 ac_cv_sys_large_files=1; break
5132 else
5133 echo "$as_me: failed program was:" >&5
5134 sed 's/^/| /' conftest.$ac_ext >&5
5137 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5138 break
5139 done
5141 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
5142 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
5143 if test "$ac_cv_sys_large_files" != no; then
5145 cat >>confdefs.h <<_ACEOF
5146 #define _LARGE_FILES $ac_cv_sys_large_files
5147 _ACEOF
5150 rm -f conftest*
5158 if test "${with_sound}" != "no"; then
5159 # Sound support for GNU/Linux and the free BSDs.
5160 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5161 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5162 if test "${ac_cv_header_stdc+set}" = set; then
5163 echo $ECHO_N "(cached) $ECHO_C" >&6
5164 else
5165 cat >conftest.$ac_ext <<_ACEOF
5166 /* confdefs.h. */
5167 _ACEOF
5168 cat confdefs.h >>conftest.$ac_ext
5169 cat >>conftest.$ac_ext <<_ACEOF
5170 /* end confdefs.h. */
5171 #include <stdlib.h>
5172 #include <stdarg.h>
5173 #include <string.h>
5174 #include <float.h>
5177 main ()
5181 return 0;
5183 _ACEOF
5184 rm -f conftest.$ac_objext
5185 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5186 (eval $ac_compile) 2>conftest.er1
5187 ac_status=$?
5188 grep -v '^ *+' conftest.er1 >conftest.err
5189 rm -f conftest.er1
5190 cat conftest.err >&5
5191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5192 (exit $ac_status); } &&
5193 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5195 (eval $ac_try) 2>&5
5196 ac_status=$?
5197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5198 (exit $ac_status); }; } &&
5199 { ac_try='test -s conftest.$ac_objext'
5200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5201 (eval $ac_try) 2>&5
5202 ac_status=$?
5203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5204 (exit $ac_status); }; }; then
5205 ac_cv_header_stdc=yes
5206 else
5207 echo "$as_me: failed program was:" >&5
5208 sed 's/^/| /' conftest.$ac_ext >&5
5210 ac_cv_header_stdc=no
5212 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5214 if test $ac_cv_header_stdc = yes; then
5215 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5216 cat >conftest.$ac_ext <<_ACEOF
5217 /* confdefs.h. */
5218 _ACEOF
5219 cat confdefs.h >>conftest.$ac_ext
5220 cat >>conftest.$ac_ext <<_ACEOF
5221 /* end confdefs.h. */
5222 #include <string.h>
5224 _ACEOF
5225 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5226 $EGREP "memchr" >/dev/null 2>&1; then
5228 else
5229 ac_cv_header_stdc=no
5231 rm -f conftest*
5235 if test $ac_cv_header_stdc = yes; then
5236 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5237 cat >conftest.$ac_ext <<_ACEOF
5238 /* confdefs.h. */
5239 _ACEOF
5240 cat confdefs.h >>conftest.$ac_ext
5241 cat >>conftest.$ac_ext <<_ACEOF
5242 /* end confdefs.h. */
5243 #include <stdlib.h>
5245 _ACEOF
5246 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5247 $EGREP "free" >/dev/null 2>&1; then
5249 else
5250 ac_cv_header_stdc=no
5252 rm -f conftest*
5256 if test $ac_cv_header_stdc = yes; then
5257 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5258 if test "$cross_compiling" = yes; then
5260 else
5261 cat >conftest.$ac_ext <<_ACEOF
5262 /* confdefs.h. */
5263 _ACEOF
5264 cat confdefs.h >>conftest.$ac_ext
5265 cat >>conftest.$ac_ext <<_ACEOF
5266 /* end confdefs.h. */
5267 #include <ctype.h>
5268 #if ((' ' & 0x0FF) == 0x020)
5269 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5270 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5271 #else
5272 # define ISLOWER(c) \
5273 (('a' <= (c) && (c) <= 'i') \
5274 || ('j' <= (c) && (c) <= 'r') \
5275 || ('s' <= (c) && (c) <= 'z'))
5276 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5277 #endif
5279 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5281 main ()
5283 int i;
5284 for (i = 0; i < 256; i++)
5285 if (XOR (islower (i), ISLOWER (i))
5286 || toupper (i) != TOUPPER (i))
5287 exit(2);
5288 exit (0);
5290 _ACEOF
5291 rm -f conftest$ac_exeext
5292 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5293 (eval $ac_link) 2>&5
5294 ac_status=$?
5295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5296 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5298 (eval $ac_try) 2>&5
5299 ac_status=$?
5300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5301 (exit $ac_status); }; }; then
5303 else
5304 echo "$as_me: program exited with status $ac_status" >&5
5305 echo "$as_me: failed program was:" >&5
5306 sed 's/^/| /' conftest.$ac_ext >&5
5308 ( exit $ac_status )
5309 ac_cv_header_stdc=no
5311 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5315 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5316 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5317 if test $ac_cv_header_stdc = yes; then
5319 cat >>confdefs.h <<\_ACEOF
5320 #define STDC_HEADERS 1
5321 _ACEOF
5325 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5335 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5336 inttypes.h stdint.h unistd.h
5338 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5339 echo "$as_me:$LINENO: checking for $ac_header" >&5
5340 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5341 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5342 echo $ECHO_N "(cached) $ECHO_C" >&6
5343 else
5344 cat >conftest.$ac_ext <<_ACEOF
5345 /* confdefs.h. */
5346 _ACEOF
5347 cat confdefs.h >>conftest.$ac_ext
5348 cat >>conftest.$ac_ext <<_ACEOF
5349 /* end confdefs.h. */
5350 $ac_includes_default
5352 #include <$ac_header>
5353 _ACEOF
5354 rm -f conftest.$ac_objext
5355 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5356 (eval $ac_compile) 2>conftest.er1
5357 ac_status=$?
5358 grep -v '^ *+' conftest.er1 >conftest.err
5359 rm -f conftest.er1
5360 cat conftest.err >&5
5361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5362 (exit $ac_status); } &&
5363 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5365 (eval $ac_try) 2>&5
5366 ac_status=$?
5367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5368 (exit $ac_status); }; } &&
5369 { ac_try='test -s conftest.$ac_objext'
5370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5371 (eval $ac_try) 2>&5
5372 ac_status=$?
5373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5374 (exit $ac_status); }; }; then
5375 eval "$as_ac_Header=yes"
5376 else
5377 echo "$as_me: failed program was:" >&5
5378 sed 's/^/| /' conftest.$ac_ext >&5
5380 eval "$as_ac_Header=no"
5382 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5384 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5385 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5386 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5387 cat >>confdefs.h <<_ACEOF
5388 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5389 _ACEOF
5393 done
5399 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
5401 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5402 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5403 echo "$as_me:$LINENO: checking for $ac_header" >&5
5404 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5405 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5406 echo $ECHO_N "(cached) $ECHO_C" >&6
5408 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5409 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5410 else
5411 # Is the header compilable?
5412 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5413 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5414 cat >conftest.$ac_ext <<_ACEOF
5415 /* confdefs.h. */
5416 _ACEOF
5417 cat confdefs.h >>conftest.$ac_ext
5418 cat >>conftest.$ac_ext <<_ACEOF
5419 /* end confdefs.h. */
5420 $ac_includes_default
5421 #include <$ac_header>
5422 _ACEOF
5423 rm -f conftest.$ac_objext
5424 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5425 (eval $ac_compile) 2>conftest.er1
5426 ac_status=$?
5427 grep -v '^ *+' conftest.er1 >conftest.err
5428 rm -f conftest.er1
5429 cat conftest.err >&5
5430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5431 (exit $ac_status); } &&
5432 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5434 (eval $ac_try) 2>&5
5435 ac_status=$?
5436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5437 (exit $ac_status); }; } &&
5438 { ac_try='test -s conftest.$ac_objext'
5439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5440 (eval $ac_try) 2>&5
5441 ac_status=$?
5442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5443 (exit $ac_status); }; }; then
5444 ac_header_compiler=yes
5445 else
5446 echo "$as_me: failed program was:" >&5
5447 sed 's/^/| /' conftest.$ac_ext >&5
5449 ac_header_compiler=no
5451 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5452 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5453 echo "${ECHO_T}$ac_header_compiler" >&6
5455 # Is the header present?
5456 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5457 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5458 cat >conftest.$ac_ext <<_ACEOF
5459 /* confdefs.h. */
5460 _ACEOF
5461 cat confdefs.h >>conftest.$ac_ext
5462 cat >>conftest.$ac_ext <<_ACEOF
5463 /* end confdefs.h. */
5464 #include <$ac_header>
5465 _ACEOF
5466 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5467 (eval $ac_cpp conftest.$ac_ext) 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); } >/dev/null; then
5474 if test -s conftest.err; then
5475 ac_cpp_err=$ac_c_preproc_warn_flag
5476 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5477 else
5478 ac_cpp_err=
5480 else
5481 ac_cpp_err=yes
5483 if test -z "$ac_cpp_err"; then
5484 ac_header_preproc=yes
5485 else
5486 echo "$as_me: failed program was:" >&5
5487 sed 's/^/| /' conftest.$ac_ext >&5
5489 ac_header_preproc=no
5491 rm -f conftest.err conftest.$ac_ext
5492 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5493 echo "${ECHO_T}$ac_header_preproc" >&6
5495 # So? What about this header?
5496 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5497 yes:no: )
5498 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5499 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5500 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5501 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5502 ac_header_preproc=yes
5504 no:yes:* )
5505 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5506 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5507 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5508 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5509 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5510 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5511 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5512 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5513 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5514 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5515 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5516 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5518 cat <<\_ASBOX
5519 ## ------------------------------------------ ##
5520 ## Report this to the AC_PACKAGE_NAME lists. ##
5521 ## ------------------------------------------ ##
5522 _ASBOX
5524 sed "s/^/$as_me: WARNING: /" >&2
5526 esac
5527 echo "$as_me:$LINENO: checking for $ac_header" >&5
5528 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5529 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5530 echo $ECHO_N "(cached) $ECHO_C" >&6
5531 else
5532 eval "$as_ac_Header=\$ac_header_preproc"
5534 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5535 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5538 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5539 cat >>confdefs.h <<_ACEOF
5540 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5541 _ACEOF
5545 done
5547 # Emulation library used on NetBSD.
5548 echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
5549 echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6
5550 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
5551 echo $ECHO_N "(cached) $ECHO_C" >&6
5552 else
5553 ac_check_lib_save_LIBS=$LIBS
5554 LIBS="-lossaudio $LIBS"
5555 cat >conftest.$ac_ext <<_ACEOF
5556 /* confdefs.h. */
5557 _ACEOF
5558 cat confdefs.h >>conftest.$ac_ext
5559 cat >>conftest.$ac_ext <<_ACEOF
5560 /* end confdefs.h. */
5562 /* Override any gcc2 internal prototype to avoid an error. */
5563 #ifdef __cplusplus
5564 extern "C"
5565 #endif
5566 /* We use char because int might match the return type of a gcc2
5567 builtin and then its argument prototype would still apply. */
5568 char _oss_ioctl ();
5570 main ()
5572 _oss_ioctl ();
5574 return 0;
5576 _ACEOF
5577 rm -f conftest.$ac_objext conftest$ac_exeext
5578 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5579 (eval $ac_link) 2>conftest.er1
5580 ac_status=$?
5581 grep -v '^ *+' conftest.er1 >conftest.err
5582 rm -f conftest.er1
5583 cat conftest.err >&5
5584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5585 (exit $ac_status); } &&
5586 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5588 (eval $ac_try) 2>&5
5589 ac_status=$?
5590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5591 (exit $ac_status); }; } &&
5592 { ac_try='test -s conftest$ac_exeext'
5593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5594 (eval $ac_try) 2>&5
5595 ac_status=$?
5596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5597 (exit $ac_status); }; }; then
5598 ac_cv_lib_ossaudio__oss_ioctl=yes
5599 else
5600 echo "$as_me: failed program was:" >&5
5601 sed 's/^/| /' conftest.$ac_ext >&5
5603 ac_cv_lib_ossaudio__oss_ioctl=no
5605 rm -f conftest.err conftest.$ac_objext \
5606 conftest$ac_exeext conftest.$ac_ext
5607 LIBS=$ac_check_lib_save_LIBS
5609 echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
5610 echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6
5611 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
5612 LIBSOUND=-lossaudio
5613 else
5614 LIBSOUND=
5619 ALSA_REQUIRED=1.0.0
5620 ALSA_MODULES="alsa >= $ALSA_REQUIRED"
5621 if test "X${with_pkg_config_prog}" != X; then
5622 PKG_CONFIG="${with_pkg_config_prog}"
5625 succeeded=no
5627 if test -z "$PKG_CONFIG"; then
5628 # Extract the first word of "pkg-config", so it can be a program name with args.
5629 set dummy pkg-config; ac_word=$2
5630 echo "$as_me:$LINENO: checking for $ac_word" >&5
5631 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5632 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
5633 echo $ECHO_N "(cached) $ECHO_C" >&6
5634 else
5635 case $PKG_CONFIG in
5636 [\\/]* | ?:[\\/]*)
5637 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5640 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5641 for as_dir in $PATH
5643 IFS=$as_save_IFS
5644 test -z "$as_dir" && as_dir=.
5645 for ac_exec_ext in '' $ac_executable_extensions; do
5646 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5647 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5648 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5649 break 2
5651 done
5652 done
5654 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
5656 esac
5658 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5660 if test -n "$PKG_CONFIG"; then
5661 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
5662 echo "${ECHO_T}$PKG_CONFIG" >&6
5663 else
5664 echo "$as_me:$LINENO: result: no" >&5
5665 echo "${ECHO_T}no" >&6
5670 if test "$PKG_CONFIG" = "no" ; then
5671 HAVE_ALSA=no
5672 else
5673 PKG_CONFIG_MIN_VERSION=0.9.0
5674 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
5675 echo "$as_me:$LINENO: checking for $ALSA_MODULES" >&5
5676 echo $ECHO_N "checking for $ALSA_MODULES... $ECHO_C" >&6
5678 if $PKG_CONFIG --exists "$ALSA_MODULES" ; then
5679 echo "$as_me:$LINENO: result: yes" >&5
5680 echo "${ECHO_T}yes" >&6
5681 succeeded=yes
5683 echo "$as_me:$LINENO: checking ALSA_CFLAGS" >&5
5684 echo $ECHO_N "checking ALSA_CFLAGS... $ECHO_C" >&6
5685 ALSA_CFLAGS=`$PKG_CONFIG --cflags "$ALSA_MODULES"`
5686 echo "$as_me:$LINENO: result: $ALSA_CFLAGS" >&5
5687 echo "${ECHO_T}$ALSA_CFLAGS" >&6
5689 echo "$as_me:$LINENO: checking ALSA_LIBS" >&5
5690 echo $ECHO_N "checking ALSA_LIBS... $ECHO_C" >&6
5691 ALSA_LIBS=`$PKG_CONFIG --libs "$ALSA_MODULES"`
5692 echo "$as_me:$LINENO: result: $ALSA_LIBS" >&5
5693 echo "${ECHO_T}$ALSA_LIBS" >&6
5694 else
5695 echo "$as_me:$LINENO: result: no" >&5
5696 echo "${ECHO_T}no" >&6
5697 ALSA_CFLAGS=""
5698 ALSA_LIBS=""
5699 ## If we have a custom action on failure, don't print errors, but
5700 ## do set a variable so people can do so.
5701 ALSA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
5707 else
5708 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
5709 echo "*** See http://www.freedesktop.org/software/pkgconfig"
5713 if test $succeeded = yes; then
5714 HAVE_ALSA=yes
5715 else
5716 HAVE_ALSA=no
5719 if test $HAVE_ALSA = yes; then
5720 LIBSOUND="$LIBSOUND $ALSA_LIBS"
5721 CFLAGS_SOUND="$CFLAGS_SOUND $ALSA_CFLAGS"
5723 cat >>confdefs.h <<\_ACEOF
5724 #define HAVE_ALSA 1
5725 _ACEOF
5756 for ac_header in sys/select.h sys/timeb.h sys/time.h unistd.h utime.h \
5757 linux/version.h sys/systeminfo.h termios.h limits.h string.h stdlib.h \
5758 termcap.h stdio_ext.h fcntl.h strings.h coff.h pty.h sys/mman.h \
5759 sys/param.h sys/vlimit.h sys/resource.h locale.h sys/_mbstate_t.h \
5760 sys/utsname.h pwd.h
5762 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5763 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5764 echo "$as_me:$LINENO: checking for $ac_header" >&5
5765 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5766 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5767 echo $ECHO_N "(cached) $ECHO_C" >&6
5769 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5770 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5771 else
5772 # Is the header compilable?
5773 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5774 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5775 cat >conftest.$ac_ext <<_ACEOF
5776 /* confdefs.h. */
5777 _ACEOF
5778 cat confdefs.h >>conftest.$ac_ext
5779 cat >>conftest.$ac_ext <<_ACEOF
5780 /* end confdefs.h. */
5781 $ac_includes_default
5782 #include <$ac_header>
5783 _ACEOF
5784 rm -f conftest.$ac_objext
5785 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5786 (eval $ac_compile) 2>conftest.er1
5787 ac_status=$?
5788 grep -v '^ *+' conftest.er1 >conftest.err
5789 rm -f conftest.er1
5790 cat conftest.err >&5
5791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5792 (exit $ac_status); } &&
5793 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5795 (eval $ac_try) 2>&5
5796 ac_status=$?
5797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5798 (exit $ac_status); }; } &&
5799 { ac_try='test -s conftest.$ac_objext'
5800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5801 (eval $ac_try) 2>&5
5802 ac_status=$?
5803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5804 (exit $ac_status); }; }; then
5805 ac_header_compiler=yes
5806 else
5807 echo "$as_me: failed program was:" >&5
5808 sed 's/^/| /' conftest.$ac_ext >&5
5810 ac_header_compiler=no
5812 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5813 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5814 echo "${ECHO_T}$ac_header_compiler" >&6
5816 # Is the header present?
5817 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5818 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5819 cat >conftest.$ac_ext <<_ACEOF
5820 /* confdefs.h. */
5821 _ACEOF
5822 cat confdefs.h >>conftest.$ac_ext
5823 cat >>conftest.$ac_ext <<_ACEOF
5824 /* end confdefs.h. */
5825 #include <$ac_header>
5826 _ACEOF
5827 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5828 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5829 ac_status=$?
5830 grep -v '^ *+' conftest.er1 >conftest.err
5831 rm -f conftest.er1
5832 cat conftest.err >&5
5833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5834 (exit $ac_status); } >/dev/null; then
5835 if test -s conftest.err; then
5836 ac_cpp_err=$ac_c_preproc_warn_flag
5837 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5838 else
5839 ac_cpp_err=
5841 else
5842 ac_cpp_err=yes
5844 if test -z "$ac_cpp_err"; then
5845 ac_header_preproc=yes
5846 else
5847 echo "$as_me: failed program was:" >&5
5848 sed 's/^/| /' conftest.$ac_ext >&5
5850 ac_header_preproc=no
5852 rm -f conftest.err conftest.$ac_ext
5853 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5854 echo "${ECHO_T}$ac_header_preproc" >&6
5856 # So? What about this header?
5857 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5858 yes:no: )
5859 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5860 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5861 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5862 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5863 ac_header_preproc=yes
5865 no:yes:* )
5866 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5867 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5868 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5869 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5870 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5871 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5872 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5873 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5874 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5875 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5876 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5877 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5879 cat <<\_ASBOX
5880 ## ------------------------------------------ ##
5881 ## Report this to the AC_PACKAGE_NAME lists. ##
5882 ## ------------------------------------------ ##
5883 _ASBOX
5885 sed "s/^/$as_me: WARNING: /" >&2
5887 esac
5888 echo "$as_me:$LINENO: checking for $ac_header" >&5
5889 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5890 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5891 echo $ECHO_N "(cached) $ECHO_C" >&6
5892 else
5893 eval "$as_ac_Header=\$ac_header_preproc"
5895 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5896 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5899 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5900 cat >>confdefs.h <<_ACEOF
5901 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5902 _ACEOF
5906 done
5909 echo "$as_me:$LINENO: checking if personality LINUX32 can be set" >&5
5910 echo $ECHO_N "checking if personality LINUX32 can be set... $ECHO_C" >&6
5911 cat >conftest.$ac_ext <<_ACEOF
5912 /* confdefs.h. */
5913 _ACEOF
5914 cat confdefs.h >>conftest.$ac_ext
5915 cat >>conftest.$ac_ext <<_ACEOF
5916 /* end confdefs.h. */
5917 #include <sys/personality.h>
5919 main ()
5921 personality (PER_LINUX32)
5923 return 0;
5925 _ACEOF
5926 rm -f conftest.$ac_objext
5927 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5928 (eval $ac_compile) 2>conftest.er1
5929 ac_status=$?
5930 grep -v '^ *+' conftest.er1 >conftest.err
5931 rm -f conftest.er1
5932 cat conftest.err >&5
5933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5934 (exit $ac_status); } &&
5935 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5937 (eval $ac_try) 2>&5
5938 ac_status=$?
5939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5940 (exit $ac_status); }; } &&
5941 { ac_try='test -s conftest.$ac_objext'
5942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5943 (eval $ac_try) 2>&5
5944 ac_status=$?
5945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5946 (exit $ac_status); }; }; then
5947 emacs_cv_personality_linux32=yes
5948 else
5949 echo "$as_me: failed program was:" >&5
5950 sed 's/^/| /' conftest.$ac_ext >&5
5952 emacs_cv_personality_linux32=no
5954 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5955 echo "$as_me:$LINENO: result: $emacs_cv_personality_linux32" >&5
5956 echo "${ECHO_T}$emacs_cv_personality_linux32" >&6
5958 if test $emacs_cv_personality_linux32 = yes; then
5960 cat >>confdefs.h <<\_ACEOF
5961 #define HAVE_PERSONALITY_LINUX32 1
5962 _ACEOF
5967 for ac_header in term.h
5969 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5970 echo "$as_me:$LINENO: checking for $ac_header" >&5
5971 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5972 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5973 echo $ECHO_N "(cached) $ECHO_C" >&6
5974 else
5975 cat >conftest.$ac_ext <<_ACEOF
5976 /* confdefs.h. */
5977 _ACEOF
5978 cat confdefs.h >>conftest.$ac_ext
5979 cat >>conftest.$ac_ext <<_ACEOF
5980 /* end confdefs.h. */
5981 #include <$ac_header>
5982 _ACEOF
5983 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5984 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5985 ac_status=$?
5986 grep -v '^ *+' conftest.er1 >conftest.err
5987 rm -f conftest.er1
5988 cat conftest.err >&5
5989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5990 (exit $ac_status); } >/dev/null; then
5991 if test -s conftest.err; then
5992 ac_cpp_err=$ac_c_preproc_warn_flag
5993 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5994 else
5995 ac_cpp_err=
5997 else
5998 ac_cpp_err=yes
6000 if test -z "$ac_cpp_err"; then
6001 eval "$as_ac_Header=yes"
6002 else
6003 echo "$as_me: failed program was:" >&5
6004 sed 's/^/| /' conftest.$ac_ext >&5
6006 eval "$as_ac_Header=no"
6008 rm -f conftest.err conftest.$ac_ext
6010 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6011 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6012 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6013 cat >>confdefs.h <<_ACEOF
6014 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6015 _ACEOF
6019 done
6021 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6022 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6023 if test "${ac_cv_header_stdc+set}" = set; then
6024 echo $ECHO_N "(cached) $ECHO_C" >&6
6025 else
6026 cat >conftest.$ac_ext <<_ACEOF
6027 /* confdefs.h. */
6028 _ACEOF
6029 cat confdefs.h >>conftest.$ac_ext
6030 cat >>conftest.$ac_ext <<_ACEOF
6031 /* end confdefs.h. */
6032 #include <stdlib.h>
6033 #include <stdarg.h>
6034 #include <string.h>
6035 #include <float.h>
6038 main ()
6042 return 0;
6044 _ACEOF
6045 rm -f conftest.$ac_objext
6046 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6047 (eval $ac_compile) 2>conftest.er1
6048 ac_status=$?
6049 grep -v '^ *+' conftest.er1 >conftest.err
6050 rm -f conftest.er1
6051 cat conftest.err >&5
6052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6053 (exit $ac_status); } &&
6054 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6056 (eval $ac_try) 2>&5
6057 ac_status=$?
6058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6059 (exit $ac_status); }; } &&
6060 { ac_try='test -s conftest.$ac_objext'
6061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6062 (eval $ac_try) 2>&5
6063 ac_status=$?
6064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6065 (exit $ac_status); }; }; then
6066 ac_cv_header_stdc=yes
6067 else
6068 echo "$as_me: failed program was:" >&5
6069 sed 's/^/| /' conftest.$ac_ext >&5
6071 ac_cv_header_stdc=no
6073 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6075 if test $ac_cv_header_stdc = yes; then
6076 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6077 cat >conftest.$ac_ext <<_ACEOF
6078 /* confdefs.h. */
6079 _ACEOF
6080 cat confdefs.h >>conftest.$ac_ext
6081 cat >>conftest.$ac_ext <<_ACEOF
6082 /* end confdefs.h. */
6083 #include <string.h>
6085 _ACEOF
6086 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6087 $EGREP "memchr" >/dev/null 2>&1; then
6089 else
6090 ac_cv_header_stdc=no
6092 rm -f conftest*
6096 if test $ac_cv_header_stdc = yes; then
6097 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6098 cat >conftest.$ac_ext <<_ACEOF
6099 /* confdefs.h. */
6100 _ACEOF
6101 cat confdefs.h >>conftest.$ac_ext
6102 cat >>conftest.$ac_ext <<_ACEOF
6103 /* end confdefs.h. */
6104 #include <stdlib.h>
6106 _ACEOF
6107 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6108 $EGREP "free" >/dev/null 2>&1; then
6110 else
6111 ac_cv_header_stdc=no
6113 rm -f conftest*
6117 if test $ac_cv_header_stdc = yes; then
6118 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6119 if test "$cross_compiling" = yes; then
6121 else
6122 cat >conftest.$ac_ext <<_ACEOF
6123 /* confdefs.h. */
6124 _ACEOF
6125 cat confdefs.h >>conftest.$ac_ext
6126 cat >>conftest.$ac_ext <<_ACEOF
6127 /* end confdefs.h. */
6128 #include <ctype.h>
6129 #if ((' ' & 0x0FF) == 0x020)
6130 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6131 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6132 #else
6133 # define ISLOWER(c) \
6134 (('a' <= (c) && (c) <= 'i') \
6135 || ('j' <= (c) && (c) <= 'r') \
6136 || ('s' <= (c) && (c) <= 'z'))
6137 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6138 #endif
6140 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6142 main ()
6144 int i;
6145 for (i = 0; i < 256; i++)
6146 if (XOR (islower (i), ISLOWER (i))
6147 || toupper (i) != TOUPPER (i))
6148 exit(2);
6149 exit (0);
6151 _ACEOF
6152 rm -f conftest$ac_exeext
6153 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6154 (eval $ac_link) 2>&5
6155 ac_status=$?
6156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6157 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6159 (eval $ac_try) 2>&5
6160 ac_status=$?
6161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6162 (exit $ac_status); }; }; then
6164 else
6165 echo "$as_me: program exited with status $ac_status" >&5
6166 echo "$as_me: failed program was:" >&5
6167 sed 's/^/| /' conftest.$ac_ext >&5
6169 ( exit $ac_status )
6170 ac_cv_header_stdc=no
6172 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6176 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6177 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6178 if test $ac_cv_header_stdc = yes; then
6180 cat >>confdefs.h <<\_ACEOF
6181 #define STDC_HEADERS 1
6182 _ACEOF
6186 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
6187 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
6188 if test "${ac_cv_header_time+set}" = set; then
6189 echo $ECHO_N "(cached) $ECHO_C" >&6
6190 else
6191 cat >conftest.$ac_ext <<_ACEOF
6192 /* confdefs.h. */
6193 _ACEOF
6194 cat confdefs.h >>conftest.$ac_ext
6195 cat >>conftest.$ac_ext <<_ACEOF
6196 /* end confdefs.h. */
6197 #include <sys/types.h>
6198 #include <sys/time.h>
6199 #include <time.h>
6202 main ()
6204 if ((struct tm *) 0)
6205 return 0;
6207 return 0;
6209 _ACEOF
6210 rm -f conftest.$ac_objext
6211 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6212 (eval $ac_compile) 2>conftest.er1
6213 ac_status=$?
6214 grep -v '^ *+' conftest.er1 >conftest.err
6215 rm -f conftest.er1
6216 cat conftest.err >&5
6217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6218 (exit $ac_status); } &&
6219 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6221 (eval $ac_try) 2>&5
6222 ac_status=$?
6223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6224 (exit $ac_status); }; } &&
6225 { ac_try='test -s conftest.$ac_objext'
6226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6227 (eval $ac_try) 2>&5
6228 ac_status=$?
6229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6230 (exit $ac_status); }; }; then
6231 ac_cv_header_time=yes
6232 else
6233 echo "$as_me: failed program was:" >&5
6234 sed 's/^/| /' conftest.$ac_ext >&5
6236 ac_cv_header_time=no
6238 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6240 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
6241 echo "${ECHO_T}$ac_cv_header_time" >&6
6242 if test $ac_cv_header_time = yes; then
6244 cat >>confdefs.h <<\_ACEOF
6245 #define TIME_WITH_SYS_TIME 1
6246 _ACEOF
6250 echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
6251 echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6
6252 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
6253 echo $ECHO_N "(cached) $ECHO_C" >&6
6254 else
6255 cat >conftest.$ac_ext <<_ACEOF
6256 /* confdefs.h. */
6257 _ACEOF
6258 cat confdefs.h >>conftest.$ac_ext
6259 cat >>conftest.$ac_ext <<_ACEOF
6260 /* end confdefs.h. */
6261 $ac_includes_default
6263 main ()
6265 #ifndef sys_siglist
6266 char *p = (char *) sys_siglist;
6267 #endif
6270 return 0;
6272 _ACEOF
6273 rm -f conftest.$ac_objext
6274 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6275 (eval $ac_compile) 2>conftest.er1
6276 ac_status=$?
6277 grep -v '^ *+' conftest.er1 >conftest.err
6278 rm -f conftest.er1
6279 cat conftest.err >&5
6280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6281 (exit $ac_status); } &&
6282 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6284 (eval $ac_try) 2>&5
6285 ac_status=$?
6286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6287 (exit $ac_status); }; } &&
6288 { ac_try='test -s conftest.$ac_objext'
6289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6290 (eval $ac_try) 2>&5
6291 ac_status=$?
6292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6293 (exit $ac_status); }; }; then
6294 ac_cv_have_decl_sys_siglist=yes
6295 else
6296 echo "$as_me: failed program was:" >&5
6297 sed 's/^/| /' conftest.$ac_ext >&5
6299 ac_cv_have_decl_sys_siglist=no
6301 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6303 echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
6304 echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6
6305 if test $ac_cv_have_decl_sys_siglist = yes; then
6307 cat >>confdefs.h <<_ACEOF
6308 #define HAVE_DECL_SYS_SIGLIST 1
6309 _ACEOF
6312 else
6313 cat >>confdefs.h <<_ACEOF
6314 #define HAVE_DECL_SYS_SIGLIST 0
6315 _ACEOF
6321 if test $ac_cv_have_decl_sys_siglist != yes; then
6322 # For Tru64, at least:
6323 echo "$as_me:$LINENO: checking whether __sys_siglist is declared" >&5
6324 echo $ECHO_N "checking whether __sys_siglist is declared... $ECHO_C" >&6
6325 if test "${ac_cv_have_decl___sys_siglist+set}" = set; then
6326 echo $ECHO_N "(cached) $ECHO_C" >&6
6327 else
6328 cat >conftest.$ac_ext <<_ACEOF
6329 /* confdefs.h. */
6330 _ACEOF
6331 cat confdefs.h >>conftest.$ac_ext
6332 cat >>conftest.$ac_ext <<_ACEOF
6333 /* end confdefs.h. */
6334 $ac_includes_default
6336 main ()
6338 #ifndef __sys_siglist
6339 char *p = (char *) __sys_siglist;
6340 #endif
6343 return 0;
6345 _ACEOF
6346 rm -f conftest.$ac_objext
6347 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6348 (eval $ac_compile) 2>conftest.er1
6349 ac_status=$?
6350 grep -v '^ *+' conftest.er1 >conftest.err
6351 rm -f conftest.er1
6352 cat conftest.err >&5
6353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6354 (exit $ac_status); } &&
6355 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6357 (eval $ac_try) 2>&5
6358 ac_status=$?
6359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6360 (exit $ac_status); }; } &&
6361 { ac_try='test -s conftest.$ac_objext'
6362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6363 (eval $ac_try) 2>&5
6364 ac_status=$?
6365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6366 (exit $ac_status); }; }; then
6367 ac_cv_have_decl___sys_siglist=yes
6368 else
6369 echo "$as_me: failed program was:" >&5
6370 sed 's/^/| /' conftest.$ac_ext >&5
6372 ac_cv_have_decl___sys_siglist=no
6374 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6376 echo "$as_me:$LINENO: result: $ac_cv_have_decl___sys_siglist" >&5
6377 echo "${ECHO_T}$ac_cv_have_decl___sys_siglist" >&6
6378 if test $ac_cv_have_decl___sys_siglist = yes; then
6380 cat >>confdefs.h <<_ACEOF
6381 #define HAVE_DECL___SYS_SIGLIST 1
6382 _ACEOF
6385 else
6386 cat >>confdefs.h <<_ACEOF
6387 #define HAVE_DECL___SYS_SIGLIST 0
6388 _ACEOF
6394 if test $ac_cv_have_decl___sys_siglist = yes; then
6396 cat >>confdefs.h <<\_ACEOF
6397 #define sys_siglist __sys_siglist
6398 _ACEOF
6402 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
6403 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
6404 if test "${ac_cv_header_sys_wait_h+set}" = set; then
6405 echo $ECHO_N "(cached) $ECHO_C" >&6
6406 else
6407 cat >conftest.$ac_ext <<_ACEOF
6408 /* confdefs.h. */
6409 _ACEOF
6410 cat confdefs.h >>conftest.$ac_ext
6411 cat >>conftest.$ac_ext <<_ACEOF
6412 /* end confdefs.h. */
6413 #include <sys/types.h>
6414 #include <sys/wait.h>
6415 #ifndef WEXITSTATUS
6416 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
6417 #endif
6418 #ifndef WIFEXITED
6419 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
6420 #endif
6423 main ()
6425 int s;
6426 wait (&s);
6427 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
6429 return 0;
6431 _ACEOF
6432 rm -f conftest.$ac_objext
6433 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6434 (eval $ac_compile) 2>conftest.er1
6435 ac_status=$?
6436 grep -v '^ *+' conftest.er1 >conftest.err
6437 rm -f conftest.er1
6438 cat conftest.err >&5
6439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6440 (exit $ac_status); } &&
6441 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6443 (eval $ac_try) 2>&5
6444 ac_status=$?
6445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6446 (exit $ac_status); }; } &&
6447 { ac_try='test -s conftest.$ac_objext'
6448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6449 (eval $ac_try) 2>&5
6450 ac_status=$?
6451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6452 (exit $ac_status); }; }; then
6453 ac_cv_header_sys_wait_h=yes
6454 else
6455 echo "$as_me: failed program was:" >&5
6456 sed 's/^/| /' conftest.$ac_ext >&5
6458 ac_cv_header_sys_wait_h=no
6460 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6462 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
6463 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
6464 if test $ac_cv_header_sys_wait_h = yes; then
6466 cat >>confdefs.h <<\_ACEOF
6467 #define HAVE_SYS_WAIT_H 1
6468 _ACEOF
6473 echo "$as_me:$LINENO: checking for struct utimbuf" >&5
6474 echo $ECHO_N "checking for struct utimbuf... $ECHO_C" >&6
6475 if test "${emacs_cv_struct_utimbuf+set}" = set; then
6476 echo $ECHO_N "(cached) $ECHO_C" >&6
6477 else
6478 cat >conftest.$ac_ext <<_ACEOF
6479 /* confdefs.h. */
6480 _ACEOF
6481 cat confdefs.h >>conftest.$ac_ext
6482 cat >>conftest.$ac_ext <<_ACEOF
6483 /* end confdefs.h. */
6484 #ifdef TIME_WITH_SYS_TIME
6485 #include <sys/time.h>
6486 #include <time.h>
6487 #else
6488 #ifdef HAVE_SYS_TIME_H
6489 #include <sys/time.h>
6490 #else
6491 #include <time.h>
6492 #endif
6493 #endif
6494 #ifdef HAVE_UTIME_H
6495 #include <utime.h>
6496 #endif
6498 main ()
6500 static struct utimbuf x; x.actime = x.modtime;
6502 return 0;
6504 _ACEOF
6505 rm -f conftest.$ac_objext
6506 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6507 (eval $ac_compile) 2>conftest.er1
6508 ac_status=$?
6509 grep -v '^ *+' conftest.er1 >conftest.err
6510 rm -f conftest.er1
6511 cat conftest.err >&5
6512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6513 (exit $ac_status); } &&
6514 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6516 (eval $ac_try) 2>&5
6517 ac_status=$?
6518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6519 (exit $ac_status); }; } &&
6520 { ac_try='test -s conftest.$ac_objext'
6521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6522 (eval $ac_try) 2>&5
6523 ac_status=$?
6524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6525 (exit $ac_status); }; }; then
6526 emacs_cv_struct_utimbuf=yes
6527 else
6528 echo "$as_me: failed program was:" >&5
6529 sed 's/^/| /' conftest.$ac_ext >&5
6531 emacs_cv_struct_utimbuf=no
6533 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6535 echo "$as_me:$LINENO: result: $emacs_cv_struct_utimbuf" >&5
6536 echo "${ECHO_T}$emacs_cv_struct_utimbuf" >&6
6537 if test $emacs_cv_struct_utimbuf = yes; then
6539 cat >>confdefs.h <<\_ACEOF
6540 #define HAVE_STRUCT_UTIMBUF 1
6541 _ACEOF
6545 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
6546 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
6547 if test "${ac_cv_type_signal+set}" = set; then
6548 echo $ECHO_N "(cached) $ECHO_C" >&6
6549 else
6550 cat >conftest.$ac_ext <<_ACEOF
6551 /* confdefs.h. */
6552 _ACEOF
6553 cat confdefs.h >>conftest.$ac_ext
6554 cat >>conftest.$ac_ext <<_ACEOF
6555 /* end confdefs.h. */
6556 #include <sys/types.h>
6557 #include <signal.h>
6558 #ifdef signal
6559 # undef signal
6560 #endif
6561 #ifdef __cplusplus
6562 extern "C" void (*signal (int, void (*)(int)))(int);
6563 #else
6564 void (*signal ()) ();
6565 #endif
6568 main ()
6570 int i;
6572 return 0;
6574 _ACEOF
6575 rm -f conftest.$ac_objext
6576 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6577 (eval $ac_compile) 2>conftest.er1
6578 ac_status=$?
6579 grep -v '^ *+' conftest.er1 >conftest.err
6580 rm -f conftest.er1
6581 cat conftest.err >&5
6582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6583 (exit $ac_status); } &&
6584 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6586 (eval $ac_try) 2>&5
6587 ac_status=$?
6588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6589 (exit $ac_status); }; } &&
6590 { ac_try='test -s conftest.$ac_objext'
6591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6592 (eval $ac_try) 2>&5
6593 ac_status=$?
6594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6595 (exit $ac_status); }; }; then
6596 ac_cv_type_signal=void
6597 else
6598 echo "$as_me: failed program was:" >&5
6599 sed 's/^/| /' conftest.$ac_ext >&5
6601 ac_cv_type_signal=int
6603 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6605 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
6606 echo "${ECHO_T}$ac_cv_type_signal" >&6
6608 cat >>confdefs.h <<_ACEOF
6609 #define RETSIGTYPE $ac_cv_type_signal
6610 _ACEOF
6614 echo "$as_me:$LINENO: checking for speed_t" >&5
6615 echo $ECHO_N "checking for speed_t... $ECHO_C" >&6
6616 if test "${emacs_cv_speed_t+set}" = set; then
6617 echo $ECHO_N "(cached) $ECHO_C" >&6
6618 else
6619 cat >conftest.$ac_ext <<_ACEOF
6620 /* confdefs.h. */
6621 _ACEOF
6622 cat confdefs.h >>conftest.$ac_ext
6623 cat >>conftest.$ac_ext <<_ACEOF
6624 /* end confdefs.h. */
6625 #include <termios.h>
6627 main ()
6629 speed_t x = 1;
6631 return 0;
6633 _ACEOF
6634 rm -f conftest.$ac_objext
6635 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6636 (eval $ac_compile) 2>conftest.er1
6637 ac_status=$?
6638 grep -v '^ *+' conftest.er1 >conftest.err
6639 rm -f conftest.er1
6640 cat conftest.err >&5
6641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6642 (exit $ac_status); } &&
6643 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6645 (eval $ac_try) 2>&5
6646 ac_status=$?
6647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6648 (exit $ac_status); }; } &&
6649 { ac_try='test -s conftest.$ac_objext'
6650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6651 (eval $ac_try) 2>&5
6652 ac_status=$?
6653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6654 (exit $ac_status); }; }; then
6655 emacs_cv_speed_t=yes
6656 else
6657 echo "$as_me: failed program was:" >&5
6658 sed 's/^/| /' conftest.$ac_ext >&5
6660 emacs_cv_speed_t=no
6662 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6664 echo "$as_me:$LINENO: result: $emacs_cv_speed_t" >&5
6665 echo "${ECHO_T}$emacs_cv_speed_t" >&6
6666 if test $emacs_cv_speed_t = yes; then
6668 cat >>confdefs.h <<\_ACEOF
6669 #define HAVE_SPEED_T 1
6670 _ACEOF
6674 echo "$as_me:$LINENO: checking for struct timeval" >&5
6675 echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6
6676 if test "${emacs_cv_struct_timeval+set}" = set; then
6677 echo $ECHO_N "(cached) $ECHO_C" >&6
6678 else
6679 cat >conftest.$ac_ext <<_ACEOF
6680 /* confdefs.h. */
6681 _ACEOF
6682 cat confdefs.h >>conftest.$ac_ext
6683 cat >>conftest.$ac_ext <<_ACEOF
6684 /* end confdefs.h. */
6685 #ifdef TIME_WITH_SYS_TIME
6686 #include <sys/time.h>
6687 #include <time.h>
6688 #else
6689 #ifdef HAVE_SYS_TIME_H
6690 #include <sys/time.h>
6691 #else
6692 #include <time.h>
6693 #endif
6694 #endif
6696 main ()
6698 static struct timeval x; x.tv_sec = x.tv_usec;
6700 return 0;
6702 _ACEOF
6703 rm -f conftest.$ac_objext
6704 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6705 (eval $ac_compile) 2>conftest.er1
6706 ac_status=$?
6707 grep -v '^ *+' conftest.er1 >conftest.err
6708 rm -f conftest.er1
6709 cat conftest.err >&5
6710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6711 (exit $ac_status); } &&
6712 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6714 (eval $ac_try) 2>&5
6715 ac_status=$?
6716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6717 (exit $ac_status); }; } &&
6718 { ac_try='test -s conftest.$ac_objext'
6719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6720 (eval $ac_try) 2>&5
6721 ac_status=$?
6722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6723 (exit $ac_status); }; }; then
6724 emacs_cv_struct_timeval=yes
6725 else
6726 echo "$as_me: failed program was:" >&5
6727 sed 's/^/| /' conftest.$ac_ext >&5
6729 emacs_cv_struct_timeval=no
6731 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6733 echo "$as_me:$LINENO: result: $emacs_cv_struct_timeval" >&5
6734 echo "${ECHO_T}$emacs_cv_struct_timeval" >&6
6735 HAVE_TIMEVAL=$emacs_cv_struct_timeval
6736 if test $emacs_cv_struct_timeval = yes; then
6738 cat >>confdefs.h <<\_ACEOF
6739 #define HAVE_TIMEVAL 1
6740 _ACEOF
6744 echo "$as_me:$LINENO: checking for struct exception" >&5
6745 echo $ECHO_N "checking for struct exception... $ECHO_C" >&6
6746 if test "${emacs_cv_struct_exception+set}" = set; then
6747 echo $ECHO_N "(cached) $ECHO_C" >&6
6748 else
6749 cat >conftest.$ac_ext <<_ACEOF
6750 /* confdefs.h. */
6751 _ACEOF
6752 cat confdefs.h >>conftest.$ac_ext
6753 cat >>conftest.$ac_ext <<_ACEOF
6754 /* end confdefs.h. */
6755 #include <math.h>
6757 main ()
6759 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
6761 return 0;
6763 _ACEOF
6764 rm -f conftest.$ac_objext
6765 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6766 (eval $ac_compile) 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_objext'
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 emacs_cv_struct_exception=yes
6786 else
6787 echo "$as_me: failed program was:" >&5
6788 sed 's/^/| /' conftest.$ac_ext >&5
6790 emacs_cv_struct_exception=no
6792 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6794 echo "$as_me:$LINENO: result: $emacs_cv_struct_exception" >&5
6795 echo "${ECHO_T}$emacs_cv_struct_exception" >&6
6796 HAVE_EXCEPTION=$emacs_cv_struct_exception
6797 if test $emacs_cv_struct_exception != yes; then
6799 cat >>confdefs.h <<\_ACEOF
6800 #define NO_MATHERR 1
6801 _ACEOF
6806 for ac_header in sys/socket.h
6808 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6809 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6810 echo "$as_me:$LINENO: checking for $ac_header" >&5
6811 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6812 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6813 echo $ECHO_N "(cached) $ECHO_C" >&6
6815 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6816 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6817 else
6818 # Is the header compilable?
6819 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6820 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6821 cat >conftest.$ac_ext <<_ACEOF
6822 /* confdefs.h. */
6823 _ACEOF
6824 cat confdefs.h >>conftest.$ac_ext
6825 cat >>conftest.$ac_ext <<_ACEOF
6826 /* end confdefs.h. */
6827 $ac_includes_default
6828 #include <$ac_header>
6829 _ACEOF
6830 rm -f conftest.$ac_objext
6831 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6832 (eval $ac_compile) 2>conftest.er1
6833 ac_status=$?
6834 grep -v '^ *+' conftest.er1 >conftest.err
6835 rm -f conftest.er1
6836 cat conftest.err >&5
6837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6838 (exit $ac_status); } &&
6839 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6841 (eval $ac_try) 2>&5
6842 ac_status=$?
6843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6844 (exit $ac_status); }; } &&
6845 { ac_try='test -s conftest.$ac_objext'
6846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6847 (eval $ac_try) 2>&5
6848 ac_status=$?
6849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6850 (exit $ac_status); }; }; then
6851 ac_header_compiler=yes
6852 else
6853 echo "$as_me: failed program was:" >&5
6854 sed 's/^/| /' conftest.$ac_ext >&5
6856 ac_header_compiler=no
6858 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6859 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6860 echo "${ECHO_T}$ac_header_compiler" >&6
6862 # Is the header present?
6863 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6864 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6865 cat >conftest.$ac_ext <<_ACEOF
6866 /* confdefs.h. */
6867 _ACEOF
6868 cat confdefs.h >>conftest.$ac_ext
6869 cat >>conftest.$ac_ext <<_ACEOF
6870 /* end confdefs.h. */
6871 #include <$ac_header>
6872 _ACEOF
6873 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6874 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6875 ac_status=$?
6876 grep -v '^ *+' conftest.er1 >conftest.err
6877 rm -f conftest.er1
6878 cat conftest.err >&5
6879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6880 (exit $ac_status); } >/dev/null; then
6881 if test -s conftest.err; then
6882 ac_cpp_err=$ac_c_preproc_warn_flag
6883 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6884 else
6885 ac_cpp_err=
6887 else
6888 ac_cpp_err=yes
6890 if test -z "$ac_cpp_err"; then
6891 ac_header_preproc=yes
6892 else
6893 echo "$as_me: failed program was:" >&5
6894 sed 's/^/| /' conftest.$ac_ext >&5
6896 ac_header_preproc=no
6898 rm -f conftest.err conftest.$ac_ext
6899 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6900 echo "${ECHO_T}$ac_header_preproc" >&6
6902 # So? What about this header?
6903 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6904 yes:no: )
6905 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6906 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6907 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6908 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6909 ac_header_preproc=yes
6911 no:yes:* )
6912 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6913 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6914 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6915 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6916 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6917 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6918 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6919 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6920 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6921 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6922 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6923 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6925 cat <<\_ASBOX
6926 ## ------------------------------------------ ##
6927 ## Report this to the AC_PACKAGE_NAME lists. ##
6928 ## ------------------------------------------ ##
6929 _ASBOX
6931 sed "s/^/$as_me: WARNING: /" >&2
6933 esac
6934 echo "$as_me:$LINENO: checking for $ac_header" >&5
6935 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6936 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6937 echo $ECHO_N "(cached) $ECHO_C" >&6
6938 else
6939 eval "$as_ac_Header=\$ac_header_preproc"
6941 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6942 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6945 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6946 cat >>confdefs.h <<_ACEOF
6947 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6948 _ACEOF
6952 done
6955 for ac_header in net/if.h
6957 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6958 echo "$as_me:$LINENO: checking for $ac_header" >&5
6959 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6960 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6961 echo $ECHO_N "(cached) $ECHO_C" >&6
6962 else
6963 cat >conftest.$ac_ext <<_ACEOF
6964 /* confdefs.h. */
6965 _ACEOF
6966 cat confdefs.h >>conftest.$ac_ext
6967 cat >>conftest.$ac_ext <<_ACEOF
6968 /* end confdefs.h. */
6969 $ac_includes_default
6970 #if HAVE_SYS_SOCKET_H
6971 #include <sys/socket.h>
6972 #endif
6974 #include <$ac_header>
6975 _ACEOF
6976 rm -f conftest.$ac_objext
6977 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6978 (eval $ac_compile) 2>conftest.er1
6979 ac_status=$?
6980 grep -v '^ *+' conftest.er1 >conftest.err
6981 rm -f conftest.er1
6982 cat conftest.err >&5
6983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6984 (exit $ac_status); } &&
6985 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6987 (eval $ac_try) 2>&5
6988 ac_status=$?
6989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6990 (exit $ac_status); }; } &&
6991 { ac_try='test -s conftest.$ac_objext'
6992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6993 (eval $ac_try) 2>&5
6994 ac_status=$?
6995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6996 (exit $ac_status); }; }; then
6997 eval "$as_ac_Header=yes"
6998 else
6999 echo "$as_me: failed program was:" >&5
7000 sed 's/^/| /' conftest.$ac_ext >&5
7002 eval "$as_ac_Header=no"
7004 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7006 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7007 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7008 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7009 cat >>confdefs.h <<_ACEOF
7010 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7011 _ACEOF
7015 done
7018 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
7019 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
7020 if test "${ac_cv_struct_tm+set}" = set; then
7021 echo $ECHO_N "(cached) $ECHO_C" >&6
7022 else
7023 cat >conftest.$ac_ext <<_ACEOF
7024 /* confdefs.h. */
7025 _ACEOF
7026 cat confdefs.h >>conftest.$ac_ext
7027 cat >>conftest.$ac_ext <<_ACEOF
7028 /* end confdefs.h. */
7029 #include <sys/types.h>
7030 #include <time.h>
7033 main ()
7035 struct tm *tp; tp->tm_sec;
7037 return 0;
7039 _ACEOF
7040 rm -f conftest.$ac_objext
7041 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7042 (eval $ac_compile) 2>conftest.er1
7043 ac_status=$?
7044 grep -v '^ *+' conftest.er1 >conftest.err
7045 rm -f conftest.er1
7046 cat conftest.err >&5
7047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7048 (exit $ac_status); } &&
7049 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7051 (eval $ac_try) 2>&5
7052 ac_status=$?
7053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7054 (exit $ac_status); }; } &&
7055 { ac_try='test -s conftest.$ac_objext'
7056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7057 (eval $ac_try) 2>&5
7058 ac_status=$?
7059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7060 (exit $ac_status); }; }; then
7061 ac_cv_struct_tm=time.h
7062 else
7063 echo "$as_me: failed program was:" >&5
7064 sed 's/^/| /' conftest.$ac_ext >&5
7066 ac_cv_struct_tm=sys/time.h
7068 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7070 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
7071 echo "${ECHO_T}$ac_cv_struct_tm" >&6
7072 if test $ac_cv_struct_tm = sys/time.h; then
7074 cat >>confdefs.h <<\_ACEOF
7075 #define TM_IN_SYS_TIME 1
7076 _ACEOF
7080 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
7081 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
7082 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
7083 echo $ECHO_N "(cached) $ECHO_C" >&6
7084 else
7085 cat >conftest.$ac_ext <<_ACEOF
7086 /* confdefs.h. */
7087 _ACEOF
7088 cat confdefs.h >>conftest.$ac_ext
7089 cat >>conftest.$ac_ext <<_ACEOF
7090 /* end confdefs.h. */
7091 #include <sys/types.h>
7092 #include <$ac_cv_struct_tm>
7096 main ()
7098 static struct tm ac_aggr;
7099 if (ac_aggr.tm_zone)
7100 return 0;
7102 return 0;
7104 _ACEOF
7105 rm -f conftest.$ac_objext
7106 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7107 (eval $ac_compile) 2>conftest.er1
7108 ac_status=$?
7109 grep -v '^ *+' conftest.er1 >conftest.err
7110 rm -f conftest.er1
7111 cat conftest.err >&5
7112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7113 (exit $ac_status); } &&
7114 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7116 (eval $ac_try) 2>&5
7117 ac_status=$?
7118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7119 (exit $ac_status); }; } &&
7120 { ac_try='test -s conftest.$ac_objext'
7121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7122 (eval $ac_try) 2>&5
7123 ac_status=$?
7124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7125 (exit $ac_status); }; }; then
7126 ac_cv_member_struct_tm_tm_zone=yes
7127 else
7128 echo "$as_me: failed program was:" >&5
7129 sed 's/^/| /' conftest.$ac_ext >&5
7131 cat >conftest.$ac_ext <<_ACEOF
7132 /* confdefs.h. */
7133 _ACEOF
7134 cat confdefs.h >>conftest.$ac_ext
7135 cat >>conftest.$ac_ext <<_ACEOF
7136 /* end confdefs.h. */
7137 #include <sys/types.h>
7138 #include <$ac_cv_struct_tm>
7142 main ()
7144 static struct tm ac_aggr;
7145 if (sizeof ac_aggr.tm_zone)
7146 return 0;
7148 return 0;
7150 _ACEOF
7151 rm -f conftest.$ac_objext
7152 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7153 (eval $ac_compile) 2>conftest.er1
7154 ac_status=$?
7155 grep -v '^ *+' conftest.er1 >conftest.err
7156 rm -f conftest.er1
7157 cat conftest.err >&5
7158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7159 (exit $ac_status); } &&
7160 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7162 (eval $ac_try) 2>&5
7163 ac_status=$?
7164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7165 (exit $ac_status); }; } &&
7166 { ac_try='test -s conftest.$ac_objext'
7167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7168 (eval $ac_try) 2>&5
7169 ac_status=$?
7170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7171 (exit $ac_status); }; }; then
7172 ac_cv_member_struct_tm_tm_zone=yes
7173 else
7174 echo "$as_me: failed program was:" >&5
7175 sed 's/^/| /' conftest.$ac_ext >&5
7177 ac_cv_member_struct_tm_tm_zone=no
7179 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7181 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7183 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
7184 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
7185 if test $ac_cv_member_struct_tm_tm_zone = yes; then
7187 cat >>confdefs.h <<_ACEOF
7188 #define HAVE_STRUCT_TM_TM_ZONE 1
7189 _ACEOF
7194 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
7196 cat >>confdefs.h <<\_ACEOF
7197 #define HAVE_TM_ZONE 1
7198 _ACEOF
7200 else
7201 echo "$as_me:$LINENO: checking for tzname" >&5
7202 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
7203 if test "${ac_cv_var_tzname+set}" = set; then
7204 echo $ECHO_N "(cached) $ECHO_C" >&6
7205 else
7206 cat >conftest.$ac_ext <<_ACEOF
7207 /* confdefs.h. */
7208 _ACEOF
7209 cat confdefs.h >>conftest.$ac_ext
7210 cat >>conftest.$ac_ext <<_ACEOF
7211 /* end confdefs.h. */
7212 #include <time.h>
7213 #ifndef tzname /* For SGI. */
7214 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
7215 #endif
7218 main ()
7220 atoi(*tzname);
7222 return 0;
7224 _ACEOF
7225 rm -f conftest.$ac_objext conftest$ac_exeext
7226 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7227 (eval $ac_link) 2>conftest.er1
7228 ac_status=$?
7229 grep -v '^ *+' conftest.er1 >conftest.err
7230 rm -f conftest.er1
7231 cat conftest.err >&5
7232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7233 (exit $ac_status); } &&
7234 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7236 (eval $ac_try) 2>&5
7237 ac_status=$?
7238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7239 (exit $ac_status); }; } &&
7240 { ac_try='test -s conftest$ac_exeext'
7241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7242 (eval $ac_try) 2>&5
7243 ac_status=$?
7244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7245 (exit $ac_status); }; }; then
7246 ac_cv_var_tzname=yes
7247 else
7248 echo "$as_me: failed program was:" >&5
7249 sed 's/^/| /' conftest.$ac_ext >&5
7251 ac_cv_var_tzname=no
7253 rm -f conftest.err conftest.$ac_objext \
7254 conftest$ac_exeext conftest.$ac_ext
7256 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
7257 echo "${ECHO_T}$ac_cv_var_tzname" >&6
7258 if test $ac_cv_var_tzname = yes; then
7260 cat >>confdefs.h <<\_ACEOF
7261 #define HAVE_TZNAME 1
7262 _ACEOF
7267 echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
7268 echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6
7269 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
7270 echo $ECHO_N "(cached) $ECHO_C" >&6
7271 else
7272 cat >conftest.$ac_ext <<_ACEOF
7273 /* confdefs.h. */
7274 _ACEOF
7275 cat confdefs.h >>conftest.$ac_ext
7276 cat >>conftest.$ac_ext <<_ACEOF
7277 /* end confdefs.h. */
7278 #include <time.h>
7281 main ()
7283 static struct tm ac_aggr;
7284 if (ac_aggr.tm_gmtoff)
7285 return 0;
7287 return 0;
7289 _ACEOF
7290 rm -f conftest.$ac_objext
7291 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7292 (eval $ac_compile) 2>conftest.er1
7293 ac_status=$?
7294 grep -v '^ *+' conftest.er1 >conftest.err
7295 rm -f conftest.er1
7296 cat conftest.err >&5
7297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7298 (exit $ac_status); } &&
7299 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7301 (eval $ac_try) 2>&5
7302 ac_status=$?
7303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7304 (exit $ac_status); }; } &&
7305 { ac_try='test -s conftest.$ac_objext'
7306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7307 (eval $ac_try) 2>&5
7308 ac_status=$?
7309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7310 (exit $ac_status); }; }; then
7311 ac_cv_member_struct_tm_tm_gmtoff=yes
7312 else
7313 echo "$as_me: failed program was:" >&5
7314 sed 's/^/| /' conftest.$ac_ext >&5
7316 cat >conftest.$ac_ext <<_ACEOF
7317 /* confdefs.h. */
7318 _ACEOF
7319 cat confdefs.h >>conftest.$ac_ext
7320 cat >>conftest.$ac_ext <<_ACEOF
7321 /* end confdefs.h. */
7322 #include <time.h>
7325 main ()
7327 static struct tm ac_aggr;
7328 if (sizeof ac_aggr.tm_gmtoff)
7329 return 0;
7331 return 0;
7333 _ACEOF
7334 rm -f conftest.$ac_objext
7335 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7336 (eval $ac_compile) 2>conftest.er1
7337 ac_status=$?
7338 grep -v '^ *+' conftest.er1 >conftest.err
7339 rm -f conftest.er1
7340 cat conftest.err >&5
7341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7342 (exit $ac_status); } &&
7343 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7345 (eval $ac_try) 2>&5
7346 ac_status=$?
7347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7348 (exit $ac_status); }; } &&
7349 { ac_try='test -s conftest.$ac_objext'
7350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7351 (eval $ac_try) 2>&5
7352 ac_status=$?
7353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7354 (exit $ac_status); }; }; then
7355 ac_cv_member_struct_tm_tm_gmtoff=yes
7356 else
7357 echo "$as_me: failed program was:" >&5
7358 sed 's/^/| /' conftest.$ac_ext >&5
7360 ac_cv_member_struct_tm_tm_gmtoff=no
7362 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7364 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7366 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
7367 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6
7368 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
7370 cat >>confdefs.h <<\_ACEOF
7371 #define HAVE_TM_GMTOFF 1
7372 _ACEOF
7376 echo "$as_me:$LINENO: checking for struct ifreq.ifr_flags" >&5
7377 echo $ECHO_N "checking for struct ifreq.ifr_flags... $ECHO_C" >&6
7378 if test "${ac_cv_member_struct_ifreq_ifr_flags+set}" = set; then
7379 echo $ECHO_N "(cached) $ECHO_C" >&6
7380 else
7381 cat >conftest.$ac_ext <<_ACEOF
7382 /* confdefs.h. */
7383 _ACEOF
7384 cat confdefs.h >>conftest.$ac_ext
7385 cat >>conftest.$ac_ext <<_ACEOF
7386 /* end confdefs.h. */
7387 $ac_includes_default
7388 #if HAVE_SYS_SOCKET_H
7389 #include <sys/socket.h>
7390 #endif
7391 #if HAVE_NET_IF_H
7392 #include <net/if.h>
7393 #endif
7396 main ()
7398 static struct ifreq ac_aggr;
7399 if (ac_aggr.ifr_flags)
7400 return 0;
7402 return 0;
7404 _ACEOF
7405 rm -f conftest.$ac_objext
7406 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7407 (eval $ac_compile) 2>conftest.er1
7408 ac_status=$?
7409 grep -v '^ *+' conftest.er1 >conftest.err
7410 rm -f conftest.er1
7411 cat conftest.err >&5
7412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7413 (exit $ac_status); } &&
7414 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7416 (eval $ac_try) 2>&5
7417 ac_status=$?
7418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7419 (exit $ac_status); }; } &&
7420 { ac_try='test -s conftest.$ac_objext'
7421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7422 (eval $ac_try) 2>&5
7423 ac_status=$?
7424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7425 (exit $ac_status); }; }; then
7426 ac_cv_member_struct_ifreq_ifr_flags=yes
7427 else
7428 echo "$as_me: failed program was:" >&5
7429 sed 's/^/| /' conftest.$ac_ext >&5
7431 cat >conftest.$ac_ext <<_ACEOF
7432 /* confdefs.h. */
7433 _ACEOF
7434 cat confdefs.h >>conftest.$ac_ext
7435 cat >>conftest.$ac_ext <<_ACEOF
7436 /* end confdefs.h. */
7437 $ac_includes_default
7438 #if HAVE_SYS_SOCKET_H
7439 #include <sys/socket.h>
7440 #endif
7441 #if HAVE_NET_IF_H
7442 #include <net/if.h>
7443 #endif
7446 main ()
7448 static struct ifreq ac_aggr;
7449 if (sizeof ac_aggr.ifr_flags)
7450 return 0;
7452 return 0;
7454 _ACEOF
7455 rm -f conftest.$ac_objext
7456 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7457 (eval $ac_compile) 2>conftest.er1
7458 ac_status=$?
7459 grep -v '^ *+' conftest.er1 >conftest.err
7460 rm -f conftest.er1
7461 cat conftest.err >&5
7462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7463 (exit $ac_status); } &&
7464 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7466 (eval $ac_try) 2>&5
7467 ac_status=$?
7468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7469 (exit $ac_status); }; } &&
7470 { ac_try='test -s conftest.$ac_objext'
7471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7472 (eval $ac_try) 2>&5
7473 ac_status=$?
7474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7475 (exit $ac_status); }; }; then
7476 ac_cv_member_struct_ifreq_ifr_flags=yes
7477 else
7478 echo "$as_me: failed program was:" >&5
7479 sed 's/^/| /' conftest.$ac_ext >&5
7481 ac_cv_member_struct_ifreq_ifr_flags=no
7483 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7485 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7487 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_flags" >&5
7488 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_flags" >&6
7489 if test $ac_cv_member_struct_ifreq_ifr_flags = yes; then
7491 cat >>confdefs.h <<_ACEOF
7492 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
7493 _ACEOF
7497 echo "$as_me:$LINENO: checking for struct ifreq.ifr_hwaddr" >&5
7498 echo $ECHO_N "checking for struct ifreq.ifr_hwaddr... $ECHO_C" >&6
7499 if test "${ac_cv_member_struct_ifreq_ifr_hwaddr+set}" = set; then
7500 echo $ECHO_N "(cached) $ECHO_C" >&6
7501 else
7502 cat >conftest.$ac_ext <<_ACEOF
7503 /* confdefs.h. */
7504 _ACEOF
7505 cat confdefs.h >>conftest.$ac_ext
7506 cat >>conftest.$ac_ext <<_ACEOF
7507 /* end confdefs.h. */
7508 $ac_includes_default
7509 #if HAVE_SYS_SOCKET_H
7510 #include <sys/socket.h>
7511 #endif
7512 #if HAVE_NET_IF_H
7513 #include <net/if.h>
7514 #endif
7517 main ()
7519 static struct ifreq ac_aggr;
7520 if (ac_aggr.ifr_hwaddr)
7521 return 0;
7523 return 0;
7525 _ACEOF
7526 rm -f conftest.$ac_objext
7527 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7528 (eval $ac_compile) 2>conftest.er1
7529 ac_status=$?
7530 grep -v '^ *+' conftest.er1 >conftest.err
7531 rm -f conftest.er1
7532 cat conftest.err >&5
7533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7534 (exit $ac_status); } &&
7535 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7537 (eval $ac_try) 2>&5
7538 ac_status=$?
7539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7540 (exit $ac_status); }; } &&
7541 { ac_try='test -s conftest.$ac_objext'
7542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7543 (eval $ac_try) 2>&5
7544 ac_status=$?
7545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7546 (exit $ac_status); }; }; then
7547 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
7548 else
7549 echo "$as_me: failed program was:" >&5
7550 sed 's/^/| /' conftest.$ac_ext >&5
7552 cat >conftest.$ac_ext <<_ACEOF
7553 /* confdefs.h. */
7554 _ACEOF
7555 cat confdefs.h >>conftest.$ac_ext
7556 cat >>conftest.$ac_ext <<_ACEOF
7557 /* end confdefs.h. */
7558 $ac_includes_default
7559 #if HAVE_SYS_SOCKET_H
7560 #include <sys/socket.h>
7561 #endif
7562 #if HAVE_NET_IF_H
7563 #include <net/if.h>
7564 #endif
7567 main ()
7569 static struct ifreq ac_aggr;
7570 if (sizeof ac_aggr.ifr_hwaddr)
7571 return 0;
7573 return 0;
7575 _ACEOF
7576 rm -f conftest.$ac_objext
7577 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7578 (eval $ac_compile) 2>conftest.er1
7579 ac_status=$?
7580 grep -v '^ *+' conftest.er1 >conftest.err
7581 rm -f conftest.er1
7582 cat conftest.err >&5
7583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7584 (exit $ac_status); } &&
7585 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7587 (eval $ac_try) 2>&5
7588 ac_status=$?
7589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7590 (exit $ac_status); }; } &&
7591 { ac_try='test -s conftest.$ac_objext'
7592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7593 (eval $ac_try) 2>&5
7594 ac_status=$?
7595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7596 (exit $ac_status); }; }; then
7597 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
7598 else
7599 echo "$as_me: failed program was:" >&5
7600 sed 's/^/| /' conftest.$ac_ext >&5
7602 ac_cv_member_struct_ifreq_ifr_hwaddr=no
7604 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7606 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7608 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_hwaddr" >&5
7609 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_hwaddr" >&6
7610 if test $ac_cv_member_struct_ifreq_ifr_hwaddr = yes; then
7612 cat >>confdefs.h <<_ACEOF
7613 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
7614 _ACEOF
7618 echo "$as_me:$LINENO: checking for struct ifreq.ifr_netmask" >&5
7619 echo $ECHO_N "checking for struct ifreq.ifr_netmask... $ECHO_C" >&6
7620 if test "${ac_cv_member_struct_ifreq_ifr_netmask+set}" = set; then
7621 echo $ECHO_N "(cached) $ECHO_C" >&6
7622 else
7623 cat >conftest.$ac_ext <<_ACEOF
7624 /* confdefs.h. */
7625 _ACEOF
7626 cat confdefs.h >>conftest.$ac_ext
7627 cat >>conftest.$ac_ext <<_ACEOF
7628 /* end confdefs.h. */
7629 $ac_includes_default
7630 #if HAVE_SYS_SOCKET_H
7631 #include <sys/socket.h>
7632 #endif
7633 #if HAVE_NET_IF_H
7634 #include <net/if.h>
7635 #endif
7638 main ()
7640 static struct ifreq ac_aggr;
7641 if (ac_aggr.ifr_netmask)
7642 return 0;
7644 return 0;
7646 _ACEOF
7647 rm -f conftest.$ac_objext
7648 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7649 (eval $ac_compile) 2>conftest.er1
7650 ac_status=$?
7651 grep -v '^ *+' conftest.er1 >conftest.err
7652 rm -f conftest.er1
7653 cat conftest.err >&5
7654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7655 (exit $ac_status); } &&
7656 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7658 (eval $ac_try) 2>&5
7659 ac_status=$?
7660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7661 (exit $ac_status); }; } &&
7662 { ac_try='test -s conftest.$ac_objext'
7663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7664 (eval $ac_try) 2>&5
7665 ac_status=$?
7666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7667 (exit $ac_status); }; }; then
7668 ac_cv_member_struct_ifreq_ifr_netmask=yes
7669 else
7670 echo "$as_me: failed program was:" >&5
7671 sed 's/^/| /' conftest.$ac_ext >&5
7673 cat >conftest.$ac_ext <<_ACEOF
7674 /* confdefs.h. */
7675 _ACEOF
7676 cat confdefs.h >>conftest.$ac_ext
7677 cat >>conftest.$ac_ext <<_ACEOF
7678 /* end confdefs.h. */
7679 $ac_includes_default
7680 #if HAVE_SYS_SOCKET_H
7681 #include <sys/socket.h>
7682 #endif
7683 #if HAVE_NET_IF_H
7684 #include <net/if.h>
7685 #endif
7688 main ()
7690 static struct ifreq ac_aggr;
7691 if (sizeof ac_aggr.ifr_netmask)
7692 return 0;
7694 return 0;
7696 _ACEOF
7697 rm -f conftest.$ac_objext
7698 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7699 (eval $ac_compile) 2>conftest.er1
7700 ac_status=$?
7701 grep -v '^ *+' conftest.er1 >conftest.err
7702 rm -f conftest.er1
7703 cat conftest.err >&5
7704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7705 (exit $ac_status); } &&
7706 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7708 (eval $ac_try) 2>&5
7709 ac_status=$?
7710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7711 (exit $ac_status); }; } &&
7712 { ac_try='test -s conftest.$ac_objext'
7713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7714 (eval $ac_try) 2>&5
7715 ac_status=$?
7716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7717 (exit $ac_status); }; }; then
7718 ac_cv_member_struct_ifreq_ifr_netmask=yes
7719 else
7720 echo "$as_me: failed program was:" >&5
7721 sed 's/^/| /' conftest.$ac_ext >&5
7723 ac_cv_member_struct_ifreq_ifr_netmask=no
7725 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7727 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7729 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_netmask" >&5
7730 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_netmask" >&6
7731 if test $ac_cv_member_struct_ifreq_ifr_netmask = yes; then
7733 cat >>confdefs.h <<_ACEOF
7734 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
7735 _ACEOF
7739 echo "$as_me:$LINENO: checking for struct ifreq.ifr_broadaddr" >&5
7740 echo $ECHO_N "checking for struct ifreq.ifr_broadaddr... $ECHO_C" >&6
7741 if test "${ac_cv_member_struct_ifreq_ifr_broadaddr+set}" = set; then
7742 echo $ECHO_N "(cached) $ECHO_C" >&6
7743 else
7744 cat >conftest.$ac_ext <<_ACEOF
7745 /* confdefs.h. */
7746 _ACEOF
7747 cat confdefs.h >>conftest.$ac_ext
7748 cat >>conftest.$ac_ext <<_ACEOF
7749 /* end confdefs.h. */
7750 $ac_includes_default
7751 #if HAVE_SYS_SOCKET_H
7752 #include <sys/socket.h>
7753 #endif
7754 #if HAVE_NET_IF_H
7755 #include <net/if.h>
7756 #endif
7759 main ()
7761 static struct ifreq ac_aggr;
7762 if (ac_aggr.ifr_broadaddr)
7763 return 0;
7765 return 0;
7767 _ACEOF
7768 rm -f conftest.$ac_objext
7769 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7770 (eval $ac_compile) 2>conftest.er1
7771 ac_status=$?
7772 grep -v '^ *+' conftest.er1 >conftest.err
7773 rm -f conftest.er1
7774 cat conftest.err >&5
7775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7776 (exit $ac_status); } &&
7777 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7779 (eval $ac_try) 2>&5
7780 ac_status=$?
7781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7782 (exit $ac_status); }; } &&
7783 { ac_try='test -s conftest.$ac_objext'
7784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7785 (eval $ac_try) 2>&5
7786 ac_status=$?
7787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7788 (exit $ac_status); }; }; then
7789 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
7790 else
7791 echo "$as_me: failed program was:" >&5
7792 sed 's/^/| /' conftest.$ac_ext >&5
7794 cat >conftest.$ac_ext <<_ACEOF
7795 /* confdefs.h. */
7796 _ACEOF
7797 cat confdefs.h >>conftest.$ac_ext
7798 cat >>conftest.$ac_ext <<_ACEOF
7799 /* end confdefs.h. */
7800 $ac_includes_default
7801 #if HAVE_SYS_SOCKET_H
7802 #include <sys/socket.h>
7803 #endif
7804 #if HAVE_NET_IF_H
7805 #include <net/if.h>
7806 #endif
7809 main ()
7811 static struct ifreq ac_aggr;
7812 if (sizeof ac_aggr.ifr_broadaddr)
7813 return 0;
7815 return 0;
7817 _ACEOF
7818 rm -f conftest.$ac_objext
7819 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7820 (eval $ac_compile) 2>conftest.er1
7821 ac_status=$?
7822 grep -v '^ *+' conftest.er1 >conftest.err
7823 rm -f conftest.er1
7824 cat conftest.err >&5
7825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7826 (exit $ac_status); } &&
7827 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7829 (eval $ac_try) 2>&5
7830 ac_status=$?
7831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7832 (exit $ac_status); }; } &&
7833 { ac_try='test -s conftest.$ac_objext'
7834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7835 (eval $ac_try) 2>&5
7836 ac_status=$?
7837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7838 (exit $ac_status); }; }; then
7839 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
7840 else
7841 echo "$as_me: failed program was:" >&5
7842 sed 's/^/| /' conftest.$ac_ext >&5
7844 ac_cv_member_struct_ifreq_ifr_broadaddr=no
7846 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7848 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7850 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_broadaddr" >&5
7851 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_broadaddr" >&6
7852 if test $ac_cv_member_struct_ifreq_ifr_broadaddr = yes; then
7854 cat >>confdefs.h <<_ACEOF
7855 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
7856 _ACEOF
7860 echo "$as_me:$LINENO: checking for struct ifreq.ifr_addr" >&5
7861 echo $ECHO_N "checking for struct ifreq.ifr_addr... $ECHO_C" >&6
7862 if test "${ac_cv_member_struct_ifreq_ifr_addr+set}" = set; then
7863 echo $ECHO_N "(cached) $ECHO_C" >&6
7864 else
7865 cat >conftest.$ac_ext <<_ACEOF
7866 /* confdefs.h. */
7867 _ACEOF
7868 cat confdefs.h >>conftest.$ac_ext
7869 cat >>conftest.$ac_ext <<_ACEOF
7870 /* end confdefs.h. */
7871 $ac_includes_default
7872 #if HAVE_SYS_SOCKET_H
7873 #include <sys/socket.h>
7874 #endif
7875 #if HAVE_NET_IF_H
7876 #include <net/if.h>
7877 #endif
7880 main ()
7882 static struct ifreq ac_aggr;
7883 if (ac_aggr.ifr_addr)
7884 return 0;
7886 return 0;
7888 _ACEOF
7889 rm -f conftest.$ac_objext
7890 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7891 (eval $ac_compile) 2>conftest.er1
7892 ac_status=$?
7893 grep -v '^ *+' conftest.er1 >conftest.err
7894 rm -f conftest.er1
7895 cat conftest.err >&5
7896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7897 (exit $ac_status); } &&
7898 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7900 (eval $ac_try) 2>&5
7901 ac_status=$?
7902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7903 (exit $ac_status); }; } &&
7904 { ac_try='test -s conftest.$ac_objext'
7905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7906 (eval $ac_try) 2>&5
7907 ac_status=$?
7908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7909 (exit $ac_status); }; }; then
7910 ac_cv_member_struct_ifreq_ifr_addr=yes
7911 else
7912 echo "$as_me: failed program was:" >&5
7913 sed 's/^/| /' conftest.$ac_ext >&5
7915 cat >conftest.$ac_ext <<_ACEOF
7916 /* confdefs.h. */
7917 _ACEOF
7918 cat confdefs.h >>conftest.$ac_ext
7919 cat >>conftest.$ac_ext <<_ACEOF
7920 /* end confdefs.h. */
7921 $ac_includes_default
7922 #if HAVE_SYS_SOCKET_H
7923 #include <sys/socket.h>
7924 #endif
7925 #if HAVE_NET_IF_H
7926 #include <net/if.h>
7927 #endif
7930 main ()
7932 static struct ifreq ac_aggr;
7933 if (sizeof ac_aggr.ifr_addr)
7934 return 0;
7936 return 0;
7938 _ACEOF
7939 rm -f conftest.$ac_objext
7940 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7941 (eval $ac_compile) 2>conftest.er1
7942 ac_status=$?
7943 grep -v '^ *+' conftest.er1 >conftest.err
7944 rm -f conftest.er1
7945 cat conftest.err >&5
7946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7947 (exit $ac_status); } &&
7948 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7950 (eval $ac_try) 2>&5
7951 ac_status=$?
7952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7953 (exit $ac_status); }; } &&
7954 { ac_try='test -s conftest.$ac_objext'
7955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7956 (eval $ac_try) 2>&5
7957 ac_status=$?
7958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7959 (exit $ac_status); }; }; then
7960 ac_cv_member_struct_ifreq_ifr_addr=yes
7961 else
7962 echo "$as_me: failed program was:" >&5
7963 sed 's/^/| /' conftest.$ac_ext >&5
7965 ac_cv_member_struct_ifreq_ifr_addr=no
7967 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7969 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7971 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_addr" >&5
7972 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_addr" >&6
7973 if test $ac_cv_member_struct_ifreq_ifr_addr = yes; then
7975 cat >>confdefs.h <<_ACEOF
7976 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
7977 _ACEOF
7984 echo "$as_me:$LINENO: checking for function prototypes" >&5
7985 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
7986 if test "$ac_cv_prog_cc_stdc" != no; then
7987 echo "$as_me:$LINENO: result: yes" >&5
7988 echo "${ECHO_T}yes" >&6
7990 cat >>confdefs.h <<\_ACEOF
7991 #define PROTOTYPES 1
7992 _ACEOF
7995 cat >>confdefs.h <<\_ACEOF
7996 #define __PROTOTYPES 1
7997 _ACEOF
7999 else
8000 echo "$as_me:$LINENO: result: no" >&5
8001 echo "${ECHO_T}no" >&6
8004 echo "$as_me:$LINENO: checking for working volatile" >&5
8005 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
8006 if test "${ac_cv_c_volatile+set}" = set; then
8007 echo $ECHO_N "(cached) $ECHO_C" >&6
8008 else
8009 cat >conftest.$ac_ext <<_ACEOF
8010 /* confdefs.h. */
8011 _ACEOF
8012 cat confdefs.h >>conftest.$ac_ext
8013 cat >>conftest.$ac_ext <<_ACEOF
8014 /* end confdefs.h. */
8017 main ()
8020 volatile int x;
8021 int * volatile y;
8023 return 0;
8025 _ACEOF
8026 rm -f conftest.$ac_objext
8027 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8028 (eval $ac_compile) 2>conftest.er1
8029 ac_status=$?
8030 grep -v '^ *+' conftest.er1 >conftest.err
8031 rm -f conftest.er1
8032 cat conftest.err >&5
8033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8034 (exit $ac_status); } &&
8035 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8037 (eval $ac_try) 2>&5
8038 ac_status=$?
8039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8040 (exit $ac_status); }; } &&
8041 { ac_try='test -s conftest.$ac_objext'
8042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8043 (eval $ac_try) 2>&5
8044 ac_status=$?
8045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8046 (exit $ac_status); }; }; then
8047 ac_cv_c_volatile=yes
8048 else
8049 echo "$as_me: failed program was:" >&5
8050 sed 's/^/| /' conftest.$ac_ext >&5
8052 ac_cv_c_volatile=no
8054 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8056 echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
8057 echo "${ECHO_T}$ac_cv_c_volatile" >&6
8058 if test $ac_cv_c_volatile = no; then
8060 cat >>confdefs.h <<\_ACEOF
8061 #define volatile
8062 _ACEOF
8066 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8067 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
8068 if test "${ac_cv_c_const+set}" = set; then
8069 echo $ECHO_N "(cached) $ECHO_C" >&6
8070 else
8071 cat >conftest.$ac_ext <<_ACEOF
8072 /* confdefs.h. */
8073 _ACEOF
8074 cat confdefs.h >>conftest.$ac_ext
8075 cat >>conftest.$ac_ext <<_ACEOF
8076 /* end confdefs.h. */
8079 main ()
8081 /* FIXME: Include the comments suggested by Paul. */
8082 #ifndef __cplusplus
8083 /* Ultrix mips cc rejects this. */
8084 typedef int charset[2];
8085 const charset x;
8086 /* SunOS 4.1.1 cc rejects this. */
8087 char const *const *ccp;
8088 char **p;
8089 /* NEC SVR4.0.2 mips cc rejects this. */
8090 struct point {int x, y;};
8091 static struct point const zero = {0,0};
8092 /* AIX XL C 1.02.0.0 rejects this.
8093 It does not let you subtract one const X* pointer from another in
8094 an arm of an if-expression whose if-part is not a constant
8095 expression */
8096 const char *g = "string";
8097 ccp = &g + (g ? g-g : 0);
8098 /* HPUX 7.0 cc rejects these. */
8099 ++ccp;
8100 p = (char**) ccp;
8101 ccp = (char const *const *) p;
8102 { /* SCO 3.2v4 cc rejects this. */
8103 char *t;
8104 char const *s = 0 ? (char *) 0 : (char const *) 0;
8106 *t++ = 0;
8108 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8109 int x[] = {25, 17};
8110 const int *foo = &x[0];
8111 ++foo;
8113 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8114 typedef const int *iptr;
8115 iptr p = 0;
8116 ++p;
8118 { /* AIX XL C 1.02.0.0 rejects this saying
8119 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8120 struct s { int j; const int *ap[3]; };
8121 struct s *b; b->j = 5;
8123 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8124 const int foo = 10;
8126 #endif
8129 return 0;
8131 _ACEOF
8132 rm -f conftest.$ac_objext
8133 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8134 (eval $ac_compile) 2>conftest.er1
8135 ac_status=$?
8136 grep -v '^ *+' conftest.er1 >conftest.err
8137 rm -f conftest.er1
8138 cat conftest.err >&5
8139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8140 (exit $ac_status); } &&
8141 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8143 (eval $ac_try) 2>&5
8144 ac_status=$?
8145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8146 (exit $ac_status); }; } &&
8147 { ac_try='test -s conftest.$ac_objext'
8148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8149 (eval $ac_try) 2>&5
8150 ac_status=$?
8151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8152 (exit $ac_status); }; }; then
8153 ac_cv_c_const=yes
8154 else
8155 echo "$as_me: failed program was:" >&5
8156 sed 's/^/| /' conftest.$ac_ext >&5
8158 ac_cv_c_const=no
8160 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8162 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8163 echo "${ECHO_T}$ac_cv_c_const" >&6
8164 if test $ac_cv_c_const = no; then
8166 cat >>confdefs.h <<\_ACEOF
8167 #define const
8168 _ACEOF
8172 echo "$as_me:$LINENO: checking for void * support" >&5
8173 echo $ECHO_N "checking for void * support... $ECHO_C" >&6
8174 if test "${emacs_cv_void_star+set}" = set; then
8175 echo $ECHO_N "(cached) $ECHO_C" >&6
8176 else
8177 cat >conftest.$ac_ext <<_ACEOF
8178 /* confdefs.h. */
8179 _ACEOF
8180 cat confdefs.h >>conftest.$ac_ext
8181 cat >>conftest.$ac_ext <<_ACEOF
8182 /* end confdefs.h. */
8185 main ()
8187 void * foo;
8189 return 0;
8191 _ACEOF
8192 rm -f conftest.$ac_objext
8193 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8194 (eval $ac_compile) 2>conftest.er1
8195 ac_status=$?
8196 grep -v '^ *+' conftest.er1 >conftest.err
8197 rm -f conftest.er1
8198 cat conftest.err >&5
8199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8200 (exit $ac_status); } &&
8201 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8203 (eval $ac_try) 2>&5
8204 ac_status=$?
8205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8206 (exit $ac_status); }; } &&
8207 { ac_try='test -s conftest.$ac_objext'
8208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8209 (eval $ac_try) 2>&5
8210 ac_status=$?
8211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8212 (exit $ac_status); }; }; then
8213 emacs_cv_void_star=yes
8214 else
8215 echo "$as_me: failed program was:" >&5
8216 sed 's/^/| /' conftest.$ac_ext >&5
8218 emacs_cv_void_star=no
8220 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8222 echo "$as_me:$LINENO: result: $emacs_cv_void_star" >&5
8223 echo "${ECHO_T}$emacs_cv_void_star" >&6
8224 if test $emacs_cv_void_star = yes; then
8225 cat >>confdefs.h <<\_ACEOF
8226 #define POINTER_TYPE void
8227 _ACEOF
8229 else
8230 cat >>confdefs.h <<\_ACEOF
8231 #define POINTER_TYPE char
8232 _ACEOF
8240 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8241 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
8242 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
8243 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
8244 echo $ECHO_N "(cached) $ECHO_C" >&6
8245 else
8246 cat >conftest.make <<\_ACEOF
8247 all:
8248 @echo 'ac_maketemp="$(MAKE)"'
8249 _ACEOF
8250 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8251 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
8252 if test -n "$ac_maketemp"; then
8253 eval ac_cv_prog_make_${ac_make}_set=yes
8254 else
8255 eval ac_cv_prog_make_${ac_make}_set=no
8257 rm -f conftest.make
8259 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
8260 echo "$as_me:$LINENO: result: yes" >&5
8261 echo "${ECHO_T}yes" >&6
8262 SET_MAKE=
8263 else
8264 echo "$as_me:$LINENO: result: no" >&5
8265 echo "${ECHO_T}no" >&6
8266 SET_MAKE="MAKE=${MAKE-make}"
8270 echo "$as_me:$LINENO: checking for long file names" >&5
8271 echo $ECHO_N "checking for long file names... $ECHO_C" >&6
8272 if test "${ac_cv_sys_long_file_names+set}" = set; then
8273 echo $ECHO_N "(cached) $ECHO_C" >&6
8274 else
8275 ac_cv_sys_long_file_names=yes
8276 # Test for long file names in all the places we know might matter:
8277 # . the current directory, where building will happen
8278 # $prefix/lib where we will be installing things
8279 # $exec_prefix/lib likewise
8280 # eval it to expand exec_prefix.
8281 # $TMPDIR if set, where it might want to write temporary files
8282 # if $TMPDIR is not set:
8283 # /tmp where it might want to write temporary files
8284 # /var/tmp likewise
8285 # /usr/tmp likewise
8286 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
8287 ac_tmpdirs=$TMPDIR
8288 else
8289 ac_tmpdirs='/tmp /var/tmp /usr/tmp'
8291 for ac_dir in . $ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
8292 test -d $ac_dir || continue
8293 test -w $ac_dir || continue # It is less confusing to not echo anything here.
8294 ac_xdir=$ac_dir/cf$$
8295 (umask 077 && mkdir $ac_xdir 2>/dev/null) || continue
8296 ac_tf1=$ac_xdir/conftest9012345
8297 ac_tf2=$ac_xdir/conftest9012346
8298 (echo 1 >$ac_tf1) 2>/dev/null
8299 (echo 2 >$ac_tf2) 2>/dev/null
8300 ac_val=`cat $ac_tf1 2>/dev/null`
8301 if test ! -f $ac_tf1 || test "$ac_val" != 1; then
8302 ac_cv_sys_long_file_names=no
8303 rm -rf $ac_xdir 2>/dev/null
8304 break
8306 rm -rf $ac_xdir 2>/dev/null
8307 done
8309 echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
8310 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6
8311 if test $ac_cv_sys_long_file_names = yes; then
8313 cat >>confdefs.h <<\_ACEOF
8314 #define HAVE_LONG_FILE_NAMES 1
8315 _ACEOF
8320 #### Choose a window system.
8322 echo "$as_me:$LINENO: checking for X" >&5
8323 echo $ECHO_N "checking for X... $ECHO_C" >&6
8325 ac_path_x_has_been_run=yes
8327 # Check whether --with-x or --without-x was given.
8328 if test "${with_x+set}" = set; then
8329 withval="$with_x"
8332 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
8333 if test "x$with_x" = xno; then
8334 # The user explicitly disabled X.
8335 have_x=disabled
8336 else
8337 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
8338 # Both variables are already set.
8339 have_x=yes
8340 else
8341 if test "${ac_cv_have_x+set}" = set; then
8342 echo $ECHO_N "(cached) $ECHO_C" >&6
8343 else
8344 # One or both of the vars are not set, and there is no cached value.
8345 ac_x_includes=no ac_x_libraries=no
8346 rm -fr conftest.dir
8347 if mkdir conftest.dir; then
8348 cd conftest.dir
8349 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
8350 cat >Imakefile <<'_ACEOF'
8351 acfindx:
8352 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
8353 _ACEOF
8354 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
8355 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8356 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
8357 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
8358 for ac_extension in a so sl; do
8359 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
8360 test -f $ac_im_libdir/libX11.$ac_extension; then
8361 ac_im_usrlibdir=$ac_im_libdir; break
8363 done
8364 # Screen out bogus values from the imake configuration. They are
8365 # bogus both because they are the default anyway, and because
8366 # using them would break gcc on systems where it needs fixed includes.
8367 case $ac_im_incroot in
8368 /usr/include) ;;
8369 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
8370 esac
8371 case $ac_im_usrlibdir in
8372 /usr/lib | /lib) ;;
8373 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
8374 esac
8376 cd ..
8377 rm -fr conftest.dir
8380 # Standard set of common directories for X headers.
8381 # Check X11 before X11Rn because it is often a symlink to the current release.
8382 ac_x_header_dirs='
8383 /usr/X11/include
8384 /usr/X11R6/include
8385 /usr/X11R5/include
8386 /usr/X11R4/include
8388 /usr/include/X11
8389 /usr/include/X11R6
8390 /usr/include/X11R5
8391 /usr/include/X11R4
8393 /usr/local/X11/include
8394 /usr/local/X11R6/include
8395 /usr/local/X11R5/include
8396 /usr/local/X11R4/include
8398 /usr/local/include/X11
8399 /usr/local/include/X11R6
8400 /usr/local/include/X11R5
8401 /usr/local/include/X11R4
8403 /usr/X386/include
8404 /usr/x386/include
8405 /usr/XFree86/include/X11
8407 /usr/include
8408 /usr/local/include
8409 /usr/unsupported/include
8410 /usr/athena/include
8411 /usr/local/x11r5/include
8412 /usr/lpp/Xamples/include
8414 /usr/openwin/include
8415 /usr/openwin/share/include'
8417 if test "$ac_x_includes" = no; then
8418 # Guess where to find include files, by looking for a specified header file.
8419 # First, try using that file with no special directory specified.
8420 cat >conftest.$ac_ext <<_ACEOF
8421 /* confdefs.h. */
8422 _ACEOF
8423 cat confdefs.h >>conftest.$ac_ext
8424 cat >>conftest.$ac_ext <<_ACEOF
8425 /* end confdefs.h. */
8426 #include <X11/Xlib.h>
8427 _ACEOF
8428 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8429 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8430 ac_status=$?
8431 grep -v '^ *+' conftest.er1 >conftest.err
8432 rm -f conftest.er1
8433 cat conftest.err >&5
8434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8435 (exit $ac_status); } >/dev/null; then
8436 if test -s conftest.err; then
8437 ac_cpp_err=$ac_c_preproc_warn_flag
8438 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8439 else
8440 ac_cpp_err=
8442 else
8443 ac_cpp_err=yes
8445 if test -z "$ac_cpp_err"; then
8446 # We can compile using X headers with no special include directory.
8447 ac_x_includes=
8448 else
8449 echo "$as_me: failed program was:" >&5
8450 sed 's/^/| /' conftest.$ac_ext >&5
8452 for ac_dir in $ac_x_header_dirs; do
8453 if test -r "$ac_dir/X11/Xlib.h"; then
8454 ac_x_includes=$ac_dir
8455 break
8457 done
8459 rm -f conftest.err conftest.$ac_ext
8460 fi # $ac_x_includes = no
8462 if test "$ac_x_libraries" = no; then
8463 # Check for the libraries.
8464 # See if we find them without any special options.
8465 # Don't add to $LIBS permanently.
8466 ac_save_LIBS=$LIBS
8467 LIBS="-lX11 $LIBS"
8468 cat >conftest.$ac_ext <<_ACEOF
8469 /* confdefs.h. */
8470 _ACEOF
8471 cat confdefs.h >>conftest.$ac_ext
8472 cat >>conftest.$ac_ext <<_ACEOF
8473 /* end confdefs.h. */
8474 #include <X11/Xlib.h>
8476 main ()
8478 XrmInitialize ()
8480 return 0;
8482 _ACEOF
8483 rm -f conftest.$ac_objext conftest$ac_exeext
8484 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8485 (eval $ac_link) 2>conftest.er1
8486 ac_status=$?
8487 grep -v '^ *+' conftest.er1 >conftest.err
8488 rm -f conftest.er1
8489 cat conftest.err >&5
8490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8491 (exit $ac_status); } &&
8492 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8494 (eval $ac_try) 2>&5
8495 ac_status=$?
8496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8497 (exit $ac_status); }; } &&
8498 { ac_try='test -s conftest$ac_exeext'
8499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8500 (eval $ac_try) 2>&5
8501 ac_status=$?
8502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8503 (exit $ac_status); }; }; then
8504 LIBS=$ac_save_LIBS
8505 # We can link X programs with no special library path.
8506 ac_x_libraries=
8507 else
8508 echo "$as_me: failed program was:" >&5
8509 sed 's/^/| /' conftest.$ac_ext >&5
8511 LIBS=$ac_save_LIBS
8512 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
8514 # Don't even attempt the hair of trying to link an X program!
8515 for ac_extension in a so sl; do
8516 if test -r $ac_dir/libX11.$ac_extension; then
8517 ac_x_libraries=$ac_dir
8518 break 2
8520 done
8521 done
8523 rm -f conftest.err conftest.$ac_objext \
8524 conftest$ac_exeext conftest.$ac_ext
8525 fi # $ac_x_libraries = no
8527 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
8528 # Didn't find X anywhere. Cache the known absence of X.
8529 ac_cv_have_x="have_x=no"
8530 else
8531 # Record where we found X for the cache.
8532 ac_cv_have_x="have_x=yes \
8533 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
8538 eval "$ac_cv_have_x"
8539 fi # $with_x != no
8541 if test "$have_x" != yes; then
8542 echo "$as_me:$LINENO: result: $have_x" >&5
8543 echo "${ECHO_T}$have_x" >&6
8544 no_x=yes
8545 else
8546 # If each of the values was on the command line, it overrides each guess.
8547 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
8548 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
8549 # Update the cache value to reflect the command line values.
8550 ac_cv_have_x="have_x=yes \
8551 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
8552 # It might be that x_includes is empty (headers are found in the
8553 # standard search path. Then output the corresponding message
8554 ac_out_x_includes=$x_includes
8555 test "x$x_includes" = x && ac_out_x_includes="in standard search path"
8556 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $ac_out_x_includes" >&5
8557 echo "${ECHO_T}libraries $x_libraries, headers $ac_out_x_includes" >&6
8560 if test "$no_x" = yes; then
8561 window_system=none
8562 else
8563 window_system=x11
8566 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
8567 LD_SWITCH_X_SITE=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
8568 LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
8569 x_default_search_path=""
8570 for x_library in `echo ${x_libraries} | sed -e "s/:/ /g"`; do
8571 x_search_path="\
8572 ${x_library}/X11/%L/%T/%N%C%S:\
8573 ${x_library}/X11/%l/%T/%N%C%S:\
8574 ${x_library}/X11/%T/%N%C%S:\
8575 ${x_library}/X11/%L/%T/%N%S:\
8576 ${x_library}/X11/%l/%T/%N%S:\
8577 ${x_library}/X11/%T/%N%S"
8578 if test x"${x_default_search_path}" = x; then
8579 x_default_search_path=${x_search_path}
8580 else
8581 x_default_search_path="${x_search_path}:${x_default_search_path}"
8583 done
8585 if test "${x_includes}" != NONE && test -n "${x_includes}"; then
8586 C_SWITCH_X_SITE=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
8589 if test x"${x_includes}" = x; then
8590 bitmapdir=/usr/include/X11/bitmaps
8591 else
8592 # accumulate include directories that have X11 bitmap subdirectories
8593 bmd_acc="dummyval"
8594 for bmd in `echo ${x_includes} | sed -e "s/:/ /g"`; do
8595 if test -d "${bmd}/X11/bitmaps"; then
8596 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
8598 if test -d "${bmd}/bitmaps"; then
8599 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
8601 done
8602 if test ${bmd_acc} != "dummyval"; then
8603 bitmapdir=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
8607 HAVE_CARBON=no
8608 if test "${with_carbon}" != no; then
8609 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
8610 echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
8611 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6
8612 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
8613 echo $ECHO_N "(cached) $ECHO_C" >&6
8615 echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
8616 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6
8617 else
8618 # Is the header compilable?
8619 echo "$as_me:$LINENO: checking Carbon/Carbon.h usability" >&5
8620 echo $ECHO_N "checking Carbon/Carbon.h usability... $ECHO_C" >&6
8621 cat >conftest.$ac_ext <<_ACEOF
8622 /* confdefs.h. */
8623 _ACEOF
8624 cat confdefs.h >>conftest.$ac_ext
8625 cat >>conftest.$ac_ext <<_ACEOF
8626 /* end confdefs.h. */
8627 $ac_includes_default
8628 #include <Carbon/Carbon.h>
8629 _ACEOF
8630 rm -f conftest.$ac_objext
8631 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8632 (eval $ac_compile) 2>conftest.er1
8633 ac_status=$?
8634 grep -v '^ *+' conftest.er1 >conftest.err
8635 rm -f conftest.er1
8636 cat conftest.err >&5
8637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8638 (exit $ac_status); } &&
8639 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8641 (eval $ac_try) 2>&5
8642 ac_status=$?
8643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8644 (exit $ac_status); }; } &&
8645 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
8651 ac_header_compiler=yes
8652 else
8653 echo "$as_me: failed program was:" >&5
8654 sed 's/^/| /' conftest.$ac_ext >&5
8656 ac_header_compiler=no
8658 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8659 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8660 echo "${ECHO_T}$ac_header_compiler" >&6
8662 # Is the header present?
8663 echo "$as_me:$LINENO: checking Carbon/Carbon.h presence" >&5
8664 echo $ECHO_N "checking Carbon/Carbon.h presence... $ECHO_C" >&6
8665 cat >conftest.$ac_ext <<_ACEOF
8666 /* confdefs.h. */
8667 _ACEOF
8668 cat confdefs.h >>conftest.$ac_ext
8669 cat >>conftest.$ac_ext <<_ACEOF
8670 /* end confdefs.h. */
8671 #include <Carbon/Carbon.h>
8672 _ACEOF
8673 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8674 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8675 ac_status=$?
8676 grep -v '^ *+' conftest.er1 >conftest.err
8677 rm -f conftest.er1
8678 cat conftest.err >&5
8679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8680 (exit $ac_status); } >/dev/null; then
8681 if test -s conftest.err; then
8682 ac_cpp_err=$ac_c_preproc_warn_flag
8683 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8684 else
8685 ac_cpp_err=
8687 else
8688 ac_cpp_err=yes
8690 if test -z "$ac_cpp_err"; then
8691 ac_header_preproc=yes
8692 else
8693 echo "$as_me: failed program was:" >&5
8694 sed 's/^/| /' conftest.$ac_ext >&5
8696 ac_header_preproc=no
8698 rm -f conftest.err conftest.$ac_ext
8699 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8700 echo "${ECHO_T}$ac_header_preproc" >&6
8702 # So? What about this header?
8703 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8704 yes:no: )
8705 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&5
8706 echo "$as_me: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8707 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&5
8708 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&2;}
8709 ac_header_preproc=yes
8711 no:yes:* )
8712 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&5
8713 echo "$as_me: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&2;}
8714 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&5
8715 echo "$as_me: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&2;}
8716 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&5
8717 echo "$as_me: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&2;}
8718 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&5
8719 echo "$as_me: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&2;}
8720 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5
8721 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;}
8722 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&5
8723 echo "$as_me: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&2;}
8725 cat <<\_ASBOX
8726 ## ------------------------------------------ ##
8727 ## Report this to the AC_PACKAGE_NAME lists. ##
8728 ## ------------------------------------------ ##
8729 _ASBOX
8731 sed "s/^/$as_me: WARNING: /" >&2
8733 esac
8734 echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
8735 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6
8736 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
8737 echo $ECHO_N "(cached) $ECHO_C" >&6
8738 else
8739 ac_cv_header_Carbon_Carbon_h=$ac_header_preproc
8741 echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
8742 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6
8745 if test $ac_cv_header_Carbon_Carbon_h = yes; then
8746 HAVE_CARBON=yes
8751 if test "${window_system}" = x11 && test "${HAVE_CARBON}" = yes; then
8752 if test "${with_carbon+set}" != set \
8753 && test "${carbon_appdir_x+set}" != set; then
8754 HAVE_CARBON=no
8757 if test "${HAVE_CARBON}" = yes; then
8758 window_system=mac
8761 case "${window_system}" in
8762 x11 )
8763 HAVE_X_WINDOWS=yes
8764 HAVE_X11=yes
8765 case "${with_x_toolkit}" in
8766 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
8767 motif ) USE_X_TOOLKIT=MOTIF ;;
8768 gtk ) with_gtk=yes
8769 USE_X_TOOLKIT=none ;;
8770 no ) USE_X_TOOLKIT=none ;;
8771 * ) USE_X_TOOLKIT=maybe ;;
8772 esac
8774 mac | none )
8775 HAVE_X_WINDOWS=no
8776 HAVE_X11=no
8777 USE_X_TOOLKIT=none
8779 esac
8781 ### If we're using X11, we should use the X menu package.
8782 HAVE_MENUS=no
8783 case ${HAVE_X11} in
8784 yes ) HAVE_MENUS=yes ;;
8785 esac
8787 if test "${opsys}" = "hpux9"; then
8788 case "${x_libraries}" in
8789 *X11R4* )
8790 opsysfile="s/hpux9-x11r4.h"
8792 esac
8795 if test "${opsys}" = "hpux9shr"; then
8796 case "${x_libraries}" in
8797 *X11R4* )
8798 opsysfile="s/hpux9shxr4.h"
8800 esac
8803 ### Compute the unexec source name from the object name.
8804 UNEXEC_SRC="`echo ${unexec} | sed 's/\.o/.c/'`"
8806 # Do the opsystem or machine files prohibit the use of the GNU malloc?
8807 # Assume not, until told otherwise.
8808 GNU_MALLOC=yes
8809 doug_lea_malloc=yes
8810 echo "$as_me:$LINENO: checking for malloc_get_state" >&5
8811 echo $ECHO_N "checking for malloc_get_state... $ECHO_C" >&6
8812 if test "${ac_cv_func_malloc_get_state+set}" = set; then
8813 echo $ECHO_N "(cached) $ECHO_C" >&6
8814 else
8815 cat >conftest.$ac_ext <<_ACEOF
8816 /* confdefs.h. */
8817 _ACEOF
8818 cat confdefs.h >>conftest.$ac_ext
8819 cat >>conftest.$ac_ext <<_ACEOF
8820 /* end confdefs.h. */
8821 /* Define malloc_get_state to an innocuous variant, in case <limits.h> declares malloc_get_state.
8822 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8823 #define malloc_get_state innocuous_malloc_get_state
8825 /* System header to define __stub macros and hopefully few prototypes,
8826 which can conflict with char malloc_get_state (); below.
8827 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8828 <limits.h> exists even on freestanding compilers. */
8830 #ifdef __STDC__
8831 # include <limits.h>
8832 #else
8833 # include <assert.h>
8834 #endif
8836 #undef malloc_get_state
8838 /* Override any gcc2 internal prototype to avoid an error. */
8839 #ifdef __cplusplus
8840 extern "C"
8842 #endif
8843 /* We use char because int might match the return type of a gcc2
8844 builtin and then its argument prototype would still apply. */
8845 char malloc_get_state ();
8846 /* The GNU C library defines this for functions which it implements
8847 to always fail with ENOSYS. Some functions are actually named
8848 something starting with __ and the normal name is an alias. */
8849 #if defined (__stub_malloc_get_state) || defined (__stub___malloc_get_state)
8850 choke me
8851 #else
8852 char (*f) () = malloc_get_state;
8853 #endif
8854 #ifdef __cplusplus
8856 #endif
8859 main ()
8861 return f != malloc_get_state;
8863 return 0;
8865 _ACEOF
8866 rm -f conftest.$ac_objext conftest$ac_exeext
8867 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8868 (eval $ac_link) 2>conftest.er1
8869 ac_status=$?
8870 grep -v '^ *+' conftest.er1 >conftest.err
8871 rm -f conftest.er1
8872 cat conftest.err >&5
8873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8874 (exit $ac_status); } &&
8875 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8877 (eval $ac_try) 2>&5
8878 ac_status=$?
8879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8880 (exit $ac_status); }; } &&
8881 { ac_try='test -s conftest$ac_exeext'
8882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8883 (eval $ac_try) 2>&5
8884 ac_status=$?
8885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8886 (exit $ac_status); }; }; then
8887 ac_cv_func_malloc_get_state=yes
8888 else
8889 echo "$as_me: failed program was:" >&5
8890 sed 's/^/| /' conftest.$ac_ext >&5
8892 ac_cv_func_malloc_get_state=no
8894 rm -f conftest.err conftest.$ac_objext \
8895 conftest$ac_exeext conftest.$ac_ext
8897 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_get_state" >&5
8898 echo "${ECHO_T}$ac_cv_func_malloc_get_state" >&6
8899 if test $ac_cv_func_malloc_get_state = yes; then
8901 else
8902 doug_lea_malloc=no
8905 echo "$as_me:$LINENO: checking for malloc_set_state" >&5
8906 echo $ECHO_N "checking for malloc_set_state... $ECHO_C" >&6
8907 if test "${ac_cv_func_malloc_set_state+set}" = set; then
8908 echo $ECHO_N "(cached) $ECHO_C" >&6
8909 else
8910 cat >conftest.$ac_ext <<_ACEOF
8911 /* confdefs.h. */
8912 _ACEOF
8913 cat confdefs.h >>conftest.$ac_ext
8914 cat >>conftest.$ac_ext <<_ACEOF
8915 /* end confdefs.h. */
8916 /* Define malloc_set_state to an innocuous variant, in case <limits.h> declares malloc_set_state.
8917 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8918 #define malloc_set_state innocuous_malloc_set_state
8920 /* System header to define __stub macros and hopefully few prototypes,
8921 which can conflict with char malloc_set_state (); below.
8922 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8923 <limits.h> exists even on freestanding compilers. */
8925 #ifdef __STDC__
8926 # include <limits.h>
8927 #else
8928 # include <assert.h>
8929 #endif
8931 #undef malloc_set_state
8933 /* Override any gcc2 internal prototype to avoid an error. */
8934 #ifdef __cplusplus
8935 extern "C"
8937 #endif
8938 /* We use char because int might match the return type of a gcc2
8939 builtin and then its argument prototype would still apply. */
8940 char malloc_set_state ();
8941 /* The GNU C library defines this for functions which it implements
8942 to always fail with ENOSYS. Some functions are actually named
8943 something starting with __ and the normal name is an alias. */
8944 #if defined (__stub_malloc_set_state) || defined (__stub___malloc_set_state)
8945 choke me
8946 #else
8947 char (*f) () = malloc_set_state;
8948 #endif
8949 #ifdef __cplusplus
8951 #endif
8954 main ()
8956 return f != malloc_set_state;
8958 return 0;
8960 _ACEOF
8961 rm -f conftest.$ac_objext conftest$ac_exeext
8962 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8963 (eval $ac_link) 2>conftest.er1
8964 ac_status=$?
8965 grep -v '^ *+' conftest.er1 >conftest.err
8966 rm -f conftest.er1
8967 cat conftest.err >&5
8968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8969 (exit $ac_status); } &&
8970 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8972 (eval $ac_try) 2>&5
8973 ac_status=$?
8974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8975 (exit $ac_status); }; } &&
8976 { ac_try='test -s conftest$ac_exeext'
8977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8978 (eval $ac_try) 2>&5
8979 ac_status=$?
8980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8981 (exit $ac_status); }; }; then
8982 ac_cv_func_malloc_set_state=yes
8983 else
8984 echo "$as_me: failed program was:" >&5
8985 sed 's/^/| /' conftest.$ac_ext >&5
8987 ac_cv_func_malloc_set_state=no
8989 rm -f conftest.err conftest.$ac_objext \
8990 conftest$ac_exeext conftest.$ac_ext
8992 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_set_state" >&5
8993 echo "${ECHO_T}$ac_cv_func_malloc_set_state" >&6
8994 if test $ac_cv_func_malloc_set_state = yes; then
8996 else
8997 doug_lea_malloc=no
9000 echo "$as_me:$LINENO: checking whether __after_morecore_hook exists" >&5
9001 echo $ECHO_N "checking whether __after_morecore_hook exists... $ECHO_C" >&6
9002 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then
9003 echo $ECHO_N "(cached) $ECHO_C" >&6
9004 else
9005 cat >conftest.$ac_ext <<_ACEOF
9006 /* confdefs.h. */
9007 _ACEOF
9008 cat confdefs.h >>conftest.$ac_ext
9009 cat >>conftest.$ac_ext <<_ACEOF
9010 /* end confdefs.h. */
9011 extern void (* __after_morecore_hook)();
9013 main ()
9015 __after_morecore_hook = 0
9017 return 0;
9019 _ACEOF
9020 rm -f conftest.$ac_objext conftest$ac_exeext
9021 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9022 (eval $ac_link) 2>conftest.er1
9023 ac_status=$?
9024 grep -v '^ *+' conftest.er1 >conftest.err
9025 rm -f conftest.er1
9026 cat conftest.err >&5
9027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9028 (exit $ac_status); } &&
9029 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9031 (eval $ac_try) 2>&5
9032 ac_status=$?
9033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9034 (exit $ac_status); }; } &&
9035 { ac_try='test -s conftest$ac_exeext'
9036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9037 (eval $ac_try) 2>&5
9038 ac_status=$?
9039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9040 (exit $ac_status); }; }; then
9041 emacs_cv_var___after_morecore_hook=yes
9042 else
9043 echo "$as_me: failed program was:" >&5
9044 sed 's/^/| /' conftest.$ac_ext >&5
9046 emacs_cv_var___after_morecore_hook=no
9048 rm -f conftest.err conftest.$ac_objext \
9049 conftest$ac_exeext conftest.$ac_ext
9051 echo "$as_me:$LINENO: result: $emacs_cv_var___after_morecore_hook" >&5
9052 echo "${ECHO_T}$emacs_cv_var___after_morecore_hook" >&6
9053 if test $emacs_cv_var___after_morecore_hook = no; then
9054 doug_lea_malloc=no
9056 if test "${system_malloc}" = "yes"; then
9057 GNU_MALLOC=no
9058 GNU_MALLOC_reason="
9059 (The GNU allocators don't work with this system configuration.)"
9061 if test "$doug_lea_malloc" = "yes" ; then
9062 if test "$GNU_MALLOC" = yes ; then
9063 GNU_MALLOC_reason="
9064 (Using Doug Lea's new malloc from the GNU C Library.)"
9067 cat >>confdefs.h <<\_ACEOF
9068 #define DOUG_LEA_MALLOC 1
9069 _ACEOF
9073 if test x"${REL_ALLOC}" = x; then
9074 REL_ALLOC=${GNU_MALLOC}
9080 for ac_header in stdlib.h unistd.h
9082 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9083 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9084 echo "$as_me:$LINENO: checking for $ac_header" >&5
9085 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9086 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9087 echo $ECHO_N "(cached) $ECHO_C" >&6
9089 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9090 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9091 else
9092 # Is the header compilable?
9093 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9094 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9095 cat >conftest.$ac_ext <<_ACEOF
9096 /* confdefs.h. */
9097 _ACEOF
9098 cat confdefs.h >>conftest.$ac_ext
9099 cat >>conftest.$ac_ext <<_ACEOF
9100 /* end confdefs.h. */
9101 $ac_includes_default
9102 #include <$ac_header>
9103 _ACEOF
9104 rm -f conftest.$ac_objext
9105 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9106 (eval $ac_compile) 2>conftest.er1
9107 ac_status=$?
9108 grep -v '^ *+' conftest.er1 >conftest.err
9109 rm -f conftest.er1
9110 cat conftest.err >&5
9111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9112 (exit $ac_status); } &&
9113 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9115 (eval $ac_try) 2>&5
9116 ac_status=$?
9117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9118 (exit $ac_status); }; } &&
9119 { ac_try='test -s conftest.$ac_objext'
9120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9121 (eval $ac_try) 2>&5
9122 ac_status=$?
9123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9124 (exit $ac_status); }; }; then
9125 ac_header_compiler=yes
9126 else
9127 echo "$as_me: failed program was:" >&5
9128 sed 's/^/| /' conftest.$ac_ext >&5
9130 ac_header_compiler=no
9132 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9133 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9134 echo "${ECHO_T}$ac_header_compiler" >&6
9136 # Is the header present?
9137 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9138 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9139 cat >conftest.$ac_ext <<_ACEOF
9140 /* confdefs.h. */
9141 _ACEOF
9142 cat confdefs.h >>conftest.$ac_ext
9143 cat >>conftest.$ac_ext <<_ACEOF
9144 /* end confdefs.h. */
9145 #include <$ac_header>
9146 _ACEOF
9147 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9148 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9149 ac_status=$?
9150 grep -v '^ *+' conftest.er1 >conftest.err
9151 rm -f conftest.er1
9152 cat conftest.err >&5
9153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9154 (exit $ac_status); } >/dev/null; then
9155 if test -s conftest.err; then
9156 ac_cpp_err=$ac_c_preproc_warn_flag
9157 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9158 else
9159 ac_cpp_err=
9161 else
9162 ac_cpp_err=yes
9164 if test -z "$ac_cpp_err"; then
9165 ac_header_preproc=yes
9166 else
9167 echo "$as_me: failed program was:" >&5
9168 sed 's/^/| /' conftest.$ac_ext >&5
9170 ac_header_preproc=no
9172 rm -f conftest.err conftest.$ac_ext
9173 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9174 echo "${ECHO_T}$ac_header_preproc" >&6
9176 # So? What about this header?
9177 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9178 yes:no: )
9179 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9180 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9181 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9182 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9183 ac_header_preproc=yes
9185 no:yes:* )
9186 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9187 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9188 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9189 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9190 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9191 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9192 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9193 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9194 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9195 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9196 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9197 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9199 cat <<\_ASBOX
9200 ## ------------------------------------------ ##
9201 ## Report this to the AC_PACKAGE_NAME lists. ##
9202 ## ------------------------------------------ ##
9203 _ASBOX
9205 sed "s/^/$as_me: WARNING: /" >&2
9207 esac
9208 echo "$as_me:$LINENO: checking for $ac_header" >&5
9209 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9210 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9211 echo $ECHO_N "(cached) $ECHO_C" >&6
9212 else
9213 eval "$as_ac_Header=\$ac_header_preproc"
9215 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9216 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9219 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9220 cat >>confdefs.h <<_ACEOF
9221 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9222 _ACEOF
9226 done
9229 for ac_func in getpagesize
9231 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9232 echo "$as_me:$LINENO: checking for $ac_func" >&5
9233 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9234 if eval "test \"\${$as_ac_var+set}\" = set"; then
9235 echo $ECHO_N "(cached) $ECHO_C" >&6
9236 else
9237 cat >conftest.$ac_ext <<_ACEOF
9238 /* confdefs.h. */
9239 _ACEOF
9240 cat confdefs.h >>conftest.$ac_ext
9241 cat >>conftest.$ac_ext <<_ACEOF
9242 /* end confdefs.h. */
9243 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9244 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9245 #define $ac_func innocuous_$ac_func
9247 /* System header to define __stub macros and hopefully few prototypes,
9248 which can conflict with char $ac_func (); below.
9249 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9250 <limits.h> exists even on freestanding compilers. */
9252 #ifdef __STDC__
9253 # include <limits.h>
9254 #else
9255 # include <assert.h>
9256 #endif
9258 #undef $ac_func
9260 /* Override any gcc2 internal prototype to avoid an error. */
9261 #ifdef __cplusplus
9262 extern "C"
9264 #endif
9265 /* We use char because int might match the return type of a gcc2
9266 builtin and then its argument prototype would still apply. */
9267 char $ac_func ();
9268 /* The GNU C library defines this for functions which it implements
9269 to always fail with ENOSYS. Some functions are actually named
9270 something starting with __ and the normal name is an alias. */
9271 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9272 choke me
9273 #else
9274 char (*f) () = $ac_func;
9275 #endif
9276 #ifdef __cplusplus
9278 #endif
9281 main ()
9283 return f != $ac_func;
9285 return 0;
9287 _ACEOF
9288 rm -f conftest.$ac_objext conftest$ac_exeext
9289 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9290 (eval $ac_link) 2>conftest.er1
9291 ac_status=$?
9292 grep -v '^ *+' conftest.er1 >conftest.err
9293 rm -f conftest.er1
9294 cat conftest.err >&5
9295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9296 (exit $ac_status); } &&
9297 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9299 (eval $ac_try) 2>&5
9300 ac_status=$?
9301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9302 (exit $ac_status); }; } &&
9303 { ac_try='test -s conftest$ac_exeext'
9304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9305 (eval $ac_try) 2>&5
9306 ac_status=$?
9307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9308 (exit $ac_status); }; }; then
9309 eval "$as_ac_var=yes"
9310 else
9311 echo "$as_me: failed program was:" >&5
9312 sed 's/^/| /' conftest.$ac_ext >&5
9314 eval "$as_ac_var=no"
9316 rm -f conftest.err conftest.$ac_objext \
9317 conftest$ac_exeext conftest.$ac_ext
9319 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9320 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9321 if test `eval echo '${'$as_ac_var'}'` = yes; then
9322 cat >>confdefs.h <<_ACEOF
9323 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9324 _ACEOF
9327 done
9329 echo "$as_me:$LINENO: checking for working mmap" >&5
9330 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
9331 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
9332 echo $ECHO_N "(cached) $ECHO_C" >&6
9333 else
9334 if test "$cross_compiling" = yes; then
9335 ac_cv_func_mmap_fixed_mapped=no
9336 else
9337 cat >conftest.$ac_ext <<_ACEOF
9338 /* confdefs.h. */
9339 _ACEOF
9340 cat confdefs.h >>conftest.$ac_ext
9341 cat >>conftest.$ac_ext <<_ACEOF
9342 /* end confdefs.h. */
9343 $ac_includes_default
9344 /* malloc might have been renamed as rpl_malloc. */
9345 #undef malloc
9347 /* Thanks to Mike Haertel and Jim Avera for this test.
9348 Here is a matrix of mmap possibilities:
9349 mmap private not fixed
9350 mmap private fixed at somewhere currently unmapped
9351 mmap private fixed at somewhere already mapped
9352 mmap shared not fixed
9353 mmap shared fixed at somewhere currently unmapped
9354 mmap shared fixed at somewhere already mapped
9355 For private mappings, we should verify that changes cannot be read()
9356 back from the file, nor mmap's back from the file at a different
9357 address. (There have been systems where private was not correctly
9358 implemented like the infamous i386 svr4.0, and systems where the
9359 VM page cache was not coherent with the file system buffer cache
9360 like early versions of FreeBSD and possibly contemporary NetBSD.)
9361 For shared mappings, we should conversely verify that changes get
9362 propagated back to all the places they're supposed to be.
9364 Grep wants private fixed already mapped.
9365 The main things grep needs to know about mmap are:
9366 * does it exist and is it safe to write into the mmap'd area
9367 * how to use it (BSD variants) */
9369 #include <fcntl.h>
9370 #include <sys/mman.h>
9372 #if !STDC_HEADERS && !HAVE_STDLIB_H
9373 char *malloc ();
9374 #endif
9376 /* This mess was copied from the GNU getpagesize.h. */
9377 #if !HAVE_GETPAGESIZE
9378 /* Assume that all systems that can run configure have sys/param.h. */
9379 # if !HAVE_SYS_PARAM_H
9380 # define HAVE_SYS_PARAM_H 1
9381 # endif
9383 # ifdef _SC_PAGESIZE
9384 # define getpagesize() sysconf(_SC_PAGESIZE)
9385 # else /* no _SC_PAGESIZE */
9386 # if HAVE_SYS_PARAM_H
9387 # include <sys/param.h>
9388 # ifdef EXEC_PAGESIZE
9389 # define getpagesize() EXEC_PAGESIZE
9390 # else /* no EXEC_PAGESIZE */
9391 # ifdef NBPG
9392 # define getpagesize() NBPG * CLSIZE
9393 # ifndef CLSIZE
9394 # define CLSIZE 1
9395 # endif /* no CLSIZE */
9396 # else /* no NBPG */
9397 # ifdef NBPC
9398 # define getpagesize() NBPC
9399 # else /* no NBPC */
9400 # ifdef PAGESIZE
9401 # define getpagesize() PAGESIZE
9402 # endif /* PAGESIZE */
9403 # endif /* no NBPC */
9404 # endif /* no NBPG */
9405 # endif /* no EXEC_PAGESIZE */
9406 # else /* no HAVE_SYS_PARAM_H */
9407 # define getpagesize() 8192 /* punt totally */
9408 # endif /* no HAVE_SYS_PARAM_H */
9409 # endif /* no _SC_PAGESIZE */
9411 #endif /* no HAVE_GETPAGESIZE */
9414 main ()
9416 char *data, *data2, *data3;
9417 int i, pagesize;
9418 int fd;
9420 pagesize = getpagesize ();
9422 /* First, make a file with some known garbage in it. */
9423 data = (char *) malloc (pagesize);
9424 if (!data)
9425 exit (1);
9426 for (i = 0; i < pagesize; ++i)
9427 *(data + i) = rand ();
9428 umask (0);
9429 fd = creat ("conftest.mmap", 0600);
9430 if (fd < 0)
9431 exit (1);
9432 if (write (fd, data, pagesize) != pagesize)
9433 exit (1);
9434 close (fd);
9436 /* Next, try to mmap the file at a fixed address which already has
9437 something else allocated at it. If we can, also make sure that
9438 we see the same garbage. */
9439 fd = open ("conftest.mmap", O_RDWR);
9440 if (fd < 0)
9441 exit (1);
9442 data2 = (char *) malloc (2 * pagesize);
9443 if (!data2)
9444 exit (1);
9445 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
9446 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
9447 MAP_PRIVATE | MAP_FIXED, fd, 0L))
9448 exit (1);
9449 for (i = 0; i < pagesize; ++i)
9450 if (*(data + i) != *(data2 + i))
9451 exit (1);
9453 /* Finally, make sure that changes to the mapped area do not
9454 percolate back to the file as seen by read(). (This is a bug on
9455 some variants of i386 svr4.0.) */
9456 for (i = 0; i < pagesize; ++i)
9457 *(data2 + i) = *(data2 + i) + 1;
9458 data3 = (char *) malloc (pagesize);
9459 if (!data3)
9460 exit (1);
9461 if (read (fd, data3, pagesize) != pagesize)
9462 exit (1);
9463 for (i = 0; i < pagesize; ++i)
9464 if (*(data + i) != *(data3 + i))
9465 exit (1);
9466 close (fd);
9467 exit (0);
9469 _ACEOF
9470 rm -f conftest$ac_exeext
9471 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9472 (eval $ac_link) 2>&5
9473 ac_status=$?
9474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9475 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9477 (eval $ac_try) 2>&5
9478 ac_status=$?
9479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9480 (exit $ac_status); }; }; then
9481 ac_cv_func_mmap_fixed_mapped=yes
9482 else
9483 echo "$as_me: program exited with status $ac_status" >&5
9484 echo "$as_me: failed program was:" >&5
9485 sed 's/^/| /' conftest.$ac_ext >&5
9487 ( exit $ac_status )
9488 ac_cv_func_mmap_fixed_mapped=no
9490 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9493 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
9494 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
9495 if test $ac_cv_func_mmap_fixed_mapped = yes; then
9497 cat >>confdefs.h <<\_ACEOF
9498 #define HAVE_MMAP 1
9499 _ACEOF
9502 rm -f conftest.mmap
9504 if test $use_mmap_for_buffers = yes; then
9505 REL_ALLOC=no
9508 LIBS="$libsrc_libs $LIBS"
9511 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
9512 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
9513 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
9514 echo $ECHO_N "(cached) $ECHO_C" >&6
9515 else
9516 ac_check_lib_save_LIBS=$LIBS
9517 LIBS="-ldnet $LIBS"
9518 cat >conftest.$ac_ext <<_ACEOF
9519 /* confdefs.h. */
9520 _ACEOF
9521 cat confdefs.h >>conftest.$ac_ext
9522 cat >>conftest.$ac_ext <<_ACEOF
9523 /* end confdefs.h. */
9525 /* Override any gcc2 internal prototype to avoid an error. */
9526 #ifdef __cplusplus
9527 extern "C"
9528 #endif
9529 /* We use char because int might match the return type of a gcc2
9530 builtin and then its argument prototype would still apply. */
9531 char dnet_ntoa ();
9533 main ()
9535 dnet_ntoa ();
9537 return 0;
9539 _ACEOF
9540 rm -f conftest.$ac_objext conftest$ac_exeext
9541 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9542 (eval $ac_link) 2>conftest.er1
9543 ac_status=$?
9544 grep -v '^ *+' conftest.er1 >conftest.err
9545 rm -f conftest.er1
9546 cat conftest.err >&5
9547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9548 (exit $ac_status); } &&
9549 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9551 (eval $ac_try) 2>&5
9552 ac_status=$?
9553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9554 (exit $ac_status); }; } &&
9555 { ac_try='test -s conftest$ac_exeext'
9556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9557 (eval $ac_try) 2>&5
9558 ac_status=$?
9559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9560 (exit $ac_status); }; }; then
9561 ac_cv_lib_dnet_dnet_ntoa=yes
9562 else
9563 echo "$as_me: failed program was:" >&5
9564 sed 's/^/| /' conftest.$ac_ext >&5
9566 ac_cv_lib_dnet_dnet_ntoa=no
9568 rm -f conftest.err conftest.$ac_objext \
9569 conftest$ac_exeext conftest.$ac_ext
9570 LIBS=$ac_check_lib_save_LIBS
9572 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
9573 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
9574 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
9575 cat >>confdefs.h <<_ACEOF
9576 #define HAVE_LIBDNET 1
9577 _ACEOF
9579 LIBS="-ldnet $LIBS"
9584 echo "$as_me:$LINENO: checking for main in -lXbsd" >&5
9585 echo $ECHO_N "checking for main in -lXbsd... $ECHO_C" >&6
9586 if test "${ac_cv_lib_Xbsd_main+set}" = set; then
9587 echo $ECHO_N "(cached) $ECHO_C" >&6
9588 else
9589 ac_check_lib_save_LIBS=$LIBS
9590 LIBS="-lXbsd $LIBS"
9591 cat >conftest.$ac_ext <<_ACEOF
9592 /* confdefs.h. */
9593 _ACEOF
9594 cat confdefs.h >>conftest.$ac_ext
9595 cat >>conftest.$ac_ext <<_ACEOF
9596 /* end confdefs.h. */
9600 main ()
9602 main ();
9604 return 0;
9606 _ACEOF
9607 rm -f conftest.$ac_objext conftest$ac_exeext
9608 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9609 (eval $ac_link) 2>conftest.er1
9610 ac_status=$?
9611 grep -v '^ *+' conftest.er1 >conftest.err
9612 rm -f conftest.er1
9613 cat conftest.err >&5
9614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9615 (exit $ac_status); } &&
9616 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9618 (eval $ac_try) 2>&5
9619 ac_status=$?
9620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9621 (exit $ac_status); }; } &&
9622 { ac_try='test -s conftest$ac_exeext'
9623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9624 (eval $ac_try) 2>&5
9625 ac_status=$?
9626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9627 (exit $ac_status); }; }; then
9628 ac_cv_lib_Xbsd_main=yes
9629 else
9630 echo "$as_me: failed program was:" >&5
9631 sed 's/^/| /' conftest.$ac_ext >&5
9633 ac_cv_lib_Xbsd_main=no
9635 rm -f conftest.err conftest.$ac_objext \
9636 conftest$ac_exeext conftest.$ac_ext
9637 LIBS=$ac_check_lib_save_LIBS
9639 echo "$as_me:$LINENO: result: $ac_cv_lib_Xbsd_main" >&5
9640 echo "${ECHO_T}$ac_cv_lib_Xbsd_main" >&6
9641 if test $ac_cv_lib_Xbsd_main = yes; then
9642 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
9647 echo "$as_me:$LINENO: checking for cma_open in -lpthreads" >&5
9648 echo $ECHO_N "checking for cma_open in -lpthreads... $ECHO_C" >&6
9649 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then
9650 echo $ECHO_N "(cached) $ECHO_C" >&6
9651 else
9652 ac_check_lib_save_LIBS=$LIBS
9653 LIBS="-lpthreads $LIBS"
9654 cat >conftest.$ac_ext <<_ACEOF
9655 /* confdefs.h. */
9656 _ACEOF
9657 cat confdefs.h >>conftest.$ac_ext
9658 cat >>conftest.$ac_ext <<_ACEOF
9659 /* end confdefs.h. */
9661 /* Override any gcc2 internal prototype to avoid an error. */
9662 #ifdef __cplusplus
9663 extern "C"
9664 #endif
9665 /* We use char because int might match the return type of a gcc2
9666 builtin and then its argument prototype would still apply. */
9667 char cma_open ();
9669 main ()
9671 cma_open ();
9673 return 0;
9675 _ACEOF
9676 rm -f conftest.$ac_objext conftest$ac_exeext
9677 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9678 (eval $ac_link) 2>conftest.er1
9679 ac_status=$?
9680 grep -v '^ *+' conftest.er1 >conftest.err
9681 rm -f conftest.er1
9682 cat conftest.err >&5
9683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9684 (exit $ac_status); } &&
9685 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9687 (eval $ac_try) 2>&5
9688 ac_status=$?
9689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9690 (exit $ac_status); }; } &&
9691 { ac_try='test -s conftest$ac_exeext'
9692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9693 (eval $ac_try) 2>&5
9694 ac_status=$?
9695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9696 (exit $ac_status); }; }; then
9697 ac_cv_lib_pthreads_cma_open=yes
9698 else
9699 echo "$as_me: failed program was:" >&5
9700 sed 's/^/| /' conftest.$ac_ext >&5
9702 ac_cv_lib_pthreads_cma_open=no
9704 rm -f conftest.err conftest.$ac_objext \
9705 conftest$ac_exeext conftest.$ac_ext
9706 LIBS=$ac_check_lib_save_LIBS
9708 echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_cma_open" >&5
9709 echo "${ECHO_T}$ac_cv_lib_pthreads_cma_open" >&6
9710 if test $ac_cv_lib_pthreads_cma_open = yes; then
9711 cat >>confdefs.h <<_ACEOF
9712 #define HAVE_LIBPTHREADS 1
9713 _ACEOF
9715 LIBS="-lpthreads $LIBS"
9720 echo "$as_me:$LINENO: checking for XFree86 in /usr/X386" >&5
9721 echo $ECHO_N "checking for XFree86 in /usr/X386... $ECHO_C" >&6
9722 if test -d /usr/X386/include; then
9723 HAVE_XFREE386=yes
9724 : ${C_SWITCH_X_SITE="-I/usr/X386/include"}
9725 else
9726 HAVE_XFREE386=no
9728 echo "$as_me:$LINENO: result: $HAVE_XFREE386" >&5
9729 echo "${ECHO_T}$HAVE_XFREE386" >&6
9732 case ${host_os} in
9733 aix*)
9734 echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
9735 echo $ECHO_N "checking for -bbigtoc option... $ECHO_C" >&6
9736 if test "${gdb_cv_bigtoc+set}" = set; then
9737 echo $ECHO_N "(cached) $ECHO_C" >&6
9738 else
9740 case $GCC in
9741 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
9742 *) gdb_cv_bigtoc=-bbigtoc ;;
9743 esac
9745 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
9746 cat >conftest.$ac_ext <<_ACEOF
9747 /* confdefs.h. */
9748 _ACEOF
9749 cat confdefs.h >>conftest.$ac_ext
9750 cat >>conftest.$ac_ext <<_ACEOF
9751 /* end confdefs.h. */
9754 main ()
9756 int i;
9758 return 0;
9760 _ACEOF
9761 rm -f conftest.$ac_objext conftest$ac_exeext
9762 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9763 (eval $ac_link) 2>conftest.er1
9764 ac_status=$?
9765 grep -v '^ *+' conftest.er1 >conftest.err
9766 rm -f conftest.er1
9767 cat conftest.err >&5
9768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9769 (exit $ac_status); } &&
9770 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9772 (eval $ac_try) 2>&5
9773 ac_status=$?
9774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9775 (exit $ac_status); }; } &&
9776 { ac_try='test -s conftest$ac_exeext'
9777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9778 (eval $ac_try) 2>&5
9779 ac_status=$?
9780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9781 (exit $ac_status); }; }; then
9783 else
9784 echo "$as_me: failed program was:" >&5
9785 sed 's/^/| /' conftest.$ac_ext >&5
9787 gdb_cv_bigtoc=
9789 rm -f conftest.err conftest.$ac_objext \
9790 conftest$ac_exeext conftest.$ac_ext
9793 echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
9794 echo "${ECHO_T}$gdb_cv_bigtoc" >&6
9796 esac
9798 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
9799 # used for the tests that follow. We set them back to REAL_CFLAGS and
9800 # REAL_CPPFLAGS later on.
9802 REAL_CPPFLAGS="$CPPFLAGS"
9804 if test "${HAVE_X11}" = "yes"; then
9805 DEFS="$C_SWITCH_X_SITE $DEFS"
9806 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
9807 LIBS="$LIBX $LIBS"
9808 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
9809 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
9811 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
9812 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
9813 # but it's more convenient here to set LD_RUN_PATH
9814 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
9815 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
9816 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
9817 export LD_RUN_PATH
9820 if test "${opsys}" = "gnu-linux"; then
9821 echo "$as_me:$LINENO: checking whether X on GNU/Linux needs -b to link" >&5
9822 echo $ECHO_N "checking whether X on GNU/Linux needs -b to link... $ECHO_C" >&6
9823 cat >conftest.$ac_ext <<_ACEOF
9824 /* confdefs.h. */
9825 _ACEOF
9826 cat confdefs.h >>conftest.$ac_ext
9827 cat >>conftest.$ac_ext <<_ACEOF
9828 /* end confdefs.h. */
9831 main ()
9833 XOpenDisplay ("foo");
9835 return 0;
9837 _ACEOF
9838 rm -f conftest.$ac_objext conftest$ac_exeext
9839 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9840 (eval $ac_link) 2>conftest.er1
9841 ac_status=$?
9842 grep -v '^ *+' conftest.er1 >conftest.err
9843 rm -f conftest.er1
9844 cat conftest.err >&5
9845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9846 (exit $ac_status); } &&
9847 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9849 (eval $ac_try) 2>&5
9850 ac_status=$?
9851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9852 (exit $ac_status); }; } &&
9853 { ac_try='test -s conftest$ac_exeext'
9854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9855 (eval $ac_try) 2>&5
9856 ac_status=$?
9857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9858 (exit $ac_status); }; }; then
9859 xlinux_first_failure=no
9860 else
9861 echo "$as_me: failed program was:" >&5
9862 sed 's/^/| /' conftest.$ac_ext >&5
9864 xlinux_first_failure=yes
9866 rm -f conftest.err conftest.$ac_objext \
9867 conftest$ac_exeext conftest.$ac_ext
9868 if test "${xlinux_first_failure}" = "yes"; then
9869 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE"
9870 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE"
9871 OLD_CPPFLAGS="$CPPFLAGS"
9872 OLD_LIBS="$LIBS"
9873 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout"
9874 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout"
9875 CPPFLAGS="$CPPFLAGS -b i486-linuxaout"
9876 LIBS="$LIBS -b i486-linuxaout"
9877 cat >conftest.$ac_ext <<_ACEOF
9878 /* confdefs.h. */
9879 _ACEOF
9880 cat confdefs.h >>conftest.$ac_ext
9881 cat >>conftest.$ac_ext <<_ACEOF
9882 /* end confdefs.h. */
9885 main ()
9887 XOpenDisplay ("foo");
9889 return 0;
9891 _ACEOF
9892 rm -f conftest.$ac_objext conftest$ac_exeext
9893 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9894 (eval $ac_link) 2>conftest.er1
9895 ac_status=$?
9896 grep -v '^ *+' conftest.er1 >conftest.err
9897 rm -f conftest.er1
9898 cat conftest.err >&5
9899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9900 (exit $ac_status); } &&
9901 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9903 (eval $ac_try) 2>&5
9904 ac_status=$?
9905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9906 (exit $ac_status); }; } &&
9907 { ac_try='test -s conftest$ac_exeext'
9908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9909 (eval $ac_try) 2>&5
9910 ac_status=$?
9911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9912 (exit $ac_status); }; }; then
9913 xlinux_second_failure=no
9914 else
9915 echo "$as_me: failed program was:" >&5
9916 sed 's/^/| /' conftest.$ac_ext >&5
9918 xlinux_second_failure=yes
9920 rm -f conftest.err conftest.$ac_objext \
9921 conftest$ac_exeext conftest.$ac_ext
9922 if test "${xlinux_second_failure}" = "yes"; then
9923 # If we get the same failure with -b, there is no use adding -b.
9924 # So take it out. This plays safe.
9925 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
9926 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
9927 CPPFLAGS="$OLD_CPPFLAGS"
9928 LIBS="$OLD_LIBS"
9929 echo "$as_me:$LINENO: result: no" >&5
9930 echo "${ECHO_T}no" >&6
9931 else
9932 echo "$as_me:$LINENO: result: yes" >&5
9933 echo "${ECHO_T}yes" >&6
9935 else
9936 echo "$as_me:$LINENO: result: no" >&5
9937 echo "${ECHO_T}no" >&6
9941 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
9942 # header files included from there.
9943 echo "$as_me:$LINENO: checking for Xkb" >&5
9944 echo $ECHO_N "checking for Xkb... $ECHO_C" >&6
9945 cat >conftest.$ac_ext <<_ACEOF
9946 /* confdefs.h. */
9947 _ACEOF
9948 cat confdefs.h >>conftest.$ac_ext
9949 cat >>conftest.$ac_ext <<_ACEOF
9950 /* end confdefs.h. */
9951 #include <X11/Xlib.h>
9952 #include <X11/XKBlib.h>
9954 main ()
9956 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
9958 return 0;
9960 _ACEOF
9961 rm -f conftest.$ac_objext conftest$ac_exeext
9962 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9963 (eval $ac_link) 2>conftest.er1
9964 ac_status=$?
9965 grep -v '^ *+' conftest.er1 >conftest.err
9966 rm -f conftest.er1
9967 cat conftest.err >&5
9968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9969 (exit $ac_status); } &&
9970 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9972 (eval $ac_try) 2>&5
9973 ac_status=$?
9974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9975 (exit $ac_status); }; } &&
9976 { ac_try='test -s conftest$ac_exeext'
9977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9978 (eval $ac_try) 2>&5
9979 ac_status=$?
9980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9981 (exit $ac_status); }; }; then
9982 emacs_xkb=yes
9983 else
9984 echo "$as_me: failed program was:" >&5
9985 sed 's/^/| /' conftest.$ac_ext >&5
9987 emacs_xkb=no
9989 rm -f conftest.err conftest.$ac_objext \
9990 conftest$ac_exeext conftest.$ac_ext
9991 echo "$as_me:$LINENO: result: $emacs_xkb" >&5
9992 echo "${ECHO_T}$emacs_xkb" >&6
9993 if test $emacs_xkb = yes; then
9995 cat >>confdefs.h <<\_ACEOF
9996 #define HAVE_XKBGETKEYBOARD 1
9997 _ACEOF
10005 for ac_func in XrmSetDatabase XScreenResourceString \
10006 XScreenNumberOfScreen XSetWMProtocols
10008 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10009 echo "$as_me:$LINENO: checking for $ac_func" >&5
10010 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10011 if eval "test \"\${$as_ac_var+set}\" = set"; then
10012 echo $ECHO_N "(cached) $ECHO_C" >&6
10013 else
10014 cat >conftest.$ac_ext <<_ACEOF
10015 /* confdefs.h. */
10016 _ACEOF
10017 cat confdefs.h >>conftest.$ac_ext
10018 cat >>conftest.$ac_ext <<_ACEOF
10019 /* end confdefs.h. */
10020 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10021 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10022 #define $ac_func innocuous_$ac_func
10024 /* System header to define __stub macros and hopefully few prototypes,
10025 which can conflict with char $ac_func (); below.
10026 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10027 <limits.h> exists even on freestanding compilers. */
10029 #ifdef __STDC__
10030 # include <limits.h>
10031 #else
10032 # include <assert.h>
10033 #endif
10035 #undef $ac_func
10037 /* Override any gcc2 internal prototype to avoid an error. */
10038 #ifdef __cplusplus
10039 extern "C"
10041 #endif
10042 /* We use char because int might match the return type of a gcc2
10043 builtin and then its argument prototype would still apply. */
10044 char $ac_func ();
10045 /* The GNU C library defines this for functions which it implements
10046 to always fail with ENOSYS. Some functions are actually named
10047 something starting with __ and the normal name is an alias. */
10048 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10049 choke me
10050 #else
10051 char (*f) () = $ac_func;
10052 #endif
10053 #ifdef __cplusplus
10055 #endif
10058 main ()
10060 return f != $ac_func;
10062 return 0;
10064 _ACEOF
10065 rm -f conftest.$ac_objext conftest$ac_exeext
10066 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10067 (eval $ac_link) 2>conftest.er1
10068 ac_status=$?
10069 grep -v '^ *+' conftest.er1 >conftest.err
10070 rm -f conftest.er1
10071 cat conftest.err >&5
10072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10073 (exit $ac_status); } &&
10074 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10076 (eval $ac_try) 2>&5
10077 ac_status=$?
10078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10079 (exit $ac_status); }; } &&
10080 { ac_try='test -s conftest$ac_exeext'
10081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10082 (eval $ac_try) 2>&5
10083 ac_status=$?
10084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10085 (exit $ac_status); }; }; then
10086 eval "$as_ac_var=yes"
10087 else
10088 echo "$as_me: failed program was:" >&5
10089 sed 's/^/| /' conftest.$ac_ext >&5
10091 eval "$as_ac_var=no"
10093 rm -f conftest.err conftest.$ac_objext \
10094 conftest$ac_exeext conftest.$ac_ext
10096 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10097 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10098 if test `eval echo '${'$as_ac_var'}'` = yes; then
10099 cat >>confdefs.h <<_ACEOF
10100 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10101 _ACEOF
10104 done
10108 if test "${window_system}" = "x11"; then
10109 echo "$as_me:$LINENO: checking X11 version 6" >&5
10110 echo $ECHO_N "checking X11 version 6... $ECHO_C" >&6
10111 if test "${emacs_cv_x11_version_6+set}" = set; then
10112 echo $ECHO_N "(cached) $ECHO_C" >&6
10113 else
10114 cat >conftest.$ac_ext <<_ACEOF
10115 /* confdefs.h. */
10116 _ACEOF
10117 cat confdefs.h >>conftest.$ac_ext
10118 cat >>conftest.$ac_ext <<_ACEOF
10119 /* end confdefs.h. */
10120 #include <X11/Xlib.h>
10122 main ()
10124 #if XlibSpecificationRelease < 6
10125 fail;
10126 #endif
10129 return 0;
10131 _ACEOF
10132 rm -f conftest.$ac_objext conftest$ac_exeext
10133 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10134 (eval $ac_link) 2>conftest.er1
10135 ac_status=$?
10136 grep -v '^ *+' conftest.er1 >conftest.err
10137 rm -f conftest.er1
10138 cat conftest.err >&5
10139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10140 (exit $ac_status); } &&
10141 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10143 (eval $ac_try) 2>&5
10144 ac_status=$?
10145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10146 (exit $ac_status); }; } &&
10147 { ac_try='test -s conftest$ac_exeext'
10148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10149 (eval $ac_try) 2>&5
10150 ac_status=$?
10151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10152 (exit $ac_status); }; }; then
10153 emacs_cv_x11_version_6=yes
10154 else
10155 echo "$as_me: failed program was:" >&5
10156 sed 's/^/| /' conftest.$ac_ext >&5
10158 emacs_cv_x11_version_6=no
10160 rm -f conftest.err conftest.$ac_objext \
10161 conftest$ac_exeext conftest.$ac_ext
10164 if test $emacs_cv_x11_version_6 = yes; then
10165 echo "$as_me:$LINENO: result: 6 or newer" >&5
10166 echo "${ECHO_T}6 or newer" >&6
10168 cat >>confdefs.h <<\_ACEOF
10169 #define HAVE_X11R6 1
10170 _ACEOF
10172 else
10173 echo "$as_me:$LINENO: result: before 6" >&5
10174 echo "${ECHO_T}before 6" >&6
10178 if test "${window_system}" = "x11"; then
10179 echo "$as_me:$LINENO: checking X11 version 5" >&5
10180 echo $ECHO_N "checking X11 version 5... $ECHO_C" >&6
10181 if test "${emacs_cv_x11_version_5+set}" = set; then
10182 echo $ECHO_N "(cached) $ECHO_C" >&6
10183 else
10184 cat >conftest.$ac_ext <<_ACEOF
10185 /* confdefs.h. */
10186 _ACEOF
10187 cat confdefs.h >>conftest.$ac_ext
10188 cat >>conftest.$ac_ext <<_ACEOF
10189 /* end confdefs.h. */
10190 #include <X11/Xlib.h>
10192 main ()
10194 #if XlibSpecificationRelease < 5
10195 fail;
10196 #endif
10199 return 0;
10201 _ACEOF
10202 rm -f conftest.$ac_objext conftest$ac_exeext
10203 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10204 (eval $ac_link) 2>conftest.er1
10205 ac_status=$?
10206 grep -v '^ *+' conftest.er1 >conftest.err
10207 rm -f conftest.er1
10208 cat conftest.err >&5
10209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10210 (exit $ac_status); } &&
10211 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10213 (eval $ac_try) 2>&5
10214 ac_status=$?
10215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10216 (exit $ac_status); }; } &&
10217 { ac_try='test -s conftest$ac_exeext'
10218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10219 (eval $ac_try) 2>&5
10220 ac_status=$?
10221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10222 (exit $ac_status); }; }; then
10223 emacs_cv_x11_version_5=yes
10224 else
10225 echo "$as_me: failed program was:" >&5
10226 sed 's/^/| /' conftest.$ac_ext >&5
10228 emacs_cv_x11_version_5=no
10230 rm -f conftest.err conftest.$ac_objext \
10231 conftest$ac_exeext conftest.$ac_ext
10234 if test $emacs_cv_x11_version_5 = yes; then
10235 echo "$as_me:$LINENO: result: 5 or newer" >&5
10236 echo "${ECHO_T}5 or newer" >&6
10237 HAVE_X11R5=yes
10239 cat >>confdefs.h <<\_ACEOF
10240 #define HAVE_X11R5 1
10241 _ACEOF
10243 else
10244 HAVE_X11R5=no
10245 echo "$as_me:$LINENO: result: before 5" >&5
10246 echo "${ECHO_T}before 5" >&6
10250 HAVE_GTK=no
10251 if test "${with_gtk}" = "yes" || test "$USE_X_TOOLKIT" = "gtk"; then
10252 if test "$USE_X_TOOLKIT" != "none" && test "$USE_X_TOOLKIT" != "maybe"; then
10253 { { echo "$as_me:$LINENO: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&5
10254 echo "$as_me: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&2;}
10255 { (exit 1); exit 1; }; };
10257 GLIB_REQUIRED=2.4
10258 GTK_REQUIRED=2.4
10259 GTK_MODULES="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
10261 if test "X${with_pkg_config_prog}" != X; then
10262 PKG_CONFIG="${with_pkg_config_prog}"
10265 succeeded=no
10267 if test -z "$PKG_CONFIG"; then
10268 # Extract the first word of "pkg-config", so it can be a program name with args.
10269 set dummy pkg-config; ac_word=$2
10270 echo "$as_me:$LINENO: checking for $ac_word" >&5
10271 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10272 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
10273 echo $ECHO_N "(cached) $ECHO_C" >&6
10274 else
10275 case $PKG_CONFIG in
10276 [\\/]* | ?:[\\/]*)
10277 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10280 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10281 for as_dir in $PATH
10283 IFS=$as_save_IFS
10284 test -z "$as_dir" && as_dir=.
10285 for ac_exec_ext in '' $ac_executable_extensions; do
10286 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10287 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10288 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10289 break 2
10291 done
10292 done
10294 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10296 esac
10298 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10300 if test -n "$PKG_CONFIG"; then
10301 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
10302 echo "${ECHO_T}$PKG_CONFIG" >&6
10303 else
10304 echo "$as_me:$LINENO: result: no" >&5
10305 echo "${ECHO_T}no" >&6
10310 if test "$PKG_CONFIG" = "no" ; then
10311 { { echo "$as_me:$LINENO: error:
10312 *** The pkg-config script could not be found. Make sure it is in your path, or give the full path to pkg-config with the PKG_CONFIG environment variable or --with-pkg-config-prog. Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." >&5
10313 echo "$as_me: error:
10314 *** The pkg-config script could not be found. Make sure it is in your path, or give the full path to pkg-config with the PKG_CONFIG environment variable or --with-pkg-config-prog. Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." >&2;}
10315 { (exit 1); exit 1; }; }
10316 else
10317 PKG_CONFIG_MIN_VERSION=0.9.0
10318 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10319 echo "$as_me:$LINENO: checking for $GTK_MODULES" >&5
10320 echo $ECHO_N "checking for $GTK_MODULES... $ECHO_C" >&6
10322 if $PKG_CONFIG --exists "$GTK_MODULES" ; then
10323 echo "$as_me:$LINENO: result: yes" >&5
10324 echo "${ECHO_T}yes" >&6
10325 succeeded=yes
10327 echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
10328 echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6
10329 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"`
10330 echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
10331 echo "${ECHO_T}$GTK_CFLAGS" >&6
10333 echo "$as_me:$LINENO: checking GTK_LIBS" >&5
10334 echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6
10335 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"`
10336 echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
10337 echo "${ECHO_T}$GTK_LIBS" >&6
10338 else
10339 echo "$as_me:$LINENO: result: no" >&5
10340 echo "${ECHO_T}no" >&6
10341 GTK_CFLAGS=""
10342 GTK_LIBS=""
10343 ## If we have a custom action on failure, don't print errors, but
10344 ## do set a variable so people can do so.
10345 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
10346 echo $GTK_PKG_ERRORS
10351 else
10352 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10353 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10357 if test $succeeded = yes; then
10359 else
10360 { { 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
10361 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;}
10362 { (exit 1); exit 1; }; }
10367 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS"
10368 CFLAGS="$CFLAGS $GTK_CFLAGS"
10369 LIBS="$GTK_LIBS $LIBS"
10370 HAVE_GTK=yes
10372 cat >>confdefs.h <<\_ACEOF
10373 #define HAVE_GTK 1
10374 _ACEOF
10376 USE_X_TOOLKIT=none
10378 if test "$with_toolkit_scroll_bars" != no; then
10379 with_toolkit_scroll_bars=yes
10382 HAVE_GTK_MULTIDISPLAY=no
10384 HAVE_GTK_FILE_SELECTION=no
10386 for ac_func in gtk_file_selection_new
10388 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10389 echo "$as_me:$LINENO: checking for $ac_func" >&5
10390 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10391 if eval "test \"\${$as_ac_var+set}\" = set"; then
10392 echo $ECHO_N "(cached) $ECHO_C" >&6
10393 else
10394 cat >conftest.$ac_ext <<_ACEOF
10395 /* confdefs.h. */
10396 _ACEOF
10397 cat confdefs.h >>conftest.$ac_ext
10398 cat >>conftest.$ac_ext <<_ACEOF
10399 /* end confdefs.h. */
10400 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10401 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10402 #define $ac_func innocuous_$ac_func
10404 /* System header to define __stub macros and hopefully few prototypes,
10405 which can conflict with char $ac_func (); below.
10406 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10407 <limits.h> exists even on freestanding compilers. */
10409 #ifdef __STDC__
10410 # include <limits.h>
10411 #else
10412 # include <assert.h>
10413 #endif
10415 #undef $ac_func
10417 /* Override any gcc2 internal prototype to avoid an error. */
10418 #ifdef __cplusplus
10419 extern "C"
10421 #endif
10422 /* We use char because int might match the return type of a gcc2
10423 builtin and then its argument prototype would still apply. */
10424 char $ac_func ();
10425 /* The GNU C library defines this for functions which it implements
10426 to always fail with ENOSYS. Some functions are actually named
10427 something starting with __ and the normal name is an alias. */
10428 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10429 choke me
10430 #else
10431 char (*f) () = $ac_func;
10432 #endif
10433 #ifdef __cplusplus
10435 #endif
10438 main ()
10440 return f != $ac_func;
10442 return 0;
10444 _ACEOF
10445 rm -f conftest.$ac_objext conftest$ac_exeext
10446 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10447 (eval $ac_link) 2>conftest.er1
10448 ac_status=$?
10449 grep -v '^ *+' conftest.er1 >conftest.err
10450 rm -f conftest.er1
10451 cat conftest.err >&5
10452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10453 (exit $ac_status); } &&
10454 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10456 (eval $ac_try) 2>&5
10457 ac_status=$?
10458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10459 (exit $ac_status); }; } &&
10460 { ac_try='test -s conftest$ac_exeext'
10461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10462 (eval $ac_try) 2>&5
10463 ac_status=$?
10464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10465 (exit $ac_status); }; }; then
10466 eval "$as_ac_var=yes"
10467 else
10468 echo "$as_me: failed program was:" >&5
10469 sed 's/^/| /' conftest.$ac_ext >&5
10471 eval "$as_ac_var=no"
10473 rm -f conftest.err conftest.$ac_objext \
10474 conftest$ac_exeext conftest.$ac_ext
10476 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10477 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10478 if test `eval echo '${'$as_ac_var'}'` = yes; then
10479 cat >>confdefs.h <<_ACEOF
10480 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10481 _ACEOF
10482 HAVE_GTK_FILE_SELECTION=yes
10484 done
10487 HAVE_GTK_FILE_CHOOSER=no
10489 for ac_func in gtk_file_chooser_dialog_new
10491 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10492 echo "$as_me:$LINENO: checking for $ac_func" >&5
10493 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10494 if eval "test \"\${$as_ac_var+set}\" = set"; then
10495 echo $ECHO_N "(cached) $ECHO_C" >&6
10496 else
10497 cat >conftest.$ac_ext <<_ACEOF
10498 /* confdefs.h. */
10499 _ACEOF
10500 cat confdefs.h >>conftest.$ac_ext
10501 cat >>conftest.$ac_ext <<_ACEOF
10502 /* end confdefs.h. */
10503 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10504 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10505 #define $ac_func innocuous_$ac_func
10507 /* System header to define __stub macros and hopefully few prototypes,
10508 which can conflict with char $ac_func (); below.
10509 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10510 <limits.h> exists even on freestanding compilers. */
10512 #ifdef __STDC__
10513 # include <limits.h>
10514 #else
10515 # include <assert.h>
10516 #endif
10518 #undef $ac_func
10520 /* Override any gcc2 internal prototype to avoid an error. */
10521 #ifdef __cplusplus
10522 extern "C"
10524 #endif
10525 /* We use char because int might match the return type of a gcc2
10526 builtin and then its argument prototype would still apply. */
10527 char $ac_func ();
10528 /* The GNU C library defines this for functions which it implements
10529 to always fail with ENOSYS. Some functions are actually named
10530 something starting with __ and the normal name is an alias. */
10531 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10532 choke me
10533 #else
10534 char (*f) () = $ac_func;
10535 #endif
10536 #ifdef __cplusplus
10538 #endif
10541 main ()
10543 return f != $ac_func;
10545 return 0;
10547 _ACEOF
10548 rm -f conftest.$ac_objext conftest$ac_exeext
10549 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10550 (eval $ac_link) 2>conftest.er1
10551 ac_status=$?
10552 grep -v '^ *+' conftest.er1 >conftest.err
10553 rm -f conftest.er1
10554 cat conftest.err >&5
10555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10556 (exit $ac_status); } &&
10557 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10559 (eval $ac_try) 2>&5
10560 ac_status=$?
10561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10562 (exit $ac_status); }; } &&
10563 { ac_try='test -s conftest$ac_exeext'
10564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10565 (eval $ac_try) 2>&5
10566 ac_status=$?
10567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10568 (exit $ac_status); }; }; then
10569 eval "$as_ac_var=yes"
10570 else
10571 echo "$as_me: failed program was:" >&5
10572 sed 's/^/| /' conftest.$ac_ext >&5
10574 eval "$as_ac_var=no"
10576 rm -f conftest.err conftest.$ac_objext \
10577 conftest$ac_exeext conftest.$ac_ext
10579 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10580 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10581 if test `eval echo '${'$as_ac_var'}'` = yes; then
10582 cat >>confdefs.h <<_ACEOF
10583 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10584 _ACEOF
10585 HAVE_GTK_FILE_CHOOSER=yes
10587 done
10590 if test "$HAVE_GTK_FILE_SELECTION" = yes \
10591 && test "$HAVE_GTK_FILE_CHOOSER" = yes; then
10593 cat >>confdefs.h <<\_ACEOF
10594 #define HAVE_GTK_FILE_BOTH 1
10595 _ACEOF
10599 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
10600 HAVE_GTK_AND_PTHREAD=no
10602 for ac_header in pthread.h
10604 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10605 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10606 echo "$as_me:$LINENO: checking for $ac_header" >&5
10607 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10608 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10609 echo $ECHO_N "(cached) $ECHO_C" >&6
10611 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10612 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10613 else
10614 # Is the header compilable?
10615 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10616 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10617 cat >conftest.$ac_ext <<_ACEOF
10618 /* confdefs.h. */
10619 _ACEOF
10620 cat confdefs.h >>conftest.$ac_ext
10621 cat >>conftest.$ac_ext <<_ACEOF
10622 /* end confdefs.h. */
10623 $ac_includes_default
10624 #include <$ac_header>
10625 _ACEOF
10626 rm -f conftest.$ac_objext
10627 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10628 (eval $ac_compile) 2>conftest.er1
10629 ac_status=$?
10630 grep -v '^ *+' conftest.er1 >conftest.err
10631 rm -f conftest.er1
10632 cat conftest.err >&5
10633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10634 (exit $ac_status); } &&
10635 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10637 (eval $ac_try) 2>&5
10638 ac_status=$?
10639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10640 (exit $ac_status); }; } &&
10641 { ac_try='test -s conftest.$ac_objext'
10642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10643 (eval $ac_try) 2>&5
10644 ac_status=$?
10645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10646 (exit $ac_status); }; }; then
10647 ac_header_compiler=yes
10648 else
10649 echo "$as_me: failed program was:" >&5
10650 sed 's/^/| /' conftest.$ac_ext >&5
10652 ac_header_compiler=no
10654 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10655 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10656 echo "${ECHO_T}$ac_header_compiler" >&6
10658 # Is the header present?
10659 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10660 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10661 cat >conftest.$ac_ext <<_ACEOF
10662 /* confdefs.h. */
10663 _ACEOF
10664 cat confdefs.h >>conftest.$ac_ext
10665 cat >>conftest.$ac_ext <<_ACEOF
10666 /* end confdefs.h. */
10667 #include <$ac_header>
10668 _ACEOF
10669 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10670 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10671 ac_status=$?
10672 grep -v '^ *+' conftest.er1 >conftest.err
10673 rm -f conftest.er1
10674 cat conftest.err >&5
10675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10676 (exit $ac_status); } >/dev/null; then
10677 if test -s conftest.err; then
10678 ac_cpp_err=$ac_c_preproc_warn_flag
10679 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10680 else
10681 ac_cpp_err=
10683 else
10684 ac_cpp_err=yes
10686 if test -z "$ac_cpp_err"; then
10687 ac_header_preproc=yes
10688 else
10689 echo "$as_me: failed program was:" >&5
10690 sed 's/^/| /' conftest.$ac_ext >&5
10692 ac_header_preproc=no
10694 rm -f conftest.err conftest.$ac_ext
10695 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10696 echo "${ECHO_T}$ac_header_preproc" >&6
10698 # So? What about this header?
10699 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10700 yes:no: )
10701 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10702 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10703 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10704 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10705 ac_header_preproc=yes
10707 no:yes:* )
10708 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10709 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10710 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10711 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10712 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10713 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10714 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10715 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10716 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10717 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10718 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10719 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10721 cat <<\_ASBOX
10722 ## ------------------------------------------ ##
10723 ## Report this to the AC_PACKAGE_NAME lists. ##
10724 ## ------------------------------------------ ##
10725 _ASBOX
10727 sed "s/^/$as_me: WARNING: /" >&2
10729 esac
10730 echo "$as_me:$LINENO: checking for $ac_header" >&5
10731 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10732 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10733 echo $ECHO_N "(cached) $ECHO_C" >&6
10734 else
10735 eval "$as_ac_Header=\$ac_header_preproc"
10737 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10738 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10741 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10742 cat >>confdefs.h <<_ACEOF
10743 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10744 _ACEOF
10748 done
10750 if test "$ac_cv_header_pthread_h"; then
10751 echo "$as_me:$LINENO: checking for pthread_self in -lpthread" >&5
10752 echo $ECHO_N "checking for pthread_self in -lpthread... $ECHO_C" >&6
10753 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then
10754 echo $ECHO_N "(cached) $ECHO_C" >&6
10755 else
10756 ac_check_lib_save_LIBS=$LIBS
10757 LIBS="-lpthread $LIBS"
10758 cat >conftest.$ac_ext <<_ACEOF
10759 /* confdefs.h. */
10760 _ACEOF
10761 cat confdefs.h >>conftest.$ac_ext
10762 cat >>conftest.$ac_ext <<_ACEOF
10763 /* end confdefs.h. */
10765 /* Override any gcc2 internal prototype to avoid an error. */
10766 #ifdef __cplusplus
10767 extern "C"
10768 #endif
10769 /* We use char because int might match the return type of a gcc2
10770 builtin and then its argument prototype would still apply. */
10771 char pthread_self ();
10773 main ()
10775 pthread_self ();
10777 return 0;
10779 _ACEOF
10780 rm -f conftest.$ac_objext conftest$ac_exeext
10781 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10782 (eval $ac_link) 2>conftest.er1
10783 ac_status=$?
10784 grep -v '^ *+' conftest.er1 >conftest.err
10785 rm -f conftest.er1
10786 cat conftest.err >&5
10787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10788 (exit $ac_status); } &&
10789 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10791 (eval $ac_try) 2>&5
10792 ac_status=$?
10793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10794 (exit $ac_status); }; } &&
10795 { ac_try='test -s conftest$ac_exeext'
10796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10797 (eval $ac_try) 2>&5
10798 ac_status=$?
10799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10800 (exit $ac_status); }; }; then
10801 ac_cv_lib_pthread_pthread_self=yes
10802 else
10803 echo "$as_me: failed program was:" >&5
10804 sed 's/^/| /' conftest.$ac_ext >&5
10806 ac_cv_lib_pthread_pthread_self=no
10808 rm -f conftest.err conftest.$ac_objext \
10809 conftest$ac_exeext conftest.$ac_ext
10810 LIBS=$ac_check_lib_save_LIBS
10812 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_self" >&5
10813 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_self" >&6
10814 if test $ac_cv_lib_pthread_pthread_self = yes; then
10815 HAVE_GTK_AND_PTHREAD=yes
10819 if test "$HAVE_GTK_AND_PTHREAD" = yes; then
10820 GTK_LIBS="$GTK_LIBS -lpthread"
10822 cat >>confdefs.h <<\_ACEOF
10823 #define HAVE_GTK_AND_PTHREAD 1
10824 _ACEOF
10830 if test x"${USE_X_TOOLKIT}" = xmaybe; then
10831 if test x"${HAVE_X11R5}" = xyes; then
10832 echo "$as_me:$LINENO: checking X11 version 5 with Xaw" >&5
10833 echo $ECHO_N "checking X11 version 5 with Xaw... $ECHO_C" >&6
10834 if test "${emacs_cv_x11_version_5_with_xaw+set}" = set; then
10835 echo $ECHO_N "(cached) $ECHO_C" >&6
10836 else
10837 cat >conftest.$ac_ext <<_ACEOF
10838 /* confdefs.h. */
10839 _ACEOF
10840 cat confdefs.h >>conftest.$ac_ext
10841 cat >>conftest.$ac_ext <<_ACEOF
10842 /* end confdefs.h. */
10844 #include <X11/Intrinsic.h>
10845 #include <X11/Xaw/Simple.h>
10847 main ()
10851 return 0;
10853 _ACEOF
10854 rm -f conftest.$ac_objext conftest$ac_exeext
10855 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10856 (eval $ac_link) 2>conftest.er1
10857 ac_status=$?
10858 grep -v '^ *+' conftest.er1 >conftest.err
10859 rm -f conftest.er1
10860 cat conftest.err >&5
10861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10862 (exit $ac_status); } &&
10863 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10865 (eval $ac_try) 2>&5
10866 ac_status=$?
10867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10868 (exit $ac_status); }; } &&
10869 { ac_try='test -s conftest$ac_exeext'
10870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10871 (eval $ac_try) 2>&5
10872 ac_status=$?
10873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10874 (exit $ac_status); }; }; then
10875 emacs_cv_x11_version_5_with_xaw=yes
10876 else
10877 echo "$as_me: failed program was:" >&5
10878 sed 's/^/| /' conftest.$ac_ext >&5
10880 emacs_cv_x11_version_5_with_xaw=no
10882 rm -f conftest.err conftest.$ac_objext \
10883 conftest$ac_exeext conftest.$ac_ext
10886 if test $emacs_cv_x11_version_5_with_xaw = yes; then
10887 echo "$as_me:$LINENO: result: 5 or newer, with Xaw; use toolkit by default" >&5
10888 echo "${ECHO_T}5 or newer, with Xaw; use toolkit by default" >&6
10889 USE_X_TOOLKIT=LUCID
10890 else
10891 echo "$as_me:$LINENO: result: before 5 or no Xaw; do not use toolkit by default" >&5
10892 echo "${ECHO_T}before 5 or no Xaw; do not use toolkit by default" >&6
10893 USE_X_TOOLKIT=none
10895 else
10896 USE_X_TOOLKIT=none
10900 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
10902 if test "${USE_X_TOOLKIT}" != "none"; then
10903 echo "$as_me:$LINENO: checking X11 toolkit version" >&5
10904 echo $ECHO_N "checking X11 toolkit version... $ECHO_C" >&6
10905 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then
10906 echo $ECHO_N "(cached) $ECHO_C" >&6
10907 else
10908 cat >conftest.$ac_ext <<_ACEOF
10909 /* confdefs.h. */
10910 _ACEOF
10911 cat confdefs.h >>conftest.$ac_ext
10912 cat >>conftest.$ac_ext <<_ACEOF
10913 /* end confdefs.h. */
10914 #include <X11/Intrinsic.h>
10916 main ()
10918 #if XtSpecificationRelease < 6
10919 fail;
10920 #endif
10923 return 0;
10925 _ACEOF
10926 rm -f conftest.$ac_objext conftest$ac_exeext
10927 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10928 (eval $ac_link) 2>conftest.er1
10929 ac_status=$?
10930 grep -v '^ *+' conftest.er1 >conftest.err
10931 rm -f conftest.er1
10932 cat conftest.err >&5
10933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10934 (exit $ac_status); } &&
10935 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10937 (eval $ac_try) 2>&5
10938 ac_status=$?
10939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10940 (exit $ac_status); }; } &&
10941 { ac_try='test -s conftest$ac_exeext'
10942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10943 (eval $ac_try) 2>&5
10944 ac_status=$?
10945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10946 (exit $ac_status); }; }; then
10947 emacs_cv_x11_toolkit_version_6=yes
10948 else
10949 echo "$as_me: failed program was:" >&5
10950 sed 's/^/| /' conftest.$ac_ext >&5
10952 emacs_cv_x11_toolkit_version_6=no
10954 rm -f conftest.err conftest.$ac_objext \
10955 conftest$ac_exeext conftest.$ac_ext
10958 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
10959 if test $emacs_cv_x11_toolkit_version_6 = yes; then
10960 echo "$as_me:$LINENO: result: 6 or newer" >&5
10961 echo "${ECHO_T}6 or newer" >&6
10963 cat >>confdefs.h <<\_ACEOF
10964 #define HAVE_X11XTR6 1
10965 _ACEOF
10967 else
10968 echo "$as_me:$LINENO: result: before 6" >&5
10969 echo "${ECHO_T}before 6" >&6
10972 OLDLIBS="$LIBS"
10973 if test x$HAVE_X11XTR6 = xyes; then
10974 LIBS="-lXt -lSM -lICE $LIBS"
10975 else
10976 LIBS="-lXt $LIBS"
10979 echo "$as_me:$LINENO: checking for XmuConvertStandardSelection in -lXmu" >&5
10980 echo $ECHO_N "checking for XmuConvertStandardSelection in -lXmu... $ECHO_C" >&6
10981 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then
10982 echo $ECHO_N "(cached) $ECHO_C" >&6
10983 else
10984 ac_check_lib_save_LIBS=$LIBS
10985 LIBS="-lXmu $LIBS"
10986 cat >conftest.$ac_ext <<_ACEOF
10987 /* confdefs.h. */
10988 _ACEOF
10989 cat confdefs.h >>conftest.$ac_ext
10990 cat >>conftest.$ac_ext <<_ACEOF
10991 /* end confdefs.h. */
10993 /* Override any gcc2 internal prototype to avoid an error. */
10994 #ifdef __cplusplus
10995 extern "C"
10996 #endif
10997 /* We use char because int might match the return type of a gcc2
10998 builtin and then its argument prototype would still apply. */
10999 char XmuConvertStandardSelection ();
11001 main ()
11003 XmuConvertStandardSelection ();
11005 return 0;
11007 _ACEOF
11008 rm -f conftest.$ac_objext conftest$ac_exeext
11009 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11010 (eval $ac_link) 2>conftest.er1
11011 ac_status=$?
11012 grep -v '^ *+' conftest.er1 >conftest.err
11013 rm -f conftest.er1
11014 cat conftest.err >&5
11015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11016 (exit $ac_status); } &&
11017 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11019 (eval $ac_try) 2>&5
11020 ac_status=$?
11021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11022 (exit $ac_status); }; } &&
11023 { ac_try='test -s conftest$ac_exeext'
11024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11025 (eval $ac_try) 2>&5
11026 ac_status=$?
11027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11028 (exit $ac_status); }; }; then
11029 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
11030 else
11031 echo "$as_me: failed program was:" >&5
11032 sed 's/^/| /' conftest.$ac_ext >&5
11034 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
11036 rm -f conftest.err conftest.$ac_objext \
11037 conftest$ac_exeext conftest.$ac_ext
11038 LIBS=$ac_check_lib_save_LIBS
11040 echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
11041 echo "${ECHO_T}$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6
11042 if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then
11043 cat >>confdefs.h <<_ACEOF
11044 #define HAVE_LIBXMU 1
11045 _ACEOF
11047 LIBS="-lXmu $LIBS"
11051 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
11054 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
11055 if test "${HAVE_X11}" = "yes"; then
11056 if test "${USE_X_TOOLKIT}" != "none"; then
11058 echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
11059 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
11060 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
11061 echo $ECHO_N "(cached) $ECHO_C" >&6
11062 else
11063 ac_check_lib_save_LIBS=$LIBS
11064 LIBS="-lXext $LIBS"
11065 cat >conftest.$ac_ext <<_ACEOF
11066 /* confdefs.h. */
11067 _ACEOF
11068 cat confdefs.h >>conftest.$ac_ext
11069 cat >>conftest.$ac_ext <<_ACEOF
11070 /* end confdefs.h. */
11072 /* Override any gcc2 internal prototype to avoid an error. */
11073 #ifdef __cplusplus
11074 extern "C"
11075 #endif
11076 /* We use char because int might match the return type of a gcc2
11077 builtin and then its argument prototype would still apply. */
11078 char XShapeQueryExtension ();
11080 main ()
11082 XShapeQueryExtension ();
11084 return 0;
11086 _ACEOF
11087 rm -f conftest.$ac_objext conftest$ac_exeext
11088 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11089 (eval $ac_link) 2>conftest.er1
11090 ac_status=$?
11091 grep -v '^ *+' conftest.er1 >conftest.err
11092 rm -f conftest.er1
11093 cat conftest.err >&5
11094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11095 (exit $ac_status); } &&
11096 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11098 (eval $ac_try) 2>&5
11099 ac_status=$?
11100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11101 (exit $ac_status); }; } &&
11102 { ac_try='test -s conftest$ac_exeext'
11103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11104 (eval $ac_try) 2>&5
11105 ac_status=$?
11106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11107 (exit $ac_status); }; }; then
11108 ac_cv_lib_Xext_XShapeQueryExtension=yes
11109 else
11110 echo "$as_me: failed program was:" >&5
11111 sed 's/^/| /' conftest.$ac_ext >&5
11113 ac_cv_lib_Xext_XShapeQueryExtension=no
11115 rm -f conftest.err conftest.$ac_objext \
11116 conftest$ac_exeext conftest.$ac_ext
11117 LIBS=$ac_check_lib_save_LIBS
11119 echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
11120 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
11121 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
11122 cat >>confdefs.h <<_ACEOF
11123 #define HAVE_LIBXEXT 1
11124 _ACEOF
11126 LIBS="-lXext $LIBS"
11133 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
11134 echo "$as_me:$LINENO: checking for Motif version 2.1" >&5
11135 echo $ECHO_N "checking for Motif version 2.1... $ECHO_C" >&6
11136 if test "${emacs_cv_motif_version_2_1+set}" = set; then
11137 echo $ECHO_N "(cached) $ECHO_C" >&6
11138 else
11139 cat >conftest.$ac_ext <<_ACEOF
11140 /* confdefs.h. */
11141 _ACEOF
11142 cat confdefs.h >>conftest.$ac_ext
11143 cat >>conftest.$ac_ext <<_ACEOF
11144 /* end confdefs.h. */
11145 #include <Xm/Xm.h>
11147 main ()
11149 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
11150 int x = 5;
11151 #else
11152 Motif version prior to 2.1.
11153 #endif
11155 return 0;
11157 _ACEOF
11158 rm -f conftest.$ac_objext
11159 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11160 (eval $ac_compile) 2>conftest.er1
11161 ac_status=$?
11162 grep -v '^ *+' conftest.er1 >conftest.err
11163 rm -f conftest.er1
11164 cat conftest.err >&5
11165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11166 (exit $ac_status); } &&
11167 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11169 (eval $ac_try) 2>&5
11170 ac_status=$?
11171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11172 (exit $ac_status); }; } &&
11173 { ac_try='test -s conftest.$ac_objext'
11174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11175 (eval $ac_try) 2>&5
11176 ac_status=$?
11177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11178 (exit $ac_status); }; }; then
11179 emacs_cv_motif_version_2_1=yes
11180 else
11181 echo "$as_me: failed program was:" >&5
11182 sed 's/^/| /' conftest.$ac_ext >&5
11184 emacs_cv_motif_version_2_1=no
11186 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11188 echo "$as_me:$LINENO: result: $emacs_cv_motif_version_2_1" >&5
11189 echo "${ECHO_T}$emacs_cv_motif_version_2_1" >&6
11190 HAVE_MOTIF_2_1=$emacs_cv_motif_version_2_1
11191 if test $emacs_cv_motif_version_2_1 = yes; then
11192 HAVE_LIBXP=no
11194 cat >>confdefs.h <<\_ACEOF
11195 #define HAVE_MOTIF_2_1 1
11196 _ACEOF
11198 echo "$as_me:$LINENO: checking for XpCreateContext in -lXp" >&5
11199 echo $ECHO_N "checking for XpCreateContext in -lXp... $ECHO_C" >&6
11200 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then
11201 echo $ECHO_N "(cached) $ECHO_C" >&6
11202 else
11203 ac_check_lib_save_LIBS=$LIBS
11204 LIBS="-lXp $LIBS"
11205 cat >conftest.$ac_ext <<_ACEOF
11206 /* confdefs.h. */
11207 _ACEOF
11208 cat confdefs.h >>conftest.$ac_ext
11209 cat >>conftest.$ac_ext <<_ACEOF
11210 /* end confdefs.h. */
11212 /* Override any gcc2 internal prototype to avoid an error. */
11213 #ifdef __cplusplus
11214 extern "C"
11215 #endif
11216 /* We use char because int might match the return type of a gcc2
11217 builtin and then its argument prototype would still apply. */
11218 char XpCreateContext ();
11220 main ()
11222 XpCreateContext ();
11224 return 0;
11226 _ACEOF
11227 rm -f conftest.$ac_objext conftest$ac_exeext
11228 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11229 (eval $ac_link) 2>conftest.er1
11230 ac_status=$?
11231 grep -v '^ *+' conftest.er1 >conftest.err
11232 rm -f conftest.er1
11233 cat conftest.err >&5
11234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11235 (exit $ac_status); } &&
11236 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11238 (eval $ac_try) 2>&5
11239 ac_status=$?
11240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11241 (exit $ac_status); }; } &&
11242 { ac_try='test -s conftest$ac_exeext'
11243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11244 (eval $ac_try) 2>&5
11245 ac_status=$?
11246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11247 (exit $ac_status); }; }; then
11248 ac_cv_lib_Xp_XpCreateContext=yes
11249 else
11250 echo "$as_me: failed program was:" >&5
11251 sed 's/^/| /' conftest.$ac_ext >&5
11253 ac_cv_lib_Xp_XpCreateContext=no
11255 rm -f conftest.err conftest.$ac_objext \
11256 conftest$ac_exeext conftest.$ac_ext
11257 LIBS=$ac_check_lib_save_LIBS
11259 echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpCreateContext" >&5
11260 echo "${ECHO_T}$ac_cv_lib_Xp_XpCreateContext" >&6
11261 if test $ac_cv_lib_Xp_XpCreateContext = yes; then
11262 HAVE_LIBXP=yes
11265 if test ${HAVE_LIBXP} = yes; then
11267 cat >>confdefs.h <<\_ACEOF
11268 #define HAVE_LIBXP 1
11269 _ACEOF
11272 else
11273 echo "$as_me:$LINENO: checking for LessTif where some systems put it" >&5
11274 echo $ECHO_N "checking for LessTif where some systems put it... $ECHO_C" >&6
11275 if test "${emacs_cv_lesstif+set}" = set; then
11276 echo $ECHO_N "(cached) $ECHO_C" >&6
11277 else
11278 # We put this in CFLAGS temporarily to precede other -I options
11279 # that might be in CFLAGS temporarily.
11280 # We put this in CPPFLAGS where it precedes the other -I options.
11281 OLD_CPPFLAGS=$CPPFLAGS
11282 OLD_CFLAGS=$CFLAGS
11283 CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
11284 CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
11285 cat >conftest.$ac_ext <<_ACEOF
11286 /* confdefs.h. */
11287 _ACEOF
11288 cat confdefs.h >>conftest.$ac_ext
11289 cat >>conftest.$ac_ext <<_ACEOF
11290 /* end confdefs.h. */
11291 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
11293 main ()
11295 int x = 5;
11297 return 0;
11299 _ACEOF
11300 rm -f conftest.$ac_objext
11301 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11302 (eval $ac_compile) 2>conftest.er1
11303 ac_status=$?
11304 grep -v '^ *+' conftest.er1 >conftest.err
11305 rm -f conftest.er1
11306 cat conftest.err >&5
11307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11308 (exit $ac_status); } &&
11309 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11311 (eval $ac_try) 2>&5
11312 ac_status=$?
11313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11314 (exit $ac_status); }; } &&
11315 { ac_try='test -s conftest.$ac_objext'
11316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11317 (eval $ac_try) 2>&5
11318 ac_status=$?
11319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11320 (exit $ac_status); }; }; then
11321 emacs_cv_lesstif=yes
11322 else
11323 echo "$as_me: failed program was:" >&5
11324 sed 's/^/| /' conftest.$ac_ext >&5
11326 emacs_cv_lesstif=no
11328 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11330 echo "$as_me:$LINENO: result: $emacs_cv_lesstif" >&5
11331 echo "${ECHO_T}$emacs_cv_lesstif" >&6
11332 if test $emacs_cv_lesstif = yes; then
11333 # Make sure this -I option remains in CPPFLAGS after it is set
11334 # back to REAL_CPPFLAGS.
11335 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
11336 # have those other -I options anyway. Ultimately, having this
11337 # directory ultimately in CPPFLAGS will be enough.
11338 REAL_CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
11339 LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
11340 else
11341 CFLAGS=$OLD_CFLAGS
11342 CPPFLAGS=$OLD_CPPFLAGS
11347 ### Is -lXaw3d available?
11348 HAVE_XAW3D=no
11349 if test "${HAVE_X11}" = "yes"; then
11350 if test "${USE_X_TOOLKIT}" != "none" && test "${with_toolkit_scroll_bars}" != "no"; then
11351 echo "$as_me:$LINENO: checking for X11/Xaw3d/Scrollbar.h" >&5
11352 echo $ECHO_N "checking for X11/Xaw3d/Scrollbar.h... $ECHO_C" >&6
11353 if test "${ac_cv_header_X11_Xaw3d_Scrollbar_h+set}" = set; then
11354 echo $ECHO_N "(cached) $ECHO_C" >&6
11355 else
11356 cat >conftest.$ac_ext <<_ACEOF
11357 /* confdefs.h. */
11358 _ACEOF
11359 cat confdefs.h >>conftest.$ac_ext
11360 cat >>conftest.$ac_ext <<_ACEOF
11361 /* end confdefs.h. */
11362 #include <X11/Xaw3d/Scrollbar.h>
11363 _ACEOF
11364 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11365 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11366 ac_status=$?
11367 grep -v '^ *+' conftest.er1 >conftest.err
11368 rm -f conftest.er1
11369 cat conftest.err >&5
11370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11371 (exit $ac_status); } >/dev/null; then
11372 if test -s conftest.err; then
11373 ac_cpp_err=$ac_c_preproc_warn_flag
11374 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11375 else
11376 ac_cpp_err=
11378 else
11379 ac_cpp_err=yes
11381 if test -z "$ac_cpp_err"; then
11382 ac_cv_header_X11_Xaw3d_Scrollbar_h=yes
11383 else
11384 echo "$as_me: failed program was:" >&5
11385 sed 's/^/| /' conftest.$ac_ext >&5
11387 ac_cv_header_X11_Xaw3d_Scrollbar_h=no
11389 rm -f conftest.err conftest.$ac_ext
11391 echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xaw3d_Scrollbar_h" >&5
11392 echo "${ECHO_T}$ac_cv_header_X11_Xaw3d_Scrollbar_h" >&6
11393 if test $ac_cv_header_X11_Xaw3d_Scrollbar_h = yes; then
11394 echo "$as_me:$LINENO: checking for XawScrollbarSetThumb in -lXaw3d" >&5
11395 echo $ECHO_N "checking for XawScrollbarSetThumb in -lXaw3d... $ECHO_C" >&6
11396 if test "${ac_cv_lib_Xaw3d_XawScrollbarSetThumb+set}" = set; then
11397 echo $ECHO_N "(cached) $ECHO_C" >&6
11398 else
11399 ac_check_lib_save_LIBS=$LIBS
11400 LIBS="-lXaw3d $LIBS"
11401 cat >conftest.$ac_ext <<_ACEOF
11402 /* confdefs.h. */
11403 _ACEOF
11404 cat confdefs.h >>conftest.$ac_ext
11405 cat >>conftest.$ac_ext <<_ACEOF
11406 /* end confdefs.h. */
11408 /* Override any gcc2 internal prototype to avoid an error. */
11409 #ifdef __cplusplus
11410 extern "C"
11411 #endif
11412 /* We use char because int might match the return type of a gcc2
11413 builtin and then its argument prototype would still apply. */
11414 char XawScrollbarSetThumb ();
11416 main ()
11418 XawScrollbarSetThumb ();
11420 return 0;
11422 _ACEOF
11423 rm -f conftest.$ac_objext conftest$ac_exeext
11424 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11425 (eval $ac_link) 2>conftest.er1
11426 ac_status=$?
11427 grep -v '^ *+' conftest.er1 >conftest.err
11428 rm -f conftest.er1
11429 cat conftest.err >&5
11430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11431 (exit $ac_status); } &&
11432 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11434 (eval $ac_try) 2>&5
11435 ac_status=$?
11436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11437 (exit $ac_status); }; } &&
11438 { ac_try='test -s conftest$ac_exeext'
11439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11440 (eval $ac_try) 2>&5
11441 ac_status=$?
11442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11443 (exit $ac_status); }; }; then
11444 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=yes
11445 else
11446 echo "$as_me: failed program was:" >&5
11447 sed 's/^/| /' conftest.$ac_ext >&5
11449 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=no
11451 rm -f conftest.err conftest.$ac_objext \
11452 conftest$ac_exeext conftest.$ac_ext
11453 LIBS=$ac_check_lib_save_LIBS
11455 echo "$as_me:$LINENO: result: $ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&5
11456 echo "${ECHO_T}$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&6
11457 if test $ac_cv_lib_Xaw3d_XawScrollbarSetThumb = yes; then
11458 HAVE_XAW3D=yes
11464 if test "${HAVE_XAW3D}" = "yes"; then
11466 cat >>confdefs.h <<\_ACEOF
11467 #define HAVE_XAW3D 1
11468 _ACEOF
11476 USE_TOOLKIT_SCROLL_BARS=no
11477 if test "${with_toolkit_scroll_bars}" != "no"; then
11478 if test "${USE_X_TOOLKIT}" != "none"; then
11479 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
11480 cat >>confdefs.h <<\_ACEOF
11481 #define USE_TOOLKIT_SCROLL_BARS 1
11482 _ACEOF
11484 HAVE_XAW3D=no
11485 USE_TOOLKIT_SCROLL_BARS=yes
11486 elif test "${HAVE_XAW3D}" = "yes"; then
11487 cat >>confdefs.h <<\_ACEOF
11488 #define USE_TOOLKIT_SCROLL_BARS 1
11489 _ACEOF
11491 USE_TOOLKIT_SCROLL_BARS=yes
11493 elif test "${HAVE_GTK}" = "yes"; then
11494 cat >>confdefs.h <<\_ACEOF
11495 #define USE_TOOLKIT_SCROLL_BARS 1
11496 _ACEOF
11498 USE_TOOLKIT_SCROLL_BARS=yes
11499 elif test "${HAVE_CARBON}" = "yes"; then
11500 cat >>confdefs.h <<\_ACEOF
11501 #define USE_TOOLKIT_SCROLL_BARS 1
11502 _ACEOF
11504 USE_TOOLKIT_SCROLL_BARS=yes
11508 cat >conftest.$ac_ext <<_ACEOF
11509 /* confdefs.h. */
11510 _ACEOF
11511 cat confdefs.h >>conftest.$ac_ext
11512 cat >>conftest.$ac_ext <<_ACEOF
11513 /* end confdefs.h. */
11515 #include <X11/Xlib.h>
11516 #include <X11/Xresource.h>
11518 main ()
11520 XIMProc callback;
11522 return 0;
11524 _ACEOF
11525 rm -f conftest.$ac_objext
11526 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11527 (eval $ac_compile) 2>conftest.er1
11528 ac_status=$?
11529 grep -v '^ *+' conftest.er1 >conftest.err
11530 rm -f conftest.er1
11531 cat conftest.err >&5
11532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11533 (exit $ac_status); } &&
11534 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11536 (eval $ac_try) 2>&5
11537 ac_status=$?
11538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11539 (exit $ac_status); }; } &&
11540 { ac_try='test -s conftest.$ac_objext'
11541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11542 (eval $ac_try) 2>&5
11543 ac_status=$?
11544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11545 (exit $ac_status); }; }; then
11546 HAVE_XIM=yes
11548 cat >>confdefs.h <<\_ACEOF
11549 #define HAVE_XIM 1
11550 _ACEOF
11552 else
11553 echo "$as_me: failed program was:" >&5
11554 sed 's/^/| /' conftest.$ac_ext >&5
11556 HAVE_XIM=no
11558 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11561 if test "${with_xim}" != "no"; then
11563 cat >>confdefs.h <<\_ACEOF
11564 #define USE_XIM 1
11565 _ACEOF
11570 if test "${HAVE_XIM}" != "no"; then
11571 late_CFLAGS=$CFLAGS
11572 if test "$GCC" = yes; then
11573 CFLAGS="$CFLAGS --pedantic-errors"
11575 cat >conftest.$ac_ext <<_ACEOF
11576 /* confdefs.h. */
11577 _ACEOF
11578 cat confdefs.h >>conftest.$ac_ext
11579 cat >>conftest.$ac_ext <<_ACEOF
11580 /* end confdefs.h. */
11582 #include <X11/Xlib.h>
11583 #include <X11/Xresource.h>
11585 main ()
11587 Display *display;
11588 XrmDatabase db;
11589 char *res_name;
11590 char *res_class;
11591 XIMProc callback;
11592 XPointer *client_data;
11593 #ifndef __GNUC__
11594 /* If we're not using GCC, it's probably not XFree86, and this is
11595 probably right, but we can't use something like --pedantic-errors. */
11596 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
11597 char*, XIMProc, XPointer*);
11598 #endif
11599 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
11600 client_data);
11602 return 0;
11604 _ACEOF
11605 rm -f conftest.$ac_objext
11606 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11607 (eval $ac_compile) 2>conftest.er1
11608 ac_status=$?
11609 grep -v '^ *+' conftest.er1 >conftest.err
11610 rm -f conftest.er1
11611 cat conftest.err >&5
11612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11613 (exit $ac_status); } &&
11614 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11616 (eval $ac_try) 2>&5
11617 ac_status=$?
11618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11619 (exit $ac_status); }; } &&
11620 { ac_try='test -s conftest.$ac_objext'
11621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11622 (eval $ac_try) 2>&5
11623 ac_status=$?
11624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11625 (exit $ac_status); }; }; then
11626 emacs_cv_arg6_star=yes
11627 else
11628 echo "$as_me: failed program was:" >&5
11629 sed 's/^/| /' conftest.$ac_ext >&5
11632 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11634 if test "$emacs_cv_arg6_star" = yes; then
11635 cat >>confdefs.h <<\_ACEOF
11636 #define XRegisterIMInstantiateCallback_arg6 XPointer*
11637 _ACEOF
11639 else
11640 cat >>confdefs.h <<\_ACEOF
11641 #define XRegisterIMInstantiateCallback_arg6 XPointer
11642 _ACEOF
11645 CFLAGS=$late_CFLAGS
11648 ### Use -lXpm if available, unless `--with-xpm=no'.
11649 HAVE_XPM=no
11650 if test "${HAVE_X11}" = "yes"; then
11651 if test "${with_xpm}" != "no"; then
11652 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
11653 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
11654 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
11655 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
11656 echo $ECHO_N "(cached) $ECHO_C" >&6
11658 echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
11659 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
11660 else
11661 # Is the header compilable?
11662 echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
11663 echo $ECHO_N "checking X11/xpm.h usability... $ECHO_C" >&6
11664 cat >conftest.$ac_ext <<_ACEOF
11665 /* confdefs.h. */
11666 _ACEOF
11667 cat confdefs.h >>conftest.$ac_ext
11668 cat >>conftest.$ac_ext <<_ACEOF
11669 /* end confdefs.h. */
11670 $ac_includes_default
11671 #include <X11/xpm.h>
11672 _ACEOF
11673 rm -f conftest.$ac_objext
11674 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11675 (eval $ac_compile) 2>conftest.er1
11676 ac_status=$?
11677 grep -v '^ *+' conftest.er1 >conftest.err
11678 rm -f conftest.er1
11679 cat conftest.err >&5
11680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11681 (exit $ac_status); } &&
11682 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11684 (eval $ac_try) 2>&5
11685 ac_status=$?
11686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11687 (exit $ac_status); }; } &&
11688 { ac_try='test -s conftest.$ac_objext'
11689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11690 (eval $ac_try) 2>&5
11691 ac_status=$?
11692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11693 (exit $ac_status); }; }; then
11694 ac_header_compiler=yes
11695 else
11696 echo "$as_me: failed program was:" >&5
11697 sed 's/^/| /' conftest.$ac_ext >&5
11699 ac_header_compiler=no
11701 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11702 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11703 echo "${ECHO_T}$ac_header_compiler" >&6
11705 # Is the header present?
11706 echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
11707 echo $ECHO_N "checking X11/xpm.h presence... $ECHO_C" >&6
11708 cat >conftest.$ac_ext <<_ACEOF
11709 /* confdefs.h. */
11710 _ACEOF
11711 cat confdefs.h >>conftest.$ac_ext
11712 cat >>conftest.$ac_ext <<_ACEOF
11713 /* end confdefs.h. */
11714 #include <X11/xpm.h>
11715 _ACEOF
11716 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11717 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11718 ac_status=$?
11719 grep -v '^ *+' conftest.er1 >conftest.err
11720 rm -f conftest.er1
11721 cat conftest.err >&5
11722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11723 (exit $ac_status); } >/dev/null; then
11724 if test -s conftest.err; then
11725 ac_cpp_err=$ac_c_preproc_warn_flag
11726 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11727 else
11728 ac_cpp_err=
11730 else
11731 ac_cpp_err=yes
11733 if test -z "$ac_cpp_err"; then
11734 ac_header_preproc=yes
11735 else
11736 echo "$as_me: failed program was:" >&5
11737 sed 's/^/| /' conftest.$ac_ext >&5
11739 ac_header_preproc=no
11741 rm -f conftest.err conftest.$ac_ext
11742 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11743 echo "${ECHO_T}$ac_header_preproc" >&6
11745 # So? What about this header?
11746 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11747 yes:no: )
11748 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
11749 echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11750 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the compiler's result" >&5
11751 echo "$as_me: WARNING: X11/xpm.h: proceeding with the compiler's result" >&2;}
11752 ac_header_preproc=yes
11754 no:yes:* )
11755 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
11756 echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
11757 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5
11758 echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;}
11759 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: see the Autoconf documentation" >&5
11760 echo "$as_me: WARNING: X11/xpm.h: see the Autoconf documentation" >&2;}
11761 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&5
11762 echo "$as_me: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
11763 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
11764 echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
11765 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&5
11766 echo "$as_me: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&2;}
11768 cat <<\_ASBOX
11769 ## ------------------------------------------ ##
11770 ## Report this to the AC_PACKAGE_NAME lists. ##
11771 ## ------------------------------------------ ##
11772 _ASBOX
11774 sed "s/^/$as_me: WARNING: /" >&2
11776 esac
11777 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
11778 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
11779 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
11780 echo $ECHO_N "(cached) $ECHO_C" >&6
11781 else
11782 ac_cv_header_X11_xpm_h=$ac_header_preproc
11784 echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
11785 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
11788 if test $ac_cv_header_X11_xpm_h = yes; then
11789 echo "$as_me:$LINENO: checking for XpmReadFileToPixmap in -lXpm" >&5
11790 echo $ECHO_N "checking for XpmReadFileToPixmap in -lXpm... $ECHO_C" >&6
11791 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
11792 echo $ECHO_N "(cached) $ECHO_C" >&6
11793 else
11794 ac_check_lib_save_LIBS=$LIBS
11795 LIBS="-lXpm -lX11 $LIBS"
11796 cat >conftest.$ac_ext <<_ACEOF
11797 /* confdefs.h. */
11798 _ACEOF
11799 cat confdefs.h >>conftest.$ac_ext
11800 cat >>conftest.$ac_ext <<_ACEOF
11801 /* end confdefs.h. */
11803 /* Override any gcc2 internal prototype to avoid an error. */
11804 #ifdef __cplusplus
11805 extern "C"
11806 #endif
11807 /* We use char because int might match the return type of a gcc2
11808 builtin and then its argument prototype would still apply. */
11809 char XpmReadFileToPixmap ();
11811 main ()
11813 XpmReadFileToPixmap ();
11815 return 0;
11817 _ACEOF
11818 rm -f conftest.$ac_objext conftest$ac_exeext
11819 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11820 (eval $ac_link) 2>conftest.er1
11821 ac_status=$?
11822 grep -v '^ *+' conftest.er1 >conftest.err
11823 rm -f conftest.er1
11824 cat conftest.err >&5
11825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11826 (exit $ac_status); } &&
11827 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11829 (eval $ac_try) 2>&5
11830 ac_status=$?
11831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11832 (exit $ac_status); }; } &&
11833 { ac_try='test -s conftest$ac_exeext'
11834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11835 (eval $ac_try) 2>&5
11836 ac_status=$?
11837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11838 (exit $ac_status); }; }; then
11839 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
11840 else
11841 echo "$as_me: failed program was:" >&5
11842 sed 's/^/| /' conftest.$ac_ext >&5
11844 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
11846 rm -f conftest.err conftest.$ac_objext \
11847 conftest$ac_exeext conftest.$ac_ext
11848 LIBS=$ac_check_lib_save_LIBS
11850 echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
11851 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6
11852 if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
11853 HAVE_XPM=yes
11859 if test "${HAVE_XPM}" = "yes"; then
11860 echo "$as_me:$LINENO: checking for XpmReturnAllocPixels preprocessor define" >&5
11861 echo $ECHO_N "checking for XpmReturnAllocPixels preprocessor define... $ECHO_C" >&6
11862 cat >conftest.$ac_ext <<_ACEOF
11863 /* confdefs.h. */
11864 _ACEOF
11865 cat confdefs.h >>conftest.$ac_ext
11866 cat >>conftest.$ac_ext <<_ACEOF
11867 /* end confdefs.h. */
11868 #include "X11/xpm.h"
11869 #ifndef XpmReturnAllocPixels
11870 no_return_alloc_pixels
11871 #endif
11873 _ACEOF
11874 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11875 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then
11876 HAVE_XPM=no
11877 else
11878 HAVE_XPM=yes
11880 rm -f conftest*
11883 if test "${HAVE_XPM}" = "yes"; then
11884 echo "$as_me:$LINENO: result: yes" >&5
11885 echo "${ECHO_T}yes" >&6
11886 else
11887 echo "$as_me:$LINENO: result: no" >&5
11888 echo "${ECHO_T}no" >&6
11893 if test "${HAVE_XPM}" = "yes"; then
11895 cat >>confdefs.h <<\_ACEOF
11896 #define HAVE_XPM 1
11897 _ACEOF
11902 ### Use -ljpeg if available, unless `--with-jpeg=no'.
11903 HAVE_JPEG=no
11904 if test "${HAVE_X11}" = "yes"; then
11905 if test "${with_jpeg}" != "no"; then
11906 if test "${ac_cv_header_jerror_h+set}" = set; then
11907 echo "$as_me:$LINENO: checking for jerror.h" >&5
11908 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6
11909 if test "${ac_cv_header_jerror_h+set}" = set; then
11910 echo $ECHO_N "(cached) $ECHO_C" >&6
11912 echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
11913 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6
11914 else
11915 # Is the header compilable?
11916 echo "$as_me:$LINENO: checking jerror.h usability" >&5
11917 echo $ECHO_N "checking jerror.h usability... $ECHO_C" >&6
11918 cat >conftest.$ac_ext <<_ACEOF
11919 /* confdefs.h. */
11920 _ACEOF
11921 cat confdefs.h >>conftest.$ac_ext
11922 cat >>conftest.$ac_ext <<_ACEOF
11923 /* end confdefs.h. */
11924 $ac_includes_default
11925 #include <jerror.h>
11926 _ACEOF
11927 rm -f conftest.$ac_objext
11928 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11929 (eval $ac_compile) 2>conftest.er1
11930 ac_status=$?
11931 grep -v '^ *+' conftest.er1 >conftest.err
11932 rm -f conftest.er1
11933 cat conftest.err >&5
11934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11935 (exit $ac_status); } &&
11936 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11938 (eval $ac_try) 2>&5
11939 ac_status=$?
11940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11941 (exit $ac_status); }; } &&
11942 { ac_try='test -s conftest.$ac_objext'
11943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11944 (eval $ac_try) 2>&5
11945 ac_status=$?
11946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11947 (exit $ac_status); }; }; then
11948 ac_header_compiler=yes
11949 else
11950 echo "$as_me: failed program was:" >&5
11951 sed 's/^/| /' conftest.$ac_ext >&5
11953 ac_header_compiler=no
11955 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11956 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11957 echo "${ECHO_T}$ac_header_compiler" >&6
11959 # Is the header present?
11960 echo "$as_me:$LINENO: checking jerror.h presence" >&5
11961 echo $ECHO_N "checking jerror.h presence... $ECHO_C" >&6
11962 cat >conftest.$ac_ext <<_ACEOF
11963 /* confdefs.h. */
11964 _ACEOF
11965 cat confdefs.h >>conftest.$ac_ext
11966 cat >>conftest.$ac_ext <<_ACEOF
11967 /* end confdefs.h. */
11968 #include <jerror.h>
11969 _ACEOF
11970 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11971 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11972 ac_status=$?
11973 grep -v '^ *+' conftest.er1 >conftest.err
11974 rm -f conftest.er1
11975 cat conftest.err >&5
11976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11977 (exit $ac_status); } >/dev/null; then
11978 if test -s conftest.err; then
11979 ac_cpp_err=$ac_c_preproc_warn_flag
11980 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11981 else
11982 ac_cpp_err=
11984 else
11985 ac_cpp_err=yes
11987 if test -z "$ac_cpp_err"; then
11988 ac_header_preproc=yes
11989 else
11990 echo "$as_me: failed program was:" >&5
11991 sed 's/^/| /' conftest.$ac_ext >&5
11993 ac_header_preproc=no
11995 rm -f conftest.err conftest.$ac_ext
11996 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11997 echo "${ECHO_T}$ac_header_preproc" >&6
11999 # So? What about this header?
12000 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12001 yes:no: )
12002 { echo "$as_me:$LINENO: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&5
12003 echo "$as_me: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12004 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the compiler's result" >&5
12005 echo "$as_me: WARNING: jerror.h: proceeding with the compiler's result" >&2;}
12006 ac_header_preproc=yes
12008 no:yes:* )
12009 { echo "$as_me:$LINENO: WARNING: jerror.h: present but cannot be compiled" >&5
12010 echo "$as_me: WARNING: jerror.h: present but cannot be compiled" >&2;}
12011 { echo "$as_me:$LINENO: WARNING: jerror.h: check for missing prerequisite headers?" >&5
12012 echo "$as_me: WARNING: jerror.h: check for missing prerequisite headers?" >&2;}
12013 { echo "$as_me:$LINENO: WARNING: jerror.h: see the Autoconf documentation" >&5
12014 echo "$as_me: WARNING: jerror.h: see the Autoconf documentation" >&2;}
12015 { echo "$as_me:$LINENO: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&5
12016 echo "$as_me: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&2;}
12017 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result" >&5
12018 echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result" >&2;}
12019 { echo "$as_me:$LINENO: WARNING: jerror.h: in the future, the compiler will take precedence" >&5
12020 echo "$as_me: WARNING: jerror.h: in the future, the compiler will take precedence" >&2;}
12022 cat <<\_ASBOX
12023 ## ------------------------------------------ ##
12024 ## Report this to the AC_PACKAGE_NAME lists. ##
12025 ## ------------------------------------------ ##
12026 _ASBOX
12028 sed "s/^/$as_me: WARNING: /" >&2
12030 esac
12031 echo "$as_me:$LINENO: checking for jerror.h" >&5
12032 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6
12033 if test "${ac_cv_header_jerror_h+set}" = set; then
12034 echo $ECHO_N "(cached) $ECHO_C" >&6
12035 else
12036 ac_cv_header_jerror_h=$ac_header_preproc
12038 echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
12039 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6
12042 if test $ac_cv_header_jerror_h = yes; then
12043 echo "$as_me:$LINENO: checking for jpeg_destroy_compress in -ljpeg" >&5
12044 echo $ECHO_N "checking for jpeg_destroy_compress in -ljpeg... $ECHO_C" >&6
12045 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
12046 echo $ECHO_N "(cached) $ECHO_C" >&6
12047 else
12048 ac_check_lib_save_LIBS=$LIBS
12049 LIBS="-ljpeg $LIBS"
12050 cat >conftest.$ac_ext <<_ACEOF
12051 /* confdefs.h. */
12052 _ACEOF
12053 cat confdefs.h >>conftest.$ac_ext
12054 cat >>conftest.$ac_ext <<_ACEOF
12055 /* end confdefs.h. */
12057 /* Override any gcc2 internal prototype to avoid an error. */
12058 #ifdef __cplusplus
12059 extern "C"
12060 #endif
12061 /* We use char because int might match the return type of a gcc2
12062 builtin and then its argument prototype would still apply. */
12063 char jpeg_destroy_compress ();
12065 main ()
12067 jpeg_destroy_compress ();
12069 return 0;
12071 _ACEOF
12072 rm -f conftest.$ac_objext conftest$ac_exeext
12073 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12074 (eval $ac_link) 2>conftest.er1
12075 ac_status=$?
12076 grep -v '^ *+' conftest.er1 >conftest.err
12077 rm -f conftest.er1
12078 cat conftest.err >&5
12079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12080 (exit $ac_status); } &&
12081 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12083 (eval $ac_try) 2>&5
12084 ac_status=$?
12085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12086 (exit $ac_status); }; } &&
12087 { ac_try='test -s conftest$ac_exeext'
12088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12089 (eval $ac_try) 2>&5
12090 ac_status=$?
12091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12092 (exit $ac_status); }; }; then
12093 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
12094 else
12095 echo "$as_me: failed program was:" >&5
12096 sed 's/^/| /' conftest.$ac_ext >&5
12098 ac_cv_lib_jpeg_jpeg_destroy_compress=no
12100 rm -f conftest.err conftest.$ac_objext \
12101 conftest$ac_exeext conftest.$ac_ext
12102 LIBS=$ac_check_lib_save_LIBS
12104 echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
12105 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6
12106 if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then
12107 HAVE_JPEG=yes
12116 if test "${HAVE_JPEG}" = "yes"; then
12117 cat >>confdefs.h <<\_ACEOF
12118 #define HAVE_JPEG 1
12119 _ACEOF
12121 cat >conftest.$ac_ext <<_ACEOF
12122 /* confdefs.h. */
12123 _ACEOF
12124 cat confdefs.h >>conftest.$ac_ext
12125 cat >>conftest.$ac_ext <<_ACEOF
12126 /* end confdefs.h. */
12127 #include <jpeglib.h>
12128 version=JPEG_LIB_VERSION
12130 _ACEOF
12131 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12132 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then
12133 cat >>confdefs.h <<\_ACEOF
12134 #define HAVE_JPEG 1
12135 _ACEOF
12137 else
12138 { echo "$as_me:$LINENO: WARNING: libjpeg found, but not version 6b or later" >&5
12139 echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
12140 HAVE_JPEG=no
12142 rm -f conftest*
12147 ### Use -lpng if available, unless `--with-png=no'.
12148 HAVE_PNG=no
12149 if test "${HAVE_X11}" = "yes"; then
12150 if test "${with_png}" != "no"; then
12151 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
12152 # in /usr/include/libpng.
12155 for ac_header in png.h libpng/png.h
12157 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12158 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12159 echo "$as_me:$LINENO: checking for $ac_header" >&5
12160 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12161 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12162 echo $ECHO_N "(cached) $ECHO_C" >&6
12164 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12165 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12166 else
12167 # Is the header compilable?
12168 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12169 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12170 cat >conftest.$ac_ext <<_ACEOF
12171 /* confdefs.h. */
12172 _ACEOF
12173 cat confdefs.h >>conftest.$ac_ext
12174 cat >>conftest.$ac_ext <<_ACEOF
12175 /* end confdefs.h. */
12176 $ac_includes_default
12177 #include <$ac_header>
12178 _ACEOF
12179 rm -f conftest.$ac_objext
12180 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12181 (eval $ac_compile) 2>conftest.er1
12182 ac_status=$?
12183 grep -v '^ *+' conftest.er1 >conftest.err
12184 rm -f conftest.er1
12185 cat conftest.err >&5
12186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12187 (exit $ac_status); } &&
12188 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12190 (eval $ac_try) 2>&5
12191 ac_status=$?
12192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12193 (exit $ac_status); }; } &&
12194 { ac_try='test -s conftest.$ac_objext'
12195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12196 (eval $ac_try) 2>&5
12197 ac_status=$?
12198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12199 (exit $ac_status); }; }; then
12200 ac_header_compiler=yes
12201 else
12202 echo "$as_me: failed program was:" >&5
12203 sed 's/^/| /' conftest.$ac_ext >&5
12205 ac_header_compiler=no
12207 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12208 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12209 echo "${ECHO_T}$ac_header_compiler" >&6
12211 # Is the header present?
12212 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12213 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12214 cat >conftest.$ac_ext <<_ACEOF
12215 /* confdefs.h. */
12216 _ACEOF
12217 cat confdefs.h >>conftest.$ac_ext
12218 cat >>conftest.$ac_ext <<_ACEOF
12219 /* end confdefs.h. */
12220 #include <$ac_header>
12221 _ACEOF
12222 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12223 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12224 ac_status=$?
12225 grep -v '^ *+' conftest.er1 >conftest.err
12226 rm -f conftest.er1
12227 cat conftest.err >&5
12228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12229 (exit $ac_status); } >/dev/null; then
12230 if test -s conftest.err; then
12231 ac_cpp_err=$ac_c_preproc_warn_flag
12232 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12233 else
12234 ac_cpp_err=
12236 else
12237 ac_cpp_err=yes
12239 if test -z "$ac_cpp_err"; then
12240 ac_header_preproc=yes
12241 else
12242 echo "$as_me: failed program was:" >&5
12243 sed 's/^/| /' conftest.$ac_ext >&5
12245 ac_header_preproc=no
12247 rm -f conftest.err conftest.$ac_ext
12248 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12249 echo "${ECHO_T}$ac_header_preproc" >&6
12251 # So? What about this header?
12252 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12253 yes:no: )
12254 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12255 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12256 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12257 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12258 ac_header_preproc=yes
12260 no:yes:* )
12261 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12262 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12263 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12264 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12265 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12266 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12267 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12268 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12269 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12270 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12271 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12272 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12274 cat <<\_ASBOX
12275 ## ------------------------------------------ ##
12276 ## Report this to the AC_PACKAGE_NAME lists. ##
12277 ## ------------------------------------------ ##
12278 _ASBOX
12280 sed "s/^/$as_me: WARNING: /" >&2
12282 esac
12283 echo "$as_me:$LINENO: checking for $ac_header" >&5
12284 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12285 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12286 echo $ECHO_N "(cached) $ECHO_C" >&6
12287 else
12288 eval "$as_ac_Header=\$ac_header_preproc"
12290 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12291 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12294 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12295 cat >>confdefs.h <<_ACEOF
12296 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12297 _ACEOF
12301 done
12303 if test "$ac_cv_header_png_h" = yes || test "$ac_cv_header_libpng_png_h" = yes ; then
12304 echo "$as_me:$LINENO: checking for png_get_channels in -lpng" >&5
12305 echo $ECHO_N "checking for png_get_channels in -lpng... $ECHO_C" >&6
12306 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then
12307 echo $ECHO_N "(cached) $ECHO_C" >&6
12308 else
12309 ac_check_lib_save_LIBS=$LIBS
12310 LIBS="-lpng -lz -lm $LIBS"
12311 cat >conftest.$ac_ext <<_ACEOF
12312 /* confdefs.h. */
12313 _ACEOF
12314 cat confdefs.h >>conftest.$ac_ext
12315 cat >>conftest.$ac_ext <<_ACEOF
12316 /* end confdefs.h. */
12318 /* Override any gcc2 internal prototype to avoid an error. */
12319 #ifdef __cplusplus
12320 extern "C"
12321 #endif
12322 /* We use char because int might match the return type of a gcc2
12323 builtin and then its argument prototype would still apply. */
12324 char png_get_channels ();
12326 main ()
12328 png_get_channels ();
12330 return 0;
12332 _ACEOF
12333 rm -f conftest.$ac_objext conftest$ac_exeext
12334 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12335 (eval $ac_link) 2>conftest.er1
12336 ac_status=$?
12337 grep -v '^ *+' conftest.er1 >conftest.err
12338 rm -f conftest.er1
12339 cat conftest.err >&5
12340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12341 (exit $ac_status); } &&
12342 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12344 (eval $ac_try) 2>&5
12345 ac_status=$?
12346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12347 (exit $ac_status); }; } &&
12348 { ac_try='test -s conftest$ac_exeext'
12349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12350 (eval $ac_try) 2>&5
12351 ac_status=$?
12352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12353 (exit $ac_status); }; }; then
12354 ac_cv_lib_png_png_get_channels=yes
12355 else
12356 echo "$as_me: failed program was:" >&5
12357 sed 's/^/| /' conftest.$ac_ext >&5
12359 ac_cv_lib_png_png_get_channels=no
12361 rm -f conftest.err conftest.$ac_objext \
12362 conftest$ac_exeext conftest.$ac_ext
12363 LIBS=$ac_check_lib_save_LIBS
12365 echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_get_channels" >&5
12366 echo "${ECHO_T}$ac_cv_lib_png_png_get_channels" >&6
12367 if test $ac_cv_lib_png_png_get_channels = yes; then
12368 HAVE_PNG=yes
12374 if test "${HAVE_PNG}" = "yes"; then
12376 cat >>confdefs.h <<\_ACEOF
12377 #define HAVE_PNG 1
12378 _ACEOF
12383 ### Use -ltiff if available, unless `--with-tiff=no'.
12384 HAVE_TIFF=no
12385 if test "${HAVE_X11}" = "yes"; then
12386 if test "${with_tiff}" != "no"; then
12387 if test "${ac_cv_header_tiffio_h+set}" = set; then
12388 echo "$as_me:$LINENO: checking for tiffio.h" >&5
12389 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
12390 if test "${ac_cv_header_tiffio_h+set}" = set; then
12391 echo $ECHO_N "(cached) $ECHO_C" >&6
12393 echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
12394 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
12395 else
12396 # Is the header compilable?
12397 echo "$as_me:$LINENO: checking tiffio.h usability" >&5
12398 echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6
12399 cat >conftest.$ac_ext <<_ACEOF
12400 /* confdefs.h. */
12401 _ACEOF
12402 cat confdefs.h >>conftest.$ac_ext
12403 cat >>conftest.$ac_ext <<_ACEOF
12404 /* end confdefs.h. */
12405 $ac_includes_default
12406 #include <tiffio.h>
12407 _ACEOF
12408 rm -f conftest.$ac_objext
12409 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12410 (eval $ac_compile) 2>conftest.er1
12411 ac_status=$?
12412 grep -v '^ *+' conftest.er1 >conftest.err
12413 rm -f conftest.er1
12414 cat conftest.err >&5
12415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12416 (exit $ac_status); } &&
12417 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12419 (eval $ac_try) 2>&5
12420 ac_status=$?
12421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12422 (exit $ac_status); }; } &&
12423 { ac_try='test -s conftest.$ac_objext'
12424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12425 (eval $ac_try) 2>&5
12426 ac_status=$?
12427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12428 (exit $ac_status); }; }; then
12429 ac_header_compiler=yes
12430 else
12431 echo "$as_me: failed program was:" >&5
12432 sed 's/^/| /' conftest.$ac_ext >&5
12434 ac_header_compiler=no
12436 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12437 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12438 echo "${ECHO_T}$ac_header_compiler" >&6
12440 # Is the header present?
12441 echo "$as_me:$LINENO: checking tiffio.h presence" >&5
12442 echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6
12443 cat >conftest.$ac_ext <<_ACEOF
12444 /* confdefs.h. */
12445 _ACEOF
12446 cat confdefs.h >>conftest.$ac_ext
12447 cat >>conftest.$ac_ext <<_ACEOF
12448 /* end confdefs.h. */
12449 #include <tiffio.h>
12450 _ACEOF
12451 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12452 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12453 ac_status=$?
12454 grep -v '^ *+' conftest.er1 >conftest.err
12455 rm -f conftest.er1
12456 cat conftest.err >&5
12457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12458 (exit $ac_status); } >/dev/null; then
12459 if test -s conftest.err; then
12460 ac_cpp_err=$ac_c_preproc_warn_flag
12461 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12462 else
12463 ac_cpp_err=
12465 else
12466 ac_cpp_err=yes
12468 if test -z "$ac_cpp_err"; then
12469 ac_header_preproc=yes
12470 else
12471 echo "$as_me: failed program was:" >&5
12472 sed 's/^/| /' conftest.$ac_ext >&5
12474 ac_header_preproc=no
12476 rm -f conftest.err conftest.$ac_ext
12477 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12478 echo "${ECHO_T}$ac_header_preproc" >&6
12480 # So? What about this header?
12481 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12482 yes:no: )
12483 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
12484 echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12485 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
12486 echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
12487 ac_header_preproc=yes
12489 no:yes:* )
12490 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
12491 echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
12492 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
12493 echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
12494 { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
12495 echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
12496 { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
12497 echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
12498 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
12499 echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
12500 { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
12501 echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
12503 cat <<\_ASBOX
12504 ## ------------------------------------------ ##
12505 ## Report this to the AC_PACKAGE_NAME lists. ##
12506 ## ------------------------------------------ ##
12507 _ASBOX
12509 sed "s/^/$as_me: WARNING: /" >&2
12511 esac
12512 echo "$as_me:$LINENO: checking for tiffio.h" >&5
12513 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
12514 if test "${ac_cv_header_tiffio_h+set}" = set; then
12515 echo $ECHO_N "(cached) $ECHO_C" >&6
12516 else
12517 ac_cv_header_tiffio_h=$ac_header_preproc
12519 echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
12520 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
12523 if test $ac_cv_header_tiffio_h = yes; then
12524 tifflibs="-lz -lm"
12525 # At least one tiff package requires the jpeg library.
12526 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
12527 echo "$as_me:$LINENO: checking for TIFFGetVersion in -ltiff" >&5
12528 echo $ECHO_N "checking for TIFFGetVersion in -ltiff... $ECHO_C" >&6
12529 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
12530 echo $ECHO_N "(cached) $ECHO_C" >&6
12531 else
12532 ac_check_lib_save_LIBS=$LIBS
12533 LIBS="-ltiff $tifflibs $LIBS"
12534 cat >conftest.$ac_ext <<_ACEOF
12535 /* confdefs.h. */
12536 _ACEOF
12537 cat confdefs.h >>conftest.$ac_ext
12538 cat >>conftest.$ac_ext <<_ACEOF
12539 /* end confdefs.h. */
12541 /* Override any gcc2 internal prototype to avoid an error. */
12542 #ifdef __cplusplus
12543 extern "C"
12544 #endif
12545 /* We use char because int might match the return type of a gcc2
12546 builtin and then its argument prototype would still apply. */
12547 char TIFFGetVersion ();
12549 main ()
12551 TIFFGetVersion ();
12553 return 0;
12555 _ACEOF
12556 rm -f conftest.$ac_objext conftest$ac_exeext
12557 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12558 (eval $ac_link) 2>conftest.er1
12559 ac_status=$?
12560 grep -v '^ *+' conftest.er1 >conftest.err
12561 rm -f conftest.er1
12562 cat conftest.err >&5
12563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12564 (exit $ac_status); } &&
12565 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12567 (eval $ac_try) 2>&5
12568 ac_status=$?
12569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12570 (exit $ac_status); }; } &&
12571 { ac_try='test -s conftest$ac_exeext'
12572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12573 (eval $ac_try) 2>&5
12574 ac_status=$?
12575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12576 (exit $ac_status); }; }; then
12577 ac_cv_lib_tiff_TIFFGetVersion=yes
12578 else
12579 echo "$as_me: failed program was:" >&5
12580 sed 's/^/| /' conftest.$ac_ext >&5
12582 ac_cv_lib_tiff_TIFFGetVersion=no
12584 rm -f conftest.err conftest.$ac_objext \
12585 conftest$ac_exeext conftest.$ac_ext
12586 LIBS=$ac_check_lib_save_LIBS
12588 echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
12589 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFGetVersion" >&6
12590 if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then
12591 HAVE_TIFF=yes
12599 if test "${HAVE_TIFF}" = "yes"; then
12601 cat >>confdefs.h <<\_ACEOF
12602 #define HAVE_TIFF 1
12603 _ACEOF
12608 ### Use -lgif if available, unless `--with-gif=no'.
12609 HAVE_GIF=no
12610 if test "${HAVE_X11}" = "yes"; then
12611 if test "${with_gif}" != "no"; then
12612 if test "${ac_cv_header_gif_lib_h+set}" = set; then
12613 echo "$as_me:$LINENO: checking for gif_lib.h" >&5
12614 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6
12615 if test "${ac_cv_header_gif_lib_h+set}" = set; then
12616 echo $ECHO_N "(cached) $ECHO_C" >&6
12618 echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
12619 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6
12620 else
12621 # Is the header compilable?
12622 echo "$as_me:$LINENO: checking gif_lib.h usability" >&5
12623 echo $ECHO_N "checking gif_lib.h usability... $ECHO_C" >&6
12624 cat >conftest.$ac_ext <<_ACEOF
12625 /* confdefs.h. */
12626 _ACEOF
12627 cat confdefs.h >>conftest.$ac_ext
12628 cat >>conftest.$ac_ext <<_ACEOF
12629 /* end confdefs.h. */
12630 $ac_includes_default
12631 #include <gif_lib.h>
12632 _ACEOF
12633 rm -f conftest.$ac_objext
12634 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12635 (eval $ac_compile) 2>conftest.er1
12636 ac_status=$?
12637 grep -v '^ *+' conftest.er1 >conftest.err
12638 rm -f conftest.er1
12639 cat conftest.err >&5
12640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12641 (exit $ac_status); } &&
12642 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12644 (eval $ac_try) 2>&5
12645 ac_status=$?
12646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12647 (exit $ac_status); }; } &&
12648 { ac_try='test -s conftest.$ac_objext'
12649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12650 (eval $ac_try) 2>&5
12651 ac_status=$?
12652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12653 (exit $ac_status); }; }; then
12654 ac_header_compiler=yes
12655 else
12656 echo "$as_me: failed program was:" >&5
12657 sed 's/^/| /' conftest.$ac_ext >&5
12659 ac_header_compiler=no
12661 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12662 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12663 echo "${ECHO_T}$ac_header_compiler" >&6
12665 # Is the header present?
12666 echo "$as_me:$LINENO: checking gif_lib.h presence" >&5
12667 echo $ECHO_N "checking gif_lib.h presence... $ECHO_C" >&6
12668 cat >conftest.$ac_ext <<_ACEOF
12669 /* confdefs.h. */
12670 _ACEOF
12671 cat confdefs.h >>conftest.$ac_ext
12672 cat >>conftest.$ac_ext <<_ACEOF
12673 /* end confdefs.h. */
12674 #include <gif_lib.h>
12675 _ACEOF
12676 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12677 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12678 ac_status=$?
12679 grep -v '^ *+' conftest.er1 >conftest.err
12680 rm -f conftest.er1
12681 cat conftest.err >&5
12682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12683 (exit $ac_status); } >/dev/null; then
12684 if test -s conftest.err; then
12685 ac_cpp_err=$ac_c_preproc_warn_flag
12686 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12687 else
12688 ac_cpp_err=
12690 else
12691 ac_cpp_err=yes
12693 if test -z "$ac_cpp_err"; then
12694 ac_header_preproc=yes
12695 else
12696 echo "$as_me: failed program was:" >&5
12697 sed 's/^/| /' conftest.$ac_ext >&5
12699 ac_header_preproc=no
12701 rm -f conftest.err conftest.$ac_ext
12702 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12703 echo "${ECHO_T}$ac_header_preproc" >&6
12705 # So? What about this header?
12706 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12707 yes:no: )
12708 { echo "$as_me:$LINENO: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&5
12709 echo "$as_me: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12710 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the compiler's result" >&5
12711 echo "$as_me: WARNING: gif_lib.h: proceeding with the compiler's result" >&2;}
12712 ac_header_preproc=yes
12714 no:yes:* )
12715 { echo "$as_me:$LINENO: WARNING: gif_lib.h: present but cannot be compiled" >&5
12716 echo "$as_me: WARNING: gif_lib.h: present but cannot be compiled" >&2;}
12717 { echo "$as_me:$LINENO: WARNING: gif_lib.h: check for missing prerequisite headers?" >&5
12718 echo "$as_me: WARNING: gif_lib.h: check for missing prerequisite headers?" >&2;}
12719 { echo "$as_me:$LINENO: WARNING: gif_lib.h: see the Autoconf documentation" >&5
12720 echo "$as_me: WARNING: gif_lib.h: see the Autoconf documentation" >&2;}
12721 { echo "$as_me:$LINENO: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&5
12722 echo "$as_me: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&2;}
12723 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5
12724 echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;}
12725 { echo "$as_me:$LINENO: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&5
12726 echo "$as_me: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&2;}
12728 cat <<\_ASBOX
12729 ## ------------------------------------------ ##
12730 ## Report this to the AC_PACKAGE_NAME lists. ##
12731 ## ------------------------------------------ ##
12732 _ASBOX
12734 sed "s/^/$as_me: WARNING: /" >&2
12736 esac
12737 echo "$as_me:$LINENO: checking for gif_lib.h" >&5
12738 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6
12739 if test "${ac_cv_header_gif_lib_h+set}" = set; then
12740 echo $ECHO_N "(cached) $ECHO_C" >&6
12741 else
12742 ac_cv_header_gif_lib_h=$ac_header_preproc
12744 echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
12745 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6
12748 if test $ac_cv_header_gif_lib_h = yes; then
12749 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
12750 # Earlier versions can crash Emacs.
12751 echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lungif" >&5
12752 echo $ECHO_N "checking for EGifPutExtensionLast in -lungif... $ECHO_C" >&6
12753 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then
12754 echo $ECHO_N "(cached) $ECHO_C" >&6
12755 else
12756 ac_check_lib_save_LIBS=$LIBS
12757 LIBS="-lungif $LIBS"
12758 cat >conftest.$ac_ext <<_ACEOF
12759 /* confdefs.h. */
12760 _ACEOF
12761 cat confdefs.h >>conftest.$ac_ext
12762 cat >>conftest.$ac_ext <<_ACEOF
12763 /* end confdefs.h. */
12765 /* Override any gcc2 internal prototype to avoid an error. */
12766 #ifdef __cplusplus
12767 extern "C"
12768 #endif
12769 /* We use char because int might match the return type of a gcc2
12770 builtin and then its argument prototype would still apply. */
12771 char EGifPutExtensionLast ();
12773 main ()
12775 EGifPutExtensionLast ();
12777 return 0;
12779 _ACEOF
12780 rm -f conftest.$ac_objext conftest$ac_exeext
12781 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12782 (eval $ac_link) 2>conftest.er1
12783 ac_status=$?
12784 grep -v '^ *+' conftest.er1 >conftest.err
12785 rm -f conftest.er1
12786 cat conftest.err >&5
12787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12788 (exit $ac_status); } &&
12789 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12791 (eval $ac_try) 2>&5
12792 ac_status=$?
12793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12794 (exit $ac_status); }; } &&
12795 { ac_try='test -s conftest$ac_exeext'
12796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12797 (eval $ac_try) 2>&5
12798 ac_status=$?
12799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12800 (exit $ac_status); }; }; then
12801 ac_cv_lib_ungif_EGifPutExtensionLast=yes
12802 else
12803 echo "$as_me: failed program was:" >&5
12804 sed 's/^/| /' conftest.$ac_ext >&5
12806 ac_cv_lib_ungif_EGifPutExtensionLast=no
12808 rm -f conftest.err conftest.$ac_objext \
12809 conftest$ac_exeext conftest.$ac_ext
12810 LIBS=$ac_check_lib_save_LIBS
12812 echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
12813 echo "${ECHO_T}$ac_cv_lib_ungif_EGifPutExtensionLast" >&6
12814 if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then
12815 HAVE_GIF=yes
12823 if test "${HAVE_GIF}" = "yes"; then
12825 cat >>confdefs.h <<\_ACEOF
12826 #define HAVE_GIF 1
12827 _ACEOF
12832 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
12833 echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
12834 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6
12835 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
12836 echo $ECHO_N "(cached) $ECHO_C" >&6
12838 echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
12839 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6
12840 else
12841 # Is the header compilable?
12842 echo "$as_me:$LINENO: checking malloc/malloc.h usability" >&5
12843 echo $ECHO_N "checking malloc/malloc.h usability... $ECHO_C" >&6
12844 cat >conftest.$ac_ext <<_ACEOF
12845 /* confdefs.h. */
12846 _ACEOF
12847 cat confdefs.h >>conftest.$ac_ext
12848 cat >>conftest.$ac_ext <<_ACEOF
12849 /* end confdefs.h. */
12850 $ac_includes_default
12851 #include <malloc/malloc.h>
12852 _ACEOF
12853 rm -f conftest.$ac_objext
12854 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12855 (eval $ac_compile) 2>conftest.er1
12856 ac_status=$?
12857 grep -v '^ *+' conftest.er1 >conftest.err
12858 rm -f conftest.er1
12859 cat conftest.err >&5
12860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12861 (exit $ac_status); } &&
12862 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12864 (eval $ac_try) 2>&5
12865 ac_status=$?
12866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12867 (exit $ac_status); }; } &&
12868 { ac_try='test -s conftest.$ac_objext'
12869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12870 (eval $ac_try) 2>&5
12871 ac_status=$?
12872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12873 (exit $ac_status); }; }; then
12874 ac_header_compiler=yes
12875 else
12876 echo "$as_me: failed program was:" >&5
12877 sed 's/^/| /' conftest.$ac_ext >&5
12879 ac_header_compiler=no
12881 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12882 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12883 echo "${ECHO_T}$ac_header_compiler" >&6
12885 # Is the header present?
12886 echo "$as_me:$LINENO: checking malloc/malloc.h presence" >&5
12887 echo $ECHO_N "checking malloc/malloc.h presence... $ECHO_C" >&6
12888 cat >conftest.$ac_ext <<_ACEOF
12889 /* confdefs.h. */
12890 _ACEOF
12891 cat confdefs.h >>conftest.$ac_ext
12892 cat >>conftest.$ac_ext <<_ACEOF
12893 /* end confdefs.h. */
12894 #include <malloc/malloc.h>
12895 _ACEOF
12896 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12897 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12898 ac_status=$?
12899 grep -v '^ *+' conftest.er1 >conftest.err
12900 rm -f conftest.er1
12901 cat conftest.err >&5
12902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12903 (exit $ac_status); } >/dev/null; then
12904 if test -s conftest.err; then
12905 ac_cpp_err=$ac_c_preproc_warn_flag
12906 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12907 else
12908 ac_cpp_err=
12910 else
12911 ac_cpp_err=yes
12913 if test -z "$ac_cpp_err"; then
12914 ac_header_preproc=yes
12915 else
12916 echo "$as_me: failed program was:" >&5
12917 sed 's/^/| /' conftest.$ac_ext >&5
12919 ac_header_preproc=no
12921 rm -f conftest.err conftest.$ac_ext
12922 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12923 echo "${ECHO_T}$ac_header_preproc" >&6
12925 # So? What about this header?
12926 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12927 yes:no: )
12928 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&5
12929 echo "$as_me: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12930 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&5
12931 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&2;}
12932 ac_header_preproc=yes
12934 no:yes:* )
12935 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: present but cannot be compiled" >&5
12936 echo "$as_me: WARNING: malloc/malloc.h: present but cannot be compiled" >&2;}
12937 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&5
12938 echo "$as_me: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&2;}
12939 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: see the Autoconf documentation" >&5
12940 echo "$as_me: WARNING: malloc/malloc.h: see the Autoconf documentation" >&2;}
12941 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&5
12942 echo "$as_me: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&2;}
12943 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&5
12944 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&2;}
12945 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&5
12946 echo "$as_me: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&2;}
12948 cat <<\_ASBOX
12949 ## ------------------------------------------ ##
12950 ## Report this to the AC_PACKAGE_NAME lists. ##
12951 ## ------------------------------------------ ##
12952 _ASBOX
12954 sed "s/^/$as_me: WARNING: /" >&2
12956 esac
12957 echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
12958 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6
12959 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
12960 echo $ECHO_N "(cached) $ECHO_C" >&6
12961 else
12962 ac_cv_header_malloc_malloc_h=$ac_header_preproc
12964 echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
12965 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6
12968 if test $ac_cv_header_malloc_malloc_h = yes; then
12970 cat >>confdefs.h <<\_ACEOF
12971 #define HAVE_MALLOC_MALLOC_H 1
12972 _ACEOF
12978 ### Use Mac OS X Carbon API to implement GUI.
12979 if test "${HAVE_CARBON}" = "yes"; then
12981 cat >>confdefs.h <<\_ACEOF
12982 #define HAVE_CARBON 1
12983 _ACEOF
12985 ## Specify the install directory
12986 carbon_appdir=
12987 if test "${carbon_appdir_x}" != ""; then
12988 case ${carbon_appdir_x} in
12989 y | ye | yes) carbon_appdir=/Applications ;;
12990 * ) carbon_appdir=${carbon_appdir_x} ;;
12991 esac
12993 # We also have mouse menus.
12994 HAVE_MENUS=yes
12996 tmp_CFLAGS="$CFLAGS"
12997 CFLAGS="$CFLAGS -framework Carbon"
12998 echo "$as_me:$LINENO: checking for CancelMenuTracking" >&5
12999 echo $ECHO_N "checking for CancelMenuTracking... $ECHO_C" >&6
13000 if test "${ac_cv_func_CancelMenuTracking+set}" = set; then
13001 echo $ECHO_N "(cached) $ECHO_C" >&6
13002 else
13003 cat >conftest.$ac_ext <<_ACEOF
13004 /* confdefs.h. */
13005 _ACEOF
13006 cat confdefs.h >>conftest.$ac_ext
13007 cat >>conftest.$ac_ext <<_ACEOF
13008 /* end confdefs.h. */
13009 /* Define CancelMenuTracking to an innocuous variant, in case <limits.h> declares CancelMenuTracking.
13010 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13011 #define CancelMenuTracking innocuous_CancelMenuTracking
13013 /* System header to define __stub macros and hopefully few prototypes,
13014 which can conflict with char CancelMenuTracking (); below.
13015 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13016 <limits.h> exists even on freestanding compilers. */
13018 #ifdef __STDC__
13019 # include <limits.h>
13020 #else
13021 # include <assert.h>
13022 #endif
13024 #undef CancelMenuTracking
13026 /* Override any gcc2 internal prototype to avoid an error. */
13027 #ifdef __cplusplus
13028 extern "C"
13030 #endif
13031 /* We use char because int might match the return type of a gcc2
13032 builtin and then its argument prototype would still apply. */
13033 char CancelMenuTracking ();
13034 /* The GNU C library defines this for functions which it implements
13035 to always fail with ENOSYS. Some functions are actually named
13036 something starting with __ and the normal name is an alias. */
13037 #if defined (__stub_CancelMenuTracking) || defined (__stub___CancelMenuTracking)
13038 choke me
13039 #else
13040 char (*f) () = CancelMenuTracking;
13041 #endif
13042 #ifdef __cplusplus
13044 #endif
13047 main ()
13049 return f != CancelMenuTracking;
13051 return 0;
13053 _ACEOF
13054 rm -f conftest.$ac_objext conftest$ac_exeext
13055 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13056 (eval $ac_link) 2>conftest.er1
13057 ac_status=$?
13058 grep -v '^ *+' conftest.er1 >conftest.err
13059 rm -f conftest.er1
13060 cat conftest.err >&5
13061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13062 (exit $ac_status); } &&
13063 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13065 (eval $ac_try) 2>&5
13066 ac_status=$?
13067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13068 (exit $ac_status); }; } &&
13069 { ac_try='test -s conftest$ac_exeext'
13070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13071 (eval $ac_try) 2>&5
13072 ac_status=$?
13073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13074 (exit $ac_status); }; }; then
13075 ac_cv_func_CancelMenuTracking=yes
13076 else
13077 echo "$as_me: failed program was:" >&5
13078 sed 's/^/| /' conftest.$ac_ext >&5
13080 ac_cv_func_CancelMenuTracking=no
13082 rm -f conftest.err conftest.$ac_objext \
13083 conftest$ac_exeext conftest.$ac_ext
13085 echo "$as_me:$LINENO: result: $ac_cv_func_CancelMenuTracking" >&5
13086 echo "${ECHO_T}$ac_cv_func_CancelMenuTracking" >&6
13087 if test $ac_cv_func_CancelMenuTracking = yes; then
13088 have_cmt=yes
13089 else
13090 have_cmt=no
13093 if test "$have_cmt" = yes; then
13095 cat >>confdefs.h <<\_ACEOF
13096 #define HAVE_CANCELMENUTRACKING 1
13097 _ACEOF
13100 CFLAGS="$tmp_CFLAGS"
13103 ### Use session management (-lSM -lICE) if available
13104 HAVE_X_SM=no
13105 if test "${HAVE_X11}" = "yes"; then
13106 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
13107 echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
13108 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6
13109 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
13110 echo $ECHO_N "(cached) $ECHO_C" >&6
13112 echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
13113 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6
13114 else
13115 # Is the header compilable?
13116 echo "$as_me:$LINENO: checking X11/SM/SMlib.h usability" >&5
13117 echo $ECHO_N "checking X11/SM/SMlib.h usability... $ECHO_C" >&6
13118 cat >conftest.$ac_ext <<_ACEOF
13119 /* confdefs.h. */
13120 _ACEOF
13121 cat confdefs.h >>conftest.$ac_ext
13122 cat >>conftest.$ac_ext <<_ACEOF
13123 /* end confdefs.h. */
13124 $ac_includes_default
13125 #include <X11/SM/SMlib.h>
13126 _ACEOF
13127 rm -f conftest.$ac_objext
13128 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13129 (eval $ac_compile) 2>conftest.er1
13130 ac_status=$?
13131 grep -v '^ *+' conftest.er1 >conftest.err
13132 rm -f conftest.er1
13133 cat conftest.err >&5
13134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13135 (exit $ac_status); } &&
13136 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13138 (eval $ac_try) 2>&5
13139 ac_status=$?
13140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13141 (exit $ac_status); }; } &&
13142 { ac_try='test -s conftest.$ac_objext'
13143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13144 (eval $ac_try) 2>&5
13145 ac_status=$?
13146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13147 (exit $ac_status); }; }; then
13148 ac_header_compiler=yes
13149 else
13150 echo "$as_me: failed program was:" >&5
13151 sed 's/^/| /' conftest.$ac_ext >&5
13153 ac_header_compiler=no
13155 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13156 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13157 echo "${ECHO_T}$ac_header_compiler" >&6
13159 # Is the header present?
13160 echo "$as_me:$LINENO: checking X11/SM/SMlib.h presence" >&5
13161 echo $ECHO_N "checking X11/SM/SMlib.h presence... $ECHO_C" >&6
13162 cat >conftest.$ac_ext <<_ACEOF
13163 /* confdefs.h. */
13164 _ACEOF
13165 cat confdefs.h >>conftest.$ac_ext
13166 cat >>conftest.$ac_ext <<_ACEOF
13167 /* end confdefs.h. */
13168 #include <X11/SM/SMlib.h>
13169 _ACEOF
13170 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13171 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13172 ac_status=$?
13173 grep -v '^ *+' conftest.er1 >conftest.err
13174 rm -f conftest.er1
13175 cat conftest.err >&5
13176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13177 (exit $ac_status); } >/dev/null; then
13178 if test -s conftest.err; then
13179 ac_cpp_err=$ac_c_preproc_warn_flag
13180 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13181 else
13182 ac_cpp_err=
13184 else
13185 ac_cpp_err=yes
13187 if test -z "$ac_cpp_err"; then
13188 ac_header_preproc=yes
13189 else
13190 echo "$as_me: failed program was:" >&5
13191 sed 's/^/| /' conftest.$ac_ext >&5
13193 ac_header_preproc=no
13195 rm -f conftest.err conftest.$ac_ext
13196 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13197 echo "${ECHO_T}$ac_header_preproc" >&6
13199 # So? What about this header?
13200 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13201 yes:no: )
13202 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
13203 echo "$as_me: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13204 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&5
13205 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&2;}
13206 ac_header_preproc=yes
13208 no:yes:* )
13209 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&5
13210 echo "$as_me: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&2;}
13211 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&5
13212 echo "$as_me: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&2;}
13213 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&5
13214 echo "$as_me: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&2;}
13215 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&5
13216 echo "$as_me: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
13217 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
13218 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;}
13219 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&5
13220 echo "$as_me: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&2;}
13222 cat <<\_ASBOX
13223 ## ------------------------------------------ ##
13224 ## Report this to the AC_PACKAGE_NAME lists. ##
13225 ## ------------------------------------------ ##
13226 _ASBOX
13228 sed "s/^/$as_me: WARNING: /" >&2
13230 esac
13231 echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
13232 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6
13233 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
13234 echo $ECHO_N "(cached) $ECHO_C" >&6
13235 else
13236 ac_cv_header_X11_SM_SMlib_h=$ac_header_preproc
13238 echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
13239 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6
13242 if test $ac_cv_header_X11_SM_SMlib_h = yes; then
13243 echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
13244 echo $ECHO_N "checking for SmcOpenConnection in -lSM... $ECHO_C" >&6
13245 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
13246 echo $ECHO_N "(cached) $ECHO_C" >&6
13247 else
13248 ac_check_lib_save_LIBS=$LIBS
13249 LIBS="-lSM -lICE $LIBS"
13250 cat >conftest.$ac_ext <<_ACEOF
13251 /* confdefs.h. */
13252 _ACEOF
13253 cat confdefs.h >>conftest.$ac_ext
13254 cat >>conftest.$ac_ext <<_ACEOF
13255 /* end confdefs.h. */
13257 /* Override any gcc2 internal prototype to avoid an error. */
13258 #ifdef __cplusplus
13259 extern "C"
13260 #endif
13261 /* We use char because int might match the return type of a gcc2
13262 builtin and then its argument prototype would still apply. */
13263 char SmcOpenConnection ();
13265 main ()
13267 SmcOpenConnection ();
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 ac_cv_lib_SM_SmcOpenConnection=yes
13294 else
13295 echo "$as_me: failed program was:" >&5
13296 sed 's/^/| /' conftest.$ac_ext >&5
13298 ac_cv_lib_SM_SmcOpenConnection=no
13300 rm -f conftest.err conftest.$ac_objext \
13301 conftest$ac_exeext conftest.$ac_ext
13302 LIBS=$ac_check_lib_save_LIBS
13304 echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
13305 echo "${ECHO_T}$ac_cv_lib_SM_SmcOpenConnection" >&6
13306 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
13307 HAVE_X_SM=yes
13314 if test "${HAVE_X_SM}" = "yes"; then
13316 cat >>confdefs.h <<\_ACEOF
13317 #define HAVE_X_SM 1
13318 _ACEOF
13320 case "$LIBS" in
13321 *-lSM*) ;;
13322 *) LIBS="-lSM -lICE $LIBS" ;;
13323 esac
13327 # If netdb.h doesn't declare h_errno, we must declare it by hand.
13328 echo "$as_me:$LINENO: checking whether netdb declares h_errno" >&5
13329 echo $ECHO_N "checking whether netdb declares h_errno... $ECHO_C" >&6
13330 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then
13331 echo $ECHO_N "(cached) $ECHO_C" >&6
13332 else
13333 cat >conftest.$ac_ext <<_ACEOF
13334 /* confdefs.h. */
13335 _ACEOF
13336 cat confdefs.h >>conftest.$ac_ext
13337 cat >>conftest.$ac_ext <<_ACEOF
13338 /* end confdefs.h. */
13339 #include <netdb.h>
13341 main ()
13343 return h_errno;
13345 return 0;
13347 _ACEOF
13348 rm -f conftest.$ac_objext conftest$ac_exeext
13349 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13350 (eval $ac_link) 2>conftest.er1
13351 ac_status=$?
13352 grep -v '^ *+' conftest.er1 >conftest.err
13353 rm -f conftest.er1
13354 cat conftest.err >&5
13355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13356 (exit $ac_status); } &&
13357 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13359 (eval $ac_try) 2>&5
13360 ac_status=$?
13361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13362 (exit $ac_status); }; } &&
13363 { ac_try='test -s conftest$ac_exeext'
13364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13365 (eval $ac_try) 2>&5
13366 ac_status=$?
13367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13368 (exit $ac_status); }; }; then
13369 emacs_cv_netdb_declares_h_errno=yes
13370 else
13371 echo "$as_me: failed program was:" >&5
13372 sed 's/^/| /' conftest.$ac_ext >&5
13374 emacs_cv_netdb_declares_h_errno=no
13376 rm -f conftest.err conftest.$ac_objext \
13377 conftest$ac_exeext conftest.$ac_ext
13379 echo "$as_me:$LINENO: result: $emacs_cv_netdb_declares_h_errno" >&5
13380 echo "${ECHO_T}$emacs_cv_netdb_declares_h_errno" >&6
13381 if test $emacs_cv_netdb_declares_h_errno = yes; then
13383 cat >>confdefs.h <<\_ACEOF
13384 #define HAVE_H_ERRNO 1
13385 _ACEOF
13389 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
13390 # for constant arguments. Useless!
13391 echo "$as_me:$LINENO: checking for working alloca.h" >&5
13392 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
13393 if test "${ac_cv_working_alloca_h+set}" = set; then
13394 echo $ECHO_N "(cached) $ECHO_C" >&6
13395 else
13396 cat >conftest.$ac_ext <<_ACEOF
13397 /* confdefs.h. */
13398 _ACEOF
13399 cat confdefs.h >>conftest.$ac_ext
13400 cat >>conftest.$ac_ext <<_ACEOF
13401 /* end confdefs.h. */
13402 #include <alloca.h>
13404 main ()
13406 char *p = (char *) alloca (2 * sizeof (int));
13408 return 0;
13410 _ACEOF
13411 rm -f conftest.$ac_objext conftest$ac_exeext
13412 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13413 (eval $ac_link) 2>conftest.er1
13414 ac_status=$?
13415 grep -v '^ *+' conftest.er1 >conftest.err
13416 rm -f conftest.er1
13417 cat conftest.err >&5
13418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13419 (exit $ac_status); } &&
13420 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13422 (eval $ac_try) 2>&5
13423 ac_status=$?
13424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13425 (exit $ac_status); }; } &&
13426 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
13432 ac_cv_working_alloca_h=yes
13433 else
13434 echo "$as_me: failed program was:" >&5
13435 sed 's/^/| /' conftest.$ac_ext >&5
13437 ac_cv_working_alloca_h=no
13439 rm -f conftest.err conftest.$ac_objext \
13440 conftest$ac_exeext conftest.$ac_ext
13442 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
13443 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
13444 if test $ac_cv_working_alloca_h = yes; then
13446 cat >>confdefs.h <<\_ACEOF
13447 #define HAVE_ALLOCA_H 1
13448 _ACEOF
13452 echo "$as_me:$LINENO: checking for alloca" >&5
13453 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
13454 if test "${ac_cv_func_alloca_works+set}" = set; then
13455 echo $ECHO_N "(cached) $ECHO_C" >&6
13456 else
13457 cat >conftest.$ac_ext <<_ACEOF
13458 /* confdefs.h. */
13459 _ACEOF
13460 cat confdefs.h >>conftest.$ac_ext
13461 cat >>conftest.$ac_ext <<_ACEOF
13462 /* end confdefs.h. */
13463 #ifdef __GNUC__
13464 # define alloca __builtin_alloca
13465 #else
13466 # ifdef _MSC_VER
13467 # include <malloc.h>
13468 # define alloca _alloca
13469 # else
13470 # if HAVE_ALLOCA_H
13471 # include <alloca.h>
13472 # else
13473 # ifdef _AIX
13474 #pragma alloca
13475 # else
13476 # ifndef alloca /* predefined by HP cc +Olibcalls */
13477 char *alloca ();
13478 # endif
13479 # endif
13480 # endif
13481 # endif
13482 #endif
13485 main ()
13487 char *p = (char *) alloca (1);
13489 return 0;
13491 _ACEOF
13492 rm -f conftest.$ac_objext conftest$ac_exeext
13493 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13494 (eval $ac_link) 2>conftest.er1
13495 ac_status=$?
13496 grep -v '^ *+' conftest.er1 >conftest.err
13497 rm -f conftest.er1
13498 cat conftest.err >&5
13499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13500 (exit $ac_status); } &&
13501 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13503 (eval $ac_try) 2>&5
13504 ac_status=$?
13505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13506 (exit $ac_status); }; } &&
13507 { ac_try='test -s conftest$ac_exeext'
13508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13509 (eval $ac_try) 2>&5
13510 ac_status=$?
13511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13512 (exit $ac_status); }; }; then
13513 ac_cv_func_alloca_works=yes
13514 else
13515 echo "$as_me: failed program was:" >&5
13516 sed 's/^/| /' conftest.$ac_ext >&5
13518 ac_cv_func_alloca_works=no
13520 rm -f conftest.err conftest.$ac_objext \
13521 conftest$ac_exeext conftest.$ac_ext
13523 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
13524 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
13526 if test $ac_cv_func_alloca_works = yes; then
13528 cat >>confdefs.h <<\_ACEOF
13529 #define HAVE_ALLOCA 1
13530 _ACEOF
13532 else
13533 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
13534 # that cause trouble. Some versions do not even contain alloca or
13535 # contain a buggy version. If you still want to use their alloca,
13536 # use ar to extract alloca.o from them instead of compiling alloca.c.
13538 ALLOCA=alloca.$ac_objext
13540 cat >>confdefs.h <<\_ACEOF
13541 #define C_ALLOCA 1
13542 _ACEOF
13545 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
13546 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
13547 if test "${ac_cv_os_cray+set}" = set; then
13548 echo $ECHO_N "(cached) $ECHO_C" >&6
13549 else
13550 cat >conftest.$ac_ext <<_ACEOF
13551 /* confdefs.h. */
13552 _ACEOF
13553 cat confdefs.h >>conftest.$ac_ext
13554 cat >>conftest.$ac_ext <<_ACEOF
13555 /* end confdefs.h. */
13556 #if defined(CRAY) && ! defined(CRAY2)
13557 webecray
13558 #else
13559 wenotbecray
13560 #endif
13562 _ACEOF
13563 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13564 $EGREP "webecray" >/dev/null 2>&1; then
13565 ac_cv_os_cray=yes
13566 else
13567 ac_cv_os_cray=no
13569 rm -f conftest*
13572 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
13573 echo "${ECHO_T}$ac_cv_os_cray" >&6
13574 if test $ac_cv_os_cray = yes; then
13575 for ac_func in _getb67 GETB67 getb67; do
13576 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13577 echo "$as_me:$LINENO: checking for $ac_func" >&5
13578 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13579 if eval "test \"\${$as_ac_var+set}\" = set"; then
13580 echo $ECHO_N "(cached) $ECHO_C" >&6
13581 else
13582 cat >conftest.$ac_ext <<_ACEOF
13583 /* confdefs.h. */
13584 _ACEOF
13585 cat confdefs.h >>conftest.$ac_ext
13586 cat >>conftest.$ac_ext <<_ACEOF
13587 /* end confdefs.h. */
13588 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13589 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13590 #define $ac_func innocuous_$ac_func
13592 /* System header to define __stub macros and hopefully few prototypes,
13593 which can conflict with char $ac_func (); below.
13594 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13595 <limits.h> exists even on freestanding compilers. */
13597 #ifdef __STDC__
13598 # include <limits.h>
13599 #else
13600 # include <assert.h>
13601 #endif
13603 #undef $ac_func
13605 /* Override any gcc2 internal prototype to avoid an error. */
13606 #ifdef __cplusplus
13607 extern "C"
13609 #endif
13610 /* We use char because int might match the return type of a gcc2
13611 builtin and then its argument prototype would still apply. */
13612 char $ac_func ();
13613 /* The GNU C library defines this for functions which it implements
13614 to always fail with ENOSYS. Some functions are actually named
13615 something starting with __ and the normal name is an alias. */
13616 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13617 choke me
13618 #else
13619 char (*f) () = $ac_func;
13620 #endif
13621 #ifdef __cplusplus
13623 #endif
13626 main ()
13628 return f != $ac_func;
13630 return 0;
13632 _ACEOF
13633 rm -f conftest.$ac_objext conftest$ac_exeext
13634 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13635 (eval $ac_link) 2>conftest.er1
13636 ac_status=$?
13637 grep -v '^ *+' conftest.er1 >conftest.err
13638 rm -f conftest.er1
13639 cat conftest.err >&5
13640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13641 (exit $ac_status); } &&
13642 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13644 (eval $ac_try) 2>&5
13645 ac_status=$?
13646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13647 (exit $ac_status); }; } &&
13648 { ac_try='test -s conftest$ac_exeext'
13649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13650 (eval $ac_try) 2>&5
13651 ac_status=$?
13652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13653 (exit $ac_status); }; }; then
13654 eval "$as_ac_var=yes"
13655 else
13656 echo "$as_me: failed program was:" >&5
13657 sed 's/^/| /' conftest.$ac_ext >&5
13659 eval "$as_ac_var=no"
13661 rm -f conftest.err conftest.$ac_objext \
13662 conftest$ac_exeext conftest.$ac_ext
13664 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13665 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13666 if test `eval echo '${'$as_ac_var'}'` = yes; then
13668 cat >>confdefs.h <<_ACEOF
13669 #define CRAY_STACKSEG_END $ac_func
13670 _ACEOF
13672 break
13675 done
13678 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
13679 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
13680 if test "${ac_cv_c_stack_direction+set}" = set; then
13681 echo $ECHO_N "(cached) $ECHO_C" >&6
13682 else
13683 if test "$cross_compiling" = yes; then
13684 ac_cv_c_stack_direction=0
13685 else
13686 cat >conftest.$ac_ext <<_ACEOF
13687 /* confdefs.h. */
13688 _ACEOF
13689 cat confdefs.h >>conftest.$ac_ext
13690 cat >>conftest.$ac_ext <<_ACEOF
13691 /* end confdefs.h. */
13693 find_stack_direction ()
13695 static char *addr = 0;
13696 auto char dummy;
13697 if (addr == 0)
13699 addr = &dummy;
13700 return find_stack_direction ();
13702 else
13703 return (&dummy > addr) ? 1 : -1;
13707 main ()
13709 exit (find_stack_direction () < 0);
13711 _ACEOF
13712 rm -f conftest$ac_exeext
13713 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13714 (eval $ac_link) 2>&5
13715 ac_status=$?
13716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13717 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13719 (eval $ac_try) 2>&5
13720 ac_status=$?
13721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13722 (exit $ac_status); }; }; then
13723 ac_cv_c_stack_direction=1
13724 else
13725 echo "$as_me: program exited with status $ac_status" >&5
13726 echo "$as_me: failed program was:" >&5
13727 sed 's/^/| /' conftest.$ac_ext >&5
13729 ( exit $ac_status )
13730 ac_cv_c_stack_direction=-1
13732 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13735 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
13736 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
13738 cat >>confdefs.h <<_ACEOF
13739 #define STACK_DIRECTION $ac_cv_c_stack_direction
13740 _ACEOF
13746 # fmod, logb, and frexp are found in -lm on most systems.
13747 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
13749 echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
13750 echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6
13751 if test "${ac_cv_lib_m_sqrt+set}" = set; then
13752 echo $ECHO_N "(cached) $ECHO_C" >&6
13753 else
13754 ac_check_lib_save_LIBS=$LIBS
13755 LIBS="-lm $LIBS"
13756 cat >conftest.$ac_ext <<_ACEOF
13757 /* confdefs.h. */
13758 _ACEOF
13759 cat confdefs.h >>conftest.$ac_ext
13760 cat >>conftest.$ac_ext <<_ACEOF
13761 /* end confdefs.h. */
13763 /* Override any gcc2 internal prototype to avoid an error. */
13764 #ifdef __cplusplus
13765 extern "C"
13766 #endif
13767 /* We use char because int might match the return type of a gcc2
13768 builtin and then its argument prototype would still apply. */
13769 char sqrt ();
13771 main ()
13773 sqrt ();
13775 return 0;
13777 _ACEOF
13778 rm -f conftest.$ac_objext conftest$ac_exeext
13779 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13780 (eval $ac_link) 2>conftest.er1
13781 ac_status=$?
13782 grep -v '^ *+' conftest.er1 >conftest.err
13783 rm -f conftest.er1
13784 cat conftest.err >&5
13785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13786 (exit $ac_status); } &&
13787 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13789 (eval $ac_try) 2>&5
13790 ac_status=$?
13791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13792 (exit $ac_status); }; } &&
13793 { ac_try='test -s conftest$ac_exeext'
13794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13795 (eval $ac_try) 2>&5
13796 ac_status=$?
13797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13798 (exit $ac_status); }; }; then
13799 ac_cv_lib_m_sqrt=yes
13800 else
13801 echo "$as_me: failed program was:" >&5
13802 sed 's/^/| /' conftest.$ac_ext >&5
13804 ac_cv_lib_m_sqrt=no
13806 rm -f conftest.err conftest.$ac_objext \
13807 conftest$ac_exeext conftest.$ac_ext
13808 LIBS=$ac_check_lib_save_LIBS
13810 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
13811 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6
13812 if test $ac_cv_lib_m_sqrt = yes; then
13813 cat >>confdefs.h <<_ACEOF
13814 #define HAVE_LIBM 1
13815 _ACEOF
13817 LIBS="-lm $LIBS"
13822 # Check for mail-locking functions in a "mail" library. Probably this should
13823 # have the same check as for liblockfile below.
13825 echo "$as_me:$LINENO: checking for maillock in -lmail" >&5
13826 echo $ECHO_N "checking for maillock in -lmail... $ECHO_C" >&6
13827 if test "${ac_cv_lib_mail_maillock+set}" = set; then
13828 echo $ECHO_N "(cached) $ECHO_C" >&6
13829 else
13830 ac_check_lib_save_LIBS=$LIBS
13831 LIBS="-lmail $LIBS"
13832 cat >conftest.$ac_ext <<_ACEOF
13833 /* confdefs.h. */
13834 _ACEOF
13835 cat confdefs.h >>conftest.$ac_ext
13836 cat >>conftest.$ac_ext <<_ACEOF
13837 /* end confdefs.h. */
13839 /* Override any gcc2 internal prototype to avoid an error. */
13840 #ifdef __cplusplus
13841 extern "C"
13842 #endif
13843 /* We use char because int might match the return type of a gcc2
13844 builtin and then its argument prototype would still apply. */
13845 char maillock ();
13847 main ()
13849 maillock ();
13851 return 0;
13853 _ACEOF
13854 rm -f conftest.$ac_objext conftest$ac_exeext
13855 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13856 (eval $ac_link) 2>conftest.er1
13857 ac_status=$?
13858 grep -v '^ *+' conftest.er1 >conftest.err
13859 rm -f conftest.er1
13860 cat conftest.err >&5
13861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13862 (exit $ac_status); } &&
13863 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13865 (eval $ac_try) 2>&5
13866 ac_status=$?
13867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13868 (exit $ac_status); }; } &&
13869 { ac_try='test -s conftest$ac_exeext'
13870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13871 (eval $ac_try) 2>&5
13872 ac_status=$?
13873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13874 (exit $ac_status); }; }; then
13875 ac_cv_lib_mail_maillock=yes
13876 else
13877 echo "$as_me: failed program was:" >&5
13878 sed 's/^/| /' conftest.$ac_ext >&5
13880 ac_cv_lib_mail_maillock=no
13882 rm -f conftest.err conftest.$ac_objext \
13883 conftest$ac_exeext conftest.$ac_ext
13884 LIBS=$ac_check_lib_save_LIBS
13886 echo "$as_me:$LINENO: result: $ac_cv_lib_mail_maillock" >&5
13887 echo "${ECHO_T}$ac_cv_lib_mail_maillock" >&6
13888 if test $ac_cv_lib_mail_maillock = yes; then
13889 cat >>confdefs.h <<_ACEOF
13890 #define HAVE_LIBMAIL 1
13891 _ACEOF
13893 LIBS="-lmail $LIBS"
13898 echo "$as_me:$LINENO: checking for maillock in -llockfile" >&5
13899 echo $ECHO_N "checking for maillock in -llockfile... $ECHO_C" >&6
13900 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
13901 echo $ECHO_N "(cached) $ECHO_C" >&6
13902 else
13903 ac_check_lib_save_LIBS=$LIBS
13904 LIBS="-llockfile $LIBS"
13905 cat >conftest.$ac_ext <<_ACEOF
13906 /* confdefs.h. */
13907 _ACEOF
13908 cat confdefs.h >>conftest.$ac_ext
13909 cat >>conftest.$ac_ext <<_ACEOF
13910 /* end confdefs.h. */
13912 /* Override any gcc2 internal prototype to avoid an error. */
13913 #ifdef __cplusplus
13914 extern "C"
13915 #endif
13916 /* We use char because int might match the return type of a gcc2
13917 builtin and then its argument prototype would still apply. */
13918 char maillock ();
13920 main ()
13922 maillock ();
13924 return 0;
13926 _ACEOF
13927 rm -f conftest.$ac_objext conftest$ac_exeext
13928 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13929 (eval $ac_link) 2>conftest.er1
13930 ac_status=$?
13931 grep -v '^ *+' conftest.er1 >conftest.err
13932 rm -f conftest.er1
13933 cat conftest.err >&5
13934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13935 (exit $ac_status); } &&
13936 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13938 (eval $ac_try) 2>&5
13939 ac_status=$?
13940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13941 (exit $ac_status); }; } &&
13942 { ac_try='test -s conftest$ac_exeext'
13943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13944 (eval $ac_try) 2>&5
13945 ac_status=$?
13946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13947 (exit $ac_status); }; }; then
13948 ac_cv_lib_lockfile_maillock=yes
13949 else
13950 echo "$as_me: failed program was:" >&5
13951 sed 's/^/| /' conftest.$ac_ext >&5
13953 ac_cv_lib_lockfile_maillock=no
13955 rm -f conftest.err conftest.$ac_objext \
13956 conftest$ac_exeext conftest.$ac_ext
13957 LIBS=$ac_check_lib_save_LIBS
13959 echo "$as_me:$LINENO: result: $ac_cv_lib_lockfile_maillock" >&5
13960 echo "${ECHO_T}$ac_cv_lib_lockfile_maillock" >&6
13961 if test $ac_cv_lib_lockfile_maillock = yes; then
13962 cat >>confdefs.h <<_ACEOF
13963 #define HAVE_LIBLOCKFILE 1
13964 _ACEOF
13966 LIBS="-llockfile $LIBS"
13970 # If we have the shared liblockfile, assume we must use it for mail
13971 # locking (e.g. Debian). If we couldn't link against liblockfile
13972 # (no liblockfile.a installed), ensure that we don't need to.
13973 if test "$ac_cv_lib_lockfile_maillock" = no; then
13974 # Extract the first word of "liblockfile.so", so it can be a program name with args.
13975 set dummy liblockfile.so; ac_word=$2
13976 echo "$as_me:$LINENO: checking for $ac_word" >&5
13977 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13978 if test "${ac_cv_prog_liblockfile+set}" = set; then
13979 echo $ECHO_N "(cached) $ECHO_C" >&6
13980 else
13981 if test -n "$liblockfile"; then
13982 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
13983 else
13984 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13985 as_dummy="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
13986 for as_dir in $as_dummy
13988 IFS=$as_save_IFS
13989 test -z "$as_dir" && as_dir=.
13990 for ac_exec_ext in '' $ac_executable_extensions; do
13991 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13992 ac_cv_prog_liblockfile="yes"
13993 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13994 break 2
13996 done
13997 done
13999 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no"
14002 liblockfile=$ac_cv_prog_liblockfile
14003 if test -n "$liblockfile"; then
14004 echo "$as_me:$LINENO: result: $liblockfile" >&5
14005 echo "${ECHO_T}$liblockfile" >&6
14006 else
14007 echo "$as_me:$LINENO: result: no" >&5
14008 echo "${ECHO_T}no" >&6
14011 if test $ac_cv_prog_liblockfile = yes; then
14012 { { echo "$as_me:$LINENO: error: Shared liblockfile found but can't link against it.
14013 This probably means that movemail could lose mail.
14014 There may be a \`development' package to install containing liblockfile." >&5
14015 echo "$as_me: error: Shared liblockfile found but can't link against it.
14016 This probably means that movemail could lose mail.
14017 There may be a \`development' package to install containing liblockfile." >&2;}
14018 { (exit 1); exit 1; }; }
14019 else :
14023 for ac_func in touchlock
14025 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14026 echo "$as_me:$LINENO: checking for $ac_func" >&5
14027 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14028 if eval "test \"\${$as_ac_var+set}\" = set"; then
14029 echo $ECHO_N "(cached) $ECHO_C" >&6
14030 else
14031 cat >conftest.$ac_ext <<_ACEOF
14032 /* confdefs.h. */
14033 _ACEOF
14034 cat confdefs.h >>conftest.$ac_ext
14035 cat >>conftest.$ac_ext <<_ACEOF
14036 /* end confdefs.h. */
14037 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14038 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14039 #define $ac_func innocuous_$ac_func
14041 /* System header to define __stub macros and hopefully few prototypes,
14042 which can conflict with char $ac_func (); below.
14043 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14044 <limits.h> exists even on freestanding compilers. */
14046 #ifdef __STDC__
14047 # include <limits.h>
14048 #else
14049 # include <assert.h>
14050 #endif
14052 #undef $ac_func
14054 /* Override any gcc2 internal prototype to avoid an error. */
14055 #ifdef __cplusplus
14056 extern "C"
14058 #endif
14059 /* We use char because int might match the return type of a gcc2
14060 builtin and then its argument prototype would still apply. */
14061 char $ac_func ();
14062 /* The GNU C library defines this for functions which it implements
14063 to always fail with ENOSYS. Some functions are actually named
14064 something starting with __ and the normal name is an alias. */
14065 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14066 choke me
14067 #else
14068 char (*f) () = $ac_func;
14069 #endif
14070 #ifdef __cplusplus
14072 #endif
14075 main ()
14077 return f != $ac_func;
14079 return 0;
14081 _ACEOF
14082 rm -f conftest.$ac_objext conftest$ac_exeext
14083 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14084 (eval $ac_link) 2>conftest.er1
14085 ac_status=$?
14086 grep -v '^ *+' conftest.er1 >conftest.err
14087 rm -f conftest.er1
14088 cat conftest.err >&5
14089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14090 (exit $ac_status); } &&
14091 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14093 (eval $ac_try) 2>&5
14094 ac_status=$?
14095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14096 (exit $ac_status); }; } &&
14097 { ac_try='test -s conftest$ac_exeext'
14098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14099 (eval $ac_try) 2>&5
14100 ac_status=$?
14101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14102 (exit $ac_status); }; }; then
14103 eval "$as_ac_var=yes"
14104 else
14105 echo "$as_me: failed program was:" >&5
14106 sed 's/^/| /' conftest.$ac_ext >&5
14108 eval "$as_ac_var=no"
14110 rm -f conftest.err conftest.$ac_objext \
14111 conftest$ac_exeext conftest.$ac_ext
14113 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14114 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14115 if test `eval echo '${'$as_ac_var'}'` = yes; then
14116 cat >>confdefs.h <<_ACEOF
14117 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14118 _ACEOF
14121 done
14124 for ac_header in maillock.h
14126 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14127 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14128 echo "$as_me:$LINENO: checking for $ac_header" >&5
14129 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14130 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14131 echo $ECHO_N "(cached) $ECHO_C" >&6
14133 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14134 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14135 else
14136 # Is the header compilable?
14137 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14138 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14139 cat >conftest.$ac_ext <<_ACEOF
14140 /* confdefs.h. */
14141 _ACEOF
14142 cat confdefs.h >>conftest.$ac_ext
14143 cat >>conftest.$ac_ext <<_ACEOF
14144 /* end confdefs.h. */
14145 $ac_includes_default
14146 #include <$ac_header>
14147 _ACEOF
14148 rm -f conftest.$ac_objext
14149 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14150 (eval $ac_compile) 2>conftest.er1
14151 ac_status=$?
14152 grep -v '^ *+' conftest.er1 >conftest.err
14153 rm -f conftest.er1
14154 cat conftest.err >&5
14155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14156 (exit $ac_status); } &&
14157 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14159 (eval $ac_try) 2>&5
14160 ac_status=$?
14161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14162 (exit $ac_status); }; } &&
14163 { ac_try='test -s conftest.$ac_objext'
14164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14165 (eval $ac_try) 2>&5
14166 ac_status=$?
14167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14168 (exit $ac_status); }; }; then
14169 ac_header_compiler=yes
14170 else
14171 echo "$as_me: failed program was:" >&5
14172 sed 's/^/| /' conftest.$ac_ext >&5
14174 ac_header_compiler=no
14176 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14177 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14178 echo "${ECHO_T}$ac_header_compiler" >&6
14180 # Is the header present?
14181 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14182 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14183 cat >conftest.$ac_ext <<_ACEOF
14184 /* confdefs.h. */
14185 _ACEOF
14186 cat confdefs.h >>conftest.$ac_ext
14187 cat >>conftest.$ac_ext <<_ACEOF
14188 /* end confdefs.h. */
14189 #include <$ac_header>
14190 _ACEOF
14191 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14192 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14193 ac_status=$?
14194 grep -v '^ *+' conftest.er1 >conftest.err
14195 rm -f conftest.er1
14196 cat conftest.err >&5
14197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14198 (exit $ac_status); } >/dev/null; then
14199 if test -s conftest.err; then
14200 ac_cpp_err=$ac_c_preproc_warn_flag
14201 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14202 else
14203 ac_cpp_err=
14205 else
14206 ac_cpp_err=yes
14208 if test -z "$ac_cpp_err"; then
14209 ac_header_preproc=yes
14210 else
14211 echo "$as_me: failed program was:" >&5
14212 sed 's/^/| /' conftest.$ac_ext >&5
14214 ac_header_preproc=no
14216 rm -f conftest.err conftest.$ac_ext
14217 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14218 echo "${ECHO_T}$ac_header_preproc" >&6
14220 # So? What about this header?
14221 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14222 yes:no: )
14223 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14224 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14225 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14226 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14227 ac_header_preproc=yes
14229 no:yes:* )
14230 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14231 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14232 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14233 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14234 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14235 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14236 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14237 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14238 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14239 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14240 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14241 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14243 cat <<\_ASBOX
14244 ## ------------------------------------------ ##
14245 ## Report this to the AC_PACKAGE_NAME lists. ##
14246 ## ------------------------------------------ ##
14247 _ASBOX
14249 sed "s/^/$as_me: WARNING: /" >&2
14251 esac
14252 echo "$as_me:$LINENO: checking for $ac_header" >&5
14253 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14254 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14255 echo $ECHO_N "(cached) $ECHO_C" >&6
14256 else
14257 eval "$as_ac_Header=\$ac_header_preproc"
14259 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14260 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14263 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14264 cat >>confdefs.h <<_ACEOF
14265 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14266 _ACEOF
14270 done
14341 for ac_func in gethostname getdomainname dup2 \
14342 rename closedir mkdir rmdir sysinfo getrusage get_current_dir_name \
14343 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime res_init setsid \
14344 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \
14345 utimes setrlimit setpgid getcwd getwd shutdown getaddrinfo \
14346 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
14347 sendto recvfrom getsockopt setsockopt getsockname getpeername \
14348 gai_strerror mkstemp getline getdelim mremap memmove fsync bzero \
14349 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign
14351 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14352 echo "$as_me:$LINENO: checking for $ac_func" >&5
14353 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14354 if eval "test \"\${$as_ac_var+set}\" = set"; then
14355 echo $ECHO_N "(cached) $ECHO_C" >&6
14356 else
14357 cat >conftest.$ac_ext <<_ACEOF
14358 /* confdefs.h. */
14359 _ACEOF
14360 cat confdefs.h >>conftest.$ac_ext
14361 cat >>conftest.$ac_ext <<_ACEOF
14362 /* end confdefs.h. */
14363 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14364 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14365 #define $ac_func innocuous_$ac_func
14367 /* System header to define __stub macros and hopefully few prototypes,
14368 which can conflict with char $ac_func (); below.
14369 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14370 <limits.h> exists even on freestanding compilers. */
14372 #ifdef __STDC__
14373 # include <limits.h>
14374 #else
14375 # include <assert.h>
14376 #endif
14378 #undef $ac_func
14380 /* Override any gcc2 internal prototype to avoid an error. */
14381 #ifdef __cplusplus
14382 extern "C"
14384 #endif
14385 /* We use char because int might match the return type of a gcc2
14386 builtin and then its argument prototype would still apply. */
14387 char $ac_func ();
14388 /* The GNU C library defines this for functions which it implements
14389 to always fail with ENOSYS. Some functions are actually named
14390 something starting with __ and the normal name is an alias. */
14391 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14392 choke me
14393 #else
14394 char (*f) () = $ac_func;
14395 #endif
14396 #ifdef __cplusplus
14398 #endif
14401 main ()
14403 return f != $ac_func;
14405 return 0;
14407 _ACEOF
14408 rm -f conftest.$ac_objext conftest$ac_exeext
14409 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14410 (eval $ac_link) 2>conftest.er1
14411 ac_status=$?
14412 grep -v '^ *+' conftest.er1 >conftest.err
14413 rm -f conftest.er1
14414 cat conftest.err >&5
14415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14416 (exit $ac_status); } &&
14417 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14419 (eval $ac_try) 2>&5
14420 ac_status=$?
14421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14422 (exit $ac_status); }; } &&
14423 { ac_try='test -s conftest$ac_exeext'
14424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14425 (eval $ac_try) 2>&5
14426 ac_status=$?
14427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14428 (exit $ac_status); }; }; then
14429 eval "$as_ac_var=yes"
14430 else
14431 echo "$as_me: failed program was:" >&5
14432 sed 's/^/| /' conftest.$ac_ext >&5
14434 eval "$as_ac_var=no"
14436 rm -f conftest.err conftest.$ac_objext \
14437 conftest$ac_exeext conftest.$ac_ext
14439 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14440 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14441 if test `eval echo '${'$as_ac_var'}'` = yes; then
14442 cat >>confdefs.h <<_ACEOF
14443 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14444 _ACEOF
14447 done
14451 for ac_header in sys/un.h
14453 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14454 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14455 echo "$as_me:$LINENO: checking for $ac_header" >&5
14456 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14457 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14458 echo $ECHO_N "(cached) $ECHO_C" >&6
14460 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14461 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14462 else
14463 # Is the header compilable?
14464 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14465 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14466 cat >conftest.$ac_ext <<_ACEOF
14467 /* confdefs.h. */
14468 _ACEOF
14469 cat confdefs.h >>conftest.$ac_ext
14470 cat >>conftest.$ac_ext <<_ACEOF
14471 /* end confdefs.h. */
14472 $ac_includes_default
14473 #include <$ac_header>
14474 _ACEOF
14475 rm -f conftest.$ac_objext
14476 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14477 (eval $ac_compile) 2>conftest.er1
14478 ac_status=$?
14479 grep -v '^ *+' conftest.er1 >conftest.err
14480 rm -f conftest.er1
14481 cat conftest.err >&5
14482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14483 (exit $ac_status); } &&
14484 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14486 (eval $ac_try) 2>&5
14487 ac_status=$?
14488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14489 (exit $ac_status); }; } &&
14490 { ac_try='test -s conftest.$ac_objext'
14491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14492 (eval $ac_try) 2>&5
14493 ac_status=$?
14494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14495 (exit $ac_status); }; }; then
14496 ac_header_compiler=yes
14497 else
14498 echo "$as_me: failed program was:" >&5
14499 sed 's/^/| /' conftest.$ac_ext >&5
14501 ac_header_compiler=no
14503 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14504 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14505 echo "${ECHO_T}$ac_header_compiler" >&6
14507 # Is the header present?
14508 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14509 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14510 cat >conftest.$ac_ext <<_ACEOF
14511 /* confdefs.h. */
14512 _ACEOF
14513 cat confdefs.h >>conftest.$ac_ext
14514 cat >>conftest.$ac_ext <<_ACEOF
14515 /* end confdefs.h. */
14516 #include <$ac_header>
14517 _ACEOF
14518 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14519 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14520 ac_status=$?
14521 grep -v '^ *+' conftest.er1 >conftest.err
14522 rm -f conftest.er1
14523 cat conftest.err >&5
14524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14525 (exit $ac_status); } >/dev/null; then
14526 if test -s conftest.err; then
14527 ac_cpp_err=$ac_c_preproc_warn_flag
14528 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14529 else
14530 ac_cpp_err=
14532 else
14533 ac_cpp_err=yes
14535 if test -z "$ac_cpp_err"; then
14536 ac_header_preproc=yes
14537 else
14538 echo "$as_me: failed program was:" >&5
14539 sed 's/^/| /' conftest.$ac_ext >&5
14541 ac_header_preproc=no
14543 rm -f conftest.err conftest.$ac_ext
14544 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14545 echo "${ECHO_T}$ac_header_preproc" >&6
14547 # So? What about this header?
14548 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14549 yes:no: )
14550 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14551 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14552 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14553 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14554 ac_header_preproc=yes
14556 no:yes:* )
14557 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14558 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14559 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14560 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14561 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14562 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14563 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14564 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14565 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14566 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14567 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14568 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14570 cat <<\_ASBOX
14571 ## ------------------------------------------ ##
14572 ## Report this to the AC_PACKAGE_NAME lists. ##
14573 ## ------------------------------------------ ##
14574 _ASBOX
14576 sed "s/^/$as_me: WARNING: /" >&2
14578 esac
14579 echo "$as_me:$LINENO: checking for $ac_header" >&5
14580 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14581 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14582 echo $ECHO_N "(cached) $ECHO_C" >&6
14583 else
14584 eval "$as_ac_Header=\$ac_header_preproc"
14586 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14587 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14590 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14591 cat >>confdefs.h <<_ACEOF
14592 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14593 _ACEOF
14597 done
14603 for ac_header in stdlib.h sys/time.h unistd.h
14605 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14606 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14607 echo "$as_me:$LINENO: checking for $ac_header" >&5
14608 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14609 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14610 echo $ECHO_N "(cached) $ECHO_C" >&6
14612 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14613 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14614 else
14615 # Is the header compilable?
14616 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14617 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14618 cat >conftest.$ac_ext <<_ACEOF
14619 /* confdefs.h. */
14620 _ACEOF
14621 cat confdefs.h >>conftest.$ac_ext
14622 cat >>conftest.$ac_ext <<_ACEOF
14623 /* end confdefs.h. */
14624 $ac_includes_default
14625 #include <$ac_header>
14626 _ACEOF
14627 rm -f conftest.$ac_objext
14628 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14629 (eval $ac_compile) 2>conftest.er1
14630 ac_status=$?
14631 grep -v '^ *+' conftest.er1 >conftest.err
14632 rm -f conftest.er1
14633 cat conftest.err >&5
14634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14635 (exit $ac_status); } &&
14636 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14638 (eval $ac_try) 2>&5
14639 ac_status=$?
14640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14641 (exit $ac_status); }; } &&
14642 { ac_try='test -s conftest.$ac_objext'
14643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14644 (eval $ac_try) 2>&5
14645 ac_status=$?
14646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14647 (exit $ac_status); }; }; then
14648 ac_header_compiler=yes
14649 else
14650 echo "$as_me: failed program was:" >&5
14651 sed 's/^/| /' conftest.$ac_ext >&5
14653 ac_header_compiler=no
14655 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14656 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14657 echo "${ECHO_T}$ac_header_compiler" >&6
14659 # Is the header present?
14660 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14661 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14662 cat >conftest.$ac_ext <<_ACEOF
14663 /* confdefs.h. */
14664 _ACEOF
14665 cat confdefs.h >>conftest.$ac_ext
14666 cat >>conftest.$ac_ext <<_ACEOF
14667 /* end confdefs.h. */
14668 #include <$ac_header>
14669 _ACEOF
14670 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14671 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14672 ac_status=$?
14673 grep -v '^ *+' conftest.er1 >conftest.err
14674 rm -f conftest.er1
14675 cat conftest.err >&5
14676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14677 (exit $ac_status); } >/dev/null; then
14678 if test -s conftest.err; then
14679 ac_cpp_err=$ac_c_preproc_warn_flag
14680 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14681 else
14682 ac_cpp_err=
14684 else
14685 ac_cpp_err=yes
14687 if test -z "$ac_cpp_err"; then
14688 ac_header_preproc=yes
14689 else
14690 echo "$as_me: failed program was:" >&5
14691 sed 's/^/| /' conftest.$ac_ext >&5
14693 ac_header_preproc=no
14695 rm -f conftest.err conftest.$ac_ext
14696 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14697 echo "${ECHO_T}$ac_header_preproc" >&6
14699 # So? What about this header?
14700 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14701 yes:no: )
14702 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14703 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14704 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14705 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14706 ac_header_preproc=yes
14708 no:yes:* )
14709 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14710 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14711 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14712 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14713 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14714 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14715 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14716 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14717 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14718 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14719 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14720 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14722 cat <<\_ASBOX
14723 ## ------------------------------------------ ##
14724 ## Report this to the AC_PACKAGE_NAME lists. ##
14725 ## ------------------------------------------ ##
14726 _ASBOX
14728 sed "s/^/$as_me: WARNING: /" >&2
14730 esac
14731 echo "$as_me:$LINENO: checking for $ac_header" >&5
14732 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14733 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14734 echo $ECHO_N "(cached) $ECHO_C" >&6
14735 else
14736 eval "$as_ac_Header=\$ac_header_preproc"
14738 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14739 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14742 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14743 cat >>confdefs.h <<_ACEOF
14744 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14745 _ACEOF
14749 done
14752 for ac_func in alarm
14754 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14755 echo "$as_me:$LINENO: checking for $ac_func" >&5
14756 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14757 if eval "test \"\${$as_ac_var+set}\" = set"; then
14758 echo $ECHO_N "(cached) $ECHO_C" >&6
14759 else
14760 cat >conftest.$ac_ext <<_ACEOF
14761 /* confdefs.h. */
14762 _ACEOF
14763 cat confdefs.h >>conftest.$ac_ext
14764 cat >>conftest.$ac_ext <<_ACEOF
14765 /* end confdefs.h. */
14766 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14767 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14768 #define $ac_func innocuous_$ac_func
14770 /* System header to define __stub macros and hopefully few prototypes,
14771 which can conflict with char $ac_func (); below.
14772 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14773 <limits.h> exists even on freestanding compilers. */
14775 #ifdef __STDC__
14776 # include <limits.h>
14777 #else
14778 # include <assert.h>
14779 #endif
14781 #undef $ac_func
14783 /* Override any gcc2 internal prototype to avoid an error. */
14784 #ifdef __cplusplus
14785 extern "C"
14787 #endif
14788 /* We use char because int might match the return type of a gcc2
14789 builtin and then its argument prototype would still apply. */
14790 char $ac_func ();
14791 /* The GNU C library defines this for functions which it implements
14792 to always fail with ENOSYS. Some functions are actually named
14793 something starting with __ and the normal name is an alias. */
14794 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14795 choke me
14796 #else
14797 char (*f) () = $ac_func;
14798 #endif
14799 #ifdef __cplusplus
14801 #endif
14804 main ()
14806 return f != $ac_func;
14808 return 0;
14810 _ACEOF
14811 rm -f conftest.$ac_objext conftest$ac_exeext
14812 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14813 (eval $ac_link) 2>conftest.er1
14814 ac_status=$?
14815 grep -v '^ *+' conftest.er1 >conftest.err
14816 rm -f conftest.er1
14817 cat conftest.err >&5
14818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14819 (exit $ac_status); } &&
14820 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14822 (eval $ac_try) 2>&5
14823 ac_status=$?
14824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14825 (exit $ac_status); }; } &&
14826 { ac_try='test -s conftest$ac_exeext'
14827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14828 (eval $ac_try) 2>&5
14829 ac_status=$?
14830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14831 (exit $ac_status); }; }; then
14832 eval "$as_ac_var=yes"
14833 else
14834 echo "$as_me: failed program was:" >&5
14835 sed 's/^/| /' conftest.$ac_ext >&5
14837 eval "$as_ac_var=no"
14839 rm -f conftest.err conftest.$ac_objext \
14840 conftest$ac_exeext conftest.$ac_ext
14842 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14843 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14844 if test `eval echo '${'$as_ac_var'}'` = yes; then
14845 cat >>confdefs.h <<_ACEOF
14846 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14847 _ACEOF
14850 done
14852 echo "$as_me:$LINENO: checking for working mktime" >&5
14853 echo $ECHO_N "checking for working mktime... $ECHO_C" >&6
14854 if test "${ac_cv_func_working_mktime+set}" = set; then
14855 echo $ECHO_N "(cached) $ECHO_C" >&6
14856 else
14857 if test "$cross_compiling" = yes; then
14858 ac_cv_func_working_mktime=no
14859 else
14860 cat >conftest.$ac_ext <<_ACEOF
14861 /* confdefs.h. */
14862 _ACEOF
14863 cat confdefs.h >>conftest.$ac_ext
14864 cat >>conftest.$ac_ext <<_ACEOF
14865 /* end confdefs.h. */
14866 /* Test program from Paul Eggert and Tony Leneis. */
14867 #if TIME_WITH_SYS_TIME
14868 # include <sys/time.h>
14869 # include <time.h>
14870 #else
14871 # if HAVE_SYS_TIME_H
14872 # include <sys/time.h>
14873 # else
14874 # include <time.h>
14875 # endif
14876 #endif
14878 #if HAVE_STDLIB_H
14879 # include <stdlib.h>
14880 #endif
14882 #if HAVE_UNISTD_H
14883 # include <unistd.h>
14884 #endif
14886 #if !HAVE_ALARM
14887 # define alarm(X) /* empty */
14888 #endif
14890 /* Work around redefinition to rpl_putenv by other config tests. */
14891 #undef putenv
14893 static time_t time_t_max;
14894 static time_t time_t_min;
14896 /* Values we'll use to set the TZ environment variable. */
14897 static char *tz_strings[] = {
14898 (char *) 0, "TZ=GMT0", "TZ=JST-9",
14899 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
14901 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
14903 /* Fail if mktime fails to convert a date in the spring-forward gap.
14904 Based on a problem report from Andreas Jaeger. */
14905 static void
14906 spring_forward_gap ()
14908 /* glibc (up to about 1998-10-07) failed this test. */
14909 struct tm tm;
14911 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
14912 instead of "TZ=America/Vancouver" in order to detect the bug even
14913 on systems that don't support the Olson extension, or don't have the
14914 full zoneinfo tables installed. */
14915 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
14917 tm.tm_year = 98;
14918 tm.tm_mon = 3;
14919 tm.tm_mday = 5;
14920 tm.tm_hour = 2;
14921 tm.tm_min = 0;
14922 tm.tm_sec = 0;
14923 tm.tm_isdst = -1;
14924 if (mktime (&tm) == (time_t)-1)
14925 exit (1);
14928 static void
14929 mktime_test1 (now)
14930 time_t now;
14932 struct tm *lt;
14933 if ((lt = localtime (&now)) && mktime (lt) != now)
14934 exit (1);
14937 static void
14938 mktime_test (now)
14939 time_t now;
14941 mktime_test1 (now);
14942 mktime_test1 ((time_t) (time_t_max - now));
14943 mktime_test1 ((time_t) (time_t_min + now));
14946 static void
14947 irix_6_4_bug ()
14949 /* Based on code from Ariel Faigon. */
14950 struct tm tm;
14951 tm.tm_year = 96;
14952 tm.tm_mon = 3;
14953 tm.tm_mday = 0;
14954 tm.tm_hour = 0;
14955 tm.tm_min = 0;
14956 tm.tm_sec = 0;
14957 tm.tm_isdst = -1;
14958 mktime (&tm);
14959 if (tm.tm_mon != 2 || tm.tm_mday != 31)
14960 exit (1);
14963 static void
14964 bigtime_test (j)
14965 int j;
14967 struct tm tm;
14968 time_t now;
14969 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
14970 now = mktime (&tm);
14971 if (now != (time_t) -1)
14973 struct tm *lt = localtime (&now);
14974 if (! (lt
14975 && lt->tm_year == tm.tm_year
14976 && lt->tm_mon == tm.tm_mon
14977 && lt->tm_mday == tm.tm_mday
14978 && lt->tm_hour == tm.tm_hour
14979 && lt->tm_min == tm.tm_min
14980 && lt->tm_sec == tm.tm_sec
14981 && lt->tm_yday == tm.tm_yday
14982 && lt->tm_wday == tm.tm_wday
14983 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
14984 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
14985 exit (1);
14990 main ()
14992 time_t t, delta;
14993 int i, j;
14995 /* This test makes some buggy mktime implementations loop.
14996 Give up after 60 seconds; a mktime slower than that
14997 isn't worth using anyway. */
14998 alarm (60);
15000 for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
15001 continue;
15002 time_t_max--;
15003 if ((time_t) -1 < 0)
15004 for (time_t_min = -1; (time_t) (time_t_min * 2) < 0; time_t_min *= 2)
15005 continue;
15006 delta = time_t_max / 997; /* a suitable prime number */
15007 for (i = 0; i < N_STRINGS; i++)
15009 if (tz_strings[i])
15010 putenv (tz_strings[i]);
15012 for (t = 0; t <= time_t_max - delta; t += delta)
15013 mktime_test (t);
15014 mktime_test ((time_t) 1);
15015 mktime_test ((time_t) (60 * 60));
15016 mktime_test ((time_t) (60 * 60 * 24));
15018 for (j = 1; 0 < j; j *= 2)
15019 bigtime_test (j);
15020 bigtime_test (j - 1);
15022 irix_6_4_bug ();
15023 spring_forward_gap ();
15024 exit (0);
15026 _ACEOF
15027 rm -f conftest$ac_exeext
15028 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15029 (eval $ac_link) 2>&5
15030 ac_status=$?
15031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15032 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15034 (eval $ac_try) 2>&5
15035 ac_status=$?
15036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15037 (exit $ac_status); }; }; then
15038 ac_cv_func_working_mktime=yes
15039 else
15040 echo "$as_me: program exited with status $ac_status" >&5
15041 echo "$as_me: failed program was:" >&5
15042 sed 's/^/| /' conftest.$ac_ext >&5
15044 ( exit $ac_status )
15045 ac_cv_func_working_mktime=no
15047 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15050 echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
15051 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6
15052 if test $ac_cv_func_working_mktime = no; then
15053 case $LIBOBJS in
15054 "mktime.$ac_objext" | \
15055 *" mktime.$ac_objext" | \
15056 "mktime.$ac_objext "* | \
15057 *" mktime.$ac_objext "* ) ;;
15058 *) LIBOBJS="$LIBOBJS mktime.$ac_objext" ;;
15059 esac
15063 if test "$ac_cv_func_working_mktime" = no; then
15065 cat >>confdefs.h <<\_ACEOF
15066 #define BROKEN_MKTIME 1
15067 _ACEOF
15071 ac_have_func=no # yes means we've found a way to get the load average.
15073 # Make sure getloadavg.c is where it belongs, at configure-time.
15074 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" ||
15075 { { echo "$as_me:$LINENO: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&5
15076 echo "$as_me: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&2;}
15077 { (exit 1); exit 1; }; }
15079 ac_save_LIBS=$LIBS
15081 # Check for getloadavg, but be sure not to touch the cache variable.
15082 (echo "$as_me:$LINENO: checking for getloadavg" >&5
15083 echo $ECHO_N "checking for getloadavg... $ECHO_C" >&6
15084 if test "${ac_cv_func_getloadavg+set}" = set; then
15085 echo $ECHO_N "(cached) $ECHO_C" >&6
15086 else
15087 cat >conftest.$ac_ext <<_ACEOF
15088 /* confdefs.h. */
15089 _ACEOF
15090 cat confdefs.h >>conftest.$ac_ext
15091 cat >>conftest.$ac_ext <<_ACEOF
15092 /* end confdefs.h. */
15093 /* Define getloadavg to an innocuous variant, in case <limits.h> declares getloadavg.
15094 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15095 #define getloadavg innocuous_getloadavg
15097 /* System header to define __stub macros and hopefully few prototypes,
15098 which can conflict with char getloadavg (); below.
15099 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15100 <limits.h> exists even on freestanding compilers. */
15102 #ifdef __STDC__
15103 # include <limits.h>
15104 #else
15105 # include <assert.h>
15106 #endif
15108 #undef getloadavg
15110 /* Override any gcc2 internal prototype to avoid an error. */
15111 #ifdef __cplusplus
15112 extern "C"
15114 #endif
15115 /* We use char because int might match the return type of a gcc2
15116 builtin and then its argument prototype would still apply. */
15117 char getloadavg ();
15118 /* The GNU C library defines this for functions which it implements
15119 to always fail with ENOSYS. Some functions are actually named
15120 something starting with __ and the normal name is an alias. */
15121 #if defined (__stub_getloadavg) || defined (__stub___getloadavg)
15122 choke me
15123 #else
15124 char (*f) () = getloadavg;
15125 #endif
15126 #ifdef __cplusplus
15128 #endif
15131 main ()
15133 return f != getloadavg;
15135 return 0;
15137 _ACEOF
15138 rm -f conftest.$ac_objext conftest$ac_exeext
15139 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15140 (eval $ac_link) 2>conftest.er1
15141 ac_status=$?
15142 grep -v '^ *+' conftest.er1 >conftest.err
15143 rm -f conftest.er1
15144 cat conftest.err >&5
15145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15146 (exit $ac_status); } &&
15147 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15149 (eval $ac_try) 2>&5
15150 ac_status=$?
15151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15152 (exit $ac_status); }; } &&
15153 { ac_try='test -s conftest$ac_exeext'
15154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15155 (eval $ac_try) 2>&5
15156 ac_status=$?
15157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15158 (exit $ac_status); }; }; then
15159 ac_cv_func_getloadavg=yes
15160 else
15161 echo "$as_me: failed program was:" >&5
15162 sed 's/^/| /' conftest.$ac_ext >&5
15164 ac_cv_func_getloadavg=no
15166 rm -f conftest.err conftest.$ac_objext \
15167 conftest$ac_exeext conftest.$ac_ext
15169 echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg" >&5
15170 echo "${ECHO_T}$ac_cv_func_getloadavg" >&6
15171 if test $ac_cv_func_getloadavg = yes; then
15172 exit 0
15173 else
15174 exit 1
15176 ) && ac_have_func=yes
15178 # On HPUX9, an unprivileged user can get load averages through this function.
15180 for ac_func in pstat_getdynamic
15182 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15183 echo "$as_me:$LINENO: checking for $ac_func" >&5
15184 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15185 if eval "test \"\${$as_ac_var+set}\" = set"; then
15186 echo $ECHO_N "(cached) $ECHO_C" >&6
15187 else
15188 cat >conftest.$ac_ext <<_ACEOF
15189 /* confdefs.h. */
15190 _ACEOF
15191 cat confdefs.h >>conftest.$ac_ext
15192 cat >>conftest.$ac_ext <<_ACEOF
15193 /* end confdefs.h. */
15194 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15195 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15196 #define $ac_func innocuous_$ac_func
15198 /* System header to define __stub macros and hopefully few prototypes,
15199 which can conflict with char $ac_func (); below.
15200 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15201 <limits.h> exists even on freestanding compilers. */
15203 #ifdef __STDC__
15204 # include <limits.h>
15205 #else
15206 # include <assert.h>
15207 #endif
15209 #undef $ac_func
15211 /* Override any gcc2 internal prototype to avoid an error. */
15212 #ifdef __cplusplus
15213 extern "C"
15215 #endif
15216 /* We use char because int might match the return type of a gcc2
15217 builtin and then its argument prototype would still apply. */
15218 char $ac_func ();
15219 /* The GNU C library defines this for functions which it implements
15220 to always fail with ENOSYS. Some functions are actually named
15221 something starting with __ and the normal name is an alias. */
15222 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15223 choke me
15224 #else
15225 char (*f) () = $ac_func;
15226 #endif
15227 #ifdef __cplusplus
15229 #endif
15232 main ()
15234 return f != $ac_func;
15236 return 0;
15238 _ACEOF
15239 rm -f conftest.$ac_objext conftest$ac_exeext
15240 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15241 (eval $ac_link) 2>conftest.er1
15242 ac_status=$?
15243 grep -v '^ *+' conftest.er1 >conftest.err
15244 rm -f conftest.er1
15245 cat conftest.err >&5
15246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15247 (exit $ac_status); } &&
15248 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15250 (eval $ac_try) 2>&5
15251 ac_status=$?
15252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15253 (exit $ac_status); }; } &&
15254 { ac_try='test -s conftest$ac_exeext'
15255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15256 (eval $ac_try) 2>&5
15257 ac_status=$?
15258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15259 (exit $ac_status); }; }; then
15260 eval "$as_ac_var=yes"
15261 else
15262 echo "$as_me: failed program was:" >&5
15263 sed 's/^/| /' conftest.$ac_ext >&5
15265 eval "$as_ac_var=no"
15267 rm -f conftest.err conftest.$ac_objext \
15268 conftest$ac_exeext conftest.$ac_ext
15270 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15271 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15272 if test `eval echo '${'$as_ac_var'}'` = yes; then
15273 cat >>confdefs.h <<_ACEOF
15274 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15275 _ACEOF
15278 done
15281 # Solaris has libkstat which does not require root.
15283 echo "$as_me:$LINENO: checking for kstat_open in -lkstat" >&5
15284 echo $ECHO_N "checking for kstat_open in -lkstat... $ECHO_C" >&6
15285 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
15286 echo $ECHO_N "(cached) $ECHO_C" >&6
15287 else
15288 ac_check_lib_save_LIBS=$LIBS
15289 LIBS="-lkstat $LIBS"
15290 cat >conftest.$ac_ext <<_ACEOF
15291 /* confdefs.h. */
15292 _ACEOF
15293 cat confdefs.h >>conftest.$ac_ext
15294 cat >>conftest.$ac_ext <<_ACEOF
15295 /* end confdefs.h. */
15297 /* Override any gcc2 internal prototype to avoid an error. */
15298 #ifdef __cplusplus
15299 extern "C"
15300 #endif
15301 /* We use char because int might match the return type of a gcc2
15302 builtin and then its argument prototype would still apply. */
15303 char kstat_open ();
15305 main ()
15307 kstat_open ();
15309 return 0;
15311 _ACEOF
15312 rm -f conftest.$ac_objext conftest$ac_exeext
15313 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15314 (eval $ac_link) 2>conftest.er1
15315 ac_status=$?
15316 grep -v '^ *+' conftest.er1 >conftest.err
15317 rm -f conftest.er1
15318 cat conftest.err >&5
15319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15320 (exit $ac_status); } &&
15321 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15323 (eval $ac_try) 2>&5
15324 ac_status=$?
15325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15326 (exit $ac_status); }; } &&
15327 { ac_try='test -s conftest$ac_exeext'
15328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15329 (eval $ac_try) 2>&5
15330 ac_status=$?
15331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15332 (exit $ac_status); }; }; then
15333 ac_cv_lib_kstat_kstat_open=yes
15334 else
15335 echo "$as_me: failed program was:" >&5
15336 sed 's/^/| /' conftest.$ac_ext >&5
15338 ac_cv_lib_kstat_kstat_open=no
15340 rm -f conftest.err conftest.$ac_objext \
15341 conftest$ac_exeext conftest.$ac_ext
15342 LIBS=$ac_check_lib_save_LIBS
15344 echo "$as_me:$LINENO: result: $ac_cv_lib_kstat_kstat_open" >&5
15345 echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6
15346 if test $ac_cv_lib_kstat_kstat_open = yes; then
15347 cat >>confdefs.h <<_ACEOF
15348 #define HAVE_LIBKSTAT 1
15349 _ACEOF
15351 LIBS="-lkstat $LIBS"
15355 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes
15357 # Some systems with -lutil have (and need) -lkvm as well, some do not.
15358 # On Solaris, -lkvm requires nlist from -lelf, so check that first
15359 # to get the right answer into the cache.
15360 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
15361 if test $ac_have_func = no; then
15362 echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
15363 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
15364 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
15365 echo $ECHO_N "(cached) $ECHO_C" >&6
15366 else
15367 ac_check_lib_save_LIBS=$LIBS
15368 LIBS="-lelf $LIBS"
15369 cat >conftest.$ac_ext <<_ACEOF
15370 /* confdefs.h. */
15371 _ACEOF
15372 cat confdefs.h >>conftest.$ac_ext
15373 cat >>conftest.$ac_ext <<_ACEOF
15374 /* end confdefs.h. */
15376 /* Override any gcc2 internal prototype to avoid an error. */
15377 #ifdef __cplusplus
15378 extern "C"
15379 #endif
15380 /* We use char because int might match the return type of a gcc2
15381 builtin and then its argument prototype would still apply. */
15382 char elf_begin ();
15384 main ()
15386 elf_begin ();
15388 return 0;
15390 _ACEOF
15391 rm -f conftest.$ac_objext conftest$ac_exeext
15392 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15393 (eval $ac_link) 2>conftest.er1
15394 ac_status=$?
15395 grep -v '^ *+' conftest.er1 >conftest.err
15396 rm -f conftest.er1
15397 cat conftest.err >&5
15398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15399 (exit $ac_status); } &&
15400 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15402 (eval $ac_try) 2>&5
15403 ac_status=$?
15404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15405 (exit $ac_status); }; } &&
15406 { ac_try='test -s conftest$ac_exeext'
15407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15408 (eval $ac_try) 2>&5
15409 ac_status=$?
15410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15411 (exit $ac_status); }; }; then
15412 ac_cv_lib_elf_elf_begin=yes
15413 else
15414 echo "$as_me: failed program was:" >&5
15415 sed 's/^/| /' conftest.$ac_ext >&5
15417 ac_cv_lib_elf_elf_begin=no
15419 rm -f conftest.err conftest.$ac_objext \
15420 conftest$ac_exeext conftest.$ac_ext
15421 LIBS=$ac_check_lib_save_LIBS
15423 echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
15424 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
15425 if test $ac_cv_lib_elf_elf_begin = yes; then
15426 LIBS="-lelf $LIBS"
15430 if test $ac_have_func = no; then
15431 echo "$as_me:$LINENO: checking for kvm_open in -lkvm" >&5
15432 echo $ECHO_N "checking for kvm_open in -lkvm... $ECHO_C" >&6
15433 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
15434 echo $ECHO_N "(cached) $ECHO_C" >&6
15435 else
15436 ac_check_lib_save_LIBS=$LIBS
15437 LIBS="-lkvm $LIBS"
15438 cat >conftest.$ac_ext <<_ACEOF
15439 /* confdefs.h. */
15440 _ACEOF
15441 cat confdefs.h >>conftest.$ac_ext
15442 cat >>conftest.$ac_ext <<_ACEOF
15443 /* end confdefs.h. */
15445 /* Override any gcc2 internal prototype to avoid an error. */
15446 #ifdef __cplusplus
15447 extern "C"
15448 #endif
15449 /* We use char because int might match the return type of a gcc2
15450 builtin and then its argument prototype would still apply. */
15451 char kvm_open ();
15453 main ()
15455 kvm_open ();
15457 return 0;
15459 _ACEOF
15460 rm -f conftest.$ac_objext conftest$ac_exeext
15461 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15462 (eval $ac_link) 2>conftest.er1
15463 ac_status=$?
15464 grep -v '^ *+' conftest.er1 >conftest.err
15465 rm -f conftest.er1
15466 cat conftest.err >&5
15467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15468 (exit $ac_status); } &&
15469 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15471 (eval $ac_try) 2>&5
15472 ac_status=$?
15473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15474 (exit $ac_status); }; } &&
15475 { ac_try='test -s conftest$ac_exeext'
15476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15477 (eval $ac_try) 2>&5
15478 ac_status=$?
15479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15480 (exit $ac_status); }; }; then
15481 ac_cv_lib_kvm_kvm_open=yes
15482 else
15483 echo "$as_me: failed program was:" >&5
15484 sed 's/^/| /' conftest.$ac_ext >&5
15486 ac_cv_lib_kvm_kvm_open=no
15488 rm -f conftest.err conftest.$ac_objext \
15489 conftest$ac_exeext conftest.$ac_ext
15490 LIBS=$ac_check_lib_save_LIBS
15492 echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_kvm_open" >&5
15493 echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6
15494 if test $ac_cv_lib_kvm_kvm_open = yes; then
15495 LIBS="-lkvm $LIBS"
15498 # Check for the 4.4BSD definition of getloadavg.
15499 echo "$as_me:$LINENO: checking for getloadavg in -lutil" >&5
15500 echo $ECHO_N "checking for getloadavg in -lutil... $ECHO_C" >&6
15501 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
15502 echo $ECHO_N "(cached) $ECHO_C" >&6
15503 else
15504 ac_check_lib_save_LIBS=$LIBS
15505 LIBS="-lutil $LIBS"
15506 cat >conftest.$ac_ext <<_ACEOF
15507 /* confdefs.h. */
15508 _ACEOF
15509 cat confdefs.h >>conftest.$ac_ext
15510 cat >>conftest.$ac_ext <<_ACEOF
15511 /* end confdefs.h. */
15513 /* Override any gcc2 internal prototype to avoid an error. */
15514 #ifdef __cplusplus
15515 extern "C"
15516 #endif
15517 /* We use char because int might match the return type of a gcc2
15518 builtin and then its argument prototype would still apply. */
15519 char getloadavg ();
15521 main ()
15523 getloadavg ();
15525 return 0;
15527 _ACEOF
15528 rm -f conftest.$ac_objext conftest$ac_exeext
15529 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15530 (eval $ac_link) 2>conftest.er1
15531 ac_status=$?
15532 grep -v '^ *+' conftest.er1 >conftest.err
15533 rm -f conftest.er1
15534 cat conftest.err >&5
15535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15536 (exit $ac_status); } &&
15537 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15539 (eval $ac_try) 2>&5
15540 ac_status=$?
15541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15542 (exit $ac_status); }; } &&
15543 { ac_try='test -s conftest$ac_exeext'
15544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15545 (eval $ac_try) 2>&5
15546 ac_status=$?
15547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15548 (exit $ac_status); }; }; then
15549 ac_cv_lib_util_getloadavg=yes
15550 else
15551 echo "$as_me: failed program was:" >&5
15552 sed 's/^/| /' conftest.$ac_ext >&5
15554 ac_cv_lib_util_getloadavg=no
15556 rm -f conftest.err conftest.$ac_objext \
15557 conftest$ac_exeext conftest.$ac_ext
15558 LIBS=$ac_check_lib_save_LIBS
15560 echo "$as_me:$LINENO: result: $ac_cv_lib_util_getloadavg" >&5
15561 echo "${ECHO_T}$ac_cv_lib_util_getloadavg" >&6
15562 if test $ac_cv_lib_util_getloadavg = yes; then
15563 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
15568 if test $ac_have_func = no; then
15569 # There is a commonly available library for RS/6000 AIX.
15570 # Since it is not a standard part of AIX, it might be installed locally.
15571 ac_getloadavg_LIBS=$LIBS
15572 LIBS="-L/usr/local/lib $LIBS"
15573 echo "$as_me:$LINENO: checking for getloadavg in -lgetloadavg" >&5
15574 echo $ECHO_N "checking for getloadavg in -lgetloadavg... $ECHO_C" >&6
15575 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
15576 echo $ECHO_N "(cached) $ECHO_C" >&6
15577 else
15578 ac_check_lib_save_LIBS=$LIBS
15579 LIBS="-lgetloadavg $LIBS"
15580 cat >conftest.$ac_ext <<_ACEOF
15581 /* confdefs.h. */
15582 _ACEOF
15583 cat confdefs.h >>conftest.$ac_ext
15584 cat >>conftest.$ac_ext <<_ACEOF
15585 /* end confdefs.h. */
15587 /* Override any gcc2 internal prototype to avoid an error. */
15588 #ifdef __cplusplus
15589 extern "C"
15590 #endif
15591 /* We use char because int might match the return type of a gcc2
15592 builtin and then its argument prototype would still apply. */
15593 char getloadavg ();
15595 main ()
15597 getloadavg ();
15599 return 0;
15601 _ACEOF
15602 rm -f conftest.$ac_objext conftest$ac_exeext
15603 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15604 (eval $ac_link) 2>conftest.er1
15605 ac_status=$?
15606 grep -v '^ *+' conftest.er1 >conftest.err
15607 rm -f conftest.er1
15608 cat conftest.err >&5
15609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15610 (exit $ac_status); } &&
15611 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15613 (eval $ac_try) 2>&5
15614 ac_status=$?
15615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15616 (exit $ac_status); }; } &&
15617 { ac_try='test -s conftest$ac_exeext'
15618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15619 (eval $ac_try) 2>&5
15620 ac_status=$?
15621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15622 (exit $ac_status); }; }; then
15623 ac_cv_lib_getloadavg_getloadavg=yes
15624 else
15625 echo "$as_me: failed program was:" >&5
15626 sed 's/^/| /' conftest.$ac_ext >&5
15628 ac_cv_lib_getloadavg_getloadavg=no
15630 rm -f conftest.err conftest.$ac_objext \
15631 conftest$ac_exeext conftest.$ac_ext
15632 LIBS=$ac_check_lib_save_LIBS
15634 echo "$as_me:$LINENO: result: $ac_cv_lib_getloadavg_getloadavg" >&5
15635 echo "${ECHO_T}$ac_cv_lib_getloadavg_getloadavg" >&6
15636 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
15637 LIBS="-lgetloadavg $LIBS"
15638 else
15639 LIBS=$ac_getloadavg_LIBS
15644 # Make sure it is really in the library, if we think we found it,
15645 # otherwise set up the replacement function.
15647 for ac_func in getloadavg
15649 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15650 echo "$as_me:$LINENO: checking for $ac_func" >&5
15651 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15652 if eval "test \"\${$as_ac_var+set}\" = set"; then
15653 echo $ECHO_N "(cached) $ECHO_C" >&6
15654 else
15655 cat >conftest.$ac_ext <<_ACEOF
15656 /* confdefs.h. */
15657 _ACEOF
15658 cat confdefs.h >>conftest.$ac_ext
15659 cat >>conftest.$ac_ext <<_ACEOF
15660 /* end confdefs.h. */
15661 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15662 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15663 #define $ac_func innocuous_$ac_func
15665 /* System header to define __stub macros and hopefully few prototypes,
15666 which can conflict with char $ac_func (); below.
15667 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15668 <limits.h> exists even on freestanding compilers. */
15670 #ifdef __STDC__
15671 # include <limits.h>
15672 #else
15673 # include <assert.h>
15674 #endif
15676 #undef $ac_func
15678 /* Override any gcc2 internal prototype to avoid an error. */
15679 #ifdef __cplusplus
15680 extern "C"
15682 #endif
15683 /* We use char because int might match the return type of a gcc2
15684 builtin and then its argument prototype would still apply. */
15685 char $ac_func ();
15686 /* The GNU C library defines this for functions which it implements
15687 to always fail with ENOSYS. Some functions are actually named
15688 something starting with __ and the normal name is an alias. */
15689 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15690 choke me
15691 #else
15692 char (*f) () = $ac_func;
15693 #endif
15694 #ifdef __cplusplus
15696 #endif
15699 main ()
15701 return f != $ac_func;
15703 return 0;
15705 _ACEOF
15706 rm -f conftest.$ac_objext conftest$ac_exeext
15707 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15708 (eval $ac_link) 2>conftest.er1
15709 ac_status=$?
15710 grep -v '^ *+' conftest.er1 >conftest.err
15711 rm -f conftest.er1
15712 cat conftest.err >&5
15713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15714 (exit $ac_status); } &&
15715 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15717 (eval $ac_try) 2>&5
15718 ac_status=$?
15719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15720 (exit $ac_status); }; } &&
15721 { ac_try='test -s conftest$ac_exeext'
15722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15723 (eval $ac_try) 2>&5
15724 ac_status=$?
15725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15726 (exit $ac_status); }; }; then
15727 eval "$as_ac_var=yes"
15728 else
15729 echo "$as_me: failed program was:" >&5
15730 sed 's/^/| /' conftest.$ac_ext >&5
15732 eval "$as_ac_var=no"
15734 rm -f conftest.err conftest.$ac_objext \
15735 conftest$ac_exeext conftest.$ac_ext
15737 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15738 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15739 if test `eval echo '${'$as_ac_var'}'` = yes; then
15740 cat >>confdefs.h <<_ACEOF
15741 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15742 _ACEOF
15744 else
15745 case $LIBOBJS in
15746 "getloadavg.$ac_objext" | \
15747 *" getloadavg.$ac_objext" | \
15748 "getloadavg.$ac_objext "* | \
15749 *" getloadavg.$ac_objext "* ) ;;
15750 *) LIBOBJS="$LIBOBJS getloadavg.$ac_objext" ;;
15751 esac
15754 cat >>confdefs.h <<\_ACEOF
15755 #define C_GETLOADAVG 1
15756 _ACEOF
15758 # Figure out what our getloadavg.c needs.
15759 ac_have_func=no
15760 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
15761 echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
15762 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
15763 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
15764 echo $ECHO_N "(cached) $ECHO_C" >&6
15766 echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
15767 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
15768 else
15769 # Is the header compilable?
15770 echo "$as_me:$LINENO: checking sys/dg_sys_info.h usability" >&5
15771 echo $ECHO_N "checking sys/dg_sys_info.h usability... $ECHO_C" >&6
15772 cat >conftest.$ac_ext <<_ACEOF
15773 /* confdefs.h. */
15774 _ACEOF
15775 cat confdefs.h >>conftest.$ac_ext
15776 cat >>conftest.$ac_ext <<_ACEOF
15777 /* end confdefs.h. */
15778 $ac_includes_default
15779 #include <sys/dg_sys_info.h>
15780 _ACEOF
15781 rm -f conftest.$ac_objext
15782 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15783 (eval $ac_compile) 2>conftest.er1
15784 ac_status=$?
15785 grep -v '^ *+' conftest.er1 >conftest.err
15786 rm -f conftest.er1
15787 cat conftest.err >&5
15788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15789 (exit $ac_status); } &&
15790 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15792 (eval $ac_try) 2>&5
15793 ac_status=$?
15794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15795 (exit $ac_status); }; } &&
15796 { ac_try='test -s conftest.$ac_objext'
15797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15798 (eval $ac_try) 2>&5
15799 ac_status=$?
15800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15801 (exit $ac_status); }; }; then
15802 ac_header_compiler=yes
15803 else
15804 echo "$as_me: failed program was:" >&5
15805 sed 's/^/| /' conftest.$ac_ext >&5
15807 ac_header_compiler=no
15809 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15810 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15811 echo "${ECHO_T}$ac_header_compiler" >&6
15813 # Is the header present?
15814 echo "$as_me:$LINENO: checking sys/dg_sys_info.h presence" >&5
15815 echo $ECHO_N "checking sys/dg_sys_info.h presence... $ECHO_C" >&6
15816 cat >conftest.$ac_ext <<_ACEOF
15817 /* confdefs.h. */
15818 _ACEOF
15819 cat confdefs.h >>conftest.$ac_ext
15820 cat >>conftest.$ac_ext <<_ACEOF
15821 /* end confdefs.h. */
15822 #include <sys/dg_sys_info.h>
15823 _ACEOF
15824 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15825 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15826 ac_status=$?
15827 grep -v '^ *+' conftest.er1 >conftest.err
15828 rm -f conftest.er1
15829 cat conftest.err >&5
15830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15831 (exit $ac_status); } >/dev/null; then
15832 if test -s conftest.err; then
15833 ac_cpp_err=$ac_c_preproc_warn_flag
15834 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15835 else
15836 ac_cpp_err=
15838 else
15839 ac_cpp_err=yes
15841 if test -z "$ac_cpp_err"; then
15842 ac_header_preproc=yes
15843 else
15844 echo "$as_me: failed program was:" >&5
15845 sed 's/^/| /' conftest.$ac_ext >&5
15847 ac_header_preproc=no
15849 rm -f conftest.err conftest.$ac_ext
15850 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15851 echo "${ECHO_T}$ac_header_preproc" >&6
15853 # So? What about this header?
15854 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15855 yes:no: )
15856 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&5
15857 echo "$as_me: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15858 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&5
15859 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&2;}
15860 ac_header_preproc=yes
15862 no:yes:* )
15863 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&5
15864 echo "$as_me: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&2;}
15865 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&5
15866 echo "$as_me: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&2;}
15867 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&5
15868 echo "$as_me: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&2;}
15869 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&5
15870 echo "$as_me: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&2;}
15871 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
15872 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;}
15873 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&5
15874 echo "$as_me: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&2;}
15876 cat <<\_ASBOX
15877 ## ------------------------------------------ ##
15878 ## Report this to the AC_PACKAGE_NAME lists. ##
15879 ## ------------------------------------------ ##
15880 _ASBOX
15882 sed "s/^/$as_me: WARNING: /" >&2
15884 esac
15885 echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
15886 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
15887 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
15888 echo $ECHO_N "(cached) $ECHO_C" >&6
15889 else
15890 ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc
15892 echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
15893 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
15896 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
15897 ac_have_func=yes
15899 cat >>confdefs.h <<\_ACEOF
15900 #define DGUX 1
15901 _ACEOF
15904 echo "$as_me:$LINENO: checking for dg_sys_info in -ldgc" >&5
15905 echo $ECHO_N "checking for dg_sys_info in -ldgc... $ECHO_C" >&6
15906 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
15907 echo $ECHO_N "(cached) $ECHO_C" >&6
15908 else
15909 ac_check_lib_save_LIBS=$LIBS
15910 LIBS="-ldgc $LIBS"
15911 cat >conftest.$ac_ext <<_ACEOF
15912 /* confdefs.h. */
15913 _ACEOF
15914 cat confdefs.h >>conftest.$ac_ext
15915 cat >>conftest.$ac_ext <<_ACEOF
15916 /* end confdefs.h. */
15918 /* Override any gcc2 internal prototype to avoid an error. */
15919 #ifdef __cplusplus
15920 extern "C"
15921 #endif
15922 /* We use char because int might match the return type of a gcc2
15923 builtin and then its argument prototype would still apply. */
15924 char dg_sys_info ();
15926 main ()
15928 dg_sys_info ();
15930 return 0;
15932 _ACEOF
15933 rm -f conftest.$ac_objext conftest$ac_exeext
15934 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15935 (eval $ac_link) 2>conftest.er1
15936 ac_status=$?
15937 grep -v '^ *+' conftest.er1 >conftest.err
15938 rm -f conftest.er1
15939 cat conftest.err >&5
15940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15941 (exit $ac_status); } &&
15942 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15944 (eval $ac_try) 2>&5
15945 ac_status=$?
15946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15947 (exit $ac_status); }; } &&
15948 { ac_try='test -s conftest$ac_exeext'
15949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15950 (eval $ac_try) 2>&5
15951 ac_status=$?
15952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15953 (exit $ac_status); }; }; then
15954 ac_cv_lib_dgc_dg_sys_info=yes
15955 else
15956 echo "$as_me: failed program was:" >&5
15957 sed 's/^/| /' conftest.$ac_ext >&5
15959 ac_cv_lib_dgc_dg_sys_info=no
15961 rm -f conftest.err conftest.$ac_objext \
15962 conftest$ac_exeext conftest.$ac_ext
15963 LIBS=$ac_check_lib_save_LIBS
15965 echo "$as_me:$LINENO: result: $ac_cv_lib_dgc_dg_sys_info" >&5
15966 echo "${ECHO_T}$ac_cv_lib_dgc_dg_sys_info" >&6
15967 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
15968 cat >>confdefs.h <<_ACEOF
15969 #define HAVE_LIBDGC 1
15970 _ACEOF
15972 LIBS="-ldgc $LIBS"
15980 if test "${ac_cv_header_locale_h+set}" = set; then
15981 echo "$as_me:$LINENO: checking for locale.h" >&5
15982 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
15983 if test "${ac_cv_header_locale_h+set}" = set; then
15984 echo $ECHO_N "(cached) $ECHO_C" >&6
15986 echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
15987 echo "${ECHO_T}$ac_cv_header_locale_h" >&6
15988 else
15989 # Is the header compilable?
15990 echo "$as_me:$LINENO: checking locale.h usability" >&5
15991 echo $ECHO_N "checking locale.h usability... $ECHO_C" >&6
15992 cat >conftest.$ac_ext <<_ACEOF
15993 /* confdefs.h. */
15994 _ACEOF
15995 cat confdefs.h >>conftest.$ac_ext
15996 cat >>conftest.$ac_ext <<_ACEOF
15997 /* end confdefs.h. */
15998 $ac_includes_default
15999 #include <locale.h>
16000 _ACEOF
16001 rm -f conftest.$ac_objext
16002 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16003 (eval $ac_compile) 2>conftest.er1
16004 ac_status=$?
16005 grep -v '^ *+' conftest.er1 >conftest.err
16006 rm -f conftest.er1
16007 cat conftest.err >&5
16008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16009 (exit $ac_status); } &&
16010 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16012 (eval $ac_try) 2>&5
16013 ac_status=$?
16014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16015 (exit $ac_status); }; } &&
16016 { ac_try='test -s conftest.$ac_objext'
16017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16018 (eval $ac_try) 2>&5
16019 ac_status=$?
16020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16021 (exit $ac_status); }; }; then
16022 ac_header_compiler=yes
16023 else
16024 echo "$as_me: failed program was:" >&5
16025 sed 's/^/| /' conftest.$ac_ext >&5
16027 ac_header_compiler=no
16029 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16030 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16031 echo "${ECHO_T}$ac_header_compiler" >&6
16033 # Is the header present?
16034 echo "$as_me:$LINENO: checking locale.h presence" >&5
16035 echo $ECHO_N "checking locale.h presence... $ECHO_C" >&6
16036 cat >conftest.$ac_ext <<_ACEOF
16037 /* confdefs.h. */
16038 _ACEOF
16039 cat confdefs.h >>conftest.$ac_ext
16040 cat >>conftest.$ac_ext <<_ACEOF
16041 /* end confdefs.h. */
16042 #include <locale.h>
16043 _ACEOF
16044 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16045 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16046 ac_status=$?
16047 grep -v '^ *+' conftest.er1 >conftest.err
16048 rm -f conftest.er1
16049 cat conftest.err >&5
16050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16051 (exit $ac_status); } >/dev/null; then
16052 if test -s conftest.err; then
16053 ac_cpp_err=$ac_c_preproc_warn_flag
16054 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16055 else
16056 ac_cpp_err=
16058 else
16059 ac_cpp_err=yes
16061 if test -z "$ac_cpp_err"; then
16062 ac_header_preproc=yes
16063 else
16064 echo "$as_me: failed program was:" >&5
16065 sed 's/^/| /' conftest.$ac_ext >&5
16067 ac_header_preproc=no
16069 rm -f conftest.err conftest.$ac_ext
16070 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16071 echo "${ECHO_T}$ac_header_preproc" >&6
16073 # So? What about this header?
16074 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16075 yes:no: )
16076 { echo "$as_me:$LINENO: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&5
16077 echo "$as_me: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16078 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the compiler's result" >&5
16079 echo "$as_me: WARNING: locale.h: proceeding with the compiler's result" >&2;}
16080 ac_header_preproc=yes
16082 no:yes:* )
16083 { echo "$as_me:$LINENO: WARNING: locale.h: present but cannot be compiled" >&5
16084 echo "$as_me: WARNING: locale.h: present but cannot be compiled" >&2;}
16085 { echo "$as_me:$LINENO: WARNING: locale.h: check for missing prerequisite headers?" >&5
16086 echo "$as_me: WARNING: locale.h: check for missing prerequisite headers?" >&2;}
16087 { echo "$as_me:$LINENO: WARNING: locale.h: see the Autoconf documentation" >&5
16088 echo "$as_me: WARNING: locale.h: see the Autoconf documentation" >&2;}
16089 { echo "$as_me:$LINENO: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&5
16090 echo "$as_me: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&2;}
16091 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
16092 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;}
16093 { echo "$as_me:$LINENO: WARNING: locale.h: in the future, the compiler will take precedence" >&5
16094 echo "$as_me: WARNING: locale.h: in the future, the compiler will take precedence" >&2;}
16096 cat <<\_ASBOX
16097 ## ------------------------------------------ ##
16098 ## Report this to the AC_PACKAGE_NAME lists. ##
16099 ## ------------------------------------------ ##
16100 _ASBOX
16102 sed "s/^/$as_me: WARNING: /" >&2
16104 esac
16105 echo "$as_me:$LINENO: checking for locale.h" >&5
16106 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
16107 if test "${ac_cv_header_locale_h+set}" = set; then
16108 echo $ECHO_N "(cached) $ECHO_C" >&6
16109 else
16110 ac_cv_header_locale_h=$ac_header_preproc
16112 echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
16113 echo "${ECHO_T}$ac_cv_header_locale_h" >&6
16119 for ac_func in setlocale
16121 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16122 echo "$as_me:$LINENO: checking for $ac_func" >&5
16123 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16124 if eval "test \"\${$as_ac_var+set}\" = set"; then
16125 echo $ECHO_N "(cached) $ECHO_C" >&6
16126 else
16127 cat >conftest.$ac_ext <<_ACEOF
16128 /* confdefs.h. */
16129 _ACEOF
16130 cat confdefs.h >>conftest.$ac_ext
16131 cat >>conftest.$ac_ext <<_ACEOF
16132 /* end confdefs.h. */
16133 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16134 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16135 #define $ac_func innocuous_$ac_func
16137 /* System header to define __stub macros and hopefully few prototypes,
16138 which can conflict with char $ac_func (); below.
16139 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16140 <limits.h> exists even on freestanding compilers. */
16142 #ifdef __STDC__
16143 # include <limits.h>
16144 #else
16145 # include <assert.h>
16146 #endif
16148 #undef $ac_func
16150 /* Override any gcc2 internal prototype to avoid an error. */
16151 #ifdef __cplusplus
16152 extern "C"
16154 #endif
16155 /* We use char because int might match the return type of a gcc2
16156 builtin and then its argument prototype would still apply. */
16157 char $ac_func ();
16158 /* The GNU C library defines this for functions which it implements
16159 to always fail with ENOSYS. Some functions are actually named
16160 something starting with __ and the normal name is an alias. */
16161 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16162 choke me
16163 #else
16164 char (*f) () = $ac_func;
16165 #endif
16166 #ifdef __cplusplus
16168 #endif
16171 main ()
16173 return f != $ac_func;
16175 return 0;
16177 _ACEOF
16178 rm -f conftest.$ac_objext conftest$ac_exeext
16179 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16180 (eval $ac_link) 2>conftest.er1
16181 ac_status=$?
16182 grep -v '^ *+' conftest.er1 >conftest.err
16183 rm -f conftest.er1
16184 cat conftest.err >&5
16185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16186 (exit $ac_status); } &&
16187 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16189 (eval $ac_try) 2>&5
16190 ac_status=$?
16191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16192 (exit $ac_status); }; } &&
16193 { ac_try='test -s conftest$ac_exeext'
16194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16195 (eval $ac_try) 2>&5
16196 ac_status=$?
16197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16198 (exit $ac_status); }; }; then
16199 eval "$as_ac_var=yes"
16200 else
16201 echo "$as_me: failed program was:" >&5
16202 sed 's/^/| /' conftest.$ac_ext >&5
16204 eval "$as_ac_var=no"
16206 rm -f conftest.err conftest.$ac_objext \
16207 conftest$ac_exeext conftest.$ac_ext
16209 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16210 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16211 if test `eval echo '${'$as_ac_var'}'` = yes; then
16212 cat >>confdefs.h <<_ACEOF
16213 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16214 _ACEOF
16217 done
16220 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
16221 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
16222 # Irix 4.0.5F has the header but not the library.
16223 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
16224 ac_have_func=yes
16226 cat >>confdefs.h <<\_ACEOF
16227 #define SVR4 1
16228 _ACEOF
16232 if test $ac_have_func = no; then
16233 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
16234 echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
16235 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6
16236 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
16237 echo $ECHO_N "(cached) $ECHO_C" >&6
16239 echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
16240 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6
16241 else
16242 # Is the header compilable?
16243 echo "$as_me:$LINENO: checking inq_stats/cpustats.h usability" >&5
16244 echo $ECHO_N "checking inq_stats/cpustats.h usability... $ECHO_C" >&6
16245 cat >conftest.$ac_ext <<_ACEOF
16246 /* confdefs.h. */
16247 _ACEOF
16248 cat confdefs.h >>conftest.$ac_ext
16249 cat >>conftest.$ac_ext <<_ACEOF
16250 /* end confdefs.h. */
16251 $ac_includes_default
16252 #include <inq_stats/cpustats.h>
16253 _ACEOF
16254 rm -f conftest.$ac_objext
16255 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16256 (eval $ac_compile) 2>conftest.er1
16257 ac_status=$?
16258 grep -v '^ *+' conftest.er1 >conftest.err
16259 rm -f conftest.er1
16260 cat conftest.err >&5
16261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16262 (exit $ac_status); } &&
16263 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16265 (eval $ac_try) 2>&5
16266 ac_status=$?
16267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16268 (exit $ac_status); }; } &&
16269 { ac_try='test -s conftest.$ac_objext'
16270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16271 (eval $ac_try) 2>&5
16272 ac_status=$?
16273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16274 (exit $ac_status); }; }; then
16275 ac_header_compiler=yes
16276 else
16277 echo "$as_me: failed program was:" >&5
16278 sed 's/^/| /' conftest.$ac_ext >&5
16280 ac_header_compiler=no
16282 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16283 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16284 echo "${ECHO_T}$ac_header_compiler" >&6
16286 # Is the header present?
16287 echo "$as_me:$LINENO: checking inq_stats/cpustats.h presence" >&5
16288 echo $ECHO_N "checking inq_stats/cpustats.h presence... $ECHO_C" >&6
16289 cat >conftest.$ac_ext <<_ACEOF
16290 /* confdefs.h. */
16291 _ACEOF
16292 cat confdefs.h >>conftest.$ac_ext
16293 cat >>conftest.$ac_ext <<_ACEOF
16294 /* end confdefs.h. */
16295 #include <inq_stats/cpustats.h>
16296 _ACEOF
16297 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16298 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16299 ac_status=$?
16300 grep -v '^ *+' conftest.er1 >conftest.err
16301 rm -f conftest.er1
16302 cat conftest.err >&5
16303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16304 (exit $ac_status); } >/dev/null; then
16305 if test -s conftest.err; then
16306 ac_cpp_err=$ac_c_preproc_warn_flag
16307 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16308 else
16309 ac_cpp_err=
16311 else
16312 ac_cpp_err=yes
16314 if test -z "$ac_cpp_err"; then
16315 ac_header_preproc=yes
16316 else
16317 echo "$as_me: failed program was:" >&5
16318 sed 's/^/| /' conftest.$ac_ext >&5
16320 ac_header_preproc=no
16322 rm -f conftest.err conftest.$ac_ext
16323 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16324 echo "${ECHO_T}$ac_header_preproc" >&6
16326 # So? What about this header?
16327 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16328 yes:no: )
16329 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
16330 echo "$as_me: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16331 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&5
16332 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&2;}
16333 ac_header_preproc=yes
16335 no:yes:* )
16336 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&5
16337 echo "$as_me: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&2;}
16338 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&5
16339 echo "$as_me: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&2;}
16340 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&5
16341 echo "$as_me: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&2;}
16342 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
16343 echo "$as_me: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
16344 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
16345 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;}
16346 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&5
16347 echo "$as_me: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&2;}
16349 cat <<\_ASBOX
16350 ## ------------------------------------------ ##
16351 ## Report this to the AC_PACKAGE_NAME lists. ##
16352 ## ------------------------------------------ ##
16353 _ASBOX
16355 sed "s/^/$as_me: WARNING: /" >&2
16357 esac
16358 echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
16359 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6
16360 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
16361 echo $ECHO_N "(cached) $ECHO_C" >&6
16362 else
16363 ac_cv_header_inq_stats_cpustats_h=$ac_header_preproc
16365 echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
16366 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6
16369 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
16370 ac_have_func=yes
16372 cat >>confdefs.h <<\_ACEOF
16373 #define UMAX 1
16374 _ACEOF
16377 cat >>confdefs.h <<\_ACEOF
16378 #define UMAX4_3 1
16379 _ACEOF
16386 if test $ac_have_func = no; then
16387 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
16388 echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
16389 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6
16390 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
16391 echo $ECHO_N "(cached) $ECHO_C" >&6
16393 echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
16394 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6
16395 else
16396 # Is the header compilable?
16397 echo "$as_me:$LINENO: checking sys/cpustats.h usability" >&5
16398 echo $ECHO_N "checking sys/cpustats.h usability... $ECHO_C" >&6
16399 cat >conftest.$ac_ext <<_ACEOF
16400 /* confdefs.h. */
16401 _ACEOF
16402 cat confdefs.h >>conftest.$ac_ext
16403 cat >>conftest.$ac_ext <<_ACEOF
16404 /* end confdefs.h. */
16405 $ac_includes_default
16406 #include <sys/cpustats.h>
16407 _ACEOF
16408 rm -f conftest.$ac_objext
16409 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16410 (eval $ac_compile) 2>conftest.er1
16411 ac_status=$?
16412 grep -v '^ *+' conftest.er1 >conftest.err
16413 rm -f conftest.er1
16414 cat conftest.err >&5
16415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16416 (exit $ac_status); } &&
16417 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16419 (eval $ac_try) 2>&5
16420 ac_status=$?
16421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16422 (exit $ac_status); }; } &&
16423 { ac_try='test -s conftest.$ac_objext'
16424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16425 (eval $ac_try) 2>&5
16426 ac_status=$?
16427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16428 (exit $ac_status); }; }; then
16429 ac_header_compiler=yes
16430 else
16431 echo "$as_me: failed program was:" >&5
16432 sed 's/^/| /' conftest.$ac_ext >&5
16434 ac_header_compiler=no
16436 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16437 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16438 echo "${ECHO_T}$ac_header_compiler" >&6
16440 # Is the header present?
16441 echo "$as_me:$LINENO: checking sys/cpustats.h presence" >&5
16442 echo $ECHO_N "checking sys/cpustats.h presence... $ECHO_C" >&6
16443 cat >conftest.$ac_ext <<_ACEOF
16444 /* confdefs.h. */
16445 _ACEOF
16446 cat confdefs.h >>conftest.$ac_ext
16447 cat >>conftest.$ac_ext <<_ACEOF
16448 /* end confdefs.h. */
16449 #include <sys/cpustats.h>
16450 _ACEOF
16451 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16452 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16453 ac_status=$?
16454 grep -v '^ *+' conftest.er1 >conftest.err
16455 rm -f conftest.er1
16456 cat conftest.err >&5
16457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16458 (exit $ac_status); } >/dev/null; then
16459 if test -s conftest.err; then
16460 ac_cpp_err=$ac_c_preproc_warn_flag
16461 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16462 else
16463 ac_cpp_err=
16465 else
16466 ac_cpp_err=yes
16468 if test -z "$ac_cpp_err"; then
16469 ac_header_preproc=yes
16470 else
16471 echo "$as_me: failed program was:" >&5
16472 sed 's/^/| /' conftest.$ac_ext >&5
16474 ac_header_preproc=no
16476 rm -f conftest.err conftest.$ac_ext
16477 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16478 echo "${ECHO_T}$ac_header_preproc" >&6
16480 # So? What about this header?
16481 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16482 yes:no: )
16483 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
16484 echo "$as_me: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16485 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&5
16486 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&2;}
16487 ac_header_preproc=yes
16489 no:yes:* )
16490 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: present but cannot be compiled" >&5
16491 echo "$as_me: WARNING: sys/cpustats.h: present but cannot be compiled" >&2;}
16492 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&5
16493 echo "$as_me: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&2;}
16494 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: see the Autoconf documentation" >&5
16495 echo "$as_me: WARNING: sys/cpustats.h: see the Autoconf documentation" >&2;}
16496 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
16497 echo "$as_me: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
16498 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
16499 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;}
16500 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&5
16501 echo "$as_me: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&2;}
16503 cat <<\_ASBOX
16504 ## ------------------------------------------ ##
16505 ## Report this to the AC_PACKAGE_NAME lists. ##
16506 ## ------------------------------------------ ##
16507 _ASBOX
16509 sed "s/^/$as_me: WARNING: /" >&2
16511 esac
16512 echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
16513 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6
16514 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
16515 echo $ECHO_N "(cached) $ECHO_C" >&6
16516 else
16517 ac_cv_header_sys_cpustats_h=$ac_header_preproc
16519 echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
16520 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6
16523 if test $ac_cv_header_sys_cpustats_h = yes; then
16524 ac_have_func=yes; cat >>confdefs.h <<\_ACEOF
16525 #define UMAX 1
16526 _ACEOF
16533 if test $ac_have_func = no; then
16535 for ac_header in mach/mach.h
16537 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16538 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16539 echo "$as_me:$LINENO: checking for $ac_header" >&5
16540 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16541 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16542 echo $ECHO_N "(cached) $ECHO_C" >&6
16544 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16545 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16546 else
16547 # Is the header compilable?
16548 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16549 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16550 cat >conftest.$ac_ext <<_ACEOF
16551 /* confdefs.h. */
16552 _ACEOF
16553 cat confdefs.h >>conftest.$ac_ext
16554 cat >>conftest.$ac_ext <<_ACEOF
16555 /* end confdefs.h. */
16556 $ac_includes_default
16557 #include <$ac_header>
16558 _ACEOF
16559 rm -f conftest.$ac_objext
16560 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16561 (eval $ac_compile) 2>conftest.er1
16562 ac_status=$?
16563 grep -v '^ *+' conftest.er1 >conftest.err
16564 rm -f conftest.er1
16565 cat conftest.err >&5
16566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16567 (exit $ac_status); } &&
16568 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16570 (eval $ac_try) 2>&5
16571 ac_status=$?
16572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16573 (exit $ac_status); }; } &&
16574 { ac_try='test -s conftest.$ac_objext'
16575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16576 (eval $ac_try) 2>&5
16577 ac_status=$?
16578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16579 (exit $ac_status); }; }; then
16580 ac_header_compiler=yes
16581 else
16582 echo "$as_me: failed program was:" >&5
16583 sed 's/^/| /' conftest.$ac_ext >&5
16585 ac_header_compiler=no
16587 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16588 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16589 echo "${ECHO_T}$ac_header_compiler" >&6
16591 # Is the header present?
16592 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16593 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16594 cat >conftest.$ac_ext <<_ACEOF
16595 /* confdefs.h. */
16596 _ACEOF
16597 cat confdefs.h >>conftest.$ac_ext
16598 cat >>conftest.$ac_ext <<_ACEOF
16599 /* end confdefs.h. */
16600 #include <$ac_header>
16601 _ACEOF
16602 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16603 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16604 ac_status=$?
16605 grep -v '^ *+' conftest.er1 >conftest.err
16606 rm -f conftest.er1
16607 cat conftest.err >&5
16608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16609 (exit $ac_status); } >/dev/null; then
16610 if test -s conftest.err; then
16611 ac_cpp_err=$ac_c_preproc_warn_flag
16612 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16613 else
16614 ac_cpp_err=
16616 else
16617 ac_cpp_err=yes
16619 if test -z "$ac_cpp_err"; then
16620 ac_header_preproc=yes
16621 else
16622 echo "$as_me: failed program was:" >&5
16623 sed 's/^/| /' conftest.$ac_ext >&5
16625 ac_header_preproc=no
16627 rm -f conftest.err conftest.$ac_ext
16628 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16629 echo "${ECHO_T}$ac_header_preproc" >&6
16631 # So? What about this header?
16632 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16633 yes:no: )
16634 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16635 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16636 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16637 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16638 ac_header_preproc=yes
16640 no:yes:* )
16641 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16642 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16643 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16644 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16645 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16646 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16647 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16648 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16649 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16650 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16651 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16652 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16654 cat <<\_ASBOX
16655 ## ------------------------------------------ ##
16656 ## Report this to the AC_PACKAGE_NAME lists. ##
16657 ## ------------------------------------------ ##
16658 _ASBOX
16660 sed "s/^/$as_me: WARNING: /" >&2
16662 esac
16663 echo "$as_me:$LINENO: checking for $ac_header" >&5
16664 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16665 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16666 echo $ECHO_N "(cached) $ECHO_C" >&6
16667 else
16668 eval "$as_ac_Header=\$ac_header_preproc"
16670 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16671 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16674 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16675 cat >>confdefs.h <<_ACEOF
16676 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16677 _ACEOF
16681 done
16686 for ac_header in nlist.h
16688 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16689 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16690 echo "$as_me:$LINENO: checking for $ac_header" >&5
16691 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16692 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16693 echo $ECHO_N "(cached) $ECHO_C" >&6
16695 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16696 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16697 else
16698 # Is the header compilable?
16699 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16700 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16701 cat >conftest.$ac_ext <<_ACEOF
16702 /* confdefs.h. */
16703 _ACEOF
16704 cat confdefs.h >>conftest.$ac_ext
16705 cat >>conftest.$ac_ext <<_ACEOF
16706 /* end confdefs.h. */
16707 $ac_includes_default
16708 #include <$ac_header>
16709 _ACEOF
16710 rm -f conftest.$ac_objext
16711 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16712 (eval $ac_compile) 2>conftest.er1
16713 ac_status=$?
16714 grep -v '^ *+' conftest.er1 >conftest.err
16715 rm -f conftest.er1
16716 cat conftest.err >&5
16717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16718 (exit $ac_status); } &&
16719 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16721 (eval $ac_try) 2>&5
16722 ac_status=$?
16723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16724 (exit $ac_status); }; } &&
16725 { ac_try='test -s conftest.$ac_objext'
16726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16727 (eval $ac_try) 2>&5
16728 ac_status=$?
16729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16730 (exit $ac_status); }; }; then
16731 ac_header_compiler=yes
16732 else
16733 echo "$as_me: failed program was:" >&5
16734 sed 's/^/| /' conftest.$ac_ext >&5
16736 ac_header_compiler=no
16738 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16739 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16740 echo "${ECHO_T}$ac_header_compiler" >&6
16742 # Is the header present?
16743 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16744 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16745 cat >conftest.$ac_ext <<_ACEOF
16746 /* confdefs.h. */
16747 _ACEOF
16748 cat confdefs.h >>conftest.$ac_ext
16749 cat >>conftest.$ac_ext <<_ACEOF
16750 /* end confdefs.h. */
16751 #include <$ac_header>
16752 _ACEOF
16753 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16754 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16755 ac_status=$?
16756 grep -v '^ *+' conftest.er1 >conftest.err
16757 rm -f conftest.er1
16758 cat conftest.err >&5
16759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16760 (exit $ac_status); } >/dev/null; then
16761 if test -s conftest.err; then
16762 ac_cpp_err=$ac_c_preproc_warn_flag
16763 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16764 else
16765 ac_cpp_err=
16767 else
16768 ac_cpp_err=yes
16770 if test -z "$ac_cpp_err"; then
16771 ac_header_preproc=yes
16772 else
16773 echo "$as_me: failed program was:" >&5
16774 sed 's/^/| /' conftest.$ac_ext >&5
16776 ac_header_preproc=no
16778 rm -f conftest.err conftest.$ac_ext
16779 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16780 echo "${ECHO_T}$ac_header_preproc" >&6
16782 # So? What about this header?
16783 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16784 yes:no: )
16785 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16786 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16787 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16788 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16789 ac_header_preproc=yes
16791 no:yes:* )
16792 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16793 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16794 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16795 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16796 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16797 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16798 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16799 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16800 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16801 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16802 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16803 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16805 cat <<\_ASBOX
16806 ## ------------------------------------------ ##
16807 ## Report this to the AC_PACKAGE_NAME lists. ##
16808 ## ------------------------------------------ ##
16809 _ASBOX
16811 sed "s/^/$as_me: WARNING: /" >&2
16813 esac
16814 echo "$as_me:$LINENO: checking for $ac_header" >&5
16815 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16816 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16817 echo $ECHO_N "(cached) $ECHO_C" >&6
16818 else
16819 eval "$as_ac_Header=\$ac_header_preproc"
16821 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16822 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16825 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16826 cat >>confdefs.h <<_ACEOF
16827 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16828 _ACEOF
16829 echo "$as_me:$LINENO: checking for struct nlist.n_un.n_name" >&5
16830 echo $ECHO_N "checking for struct nlist.n_un.n_name... $ECHO_C" >&6
16831 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
16832 echo $ECHO_N "(cached) $ECHO_C" >&6
16833 else
16834 cat >conftest.$ac_ext <<_ACEOF
16835 /* confdefs.h. */
16836 _ACEOF
16837 cat confdefs.h >>conftest.$ac_ext
16838 cat >>conftest.$ac_ext <<_ACEOF
16839 /* end confdefs.h. */
16840 #include <nlist.h>
16843 main ()
16845 static struct nlist ac_aggr;
16846 if (ac_aggr.n_un.n_name)
16847 return 0;
16849 return 0;
16851 _ACEOF
16852 rm -f conftest.$ac_objext
16853 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16854 (eval $ac_compile) 2>conftest.er1
16855 ac_status=$?
16856 grep -v '^ *+' conftest.er1 >conftest.err
16857 rm -f conftest.er1
16858 cat conftest.err >&5
16859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16860 (exit $ac_status); } &&
16861 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16863 (eval $ac_try) 2>&5
16864 ac_status=$?
16865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16866 (exit $ac_status); }; } &&
16867 { ac_try='test -s conftest.$ac_objext'
16868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16869 (eval $ac_try) 2>&5
16870 ac_status=$?
16871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16872 (exit $ac_status); }; }; then
16873 ac_cv_member_struct_nlist_n_un_n_name=yes
16874 else
16875 echo "$as_me: failed program was:" >&5
16876 sed 's/^/| /' conftest.$ac_ext >&5
16878 cat >conftest.$ac_ext <<_ACEOF
16879 /* confdefs.h. */
16880 _ACEOF
16881 cat confdefs.h >>conftest.$ac_ext
16882 cat >>conftest.$ac_ext <<_ACEOF
16883 /* end confdefs.h. */
16884 #include <nlist.h>
16887 main ()
16889 static struct nlist ac_aggr;
16890 if (sizeof ac_aggr.n_un.n_name)
16891 return 0;
16893 return 0;
16895 _ACEOF
16896 rm -f conftest.$ac_objext
16897 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16898 (eval $ac_compile) 2>conftest.er1
16899 ac_status=$?
16900 grep -v '^ *+' conftest.er1 >conftest.err
16901 rm -f conftest.er1
16902 cat conftest.err >&5
16903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16904 (exit $ac_status); } &&
16905 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16907 (eval $ac_try) 2>&5
16908 ac_status=$?
16909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16910 (exit $ac_status); }; } &&
16911 { ac_try='test -s conftest.$ac_objext'
16912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16913 (eval $ac_try) 2>&5
16914 ac_status=$?
16915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16916 (exit $ac_status); }; }; then
16917 ac_cv_member_struct_nlist_n_un_n_name=yes
16918 else
16919 echo "$as_me: failed program was:" >&5
16920 sed 's/^/| /' conftest.$ac_ext >&5
16922 ac_cv_member_struct_nlist_n_un_n_name=no
16924 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16926 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16928 echo "$as_me:$LINENO: result: $ac_cv_member_struct_nlist_n_un_n_name" >&5
16929 echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6
16930 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
16932 cat >>confdefs.h <<_ACEOF
16933 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
16934 _ACEOF
16937 cat >>confdefs.h <<\_ACEOF
16938 #define NLIST_NAME_UNION 1
16939 _ACEOF
16946 done
16949 done
16952 # Some definitions of getloadavg require that the program be installed setgid.
16953 echo "$as_me:$LINENO: checking whether getloadavg requires setgid" >&5
16954 echo $ECHO_N "checking whether getloadavg requires setgid... $ECHO_C" >&6
16955 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
16956 echo $ECHO_N "(cached) $ECHO_C" >&6
16957 else
16958 cat >conftest.$ac_ext <<_ACEOF
16959 /* confdefs.h. */
16960 _ACEOF
16961 cat confdefs.h >>conftest.$ac_ext
16962 cat >>conftest.$ac_ext <<_ACEOF
16963 /* end confdefs.h. */
16964 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c"
16965 #ifdef LDAV_PRIVILEGED
16966 Yowza Am I SETGID yet
16967 #endif
16968 _ACEOF
16969 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16970 $EGREP "Yowza Am I SETGID yet" >/dev/null 2>&1; then
16971 ac_cv_func_getloadavg_setgid=yes
16972 else
16973 ac_cv_func_getloadavg_setgid=no
16975 rm -f conftest*
16978 echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg_setgid" >&5
16979 echo "${ECHO_T}$ac_cv_func_getloadavg_setgid" >&6
16980 if test $ac_cv_func_getloadavg_setgid = yes; then
16981 NEED_SETGID=true
16983 cat >>confdefs.h <<\_ACEOF
16984 #define GETLOADAVG_PRIVILEGED 1
16985 _ACEOF
16987 else
16988 NEED_SETGID=false
16991 if test $ac_cv_func_getloadavg_setgid = yes; then
16992 echo "$as_me:$LINENO: checking group of /dev/kmem" >&5
16993 echo $ECHO_N "checking group of /dev/kmem... $ECHO_C" >&6
16994 if test "${ac_cv_group_kmem+set}" = set; then
16995 echo $ECHO_N "(cached) $ECHO_C" >&6
16996 else
16997 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
16998 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
16999 # If we got an error (system does not support symlinks), try without -L.
17000 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
17001 ac_cv_group_kmem=`echo $ac_ls_output \
17002 | sed -ne 's/[ ][ ]*/ /g;
17003 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
17004 / /s/.* //;p;'`
17007 echo "$as_me:$LINENO: result: $ac_cv_group_kmem" >&5
17008 echo "${ECHO_T}$ac_cv_group_kmem" >&6
17009 KMEM_GROUP=$ac_cv_group_kmem
17011 if test "x$ac_save_LIBS" = x; then
17012 GETLOADAVG_LIBS=$LIBS
17013 else
17014 GETLOADAVG_LIBS=`echo "$LIBS" | sed "s!$ac_save_LIBS!!"`
17016 LIBS=$ac_save_LIBS
17020 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
17021 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
17022 if test "${ac_cv_sys_largefile_source+set}" = set; then
17023 echo $ECHO_N "(cached) $ECHO_C" >&6
17024 else
17025 while :; do
17026 ac_cv_sys_largefile_source=no
17027 cat >conftest.$ac_ext <<_ACEOF
17028 /* confdefs.h. */
17029 _ACEOF
17030 cat confdefs.h >>conftest.$ac_ext
17031 cat >>conftest.$ac_ext <<_ACEOF
17032 /* end confdefs.h. */
17033 #include <stdio.h>
17035 main ()
17037 return !fseeko;
17039 return 0;
17041 _ACEOF
17042 rm -f conftest.$ac_objext
17043 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17044 (eval $ac_compile) 2>conftest.er1
17045 ac_status=$?
17046 grep -v '^ *+' conftest.er1 >conftest.err
17047 rm -f conftest.er1
17048 cat conftest.err >&5
17049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17050 (exit $ac_status); } &&
17051 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17053 (eval $ac_try) 2>&5
17054 ac_status=$?
17055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17056 (exit $ac_status); }; } &&
17057 { ac_try='test -s conftest.$ac_objext'
17058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17059 (eval $ac_try) 2>&5
17060 ac_status=$?
17061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17062 (exit $ac_status); }; }; then
17063 break
17064 else
17065 echo "$as_me: failed program was:" >&5
17066 sed 's/^/| /' conftest.$ac_ext >&5
17069 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17070 cat >conftest.$ac_ext <<_ACEOF
17071 /* confdefs.h. */
17072 _ACEOF
17073 cat confdefs.h >>conftest.$ac_ext
17074 cat >>conftest.$ac_ext <<_ACEOF
17075 /* end confdefs.h. */
17076 #define _LARGEFILE_SOURCE 1
17077 #include <stdio.h>
17079 main ()
17081 return !fseeko;
17083 return 0;
17085 _ACEOF
17086 rm -f conftest.$ac_objext
17087 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17088 (eval $ac_compile) 2>conftest.er1
17089 ac_status=$?
17090 grep -v '^ *+' conftest.er1 >conftest.err
17091 rm -f conftest.er1
17092 cat conftest.err >&5
17093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17094 (exit $ac_status); } &&
17095 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17097 (eval $ac_try) 2>&5
17098 ac_status=$?
17099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17100 (exit $ac_status); }; } &&
17101 { ac_try='test -s conftest.$ac_objext'
17102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17103 (eval $ac_try) 2>&5
17104 ac_status=$?
17105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17106 (exit $ac_status); }; }; then
17107 ac_cv_sys_largefile_source=1; break
17108 else
17109 echo "$as_me: failed program was:" >&5
17110 sed 's/^/| /' conftest.$ac_ext >&5
17113 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17114 break
17115 done
17117 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
17118 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
17119 if test "$ac_cv_sys_largefile_source" != no; then
17121 cat >>confdefs.h <<_ACEOF
17122 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
17123 _ACEOF
17126 rm -f conftest*
17128 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
17129 # in glibc 2.1.3, but that breaks too many other things.
17130 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
17131 echo "$as_me:$LINENO: checking for fseeko" >&5
17132 echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
17133 if test "${ac_cv_func_fseeko+set}" = set; then
17134 echo $ECHO_N "(cached) $ECHO_C" >&6
17135 else
17136 cat >conftest.$ac_ext <<_ACEOF
17137 /* confdefs.h. */
17138 _ACEOF
17139 cat confdefs.h >>conftest.$ac_ext
17140 cat >>conftest.$ac_ext <<_ACEOF
17141 /* end confdefs.h. */
17142 #include <stdio.h>
17144 main ()
17146 return fseeko && fseeko (stdin, 0, 0);
17148 return 0;
17150 _ACEOF
17151 rm -f conftest.$ac_objext conftest$ac_exeext
17152 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17153 (eval $ac_link) 2>conftest.er1
17154 ac_status=$?
17155 grep -v '^ *+' conftest.er1 >conftest.err
17156 rm -f conftest.er1
17157 cat conftest.err >&5
17158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17159 (exit $ac_status); } &&
17160 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17162 (eval $ac_try) 2>&5
17163 ac_status=$?
17164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17165 (exit $ac_status); }; } &&
17166 { ac_try='test -s conftest$ac_exeext'
17167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17168 (eval $ac_try) 2>&5
17169 ac_status=$?
17170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17171 (exit $ac_status); }; }; then
17172 ac_cv_func_fseeko=yes
17173 else
17174 echo "$as_me: failed program was:" >&5
17175 sed 's/^/| /' conftest.$ac_ext >&5
17177 ac_cv_func_fseeko=no
17179 rm -f conftest.err conftest.$ac_objext \
17180 conftest$ac_exeext conftest.$ac_ext
17182 echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5
17183 echo "${ECHO_T}$ac_cv_func_fseeko" >&6
17184 if test $ac_cv_func_fseeko = yes; then
17186 cat >>confdefs.h <<\_ACEOF
17187 #define HAVE_FSEEKO 1
17188 _ACEOF
17193 # Configure getopt.
17194 # getopt.m4 serial 10
17196 # The getopt module assume you want GNU getopt, with getopt_long etc,
17197 # rather than vanilla POSIX getopt. This means your your code should
17198 # always include <getopt.h> for the getopt prototypes.
17210 # Prerequisites of lib/getopt*.
17215 GETOPT_H=
17217 for ac_header in getopt.h
17219 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17220 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17221 echo "$as_me:$LINENO: checking for $ac_header" >&5
17222 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17223 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17224 echo $ECHO_N "(cached) $ECHO_C" >&6
17226 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17227 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17228 else
17229 # Is the header compilable?
17230 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17231 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17232 cat >conftest.$ac_ext <<_ACEOF
17233 /* confdefs.h. */
17234 _ACEOF
17235 cat confdefs.h >>conftest.$ac_ext
17236 cat >>conftest.$ac_ext <<_ACEOF
17237 /* end confdefs.h. */
17238 $ac_includes_default
17239 #include <$ac_header>
17240 _ACEOF
17241 rm -f conftest.$ac_objext
17242 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17243 (eval $ac_compile) 2>conftest.er1
17244 ac_status=$?
17245 grep -v '^ *+' conftest.er1 >conftest.err
17246 rm -f conftest.er1
17247 cat conftest.err >&5
17248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17249 (exit $ac_status); } &&
17250 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17252 (eval $ac_try) 2>&5
17253 ac_status=$?
17254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17255 (exit $ac_status); }; } &&
17256 { ac_try='test -s conftest.$ac_objext'
17257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17258 (eval $ac_try) 2>&5
17259 ac_status=$?
17260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17261 (exit $ac_status); }; }; then
17262 ac_header_compiler=yes
17263 else
17264 echo "$as_me: failed program was:" >&5
17265 sed 's/^/| /' conftest.$ac_ext >&5
17267 ac_header_compiler=no
17269 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17270 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17271 echo "${ECHO_T}$ac_header_compiler" >&6
17273 # Is the header present?
17274 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17275 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17276 cat >conftest.$ac_ext <<_ACEOF
17277 /* confdefs.h. */
17278 _ACEOF
17279 cat confdefs.h >>conftest.$ac_ext
17280 cat >>conftest.$ac_ext <<_ACEOF
17281 /* end confdefs.h. */
17282 #include <$ac_header>
17283 _ACEOF
17284 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17285 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17286 ac_status=$?
17287 grep -v '^ *+' conftest.er1 >conftest.err
17288 rm -f conftest.er1
17289 cat conftest.err >&5
17290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17291 (exit $ac_status); } >/dev/null; then
17292 if test -s conftest.err; then
17293 ac_cpp_err=$ac_c_preproc_warn_flag
17294 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17295 else
17296 ac_cpp_err=
17298 else
17299 ac_cpp_err=yes
17301 if test -z "$ac_cpp_err"; then
17302 ac_header_preproc=yes
17303 else
17304 echo "$as_me: failed program was:" >&5
17305 sed 's/^/| /' conftest.$ac_ext >&5
17307 ac_header_preproc=no
17309 rm -f conftest.err conftest.$ac_ext
17310 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17311 echo "${ECHO_T}$ac_header_preproc" >&6
17313 # So? What about this header?
17314 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17315 yes:no: )
17316 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17317 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17318 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17319 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17320 ac_header_preproc=yes
17322 no:yes:* )
17323 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17324 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17325 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17326 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17327 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17328 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17329 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17330 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17331 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17332 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17333 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17334 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17336 cat <<\_ASBOX
17337 ## ------------------------------------------ ##
17338 ## Report this to the AC_PACKAGE_NAME lists. ##
17339 ## ------------------------------------------ ##
17340 _ASBOX
17342 sed "s/^/$as_me: WARNING: /" >&2
17344 esac
17345 echo "$as_me:$LINENO: checking for $ac_header" >&5
17346 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17347 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17348 echo $ECHO_N "(cached) $ECHO_C" >&6
17349 else
17350 eval "$as_ac_Header=\$ac_header_preproc"
17352 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17353 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17356 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17357 cat >>confdefs.h <<_ACEOF
17358 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17359 _ACEOF
17361 else
17362 GETOPT_H=getopt.h
17365 done
17367 if test -z "$GETOPT_H"; then
17369 for ac_func in getopt_long_only
17371 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17372 echo "$as_me:$LINENO: checking for $ac_func" >&5
17373 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17374 if eval "test \"\${$as_ac_var+set}\" = set"; then
17375 echo $ECHO_N "(cached) $ECHO_C" >&6
17376 else
17377 cat >conftest.$ac_ext <<_ACEOF
17378 /* confdefs.h. */
17379 _ACEOF
17380 cat confdefs.h >>conftest.$ac_ext
17381 cat >>conftest.$ac_ext <<_ACEOF
17382 /* end confdefs.h. */
17383 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17384 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17385 #define $ac_func innocuous_$ac_func
17387 /* System header to define __stub macros and hopefully few prototypes,
17388 which can conflict with char $ac_func (); below.
17389 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17390 <limits.h> exists even on freestanding compilers. */
17392 #ifdef __STDC__
17393 # include <limits.h>
17394 #else
17395 # include <assert.h>
17396 #endif
17398 #undef $ac_func
17400 /* Override any gcc2 internal prototype to avoid an error. */
17401 #ifdef __cplusplus
17402 extern "C"
17404 #endif
17405 /* We use char because int might match the return type of a gcc2
17406 builtin and then its argument prototype would still apply. */
17407 char $ac_func ();
17408 /* The GNU C library defines this for functions which it implements
17409 to always fail with ENOSYS. Some functions are actually named
17410 something starting with __ and the normal name is an alias. */
17411 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17412 choke me
17413 #else
17414 char (*f) () = $ac_func;
17415 #endif
17416 #ifdef __cplusplus
17418 #endif
17421 main ()
17423 return f != $ac_func;
17425 return 0;
17427 _ACEOF
17428 rm -f conftest.$ac_objext conftest$ac_exeext
17429 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17430 (eval $ac_link) 2>conftest.er1
17431 ac_status=$?
17432 grep -v '^ *+' conftest.er1 >conftest.err
17433 rm -f conftest.er1
17434 cat conftest.err >&5
17435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17436 (exit $ac_status); } &&
17437 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17439 (eval $ac_try) 2>&5
17440 ac_status=$?
17441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17442 (exit $ac_status); }; } &&
17443 { ac_try='test -s conftest$ac_exeext'
17444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17445 (eval $ac_try) 2>&5
17446 ac_status=$?
17447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17448 (exit $ac_status); }; }; then
17449 eval "$as_ac_var=yes"
17450 else
17451 echo "$as_me: failed program was:" >&5
17452 sed 's/^/| /' conftest.$ac_ext >&5
17454 eval "$as_ac_var=no"
17456 rm -f conftest.err conftest.$ac_objext \
17457 conftest$ac_exeext conftest.$ac_ext
17459 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17460 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17461 if test `eval echo '${'$as_ac_var'}'` = yes; then
17462 cat >>confdefs.h <<_ACEOF
17463 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17464 _ACEOF
17466 else
17467 GETOPT_H=getopt.h
17469 done
17473 if test -z "$GETOPT_H"; then
17474 echo "$as_me:$LINENO: checking whether optreset is declared" >&5
17475 echo $ECHO_N "checking whether optreset is declared... $ECHO_C" >&6
17476 if test "${ac_cv_have_decl_optreset+set}" = set; then
17477 echo $ECHO_N "(cached) $ECHO_C" >&6
17478 else
17479 cat >conftest.$ac_ext <<_ACEOF
17480 /* confdefs.h. */
17481 _ACEOF
17482 cat confdefs.h >>conftest.$ac_ext
17483 cat >>conftest.$ac_ext <<_ACEOF
17484 /* end confdefs.h. */
17485 #include <getopt.h>
17488 main ()
17490 #ifndef optreset
17491 char *p = (char *) optreset;
17492 #endif
17495 return 0;
17497 _ACEOF
17498 rm -f conftest.$ac_objext
17499 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17500 (eval $ac_compile) 2>conftest.er1
17501 ac_status=$?
17502 grep -v '^ *+' conftest.er1 >conftest.err
17503 rm -f conftest.er1
17504 cat conftest.err >&5
17505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17506 (exit $ac_status); } &&
17507 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17509 (eval $ac_try) 2>&5
17510 ac_status=$?
17511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17512 (exit $ac_status); }; } &&
17513 { ac_try='test -s conftest.$ac_objext'
17514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17515 (eval $ac_try) 2>&5
17516 ac_status=$?
17517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17518 (exit $ac_status); }; }; then
17519 ac_cv_have_decl_optreset=yes
17520 else
17521 echo "$as_me: failed program was:" >&5
17522 sed 's/^/| /' conftest.$ac_ext >&5
17524 ac_cv_have_decl_optreset=no
17526 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17528 echo "$as_me:$LINENO: result: $ac_cv_have_decl_optreset" >&5
17529 echo "${ECHO_T}$ac_cv_have_decl_optreset" >&6
17530 if test $ac_cv_have_decl_optreset = yes; then
17531 GETOPT_H=getopt.h
17536 if test -z "$GETOPT_H"; then
17537 echo "$as_me:$LINENO: checking for working GNU getopt function" >&5
17538 echo $ECHO_N "checking for working GNU getopt function... $ECHO_C" >&6
17539 if test "${gl_cv_func_gnu_getopt+set}" = set; then
17540 echo $ECHO_N "(cached) $ECHO_C" >&6
17541 else
17542 if test "$cross_compiling" = yes; then
17543 echo "$as_me:$LINENO: checking whether getopt_clip is declared" >&5
17544 echo $ECHO_N "checking whether getopt_clip is declared... $ECHO_C" >&6
17545 if test "${ac_cv_have_decl_getopt_clip+set}" = set; then
17546 echo $ECHO_N "(cached) $ECHO_C" >&6
17547 else
17548 cat >conftest.$ac_ext <<_ACEOF
17549 /* confdefs.h. */
17550 _ACEOF
17551 cat confdefs.h >>conftest.$ac_ext
17552 cat >>conftest.$ac_ext <<_ACEOF
17553 /* end confdefs.h. */
17554 #include <getopt.h>
17557 main ()
17559 #ifndef getopt_clip
17560 char *p = (char *) getopt_clip;
17561 #endif
17564 return 0;
17566 _ACEOF
17567 rm -f conftest.$ac_objext
17568 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17569 (eval $ac_compile) 2>conftest.er1
17570 ac_status=$?
17571 grep -v '^ *+' conftest.er1 >conftest.err
17572 rm -f conftest.er1
17573 cat conftest.err >&5
17574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17575 (exit $ac_status); } &&
17576 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17578 (eval $ac_try) 2>&5
17579 ac_status=$?
17580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17581 (exit $ac_status); }; } &&
17582 { ac_try='test -s conftest.$ac_objext'
17583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17584 (eval $ac_try) 2>&5
17585 ac_status=$?
17586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17587 (exit $ac_status); }; }; then
17588 ac_cv_have_decl_getopt_clip=yes
17589 else
17590 echo "$as_me: failed program was:" >&5
17591 sed 's/^/| /' conftest.$ac_ext >&5
17593 ac_cv_have_decl_getopt_clip=no
17595 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17597 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getopt_clip" >&5
17598 echo "${ECHO_T}$ac_cv_have_decl_getopt_clip" >&6
17599 if test $ac_cv_have_decl_getopt_clip = yes; then
17600 gl_cv_func_gnu_getopt=no
17601 else
17602 gl_cv_func_gnu_getopt=yes
17605 else
17606 cat >conftest.$ac_ext <<_ACEOF
17607 /* confdefs.h. */
17608 _ACEOF
17609 cat confdefs.h >>conftest.$ac_ext
17610 cat >>conftest.$ac_ext <<_ACEOF
17611 /* end confdefs.h. */
17612 #include <getopt.h>
17614 main ()
17617 char *myargv[3];
17618 myargv[0] = "conftest";
17619 myargv[1] = "-+";
17620 myargv[2] = 0;
17621 return getopt (2, myargv, "+a") != '?';
17624 return 0;
17626 _ACEOF
17627 rm -f conftest$ac_exeext
17628 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17629 (eval $ac_link) 2>&5
17630 ac_status=$?
17631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17632 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17634 (eval $ac_try) 2>&5
17635 ac_status=$?
17636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17637 (exit $ac_status); }; }; then
17638 gl_cv_func_gnu_getopt=yes
17639 else
17640 echo "$as_me: program exited with status $ac_status" >&5
17641 echo "$as_me: failed program was:" >&5
17642 sed 's/^/| /' conftest.$ac_ext >&5
17644 ( exit $ac_status )
17645 gl_cv_func_gnu_getopt=no
17647 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17650 echo "$as_me:$LINENO: result: $gl_cv_func_gnu_getopt" >&5
17651 echo "${ECHO_T}$gl_cv_func_gnu_getopt" >&6
17652 if test "$gl_cv_func_gnu_getopt" = "no"; then
17653 GETOPT_H=getopt.h
17659 if test -n "$GETOPT_H"; then
17662 GETOPT_H=getopt.h
17664 cat >>confdefs.h <<\_ACEOF
17665 #define __GETOPT_PREFIX rpl_
17666 _ACEOF
17671 GETOPTOBJS='getopt.o getopt1.o'
17678 echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5
17679 echo $ECHO_N "checking whether getpgrp requires zero arguments... $ECHO_C" >&6
17680 if test "${ac_cv_func_getpgrp_void+set}" = set; then
17681 echo $ECHO_N "(cached) $ECHO_C" >&6
17682 else
17683 # Use it with a single arg.
17684 cat >conftest.$ac_ext <<_ACEOF
17685 /* confdefs.h. */
17686 _ACEOF
17687 cat confdefs.h >>conftest.$ac_ext
17688 cat >>conftest.$ac_ext <<_ACEOF
17689 /* end confdefs.h. */
17690 $ac_includes_default
17692 main ()
17694 getpgrp (0);
17696 return 0;
17698 _ACEOF
17699 rm -f conftest.$ac_objext
17700 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17701 (eval $ac_compile) 2>conftest.er1
17702 ac_status=$?
17703 grep -v '^ *+' conftest.er1 >conftest.err
17704 rm -f conftest.er1
17705 cat conftest.err >&5
17706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17707 (exit $ac_status); } &&
17708 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17710 (eval $ac_try) 2>&5
17711 ac_status=$?
17712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17713 (exit $ac_status); }; } &&
17714 { ac_try='test -s conftest.$ac_objext'
17715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17716 (eval $ac_try) 2>&5
17717 ac_status=$?
17718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17719 (exit $ac_status); }; }; then
17720 ac_cv_func_getpgrp_void=no
17721 else
17722 echo "$as_me: failed program was:" >&5
17723 sed 's/^/| /' conftest.$ac_ext >&5
17725 ac_cv_func_getpgrp_void=yes
17727 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17730 echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5
17731 echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6
17732 if test $ac_cv_func_getpgrp_void = yes; then
17734 cat >>confdefs.h <<\_ACEOF
17735 #define GETPGRP_VOID 1
17736 _ACEOF
17742 for ac_func in strftime
17744 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17745 echo "$as_me:$LINENO: checking for $ac_func" >&5
17746 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17747 if eval "test \"\${$as_ac_var+set}\" = set"; then
17748 echo $ECHO_N "(cached) $ECHO_C" >&6
17749 else
17750 cat >conftest.$ac_ext <<_ACEOF
17751 /* confdefs.h. */
17752 _ACEOF
17753 cat confdefs.h >>conftest.$ac_ext
17754 cat >>conftest.$ac_ext <<_ACEOF
17755 /* end confdefs.h. */
17756 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17757 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17758 #define $ac_func innocuous_$ac_func
17760 /* System header to define __stub macros and hopefully few prototypes,
17761 which can conflict with char $ac_func (); below.
17762 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17763 <limits.h> exists even on freestanding compilers. */
17765 #ifdef __STDC__
17766 # include <limits.h>
17767 #else
17768 # include <assert.h>
17769 #endif
17771 #undef $ac_func
17773 /* Override any gcc2 internal prototype to avoid an error. */
17774 #ifdef __cplusplus
17775 extern "C"
17777 #endif
17778 /* We use char because int might match the return type of a gcc2
17779 builtin and then its argument prototype would still apply. */
17780 char $ac_func ();
17781 /* The GNU C library defines this for functions which it implements
17782 to always fail with ENOSYS. Some functions are actually named
17783 something starting with __ and the normal name is an alias. */
17784 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17785 choke me
17786 #else
17787 char (*f) () = $ac_func;
17788 #endif
17789 #ifdef __cplusplus
17791 #endif
17794 main ()
17796 return f != $ac_func;
17798 return 0;
17800 _ACEOF
17801 rm -f conftest.$ac_objext conftest$ac_exeext
17802 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17803 (eval $ac_link) 2>conftest.er1
17804 ac_status=$?
17805 grep -v '^ *+' conftest.er1 >conftest.err
17806 rm -f conftest.er1
17807 cat conftest.err >&5
17808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17809 (exit $ac_status); } &&
17810 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17812 (eval $ac_try) 2>&5
17813 ac_status=$?
17814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17815 (exit $ac_status); }; } &&
17816 { ac_try='test -s conftest$ac_exeext'
17817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17818 (eval $ac_try) 2>&5
17819 ac_status=$?
17820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17821 (exit $ac_status); }; }; then
17822 eval "$as_ac_var=yes"
17823 else
17824 echo "$as_me: failed program was:" >&5
17825 sed 's/^/| /' conftest.$ac_ext >&5
17827 eval "$as_ac_var=no"
17829 rm -f conftest.err conftest.$ac_objext \
17830 conftest$ac_exeext conftest.$ac_ext
17832 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17833 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17834 if test `eval echo '${'$as_ac_var'}'` = yes; then
17835 cat >>confdefs.h <<_ACEOF
17836 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17837 _ACEOF
17839 else
17840 # strftime is in -lintl on SCO UNIX.
17841 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
17842 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
17843 if test "${ac_cv_lib_intl_strftime+set}" = set; then
17844 echo $ECHO_N "(cached) $ECHO_C" >&6
17845 else
17846 ac_check_lib_save_LIBS=$LIBS
17847 LIBS="-lintl $LIBS"
17848 cat >conftest.$ac_ext <<_ACEOF
17849 /* confdefs.h. */
17850 _ACEOF
17851 cat confdefs.h >>conftest.$ac_ext
17852 cat >>conftest.$ac_ext <<_ACEOF
17853 /* end confdefs.h. */
17855 /* Override any gcc2 internal prototype to avoid an error. */
17856 #ifdef __cplusplus
17857 extern "C"
17858 #endif
17859 /* We use char because int might match the return type of a gcc2
17860 builtin and then its argument prototype would still apply. */
17861 char strftime ();
17863 main ()
17865 strftime ();
17867 return 0;
17869 _ACEOF
17870 rm -f conftest.$ac_objext conftest$ac_exeext
17871 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17872 (eval $ac_link) 2>conftest.er1
17873 ac_status=$?
17874 grep -v '^ *+' conftest.er1 >conftest.err
17875 rm -f conftest.er1
17876 cat conftest.err >&5
17877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17878 (exit $ac_status); } &&
17879 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17881 (eval $ac_try) 2>&5
17882 ac_status=$?
17883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17884 (exit $ac_status); }; } &&
17885 { ac_try='test -s conftest$ac_exeext'
17886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17887 (eval $ac_try) 2>&5
17888 ac_status=$?
17889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17890 (exit $ac_status); }; }; then
17891 ac_cv_lib_intl_strftime=yes
17892 else
17893 echo "$as_me: failed program was:" >&5
17894 sed 's/^/| /' conftest.$ac_ext >&5
17896 ac_cv_lib_intl_strftime=no
17898 rm -f conftest.err conftest.$ac_objext \
17899 conftest$ac_exeext conftest.$ac_ext
17900 LIBS=$ac_check_lib_save_LIBS
17902 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
17903 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
17904 if test $ac_cv_lib_intl_strftime = yes; then
17905 cat >>confdefs.h <<\_ACEOF
17906 #define HAVE_STRFTIME 1
17907 _ACEOF
17909 LIBS="-lintl $LIBS"
17913 done
17916 # UNIX98 PTYs.
17918 for ac_func in grantpt
17920 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17921 echo "$as_me:$LINENO: checking for $ac_func" >&5
17922 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17923 if eval "test \"\${$as_ac_var+set}\" = set"; then
17924 echo $ECHO_N "(cached) $ECHO_C" >&6
17925 else
17926 cat >conftest.$ac_ext <<_ACEOF
17927 /* confdefs.h. */
17928 _ACEOF
17929 cat confdefs.h >>conftest.$ac_ext
17930 cat >>conftest.$ac_ext <<_ACEOF
17931 /* end confdefs.h. */
17932 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17933 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17934 #define $ac_func innocuous_$ac_func
17936 /* System header to define __stub macros and hopefully few prototypes,
17937 which can conflict with char $ac_func (); below.
17938 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17939 <limits.h> exists even on freestanding compilers. */
17941 #ifdef __STDC__
17942 # include <limits.h>
17943 #else
17944 # include <assert.h>
17945 #endif
17947 #undef $ac_func
17949 /* Override any gcc2 internal prototype to avoid an error. */
17950 #ifdef __cplusplus
17951 extern "C"
17953 #endif
17954 /* We use char because int might match the return type of a gcc2
17955 builtin and then its argument prototype would still apply. */
17956 char $ac_func ();
17957 /* The GNU C library defines this for functions which it implements
17958 to always fail with ENOSYS. Some functions are actually named
17959 something starting with __ and the normal name is an alias. */
17960 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17961 choke me
17962 #else
17963 char (*f) () = $ac_func;
17964 #endif
17965 #ifdef __cplusplus
17967 #endif
17970 main ()
17972 return f != $ac_func;
17974 return 0;
17976 _ACEOF
17977 rm -f conftest.$ac_objext conftest$ac_exeext
17978 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17979 (eval $ac_link) 2>conftest.er1
17980 ac_status=$?
17981 grep -v '^ *+' conftest.er1 >conftest.err
17982 rm -f conftest.er1
17983 cat conftest.err >&5
17984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17985 (exit $ac_status); } &&
17986 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17988 (eval $ac_try) 2>&5
17989 ac_status=$?
17990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17991 (exit $ac_status); }; } &&
17992 { ac_try='test -s conftest$ac_exeext'
17993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17994 (eval $ac_try) 2>&5
17995 ac_status=$?
17996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17997 (exit $ac_status); }; }; then
17998 eval "$as_ac_var=yes"
17999 else
18000 echo "$as_me: failed program was:" >&5
18001 sed 's/^/| /' conftest.$ac_ext >&5
18003 eval "$as_ac_var=no"
18005 rm -f conftest.err conftest.$ac_objext \
18006 conftest$ac_exeext conftest.$ac_ext
18008 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18009 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18010 if test `eval echo '${'$as_ac_var'}'` = yes; then
18011 cat >>confdefs.h <<_ACEOF
18012 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18013 _ACEOF
18016 done
18019 # PTY-related GNU extensions.
18021 for ac_func in getpt
18023 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18024 echo "$as_me:$LINENO: checking for $ac_func" >&5
18025 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18026 if eval "test \"\${$as_ac_var+set}\" = set"; then
18027 echo $ECHO_N "(cached) $ECHO_C" >&6
18028 else
18029 cat >conftest.$ac_ext <<_ACEOF
18030 /* confdefs.h. */
18031 _ACEOF
18032 cat confdefs.h >>conftest.$ac_ext
18033 cat >>conftest.$ac_ext <<_ACEOF
18034 /* end confdefs.h. */
18035 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18036 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18037 #define $ac_func innocuous_$ac_func
18039 /* System header to define __stub macros and hopefully few prototypes,
18040 which can conflict with char $ac_func (); below.
18041 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18042 <limits.h> exists even on freestanding compilers. */
18044 #ifdef __STDC__
18045 # include <limits.h>
18046 #else
18047 # include <assert.h>
18048 #endif
18050 #undef $ac_func
18052 /* Override any gcc2 internal prototype to avoid an error. */
18053 #ifdef __cplusplus
18054 extern "C"
18056 #endif
18057 /* We use char because int might match the return type of a gcc2
18058 builtin and then its argument prototype would still apply. */
18059 char $ac_func ();
18060 /* The GNU C library defines this for functions which it implements
18061 to always fail with ENOSYS. Some functions are actually named
18062 something starting with __ and the normal name is an alias. */
18063 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18064 choke me
18065 #else
18066 char (*f) () = $ac_func;
18067 #endif
18068 #ifdef __cplusplus
18070 #endif
18073 main ()
18075 return f != $ac_func;
18077 return 0;
18079 _ACEOF
18080 rm -f conftest.$ac_objext conftest$ac_exeext
18081 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18082 (eval $ac_link) 2>conftest.er1
18083 ac_status=$?
18084 grep -v '^ *+' conftest.er1 >conftest.err
18085 rm -f conftest.er1
18086 cat conftest.err >&5
18087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18088 (exit $ac_status); } &&
18089 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18091 (eval $ac_try) 2>&5
18092 ac_status=$?
18093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18094 (exit $ac_status); }; } &&
18095 { ac_try='test -s conftest$ac_exeext'
18096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18097 (eval $ac_try) 2>&5
18098 ac_status=$?
18099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18100 (exit $ac_status); }; }; then
18101 eval "$as_ac_var=yes"
18102 else
18103 echo "$as_me: failed program was:" >&5
18104 sed 's/^/| /' conftest.$ac_ext >&5
18106 eval "$as_ac_var=no"
18108 rm -f conftest.err conftest.$ac_objext \
18109 conftest$ac_exeext conftest.$ac_ext
18111 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18112 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18113 if test `eval echo '${'$as_ac_var'}'` = yes; then
18114 cat >>confdefs.h <<_ACEOF
18115 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18116 _ACEOF
18119 done
18122 # Check this now, so that we will NOT find the above functions in ncurses.
18123 # That is because we have not set up to link ncurses in lib-src.
18124 # It's better to believe a function is not available
18125 # than to expect to find it in ncurses.
18127 echo "$as_me:$LINENO: checking for tparm in -lncurses" >&5
18128 echo $ECHO_N "checking for tparm in -lncurses... $ECHO_C" >&6
18129 if test "${ac_cv_lib_ncurses_tparm+set}" = set; then
18130 echo $ECHO_N "(cached) $ECHO_C" >&6
18131 else
18132 ac_check_lib_save_LIBS=$LIBS
18133 LIBS="-lncurses $LIBS"
18134 cat >conftest.$ac_ext <<_ACEOF
18135 /* confdefs.h. */
18136 _ACEOF
18137 cat confdefs.h >>conftest.$ac_ext
18138 cat >>conftest.$ac_ext <<_ACEOF
18139 /* end confdefs.h. */
18141 /* Override any gcc2 internal prototype to avoid an error. */
18142 #ifdef __cplusplus
18143 extern "C"
18144 #endif
18145 /* We use char because int might match the return type of a gcc2
18146 builtin and then its argument prototype would still apply. */
18147 char tparm ();
18149 main ()
18151 tparm ();
18153 return 0;
18155 _ACEOF
18156 rm -f conftest.$ac_objext conftest$ac_exeext
18157 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18158 (eval $ac_link) 2>conftest.er1
18159 ac_status=$?
18160 grep -v '^ *+' conftest.er1 >conftest.err
18161 rm -f conftest.er1
18162 cat conftest.err >&5
18163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18164 (exit $ac_status); } &&
18165 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18167 (eval $ac_try) 2>&5
18168 ac_status=$?
18169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18170 (exit $ac_status); }; } &&
18171 { ac_try='test -s conftest$ac_exeext'
18172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18173 (eval $ac_try) 2>&5
18174 ac_status=$?
18175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18176 (exit $ac_status); }; }; then
18177 ac_cv_lib_ncurses_tparm=yes
18178 else
18179 echo "$as_me: failed program was:" >&5
18180 sed 's/^/| /' conftest.$ac_ext >&5
18182 ac_cv_lib_ncurses_tparm=no
18184 rm -f conftest.err conftest.$ac_objext \
18185 conftest$ac_exeext conftest.$ac_ext
18186 LIBS=$ac_check_lib_save_LIBS
18188 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tparm" >&5
18189 echo "${ECHO_T}$ac_cv_lib_ncurses_tparm" >&6
18190 if test $ac_cv_lib_ncurses_tparm = yes; then
18191 cat >>confdefs.h <<_ACEOF
18192 #define HAVE_LIBNCURSES 1
18193 _ACEOF
18195 LIBS="-lncurses $LIBS"
18200 # Do we need the Hesiod library to provide the support routines?
18201 if test "$with_hesiod" = yes ; then
18202 # Don't set $LIBS here -- see comments above.
18203 resolv=no
18204 echo "$as_me:$LINENO: checking for res_send" >&5
18205 echo $ECHO_N "checking for res_send... $ECHO_C" >&6
18206 if test "${ac_cv_func_res_send+set}" = set; then
18207 echo $ECHO_N "(cached) $ECHO_C" >&6
18208 else
18209 cat >conftest.$ac_ext <<_ACEOF
18210 /* confdefs.h. */
18211 _ACEOF
18212 cat confdefs.h >>conftest.$ac_ext
18213 cat >>conftest.$ac_ext <<_ACEOF
18214 /* end confdefs.h. */
18215 /* Define res_send to an innocuous variant, in case <limits.h> declares res_send.
18216 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18217 #define res_send innocuous_res_send
18219 /* System header to define __stub macros and hopefully few prototypes,
18220 which can conflict with char res_send (); below.
18221 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18222 <limits.h> exists even on freestanding compilers. */
18224 #ifdef __STDC__
18225 # include <limits.h>
18226 #else
18227 # include <assert.h>
18228 #endif
18230 #undef res_send
18232 /* Override any gcc2 internal prototype to avoid an error. */
18233 #ifdef __cplusplus
18234 extern "C"
18236 #endif
18237 /* We use char because int might match the return type of a gcc2
18238 builtin and then its argument prototype would still apply. */
18239 char res_send ();
18240 /* The GNU C library defines this for functions which it implements
18241 to always fail with ENOSYS. Some functions are actually named
18242 something starting with __ and the normal name is an alias. */
18243 #if defined (__stub_res_send) || defined (__stub___res_send)
18244 choke me
18245 #else
18246 char (*f) () = res_send;
18247 #endif
18248 #ifdef __cplusplus
18250 #endif
18253 main ()
18255 return f != res_send;
18257 return 0;
18259 _ACEOF
18260 rm -f conftest.$ac_objext conftest$ac_exeext
18261 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18262 (eval $ac_link) 2>conftest.er1
18263 ac_status=$?
18264 grep -v '^ *+' conftest.er1 >conftest.err
18265 rm -f conftest.er1
18266 cat conftest.err >&5
18267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18268 (exit $ac_status); } &&
18269 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18271 (eval $ac_try) 2>&5
18272 ac_status=$?
18273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18274 (exit $ac_status); }; } &&
18275 { ac_try='test -s conftest$ac_exeext'
18276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18277 (eval $ac_try) 2>&5
18278 ac_status=$?
18279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18280 (exit $ac_status); }; }; then
18281 ac_cv_func_res_send=yes
18282 else
18283 echo "$as_me: failed program was:" >&5
18284 sed 's/^/| /' conftest.$ac_ext >&5
18286 ac_cv_func_res_send=no
18288 rm -f conftest.err conftest.$ac_objext \
18289 conftest$ac_exeext conftest.$ac_ext
18291 echo "$as_me:$LINENO: result: $ac_cv_func_res_send" >&5
18292 echo "${ECHO_T}$ac_cv_func_res_send" >&6
18293 if test $ac_cv_func_res_send = yes; then
18295 else
18296 echo "$as_me:$LINENO: checking for __res_send" >&5
18297 echo $ECHO_N "checking for __res_send... $ECHO_C" >&6
18298 if test "${ac_cv_func___res_send+set}" = set; then
18299 echo $ECHO_N "(cached) $ECHO_C" >&6
18300 else
18301 cat >conftest.$ac_ext <<_ACEOF
18302 /* confdefs.h. */
18303 _ACEOF
18304 cat confdefs.h >>conftest.$ac_ext
18305 cat >>conftest.$ac_ext <<_ACEOF
18306 /* end confdefs.h. */
18307 /* Define __res_send to an innocuous variant, in case <limits.h> declares __res_send.
18308 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18309 #define __res_send innocuous___res_send
18311 /* System header to define __stub macros and hopefully few prototypes,
18312 which can conflict with char __res_send (); below.
18313 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18314 <limits.h> exists even on freestanding compilers. */
18316 #ifdef __STDC__
18317 # include <limits.h>
18318 #else
18319 # include <assert.h>
18320 #endif
18322 #undef __res_send
18324 /* Override any gcc2 internal prototype to avoid an error. */
18325 #ifdef __cplusplus
18326 extern "C"
18328 #endif
18329 /* We use char because int might match the return type of a gcc2
18330 builtin and then its argument prototype would still apply. */
18331 char __res_send ();
18332 /* The GNU C library defines this for functions which it implements
18333 to always fail with ENOSYS. Some functions are actually named
18334 something starting with __ and the normal name is an alias. */
18335 #if defined (__stub___res_send) || defined (__stub_____res_send)
18336 choke me
18337 #else
18338 char (*f) () = __res_send;
18339 #endif
18340 #ifdef __cplusplus
18342 #endif
18345 main ()
18347 return f != __res_send;
18349 return 0;
18351 _ACEOF
18352 rm -f conftest.$ac_objext conftest$ac_exeext
18353 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18354 (eval $ac_link) 2>conftest.er1
18355 ac_status=$?
18356 grep -v '^ *+' conftest.er1 >conftest.err
18357 rm -f conftest.er1
18358 cat conftest.err >&5
18359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18360 (exit $ac_status); } &&
18361 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18363 (eval $ac_try) 2>&5
18364 ac_status=$?
18365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18366 (exit $ac_status); }; } &&
18367 { ac_try='test -s conftest$ac_exeext'
18368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18369 (eval $ac_try) 2>&5
18370 ac_status=$?
18371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18372 (exit $ac_status); }; }; then
18373 ac_cv_func___res_send=yes
18374 else
18375 echo "$as_me: failed program was:" >&5
18376 sed 's/^/| /' conftest.$ac_ext >&5
18378 ac_cv_func___res_send=no
18380 rm -f conftest.err conftest.$ac_objext \
18381 conftest$ac_exeext conftest.$ac_ext
18383 echo "$as_me:$LINENO: result: $ac_cv_func___res_send" >&5
18384 echo "${ECHO_T}$ac_cv_func___res_send" >&6
18385 if test $ac_cv_func___res_send = yes; then
18387 else
18388 echo "$as_me:$LINENO: checking for res_send in -lresolv" >&5
18389 echo $ECHO_N "checking for res_send in -lresolv... $ECHO_C" >&6
18390 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
18391 echo $ECHO_N "(cached) $ECHO_C" >&6
18392 else
18393 ac_check_lib_save_LIBS=$LIBS
18394 LIBS="-lresolv $LIBS"
18395 cat >conftest.$ac_ext <<_ACEOF
18396 /* confdefs.h. */
18397 _ACEOF
18398 cat confdefs.h >>conftest.$ac_ext
18399 cat >>conftest.$ac_ext <<_ACEOF
18400 /* end confdefs.h. */
18402 /* Override any gcc2 internal prototype to avoid an error. */
18403 #ifdef __cplusplus
18404 extern "C"
18405 #endif
18406 /* We use char because int might match the return type of a gcc2
18407 builtin and then its argument prototype would still apply. */
18408 char res_send ();
18410 main ()
18412 res_send ();
18414 return 0;
18416 _ACEOF
18417 rm -f conftest.$ac_objext conftest$ac_exeext
18418 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18419 (eval $ac_link) 2>conftest.er1
18420 ac_status=$?
18421 grep -v '^ *+' conftest.er1 >conftest.err
18422 rm -f conftest.er1
18423 cat conftest.err >&5
18424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18425 (exit $ac_status); } &&
18426 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18428 (eval $ac_try) 2>&5
18429 ac_status=$?
18430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18431 (exit $ac_status); }; } &&
18432 { ac_try='test -s conftest$ac_exeext'
18433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18434 (eval $ac_try) 2>&5
18435 ac_status=$?
18436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18437 (exit $ac_status); }; }; then
18438 ac_cv_lib_resolv_res_send=yes
18439 else
18440 echo "$as_me: failed program was:" >&5
18441 sed 's/^/| /' conftest.$ac_ext >&5
18443 ac_cv_lib_resolv_res_send=no
18445 rm -f conftest.err conftest.$ac_objext \
18446 conftest$ac_exeext conftest.$ac_ext
18447 LIBS=$ac_check_lib_save_LIBS
18449 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_send" >&5
18450 echo "${ECHO_T}$ac_cv_lib_resolv_res_send" >&6
18451 if test $ac_cv_lib_resolv_res_send = yes; then
18452 resolv=yes
18453 else
18454 echo "$as_me:$LINENO: checking for __res_send in -lresolv" >&5
18455 echo $ECHO_N "checking for __res_send in -lresolv... $ECHO_C" >&6
18456 if test "${ac_cv_lib_resolv___res_send+set}" = set; then
18457 echo $ECHO_N "(cached) $ECHO_C" >&6
18458 else
18459 ac_check_lib_save_LIBS=$LIBS
18460 LIBS="-lresolv $LIBS"
18461 cat >conftest.$ac_ext <<_ACEOF
18462 /* confdefs.h. */
18463 _ACEOF
18464 cat confdefs.h >>conftest.$ac_ext
18465 cat >>conftest.$ac_ext <<_ACEOF
18466 /* end confdefs.h. */
18468 /* Override any gcc2 internal prototype to avoid an error. */
18469 #ifdef __cplusplus
18470 extern "C"
18471 #endif
18472 /* We use char because int might match the return type of a gcc2
18473 builtin and then its argument prototype would still apply. */
18474 char __res_send ();
18476 main ()
18478 __res_send ();
18480 return 0;
18482 _ACEOF
18483 rm -f conftest.$ac_objext conftest$ac_exeext
18484 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18485 (eval $ac_link) 2>conftest.er1
18486 ac_status=$?
18487 grep -v '^ *+' conftest.er1 >conftest.err
18488 rm -f conftest.er1
18489 cat conftest.err >&5
18490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18491 (exit $ac_status); } &&
18492 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18494 (eval $ac_try) 2>&5
18495 ac_status=$?
18496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18497 (exit $ac_status); }; } &&
18498 { ac_try='test -s conftest$ac_exeext'
18499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18500 (eval $ac_try) 2>&5
18501 ac_status=$?
18502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18503 (exit $ac_status); }; }; then
18504 ac_cv_lib_resolv___res_send=yes
18505 else
18506 echo "$as_me: failed program was:" >&5
18507 sed 's/^/| /' conftest.$ac_ext >&5
18509 ac_cv_lib_resolv___res_send=no
18511 rm -f conftest.err conftest.$ac_objext \
18512 conftest$ac_exeext conftest.$ac_ext
18513 LIBS=$ac_check_lib_save_LIBS
18515 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv___res_send" >&5
18516 echo "${ECHO_T}$ac_cv_lib_resolv___res_send" >&6
18517 if test $ac_cv_lib_resolv___res_send = yes; then
18518 resolv=yes
18527 if test "$resolv" = yes ; then
18528 RESOLVLIB=-lresolv
18530 cat >>confdefs.h <<\_ACEOF
18531 #define HAVE_LIBRESOLV 1
18532 _ACEOF
18534 else
18535 RESOLVLIB=
18537 echo "$as_me:$LINENO: checking for hes_getmailhost" >&5
18538 echo $ECHO_N "checking for hes_getmailhost... $ECHO_C" >&6
18539 if test "${ac_cv_func_hes_getmailhost+set}" = set; then
18540 echo $ECHO_N "(cached) $ECHO_C" >&6
18541 else
18542 cat >conftest.$ac_ext <<_ACEOF
18543 /* confdefs.h. */
18544 _ACEOF
18545 cat confdefs.h >>conftest.$ac_ext
18546 cat >>conftest.$ac_ext <<_ACEOF
18547 /* end confdefs.h. */
18548 /* Define hes_getmailhost to an innocuous variant, in case <limits.h> declares hes_getmailhost.
18549 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18550 #define hes_getmailhost innocuous_hes_getmailhost
18552 /* System header to define __stub macros and hopefully few prototypes,
18553 which can conflict with char hes_getmailhost (); below.
18554 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18555 <limits.h> exists even on freestanding compilers. */
18557 #ifdef __STDC__
18558 # include <limits.h>
18559 #else
18560 # include <assert.h>
18561 #endif
18563 #undef hes_getmailhost
18565 /* Override any gcc2 internal prototype to avoid an error. */
18566 #ifdef __cplusplus
18567 extern "C"
18569 #endif
18570 /* We use char because int might match the return type of a gcc2
18571 builtin and then its argument prototype would still apply. */
18572 char hes_getmailhost ();
18573 /* The GNU C library defines this for functions which it implements
18574 to always fail with ENOSYS. Some functions are actually named
18575 something starting with __ and the normal name is an alias. */
18576 #if defined (__stub_hes_getmailhost) || defined (__stub___hes_getmailhost)
18577 choke me
18578 #else
18579 char (*f) () = hes_getmailhost;
18580 #endif
18581 #ifdef __cplusplus
18583 #endif
18586 main ()
18588 return f != hes_getmailhost;
18590 return 0;
18592 _ACEOF
18593 rm -f conftest.$ac_objext conftest$ac_exeext
18594 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18595 (eval $ac_link) 2>conftest.er1
18596 ac_status=$?
18597 grep -v '^ *+' conftest.er1 >conftest.err
18598 rm -f conftest.er1
18599 cat conftest.err >&5
18600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18601 (exit $ac_status); } &&
18602 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18604 (eval $ac_try) 2>&5
18605 ac_status=$?
18606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18607 (exit $ac_status); }; } &&
18608 { ac_try='test -s conftest$ac_exeext'
18609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18610 (eval $ac_try) 2>&5
18611 ac_status=$?
18612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18613 (exit $ac_status); }; }; then
18614 ac_cv_func_hes_getmailhost=yes
18615 else
18616 echo "$as_me: failed program was:" >&5
18617 sed 's/^/| /' conftest.$ac_ext >&5
18619 ac_cv_func_hes_getmailhost=no
18621 rm -f conftest.err conftest.$ac_objext \
18622 conftest$ac_exeext conftest.$ac_ext
18624 echo "$as_me:$LINENO: result: $ac_cv_func_hes_getmailhost" >&5
18625 echo "${ECHO_T}$ac_cv_func_hes_getmailhost" >&6
18626 if test $ac_cv_func_hes_getmailhost = yes; then
18628 else
18629 echo "$as_me:$LINENO: checking for hes_getmailhost in -lhesiod" >&5
18630 echo $ECHO_N "checking for hes_getmailhost in -lhesiod... $ECHO_C" >&6
18631 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
18632 echo $ECHO_N "(cached) $ECHO_C" >&6
18633 else
18634 ac_check_lib_save_LIBS=$LIBS
18635 LIBS="-lhesiod $RESOLVLIB $LIBS"
18636 cat >conftest.$ac_ext <<_ACEOF
18637 /* confdefs.h. */
18638 _ACEOF
18639 cat confdefs.h >>conftest.$ac_ext
18640 cat >>conftest.$ac_ext <<_ACEOF
18641 /* end confdefs.h. */
18643 /* Override any gcc2 internal prototype to avoid an error. */
18644 #ifdef __cplusplus
18645 extern "C"
18646 #endif
18647 /* We use char because int might match the return type of a gcc2
18648 builtin and then its argument prototype would still apply. */
18649 char hes_getmailhost ();
18651 main ()
18653 hes_getmailhost ();
18655 return 0;
18657 _ACEOF
18658 rm -f conftest.$ac_objext conftest$ac_exeext
18659 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18660 (eval $ac_link) 2>conftest.er1
18661 ac_status=$?
18662 grep -v '^ *+' conftest.er1 >conftest.err
18663 rm -f conftest.er1
18664 cat conftest.err >&5
18665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18666 (exit $ac_status); } &&
18667 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18669 (eval $ac_try) 2>&5
18670 ac_status=$?
18671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18672 (exit $ac_status); }; } &&
18673 { ac_try='test -s conftest$ac_exeext'
18674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18675 (eval $ac_try) 2>&5
18676 ac_status=$?
18677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18678 (exit $ac_status); }; }; then
18679 ac_cv_lib_hesiod_hes_getmailhost=yes
18680 else
18681 echo "$as_me: failed program was:" >&5
18682 sed 's/^/| /' conftest.$ac_ext >&5
18684 ac_cv_lib_hesiod_hes_getmailhost=no
18686 rm -f conftest.err conftest.$ac_objext \
18687 conftest$ac_exeext conftest.$ac_ext
18688 LIBS=$ac_check_lib_save_LIBS
18690 echo "$as_me:$LINENO: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
18691 echo "${ECHO_T}$ac_cv_lib_hesiod_hes_getmailhost" >&6
18692 if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then
18694 cat >>confdefs.h <<\_ACEOF
18695 #define HAVE_LIBHESIOD 1
18696 _ACEOF
18698 else
18706 # These tell us which Kerberos-related libraries to use.
18707 if test "${with_kerberos+set}" = set; then
18709 echo "$as_me:$LINENO: checking for com_err in -lcom_err" >&5
18710 echo $ECHO_N "checking for com_err in -lcom_err... $ECHO_C" >&6
18711 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
18712 echo $ECHO_N "(cached) $ECHO_C" >&6
18713 else
18714 ac_check_lib_save_LIBS=$LIBS
18715 LIBS="-lcom_err $LIBS"
18716 cat >conftest.$ac_ext <<_ACEOF
18717 /* confdefs.h. */
18718 _ACEOF
18719 cat confdefs.h >>conftest.$ac_ext
18720 cat >>conftest.$ac_ext <<_ACEOF
18721 /* end confdefs.h. */
18723 /* Override any gcc2 internal prototype to avoid an error. */
18724 #ifdef __cplusplus
18725 extern "C"
18726 #endif
18727 /* We use char because int might match the return type of a gcc2
18728 builtin and then its argument prototype would still apply. */
18729 char com_err ();
18731 main ()
18733 com_err ();
18735 return 0;
18737 _ACEOF
18738 rm -f conftest.$ac_objext conftest$ac_exeext
18739 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18740 (eval $ac_link) 2>conftest.er1
18741 ac_status=$?
18742 grep -v '^ *+' conftest.er1 >conftest.err
18743 rm -f conftest.er1
18744 cat conftest.err >&5
18745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18746 (exit $ac_status); } &&
18747 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18749 (eval $ac_try) 2>&5
18750 ac_status=$?
18751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18752 (exit $ac_status); }; } &&
18753 { ac_try='test -s conftest$ac_exeext'
18754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18755 (eval $ac_try) 2>&5
18756 ac_status=$?
18757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18758 (exit $ac_status); }; }; then
18759 ac_cv_lib_com_err_com_err=yes
18760 else
18761 echo "$as_me: failed program was:" >&5
18762 sed 's/^/| /' conftest.$ac_ext >&5
18764 ac_cv_lib_com_err_com_err=no
18766 rm -f conftest.err conftest.$ac_objext \
18767 conftest$ac_exeext conftest.$ac_ext
18768 LIBS=$ac_check_lib_save_LIBS
18770 echo "$as_me:$LINENO: result: $ac_cv_lib_com_err_com_err" >&5
18771 echo "${ECHO_T}$ac_cv_lib_com_err_com_err" >&6
18772 if test $ac_cv_lib_com_err_com_err = yes; then
18773 cat >>confdefs.h <<_ACEOF
18774 #define HAVE_LIBCOM_ERR 1
18775 _ACEOF
18777 LIBS="-lcom_err $LIBS"
18782 echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
18783 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lk5crypto... $ECHO_C" >&6
18784 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
18785 echo $ECHO_N "(cached) $ECHO_C" >&6
18786 else
18787 ac_check_lib_save_LIBS=$LIBS
18788 LIBS="-lk5crypto $LIBS"
18789 cat >conftest.$ac_ext <<_ACEOF
18790 /* confdefs.h. */
18791 _ACEOF
18792 cat confdefs.h >>conftest.$ac_ext
18793 cat >>conftest.$ac_ext <<_ACEOF
18794 /* end confdefs.h. */
18796 /* Override any gcc2 internal prototype to avoid an error. */
18797 #ifdef __cplusplus
18798 extern "C"
18799 #endif
18800 /* We use char because int might match the return type of a gcc2
18801 builtin and then its argument prototype would still apply. */
18802 char mit_des_cbc_encrypt ();
18804 main ()
18806 mit_des_cbc_encrypt ();
18808 return 0;
18810 _ACEOF
18811 rm -f conftest.$ac_objext conftest$ac_exeext
18812 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18813 (eval $ac_link) 2>conftest.er1
18814 ac_status=$?
18815 grep -v '^ *+' conftest.er1 >conftest.err
18816 rm -f conftest.er1
18817 cat conftest.err >&5
18818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18819 (exit $ac_status); } &&
18820 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18822 (eval $ac_try) 2>&5
18823 ac_status=$?
18824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18825 (exit $ac_status); }; } &&
18826 { ac_try='test -s conftest$ac_exeext'
18827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18828 (eval $ac_try) 2>&5
18829 ac_status=$?
18830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18831 (exit $ac_status); }; }; then
18832 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
18833 else
18834 echo "$as_me: failed program was:" >&5
18835 sed 's/^/| /' conftest.$ac_ext >&5
18837 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
18839 rm -f conftest.err conftest.$ac_objext \
18840 conftest$ac_exeext conftest.$ac_ext
18841 LIBS=$ac_check_lib_save_LIBS
18843 echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
18844 echo "${ECHO_T}$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6
18845 if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then
18846 cat >>confdefs.h <<_ACEOF
18847 #define HAVE_LIBK5CRYPTO 1
18848 _ACEOF
18850 LIBS="-lk5crypto $LIBS"
18855 echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lcrypto" >&5
18856 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lcrypto... $ECHO_C" >&6
18857 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
18858 echo $ECHO_N "(cached) $ECHO_C" >&6
18859 else
18860 ac_check_lib_save_LIBS=$LIBS
18861 LIBS="-lcrypto $LIBS"
18862 cat >conftest.$ac_ext <<_ACEOF
18863 /* confdefs.h. */
18864 _ACEOF
18865 cat confdefs.h >>conftest.$ac_ext
18866 cat >>conftest.$ac_ext <<_ACEOF
18867 /* end confdefs.h. */
18869 /* Override any gcc2 internal prototype to avoid an error. */
18870 #ifdef __cplusplus
18871 extern "C"
18872 #endif
18873 /* We use char because int might match the return type of a gcc2
18874 builtin and then its argument prototype would still apply. */
18875 char mit_des_cbc_encrypt ();
18877 main ()
18879 mit_des_cbc_encrypt ();
18881 return 0;
18883 _ACEOF
18884 rm -f conftest.$ac_objext conftest$ac_exeext
18885 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18886 (eval $ac_link) 2>conftest.er1
18887 ac_status=$?
18888 grep -v '^ *+' conftest.er1 >conftest.err
18889 rm -f conftest.er1
18890 cat conftest.err >&5
18891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18892 (exit $ac_status); } &&
18893 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18895 (eval $ac_try) 2>&5
18896 ac_status=$?
18897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18898 (exit $ac_status); }; } &&
18899 { ac_try='test -s conftest$ac_exeext'
18900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18901 (eval $ac_try) 2>&5
18902 ac_status=$?
18903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18904 (exit $ac_status); }; }; then
18905 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
18906 else
18907 echo "$as_me: failed program was:" >&5
18908 sed 's/^/| /' conftest.$ac_ext >&5
18910 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
18912 rm -f conftest.err conftest.$ac_objext \
18913 conftest$ac_exeext conftest.$ac_ext
18914 LIBS=$ac_check_lib_save_LIBS
18916 echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
18917 echo "${ECHO_T}$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6
18918 if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then
18919 cat >>confdefs.h <<_ACEOF
18920 #define HAVE_LIBCRYPTO 1
18921 _ACEOF
18923 LIBS="-lcrypto $LIBS"
18928 echo "$as_me:$LINENO: checking for krb5_init_context in -lkrb5" >&5
18929 echo $ECHO_N "checking for krb5_init_context in -lkrb5... $ECHO_C" >&6
18930 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
18931 echo $ECHO_N "(cached) $ECHO_C" >&6
18932 else
18933 ac_check_lib_save_LIBS=$LIBS
18934 LIBS="-lkrb5 $LIBS"
18935 cat >conftest.$ac_ext <<_ACEOF
18936 /* confdefs.h. */
18937 _ACEOF
18938 cat confdefs.h >>conftest.$ac_ext
18939 cat >>conftest.$ac_ext <<_ACEOF
18940 /* end confdefs.h. */
18942 /* Override any gcc2 internal prototype to avoid an error. */
18943 #ifdef __cplusplus
18944 extern "C"
18945 #endif
18946 /* We use char because int might match the return type of a gcc2
18947 builtin and then its argument prototype would still apply. */
18948 char krb5_init_context ();
18950 main ()
18952 krb5_init_context ();
18954 return 0;
18956 _ACEOF
18957 rm -f conftest.$ac_objext conftest$ac_exeext
18958 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18959 (eval $ac_link) 2>conftest.er1
18960 ac_status=$?
18961 grep -v '^ *+' conftest.er1 >conftest.err
18962 rm -f conftest.er1
18963 cat conftest.err >&5
18964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18965 (exit $ac_status); } &&
18966 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18968 (eval $ac_try) 2>&5
18969 ac_status=$?
18970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18971 (exit $ac_status); }; } &&
18972 { ac_try='test -s conftest$ac_exeext'
18973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18974 (eval $ac_try) 2>&5
18975 ac_status=$?
18976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18977 (exit $ac_status); }; }; then
18978 ac_cv_lib_krb5_krb5_init_context=yes
18979 else
18980 echo "$as_me: failed program was:" >&5
18981 sed 's/^/| /' conftest.$ac_ext >&5
18983 ac_cv_lib_krb5_krb5_init_context=no
18985 rm -f conftest.err conftest.$ac_objext \
18986 conftest$ac_exeext conftest.$ac_ext
18987 LIBS=$ac_check_lib_save_LIBS
18989 echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_krb5_init_context" >&5
18990 echo "${ECHO_T}$ac_cv_lib_krb5_krb5_init_context" >&6
18991 if test $ac_cv_lib_krb5_krb5_init_context = yes; then
18992 cat >>confdefs.h <<_ACEOF
18993 #define HAVE_LIBKRB5 1
18994 _ACEOF
18996 LIBS="-lkrb5 $LIBS"
19000 if test "${with_kerberos5+set}" != set; then
19002 echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes425" >&5
19003 echo $ECHO_N "checking for des_cbc_encrypt in -ldes425... $ECHO_C" >&6
19004 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
19005 echo $ECHO_N "(cached) $ECHO_C" >&6
19006 else
19007 ac_check_lib_save_LIBS=$LIBS
19008 LIBS="-ldes425 $LIBS"
19009 cat >conftest.$ac_ext <<_ACEOF
19010 /* confdefs.h. */
19011 _ACEOF
19012 cat confdefs.h >>conftest.$ac_ext
19013 cat >>conftest.$ac_ext <<_ACEOF
19014 /* end confdefs.h. */
19016 /* Override any gcc2 internal prototype to avoid an error. */
19017 #ifdef __cplusplus
19018 extern "C"
19019 #endif
19020 /* We use char because int might match the return type of a gcc2
19021 builtin and then its argument prototype would still apply. */
19022 char des_cbc_encrypt ();
19024 main ()
19026 des_cbc_encrypt ();
19028 return 0;
19030 _ACEOF
19031 rm -f conftest.$ac_objext conftest$ac_exeext
19032 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19033 (eval $ac_link) 2>conftest.er1
19034 ac_status=$?
19035 grep -v '^ *+' conftest.er1 >conftest.err
19036 rm -f conftest.er1
19037 cat conftest.err >&5
19038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19039 (exit $ac_status); } &&
19040 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19042 (eval $ac_try) 2>&5
19043 ac_status=$?
19044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19045 (exit $ac_status); }; } &&
19046 { ac_try='test -s conftest$ac_exeext'
19047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19048 (eval $ac_try) 2>&5
19049 ac_status=$?
19050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19051 (exit $ac_status); }; }; then
19052 ac_cv_lib_des425_des_cbc_encrypt=yes
19053 else
19054 echo "$as_me: failed program was:" >&5
19055 sed 's/^/| /' conftest.$ac_ext >&5
19057 ac_cv_lib_des425_des_cbc_encrypt=no
19059 rm -f conftest.err conftest.$ac_objext \
19060 conftest$ac_exeext conftest.$ac_ext
19061 LIBS=$ac_check_lib_save_LIBS
19063 echo "$as_me:$LINENO: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
19064 echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6
19065 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
19066 cat >>confdefs.h <<_ACEOF
19067 #define HAVE_LIBDES425 1
19068 _ACEOF
19070 LIBS="-ldes425 $LIBS"
19072 else
19074 echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes" >&5
19075 echo $ECHO_N "checking for des_cbc_encrypt in -ldes... $ECHO_C" >&6
19076 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
19077 echo $ECHO_N "(cached) $ECHO_C" >&6
19078 else
19079 ac_check_lib_save_LIBS=$LIBS
19080 LIBS="-ldes $LIBS"
19081 cat >conftest.$ac_ext <<_ACEOF
19082 /* confdefs.h. */
19083 _ACEOF
19084 cat confdefs.h >>conftest.$ac_ext
19085 cat >>conftest.$ac_ext <<_ACEOF
19086 /* end confdefs.h. */
19088 /* Override any gcc2 internal prototype to avoid an error. */
19089 #ifdef __cplusplus
19090 extern "C"
19091 #endif
19092 /* We use char because int might match the return type of a gcc2
19093 builtin and then its argument prototype would still apply. */
19094 char des_cbc_encrypt ();
19096 main ()
19098 des_cbc_encrypt ();
19100 return 0;
19102 _ACEOF
19103 rm -f conftest.$ac_objext conftest$ac_exeext
19104 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19105 (eval $ac_link) 2>conftest.er1
19106 ac_status=$?
19107 grep -v '^ *+' conftest.er1 >conftest.err
19108 rm -f conftest.er1
19109 cat conftest.err >&5
19110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19111 (exit $ac_status); } &&
19112 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19114 (eval $ac_try) 2>&5
19115 ac_status=$?
19116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19117 (exit $ac_status); }; } &&
19118 { ac_try='test -s conftest$ac_exeext'
19119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19120 (eval $ac_try) 2>&5
19121 ac_status=$?
19122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19123 (exit $ac_status); }; }; then
19124 ac_cv_lib_des_des_cbc_encrypt=yes
19125 else
19126 echo "$as_me: failed program was:" >&5
19127 sed 's/^/| /' conftest.$ac_ext >&5
19129 ac_cv_lib_des_des_cbc_encrypt=no
19131 rm -f conftest.err conftest.$ac_objext \
19132 conftest$ac_exeext conftest.$ac_ext
19133 LIBS=$ac_check_lib_save_LIBS
19135 echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
19136 echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6
19137 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
19138 cat >>confdefs.h <<_ACEOF
19139 #define HAVE_LIBDES 1
19140 _ACEOF
19142 LIBS="-ldes $LIBS"
19149 echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb4" >&5
19150 echo $ECHO_N "checking for krb_get_cred in -lkrb4... $ECHO_C" >&6
19151 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
19152 echo $ECHO_N "(cached) $ECHO_C" >&6
19153 else
19154 ac_check_lib_save_LIBS=$LIBS
19155 LIBS="-lkrb4 $LIBS"
19156 cat >conftest.$ac_ext <<_ACEOF
19157 /* confdefs.h. */
19158 _ACEOF
19159 cat confdefs.h >>conftest.$ac_ext
19160 cat >>conftest.$ac_ext <<_ACEOF
19161 /* end confdefs.h. */
19163 /* Override any gcc2 internal prototype to avoid an error. */
19164 #ifdef __cplusplus
19165 extern "C"
19166 #endif
19167 /* We use char because int might match the return type of a gcc2
19168 builtin and then its argument prototype would still apply. */
19169 char krb_get_cred ();
19171 main ()
19173 krb_get_cred ();
19175 return 0;
19177 _ACEOF
19178 rm -f conftest.$ac_objext conftest$ac_exeext
19179 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19180 (eval $ac_link) 2>conftest.er1
19181 ac_status=$?
19182 grep -v '^ *+' conftest.er1 >conftest.err
19183 rm -f conftest.er1
19184 cat conftest.err >&5
19185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19186 (exit $ac_status); } &&
19187 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19189 (eval $ac_try) 2>&5
19190 ac_status=$?
19191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19192 (exit $ac_status); }; } &&
19193 { ac_try='test -s conftest$ac_exeext'
19194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19195 (eval $ac_try) 2>&5
19196 ac_status=$?
19197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19198 (exit $ac_status); }; }; then
19199 ac_cv_lib_krb4_krb_get_cred=yes
19200 else
19201 echo "$as_me: failed program was:" >&5
19202 sed 's/^/| /' conftest.$ac_ext >&5
19204 ac_cv_lib_krb4_krb_get_cred=no
19206 rm -f conftest.err conftest.$ac_objext \
19207 conftest$ac_exeext conftest.$ac_ext
19208 LIBS=$ac_check_lib_save_LIBS
19210 echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_krb_get_cred" >&5
19211 echo "${ECHO_T}$ac_cv_lib_krb4_krb_get_cred" >&6
19212 if test $ac_cv_lib_krb4_krb_get_cred = yes; then
19213 cat >>confdefs.h <<_ACEOF
19214 #define HAVE_LIBKRB4 1
19215 _ACEOF
19217 LIBS="-lkrb4 $LIBS"
19219 else
19221 echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb" >&5
19222 echo $ECHO_N "checking for krb_get_cred in -lkrb... $ECHO_C" >&6
19223 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
19224 echo $ECHO_N "(cached) $ECHO_C" >&6
19225 else
19226 ac_check_lib_save_LIBS=$LIBS
19227 LIBS="-lkrb $LIBS"
19228 cat >conftest.$ac_ext <<_ACEOF
19229 /* confdefs.h. */
19230 _ACEOF
19231 cat confdefs.h >>conftest.$ac_ext
19232 cat >>conftest.$ac_ext <<_ACEOF
19233 /* end confdefs.h. */
19235 /* Override any gcc2 internal prototype to avoid an error. */
19236 #ifdef __cplusplus
19237 extern "C"
19238 #endif
19239 /* We use char because int might match the return type of a gcc2
19240 builtin and then its argument prototype would still apply. */
19241 char krb_get_cred ();
19243 main ()
19245 krb_get_cred ();
19247 return 0;
19249 _ACEOF
19250 rm -f conftest.$ac_objext conftest$ac_exeext
19251 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19252 (eval $ac_link) 2>conftest.er1
19253 ac_status=$?
19254 grep -v '^ *+' conftest.er1 >conftest.err
19255 rm -f conftest.er1
19256 cat conftest.err >&5
19257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19258 (exit $ac_status); } &&
19259 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19261 (eval $ac_try) 2>&5
19262 ac_status=$?
19263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19264 (exit $ac_status); }; } &&
19265 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
19271 ac_cv_lib_krb_krb_get_cred=yes
19272 else
19273 echo "$as_me: failed program was:" >&5
19274 sed 's/^/| /' conftest.$ac_ext >&5
19276 ac_cv_lib_krb_krb_get_cred=no
19278 rm -f conftest.err conftest.$ac_objext \
19279 conftest$ac_exeext conftest.$ac_ext
19280 LIBS=$ac_check_lib_save_LIBS
19282 echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_get_cred" >&5
19283 echo "${ECHO_T}$ac_cv_lib_krb_krb_get_cred" >&6
19284 if test $ac_cv_lib_krb_krb_get_cred = yes; then
19285 cat >>confdefs.h <<_ACEOF
19286 #define HAVE_LIBKRB 1
19287 _ACEOF
19289 LIBS="-lkrb $LIBS"
19297 if test "${with_kerberos5+set}" = set; then
19299 for ac_header in krb5.h
19301 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19302 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19303 echo "$as_me:$LINENO: checking for $ac_header" >&5
19304 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19305 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19306 echo $ECHO_N "(cached) $ECHO_C" >&6
19308 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19309 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19310 else
19311 # Is the header compilable?
19312 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19313 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19314 cat >conftest.$ac_ext <<_ACEOF
19315 /* confdefs.h. */
19316 _ACEOF
19317 cat confdefs.h >>conftest.$ac_ext
19318 cat >>conftest.$ac_ext <<_ACEOF
19319 /* end confdefs.h. */
19320 $ac_includes_default
19321 #include <$ac_header>
19322 _ACEOF
19323 rm -f conftest.$ac_objext
19324 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19325 (eval $ac_compile) 2>conftest.er1
19326 ac_status=$?
19327 grep -v '^ *+' conftest.er1 >conftest.err
19328 rm -f conftest.er1
19329 cat conftest.err >&5
19330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19331 (exit $ac_status); } &&
19332 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19334 (eval $ac_try) 2>&5
19335 ac_status=$?
19336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19337 (exit $ac_status); }; } &&
19338 { ac_try='test -s conftest.$ac_objext'
19339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19340 (eval $ac_try) 2>&5
19341 ac_status=$?
19342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19343 (exit $ac_status); }; }; then
19344 ac_header_compiler=yes
19345 else
19346 echo "$as_me: failed program was:" >&5
19347 sed 's/^/| /' conftest.$ac_ext >&5
19349 ac_header_compiler=no
19351 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19352 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19353 echo "${ECHO_T}$ac_header_compiler" >&6
19355 # Is the header present?
19356 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19357 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19358 cat >conftest.$ac_ext <<_ACEOF
19359 /* confdefs.h. */
19360 _ACEOF
19361 cat confdefs.h >>conftest.$ac_ext
19362 cat >>conftest.$ac_ext <<_ACEOF
19363 /* end confdefs.h. */
19364 #include <$ac_header>
19365 _ACEOF
19366 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19367 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19368 ac_status=$?
19369 grep -v '^ *+' conftest.er1 >conftest.err
19370 rm -f conftest.er1
19371 cat conftest.err >&5
19372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19373 (exit $ac_status); } >/dev/null; then
19374 if test -s conftest.err; then
19375 ac_cpp_err=$ac_c_preproc_warn_flag
19376 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19377 else
19378 ac_cpp_err=
19380 else
19381 ac_cpp_err=yes
19383 if test -z "$ac_cpp_err"; then
19384 ac_header_preproc=yes
19385 else
19386 echo "$as_me: failed program was:" >&5
19387 sed 's/^/| /' conftest.$ac_ext >&5
19389 ac_header_preproc=no
19391 rm -f conftest.err conftest.$ac_ext
19392 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19393 echo "${ECHO_T}$ac_header_preproc" >&6
19395 # So? What about this header?
19396 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19397 yes:no: )
19398 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19399 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19400 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19401 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19402 ac_header_preproc=yes
19404 no:yes:* )
19405 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19406 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19407 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19408 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19409 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19410 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19411 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19412 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19413 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19414 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19415 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19416 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19418 cat <<\_ASBOX
19419 ## ------------------------------------------ ##
19420 ## Report this to the AC_PACKAGE_NAME lists. ##
19421 ## ------------------------------------------ ##
19422 _ASBOX
19424 sed "s/^/$as_me: WARNING: /" >&2
19426 esac
19427 echo "$as_me:$LINENO: checking for $ac_header" >&5
19428 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19429 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19430 echo $ECHO_N "(cached) $ECHO_C" >&6
19431 else
19432 eval "$as_ac_Header=\$ac_header_preproc"
19434 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19435 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19438 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19439 cat >>confdefs.h <<_ACEOF
19440 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19441 _ACEOF
19445 done
19447 else
19449 for ac_header in des.h
19451 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19452 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19453 echo "$as_me:$LINENO: checking for $ac_header" >&5
19454 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19455 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19456 echo $ECHO_N "(cached) $ECHO_C" >&6
19458 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19459 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19460 else
19461 # Is the header compilable?
19462 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19463 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19464 cat >conftest.$ac_ext <<_ACEOF
19465 /* confdefs.h. */
19466 _ACEOF
19467 cat confdefs.h >>conftest.$ac_ext
19468 cat >>conftest.$ac_ext <<_ACEOF
19469 /* end confdefs.h. */
19470 $ac_includes_default
19471 #include <$ac_header>
19472 _ACEOF
19473 rm -f conftest.$ac_objext
19474 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19475 (eval $ac_compile) 2>conftest.er1
19476 ac_status=$?
19477 grep -v '^ *+' conftest.er1 >conftest.err
19478 rm -f conftest.er1
19479 cat conftest.err >&5
19480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19481 (exit $ac_status); } &&
19482 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19484 (eval $ac_try) 2>&5
19485 ac_status=$?
19486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19487 (exit $ac_status); }; } &&
19488 { ac_try='test -s conftest.$ac_objext'
19489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19490 (eval $ac_try) 2>&5
19491 ac_status=$?
19492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19493 (exit $ac_status); }; }; then
19494 ac_header_compiler=yes
19495 else
19496 echo "$as_me: failed program was:" >&5
19497 sed 's/^/| /' conftest.$ac_ext >&5
19499 ac_header_compiler=no
19501 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19502 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19503 echo "${ECHO_T}$ac_header_compiler" >&6
19505 # Is the header present?
19506 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19507 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19508 cat >conftest.$ac_ext <<_ACEOF
19509 /* confdefs.h. */
19510 _ACEOF
19511 cat confdefs.h >>conftest.$ac_ext
19512 cat >>conftest.$ac_ext <<_ACEOF
19513 /* end confdefs.h. */
19514 #include <$ac_header>
19515 _ACEOF
19516 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19517 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19518 ac_status=$?
19519 grep -v '^ *+' conftest.er1 >conftest.err
19520 rm -f conftest.er1
19521 cat conftest.err >&5
19522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19523 (exit $ac_status); } >/dev/null; then
19524 if test -s conftest.err; then
19525 ac_cpp_err=$ac_c_preproc_warn_flag
19526 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19527 else
19528 ac_cpp_err=
19530 else
19531 ac_cpp_err=yes
19533 if test -z "$ac_cpp_err"; then
19534 ac_header_preproc=yes
19535 else
19536 echo "$as_me: failed program was:" >&5
19537 sed 's/^/| /' conftest.$ac_ext >&5
19539 ac_header_preproc=no
19541 rm -f conftest.err conftest.$ac_ext
19542 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19543 echo "${ECHO_T}$ac_header_preproc" >&6
19545 # So? What about this header?
19546 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19547 yes:no: )
19548 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19549 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19550 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19551 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19552 ac_header_preproc=yes
19554 no:yes:* )
19555 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19556 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19557 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19558 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19559 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19560 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19561 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19562 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19563 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19564 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19565 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19566 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19568 cat <<\_ASBOX
19569 ## ------------------------------------------ ##
19570 ## Report this to the AC_PACKAGE_NAME lists. ##
19571 ## ------------------------------------------ ##
19572 _ASBOX
19574 sed "s/^/$as_me: WARNING: /" >&2
19576 esac
19577 echo "$as_me:$LINENO: checking for $ac_header" >&5
19578 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19579 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19580 echo $ECHO_N "(cached) $ECHO_C" >&6
19581 else
19582 eval "$as_ac_Header=\$ac_header_preproc"
19584 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19585 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19588 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19589 cat >>confdefs.h <<_ACEOF
19590 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19591 _ACEOF
19593 else
19595 for ac_header in kerberosIV/des.h
19597 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19598 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19599 echo "$as_me:$LINENO: checking for $ac_header" >&5
19600 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19601 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19602 echo $ECHO_N "(cached) $ECHO_C" >&6
19604 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19605 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19606 else
19607 # Is the header compilable?
19608 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19609 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19610 cat >conftest.$ac_ext <<_ACEOF
19611 /* confdefs.h. */
19612 _ACEOF
19613 cat confdefs.h >>conftest.$ac_ext
19614 cat >>conftest.$ac_ext <<_ACEOF
19615 /* end confdefs.h. */
19616 $ac_includes_default
19617 #include <$ac_header>
19618 _ACEOF
19619 rm -f conftest.$ac_objext
19620 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19621 (eval $ac_compile) 2>conftest.er1
19622 ac_status=$?
19623 grep -v '^ *+' conftest.er1 >conftest.err
19624 rm -f conftest.er1
19625 cat conftest.err >&5
19626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19627 (exit $ac_status); } &&
19628 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19630 (eval $ac_try) 2>&5
19631 ac_status=$?
19632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19633 (exit $ac_status); }; } &&
19634 { ac_try='test -s conftest.$ac_objext'
19635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19636 (eval $ac_try) 2>&5
19637 ac_status=$?
19638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19639 (exit $ac_status); }; }; then
19640 ac_header_compiler=yes
19641 else
19642 echo "$as_me: failed program was:" >&5
19643 sed 's/^/| /' conftest.$ac_ext >&5
19645 ac_header_compiler=no
19647 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19648 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19649 echo "${ECHO_T}$ac_header_compiler" >&6
19651 # Is the header present?
19652 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19653 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19654 cat >conftest.$ac_ext <<_ACEOF
19655 /* confdefs.h. */
19656 _ACEOF
19657 cat confdefs.h >>conftest.$ac_ext
19658 cat >>conftest.$ac_ext <<_ACEOF
19659 /* end confdefs.h. */
19660 #include <$ac_header>
19661 _ACEOF
19662 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19663 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19664 ac_status=$?
19665 grep -v '^ *+' conftest.er1 >conftest.err
19666 rm -f conftest.er1
19667 cat conftest.err >&5
19668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19669 (exit $ac_status); } >/dev/null; then
19670 if test -s conftest.err; then
19671 ac_cpp_err=$ac_c_preproc_warn_flag
19672 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19673 else
19674 ac_cpp_err=
19676 else
19677 ac_cpp_err=yes
19679 if test -z "$ac_cpp_err"; then
19680 ac_header_preproc=yes
19681 else
19682 echo "$as_me: failed program was:" >&5
19683 sed 's/^/| /' conftest.$ac_ext >&5
19685 ac_header_preproc=no
19687 rm -f conftest.err conftest.$ac_ext
19688 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19689 echo "${ECHO_T}$ac_header_preproc" >&6
19691 # So? What about this header?
19692 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19693 yes:no: )
19694 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19695 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19696 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19697 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19698 ac_header_preproc=yes
19700 no:yes:* )
19701 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19702 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19703 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19704 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19705 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19706 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19707 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19708 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19709 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19710 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19711 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19712 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19714 cat <<\_ASBOX
19715 ## ------------------------------------------ ##
19716 ## Report this to the AC_PACKAGE_NAME lists. ##
19717 ## ------------------------------------------ ##
19718 _ASBOX
19720 sed "s/^/$as_me: WARNING: /" >&2
19722 esac
19723 echo "$as_me:$LINENO: checking for $ac_header" >&5
19724 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19725 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19726 echo $ECHO_N "(cached) $ECHO_C" >&6
19727 else
19728 eval "$as_ac_Header=\$ac_header_preproc"
19730 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19731 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19734 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19735 cat >>confdefs.h <<_ACEOF
19736 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19737 _ACEOF
19739 else
19741 for ac_header in kerberos/des.h
19743 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19744 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19745 echo "$as_me:$LINENO: checking for $ac_header" >&5
19746 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19747 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19748 echo $ECHO_N "(cached) $ECHO_C" >&6
19750 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19751 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19752 else
19753 # Is the header compilable?
19754 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19755 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19756 cat >conftest.$ac_ext <<_ACEOF
19757 /* confdefs.h. */
19758 _ACEOF
19759 cat confdefs.h >>conftest.$ac_ext
19760 cat >>conftest.$ac_ext <<_ACEOF
19761 /* end confdefs.h. */
19762 $ac_includes_default
19763 #include <$ac_header>
19764 _ACEOF
19765 rm -f conftest.$ac_objext
19766 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19767 (eval $ac_compile) 2>conftest.er1
19768 ac_status=$?
19769 grep -v '^ *+' conftest.er1 >conftest.err
19770 rm -f conftest.er1
19771 cat conftest.err >&5
19772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19773 (exit $ac_status); } &&
19774 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19776 (eval $ac_try) 2>&5
19777 ac_status=$?
19778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19779 (exit $ac_status); }; } &&
19780 { ac_try='test -s conftest.$ac_objext'
19781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19782 (eval $ac_try) 2>&5
19783 ac_status=$?
19784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19785 (exit $ac_status); }; }; then
19786 ac_header_compiler=yes
19787 else
19788 echo "$as_me: failed program was:" >&5
19789 sed 's/^/| /' conftest.$ac_ext >&5
19791 ac_header_compiler=no
19793 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19794 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19795 echo "${ECHO_T}$ac_header_compiler" >&6
19797 # Is the header present?
19798 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19799 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19800 cat >conftest.$ac_ext <<_ACEOF
19801 /* confdefs.h. */
19802 _ACEOF
19803 cat confdefs.h >>conftest.$ac_ext
19804 cat >>conftest.$ac_ext <<_ACEOF
19805 /* end confdefs.h. */
19806 #include <$ac_header>
19807 _ACEOF
19808 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19809 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19810 ac_status=$?
19811 grep -v '^ *+' conftest.er1 >conftest.err
19812 rm -f conftest.er1
19813 cat conftest.err >&5
19814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19815 (exit $ac_status); } >/dev/null; then
19816 if test -s conftest.err; then
19817 ac_cpp_err=$ac_c_preproc_warn_flag
19818 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19819 else
19820 ac_cpp_err=
19822 else
19823 ac_cpp_err=yes
19825 if test -z "$ac_cpp_err"; then
19826 ac_header_preproc=yes
19827 else
19828 echo "$as_me: failed program was:" >&5
19829 sed 's/^/| /' conftest.$ac_ext >&5
19831 ac_header_preproc=no
19833 rm -f conftest.err conftest.$ac_ext
19834 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19835 echo "${ECHO_T}$ac_header_preproc" >&6
19837 # So? What about this header?
19838 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19839 yes:no: )
19840 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19841 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19842 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19843 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19844 ac_header_preproc=yes
19846 no:yes:* )
19847 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19848 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19849 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19850 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19851 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19852 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19853 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19854 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19855 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19856 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19857 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19858 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19860 cat <<\_ASBOX
19861 ## ------------------------------------------ ##
19862 ## Report this to the AC_PACKAGE_NAME lists. ##
19863 ## ------------------------------------------ ##
19864 _ASBOX
19866 sed "s/^/$as_me: WARNING: /" >&2
19868 esac
19869 echo "$as_me:$LINENO: checking for $ac_header" >&5
19870 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19871 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19872 echo $ECHO_N "(cached) $ECHO_C" >&6
19873 else
19874 eval "$as_ac_Header=\$ac_header_preproc"
19876 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19877 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19880 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19881 cat >>confdefs.h <<_ACEOF
19882 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19883 _ACEOF
19887 done
19891 done
19895 done
19898 for ac_header in krb.h
19900 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19901 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19902 echo "$as_me:$LINENO: checking for $ac_header" >&5
19903 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19904 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19905 echo $ECHO_N "(cached) $ECHO_C" >&6
19907 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19908 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19909 else
19910 # Is the header compilable?
19911 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19912 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19913 cat >conftest.$ac_ext <<_ACEOF
19914 /* confdefs.h. */
19915 _ACEOF
19916 cat confdefs.h >>conftest.$ac_ext
19917 cat >>conftest.$ac_ext <<_ACEOF
19918 /* end confdefs.h. */
19919 $ac_includes_default
19920 #include <$ac_header>
19921 _ACEOF
19922 rm -f conftest.$ac_objext
19923 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19924 (eval $ac_compile) 2>conftest.er1
19925 ac_status=$?
19926 grep -v '^ *+' conftest.er1 >conftest.err
19927 rm -f conftest.er1
19928 cat conftest.err >&5
19929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19930 (exit $ac_status); } &&
19931 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19933 (eval $ac_try) 2>&5
19934 ac_status=$?
19935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19936 (exit $ac_status); }; } &&
19937 { ac_try='test -s conftest.$ac_objext'
19938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19939 (eval $ac_try) 2>&5
19940 ac_status=$?
19941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19942 (exit $ac_status); }; }; then
19943 ac_header_compiler=yes
19944 else
19945 echo "$as_me: failed program was:" >&5
19946 sed 's/^/| /' conftest.$ac_ext >&5
19948 ac_header_compiler=no
19950 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19951 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19952 echo "${ECHO_T}$ac_header_compiler" >&6
19954 # Is the header present?
19955 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19956 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19957 cat >conftest.$ac_ext <<_ACEOF
19958 /* confdefs.h. */
19959 _ACEOF
19960 cat confdefs.h >>conftest.$ac_ext
19961 cat >>conftest.$ac_ext <<_ACEOF
19962 /* end confdefs.h. */
19963 #include <$ac_header>
19964 _ACEOF
19965 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19966 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19967 ac_status=$?
19968 grep -v '^ *+' conftest.er1 >conftest.err
19969 rm -f conftest.er1
19970 cat conftest.err >&5
19971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19972 (exit $ac_status); } >/dev/null; then
19973 if test -s conftest.err; then
19974 ac_cpp_err=$ac_c_preproc_warn_flag
19975 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19976 else
19977 ac_cpp_err=
19979 else
19980 ac_cpp_err=yes
19982 if test -z "$ac_cpp_err"; then
19983 ac_header_preproc=yes
19984 else
19985 echo "$as_me: failed program was:" >&5
19986 sed 's/^/| /' conftest.$ac_ext >&5
19988 ac_header_preproc=no
19990 rm -f conftest.err conftest.$ac_ext
19991 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19992 echo "${ECHO_T}$ac_header_preproc" >&6
19994 # So? What about this header?
19995 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19996 yes:no: )
19997 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19998 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19999 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20000 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20001 ac_header_preproc=yes
20003 no:yes:* )
20004 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20005 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20006 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20007 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20008 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20009 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20010 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20011 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20012 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20013 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20014 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20015 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20017 cat <<\_ASBOX
20018 ## ------------------------------------------ ##
20019 ## Report this to the AC_PACKAGE_NAME lists. ##
20020 ## ------------------------------------------ ##
20021 _ASBOX
20023 sed "s/^/$as_me: WARNING: /" >&2
20025 esac
20026 echo "$as_me:$LINENO: checking for $ac_header" >&5
20027 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20028 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20029 echo $ECHO_N "(cached) $ECHO_C" >&6
20030 else
20031 eval "$as_ac_Header=\$ac_header_preproc"
20033 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20034 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20037 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20038 cat >>confdefs.h <<_ACEOF
20039 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20040 _ACEOF
20042 else
20044 for ac_header in kerberosIV/krb.h
20046 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20047 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20048 echo "$as_me:$LINENO: checking for $ac_header" >&5
20049 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20050 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20051 echo $ECHO_N "(cached) $ECHO_C" >&6
20053 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20054 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20055 else
20056 # Is the header compilable?
20057 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20058 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20059 cat >conftest.$ac_ext <<_ACEOF
20060 /* confdefs.h. */
20061 _ACEOF
20062 cat confdefs.h >>conftest.$ac_ext
20063 cat >>conftest.$ac_ext <<_ACEOF
20064 /* end confdefs.h. */
20065 $ac_includes_default
20066 #include <$ac_header>
20067 _ACEOF
20068 rm -f conftest.$ac_objext
20069 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20070 (eval $ac_compile) 2>conftest.er1
20071 ac_status=$?
20072 grep -v '^ *+' conftest.er1 >conftest.err
20073 rm -f conftest.er1
20074 cat conftest.err >&5
20075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20076 (exit $ac_status); } &&
20077 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20079 (eval $ac_try) 2>&5
20080 ac_status=$?
20081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20082 (exit $ac_status); }; } &&
20083 { ac_try='test -s conftest.$ac_objext'
20084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20085 (eval $ac_try) 2>&5
20086 ac_status=$?
20087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20088 (exit $ac_status); }; }; then
20089 ac_header_compiler=yes
20090 else
20091 echo "$as_me: failed program was:" >&5
20092 sed 's/^/| /' conftest.$ac_ext >&5
20094 ac_header_compiler=no
20096 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20097 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20098 echo "${ECHO_T}$ac_header_compiler" >&6
20100 # Is the header present?
20101 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20102 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20103 cat >conftest.$ac_ext <<_ACEOF
20104 /* confdefs.h. */
20105 _ACEOF
20106 cat confdefs.h >>conftest.$ac_ext
20107 cat >>conftest.$ac_ext <<_ACEOF
20108 /* end confdefs.h. */
20109 #include <$ac_header>
20110 _ACEOF
20111 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20112 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20113 ac_status=$?
20114 grep -v '^ *+' conftest.er1 >conftest.err
20115 rm -f conftest.er1
20116 cat conftest.err >&5
20117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20118 (exit $ac_status); } >/dev/null; then
20119 if test -s conftest.err; then
20120 ac_cpp_err=$ac_c_preproc_warn_flag
20121 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20122 else
20123 ac_cpp_err=
20125 else
20126 ac_cpp_err=yes
20128 if test -z "$ac_cpp_err"; then
20129 ac_header_preproc=yes
20130 else
20131 echo "$as_me: failed program was:" >&5
20132 sed 's/^/| /' conftest.$ac_ext >&5
20134 ac_header_preproc=no
20136 rm -f conftest.err conftest.$ac_ext
20137 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20138 echo "${ECHO_T}$ac_header_preproc" >&6
20140 # So? What about this header?
20141 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20142 yes:no: )
20143 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20144 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20145 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20146 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20147 ac_header_preproc=yes
20149 no:yes:* )
20150 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20151 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20152 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20153 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20154 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20155 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20156 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20157 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20158 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20159 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20160 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20161 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20163 cat <<\_ASBOX
20164 ## ------------------------------------------ ##
20165 ## Report this to the AC_PACKAGE_NAME lists. ##
20166 ## ------------------------------------------ ##
20167 _ASBOX
20169 sed "s/^/$as_me: WARNING: /" >&2
20171 esac
20172 echo "$as_me:$LINENO: checking for $ac_header" >&5
20173 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20174 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20175 echo $ECHO_N "(cached) $ECHO_C" >&6
20176 else
20177 eval "$as_ac_Header=\$ac_header_preproc"
20179 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20180 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20183 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20184 cat >>confdefs.h <<_ACEOF
20185 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20186 _ACEOF
20188 else
20190 for ac_header in kerberos/krb.h
20192 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20193 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20194 echo "$as_me:$LINENO: checking for $ac_header" >&5
20195 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20196 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20197 echo $ECHO_N "(cached) $ECHO_C" >&6
20199 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20200 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20201 else
20202 # Is the header compilable?
20203 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20204 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20205 cat >conftest.$ac_ext <<_ACEOF
20206 /* confdefs.h. */
20207 _ACEOF
20208 cat confdefs.h >>conftest.$ac_ext
20209 cat >>conftest.$ac_ext <<_ACEOF
20210 /* end confdefs.h. */
20211 $ac_includes_default
20212 #include <$ac_header>
20213 _ACEOF
20214 rm -f conftest.$ac_objext
20215 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20216 (eval $ac_compile) 2>conftest.er1
20217 ac_status=$?
20218 grep -v '^ *+' conftest.er1 >conftest.err
20219 rm -f conftest.er1
20220 cat conftest.err >&5
20221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20222 (exit $ac_status); } &&
20223 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20225 (eval $ac_try) 2>&5
20226 ac_status=$?
20227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20228 (exit $ac_status); }; } &&
20229 { ac_try='test -s conftest.$ac_objext'
20230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20231 (eval $ac_try) 2>&5
20232 ac_status=$?
20233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20234 (exit $ac_status); }; }; then
20235 ac_header_compiler=yes
20236 else
20237 echo "$as_me: failed program was:" >&5
20238 sed 's/^/| /' conftest.$ac_ext >&5
20240 ac_header_compiler=no
20242 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20243 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20244 echo "${ECHO_T}$ac_header_compiler" >&6
20246 # Is the header present?
20247 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20248 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20249 cat >conftest.$ac_ext <<_ACEOF
20250 /* confdefs.h. */
20251 _ACEOF
20252 cat confdefs.h >>conftest.$ac_ext
20253 cat >>conftest.$ac_ext <<_ACEOF
20254 /* end confdefs.h. */
20255 #include <$ac_header>
20256 _ACEOF
20257 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20258 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20259 ac_status=$?
20260 grep -v '^ *+' conftest.er1 >conftest.err
20261 rm -f conftest.er1
20262 cat conftest.err >&5
20263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20264 (exit $ac_status); } >/dev/null; then
20265 if test -s conftest.err; then
20266 ac_cpp_err=$ac_c_preproc_warn_flag
20267 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20268 else
20269 ac_cpp_err=
20271 else
20272 ac_cpp_err=yes
20274 if test -z "$ac_cpp_err"; then
20275 ac_header_preproc=yes
20276 else
20277 echo "$as_me: failed program was:" >&5
20278 sed 's/^/| /' conftest.$ac_ext >&5
20280 ac_header_preproc=no
20282 rm -f conftest.err conftest.$ac_ext
20283 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20284 echo "${ECHO_T}$ac_header_preproc" >&6
20286 # So? What about this header?
20287 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20288 yes:no: )
20289 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20290 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20291 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20292 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20293 ac_header_preproc=yes
20295 no:yes:* )
20296 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20297 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20298 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20299 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20300 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20301 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20302 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20303 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20304 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20305 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20306 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20307 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20309 cat <<\_ASBOX
20310 ## ------------------------------------------ ##
20311 ## Report this to the AC_PACKAGE_NAME lists. ##
20312 ## ------------------------------------------ ##
20313 _ASBOX
20315 sed "s/^/$as_me: WARNING: /" >&2
20317 esac
20318 echo "$as_me:$LINENO: checking for $ac_header" >&5
20319 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20320 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20321 echo $ECHO_N "(cached) $ECHO_C" >&6
20322 else
20323 eval "$as_ac_Header=\$ac_header_preproc"
20325 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20326 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20329 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20330 cat >>confdefs.h <<_ACEOF
20331 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20332 _ACEOF
20336 done
20340 done
20344 done
20348 for ac_header in com_err.h
20350 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20351 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20352 echo "$as_me:$LINENO: checking for $ac_header" >&5
20353 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20354 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20355 echo $ECHO_N "(cached) $ECHO_C" >&6
20357 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20358 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20359 else
20360 # Is the header compilable?
20361 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20362 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20363 cat >conftest.$ac_ext <<_ACEOF
20364 /* confdefs.h. */
20365 _ACEOF
20366 cat confdefs.h >>conftest.$ac_ext
20367 cat >>conftest.$ac_ext <<_ACEOF
20368 /* end confdefs.h. */
20369 $ac_includes_default
20370 #include <$ac_header>
20371 _ACEOF
20372 rm -f conftest.$ac_objext
20373 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20374 (eval $ac_compile) 2>conftest.er1
20375 ac_status=$?
20376 grep -v '^ *+' conftest.er1 >conftest.err
20377 rm -f conftest.er1
20378 cat conftest.err >&5
20379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20380 (exit $ac_status); } &&
20381 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20383 (eval $ac_try) 2>&5
20384 ac_status=$?
20385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20386 (exit $ac_status); }; } &&
20387 { ac_try='test -s conftest.$ac_objext'
20388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20389 (eval $ac_try) 2>&5
20390 ac_status=$?
20391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20392 (exit $ac_status); }; }; then
20393 ac_header_compiler=yes
20394 else
20395 echo "$as_me: failed program was:" >&5
20396 sed 's/^/| /' conftest.$ac_ext >&5
20398 ac_header_compiler=no
20400 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20401 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20402 echo "${ECHO_T}$ac_header_compiler" >&6
20404 # Is the header present?
20405 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20406 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20407 cat >conftest.$ac_ext <<_ACEOF
20408 /* confdefs.h. */
20409 _ACEOF
20410 cat confdefs.h >>conftest.$ac_ext
20411 cat >>conftest.$ac_ext <<_ACEOF
20412 /* end confdefs.h. */
20413 #include <$ac_header>
20414 _ACEOF
20415 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20416 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20417 ac_status=$?
20418 grep -v '^ *+' conftest.er1 >conftest.err
20419 rm -f conftest.er1
20420 cat conftest.err >&5
20421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20422 (exit $ac_status); } >/dev/null; then
20423 if test -s conftest.err; then
20424 ac_cpp_err=$ac_c_preproc_warn_flag
20425 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20426 else
20427 ac_cpp_err=
20429 else
20430 ac_cpp_err=yes
20432 if test -z "$ac_cpp_err"; then
20433 ac_header_preproc=yes
20434 else
20435 echo "$as_me: failed program was:" >&5
20436 sed 's/^/| /' conftest.$ac_ext >&5
20438 ac_header_preproc=no
20440 rm -f conftest.err conftest.$ac_ext
20441 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20442 echo "${ECHO_T}$ac_header_preproc" >&6
20444 # So? What about this header?
20445 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20446 yes:no: )
20447 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20448 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20449 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20450 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20451 ac_header_preproc=yes
20453 no:yes:* )
20454 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20455 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20456 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20457 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20458 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20459 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20460 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20461 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20462 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20463 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20464 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20465 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20467 cat <<\_ASBOX
20468 ## ------------------------------------------ ##
20469 ## Report this to the AC_PACKAGE_NAME lists. ##
20470 ## ------------------------------------------ ##
20471 _ASBOX
20473 sed "s/^/$as_me: WARNING: /" >&2
20475 esac
20476 echo "$as_me:$LINENO: checking for $ac_header" >&5
20477 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20478 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20479 echo $ECHO_N "(cached) $ECHO_C" >&6
20480 else
20481 eval "$as_ac_Header=\$ac_header_preproc"
20483 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20484 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20487 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20488 cat >>confdefs.h <<_ACEOF
20489 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20490 _ACEOF
20494 done
20498 # Solaris requires -lintl if you want strerror (which calls dgettext)
20499 # to return localized messages.
20501 echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
20502 echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6
20503 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
20504 echo $ECHO_N "(cached) $ECHO_C" >&6
20505 else
20506 ac_check_lib_save_LIBS=$LIBS
20507 LIBS="-lintl $LIBS"
20508 cat >conftest.$ac_ext <<_ACEOF
20509 /* confdefs.h. */
20510 _ACEOF
20511 cat confdefs.h >>conftest.$ac_ext
20512 cat >>conftest.$ac_ext <<_ACEOF
20513 /* end confdefs.h. */
20515 /* Override any gcc2 internal prototype to avoid an error. */
20516 #ifdef __cplusplus
20517 extern "C"
20518 #endif
20519 /* We use char because int might match the return type of a gcc2
20520 builtin and then its argument prototype would still apply. */
20521 char dgettext ();
20523 main ()
20525 dgettext ();
20527 return 0;
20529 _ACEOF
20530 rm -f conftest.$ac_objext conftest$ac_exeext
20531 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20532 (eval $ac_link) 2>conftest.er1
20533 ac_status=$?
20534 grep -v '^ *+' conftest.er1 >conftest.err
20535 rm -f conftest.er1
20536 cat conftest.err >&5
20537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20538 (exit $ac_status); } &&
20539 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20541 (eval $ac_try) 2>&5
20542 ac_status=$?
20543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20544 (exit $ac_status); }; } &&
20545 { ac_try='test -s conftest$ac_exeext'
20546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20547 (eval $ac_try) 2>&5
20548 ac_status=$?
20549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20550 (exit $ac_status); }; }; then
20551 ac_cv_lib_intl_dgettext=yes
20552 else
20553 echo "$as_me: failed program was:" >&5
20554 sed 's/^/| /' conftest.$ac_ext >&5
20556 ac_cv_lib_intl_dgettext=no
20558 rm -f conftest.err conftest.$ac_objext \
20559 conftest$ac_exeext conftest.$ac_ext
20560 LIBS=$ac_check_lib_save_LIBS
20562 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
20563 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6
20564 if test $ac_cv_lib_intl_dgettext = yes; then
20565 cat >>confdefs.h <<_ACEOF
20566 #define HAVE_LIBINTL 1
20567 _ACEOF
20569 LIBS="-lintl $LIBS"
20574 echo "$as_me:$LINENO: checking whether localtime caches TZ" >&5
20575 echo $ECHO_N "checking whether localtime caches TZ... $ECHO_C" >&6
20576 if test "${emacs_cv_localtime_cache+set}" = set; then
20577 echo $ECHO_N "(cached) $ECHO_C" >&6
20578 else
20579 if test x$ac_cv_func_tzset = xyes; then
20580 if test "$cross_compiling" = yes; then
20581 # If we have tzset, assume the worst when cross-compiling.
20582 emacs_cv_localtime_cache=yes
20583 else
20584 cat >conftest.$ac_ext <<_ACEOF
20585 /* confdefs.h. */
20586 _ACEOF
20587 cat confdefs.h >>conftest.$ac_ext
20588 cat >>conftest.$ac_ext <<_ACEOF
20589 /* end confdefs.h. */
20590 #include <time.h>
20591 extern char **environ;
20592 unset_TZ ()
20594 char **from, **to;
20595 for (to = from = environ; (*to = *from); from++)
20596 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
20597 to++;
20599 char TZ_GMT0[] = "TZ=GMT0";
20600 char TZ_PST8[] = "TZ=PST8";
20601 main()
20603 time_t now = time ((time_t *) 0);
20604 int hour_GMT0, hour_unset;
20605 if (putenv (TZ_GMT0) != 0)
20606 exit (1);
20607 hour_GMT0 = localtime (&now)->tm_hour;
20608 unset_TZ ();
20609 hour_unset = localtime (&now)->tm_hour;
20610 if (putenv (TZ_PST8) != 0)
20611 exit (1);
20612 if (localtime (&now)->tm_hour == hour_GMT0)
20613 exit (1);
20614 unset_TZ ();
20615 if (localtime (&now)->tm_hour != hour_unset)
20616 exit (1);
20617 exit (0);
20619 _ACEOF
20620 rm -f conftest$ac_exeext
20621 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20622 (eval $ac_link) 2>&5
20623 ac_status=$?
20624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20625 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20627 (eval $ac_try) 2>&5
20628 ac_status=$?
20629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20630 (exit $ac_status); }; }; then
20631 emacs_cv_localtime_cache=no
20632 else
20633 echo "$as_me: program exited with status $ac_status" >&5
20634 echo "$as_me: failed program was:" >&5
20635 sed 's/^/| /' conftest.$ac_ext >&5
20637 ( exit $ac_status )
20638 emacs_cv_localtime_cache=yes
20640 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20642 else
20643 # If we lack tzset, report that localtime does not cache TZ,
20644 # since we can't invalidate the cache if we don't have tzset.
20645 emacs_cv_localtime_cache=no
20648 echo "$as_me:$LINENO: result: $emacs_cv_localtime_cache" >&5
20649 echo "${ECHO_T}$emacs_cv_localtime_cache" >&6
20650 if test $emacs_cv_localtime_cache = yes; then
20652 cat >>confdefs.h <<\_ACEOF
20653 #define LOCALTIME_CACHE 1
20654 _ACEOF
20658 if test "x$HAVE_TIMEVAL" = xyes; then
20660 for ac_func in gettimeofday
20662 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20663 echo "$as_me:$LINENO: checking for $ac_func" >&5
20664 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20665 if eval "test \"\${$as_ac_var+set}\" = set"; then
20666 echo $ECHO_N "(cached) $ECHO_C" >&6
20667 else
20668 cat >conftest.$ac_ext <<_ACEOF
20669 /* confdefs.h. */
20670 _ACEOF
20671 cat confdefs.h >>conftest.$ac_ext
20672 cat >>conftest.$ac_ext <<_ACEOF
20673 /* end confdefs.h. */
20674 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20675 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20676 #define $ac_func innocuous_$ac_func
20678 /* System header to define __stub macros and hopefully few prototypes,
20679 which can conflict with char $ac_func (); below.
20680 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20681 <limits.h> exists even on freestanding compilers. */
20683 #ifdef __STDC__
20684 # include <limits.h>
20685 #else
20686 # include <assert.h>
20687 #endif
20689 #undef $ac_func
20691 /* Override any gcc2 internal prototype to avoid an error. */
20692 #ifdef __cplusplus
20693 extern "C"
20695 #endif
20696 /* We use char because int might match the return type of a gcc2
20697 builtin and then its argument prototype would still apply. */
20698 char $ac_func ();
20699 /* The GNU C library defines this for functions which it implements
20700 to always fail with ENOSYS. Some functions are actually named
20701 something starting with __ and the normal name is an alias. */
20702 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20703 choke me
20704 #else
20705 char (*f) () = $ac_func;
20706 #endif
20707 #ifdef __cplusplus
20709 #endif
20712 main ()
20714 return f != $ac_func;
20716 return 0;
20718 _ACEOF
20719 rm -f conftest.$ac_objext conftest$ac_exeext
20720 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20721 (eval $ac_link) 2>conftest.er1
20722 ac_status=$?
20723 grep -v '^ *+' conftest.er1 >conftest.err
20724 rm -f conftest.er1
20725 cat conftest.err >&5
20726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20727 (exit $ac_status); } &&
20728 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20730 (eval $ac_try) 2>&5
20731 ac_status=$?
20732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20733 (exit $ac_status); }; } &&
20734 { ac_try='test -s conftest$ac_exeext'
20735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20736 (eval $ac_try) 2>&5
20737 ac_status=$?
20738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20739 (exit $ac_status); }; }; then
20740 eval "$as_ac_var=yes"
20741 else
20742 echo "$as_me: failed program was:" >&5
20743 sed 's/^/| /' conftest.$ac_ext >&5
20745 eval "$as_ac_var=no"
20747 rm -f conftest.err conftest.$ac_objext \
20748 conftest$ac_exeext conftest.$ac_ext
20750 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20751 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20752 if test `eval echo '${'$as_ac_var'}'` = yes; then
20753 cat >>confdefs.h <<_ACEOF
20754 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20755 _ACEOF
20758 done
20760 if test $ac_cv_func_gettimeofday = yes; then
20761 echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments" >&5
20762 echo $ECHO_N "checking whether gettimeofday can accept two arguments... $ECHO_C" >&6
20763 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
20764 echo $ECHO_N "(cached) $ECHO_C" >&6
20765 else
20766 cat >conftest.$ac_ext <<_ACEOF
20767 /* confdefs.h. */
20768 _ACEOF
20769 cat confdefs.h >>conftest.$ac_ext
20770 cat >>conftest.$ac_ext <<_ACEOF
20771 /* end confdefs.h. */
20773 #ifdef TIME_WITH_SYS_TIME
20774 #include <sys/time.h>
20775 #include <time.h>
20776 #else
20777 #ifdef HAVE_SYS_TIME_H
20778 #include <sys/time.h>
20779 #else
20780 #include <time.h>
20781 #endif
20782 #endif
20784 main ()
20786 struct timeval time;
20787 gettimeofday (&time, 0);
20789 return 0;
20791 _ACEOF
20792 rm -f conftest.$ac_objext
20793 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20794 (eval $ac_compile) 2>conftest.er1
20795 ac_status=$?
20796 grep -v '^ *+' conftest.er1 >conftest.err
20797 rm -f conftest.er1
20798 cat conftest.err >&5
20799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20800 (exit $ac_status); } &&
20801 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20803 (eval $ac_try) 2>&5
20804 ac_status=$?
20805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20806 (exit $ac_status); }; } &&
20807 { ac_try='test -s conftest.$ac_objext'
20808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20809 (eval $ac_try) 2>&5
20810 ac_status=$?
20811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20812 (exit $ac_status); }; }; then
20813 emacs_cv_gettimeofday_two_arguments=yes
20814 else
20815 echo "$as_me: failed program was:" >&5
20816 sed 's/^/| /' conftest.$ac_ext >&5
20818 emacs_cv_gettimeofday_two_arguments=no
20820 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20822 echo "$as_me:$LINENO: result: $emacs_cv_gettimeofday_two_arguments" >&5
20823 echo "${ECHO_T}$emacs_cv_gettimeofday_two_arguments" >&6
20824 if test $emacs_cv_gettimeofday_two_arguments = no; then
20826 cat >>confdefs.h <<\_ACEOF
20827 #define GETTIMEOFDAY_ONE_ARGUMENT 1
20828 _ACEOF
20834 # This defines (or not) HAVE_TZNAME and HAVE_TM_ZONE.
20835 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
20836 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
20837 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
20838 echo $ECHO_N "(cached) $ECHO_C" >&6
20839 else
20840 cat >conftest.$ac_ext <<_ACEOF
20841 /* confdefs.h. */
20842 _ACEOF
20843 cat confdefs.h >>conftest.$ac_ext
20844 cat >>conftest.$ac_ext <<_ACEOF
20845 /* end confdefs.h. */
20846 #include <sys/types.h>
20847 #include <$ac_cv_struct_tm>
20851 main ()
20853 static struct tm ac_aggr;
20854 if (ac_aggr.tm_zone)
20855 return 0;
20857 return 0;
20859 _ACEOF
20860 rm -f conftest.$ac_objext
20861 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20862 (eval $ac_compile) 2>conftest.er1
20863 ac_status=$?
20864 grep -v '^ *+' conftest.er1 >conftest.err
20865 rm -f conftest.er1
20866 cat conftest.err >&5
20867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20868 (exit $ac_status); } &&
20869 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20871 (eval $ac_try) 2>&5
20872 ac_status=$?
20873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20874 (exit $ac_status); }; } &&
20875 { ac_try='test -s conftest.$ac_objext'
20876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20877 (eval $ac_try) 2>&5
20878 ac_status=$?
20879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20880 (exit $ac_status); }; }; then
20881 ac_cv_member_struct_tm_tm_zone=yes
20882 else
20883 echo "$as_me: failed program was:" >&5
20884 sed 's/^/| /' conftest.$ac_ext >&5
20886 cat >conftest.$ac_ext <<_ACEOF
20887 /* confdefs.h. */
20888 _ACEOF
20889 cat confdefs.h >>conftest.$ac_ext
20890 cat >>conftest.$ac_ext <<_ACEOF
20891 /* end confdefs.h. */
20892 #include <sys/types.h>
20893 #include <$ac_cv_struct_tm>
20897 main ()
20899 static struct tm ac_aggr;
20900 if (sizeof ac_aggr.tm_zone)
20901 return 0;
20903 return 0;
20905 _ACEOF
20906 rm -f conftest.$ac_objext
20907 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20908 (eval $ac_compile) 2>conftest.er1
20909 ac_status=$?
20910 grep -v '^ *+' conftest.er1 >conftest.err
20911 rm -f conftest.er1
20912 cat conftest.err >&5
20913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20914 (exit $ac_status); } &&
20915 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20917 (eval $ac_try) 2>&5
20918 ac_status=$?
20919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20920 (exit $ac_status); }; } &&
20921 { ac_try='test -s conftest.$ac_objext'
20922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20923 (eval $ac_try) 2>&5
20924 ac_status=$?
20925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20926 (exit $ac_status); }; }; then
20927 ac_cv_member_struct_tm_tm_zone=yes
20928 else
20929 echo "$as_me: failed program was:" >&5
20930 sed 's/^/| /' conftest.$ac_ext >&5
20932 ac_cv_member_struct_tm_tm_zone=no
20934 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20936 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20938 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
20939 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
20940 if test $ac_cv_member_struct_tm_tm_zone = yes; then
20942 cat >>confdefs.h <<_ACEOF
20943 #define HAVE_STRUCT_TM_TM_ZONE 1
20944 _ACEOF
20949 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
20951 cat >>confdefs.h <<\_ACEOF
20952 #define HAVE_TM_ZONE 1
20953 _ACEOF
20955 else
20956 echo "$as_me:$LINENO: checking for tzname" >&5
20957 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
20958 if test "${ac_cv_var_tzname+set}" = set; then
20959 echo $ECHO_N "(cached) $ECHO_C" >&6
20960 else
20961 cat >conftest.$ac_ext <<_ACEOF
20962 /* confdefs.h. */
20963 _ACEOF
20964 cat confdefs.h >>conftest.$ac_ext
20965 cat >>conftest.$ac_ext <<_ACEOF
20966 /* end confdefs.h. */
20967 #include <time.h>
20968 #ifndef tzname /* For SGI. */
20969 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
20970 #endif
20973 main ()
20975 atoi(*tzname);
20977 return 0;
20979 _ACEOF
20980 rm -f conftest.$ac_objext conftest$ac_exeext
20981 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20982 (eval $ac_link) 2>conftest.er1
20983 ac_status=$?
20984 grep -v '^ *+' conftest.er1 >conftest.err
20985 rm -f conftest.er1
20986 cat conftest.err >&5
20987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20988 (exit $ac_status); } &&
20989 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20991 (eval $ac_try) 2>&5
20992 ac_status=$?
20993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20994 (exit $ac_status); }; } &&
20995 { ac_try='test -s conftest$ac_exeext'
20996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20997 (eval $ac_try) 2>&5
20998 ac_status=$?
20999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21000 (exit $ac_status); }; }; then
21001 ac_cv_var_tzname=yes
21002 else
21003 echo "$as_me: failed program was:" >&5
21004 sed 's/^/| /' conftest.$ac_ext >&5
21006 ac_cv_var_tzname=no
21008 rm -f conftest.err conftest.$ac_objext \
21009 conftest$ac_exeext conftest.$ac_ext
21011 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
21012 echo "${ECHO_T}$ac_cv_var_tzname" >&6
21013 if test $ac_cv_var_tzname = yes; then
21015 cat >>confdefs.h <<\_ACEOF
21016 #define HAVE_TZNAME 1
21017 _ACEOF
21023 if test "$ac_cv_func_gettimeofday" = yes; then
21024 echo "$as_me:$LINENO: checking for struct timezone" >&5
21025 echo $ECHO_N "checking for struct timezone... $ECHO_C" >&6
21026 if test "${emacs_cv_struct_timezone+set}" = set; then
21027 echo $ECHO_N "(cached) $ECHO_C" >&6
21028 else
21029 cat >conftest.$ac_ext <<_ACEOF
21030 /* confdefs.h. */
21031 _ACEOF
21032 cat confdefs.h >>conftest.$ac_ext
21033 cat >>conftest.$ac_ext <<_ACEOF
21034 /* end confdefs.h. */
21035 #include <sys/time.h>
21037 main ()
21039 struct timezone tz;
21041 return 0;
21043 _ACEOF
21044 rm -f conftest.$ac_objext
21045 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21046 (eval $ac_compile) 2>conftest.er1
21047 ac_status=$?
21048 grep -v '^ *+' conftest.er1 >conftest.err
21049 rm -f conftest.er1
21050 cat conftest.err >&5
21051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21052 (exit $ac_status); } &&
21053 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21055 (eval $ac_try) 2>&5
21056 ac_status=$?
21057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21058 (exit $ac_status); }; } &&
21059 { ac_try='test -s conftest.$ac_objext'
21060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21061 (eval $ac_try) 2>&5
21062 ac_status=$?
21063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21064 (exit $ac_status); }; }; then
21065 if test "$cross_compiling" = yes; then
21066 emacs_cv_struct_timezone=yes
21067 else
21068 cat >conftest.$ac_ext <<_ACEOF
21069 /* confdefs.h. */
21070 _ACEOF
21071 cat confdefs.h >>conftest.$ac_ext
21072 cat >>conftest.$ac_ext <<_ACEOF
21073 /* end confdefs.h. */
21075 #ifdef TIME_WITH_SYS_TIME
21076 #include <sys/time.h>
21077 #include <time.h>
21078 #else
21079 #ifdef HAVE_SYS_TIME_H
21080 #include <sys/time.h>
21081 #else
21082 #include <time.h>
21083 #endif
21084 #endif
21085 main () {
21086 struct timeval time;
21087 struct timezone dummy;
21088 exit (gettimeofday (&time, &dummy));
21090 _ACEOF
21091 rm -f conftest$ac_exeext
21092 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21093 (eval $ac_link) 2>&5
21094 ac_status=$?
21095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21096 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21098 (eval $ac_try) 2>&5
21099 ac_status=$?
21100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21101 (exit $ac_status); }; }; then
21102 emacs_cv_struct_timezone=yes
21103 else
21104 echo "$as_me: program exited with status $ac_status" >&5
21105 echo "$as_me: failed program was:" >&5
21106 sed 's/^/| /' conftest.$ac_ext >&5
21108 ( exit $ac_status )
21109 emacs_cv_struct_timezone=no
21111 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21113 else
21114 echo "$as_me: failed program was:" >&5
21115 sed 's/^/| /' conftest.$ac_ext >&5
21117 emacs_cv_struct_timezone=no
21119 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21121 echo "$as_me:$LINENO: result: $emacs_cv_struct_timezone" >&5
21122 echo "${ECHO_T}$emacs_cv_struct_timezone" >&6
21125 ok_so_far=yes
21126 echo "$as_me:$LINENO: checking for socket" >&5
21127 echo $ECHO_N "checking for socket... $ECHO_C" >&6
21128 if test "${ac_cv_func_socket+set}" = set; then
21129 echo $ECHO_N "(cached) $ECHO_C" >&6
21130 else
21131 cat >conftest.$ac_ext <<_ACEOF
21132 /* confdefs.h. */
21133 _ACEOF
21134 cat confdefs.h >>conftest.$ac_ext
21135 cat >>conftest.$ac_ext <<_ACEOF
21136 /* end confdefs.h. */
21137 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
21138 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21139 #define socket innocuous_socket
21141 /* System header to define __stub macros and hopefully few prototypes,
21142 which can conflict with char socket (); below.
21143 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21144 <limits.h> exists even on freestanding compilers. */
21146 #ifdef __STDC__
21147 # include <limits.h>
21148 #else
21149 # include <assert.h>
21150 #endif
21152 #undef socket
21154 /* Override any gcc2 internal prototype to avoid an error. */
21155 #ifdef __cplusplus
21156 extern "C"
21158 #endif
21159 /* We use char because int might match the return type of a gcc2
21160 builtin and then its argument prototype would still apply. */
21161 char socket ();
21162 /* The GNU C library defines this for functions which it implements
21163 to always fail with ENOSYS. Some functions are actually named
21164 something starting with __ and the normal name is an alias. */
21165 #if defined (__stub_socket) || defined (__stub___socket)
21166 choke me
21167 #else
21168 char (*f) () = socket;
21169 #endif
21170 #ifdef __cplusplus
21172 #endif
21175 main ()
21177 return f != socket;
21179 return 0;
21181 _ACEOF
21182 rm -f conftest.$ac_objext conftest$ac_exeext
21183 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21184 (eval $ac_link) 2>conftest.er1
21185 ac_status=$?
21186 grep -v '^ *+' conftest.er1 >conftest.err
21187 rm -f conftest.er1
21188 cat conftest.err >&5
21189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21190 (exit $ac_status); } &&
21191 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21193 (eval $ac_try) 2>&5
21194 ac_status=$?
21195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21196 (exit $ac_status); }; } &&
21197 { ac_try='test -s conftest$ac_exeext'
21198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21199 (eval $ac_try) 2>&5
21200 ac_status=$?
21201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21202 (exit $ac_status); }; }; then
21203 ac_cv_func_socket=yes
21204 else
21205 echo "$as_me: failed program was:" >&5
21206 sed 's/^/| /' conftest.$ac_ext >&5
21208 ac_cv_func_socket=no
21210 rm -f conftest.err conftest.$ac_objext \
21211 conftest$ac_exeext conftest.$ac_ext
21213 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
21214 echo "${ECHO_T}$ac_cv_func_socket" >&6
21215 if test $ac_cv_func_socket = yes; then
21217 else
21218 ok_so_far=no
21221 if test $ok_so_far = yes; then
21222 if test "${ac_cv_header_netinet_in_h+set}" = set; then
21223 echo "$as_me:$LINENO: checking for netinet/in.h" >&5
21224 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6
21225 if test "${ac_cv_header_netinet_in_h+set}" = set; then
21226 echo $ECHO_N "(cached) $ECHO_C" >&6
21228 echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
21229 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6
21230 else
21231 # Is the header compilable?
21232 echo "$as_me:$LINENO: checking netinet/in.h usability" >&5
21233 echo $ECHO_N "checking netinet/in.h usability... $ECHO_C" >&6
21234 cat >conftest.$ac_ext <<_ACEOF
21235 /* confdefs.h. */
21236 _ACEOF
21237 cat confdefs.h >>conftest.$ac_ext
21238 cat >>conftest.$ac_ext <<_ACEOF
21239 /* end confdefs.h. */
21240 $ac_includes_default
21241 #include <netinet/in.h>
21242 _ACEOF
21243 rm -f conftest.$ac_objext
21244 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21245 (eval $ac_compile) 2>conftest.er1
21246 ac_status=$?
21247 grep -v '^ *+' conftest.er1 >conftest.err
21248 rm -f conftest.er1
21249 cat conftest.err >&5
21250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21251 (exit $ac_status); } &&
21252 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21254 (eval $ac_try) 2>&5
21255 ac_status=$?
21256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21257 (exit $ac_status); }; } &&
21258 { ac_try='test -s conftest.$ac_objext'
21259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21260 (eval $ac_try) 2>&5
21261 ac_status=$?
21262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21263 (exit $ac_status); }; }; then
21264 ac_header_compiler=yes
21265 else
21266 echo "$as_me: failed program was:" >&5
21267 sed 's/^/| /' conftest.$ac_ext >&5
21269 ac_header_compiler=no
21271 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21272 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21273 echo "${ECHO_T}$ac_header_compiler" >&6
21275 # Is the header present?
21276 echo "$as_me:$LINENO: checking netinet/in.h presence" >&5
21277 echo $ECHO_N "checking netinet/in.h presence... $ECHO_C" >&6
21278 cat >conftest.$ac_ext <<_ACEOF
21279 /* confdefs.h. */
21280 _ACEOF
21281 cat confdefs.h >>conftest.$ac_ext
21282 cat >>conftest.$ac_ext <<_ACEOF
21283 /* end confdefs.h. */
21284 #include <netinet/in.h>
21285 _ACEOF
21286 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21287 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21288 ac_status=$?
21289 grep -v '^ *+' conftest.er1 >conftest.err
21290 rm -f conftest.er1
21291 cat conftest.err >&5
21292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21293 (exit $ac_status); } >/dev/null; then
21294 if test -s conftest.err; then
21295 ac_cpp_err=$ac_c_preproc_warn_flag
21296 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21297 else
21298 ac_cpp_err=
21300 else
21301 ac_cpp_err=yes
21303 if test -z "$ac_cpp_err"; then
21304 ac_header_preproc=yes
21305 else
21306 echo "$as_me: failed program was:" >&5
21307 sed 's/^/| /' conftest.$ac_ext >&5
21309 ac_header_preproc=no
21311 rm -f conftest.err conftest.$ac_ext
21312 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21313 echo "${ECHO_T}$ac_header_preproc" >&6
21315 # So? What about this header?
21316 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21317 yes:no: )
21318 { echo "$as_me:$LINENO: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&5
21319 echo "$as_me: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21320 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the compiler's result" >&5
21321 echo "$as_me: WARNING: netinet/in.h: proceeding with the compiler's result" >&2;}
21322 ac_header_preproc=yes
21324 no:yes:* )
21325 { echo "$as_me:$LINENO: WARNING: netinet/in.h: present but cannot be compiled" >&5
21326 echo "$as_me: WARNING: netinet/in.h: present but cannot be compiled" >&2;}
21327 { echo "$as_me:$LINENO: WARNING: netinet/in.h: check for missing prerequisite headers?" >&5
21328 echo "$as_me: WARNING: netinet/in.h: check for missing prerequisite headers?" >&2;}
21329 { echo "$as_me:$LINENO: WARNING: netinet/in.h: see the Autoconf documentation" >&5
21330 echo "$as_me: WARNING: netinet/in.h: see the Autoconf documentation" >&2;}
21331 { echo "$as_me:$LINENO: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&5
21332 echo "$as_me: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&2;}
21333 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5
21334 echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;}
21335 { echo "$as_me:$LINENO: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&5
21336 echo "$as_me: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&2;}
21338 cat <<\_ASBOX
21339 ## ------------------------------------------ ##
21340 ## Report this to the AC_PACKAGE_NAME lists. ##
21341 ## ------------------------------------------ ##
21342 _ASBOX
21344 sed "s/^/$as_me: WARNING: /" >&2
21346 esac
21347 echo "$as_me:$LINENO: checking for netinet/in.h" >&5
21348 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6
21349 if test "${ac_cv_header_netinet_in_h+set}" = set; then
21350 echo $ECHO_N "(cached) $ECHO_C" >&6
21351 else
21352 ac_cv_header_netinet_in_h=$ac_header_preproc
21354 echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
21355 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6
21358 if test $ac_cv_header_netinet_in_h = yes; then
21360 else
21361 ok_so_far=no
21366 if test $ok_so_far = yes; then
21367 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
21368 echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
21369 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6
21370 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
21371 echo $ECHO_N "(cached) $ECHO_C" >&6
21373 echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
21374 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6
21375 else
21376 # Is the header compilable?
21377 echo "$as_me:$LINENO: checking arpa/inet.h usability" >&5
21378 echo $ECHO_N "checking arpa/inet.h usability... $ECHO_C" >&6
21379 cat >conftest.$ac_ext <<_ACEOF
21380 /* confdefs.h. */
21381 _ACEOF
21382 cat confdefs.h >>conftest.$ac_ext
21383 cat >>conftest.$ac_ext <<_ACEOF
21384 /* end confdefs.h. */
21385 $ac_includes_default
21386 #include <arpa/inet.h>
21387 _ACEOF
21388 rm -f conftest.$ac_objext
21389 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21390 (eval $ac_compile) 2>conftest.er1
21391 ac_status=$?
21392 grep -v '^ *+' conftest.er1 >conftest.err
21393 rm -f conftest.er1
21394 cat conftest.err >&5
21395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21396 (exit $ac_status); } &&
21397 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21399 (eval $ac_try) 2>&5
21400 ac_status=$?
21401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21402 (exit $ac_status); }; } &&
21403 { ac_try='test -s conftest.$ac_objext'
21404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21405 (eval $ac_try) 2>&5
21406 ac_status=$?
21407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21408 (exit $ac_status); }; }; then
21409 ac_header_compiler=yes
21410 else
21411 echo "$as_me: failed program was:" >&5
21412 sed 's/^/| /' conftest.$ac_ext >&5
21414 ac_header_compiler=no
21416 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21417 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21418 echo "${ECHO_T}$ac_header_compiler" >&6
21420 # Is the header present?
21421 echo "$as_me:$LINENO: checking arpa/inet.h presence" >&5
21422 echo $ECHO_N "checking arpa/inet.h presence... $ECHO_C" >&6
21423 cat >conftest.$ac_ext <<_ACEOF
21424 /* confdefs.h. */
21425 _ACEOF
21426 cat confdefs.h >>conftest.$ac_ext
21427 cat >>conftest.$ac_ext <<_ACEOF
21428 /* end confdefs.h. */
21429 #include <arpa/inet.h>
21430 _ACEOF
21431 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21432 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21433 ac_status=$?
21434 grep -v '^ *+' conftest.er1 >conftest.err
21435 rm -f conftest.er1
21436 cat conftest.err >&5
21437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21438 (exit $ac_status); } >/dev/null; then
21439 if test -s conftest.err; then
21440 ac_cpp_err=$ac_c_preproc_warn_flag
21441 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21442 else
21443 ac_cpp_err=
21445 else
21446 ac_cpp_err=yes
21448 if test -z "$ac_cpp_err"; then
21449 ac_header_preproc=yes
21450 else
21451 echo "$as_me: failed program was:" >&5
21452 sed 's/^/| /' conftest.$ac_ext >&5
21454 ac_header_preproc=no
21456 rm -f conftest.err conftest.$ac_ext
21457 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21458 echo "${ECHO_T}$ac_header_preproc" >&6
21460 # So? What about this header?
21461 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21462 yes:no: )
21463 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&5
21464 echo "$as_me: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21465 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the compiler's result" >&5
21466 echo "$as_me: WARNING: arpa/inet.h: proceeding with the compiler's result" >&2;}
21467 ac_header_preproc=yes
21469 no:yes:* )
21470 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: present but cannot be compiled" >&5
21471 echo "$as_me: WARNING: arpa/inet.h: present but cannot be compiled" >&2;}
21472 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&5
21473 echo "$as_me: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&2;}
21474 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: see the Autoconf documentation" >&5
21475 echo "$as_me: WARNING: arpa/inet.h: see the Autoconf documentation" >&2;}
21476 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&5
21477 echo "$as_me: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&2;}
21478 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5
21479 echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;}
21480 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&5
21481 echo "$as_me: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&2;}
21483 cat <<\_ASBOX
21484 ## ------------------------------------------ ##
21485 ## Report this to the AC_PACKAGE_NAME lists. ##
21486 ## ------------------------------------------ ##
21487 _ASBOX
21489 sed "s/^/$as_me: WARNING: /" >&2
21491 esac
21492 echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
21493 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6
21494 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
21495 echo $ECHO_N "(cached) $ECHO_C" >&6
21496 else
21497 ac_cv_header_arpa_inet_h=$ac_header_preproc
21499 echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
21500 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6
21503 if test $ac_cv_header_arpa_inet_h = yes; then
21505 else
21506 ok_so_far=no
21511 if test $ok_so_far = yes; then
21513 cat >>confdefs.h <<\_ACEOF
21514 #define HAVE_INET_SOCKETS 1
21515 _ACEOF
21520 for ac_header in sys/ioctl.h
21522 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21523 if eval "test \"\${$as_ac_Header+set}\" = set"; then
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
21529 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21530 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21531 else
21532 # Is the header compilable?
21533 echo "$as_me:$LINENO: checking $ac_header usability" >&5
21534 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21535 cat >conftest.$ac_ext <<_ACEOF
21536 /* confdefs.h. */
21537 _ACEOF
21538 cat confdefs.h >>conftest.$ac_ext
21539 cat >>conftest.$ac_ext <<_ACEOF
21540 /* end confdefs.h. */
21541 $ac_includes_default
21542 #include <$ac_header>
21543 _ACEOF
21544 rm -f conftest.$ac_objext
21545 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21546 (eval $ac_compile) 2>conftest.er1
21547 ac_status=$?
21548 grep -v '^ *+' conftest.er1 >conftest.err
21549 rm -f conftest.er1
21550 cat conftest.err >&5
21551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21552 (exit $ac_status); } &&
21553 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21555 (eval $ac_try) 2>&5
21556 ac_status=$?
21557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21558 (exit $ac_status); }; } &&
21559 { ac_try='test -s conftest.$ac_objext'
21560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21561 (eval $ac_try) 2>&5
21562 ac_status=$?
21563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21564 (exit $ac_status); }; }; then
21565 ac_header_compiler=yes
21566 else
21567 echo "$as_me: failed program was:" >&5
21568 sed 's/^/| /' conftest.$ac_ext >&5
21570 ac_header_compiler=no
21572 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21573 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21574 echo "${ECHO_T}$ac_header_compiler" >&6
21576 # Is the header present?
21577 echo "$as_me:$LINENO: checking $ac_header presence" >&5
21578 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21579 cat >conftest.$ac_ext <<_ACEOF
21580 /* confdefs.h. */
21581 _ACEOF
21582 cat confdefs.h >>conftest.$ac_ext
21583 cat >>conftest.$ac_ext <<_ACEOF
21584 /* end confdefs.h. */
21585 #include <$ac_header>
21586 _ACEOF
21587 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21588 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21589 ac_status=$?
21590 grep -v '^ *+' conftest.er1 >conftest.err
21591 rm -f conftest.er1
21592 cat conftest.err >&5
21593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21594 (exit $ac_status); } >/dev/null; then
21595 if test -s conftest.err; then
21596 ac_cpp_err=$ac_c_preproc_warn_flag
21597 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21598 else
21599 ac_cpp_err=
21601 else
21602 ac_cpp_err=yes
21604 if test -z "$ac_cpp_err"; then
21605 ac_header_preproc=yes
21606 else
21607 echo "$as_me: failed program was:" >&5
21608 sed 's/^/| /' conftest.$ac_ext >&5
21610 ac_header_preproc=no
21612 rm -f conftest.err conftest.$ac_ext
21613 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21614 echo "${ECHO_T}$ac_header_preproc" >&6
21616 # So? What about this header?
21617 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21618 yes:no: )
21619 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21620 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21621 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21622 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21623 ac_header_preproc=yes
21625 no:yes:* )
21626 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21627 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21628 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21629 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21630 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21631 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21632 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21633 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21634 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21635 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21636 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21637 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21639 cat <<\_ASBOX
21640 ## ------------------------------------------ ##
21641 ## Report this to the AC_PACKAGE_NAME lists. ##
21642 ## ------------------------------------------ ##
21643 _ASBOX
21645 sed "s/^/$as_me: WARNING: /" >&2
21647 esac
21648 echo "$as_me:$LINENO: checking for $ac_header" >&5
21649 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21650 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21651 echo $ECHO_N "(cached) $ECHO_C" >&6
21652 else
21653 eval "$as_ac_Header=\$ac_header_preproc"
21655 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21656 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21659 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21660 cat >>confdefs.h <<_ACEOF
21661 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21662 _ACEOF
21666 done
21669 if test -f /usr/lpp/X11/bin/smt.exp; then
21671 cat >>confdefs.h <<\_ACEOF
21672 #define HAVE_AIX_SMT_EXP 1
21673 _ACEOF
21677 echo "$as_me:$LINENO: checking whether system supports dynamic ptys" >&5
21678 echo $ECHO_N "checking whether system supports dynamic ptys... $ECHO_C" >&6
21679 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
21680 echo "$as_me:$LINENO: result: yes" >&5
21681 echo "${ECHO_T}yes" >&6
21683 cat >>confdefs.h <<\_ACEOF
21684 #define HAVE_DEV_PTMX 1
21685 _ACEOF
21687 else
21688 echo "$as_me:$LINENO: result: no" >&5
21689 echo "${ECHO_T}no" >&6
21692 echo "$as_me:$LINENO: checking for pid_t" >&5
21693 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
21694 if test "${ac_cv_type_pid_t+set}" = set; then
21695 echo $ECHO_N "(cached) $ECHO_C" >&6
21696 else
21697 cat >conftest.$ac_ext <<_ACEOF
21698 /* confdefs.h. */
21699 _ACEOF
21700 cat confdefs.h >>conftest.$ac_ext
21701 cat >>conftest.$ac_ext <<_ACEOF
21702 /* end confdefs.h. */
21703 $ac_includes_default
21705 main ()
21707 if ((pid_t *) 0)
21708 return 0;
21709 if (sizeof (pid_t))
21710 return 0;
21712 return 0;
21714 _ACEOF
21715 rm -f conftest.$ac_objext
21716 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21717 (eval $ac_compile) 2>conftest.er1
21718 ac_status=$?
21719 grep -v '^ *+' conftest.er1 >conftest.err
21720 rm -f conftest.er1
21721 cat conftest.err >&5
21722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21723 (exit $ac_status); } &&
21724 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21726 (eval $ac_try) 2>&5
21727 ac_status=$?
21728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21729 (exit $ac_status); }; } &&
21730 { ac_try='test -s conftest.$ac_objext'
21731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21732 (eval $ac_try) 2>&5
21733 ac_status=$?
21734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21735 (exit $ac_status); }; }; then
21736 ac_cv_type_pid_t=yes
21737 else
21738 echo "$as_me: failed program was:" >&5
21739 sed 's/^/| /' conftest.$ac_ext >&5
21741 ac_cv_type_pid_t=no
21743 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21745 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
21746 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
21747 if test $ac_cv_type_pid_t = yes; then
21749 else
21751 cat >>confdefs.h <<_ACEOF
21752 #define pid_t int
21753 _ACEOF
21759 for ac_header in unistd.h vfork.h
21761 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21762 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21763 echo "$as_me:$LINENO: checking for $ac_header" >&5
21764 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21765 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21766 echo $ECHO_N "(cached) $ECHO_C" >&6
21768 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21769 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21770 else
21771 # Is the header compilable?
21772 echo "$as_me:$LINENO: checking $ac_header usability" >&5
21773 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21774 cat >conftest.$ac_ext <<_ACEOF
21775 /* confdefs.h. */
21776 _ACEOF
21777 cat confdefs.h >>conftest.$ac_ext
21778 cat >>conftest.$ac_ext <<_ACEOF
21779 /* end confdefs.h. */
21780 $ac_includes_default
21781 #include <$ac_header>
21782 _ACEOF
21783 rm -f conftest.$ac_objext
21784 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21785 (eval $ac_compile) 2>conftest.er1
21786 ac_status=$?
21787 grep -v '^ *+' conftest.er1 >conftest.err
21788 rm -f conftest.er1
21789 cat conftest.err >&5
21790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21791 (exit $ac_status); } &&
21792 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21794 (eval $ac_try) 2>&5
21795 ac_status=$?
21796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21797 (exit $ac_status); }; } &&
21798 { ac_try='test -s conftest.$ac_objext'
21799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21800 (eval $ac_try) 2>&5
21801 ac_status=$?
21802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21803 (exit $ac_status); }; }; then
21804 ac_header_compiler=yes
21805 else
21806 echo "$as_me: failed program was:" >&5
21807 sed 's/^/| /' conftest.$ac_ext >&5
21809 ac_header_compiler=no
21811 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21812 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21813 echo "${ECHO_T}$ac_header_compiler" >&6
21815 # Is the header present?
21816 echo "$as_me:$LINENO: checking $ac_header presence" >&5
21817 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21818 cat >conftest.$ac_ext <<_ACEOF
21819 /* confdefs.h. */
21820 _ACEOF
21821 cat confdefs.h >>conftest.$ac_ext
21822 cat >>conftest.$ac_ext <<_ACEOF
21823 /* end confdefs.h. */
21824 #include <$ac_header>
21825 _ACEOF
21826 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21827 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21828 ac_status=$?
21829 grep -v '^ *+' conftest.er1 >conftest.err
21830 rm -f conftest.er1
21831 cat conftest.err >&5
21832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21833 (exit $ac_status); } >/dev/null; then
21834 if test -s conftest.err; then
21835 ac_cpp_err=$ac_c_preproc_warn_flag
21836 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21837 else
21838 ac_cpp_err=
21840 else
21841 ac_cpp_err=yes
21843 if test -z "$ac_cpp_err"; then
21844 ac_header_preproc=yes
21845 else
21846 echo "$as_me: failed program was:" >&5
21847 sed 's/^/| /' conftest.$ac_ext >&5
21849 ac_header_preproc=no
21851 rm -f conftest.err conftest.$ac_ext
21852 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21853 echo "${ECHO_T}$ac_header_preproc" >&6
21855 # So? What about this header?
21856 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21857 yes:no: )
21858 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21859 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21860 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21861 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21862 ac_header_preproc=yes
21864 no:yes:* )
21865 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21866 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21867 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21868 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21869 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21870 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21871 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21872 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21873 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21874 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21875 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21876 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21878 cat <<\_ASBOX
21879 ## ------------------------------------------ ##
21880 ## Report this to the AC_PACKAGE_NAME lists. ##
21881 ## ------------------------------------------ ##
21882 _ASBOX
21884 sed "s/^/$as_me: WARNING: /" >&2
21886 esac
21887 echo "$as_me:$LINENO: checking for $ac_header" >&5
21888 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21889 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21890 echo $ECHO_N "(cached) $ECHO_C" >&6
21891 else
21892 eval "$as_ac_Header=\$ac_header_preproc"
21894 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21895 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21898 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21899 cat >>confdefs.h <<_ACEOF
21900 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21901 _ACEOF
21905 done
21909 for ac_func in fork vfork
21911 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21912 echo "$as_me:$LINENO: checking for $ac_func" >&5
21913 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21914 if eval "test \"\${$as_ac_var+set}\" = set"; then
21915 echo $ECHO_N "(cached) $ECHO_C" >&6
21916 else
21917 cat >conftest.$ac_ext <<_ACEOF
21918 /* confdefs.h. */
21919 _ACEOF
21920 cat confdefs.h >>conftest.$ac_ext
21921 cat >>conftest.$ac_ext <<_ACEOF
21922 /* end confdefs.h. */
21923 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21924 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21925 #define $ac_func innocuous_$ac_func
21927 /* System header to define __stub macros and hopefully few prototypes,
21928 which can conflict with char $ac_func (); below.
21929 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21930 <limits.h> exists even on freestanding compilers. */
21932 #ifdef __STDC__
21933 # include <limits.h>
21934 #else
21935 # include <assert.h>
21936 #endif
21938 #undef $ac_func
21940 /* Override any gcc2 internal prototype to avoid an error. */
21941 #ifdef __cplusplus
21942 extern "C"
21944 #endif
21945 /* We use char because int might match the return type of a gcc2
21946 builtin and then its argument prototype would still apply. */
21947 char $ac_func ();
21948 /* The GNU C library defines this for functions which it implements
21949 to always fail with ENOSYS. Some functions are actually named
21950 something starting with __ and the normal name is an alias. */
21951 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21952 choke me
21953 #else
21954 char (*f) () = $ac_func;
21955 #endif
21956 #ifdef __cplusplus
21958 #endif
21961 main ()
21963 return f != $ac_func;
21965 return 0;
21967 _ACEOF
21968 rm -f conftest.$ac_objext conftest$ac_exeext
21969 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21970 (eval $ac_link) 2>conftest.er1
21971 ac_status=$?
21972 grep -v '^ *+' conftest.er1 >conftest.err
21973 rm -f conftest.er1
21974 cat conftest.err >&5
21975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21976 (exit $ac_status); } &&
21977 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21979 (eval $ac_try) 2>&5
21980 ac_status=$?
21981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21982 (exit $ac_status); }; } &&
21983 { ac_try='test -s conftest$ac_exeext'
21984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21985 (eval $ac_try) 2>&5
21986 ac_status=$?
21987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21988 (exit $ac_status); }; }; then
21989 eval "$as_ac_var=yes"
21990 else
21991 echo "$as_me: failed program was:" >&5
21992 sed 's/^/| /' conftest.$ac_ext >&5
21994 eval "$as_ac_var=no"
21996 rm -f conftest.err conftest.$ac_objext \
21997 conftest$ac_exeext conftest.$ac_ext
21999 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22000 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22001 if test `eval echo '${'$as_ac_var'}'` = yes; then
22002 cat >>confdefs.h <<_ACEOF
22003 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22004 _ACEOF
22007 done
22009 if test "x$ac_cv_func_fork" = xyes; then
22010 echo "$as_me:$LINENO: checking for working fork" >&5
22011 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
22012 if test "${ac_cv_func_fork_works+set}" = set; then
22013 echo $ECHO_N "(cached) $ECHO_C" >&6
22014 else
22015 if test "$cross_compiling" = yes; then
22016 ac_cv_func_fork_works=cross
22017 else
22018 cat >conftest.$ac_ext <<_ACEOF
22019 /* confdefs.h. */
22020 _ACEOF
22021 cat confdefs.h >>conftest.$ac_ext
22022 cat >>conftest.$ac_ext <<_ACEOF
22023 /* end confdefs.h. */
22024 $ac_includes_default
22026 main ()
22029 /* By Ruediger Kuhlmann. */
22030 if (fork() < 0)
22031 exit (1);
22032 exit (0);
22035 return 0;
22037 _ACEOF
22038 rm -f conftest$ac_exeext
22039 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22040 (eval $ac_link) 2>&5
22041 ac_status=$?
22042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22043 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22045 (eval $ac_try) 2>&5
22046 ac_status=$?
22047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22048 (exit $ac_status); }; }; then
22049 ac_cv_func_fork_works=yes
22050 else
22051 echo "$as_me: program exited with status $ac_status" >&5
22052 echo "$as_me: failed program was:" >&5
22053 sed 's/^/| /' conftest.$ac_ext >&5
22055 ( exit $ac_status )
22056 ac_cv_func_fork_works=no
22058 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22061 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
22062 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
22064 else
22065 ac_cv_func_fork_works=$ac_cv_func_fork
22067 if test "x$ac_cv_func_fork_works" = xcross; then
22068 case $host in
22069 *-*-amigaos* | *-*-msdosdjgpp*)
22070 # Override, as these systems have only a dummy fork() stub
22071 ac_cv_func_fork_works=no
22074 ac_cv_func_fork_works=yes
22076 esac
22077 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
22078 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
22080 ac_cv_func_vfork_works=$ac_cv_func_vfork
22081 if test "x$ac_cv_func_vfork" = xyes; then
22082 echo "$as_me:$LINENO: checking for working vfork" >&5
22083 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
22084 if test "${ac_cv_func_vfork_works+set}" = set; then
22085 echo $ECHO_N "(cached) $ECHO_C" >&6
22086 else
22087 if test "$cross_compiling" = yes; then
22088 ac_cv_func_vfork_works=cross
22089 else
22090 cat >conftest.$ac_ext <<_ACEOF
22091 /* confdefs.h. */
22092 _ACEOF
22093 cat confdefs.h >>conftest.$ac_ext
22094 cat >>conftest.$ac_ext <<_ACEOF
22095 /* end confdefs.h. */
22096 /* Thanks to Paul Eggert for this test. */
22097 #include <stdio.h>
22098 #include <stdlib.h>
22099 #include <sys/types.h>
22100 #include <sys/stat.h>
22101 #include <sys/wait.h>
22102 #if HAVE_UNISTD_H
22103 # include <unistd.h>
22104 #endif
22105 #if HAVE_VFORK_H
22106 # include <vfork.h>
22107 #endif
22108 /* On some sparc systems, changes by the child to local and incoming
22109 argument registers are propagated back to the parent. The compiler
22110 is told about this with #include <vfork.h>, but some compilers
22111 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
22112 static variable whose address is put into a register that is
22113 clobbered by the vfork. */
22114 static void
22115 #ifdef __cplusplus
22116 sparc_address_test (int arg)
22117 # else
22118 sparc_address_test (arg) int arg;
22119 #endif
22121 static pid_t child;
22122 if (!child) {
22123 child = vfork ();
22124 if (child < 0) {
22125 perror ("vfork");
22126 _exit(2);
22128 if (!child) {
22129 arg = getpid();
22130 write(-1, "", 0);
22131 _exit (arg);
22137 main ()
22139 pid_t parent = getpid ();
22140 pid_t child;
22142 sparc_address_test (0);
22144 child = vfork ();
22146 if (child == 0) {
22147 /* Here is another test for sparc vfork register problems. This
22148 test uses lots of local variables, at least as many local
22149 variables as main has allocated so far including compiler
22150 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
22151 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
22152 reuse the register of parent for one of the local variables,
22153 since it will think that parent can't possibly be used any more
22154 in this routine. Assigning to the local variable will thus
22155 munge parent in the parent process. */
22156 pid_t
22157 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
22158 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
22159 /* Convince the compiler that p..p7 are live; otherwise, it might
22160 use the same hardware register for all 8 local variables. */
22161 if (p != p1 || p != p2 || p != p3 || p != p4
22162 || p != p5 || p != p6 || p != p7)
22163 _exit(1);
22165 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
22166 from child file descriptors. If the child closes a descriptor
22167 before it execs or exits, this munges the parent's descriptor
22168 as well. Test for this by closing stdout in the child. */
22169 _exit(close(fileno(stdout)) != 0);
22170 } else {
22171 int status;
22172 struct stat st;
22174 while (wait(&status) != child)
22176 exit(
22177 /* Was there some problem with vforking? */
22178 child < 0
22180 /* Did the child fail? (This shouldn't happen.) */
22181 || status
22183 /* Did the vfork/compiler bug occur? */
22184 || parent != getpid()
22186 /* Did the file descriptor bug occur? */
22187 || fstat(fileno(stdout), &st) != 0
22191 _ACEOF
22192 rm -f conftest$ac_exeext
22193 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22194 (eval $ac_link) 2>&5
22195 ac_status=$?
22196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22197 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22199 (eval $ac_try) 2>&5
22200 ac_status=$?
22201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22202 (exit $ac_status); }; }; then
22203 ac_cv_func_vfork_works=yes
22204 else
22205 echo "$as_me: program exited with status $ac_status" >&5
22206 echo "$as_me: failed program was:" >&5
22207 sed 's/^/| /' conftest.$ac_ext >&5
22209 ( exit $ac_status )
22210 ac_cv_func_vfork_works=no
22212 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22215 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
22216 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
22219 if test "x$ac_cv_func_fork_works" = xcross; then
22220 ac_cv_func_vfork_works=$ac_cv_func_vfork
22221 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
22222 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
22225 if test "x$ac_cv_func_vfork_works" = xyes; then
22227 cat >>confdefs.h <<\_ACEOF
22228 #define HAVE_WORKING_VFORK 1
22229 _ACEOF
22231 else
22233 cat >>confdefs.h <<\_ACEOF
22234 #define vfork fork
22235 _ACEOF
22238 if test "x$ac_cv_func_fork_works" = xyes; then
22240 cat >>confdefs.h <<\_ACEOF
22241 #define HAVE_WORKING_FORK 1
22242 _ACEOF
22247 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
22248 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
22249 if test "${emacs_cv_langinfo_codeset+set}" = set; then
22250 echo $ECHO_N "(cached) $ECHO_C" >&6
22251 else
22252 cat >conftest.$ac_ext <<_ACEOF
22253 /* confdefs.h. */
22254 _ACEOF
22255 cat confdefs.h >>conftest.$ac_ext
22256 cat >>conftest.$ac_ext <<_ACEOF
22257 /* end confdefs.h. */
22258 #include <langinfo.h>
22260 main ()
22262 char* cs = nl_langinfo(CODESET);
22264 return 0;
22266 _ACEOF
22267 rm -f conftest.$ac_objext conftest$ac_exeext
22268 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22269 (eval $ac_link) 2>conftest.er1
22270 ac_status=$?
22271 grep -v '^ *+' conftest.er1 >conftest.err
22272 rm -f conftest.er1
22273 cat conftest.err >&5
22274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22275 (exit $ac_status); } &&
22276 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22278 (eval $ac_try) 2>&5
22279 ac_status=$?
22280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22281 (exit $ac_status); }; } &&
22282 { ac_try='test -s conftest$ac_exeext'
22283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22284 (eval $ac_try) 2>&5
22285 ac_status=$?
22286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22287 (exit $ac_status); }; }; then
22288 emacs_cv_langinfo_codeset=yes
22289 else
22290 echo "$as_me: failed program was:" >&5
22291 sed 's/^/| /' conftest.$ac_ext >&5
22293 emacs_cv_langinfo_codeset=no
22295 rm -f conftest.err conftest.$ac_objext \
22296 conftest$ac_exeext conftest.$ac_ext
22299 echo "$as_me:$LINENO: result: $emacs_cv_langinfo_codeset" >&5
22300 echo "${ECHO_T}$emacs_cv_langinfo_codeset" >&6
22301 if test $emacs_cv_langinfo_codeset = yes; then
22303 cat >>confdefs.h <<\_ACEOF
22304 #define HAVE_LANGINFO_CODESET 1
22305 _ACEOF
22309 echo "$as_me:$LINENO: checking for size_t" >&5
22310 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
22311 if test "${ac_cv_type_size_t+set}" = set; then
22312 echo $ECHO_N "(cached) $ECHO_C" >&6
22313 else
22314 cat >conftest.$ac_ext <<_ACEOF
22315 /* confdefs.h. */
22316 _ACEOF
22317 cat confdefs.h >>conftest.$ac_ext
22318 cat >>conftest.$ac_ext <<_ACEOF
22319 /* end confdefs.h. */
22320 $ac_includes_default
22322 main ()
22324 if ((size_t *) 0)
22325 return 0;
22326 if (sizeof (size_t))
22327 return 0;
22329 return 0;
22331 _ACEOF
22332 rm -f conftest.$ac_objext
22333 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22334 (eval $ac_compile) 2>conftest.er1
22335 ac_status=$?
22336 grep -v '^ *+' conftest.er1 >conftest.err
22337 rm -f conftest.er1
22338 cat conftest.err >&5
22339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22340 (exit $ac_status); } &&
22341 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22343 (eval $ac_try) 2>&5
22344 ac_status=$?
22345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22346 (exit $ac_status); }; } &&
22347 { ac_try='test -s conftest.$ac_objext'
22348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22349 (eval $ac_try) 2>&5
22350 ac_status=$?
22351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22352 (exit $ac_status); }; }; then
22353 ac_cv_type_size_t=yes
22354 else
22355 echo "$as_me: failed program was:" >&5
22356 sed 's/^/| /' conftest.$ac_ext >&5
22358 ac_cv_type_size_t=no
22360 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22362 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
22363 echo "${ECHO_T}$ac_cv_type_size_t" >&6
22364 if test $ac_cv_type_size_t = yes; then
22366 cat >>confdefs.h <<_ACEOF
22367 #define HAVE_SIZE_T 1
22368 _ACEOF
22374 echo "$as_me:$LINENO: checking for mbstate_t" >&5
22375 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
22376 if test "${ac_cv_type_mbstate_t+set}" = set; then
22377 echo $ECHO_N "(cached) $ECHO_C" >&6
22378 else
22379 cat >conftest.$ac_ext <<_ACEOF
22380 /* confdefs.h. */
22381 _ACEOF
22382 cat confdefs.h >>conftest.$ac_ext
22383 cat >>conftest.$ac_ext <<_ACEOF
22384 /* end confdefs.h. */
22385 $ac_includes_default
22386 # include <wchar.h>
22388 main ()
22390 mbstate_t x; return sizeof x;
22392 return 0;
22394 _ACEOF
22395 rm -f conftest.$ac_objext
22396 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22397 (eval $ac_compile) 2>conftest.er1
22398 ac_status=$?
22399 grep -v '^ *+' conftest.er1 >conftest.err
22400 rm -f conftest.er1
22401 cat conftest.err >&5
22402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22403 (exit $ac_status); } &&
22404 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22406 (eval $ac_try) 2>&5
22407 ac_status=$?
22408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22409 (exit $ac_status); }; } &&
22410 { ac_try='test -s conftest.$ac_objext'
22411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22412 (eval $ac_try) 2>&5
22413 ac_status=$?
22414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22415 (exit $ac_status); }; }; then
22416 ac_cv_type_mbstate_t=yes
22417 else
22418 echo "$as_me: failed program was:" >&5
22419 sed 's/^/| /' conftest.$ac_ext >&5
22421 ac_cv_type_mbstate_t=no
22423 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22425 echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
22426 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6
22427 if test $ac_cv_type_mbstate_t = yes; then
22429 cat >>confdefs.h <<\_ACEOF
22430 #define HAVE_MBSTATE_T 1
22431 _ACEOF
22433 else
22435 cat >>confdefs.h <<\_ACEOF
22436 #define mbstate_t int
22437 _ACEOF
22441 echo "$as_me:$LINENO: checking for C restrict keyword" >&5
22442 echo $ECHO_N "checking for C restrict keyword... $ECHO_C" >&6
22443 if test "${emacs_cv_c_restrict+set}" = set; then
22444 echo $ECHO_N "(cached) $ECHO_C" >&6
22445 else
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 void fred (int *restrict x);
22454 main ()
22458 return 0;
22460 _ACEOF
22461 rm -f conftest.$ac_objext
22462 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22463 (eval $ac_compile) 2>conftest.er1
22464 ac_status=$?
22465 grep -v '^ *+' conftest.er1 >conftest.err
22466 rm -f conftest.er1
22467 cat conftest.err >&5
22468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22469 (exit $ac_status); } &&
22470 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22472 (eval $ac_try) 2>&5
22473 ac_status=$?
22474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22475 (exit $ac_status); }; } &&
22476 { ac_try='test -s conftest.$ac_objext'
22477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22478 (eval $ac_try) 2>&5
22479 ac_status=$?
22480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22481 (exit $ac_status); }; }; then
22482 emacs_cv_c_restrict=yes
22483 else
22484 echo "$as_me: failed program was:" >&5
22485 sed 's/^/| /' conftest.$ac_ext >&5
22487 cat >conftest.$ac_ext <<_ACEOF
22488 /* confdefs.h. */
22489 _ACEOF
22490 cat confdefs.h >>conftest.$ac_ext
22491 cat >>conftest.$ac_ext <<_ACEOF
22492 /* end confdefs.h. */
22493 void fred (int *__restrict x);
22495 main ()
22499 return 0;
22501 _ACEOF
22502 rm -f conftest.$ac_objext
22503 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22504 (eval $ac_compile) 2>conftest.er1
22505 ac_status=$?
22506 grep -v '^ *+' conftest.er1 >conftest.err
22507 rm -f conftest.er1
22508 cat conftest.err >&5
22509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22510 (exit $ac_status); } &&
22511 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22513 (eval $ac_try) 2>&5
22514 ac_status=$?
22515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22516 (exit $ac_status); }; } &&
22517 { ac_try='test -s conftest.$ac_objext'
22518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22519 (eval $ac_try) 2>&5
22520 ac_status=$?
22521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22522 (exit $ac_status); }; }; then
22523 emacs_cv_c_restrict=__restrict
22524 else
22525 echo "$as_me: failed program was:" >&5
22526 sed 's/^/| /' conftest.$ac_ext >&5
22528 emacs_cv_c_restrict=no
22530 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22532 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22534 echo "$as_me:$LINENO: result: $emacs_cv_c_restrict" >&5
22535 echo "${ECHO_T}$emacs_cv_c_restrict" >&6
22536 case "$emacs_cv_c_restrict" in
22537 yes) emacs_restrict=restrict;;
22538 no) emacs_restrict="";;
22539 *) emacs_restrict="$emacs_cv_c_restrict";;
22540 esac
22541 if test "$emacs_restrict" != __restrict; then
22543 cat >>confdefs.h <<_ACEOF
22544 #define __restrict $emacs_restrict
22545 _ACEOF
22549 echo "$as_me:$LINENO: checking for C restricted array declarations" >&5
22550 echo $ECHO_N "checking for C restricted array declarations... $ECHO_C" >&6
22551 if test "${emacs_cv_c_restrict_arr+set}" = set; then
22552 echo $ECHO_N "(cached) $ECHO_C" >&6
22553 else
22554 cat >conftest.$ac_ext <<_ACEOF
22555 /* confdefs.h. */
22556 _ACEOF
22557 cat confdefs.h >>conftest.$ac_ext
22558 cat >>conftest.$ac_ext <<_ACEOF
22559 /* end confdefs.h. */
22560 void fred (int x[__restrict]);
22562 main ()
22566 return 0;
22568 _ACEOF
22569 rm -f conftest.$ac_objext
22570 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22571 (eval $ac_compile) 2>conftest.er1
22572 ac_status=$?
22573 grep -v '^ *+' conftest.er1 >conftest.err
22574 rm -f conftest.er1
22575 cat conftest.err >&5
22576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22577 (exit $ac_status); } &&
22578 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22580 (eval $ac_try) 2>&5
22581 ac_status=$?
22582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22583 (exit $ac_status); }; } &&
22584 { ac_try='test -s conftest.$ac_objext'
22585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22586 (eval $ac_try) 2>&5
22587 ac_status=$?
22588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22589 (exit $ac_status); }; }; then
22590 emacs_cv_c_restrict_arr=yes
22591 else
22592 echo "$as_me: failed program was:" >&5
22593 sed 's/^/| /' conftest.$ac_ext >&5
22595 emacs_cv_c_restrict_arr=no
22597 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22599 echo "$as_me:$LINENO: result: $emacs_cv_c_restrict_arr" >&5
22600 echo "${ECHO_T}$emacs_cv_c_restrict_arr" >&6
22601 if test "$emacs_cv_c_restrict_arr" = yes; then
22603 cat >>confdefs.h <<\_ACEOF
22604 #define __restrict_arr __restrict
22605 _ACEOF
22611 # Set up the CFLAGS for real compilation, so we can substitute it.
22612 CFLAGS="$REAL_CFLAGS"
22613 CPPFLAGS="$REAL_CPPFLAGS"
22615 #### Find out which version of Emacs this is.
22616 version=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
22617 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`
22618 if test x"${version}" = x; then
22619 { { echo "$as_me:$LINENO: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&5
22620 echo "$as_me: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&2;}
22621 { (exit 1); exit 1; }; }
22624 ### Specify what sort of things we'll be editing into Makefile and config.h.
22625 ### Use configuration here uncanonicalized to avoid exceeding size limits.
22661 cat >>confdefs.h <<_ACEOF
22662 #define EMACS_CONFIGURATION "${canonical}"
22663 _ACEOF
22666 cat >>confdefs.h <<_ACEOF
22667 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
22668 _ACEOF
22671 cat >>confdefs.h <<_ACEOF
22672 #define config_machfile "${machfile}"
22673 _ACEOF
22676 cat >>confdefs.h <<_ACEOF
22677 #define config_opsysfile "${opsysfile}"
22678 _ACEOF
22681 cat >>confdefs.h <<_ACEOF
22682 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
22683 _ACEOF
22686 cat >>confdefs.h <<_ACEOF
22687 #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX}
22688 _ACEOF
22691 cat >>confdefs.h <<_ACEOF
22692 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
22693 _ACEOF
22696 cat >>confdefs.h <<_ACEOF
22697 #define UNEXEC_SRC ${UNEXEC_SRC}
22698 _ACEOF
22701 if test "${HAVE_X_WINDOWS}" = "yes" ; then
22703 cat >>confdefs.h <<\_ACEOF
22704 #define HAVE_X_WINDOWS 1
22705 _ACEOF
22708 if test "${USE_X_TOOLKIT}" != "none" ; then
22710 cat >>confdefs.h <<\_ACEOF
22711 #define USE_X_TOOLKIT 1
22712 _ACEOF
22715 if test "${HAVE_X11}" = "yes" ; then
22717 cat >>confdefs.h <<\_ACEOF
22718 #define HAVE_X11 1
22719 _ACEOF
22722 if test "${HAVE_XFREE386}" = "yes" ; then
22724 cat >>confdefs.h <<\_ACEOF
22725 #define HAVE_XFREE386 1
22726 _ACEOF
22729 if test "${HAVE_MENUS}" = "yes" ; then
22731 cat >>confdefs.h <<\_ACEOF
22732 #define HAVE_MENUS 1
22733 _ACEOF
22736 if test "${GNU_MALLOC}" = "yes" ; then
22738 cat >>confdefs.h <<\_ACEOF
22739 #define GNU_MALLOC 1
22740 _ACEOF
22743 if test "${REL_ALLOC}" = "yes" ; then
22745 cat >>confdefs.h <<\_ACEOF
22746 #define REL_ALLOC 1
22747 _ACEOF
22755 #### Report on what we decided to do.
22756 #### Report GTK as a toolkit, even if it doesn't use Xt.
22757 #### It makes printing result more understandable as using GTK sets
22758 #### toolkit_scroll_bars to yes by default.
22759 if test "${HAVE_GTK}" = "yes"; then
22760 USE_X_TOOLKIT=GTK
22763 echo "
22764 Configured for \`${canonical}'.
22766 Where should the build process find the source code? ${srcdir}
22767 What operating system and machine description files should Emacs use?
22768 \`${opsysfile}' and \`${machfile}'
22769 What compiler should emacs be built with? ${CC} ${CFLAGS}
22770 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
22771 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
22772 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
22773 What window system should Emacs use? ${window_system}
22774 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
22776 if test -n "${x_includes}"; then
22777 echo " Where do we find X Windows header files? ${x_includes}"
22778 else
22779 echo " Where do we find X Windows header files? Standard dirs"
22781 if test -n "${x_libraries}"; then
22782 echo " Where do we find X Windows libraries? ${x_libraries}"
22783 else
22784 echo " Where do we find X Windows libraries? Standard dirs"
22787 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
22788 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
22789 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
22790 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
22791 echo " Does Emacs use -lungif? ${HAVE_GIF}"
22792 echo " Does Emacs use -lpng? ${HAVE_PNG}"
22793 echo " Does Emacs use X toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
22794 echo
22796 if test $USE_XASSERTS = yes; then
22797 echo " Compiling with asserts turned on."
22798 CPPFLAGS="$CPPFLAGS -DXASSERTS=1"
22799 echo
22804 # Remove any trailing slashes in these variables.
22805 test "${prefix}" != NONE &&
22806 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
22807 test "${exec_prefix}" != NONE &&
22808 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
22810 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
22811 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
22812 ## from Makefile.c can correctly provide the arg `-traditional' to the
22813 ## C preprocessor.
22815 cat >conftest.$ac_ext <<_ACEOF
22816 /* confdefs.h. */
22817 _ACEOF
22818 cat confdefs.h >>conftest.$ac_ext
22819 cat >>conftest.$ac_ext <<_ACEOF
22820 /* end confdefs.h. */
22821 yes..yes
22822 _ACEOF
22823 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22824 $EGREP "yes..yes" >/dev/null 2>&1; then
22825 CPP_NEED_TRADITIONAL=no
22826 else
22827 CPP_NEED_TRADITIONAL=yes
22829 rm -f conftest*
22832 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"
22833 ac_config_commands="$ac_config_commands default"
22834 cat >confcache <<\_ACEOF
22835 # This file is a shell script that caches the results of configure
22836 # tests run on this system so they can be shared between configure
22837 # scripts and configure runs, see configure's option --config-cache.
22838 # It is not useful on other systems. If it contains results you don't
22839 # want to keep, you may remove or edit it.
22841 # config.status only pays attention to the cache file if you give it
22842 # the --recheck option to rerun configure.
22844 # `ac_cv_env_foo' variables (set or unset) will be overridden when
22845 # loading this file, other *unset* `ac_cv_foo' will be assigned the
22846 # following values.
22848 _ACEOF
22850 # The following way of writing the cache mishandles newlines in values,
22851 # but we know of no workaround that is simple, portable, and efficient.
22852 # So, don't put newlines in cache variables' values.
22853 # Ultrix sh set writes to stderr and can't be redirected directly,
22854 # and sets the high bit in the cache file unless we assign to the vars.
22856 (set) 2>&1 |
22857 case `(ac_space=' '; set | grep ac_space) 2>&1` in
22858 *ac_space=\ *)
22859 # `set' does not quote correctly, so add quotes (double-quote
22860 # substitution turns \\\\ into \\, and sed turns \\ into \).
22861 sed -n \
22862 "s/'/'\\\\''/g;
22863 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22866 # `set' quotes correctly as required by POSIX, so do not add quotes.
22867 sed -n \
22868 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
22870 esac;
22872 sed '
22873 t clear
22874 : clear
22875 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22876 t end
22877 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22878 : end' >>confcache
22879 if diff $cache_file confcache >/dev/null 2>&1; then :; else
22880 if test -w $cache_file; then
22881 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
22882 cat confcache >$cache_file
22883 else
22884 echo "not updating unwritable cache $cache_file"
22887 rm -f confcache
22889 test "x$prefix" = xNONE && prefix=$ac_default_prefix
22890 # Let make expand exec_prefix.
22891 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22893 # VPATH may cause trouble with some makes, so we remove $(srcdir),
22894 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22895 # trailing colons and then remove the whole line if VPATH becomes empty
22896 # (actually we leave an empty line to preserve line numbers).
22897 if test "x$srcdir" = x.; then
22898 ac_vpsub='/^[ ]*VPATH[ ]*=/{
22899 s/:*\$(srcdir):*/:/;
22900 s/:*\${srcdir}:*/:/;
22901 s/:*@srcdir@:*/:/;
22902 s/^\([^=]*=[ ]*\):*/\1/;
22903 s/:*$//;
22904 s/^[^=]*=[ ]*$//;
22908 DEFS=-DHAVE_CONFIG_H
22910 ac_libobjs=
22911 ac_ltlibobjs=
22912 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22913 # 1. Remove the extension, and $U if already installed.
22914 ac_i=`echo "$ac_i" |
22915 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
22916 # 2. Add them.
22917 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
22918 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
22919 done
22920 LIBOBJS=$ac_libobjs
22922 LTLIBOBJS=$ac_ltlibobjs
22926 : ${CONFIG_STATUS=./config.status}
22927 ac_clean_files_save=$ac_clean_files
22928 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22929 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22930 echo "$as_me: creating $CONFIG_STATUS" >&6;}
22931 cat >$CONFIG_STATUS <<_ACEOF
22932 #! $SHELL
22933 # Generated by $as_me.
22934 # Run this file to recreate the current configuration.
22935 # Compiler output produced by configure, useful for debugging
22936 # configure, is in config.log if it exists.
22938 debug=false
22939 ac_cs_recheck=false
22940 ac_cs_silent=false
22941 SHELL=\${CONFIG_SHELL-$SHELL}
22942 _ACEOF
22944 cat >>$CONFIG_STATUS <<\_ACEOF
22945 ## --------------------- ##
22946 ## M4sh Initialization. ##
22947 ## --------------------- ##
22949 # Be Bourne compatible
22950 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22951 emulate sh
22952 NULLCMD=:
22953 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22954 # is contrary to our usage. Disable this feature.
22955 alias -g '${1+"$@"}'='"$@"'
22956 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22957 set -o posix
22959 DUALCASE=1; export DUALCASE # for MKS sh
22961 # Support unset when possible.
22962 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
22963 as_unset=unset
22964 else
22965 as_unset=false
22969 # Work around bugs in pre-3.0 UWIN ksh.
22970 $as_unset ENV MAIL MAILPATH
22971 PS1='$ '
22972 PS2='> '
22973 PS4='+ '
22975 # NLS nuisances.
22976 for as_var in \
22977 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
22978 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
22979 LC_TELEPHONE LC_TIME
22981 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
22982 eval $as_var=C; export $as_var
22983 else
22984 $as_unset $as_var
22986 done
22988 # Required to use basename.
22989 if expr a : '\(a\)' >/dev/null 2>&1; then
22990 as_expr=expr
22991 else
22992 as_expr=false
22995 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
22996 as_basename=basename
22997 else
22998 as_basename=false
23002 # Name of the executable.
23003 as_me=`$as_basename "$0" ||
23004 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23005 X"$0" : 'X\(//\)$' \| \
23006 X"$0" : 'X\(/\)$' \| \
23007 . : '\(.\)' 2>/dev/null ||
23008 echo X/"$0" |
23009 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
23010 /^X\/\(\/\/\)$/{ s//\1/; q; }
23011 /^X\/\(\/\).*/{ s//\1/; q; }
23012 s/.*/./; q'`
23015 # PATH needs CR, and LINENO needs CR and PATH.
23016 # Avoid depending upon Character Ranges.
23017 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
23018 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23019 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
23020 as_cr_digits='0123456789'
23021 as_cr_alnum=$as_cr_Letters$as_cr_digits
23023 # The user is always right.
23024 if test "${PATH_SEPARATOR+set}" != set; then
23025 echo "#! /bin/sh" >conf$$.sh
23026 echo "exit 0" >>conf$$.sh
23027 chmod +x conf$$.sh
23028 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
23029 PATH_SEPARATOR=';'
23030 else
23031 PATH_SEPARATOR=:
23033 rm -f conf$$.sh
23037 as_lineno_1=$LINENO
23038 as_lineno_2=$LINENO
23039 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
23040 test "x$as_lineno_1" != "x$as_lineno_2" &&
23041 test "x$as_lineno_3" = "x$as_lineno_2" || {
23042 # Find who we are. Look in the path if we contain no path at all
23043 # relative or not.
23044 case $0 in
23045 *[\\/]* ) as_myself=$0 ;;
23046 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23047 for as_dir in $PATH
23049 IFS=$as_save_IFS
23050 test -z "$as_dir" && as_dir=.
23051 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
23052 done
23055 esac
23056 # We did not find ourselves, most probably we were run as `sh COMMAND'
23057 # in which case we are not to be found in the path.
23058 if test "x$as_myself" = x; then
23059 as_myself=$0
23061 if test ! -f "$as_myself"; then
23062 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
23063 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
23064 { (exit 1); exit 1; }; }
23066 case $CONFIG_SHELL in
23068 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23069 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
23071 IFS=$as_save_IFS
23072 test -z "$as_dir" && as_dir=.
23073 for as_base in sh bash ksh sh5; do
23074 case $as_dir in
23076 if ("$as_dir/$as_base" -c '
23077 as_lineno_1=$LINENO
23078 as_lineno_2=$LINENO
23079 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
23080 test "x$as_lineno_1" != "x$as_lineno_2" &&
23081 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
23082 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
23083 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
23084 CONFIG_SHELL=$as_dir/$as_base
23085 export CONFIG_SHELL
23086 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
23087 fi;;
23088 esac
23089 done
23090 done
23092 esac
23094 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
23095 # uniformly replaced by the line number. The first 'sed' inserts a
23096 # line-number line before each line; the second 'sed' does the real
23097 # work. The second script uses 'N' to pair each line-number line
23098 # with the numbered line, and appends trailing '-' during
23099 # substitution so that $LINENO is not a special case at line end.
23100 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
23101 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
23102 sed '=' <$as_myself |
23103 sed '
23105 s,$,-,
23106 : loop
23107 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
23108 t loop
23109 s,-$,,
23110 s,^['$as_cr_digits']*\n,,
23111 ' >$as_me.lineno &&
23112 chmod +x $as_me.lineno ||
23113 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
23114 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
23115 { (exit 1); exit 1; }; }
23117 # Don't try to exec as it changes $[0], causing all sort of problems
23118 # (the dirname of $[0] is not the place where we might find the
23119 # original and so on. Autoconf is especially sensible to this).
23120 . ./$as_me.lineno
23121 # Exit status is that of the last command.
23122 exit
23126 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
23127 *c*,-n*) ECHO_N= ECHO_C='
23128 ' ECHO_T=' ' ;;
23129 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
23130 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
23131 esac
23133 if expr a : '\(a\)' >/dev/null 2>&1; then
23134 as_expr=expr
23135 else
23136 as_expr=false
23139 rm -f conf$$ conf$$.exe conf$$.file
23140 echo >conf$$.file
23141 if ln -s conf$$.file conf$$ 2>/dev/null; then
23142 # We could just check for DJGPP; but this test a) works b) is more generic
23143 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
23144 if test -f conf$$.exe; then
23145 # Don't use ln at all; we don't have any links
23146 as_ln_s='cp -p'
23147 else
23148 as_ln_s='ln -s'
23150 elif ln conf$$.file conf$$ 2>/dev/null; then
23151 as_ln_s=ln
23152 else
23153 as_ln_s='cp -p'
23155 rm -f conf$$ conf$$.exe conf$$.file
23157 if mkdir -p . 2>/dev/null; then
23158 as_mkdir_p=:
23159 else
23160 test -d ./-p && rmdir ./-p
23161 as_mkdir_p=false
23164 as_executable_p="test -f"
23166 # Sed expression to map a string onto a valid CPP name.
23167 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
23169 # Sed expression to map a string onto a valid variable name.
23170 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
23173 # IFS
23174 # We need space, tab and new line, in precisely that order.
23175 as_nl='
23177 IFS=" $as_nl"
23179 # CDPATH.
23180 $as_unset CDPATH
23182 exec 6>&1
23184 # Open the log real soon, to keep \$[0] and so on meaningful, and to
23185 # report actual input values of CONFIG_FILES etc. instead of their
23186 # values after options handling. Logging --version etc. is OK.
23187 exec 5>>config.log
23189 echo
23190 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23191 ## Running $as_me. ##
23192 _ASBOX
23193 } >&5
23194 cat >&5 <<_CSEOF
23196 This file was extended by $as_me, which was
23197 generated by GNU Autoconf 2.59. Invocation command line was
23199 CONFIG_FILES = $CONFIG_FILES
23200 CONFIG_HEADERS = $CONFIG_HEADERS
23201 CONFIG_LINKS = $CONFIG_LINKS
23202 CONFIG_COMMANDS = $CONFIG_COMMANDS
23203 $ $0 $@
23205 _CSEOF
23206 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
23207 echo >&5
23208 _ACEOF
23210 # Files that config.status was made for.
23211 if test -n "$ac_config_files"; then
23212 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
23215 if test -n "$ac_config_headers"; then
23216 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
23219 if test -n "$ac_config_links"; then
23220 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
23223 if test -n "$ac_config_commands"; then
23224 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
23227 cat >>$CONFIG_STATUS <<\_ACEOF
23229 ac_cs_usage="\
23230 \`$as_me' instantiates files from templates according to the
23231 current configuration.
23233 Usage: $0 [OPTIONS] [FILE]...
23235 -h, --help print this help, then exit
23236 -V, --version print version number, then exit
23237 -q, --quiet do not print progress messages
23238 -d, --debug don't remove temporary files
23239 --recheck update $as_me by reconfiguring in the same conditions
23240 --file=FILE[:TEMPLATE]
23241 instantiate the configuration file FILE
23242 --header=FILE[:TEMPLATE]
23243 instantiate the configuration header FILE
23245 Configuration files:
23246 $config_files
23248 Configuration headers:
23249 $config_headers
23251 Configuration commands:
23252 $config_commands
23254 Report bugs to <bug-autoconf@gnu.org>."
23255 _ACEOF
23257 cat >>$CONFIG_STATUS <<_ACEOF
23258 ac_cs_version="\\
23259 config.status
23260 configured by $0, generated by GNU Autoconf 2.59,
23261 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
23263 Copyright (C) 2003 Free Software Foundation, Inc.
23264 This config.status script is free software; the Free Software Foundation
23265 gives unlimited permission to copy, distribute and modify it."
23266 srcdir=$srcdir
23267 INSTALL="$INSTALL"
23268 _ACEOF
23270 cat >>$CONFIG_STATUS <<\_ACEOF
23271 # If no file are specified by the user, then we need to provide default
23272 # value. By we need to know if files were specified by the user.
23273 ac_need_defaults=:
23274 while test $# != 0
23276 case $1 in
23277 --*=*)
23278 ac_option=`expr "x$1" : 'x\([^=]*\)='`
23279 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
23280 ac_shift=:
23283 ac_option=$1
23284 ac_optarg=$2
23285 ac_shift=shift
23287 *) # This is not an option, so the user has probably given explicit
23288 # arguments.
23289 ac_option=$1
23290 ac_need_defaults=false;;
23291 esac
23293 case $ac_option in
23294 # Handling of the options.
23295 _ACEOF
23296 cat >>$CONFIG_STATUS <<\_ACEOF
23297 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23298 ac_cs_recheck=: ;;
23299 --version | --vers* | -V )
23300 echo "$ac_cs_version"; exit 0 ;;
23301 --he | --h)
23302 # Conflict between --help and --header
23303 { { echo "$as_me:$LINENO: error: ambiguous option: $1
23304 Try \`$0 --help' for more information." >&5
23305 echo "$as_me: error: ambiguous option: $1
23306 Try \`$0 --help' for more information." >&2;}
23307 { (exit 1); exit 1; }; };;
23308 --help | --hel | -h )
23309 echo "$ac_cs_usage"; exit 0 ;;
23310 --debug | --d* | -d )
23311 debug=: ;;
23312 --file | --fil | --fi | --f )
23313 $ac_shift
23314 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
23315 ac_need_defaults=false;;
23316 --header | --heade | --head | --hea )
23317 $ac_shift
23318 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
23319 ac_need_defaults=false;;
23320 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
23321 | -silent | --silent | --silen | --sile | --sil | --si | --s)
23322 ac_cs_silent=: ;;
23324 # This is an error.
23325 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
23326 Try \`$0 --help' for more information." >&5
23327 echo "$as_me: error: unrecognized option: $1
23328 Try \`$0 --help' for more information." >&2;}
23329 { (exit 1); exit 1; }; } ;;
23331 *) ac_config_targets="$ac_config_targets $1" ;;
23333 esac
23334 shift
23335 done
23337 ac_configure_extra_args=
23339 if $ac_cs_silent; then
23340 exec 6>/dev/null
23341 ac_configure_extra_args="$ac_configure_extra_args --silent"
23344 _ACEOF
23345 cat >>$CONFIG_STATUS <<_ACEOF
23346 if \$ac_cs_recheck; then
23347 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
23348 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23351 _ACEOF
23353 cat >>$CONFIG_STATUS <<_ACEOF
23355 # INIT-COMMANDS section.
23358 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS"
23360 _ACEOF
23364 cat >>$CONFIG_STATUS <<\_ACEOF
23365 for ac_config_target in $ac_config_targets
23367 case "$ac_config_target" in
23368 # Handling of arguments.
23369 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
23370 "lib-src/Makefile.c" ) CONFIG_FILES="$CONFIG_FILES lib-src/Makefile.c:lib-src/Makefile.in" ;;
23371 "oldXMenu/Makefile" ) CONFIG_FILES="$CONFIG_FILES oldXMenu/Makefile" ;;
23372 "man/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
23373 "lwlib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lwlib/Makefile" ;;
23374 "src/Makefile.c" ) CONFIG_FILES="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;;
23375 "lisp/Makefile" ) CONFIG_FILES="$CONFIG_FILES lisp/Makefile" ;;
23376 "lispref/Makefile" ) CONFIG_FILES="$CONFIG_FILES lispref/Makefile" ;;
23377 "lispintro/Makefile" ) CONFIG_FILES="$CONFIG_FILES lispintro/Makefile" ;;
23378 "leim/Makefile" ) CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;;
23379 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
23380 "src/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:src/config.in" ;;
23381 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
23382 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
23383 { (exit 1); exit 1; }; };;
23384 esac
23385 done
23387 # If the user did not use the arguments to specify the items to instantiate,
23388 # then the envvar interface is used. Set only those that are not.
23389 # We use the long form for the default assignment because of an extremely
23390 # bizarre bug on SunOS 4.1.3.
23391 if $ac_need_defaults; then
23392 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23393 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
23394 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
23397 # Have a temporary directory for convenience. Make it in the build tree
23398 # simply because there is no reason to put it here, and in addition,
23399 # creating and moving files from /tmp can sometimes cause problems.
23400 # Create a temporary directory, and hook for its removal unless debugging.
23401 $debug ||
23403 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
23404 trap '{ (exit 1); exit 1; }' 1 2 13 15
23407 # Create a (secure) tmp directory for tmp files.
23410 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
23411 test -n "$tmp" && test -d "$tmp"
23412 } ||
23414 tmp=./confstat$$-$RANDOM
23415 (umask 077 && mkdir $tmp)
23416 } ||
23418 echo "$me: cannot create a temporary directory in ." >&2
23419 { (exit 1); exit 1; }
23422 _ACEOF
23424 cat >>$CONFIG_STATUS <<_ACEOF
23427 # CONFIG_FILES section.
23430 # No need to generate the scripts if there are no CONFIG_FILES.
23431 # This happens for instance when ./config.status config.h
23432 if test -n "\$CONFIG_FILES"; then
23433 # Protect against being on the right side of a sed subst in config.status.
23434 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
23435 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
23436 s,@SHELL@,$SHELL,;t t
23437 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
23438 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
23439 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
23440 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
23441 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
23442 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
23443 s,@exec_prefix@,$exec_prefix,;t t
23444 s,@prefix@,$prefix,;t t
23445 s,@program_transform_name@,$program_transform_name,;t t
23446 s,@bindir@,$bindir,;t t
23447 s,@sbindir@,$sbindir,;t t
23448 s,@libexecdir@,$libexecdir,;t t
23449 s,@datadir@,$datadir,;t t
23450 s,@sysconfdir@,$sysconfdir,;t t
23451 s,@sharedstatedir@,$sharedstatedir,;t t
23452 s,@localstatedir@,$localstatedir,;t t
23453 s,@libdir@,$libdir,;t t
23454 s,@includedir@,$includedir,;t t
23455 s,@oldincludedir@,$oldincludedir,;t t
23456 s,@infodir@,$infodir,;t t
23457 s,@mandir@,$mandir,;t t
23458 s,@build_alias@,$build_alias,;t t
23459 s,@host_alias@,$host_alias,;t t
23460 s,@target_alias@,$target_alias,;t t
23461 s,@DEFS@,$DEFS,;t t
23462 s,@ECHO_C@,$ECHO_C,;t t
23463 s,@ECHO_N@,$ECHO_N,;t t
23464 s,@ECHO_T@,$ECHO_T,;t t
23465 s,@LIBS@,$LIBS,;t t
23466 s,@MAINT@,$MAINT,;t t
23467 s,@build@,$build,;t t
23468 s,@build_cpu@,$build_cpu,;t t
23469 s,@build_vendor@,$build_vendor,;t t
23470 s,@build_os@,$build_os,;t t
23471 s,@host@,$host,;t t
23472 s,@host_cpu@,$host_cpu,;t t
23473 s,@host_vendor@,$host_vendor,;t t
23474 s,@host_os@,$host_os,;t t
23475 s,@CC@,$CC,;t t
23476 s,@CFLAGS@,$CFLAGS,;t t
23477 s,@LDFLAGS@,$LDFLAGS,;t t
23478 s,@CPPFLAGS@,$CPPFLAGS,;t t
23479 s,@ac_ct_CC@,$ac_ct_CC,;t t
23480 s,@EXEEXT@,$EXEEXT,;t t
23481 s,@OBJEXT@,$OBJEXT,;t t
23482 s,@CPP@,$CPP,;t t
23483 s,@EGREP@,$EGREP,;t t
23484 s,@LN_S@,$LN_S,;t t
23485 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
23486 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
23487 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
23488 s,@RANLIB@,$RANLIB,;t t
23489 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
23490 s,@INSTALL_INFO@,$INSTALL_INFO,;t t
23491 s,@GZIP_PROG@,$GZIP_PROG,;t t
23492 s,@LIBSOUND@,$LIBSOUND,;t t
23493 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
23494 s,@ALSA_CFLAGS@,$ALSA_CFLAGS,;t t
23495 s,@ALSA_LIBS@,$ALSA_LIBS,;t t
23496 s,@CFLAGS_SOUND@,$CFLAGS_SOUND,;t t
23497 s,@SET_MAKE@,$SET_MAKE,;t t
23498 s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
23499 s,@GTK_LIBS@,$GTK_LIBS,;t t
23500 s,@ALLOCA@,$ALLOCA,;t t
23501 s,@liblockfile@,$liblockfile,;t t
23502 s,@LIBOBJS@,$LIBOBJS,;t t
23503 s,@NEED_SETGID@,$NEED_SETGID,;t t
23504 s,@KMEM_GROUP@,$KMEM_GROUP,;t t
23505 s,@GETLOADAVG_LIBS@,$GETLOADAVG_LIBS,;t t
23506 s,@GETOPT_H@,$GETOPT_H,;t t
23507 s,@GETOPTOBJS@,$GETOPTOBJS,;t t
23508 s,@version@,$version,;t t
23509 s,@configuration@,$configuration,;t t
23510 s,@canonical@,$canonical,;t t
23511 s,@srcdir@,$srcdir,;t t
23512 s,@lispdir@,$lispdir,;t t
23513 s,@locallisppath@,$locallisppath,;t t
23514 s,@lisppath@,$lisppath,;t t
23515 s,@x_default_search_path@,$x_default_search_path,;t t
23516 s,@etcdir@,$etcdir,;t t
23517 s,@archlibdir@,$archlibdir,;t t
23518 s,@docdir@,$docdir,;t t
23519 s,@bitmapdir@,$bitmapdir,;t t
23520 s,@gamedir@,$gamedir,;t t
23521 s,@gameuser@,$gameuser,;t t
23522 s,@c_switch_system@,$c_switch_system,;t t
23523 s,@c_switch_machine@,$c_switch_machine,;t t
23524 s,@LD_SWITCH_X_SITE@,$LD_SWITCH_X_SITE,;t t
23525 s,@LD_SWITCH_X_SITE_AUX@,$LD_SWITCH_X_SITE_AUX,;t t
23526 s,@C_SWITCH_X_SITE@,$C_SWITCH_X_SITE,;t t
23527 s,@X_TOOLKIT_TYPE@,$X_TOOLKIT_TYPE,;t t
23528 s,@machfile@,$machfile,;t t
23529 s,@opsysfile@,$opsysfile,;t t
23530 s,@carbon_appdir@,$carbon_appdir,;t t
23531 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
23532 CEOF
23534 _ACEOF
23536 cat >>$CONFIG_STATUS <<\_ACEOF
23537 # Split the substitutions into bite-sized pieces for seds with
23538 # small command number limits, like on Digital OSF/1 and HP-UX.
23539 ac_max_sed_lines=48
23540 ac_sed_frag=1 # Number of current file.
23541 ac_beg=1 # First line for current file.
23542 ac_end=$ac_max_sed_lines # Line after last line for current file.
23543 ac_more_lines=:
23544 ac_sed_cmds=
23545 while $ac_more_lines; do
23546 if test $ac_beg -gt 1; then
23547 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
23548 else
23549 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
23551 if test ! -s $tmp/subs.frag; then
23552 ac_more_lines=false
23553 else
23554 # The purpose of the label and of the branching condition is to
23555 # speed up the sed processing (if there are no `@' at all, there
23556 # is no need to browse any of the substitutions).
23557 # These are the two extra sed commands mentioned above.
23558 (echo ':t
23559 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
23560 if test -z "$ac_sed_cmds"; then
23561 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
23562 else
23563 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
23565 ac_sed_frag=`expr $ac_sed_frag + 1`
23566 ac_beg=$ac_end
23567 ac_end=`expr $ac_end + $ac_max_sed_lines`
23569 done
23570 if test -z "$ac_sed_cmds"; then
23571 ac_sed_cmds=cat
23573 fi # test -n "$CONFIG_FILES"
23575 _ACEOF
23576 cat >>$CONFIG_STATUS <<\_ACEOF
23577 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
23578 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23579 case $ac_file in
23580 - | *:- | *:-:* ) # input from stdin
23581 cat >$tmp/stdin
23582 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23583 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23584 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23585 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23586 * ) ac_file_in=$ac_file.in ;;
23587 esac
23589 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
23590 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
23591 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23592 X"$ac_file" : 'X\(//\)[^/]' \| \
23593 X"$ac_file" : 'X\(//\)$' \| \
23594 X"$ac_file" : 'X\(/\)' \| \
23595 . : '\(.\)' 2>/dev/null ||
23596 echo X"$ac_file" |
23597 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23598 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23599 /^X\(\/\/\)$/{ s//\1/; q; }
23600 /^X\(\/\).*/{ s//\1/; q; }
23601 s/.*/./; q'`
23602 { if $as_mkdir_p; then
23603 mkdir -p "$ac_dir"
23604 else
23605 as_dir="$ac_dir"
23606 as_dirs=
23607 while test ! -d "$as_dir"; do
23608 as_dirs="$as_dir $as_dirs"
23609 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23610 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23611 X"$as_dir" : 'X\(//\)[^/]' \| \
23612 X"$as_dir" : 'X\(//\)$' \| \
23613 X"$as_dir" : 'X\(/\)' \| \
23614 . : '\(.\)' 2>/dev/null ||
23615 echo X"$as_dir" |
23616 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23617 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23618 /^X\(\/\/\)$/{ s//\1/; q; }
23619 /^X\(\/\).*/{ s//\1/; q; }
23620 s/.*/./; q'`
23621 done
23622 test ! -n "$as_dirs" || mkdir $as_dirs
23623 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23624 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23625 { (exit 1); exit 1; }; }; }
23627 ac_builddir=.
23629 if test "$ac_dir" != .; then
23630 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23631 # A "../" for each directory in $ac_dir_suffix.
23632 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23633 else
23634 ac_dir_suffix= ac_top_builddir=
23637 case $srcdir in
23638 .) # No --srcdir option. We are building in place.
23639 ac_srcdir=.
23640 if test -z "$ac_top_builddir"; then
23641 ac_top_srcdir=.
23642 else
23643 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23644 fi ;;
23645 [\\/]* | ?:[\\/]* ) # Absolute path.
23646 ac_srcdir=$srcdir$ac_dir_suffix;
23647 ac_top_srcdir=$srcdir ;;
23648 *) # Relative path.
23649 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23650 ac_top_srcdir=$ac_top_builddir$srcdir ;;
23651 esac
23653 # Do not use `cd foo && pwd` to compute absolute paths, because
23654 # the directories may not exist.
23655 case `pwd` in
23656 .) ac_abs_builddir="$ac_dir";;
23658 case "$ac_dir" in
23659 .) ac_abs_builddir=`pwd`;;
23660 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
23661 *) ac_abs_builddir=`pwd`/"$ac_dir";;
23662 esac;;
23663 esac
23664 case $ac_abs_builddir in
23665 .) ac_abs_top_builddir=${ac_top_builddir}.;;
23667 case ${ac_top_builddir}. in
23668 .) ac_abs_top_builddir=$ac_abs_builddir;;
23669 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
23670 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
23671 esac;;
23672 esac
23673 case $ac_abs_builddir in
23674 .) ac_abs_srcdir=$ac_srcdir;;
23676 case $ac_srcdir in
23677 .) ac_abs_srcdir=$ac_abs_builddir;;
23678 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
23679 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
23680 esac;;
23681 esac
23682 case $ac_abs_builddir in
23683 .) ac_abs_top_srcdir=$ac_top_srcdir;;
23685 case $ac_top_srcdir in
23686 .) ac_abs_top_srcdir=$ac_abs_builddir;;
23687 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
23688 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
23689 esac;;
23690 esac
23693 case $INSTALL in
23694 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
23695 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
23696 esac
23698 # Let's still pretend it is `configure' which instantiates (i.e., don't
23699 # use $as_me), people would be surprised to read:
23700 # /* config.h. Generated by config.status. */
23701 if test x"$ac_file" = x-; then
23702 configure_input=
23703 else
23704 configure_input="$ac_file. "
23706 configure_input=$configure_input"Generated from `echo $ac_file_in |
23707 sed 's,.*/,,'` by configure."
23709 # First look for the input files in the build tree, otherwise in the
23710 # src tree.
23711 ac_file_inputs=`IFS=:
23712 for f in $ac_file_in; do
23713 case $f in
23714 -) echo $tmp/stdin ;;
23715 [\\/$]*)
23716 # Absolute (can't be DOS-style, as IFS=:)
23717 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23718 echo "$as_me: error: cannot find input file: $f" >&2;}
23719 { (exit 1); exit 1; }; }
23720 echo "$f";;
23721 *) # Relative
23722 if test -f "$f"; then
23723 # Build tree
23724 echo "$f"
23725 elif test -f "$srcdir/$f"; then
23726 # Source tree
23727 echo "$srcdir/$f"
23728 else
23729 # /dev/null tree
23730 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23731 echo "$as_me: error: cannot find input file: $f" >&2;}
23732 { (exit 1); exit 1; }; }
23733 fi;;
23734 esac
23735 done` || { (exit 1); exit 1; }
23737 if test x"$ac_file" != x-; then
23738 { echo "$as_me:$LINENO: creating $ac_file" >&5
23739 echo "$as_me: creating $ac_file" >&6;}
23740 rm -f "$ac_file"
23742 _ACEOF
23743 cat >>$CONFIG_STATUS <<_ACEOF
23744 sed "$ac_vpsub
23745 $extrasub
23746 _ACEOF
23747 cat >>$CONFIG_STATUS <<\_ACEOF
23749 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23750 s,@configure_input@,$configure_input,;t t
23751 s,@srcdir@,$ac_srcdir,;t t
23752 s,@abs_srcdir@,$ac_abs_srcdir,;t t
23753 s,@top_srcdir@,$ac_top_srcdir,;t t
23754 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
23755 s,@builddir@,$ac_builddir,;t t
23756 s,@abs_builddir@,$ac_abs_builddir,;t t
23757 s,@top_builddir@,$ac_top_builddir,;t t
23758 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
23759 s,@INSTALL@,$ac_INSTALL,;t t
23760 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
23761 rm -f $tmp/stdin
23762 if test x"$ac_file" != x-; then
23763 mv $tmp/out $ac_file
23764 else
23765 cat $tmp/out
23766 rm -f $tmp/out
23769 done
23770 _ACEOF
23771 cat >>$CONFIG_STATUS <<\_ACEOF
23774 # CONFIG_HEADER section.
23777 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
23778 # NAME is the cpp macro being defined and VALUE is the value it is being given.
23780 # ac_d sets the value in "#define NAME VALUE" lines.
23781 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
23782 ac_dB='[ ].*$,\1#\2'
23783 ac_dC=' '
23784 ac_dD=',;t'
23785 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
23786 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
23787 ac_uB='$,\1#\2define\3'
23788 ac_uC=' '
23789 ac_uD=',;t'
23791 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
23792 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23793 case $ac_file in
23794 - | *:- | *:-:* ) # input from stdin
23795 cat >$tmp/stdin
23796 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23797 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23798 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23799 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23800 * ) ac_file_in=$ac_file.in ;;
23801 esac
23803 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
23804 echo "$as_me: creating $ac_file" >&6;}
23806 # First look for the input files in the build tree, otherwise in the
23807 # src tree.
23808 ac_file_inputs=`IFS=:
23809 for f in $ac_file_in; do
23810 case $f in
23811 -) echo $tmp/stdin ;;
23812 [\\/$]*)
23813 # Absolute (can't be DOS-style, as IFS=:)
23814 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23815 echo "$as_me: error: cannot find input file: $f" >&2;}
23816 { (exit 1); exit 1; }; }
23817 # Do quote $f, to prevent DOS paths from being IFS'd.
23818 echo "$f";;
23819 *) # Relative
23820 if test -f "$f"; then
23821 # Build tree
23822 echo "$f"
23823 elif test -f "$srcdir/$f"; then
23824 # Source tree
23825 echo "$srcdir/$f"
23826 else
23827 # /dev/null tree
23828 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23829 echo "$as_me: error: cannot find input file: $f" >&2;}
23830 { (exit 1); exit 1; }; }
23831 fi;;
23832 esac
23833 done` || { (exit 1); exit 1; }
23834 # Remove the trailing spaces.
23835 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
23837 _ACEOF
23839 # Transform confdefs.h into two sed scripts, `conftest.defines' and
23840 # `conftest.undefs', that substitutes the proper values into
23841 # config.h.in to produce config.h. The first handles `#define'
23842 # templates, and the second `#undef' templates.
23843 # And first: Protect against being on the right side of a sed subst in
23844 # config.status. Protect against being in an unquoted here document
23845 # in config.status.
23846 rm -f conftest.defines conftest.undefs
23847 # Using a here document instead of a string reduces the quoting nightmare.
23848 # Putting comments in sed scripts is not portable.
23850 # `end' is used to avoid that the second main sed command (meant for
23851 # 0-ary CPP macros) applies to n-ary macro definitions.
23852 # See the Autoconf documentation for `clear'.
23853 cat >confdef2sed.sed <<\_ACEOF
23854 s/[\\&,]/\\&/g
23855 s,[\\$`],\\&,g
23856 t clear
23857 : clear
23858 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
23859 t end
23860 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
23861 : end
23862 _ACEOF
23863 # If some macros were called several times there might be several times
23864 # the same #defines, which is useless. Nevertheless, we may not want to
23865 # sort them, since we want the *last* AC-DEFINE to be honored.
23866 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
23867 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
23868 rm -f confdef2sed.sed
23870 # This sed command replaces #undef with comments. This is necessary, for
23871 # example, in the case of _POSIX_SOURCE, which is predefined and required
23872 # on some systems where configure will not decide to define it.
23873 cat >>conftest.undefs <<\_ACEOF
23874 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
23875 _ACEOF
23877 # Break up conftest.defines because some shells have a limit on the size
23878 # of here documents, and old seds have small limits too (100 cmds).
23879 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
23880 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
23881 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
23882 echo ' :' >>$CONFIG_STATUS
23883 rm -f conftest.tail
23884 while grep . conftest.defines >/dev/null
23886 # Write a limited-size here document to $tmp/defines.sed.
23887 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
23888 # Speed up: don't consider the non `#define' lines.
23889 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
23890 # Work around the forget-to-reset-the-flag bug.
23891 echo 't clr' >>$CONFIG_STATUS
23892 echo ': clr' >>$CONFIG_STATUS
23893 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
23894 echo 'CEOF
23895 sed -f $tmp/defines.sed $tmp/in >$tmp/out
23896 rm -f $tmp/in
23897 mv $tmp/out $tmp/in
23898 ' >>$CONFIG_STATUS
23899 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
23900 rm -f conftest.defines
23901 mv conftest.tail conftest.defines
23902 done
23903 rm -f conftest.defines
23904 echo ' fi # grep' >>$CONFIG_STATUS
23905 echo >>$CONFIG_STATUS
23907 # Break up conftest.undefs because some shells have a limit on the size
23908 # of here documents, and old seds have small limits too (100 cmds).
23909 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
23910 rm -f conftest.tail
23911 while grep . conftest.undefs >/dev/null
23913 # Write a limited-size here document to $tmp/undefs.sed.
23914 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
23915 # Speed up: don't consider the non `#undef'
23916 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
23917 # Work around the forget-to-reset-the-flag bug.
23918 echo 't clr' >>$CONFIG_STATUS
23919 echo ': clr' >>$CONFIG_STATUS
23920 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
23921 echo 'CEOF
23922 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
23923 rm -f $tmp/in
23924 mv $tmp/out $tmp/in
23925 ' >>$CONFIG_STATUS
23926 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
23927 rm -f conftest.undefs
23928 mv conftest.tail conftest.undefs
23929 done
23930 rm -f conftest.undefs
23932 cat >>$CONFIG_STATUS <<\_ACEOF
23933 # Let's still pretend it is `configure' which instantiates (i.e., don't
23934 # use $as_me), people would be surprised to read:
23935 # /* config.h. Generated by config.status. */
23936 if test x"$ac_file" = x-; then
23937 echo "/* Generated by configure. */" >$tmp/config.h
23938 else
23939 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
23941 cat $tmp/in >>$tmp/config.h
23942 rm -f $tmp/in
23943 if test x"$ac_file" != x-; then
23944 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
23945 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
23946 echo "$as_me: $ac_file is unchanged" >&6;}
23947 else
23948 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
23949 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23950 X"$ac_file" : 'X\(//\)[^/]' \| \
23951 X"$ac_file" : 'X\(//\)$' \| \
23952 X"$ac_file" : 'X\(/\)' \| \
23953 . : '\(.\)' 2>/dev/null ||
23954 echo X"$ac_file" |
23955 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23956 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23957 /^X\(\/\/\)$/{ s//\1/; q; }
23958 /^X\(\/\).*/{ s//\1/; q; }
23959 s/.*/./; q'`
23960 { if $as_mkdir_p; then
23961 mkdir -p "$ac_dir"
23962 else
23963 as_dir="$ac_dir"
23964 as_dirs=
23965 while test ! -d "$as_dir"; do
23966 as_dirs="$as_dir $as_dirs"
23967 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23968 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23969 X"$as_dir" : 'X\(//\)[^/]' \| \
23970 X"$as_dir" : 'X\(//\)$' \| \
23971 X"$as_dir" : 'X\(/\)' \| \
23972 . : '\(.\)' 2>/dev/null ||
23973 echo X"$as_dir" |
23974 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23975 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23976 /^X\(\/\/\)$/{ s//\1/; q; }
23977 /^X\(\/\).*/{ s//\1/; q; }
23978 s/.*/./; q'`
23979 done
23980 test ! -n "$as_dirs" || mkdir $as_dirs
23981 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23982 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23983 { (exit 1); exit 1; }; }; }
23985 rm -f $ac_file
23986 mv $tmp/config.h $ac_file
23988 else
23989 cat $tmp/config.h
23990 rm -f $tmp/config.h
23992 done
23993 _ACEOF
23994 cat >>$CONFIG_STATUS <<\_ACEOF
23997 # CONFIG_COMMANDS section.
23999 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
24000 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
24001 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
24002 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
24003 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24004 X"$ac_dest" : 'X\(//\)[^/]' \| \
24005 X"$ac_dest" : 'X\(//\)$' \| \
24006 X"$ac_dest" : 'X\(/\)' \| \
24007 . : '\(.\)' 2>/dev/null ||
24008 echo X"$ac_dest" |
24009 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24010 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24011 /^X\(\/\/\)$/{ s//\1/; q; }
24012 /^X\(\/\).*/{ s//\1/; q; }
24013 s/.*/./; q'`
24014 { if $as_mkdir_p; then
24015 mkdir -p "$ac_dir"
24016 else
24017 as_dir="$ac_dir"
24018 as_dirs=
24019 while test ! -d "$as_dir"; do
24020 as_dirs="$as_dir $as_dirs"
24021 as_dir=`(dirname "$as_dir") 2>/dev/null ||
24022 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24023 X"$as_dir" : 'X\(//\)[^/]' \| \
24024 X"$as_dir" : 'X\(//\)$' \| \
24025 X"$as_dir" : 'X\(/\)' \| \
24026 . : '\(.\)' 2>/dev/null ||
24027 echo X"$as_dir" |
24028 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24029 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24030 /^X\(\/\/\)$/{ s//\1/; q; }
24031 /^X\(\/\).*/{ s//\1/; q; }
24032 s/.*/./; q'`
24033 done
24034 test ! -n "$as_dirs" || mkdir $as_dirs
24035 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24036 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24037 { (exit 1); exit 1; }; }; }
24039 ac_builddir=.
24041 if test "$ac_dir" != .; then
24042 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24043 # A "../" for each directory in $ac_dir_suffix.
24044 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24045 else
24046 ac_dir_suffix= ac_top_builddir=
24049 case $srcdir in
24050 .) # No --srcdir option. We are building in place.
24051 ac_srcdir=.
24052 if test -z "$ac_top_builddir"; then
24053 ac_top_srcdir=.
24054 else
24055 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
24056 fi ;;
24057 [\\/]* | ?:[\\/]* ) # Absolute path.
24058 ac_srcdir=$srcdir$ac_dir_suffix;
24059 ac_top_srcdir=$srcdir ;;
24060 *) # Relative path.
24061 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
24062 ac_top_srcdir=$ac_top_builddir$srcdir ;;
24063 esac
24065 # Do not use `cd foo && pwd` to compute absolute paths, because
24066 # the directories may not exist.
24067 case `pwd` in
24068 .) ac_abs_builddir="$ac_dir";;
24070 case "$ac_dir" in
24071 .) ac_abs_builddir=`pwd`;;
24072 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
24073 *) ac_abs_builddir=`pwd`/"$ac_dir";;
24074 esac;;
24075 esac
24076 case $ac_abs_builddir in
24077 .) ac_abs_top_builddir=${ac_top_builddir}.;;
24079 case ${ac_top_builddir}. in
24080 .) ac_abs_top_builddir=$ac_abs_builddir;;
24081 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
24082 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
24083 esac;;
24084 esac
24085 case $ac_abs_builddir in
24086 .) ac_abs_srcdir=$ac_srcdir;;
24088 case $ac_srcdir in
24089 .) ac_abs_srcdir=$ac_abs_builddir;;
24090 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
24091 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
24092 esac;;
24093 esac
24094 case $ac_abs_builddir in
24095 .) ac_abs_top_srcdir=$ac_top_srcdir;;
24097 case $ac_top_srcdir in
24098 .) ac_abs_top_srcdir=$ac_abs_builddir;;
24099 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
24100 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
24101 esac;;
24102 esac
24105 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
24106 echo "$as_me: executing $ac_dest commands" >&6;}
24107 case $ac_dest in
24108 default )
24110 ### Make the necessary directories, if they don't exist.
24111 for dir in etc lisp ; do
24112 test -d ${dir} || mkdir ${dir}
24113 done
24115 # Build src/Makefile from ${srcdir}/src/Makefile.c
24116 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
24117 # This must be done after src/config.h is built, since we rely on that file.
24119 # Now get this: Some word that is part of the ${srcdir} directory name
24120 # or the ${configuration} value might, just might, happen to be an
24121 # identifier like `sun4' or `i386' or something, and be predefined by
24122 # the C preprocessor to some helpful value like 1, or maybe the empty
24123 # string. Needless to say consequent macro substitutions are less
24124 # than conducive to the makefile finding the correct directory.
24125 undefs="`echo $top_srcdir $configuration $canonical |
24126 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
24127 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g' \
24130 echo creating src/epaths.h
24131 ${MAKE-make} epaths-force
24133 # As of 2000-11-19, newest development versions of GNU cpp preprocess
24134 # `..' to `. .' unless invoked with -traditional
24136 if test "x$GCC" = xyes && test "x$CPP_NEED_TRADITIONAL" = xyes; then
24137 CPPFLAGS="$CPPFLAGS -traditional"
24140 echo creating lib-src/Makefile
24141 ( cd lib-src
24142 rm -f junk.c junk1.c junk2.c
24143 sed -e '/start of cpp stuff/q' \
24144 < Makefile.c > junk1.c
24145 sed -e '1,/start of cpp stuff/d'\
24146 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
24147 < Makefile.c > junk.c
24148 $CPP $undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
24149 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
24150 cat junk1.c junk2.c > Makefile.new
24151 rm -f junk.c junk1.c junk2.c
24152 chmod 444 Makefile.new
24153 mv -f Makefile.new Makefile
24156 echo creating src/Makefile
24157 ( cd src
24158 rm -f junk.c junk1.c junk2.c
24159 sed -e '/start of cpp stuff/q' \
24160 < Makefile.c > junk1.c
24161 sed -e '1,/start of cpp stuff/d'\
24162 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
24163 < Makefile.c > junk.c
24164 $CPP $undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
24165 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
24166 cat junk1.c junk2.c > Makefile.new
24167 rm -f junk.c junk1.c junk2.c
24168 chmod 444 Makefile.new
24169 mv -f Makefile.new Makefile
24172 if test ! -f src/.gdbinit && test -f $srcdir/src/.gdbinit; then
24173 echo creating src/.gdbinit
24174 echo source $srcdir/src/.gdbinit > src/.gdbinit
24177 # This is how we know whether to re-run configure in certain cases.
24178 touch src/config.stamp
24181 esac
24182 done
24183 _ACEOF
24185 cat >>$CONFIG_STATUS <<\_ACEOF
24187 { (exit 0); exit 0; }
24188 _ACEOF
24189 chmod +x $CONFIG_STATUS
24190 ac_clean_files=$ac_clean_files_save
24193 # configure is writing to config.log, and then calls config.status.
24194 # config.status does its own redirection, appending to config.log.
24195 # Unfortunately, on DOS this fails, as config.log is still kept open
24196 # by configure, so config.status won't be able to write to it; its
24197 # output is simply discarded. So we exec the FD to /dev/null,
24198 # effectively closing config.log, so it can be properly (re)opened and
24199 # appended to by config.status. When coming back to configure, we
24200 # need to make the FD available again.
24201 if test "$no_create" != yes; then
24202 ac_cs_success=:
24203 ac_config_status_args=
24204 test "$silent" = yes &&
24205 ac_config_status_args="$ac_config_status_args --quiet"
24206 exec 5>/dev/null
24207 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
24208 exec 5>>config.log
24209 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24210 # would make configure fail if this is the last instruction.
24211 $ac_cs_success || { (exit 1); exit 1; }