(display-time-mail-face): Replace :group `faces' with `mode-line-faces'.
[emacs.git] / configure
blob9f11d615a046c783b428bf06e88bfe7f1e832a72
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 SET_MAKE PKG_CONFIG GTK_CFLAGS GTK_LIBS ALLOCA liblockfile LIBOBJS NEED_SETGID KMEM_GROUP GETLOADAVG_LIBS GETOPT_H GETOPTOBJS version configuration canonical srcdir lispdir locallisppath lisppath x_default_search_path etcdir archlibdir docdir bitmapdir gamedir gameuser c_switch_system c_switch_machine LD_SWITCH_X_SITE LD_SWITCH_X_SITE_AUX C_SWITCH_X_SITE X_TOOLKIT_TYPE machfile opsysfile carbon_appdir LTLIBOBJS'
314 ac_subst_files=''
316 # Initialize some variables set by options.
317 ac_init_help=
318 ac_init_version=false
319 # The variables have the same names as the options, with
320 # dashes changed to underlines.
321 cache_file=/dev/null
322 exec_prefix=NONE
323 no_create=
324 no_recursion=
325 prefix=NONE
326 program_prefix=NONE
327 program_suffix=NONE
328 program_transform_name=s,x,x,
329 silent=
330 site=
331 srcdir=
332 verbose=
333 x_includes=NONE
334 x_libraries=NONE
336 # Installation directory options.
337 # These are left unexpanded so users can "make install exec_prefix=/foo"
338 # and all the variables that are supposed to be based on exec_prefix
339 # by default will actually change.
340 # Use braces instead of parens because sh, perl, etc. also accept them.
341 bindir='${exec_prefix}/bin'
342 sbindir='${exec_prefix}/sbin'
343 libexecdir='${exec_prefix}/libexec'
344 datadir='${prefix}/share'
345 sysconfdir='${prefix}/etc'
346 sharedstatedir='${prefix}/com'
347 localstatedir='${prefix}/var'
348 libdir='${exec_prefix}/lib'
349 includedir='${prefix}/include'
350 oldincludedir='/usr/include'
351 infodir='${prefix}/info'
352 mandir='${prefix}/man'
354 ac_prev=
355 for ac_option
357 # If the previous option needs an argument, assign it.
358 if test -n "$ac_prev"; then
359 eval "$ac_prev=\$ac_option"
360 ac_prev=
361 continue
364 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
366 # Accept the important Cygnus configure options, so we can diagnose typos.
368 case $ac_option in
370 -bindir | --bindir | --bindi | --bind | --bin | --bi)
371 ac_prev=bindir ;;
372 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
373 bindir=$ac_optarg ;;
375 -build | --build | --buil | --bui | --bu)
376 ac_prev=build_alias ;;
377 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
378 build_alias=$ac_optarg ;;
380 -cache-file | --cache-file | --cache-fil | --cache-fi \
381 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
382 ac_prev=cache_file ;;
383 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
384 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
385 cache_file=$ac_optarg ;;
387 --config-cache | -C)
388 cache_file=config.cache ;;
390 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
391 ac_prev=datadir ;;
392 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
393 | --da=*)
394 datadir=$ac_optarg ;;
396 -disable-* | --disable-*)
397 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
398 # Reject names that are not valid shell variable names.
399 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
400 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
401 { (exit 1); exit 1; }; }
402 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
403 eval "enable_$ac_feature=no" ;;
405 -enable-* | --enable-*)
406 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
407 # Reject names that are not valid shell variable names.
408 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
409 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
410 { (exit 1); exit 1; }; }
411 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
412 case $ac_option in
413 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
414 *) ac_optarg=yes ;;
415 esac
416 eval "enable_$ac_feature='$ac_optarg'" ;;
418 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
419 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
420 | --exec | --exe | --ex)
421 ac_prev=exec_prefix ;;
422 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
423 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
424 | --exec=* | --exe=* | --ex=*)
425 exec_prefix=$ac_optarg ;;
427 -gas | --gas | --ga | --g)
428 # Obsolete; use --with-gas.
429 with_gas=yes ;;
431 -help | --help | --hel | --he | -h)
432 ac_init_help=long ;;
433 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
434 ac_init_help=recursive ;;
435 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
436 ac_init_help=short ;;
438 -host | --host | --hos | --ho)
439 ac_prev=host_alias ;;
440 -host=* | --host=* | --hos=* | --ho=*)
441 host_alias=$ac_optarg ;;
443 -includedir | --includedir | --includedi | --included | --include \
444 | --includ | --inclu | --incl | --inc)
445 ac_prev=includedir ;;
446 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
447 | --includ=* | --inclu=* | --incl=* | --inc=*)
448 includedir=$ac_optarg ;;
450 -infodir | --infodir | --infodi | --infod | --info | --inf)
451 ac_prev=infodir ;;
452 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
453 infodir=$ac_optarg ;;
455 -libdir | --libdir | --libdi | --libd)
456 ac_prev=libdir ;;
457 -libdir=* | --libdir=* | --libdi=* | --libd=*)
458 libdir=$ac_optarg ;;
460 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
461 | --libexe | --libex | --libe)
462 ac_prev=libexecdir ;;
463 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
464 | --libexe=* | --libex=* | --libe=*)
465 libexecdir=$ac_optarg ;;
467 -localstatedir | --localstatedir | --localstatedi | --localstated \
468 | --localstate | --localstat | --localsta | --localst \
469 | --locals | --local | --loca | --loc | --lo)
470 ac_prev=localstatedir ;;
471 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
472 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
473 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
474 localstatedir=$ac_optarg ;;
476 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
477 ac_prev=mandir ;;
478 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
479 mandir=$ac_optarg ;;
481 -nfp | --nfp | --nf)
482 # Obsolete; use --without-fp.
483 with_fp=no ;;
485 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
486 | --no-cr | --no-c | -n)
487 no_create=yes ;;
489 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
490 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
491 no_recursion=yes ;;
493 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
494 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
495 | --oldin | --oldi | --old | --ol | --o)
496 ac_prev=oldincludedir ;;
497 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
498 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
499 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
500 oldincludedir=$ac_optarg ;;
502 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
503 ac_prev=prefix ;;
504 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
505 prefix=$ac_optarg ;;
507 -program-prefix | --program-prefix | --program-prefi | --program-pref \
508 | --program-pre | --program-pr | --program-p)
509 ac_prev=program_prefix ;;
510 -program-prefix=* | --program-prefix=* | --program-prefi=* \
511 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
512 program_prefix=$ac_optarg ;;
514 -program-suffix | --program-suffix | --program-suffi | --program-suff \
515 | --program-suf | --program-su | --program-s)
516 ac_prev=program_suffix ;;
517 -program-suffix=* | --program-suffix=* | --program-suffi=* \
518 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
519 program_suffix=$ac_optarg ;;
521 -program-transform-name | --program-transform-name \
522 | --program-transform-nam | --program-transform-na \
523 | --program-transform-n | --program-transform- \
524 | --program-transform | --program-transfor \
525 | --program-transfo | --program-transf \
526 | --program-trans | --program-tran \
527 | --progr-tra | --program-tr | --program-t)
528 ac_prev=program_transform_name ;;
529 -program-transform-name=* | --program-transform-name=* \
530 | --program-transform-nam=* | --program-transform-na=* \
531 | --program-transform-n=* | --program-transform-=* \
532 | --program-transform=* | --program-transfor=* \
533 | --program-transfo=* | --program-transf=* \
534 | --program-trans=* | --program-tran=* \
535 | --progr-tra=* | --program-tr=* | --program-t=*)
536 program_transform_name=$ac_optarg ;;
538 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
539 | -silent | --silent | --silen | --sile | --sil)
540 silent=yes ;;
542 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
543 ac_prev=sbindir ;;
544 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
545 | --sbi=* | --sb=*)
546 sbindir=$ac_optarg ;;
548 -sharedstatedir | --sharedstatedir | --sharedstatedi \
549 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
550 | --sharedst | --shareds | --shared | --share | --shar \
551 | --sha | --sh)
552 ac_prev=sharedstatedir ;;
553 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
554 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
555 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
556 | --sha=* | --sh=*)
557 sharedstatedir=$ac_optarg ;;
559 -site | --site | --sit)
560 ac_prev=site ;;
561 -site=* | --site=* | --sit=*)
562 site=$ac_optarg ;;
564 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
565 ac_prev=srcdir ;;
566 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
567 srcdir=$ac_optarg ;;
569 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
570 | --syscon | --sysco | --sysc | --sys | --sy)
571 ac_prev=sysconfdir ;;
572 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
573 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
574 sysconfdir=$ac_optarg ;;
576 -target | --target | --targe | --targ | --tar | --ta | --t)
577 ac_prev=target_alias ;;
578 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
579 target_alias=$ac_optarg ;;
581 -v | -verbose | --verbose | --verbos | --verbo | --verb)
582 verbose=yes ;;
584 -version | --version | --versio | --versi | --vers | -V)
585 ac_init_version=: ;;
587 -with-* | --with-*)
588 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
589 # Reject names that are not valid shell variable names.
590 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
591 { echo "$as_me: error: invalid package name: $ac_package" >&2
592 { (exit 1); exit 1; }; }
593 ac_package=`echo $ac_package| sed 's/-/_/g'`
594 case $ac_option in
595 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
596 *) ac_optarg=yes ;;
597 esac
598 eval "with_$ac_package='$ac_optarg'" ;;
600 -without-* | --without-*)
601 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
602 # Reject names that are not valid shell variable names.
603 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
604 { echo "$as_me: error: invalid package name: $ac_package" >&2
605 { (exit 1); exit 1; }; }
606 ac_package=`echo $ac_package | sed 's/-/_/g'`
607 eval "with_$ac_package=no" ;;
609 --x)
610 # Obsolete; use --with-x.
611 with_x=yes ;;
613 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
614 | --x-incl | --x-inc | --x-in | --x-i)
615 ac_prev=x_includes ;;
616 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
617 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
618 x_includes=$ac_optarg ;;
620 -x-libraries | --x-libraries | --x-librarie | --x-librari \
621 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
622 ac_prev=x_libraries ;;
623 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
624 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
625 x_libraries=$ac_optarg ;;
627 -*) { echo "$as_me: error: unrecognized option: $ac_option
628 Try \`$0 --help' for more information." >&2
629 { (exit 1); exit 1; }; }
632 *=*)
633 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
634 # Reject names that are not valid shell variable names.
635 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
636 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
637 { (exit 1); exit 1; }; }
638 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
639 eval "$ac_envvar='$ac_optarg'"
640 export $ac_envvar ;;
643 # FIXME: should be removed in autoconf 3.0.
644 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
645 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
646 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
647 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
650 esac
651 done
653 if test -n "$ac_prev"; then
654 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
655 { echo "$as_me: error: missing argument to $ac_option" >&2
656 { (exit 1); exit 1; }; }
659 # Be sure to have absolute paths.
660 for ac_var in exec_prefix prefix
662 eval ac_val=$`echo $ac_var`
663 case $ac_val in
664 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
665 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
666 { (exit 1); exit 1; }; };;
667 esac
668 done
670 # Be sure to have absolute paths.
671 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
672 localstatedir libdir includedir oldincludedir infodir mandir
674 eval ac_val=$`echo $ac_var`
675 case $ac_val in
676 [\\/$]* | ?:[\\/]* ) ;;
677 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
678 { (exit 1); exit 1; }; };;
679 esac
680 done
682 # There might be people who depend on the old broken behavior: `$host'
683 # used to hold the argument of --host etc.
684 # FIXME: To remove some day.
685 build=$build_alias
686 host=$host_alias
687 target=$target_alias
689 # FIXME: To remove some day.
690 if test "x$host_alias" != x; then
691 if test "x$build_alias" = x; then
692 cross_compiling=maybe
693 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
694 If a cross compiler is detected then cross compile mode will be used." >&2
695 elif test "x$build_alias" != "x$host_alias"; then
696 cross_compiling=yes
700 ac_tool_prefix=
701 test -n "$host_alias" && ac_tool_prefix=$host_alias-
703 test "$silent" = yes && exec 6>/dev/null
706 # Find the source files, if location was not specified.
707 if test -z "$srcdir"; then
708 ac_srcdir_defaulted=yes
709 # Try the directory containing this script, then its parent.
710 ac_confdir=`(dirname "$0") 2>/dev/null ||
711 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
712 X"$0" : 'X\(//\)[^/]' \| \
713 X"$0" : 'X\(//\)$' \| \
714 X"$0" : 'X\(/\)' \| \
715 . : '\(.\)' 2>/dev/null ||
716 echo X"$0" |
717 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
718 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
719 /^X\(\/\/\)$/{ s//\1/; q; }
720 /^X\(\/\).*/{ s//\1/; q; }
721 s/.*/./; q'`
722 srcdir=$ac_confdir
723 if test ! -r $srcdir/$ac_unique_file; then
724 srcdir=..
726 else
727 ac_srcdir_defaulted=no
729 if test ! -r $srcdir/$ac_unique_file; then
730 if test "$ac_srcdir_defaulted" = yes; then
731 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
732 { (exit 1); exit 1; }; }
733 else
734 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
735 { (exit 1); exit 1; }; }
738 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
739 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
740 { (exit 1); exit 1; }; }
741 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
742 ac_env_build_alias_set=${build_alias+set}
743 ac_env_build_alias_value=$build_alias
744 ac_cv_env_build_alias_set=${build_alias+set}
745 ac_cv_env_build_alias_value=$build_alias
746 ac_env_host_alias_set=${host_alias+set}
747 ac_env_host_alias_value=$host_alias
748 ac_cv_env_host_alias_set=${host_alias+set}
749 ac_cv_env_host_alias_value=$host_alias
750 ac_env_target_alias_set=${target_alias+set}
751 ac_env_target_alias_value=$target_alias
752 ac_cv_env_target_alias_set=${target_alias+set}
753 ac_cv_env_target_alias_value=$target_alias
754 ac_env_CC_set=${CC+set}
755 ac_env_CC_value=$CC
756 ac_cv_env_CC_set=${CC+set}
757 ac_cv_env_CC_value=$CC
758 ac_env_CFLAGS_set=${CFLAGS+set}
759 ac_env_CFLAGS_value=$CFLAGS
760 ac_cv_env_CFLAGS_set=${CFLAGS+set}
761 ac_cv_env_CFLAGS_value=$CFLAGS
762 ac_env_LDFLAGS_set=${LDFLAGS+set}
763 ac_env_LDFLAGS_value=$LDFLAGS
764 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
765 ac_cv_env_LDFLAGS_value=$LDFLAGS
766 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
767 ac_env_CPPFLAGS_value=$CPPFLAGS
768 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
769 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
770 ac_env_CPP_set=${CPP+set}
771 ac_env_CPP_value=$CPP
772 ac_cv_env_CPP_set=${CPP+set}
773 ac_cv_env_CPP_value=$CPP
776 # Report the --help message.
778 if test "$ac_init_help" = "long"; then
779 # Omit some internal or obsolete options to make the list less imposing.
780 # This message is too long to be a string in the A/UX 3.1 sh.
781 cat <<_ACEOF
782 \`configure' configures this package to adapt to many kinds of systems.
784 Usage: $0 [OPTION]... [VAR=VALUE]...
786 To assign environment variables (e.g., CC, CFLAGS...), specify them as
787 VAR=VALUE. See below for descriptions of some of the useful variables.
789 Defaults for the options are specified in brackets.
791 Configuration:
792 -h, --help display this help and exit
793 --help=short display options specific to this package
794 --help=recursive display the short help of all the included packages
795 -V, --version display version information and exit
796 -q, --quiet, --silent do not print \`checking...' messages
797 --cache-file=FILE cache test results in FILE [disabled]
798 -C, --config-cache alias for \`--cache-file=config.cache'
799 -n, --no-create do not create output files
800 --srcdir=DIR find the sources in DIR [configure dir or \`..']
802 _ACEOF
804 cat <<_ACEOF
805 Installation directories:
806 --prefix=PREFIX install architecture-independent files in PREFIX
807 [$ac_default_prefix]
808 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
809 [PREFIX]
811 By default, \`make install' will install all the files in
812 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
813 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
814 for instance \`--prefix=\$HOME'.
816 For better control, use the options below.
818 Fine tuning of the installation directories:
819 --bindir=DIR user executables [EPREFIX/bin]
820 --sbindir=DIR system admin executables [EPREFIX/sbin]
821 --libexecdir=DIR program executables [EPREFIX/libexec]
822 --datadir=DIR read-only architecture-independent data [PREFIX/share]
823 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
824 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
825 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
826 --libdir=DIR object code libraries [EPREFIX/lib]
827 --includedir=DIR C header files [PREFIX/include]
828 --oldincludedir=DIR C header files for non-gcc [/usr/include]
829 --infodir=DIR info documentation [PREFIX/info]
830 --mandir=DIR man documentation [PREFIX/man]
831 _ACEOF
833 cat <<\_ACEOF
835 Program names:
836 --program-prefix=PREFIX prepend PREFIX to installed program names
837 --program-suffix=SUFFIX append SUFFIX to installed program names
838 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
840 X features:
841 --x-includes=DIR X include files are in DIR
842 --x-libraries=DIR X library files are in DIR
844 System types:
845 --build=BUILD configure for building on BUILD [guessed]
846 --host=HOST cross-compile to build programs to run on HOST [BUILD]
847 _ACEOF
850 if test -n "$ac_init_help"; then
852 cat <<\_ACEOF
854 Optional Features:
855 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
856 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
857 --enable-carbon-app[=DIR] [DIR=/Application]
858 specify install directory for Emacs.app on Mac OS X
859 --enable-asserts compile code with asserts enabled
860 --enable-maintainer-mode enable make rules and dependencies not useful
861 (and sometimes confusing) to the casual installer
862 --enable-locallisppath=PATH
863 directories Emacs should search for lisp files
864 specific to this site
865 --disable-largefile omit support for large files
867 Optional Packages:
868 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
869 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
870 --without-gcc don't use GCC to compile Emacs if GCC is found
871 --without-pop don't support POP mail retrieval with movemail
872 --with-kerberos support Kerberos-authenticated POP
873 --with-kerberos5 support Kerberos version 5 authenticated POP
874 --with-hesiod support Hesiod to get the POP server host
875 --without-sound don't compile with sound support
876 --with-x-toolkit=KIT use an X toolkit
877 (KIT = yes/lucid/athena/motif/gtk/no)
878 --with-xpm use -lXpm for displaying XPM images
879 --with-jpeg use -ljpeg for displaying JPEG images
880 --with-tiff use -ltiff for displaying TIFF images
881 --with-gif use -lungif for displaying GIF images
882 --with-png use -lpng for displaying PNG images
883 --with-gtk use GTK (same as --with-x-toolkit=gtk)
884 --with-pkg-config-prog Path to pkg-config to use for finding GTK
885 --without-toolkit-scroll-bars
886 don't use Motif or Xaw3d scroll bars
887 --without-xim don't use X11 XIM
888 --without-carbon don't use Carbon GUI on Mac OS X
889 --with-x use the X Window System
891 Some influential environment variables:
892 CC C compiler command
893 CFLAGS C compiler flags
894 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
895 nonstandard directory <lib dir>
896 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
897 headers in a nonstandard directory <include dir>
898 CPP C preprocessor
900 Use these variables to override the choices made by `configure' or to help
901 it to find libraries and programs with nonstandard names/locations.
903 _ACEOF
906 if test "$ac_init_help" = "recursive"; then
907 # If there are subdirs, report their specific --help.
908 ac_popdir=`pwd`
909 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
910 test -d $ac_dir || continue
911 ac_builddir=.
913 if test "$ac_dir" != .; then
914 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
915 # A "../" for each directory in $ac_dir_suffix.
916 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
917 else
918 ac_dir_suffix= ac_top_builddir=
921 case $srcdir in
922 .) # No --srcdir option. We are building in place.
923 ac_srcdir=.
924 if test -z "$ac_top_builddir"; then
925 ac_top_srcdir=.
926 else
927 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
928 fi ;;
929 [\\/]* | ?:[\\/]* ) # Absolute path.
930 ac_srcdir=$srcdir$ac_dir_suffix;
931 ac_top_srcdir=$srcdir ;;
932 *) # Relative path.
933 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
934 ac_top_srcdir=$ac_top_builddir$srcdir ;;
935 esac
937 # Do not use `cd foo && pwd` to compute absolute paths, because
938 # the directories may not exist.
939 case `pwd` in
940 .) ac_abs_builddir="$ac_dir";;
942 case "$ac_dir" in
943 .) ac_abs_builddir=`pwd`;;
944 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
945 *) ac_abs_builddir=`pwd`/"$ac_dir";;
946 esac;;
947 esac
948 case $ac_abs_builddir in
949 .) ac_abs_top_builddir=${ac_top_builddir}.;;
951 case ${ac_top_builddir}. in
952 .) ac_abs_top_builddir=$ac_abs_builddir;;
953 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
954 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
955 esac;;
956 esac
957 case $ac_abs_builddir in
958 .) ac_abs_srcdir=$ac_srcdir;;
960 case $ac_srcdir in
961 .) ac_abs_srcdir=$ac_abs_builddir;;
962 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
963 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
964 esac;;
965 esac
966 case $ac_abs_builddir in
967 .) ac_abs_top_srcdir=$ac_top_srcdir;;
969 case $ac_top_srcdir in
970 .) ac_abs_top_srcdir=$ac_abs_builddir;;
971 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
972 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
973 esac;;
974 esac
976 cd $ac_dir
977 # Check for guested configure; otherwise get Cygnus style configure.
978 if test -f $ac_srcdir/configure.gnu; then
979 echo
980 $SHELL $ac_srcdir/configure.gnu --help=recursive
981 elif test -f $ac_srcdir/configure; then
982 echo
983 $SHELL $ac_srcdir/configure --help=recursive
984 elif test -f $ac_srcdir/configure.ac ||
985 test -f $ac_srcdir/configure.in; then
986 echo
987 $ac_configure --help
988 else
989 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
991 cd $ac_popdir
992 done
995 test -n "$ac_init_help" && exit 0
996 if $ac_init_version; then
997 cat <<\_ACEOF
999 Copyright (C) 2003 Free Software Foundation, Inc.
1000 This configure script is free software; the Free Software Foundation
1001 gives unlimited permission to copy, distribute and modify it.
1002 _ACEOF
1003 exit 0
1005 exec 5>config.log
1006 cat >&5 <<_ACEOF
1007 This file contains any messages produced by compilers while
1008 running configure, to aid debugging if configure makes a mistake.
1010 It was created by $as_me, which was
1011 generated by GNU Autoconf 2.59. Invocation command line was
1013 $ $0 $@
1015 _ACEOF
1017 cat <<_ASUNAME
1018 ## --------- ##
1019 ## Platform. ##
1020 ## --------- ##
1022 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1023 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1024 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1025 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1026 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1028 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1029 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1031 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1032 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1033 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1034 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1035 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1036 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1037 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1039 _ASUNAME
1041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1042 for as_dir in $PATH
1044 IFS=$as_save_IFS
1045 test -z "$as_dir" && as_dir=.
1046 echo "PATH: $as_dir"
1047 done
1049 } >&5
1051 cat >&5 <<_ACEOF
1054 ## ----------- ##
1055 ## Core tests. ##
1056 ## ----------- ##
1058 _ACEOF
1061 # Keep a trace of the command line.
1062 # Strip out --no-create and --no-recursion so they do not pile up.
1063 # Strip out --silent because we don't want to record it for future runs.
1064 # Also quote any args containing shell meta-characters.
1065 # Make two passes to allow for proper duplicate-argument suppression.
1066 ac_configure_args=
1067 ac_configure_args0=
1068 ac_configure_args1=
1069 ac_sep=
1070 ac_must_keep_next=false
1071 for ac_pass in 1 2
1073 for ac_arg
1075 case $ac_arg in
1076 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1077 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1078 | -silent | --silent | --silen | --sile | --sil)
1079 continue ;;
1080 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1081 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1082 esac
1083 case $ac_pass in
1084 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1086 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1087 if test $ac_must_keep_next = true; then
1088 ac_must_keep_next=false # Got value, back to normal.
1089 else
1090 case $ac_arg in
1091 *=* | --config-cache | -C | -disable-* | --disable-* \
1092 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1093 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1094 | -with-* | --with-* | -without-* | --without-* | --x)
1095 case "$ac_configure_args0 " in
1096 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1097 esac
1099 -* ) ac_must_keep_next=true ;;
1100 esac
1102 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1103 # Get rid of the leading space.
1104 ac_sep=" "
1106 esac
1107 done
1108 done
1109 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1110 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1112 # When interrupted or exit'd, cleanup temporary files, and complete
1113 # config.log. We remove comments because anyway the quotes in there
1114 # would cause problems or look ugly.
1115 # WARNING: Be sure not to use single quotes in there, as some shells,
1116 # such as our DU 5.0 friend, will then `close' the trap.
1117 trap 'exit_status=$?
1118 # Save into config.log some information that might help in debugging.
1120 echo
1122 cat <<\_ASBOX
1123 ## ---------------- ##
1124 ## Cache variables. ##
1125 ## ---------------- ##
1126 _ASBOX
1127 echo
1128 # The following way of writing the cache mishandles newlines in values,
1130 (set) 2>&1 |
1131 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1132 *ac_space=\ *)
1133 sed -n \
1134 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1135 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1138 sed -n \
1139 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1141 esac;
1143 echo
1145 cat <<\_ASBOX
1146 ## ----------------- ##
1147 ## Output variables. ##
1148 ## ----------------- ##
1149 _ASBOX
1150 echo
1151 for ac_var in $ac_subst_vars
1153 eval ac_val=$`echo $ac_var`
1154 echo "$ac_var='"'"'$ac_val'"'"'"
1155 done | sort
1156 echo
1158 if test -n "$ac_subst_files"; then
1159 cat <<\_ASBOX
1160 ## ------------- ##
1161 ## Output files. ##
1162 ## ------------- ##
1163 _ASBOX
1164 echo
1165 for ac_var in $ac_subst_files
1167 eval ac_val=$`echo $ac_var`
1168 echo "$ac_var='"'"'$ac_val'"'"'"
1169 done | sort
1170 echo
1173 if test -s confdefs.h; then
1174 cat <<\_ASBOX
1175 ## ----------- ##
1176 ## confdefs.h. ##
1177 ## ----------- ##
1178 _ASBOX
1179 echo
1180 sed "/^$/d" confdefs.h | sort
1181 echo
1183 test "$ac_signal" != 0 &&
1184 echo "$as_me: caught signal $ac_signal"
1185 echo "$as_me: exit $exit_status"
1186 } >&5
1187 rm -f core *.core &&
1188 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1189 exit $exit_status
1191 for ac_signal in 1 2 13 15; do
1192 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1193 done
1194 ac_signal=0
1196 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1197 rm -rf conftest* confdefs.h
1198 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1199 echo >confdefs.h
1201 # Predefined preprocessor variables.
1203 cat >>confdefs.h <<_ACEOF
1204 #define PACKAGE_NAME "$PACKAGE_NAME"
1205 _ACEOF
1208 cat >>confdefs.h <<_ACEOF
1209 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1210 _ACEOF
1213 cat >>confdefs.h <<_ACEOF
1214 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1215 _ACEOF
1218 cat >>confdefs.h <<_ACEOF
1219 #define PACKAGE_STRING "$PACKAGE_STRING"
1220 _ACEOF
1223 cat >>confdefs.h <<_ACEOF
1224 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1225 _ACEOF
1228 # Let the site file select an alternate cache file if it wants to.
1229 # Prefer explicitly selected file to automatically selected ones.
1230 if test -z "$CONFIG_SITE"; then
1231 if test "x$prefix" != xNONE; then
1232 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1233 else
1234 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1237 for ac_site_file in $CONFIG_SITE; do
1238 if test -r "$ac_site_file"; then
1239 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1240 echo "$as_me: loading site script $ac_site_file" >&6;}
1241 sed 's/^/| /' "$ac_site_file" >&5
1242 . "$ac_site_file"
1244 done
1246 if test -r "$cache_file"; then
1247 # Some versions of bash will fail to source /dev/null (special
1248 # files actually), so we avoid doing that.
1249 if test -f "$cache_file"; then
1250 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1251 echo "$as_me: loading cache $cache_file" >&6;}
1252 case $cache_file in
1253 [\\/]* | ?:[\\/]* ) . $cache_file;;
1254 *) . ./$cache_file;;
1255 esac
1257 else
1258 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1259 echo "$as_me: creating cache $cache_file" >&6;}
1260 >$cache_file
1263 # Check that the precious variables saved in the cache have kept the same
1264 # value.
1265 ac_cache_corrupted=false
1266 for ac_var in `(set) 2>&1 |
1267 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1268 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1269 eval ac_new_set=\$ac_env_${ac_var}_set
1270 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1271 eval ac_new_val="\$ac_env_${ac_var}_value"
1272 case $ac_old_set,$ac_new_set in
1273 set,)
1274 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1275 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1276 ac_cache_corrupted=: ;;
1277 ,set)
1278 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1279 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1280 ac_cache_corrupted=: ;;
1281 ,);;
1283 if test "x$ac_old_val" != "x$ac_new_val"; then
1284 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1285 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1286 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1287 echo "$as_me: former value: $ac_old_val" >&2;}
1288 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1289 echo "$as_me: current value: $ac_new_val" >&2;}
1290 ac_cache_corrupted=:
1291 fi;;
1292 esac
1293 # Pass precious variables to config.status.
1294 if test "$ac_new_set" = set; then
1295 case $ac_new_val in
1296 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1297 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1298 *) ac_arg=$ac_var=$ac_new_val ;;
1299 esac
1300 case " $ac_configure_args " in
1301 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1302 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1303 esac
1305 done
1306 if $ac_cache_corrupted; then
1307 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1308 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1309 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1310 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1311 { (exit 1); exit 1; }; }
1314 ac_ext=c
1315 ac_cpp='$CPP $CPPFLAGS'
1316 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1317 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1318 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1338 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
1341 test "$program_prefix" != NONE &&
1342 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1343 # Use a double $ so make ignores it.
1344 test "$program_suffix" != NONE &&
1345 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1346 # Double any \ or $. echo might interpret backslashes.
1347 # By default was `s,x,x', remove it if useless.
1348 cat <<\_ACEOF >conftest.sed
1349 s/[\\$]/&&/g;s/;s,x,x,$//
1350 _ACEOF
1351 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1352 rm conftest.sed
1355 lispdir='${datadir}/emacs/${version}/lisp'
1356 locallisppath='${datadir}/emacs/${version}/site-lisp:'\
1357 '${datadir}/emacs/site-lisp:${datadir}/emacs/${version}/leim'
1358 lisppath='${locallisppath}:${lispdir}'
1359 etcdir='${datadir}/emacs/${version}/etc'
1360 archlibdir='${libexecdir}/emacs/${version}/${configuration}'
1361 docdir='${datadir}/emacs/${version}/etc'
1362 gamedir='${localstatedir}/games/emacs'
1364 gameuser=games
1367 # Check whether --with-gcc or --without-gcc was given.
1368 if test "${with_gcc+set}" = set; then
1369 withval="$with_gcc"
1373 # Check whether --with-pop or --without-pop was given.
1374 if test "${with_pop+set}" = set; then
1375 withval="$with_pop"
1376 if test "$withval" = yes; then
1377 cat >>confdefs.h <<\_ACEOF
1378 #define MAIL_USE_POP 1
1379 _ACEOF
1381 else :
1383 else
1384 cat >>confdefs.h <<\_ACEOF
1385 #define MAIL_USE_POP 1
1386 _ACEOF
1391 # Check whether --with-kerberos or --without-kerberos was given.
1392 if test "${with_kerberos+set}" = set; then
1393 withval="$with_kerberos"
1394 cat >>confdefs.h <<\_ACEOF
1395 #define KERBEROS 1
1396 _ACEOF
1401 # Check whether --with-kerberos5 or --without-kerberos5 was given.
1402 if test "${with_kerberos5+set}" = set; then
1403 withval="$with_kerberos5"
1404 if test "${with_kerberos5+set}" = set; then
1405 if test "${with_kerberos+set}" != set; then
1406 with_kerberos=yes
1407 cat >>confdefs.h <<\_ACEOF
1408 #define KERBEROS 1
1409 _ACEOF
1414 cat >>confdefs.h <<\_ACEOF
1415 #define KERBEROS5 1
1416 _ACEOF
1420 # Check whether --with-hesiod or --without-hesiod was given.
1421 if test "${with_hesiod+set}" = set; then
1422 withval="$with_hesiod"
1424 cat >>confdefs.h <<\_ACEOF
1425 #define HESIOD 1
1426 _ACEOF
1431 # Check whether --with-sound or --without-sound was given.
1432 if test "${with_sound+set}" = set; then
1433 withval="$with_sound"
1438 # Check whether --with-x-toolkit or --without-x-toolkit was given.
1439 if test "${with_x_toolkit+set}" = set; then
1440 withval="$with_x_toolkit"
1441 case "${withval}" in
1442 y | ye | yes ) val=athena ;;
1443 n | no ) val=no ;;
1444 l | lu | luc | luci | lucid ) val=lucid ;;
1445 a | at | ath | athe | athen | athena ) val=athena ;;
1446 m | mo | mot | moti | motif ) val=motif ;;
1447 g | gt | gtk ) val=gtk ;;
1449 { { echo "$as_me:$LINENO: error: \`--with-x-toolkit=$withval' is invalid\;
1450 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
1451 Currently, \`yes', \`athena' and \`lucid' are synonyms." >&5
1452 echo "$as_me: error: \`--with-x-toolkit=$withval' is invalid\;
1453 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
1454 Currently, \`yes', \`athena' and \`lucid' are synonyms." >&2;}
1455 { (exit 1); exit 1; }; }
1457 esac
1458 with_x_toolkit=$val
1462 # Check whether --with-xpm or --without-xpm was given.
1463 if test "${with_xpm+set}" = set; then
1464 withval="$with_xpm"
1468 # Check whether --with-jpeg or --without-jpeg was given.
1469 if test "${with_jpeg+set}" = set; then
1470 withval="$with_jpeg"
1474 # Check whether --with-tiff or --without-tiff was given.
1475 if test "${with_tiff+set}" = set; then
1476 withval="$with_tiff"
1480 # Check whether --with-gif or --without-gif was given.
1481 if test "${with_gif+set}" = set; then
1482 withval="$with_gif"
1486 # Check whether --with-png or --without-png was given.
1487 if test "${with_png+set}" = set; then
1488 withval="$with_png"
1492 # Check whether --with-gtk or --without-gtk was given.
1493 if test "${with_gtk+set}" = set; then
1494 withval="$with_gtk"
1498 # Check whether --with-pkg-config-prog or --without-pkg-config-prog was given.
1499 if test "${with_pkg_config_prog+set}" = set; then
1500 withval="$with_pkg_config_prog"
1504 # Check whether --with-toolkit-scroll-bars or --without-toolkit-scroll-bars was given.
1505 if test "${with_toolkit_scroll_bars+set}" = set; then
1506 withval="$with_toolkit_scroll_bars"
1510 # Check whether --with-xim or --without-xim was given.
1511 if test "${with_xim+set}" = set; then
1512 withval="$with_xim"
1516 # Check whether --with-carbon or --without-carbon was given.
1517 if test "${with_carbon+set}" = set; then
1518 withval="$with_carbon"
1521 # Check whether --enable-carbon-app or --disable-carbon-app was given.
1522 if test "${enable_carbon_app+set}" = set; then
1523 enableval="$enable_carbon_app"
1524 carbon_appdir_x=${enableval}
1527 # Check whether --enable-asserts or --disable-asserts was given.
1528 if test "${enable_asserts+set}" = set; then
1529 enableval="$enable_asserts"
1530 USE_XASSERTS=$enableval
1531 else
1532 USE_XASSERTS=no
1535 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1536 if test "${enable_maintainer_mode+set}" = set; then
1537 enableval="$enable_maintainer_mode"
1538 USE_MAINTAINER_MODE=$enableval
1539 else
1540 USE_MAINTAINER_MODE=no
1542 if test $USE_MAINTAINER_MODE = yes; then
1543 MAINT=
1544 else
1545 MAINT=#
1549 # Check whether --enable-locallisppath or --disable-locallisppath was given.
1550 if test "${enable_locallisppath+set}" = set; then
1551 enableval="$enable_locallisppath"
1552 if test "${enableval}" = "no"; then
1553 locallisppath=
1554 elif test "${enableval}" != "yes"; then
1555 locallisppath=${enableval}
1559 #### Make srcdir absolute, if it isn't already. It's important to
1560 #### avoid running the path through pwd unnecessarily, since pwd can
1561 #### give you automounter prefixes, which can go away. We do all this
1562 #### so Emacs can find its files when run uninstalled.
1563 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
1564 unset CDPATH
1565 case "${srcdir}" in
1566 /* ) ;;
1568 ## We may be able to use the $PWD environment variable to make this
1569 ## absolute. But sometimes PWD is inaccurate.
1570 ## Note: we used to use ${PWD} at the end instead of `pwd`,
1571 ## but that tested only for a well-formed and valid PWD,
1572 ## it did not object when PWD was well-formed and valid but just wrong.
1573 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
1574 then
1575 srcdir="$PWD"
1576 else
1577 srcdir="`(cd ${srcdir}; pwd)`"
1580 * ) srcdir="`(cd ${srcdir}; pwd)`" ;;
1581 esac
1583 #### Check if the source directory already has a configured system in it.
1584 if test `pwd` != `(cd ${srcdir} && pwd)` \
1585 && test -f "${srcdir}/src/config.h" ; then
1586 { echo "$as_me:$LINENO: WARNING: The directory tree \`${srcdir}' is being used
1587 as a build directory right now; it has been configured in its own
1588 right. To configure in another directory as well, you MUST
1589 use GNU make. If you do not have GNU make, then you must
1590 now do \`make distclean' in ${srcdir},
1591 and then run $0 again." >&5
1592 echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
1593 as a build directory right now; it has been configured in its own
1594 right. To configure in another directory as well, you MUST
1595 use GNU make. If you do not have GNU make, then you must
1596 now do \`make distclean' in ${srcdir},
1597 and then run $0 again." >&2;}
1600 #### Given the configuration name, set machfile and opsysfile to the
1601 #### names of the m/*.h and s/*.h files we should use.
1603 ### Canonicalize the configuration name.
1605 ac_aux_dir=
1606 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1607 if test -f $ac_dir/install-sh; then
1608 ac_aux_dir=$ac_dir
1609 ac_install_sh="$ac_aux_dir/install-sh -c"
1610 break
1611 elif test -f $ac_dir/install.sh; then
1612 ac_aux_dir=$ac_dir
1613 ac_install_sh="$ac_aux_dir/install.sh -c"
1614 break
1615 elif test -f $ac_dir/shtool; then
1616 ac_aux_dir=$ac_dir
1617 ac_install_sh="$ac_aux_dir/shtool install -c"
1618 break
1620 done
1621 if test -z "$ac_aux_dir"; then
1622 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1623 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1624 { (exit 1); exit 1; }; }
1626 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1627 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1628 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1630 # Make sure we can run config.sub.
1631 $ac_config_sub sun4 >/dev/null 2>&1 ||
1632 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1633 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1634 { (exit 1); exit 1; }; }
1636 echo "$as_me:$LINENO: checking build system type" >&5
1637 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1638 if test "${ac_cv_build+set}" = set; then
1639 echo $ECHO_N "(cached) $ECHO_C" >&6
1640 else
1641 ac_cv_build_alias=$build_alias
1642 test -z "$ac_cv_build_alias" &&
1643 ac_cv_build_alias=`$ac_config_guess`
1644 test -z "$ac_cv_build_alias" &&
1645 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1646 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1647 { (exit 1); exit 1; }; }
1648 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1649 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1650 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1651 { (exit 1); exit 1; }; }
1654 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1655 echo "${ECHO_T}$ac_cv_build" >&6
1656 build=$ac_cv_build
1657 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1658 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1659 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1662 echo "$as_me:$LINENO: checking host system type" >&5
1663 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1664 if test "${ac_cv_host+set}" = set; then
1665 echo $ECHO_N "(cached) $ECHO_C" >&6
1666 else
1667 ac_cv_host_alias=$host_alias
1668 test -z "$ac_cv_host_alias" &&
1669 ac_cv_host_alias=$ac_cv_build_alias
1670 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1671 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1672 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1673 { (exit 1); exit 1; }; }
1676 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1677 echo "${ECHO_T}$ac_cv_host" >&6
1678 host=$ac_cv_host
1679 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1680 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1681 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1684 canonical=$host
1685 configuration=${host_alias-$host}
1689 ### If you add support for a new configuration, add code to this
1690 ### switch statement to recognize your configuration name and select
1691 ### the appropriate operating system and machine description files.
1693 ### You would hope that you could choose an m/*.h file pretty much
1694 ### based on the machine portion of the configuration name, and an s-
1695 ### file based on the operating system portion. However, it turns out
1696 ### that each m/*.h file is pretty manufacturer-specific - for
1697 ### example, apollo.h, hp9000s300.h, mega68k, news.h, and tad68k are
1698 ### all 68000 machines; mips.h, pmax.h, and news-risc are all MIPS
1699 ### machines. So we basically have to have a special case for each
1700 ### configuration name.
1702 ### As far as handling version numbers on operating systems is
1703 ### concerned, make sure things will fail in a fixable way. If
1704 ### /etc/MACHINES doesn't say anything about version numbers, be
1705 ### prepared to handle anything reasonably. If version numbers
1706 ### matter, be sure /etc/MACHINES says something about it.
1708 ### Eric Raymond says we should accept strings like "sysvr4" to mean
1709 ### "System V Release 4"; he writes, "The old convention encouraged
1710 ### confusion between `system' and `release' levels'."
1712 machine='' opsys='' unported=no
1713 case "${canonical}" in
1715 ## FreeBSD ports
1716 *-*-freebsd* )
1717 opsys=freebsd
1718 case "${canonical}" in
1719 alpha*-*-freebsd*) machine=alpha ;;
1720 i[3456]86-*-freebsd*) machine=intel386 ;;
1721 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
2098 hppa*-*-linux-gnu* )
2099 machine=hp800 opsys=gnu-linux
2102 ## HP 9000 series 700 and 800, running HP/UX
2103 hppa*-hp-hpux* )
2104 ## Cross-compilation? Nah!
2105 case "`uname -r`" in
2106 ## Someone's system reports A.B8.05 for this.
2107 ## I wonder what other possibilities there are.
2108 *.B8.* ) machine=hp800 opsys=hpux8 ;;
2109 *.08.* ) machine=hp800 opsys=hpux8 ;;
2110 *.09.* ) machine=hp800 opsys=hpux9 ;;
2111 *) machine=hp800 opsys=hpux10 ;;
2112 esac
2114 hppa*-*-nextstep* )
2115 machine=hp800 opsys=nextstep
2118 ## Orion machines
2119 orion-orion-bsd* )
2120 machine=orion opsys=bsd4-2
2122 clipper-orion-bsd* )
2123 machine=orion105 opsys=bsd4-2
2126 ## IBM machines
2127 i[3456]86-ibm-aix1.1* )
2128 machine=ibmps2-aix opsys=usg5-2-2
2130 i[3456]86-ibm-aix1.[23]* | i[3456]86-ibm-aix* )
2131 machine=ibmps2-aix opsys=usg5-3
2133 i370-ibm-aix*)
2134 machine=ibm370aix opsys=usg5-3
2136 s390-*-linux-gnu* )
2137 machine=ibms390 opsys=gnu-linux
2139 rs6000-ibm-aix3.1* | powerpc-ibm-aix3.1* )
2140 machine=ibmrs6000 opsys=aix3-1
2142 rs6000-ibm-aix3.2.5 | powerpc-ibm-aix3.2.5 )
2143 machine=ibmrs6000 opsys=aix3-2-5
2145 rs6000-ibm-aix4.1* | powerpc-ibm-aix4.1* )
2146 machine=ibmrs6000 opsys=aix4-1
2148 rs6000-ibm-aix4.2* | powerpc-ibm-aix4.2* )
2149 machine=ibmrs6000 opsys=aix4-2
2151 rs6000-ibm-aix5* | powerpc-ibm-aix5* )
2152 machine=ibmrs6000 opsys=aix4-2
2154 rs6000-ibm-aix4.0* | powerpc-ibm-aix4.0* )
2155 machine=ibmrs6000 opsys=aix4
2157 rs6000-ibm-aix4* | powerpc-ibm-aix4* )
2158 machine=ibmrs6000 opsys=aix4-1
2160 rs6000-ibm-aix* | powerpc-ibm-aix* )
2161 machine=ibmrs6000 opsys=aix3-2
2163 romp-ibm-bsd4.3* )
2164 machine=ibmrt opsys=bsd4-3
2166 romp-ibm-bsd4.2* )
2167 machine=ibmrt opsys=bsd4-2
2169 romp-ibm-aos4.3* )
2170 machine=ibmrt opsys=bsd4-3
2172 romp-ibm-aos4.2* )
2173 machine=ibmrt opsys=bsd4-2
2175 romp-ibm-aos* )
2176 machine=ibmrt opsys=bsd4-3
2178 romp-ibm-bsd* )
2179 machine=ibmrt opsys=bsd4-3
2181 romp-ibm-aix* )
2182 machine=ibmrt-aix opsys=usg5-2-2
2185 ## Integrated Solutions `Optimum V'
2186 m68*-isi-bsd4.2* )
2187 machine=isi-ov opsys=bsd4-2
2189 m68*-isi-bsd4.3* )
2190 machine=isi-ov opsys=bsd4-3
2193 ## Intel 386 machines where we do care about the manufacturer
2194 i[3456]86-intsys-sysv* )
2195 machine=is386 opsys=usg5-2-2
2198 ## Prime EXL
2199 i[3456]86-prime-sysv* )
2200 machine=i386 opsys=usg5-3
2203 ## Sequent Symmetry running Dynix
2204 i[3456]86-sequent-bsd* )
2205 machine=symmetry opsys=bsd4-3
2208 ## Sequent Symmetry running ptx 4, which is a modified SVR4.
2209 i[3456]86-sequent-ptx4* | i[3456]86-sequent-sysv4* )
2210 machine=sequent-ptx opsys=ptx4
2211 NON_GNU_CPP=/lib/cpp
2214 ## Sequent Symmetry running DYNIX/ptx
2215 ## Use the old cpp rather than the newer ANSI one.
2216 i[3456]86-sequent-ptx* )
2217 machine=sequent-ptx opsys=ptx
2218 NON_GNU_CPP="/lib/cpp"
2221 ## ncr machine running svr4.3.
2222 i[3456]86-ncr-sysv4.3 )
2223 machine=ncr386 opsys=usg5-4-3
2226 ## Unspecified sysv on an ncr machine defaults to svr4.2.
2227 ## (Plain usg5-4 doesn't turn on POSIX signals, which we need.)
2228 i[3456]86-ncr-sysv* )
2229 machine=ncr386 opsys=usg5-4-2
2232 ## Intel Paragon OSF/1
2233 i860-intel-osf1* )
2234 machine=paragon opsys=osf1 NON_GNU_CPP=/usr/mach/lib/cpp
2237 ## Intel 860
2238 i860-*-sysv4* )
2239 machine=i860 opsys=usg5-4
2240 NON_GNU_CC="/bin/cc" # Ie, not the one in /usr/ucb/cc.
2241 NON_GNU_CPP="/usr/ccs/lib/cpp" # cc -E tokenizes macro expansion.
2244 ## Macintosh PowerPC
2245 powerpc*-*-linux-gnu* )
2246 machine=macppc opsys=gnu-linux
2249 ## Masscomp machines
2250 m68*-masscomp-rtu* )
2251 machine=masscomp opsys=rtu
2254 ## Megatest machines
2255 m68*-megatest-bsd* )
2256 machine=mega68 opsys=bsd4-2
2259 ## Workstations sold by MIPS
2260 ## This is not necessarily all workstations using the MIPS processor -
2261 ## Irises are produced by SGI, and DECstations by DEC.
2263 ## etc/MACHINES lists mips.h and mips4.h as possible machine files,
2264 ## and usg5-2-2 and bsd4-3 as possible OS files. The only guidance
2265 ## it gives for choosing between the alternatives seems to be "Use
2266 ## -machine=mips4 for RISCOS version 4; use -opsystem=bsd4-3 with
2267 ## the BSD world." I'll assume that these are instructions for
2268 ## handling two odd situations, and that every other situation
2269 ## should use mips.h and usg5-2-2, they being listed first.
2270 mips-mips-usg* )
2271 machine=mips4
2272 ## Fall through to the general code at the bottom to decide on the OS.
2274 mips-mips-riscos4* )
2275 machine=mips4 opsys=bsd4-3
2276 NON_GNU_CC="cc -systype bsd43"
2277 NON_GNU_CPP="cc -systype bsd43 -E"
2279 mips-mips-riscos5* )
2280 machine=mips4 opsys=riscos5
2281 NON_GNU_CC="cc -systype bsd43"
2282 NON_GNU_CPP="cc -systype bsd43 -E"
2284 mips-mips-bsd* )
2285 machine=mips opsys=bsd4-3
2287 mips-mips-* )
2288 machine=mips opsys=usg5-2-2
2291 ## NeXT
2292 m68*-next-* | m68k-*-nextstep* )
2293 machine=m68k opsys=nextstep
2296 ## The complete machine from National Semiconductor
2297 ns32k-ns-genix* )
2298 machine=ns32000 opsys=usg5-2
2301 ## NCR machines
2302 m68*-ncr-sysv2* | m68*-ncr-sysvr2* )
2303 machine=tower32 opsys=usg5-2-2
2305 m68*-ncr-sysv3* | m68*-ncr-sysvr3* )
2306 machine=tower32v3 opsys=usg5-3
2309 ## NEC EWS4800
2310 mips-nec-sysv4*)
2311 machine=ews4800 opsys=ux4800
2314 ## Nixdorf Targon 31
2315 m68*-nixdorf-sysv* )
2316 machine=targon31 opsys=usg5-2-2
2319 ## Nu (TI or LMI)
2320 m68*-nu-sysv* )
2321 machine=nu opsys=usg5-2
2324 ## Plexus
2325 m68*-plexus-sysv* )
2326 machine=plexus opsys=usg5-2
2329 ## Pyramid machines
2330 ## I don't really have any idea what sort of processor the Pyramid has,
2331 ## so I'm assuming it is its own architecture.
2332 pyramid-pyramid-bsd* )
2333 machine=pyramid opsys=bsd4-2
2336 ## Sequent Balance
2337 ns32k-sequent-bsd4.2* )
2338 machine=sequent opsys=bsd4-2
2340 ns32k-sequent-bsd4.3* )
2341 machine=sequent opsys=bsd4-3
2344 ## Siemens Nixdorf
2345 mips-siemens-sysv* | mips-sni-sysv*)
2346 machine=mips-siemens opsys=usg5-4
2347 NON_GNU_CC=/usr/ccs/bin/cc
2348 NON_GNU_CPP=/usr/ccs/lib/cpp
2351 ## Silicon Graphics machines
2352 ## Iris 2500 and Iris 2500 Turbo (aka the Iris 3030)
2353 m68*-sgi-iris3.5* )
2354 machine=irist opsys=iris3-5
2356 m68*-sgi-iris3.6* | m68*-sgi-iris*)
2357 machine=irist opsys=iris3-6
2359 ## Iris 4D
2360 mips-sgi-irix3* )
2361 machine=iris4d opsys=irix3-3
2363 mips-sgi-irix4* )
2364 machine=iris4d opsys=irix4-0
2366 mips-sgi-irix6.5 )
2367 machine=iris4d opsys=irix6-5
2368 # Without defining _LANGUAGE_C, things get masked out in the headers
2369 # so that, for instance, grepping for `free' in stdlib.h fails and
2370 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
2371 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
2372 NON_GCC_TEST_OPTIONS="-D_LANGUAGE_C"
2374 mips-sgi-irix6* )
2375 machine=iris4d opsys=irix6-0
2376 # It's not clear whether -D_LANGUAGE_C is necessary as it is for 6.5,
2377 # but presumably it does no harm.
2378 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
2379 # -32 probably isn't necessary in later v.6s -- anyone know which?
2380 NON_GCC_TEST_OPTIONS=-32
2382 mips-sgi-irix5.[01]* )
2383 machine=iris4d opsys=irix5-0
2385 mips-sgi-irix5* | mips-sgi-irix* )
2386 machine=iris4d opsys=irix5-2
2389 ## SONY machines
2390 m68*-sony-bsd4.2* )
2391 machine=news opsys=bsd4-2
2393 m68*-sony-bsd4.3* )
2394 machine=news opsys=bsd4-3
2396 m68*-sony-newsos3* | m68*-sony-news3*)
2397 machine=news opsys=bsd4-3
2399 mips-sony-bsd* | mips-sony-newsos4* | mips-sony-news4*)
2400 machine=news-risc opsys=bsd4-3
2402 mips-sony-newsos6* )
2403 machine=news-r6 opsys=newsos6
2405 mips-sony-news* )
2406 machine=news-risc opsys=newsos5
2409 ## Stride
2410 m68*-stride-sysv* )
2411 machine=stride opsys=usg5-2
2414 ## Suns
2415 sparc-*-linux-gnu* | sparc64-*-linux-gnu* )
2416 machine=sparc opsys=gnu-linux
2419 *-auspex-sunos* | *-sun-sunos* | *-sun-bsd* | *-sun-solaris* \
2420 | i[3456]86-*-solaris2* | i[3456]86-*-sunos5* | powerpc*-*-solaris2* \
2421 | rs6000-*-solaris2*)
2422 case "${canonical}" in
2423 m68*-sunos1* ) machine=sun1 ;;
2424 m68*-sunos2* ) machine=sun2 ;;
2425 m68* ) machine=sun3 ;;
2426 i[3456]86-sun-sunos[34]* ) machine=sun386 ;;
2427 i[3456]86-*-* ) machine=intel386 ;;
2428 powerpcle* ) machine=powerpcle ;;
2429 powerpc* | rs6000* ) machine=ibmrs6000 ;;
2430 sparc* ) machine=sparc ;;
2431 * ) unported=yes ;;
2432 esac
2433 case "${canonical}" in
2434 ## The Sun386 didn't get past 4.0.
2435 i[3456]86-*-sunos4 ) opsys=sunos4-0 ;;
2436 *-sunos4.0* ) opsys=sunos4-0 ;;
2437 *-sunos4.1.[3-9]*noshare )
2438 ## This name is sunos413 instead of sunos4-1-3
2439 ## to avoid a file name conflict on MSDOS.
2440 opsys=sunos413
2441 NON_GNU_CPP=/usr/lib/cpp
2442 NON_GCC_TEST_OPTIONS=-Bstatic
2443 GCC_TEST_OPTIONS=-static
2445 *-sunos4.1.[3-9]* | *-sunos4shr*)
2446 opsys=sunos4shr
2447 NON_GNU_CPP=/usr/lib/cpp
2449 *-sunos4* | *-sunos )
2450 opsys=sunos4-1
2451 NON_GCC_TEST_OPTIONS=-Bstatic
2452 GCC_TEST_OPTIONS=-static
2454 *-sunos5.3* | *-solaris2.3* )
2455 opsys=sol2-3
2456 NON_GNU_CPP=/usr/ccs/lib/cpp
2458 *-sunos5.4* | *-solaris2.4* )
2459 opsys=sol2-4
2460 NON_GNU_CPP=/usr/ccs/lib/cpp
2461 RANLIB="ar -ts"
2463 *-sunos5.5* | *-solaris2.5* )
2464 opsys=sol2-5
2465 NON_GNU_CPP=/usr/ccs/lib/cpp
2466 RANLIB="ar -ts"
2468 *-sunos5.6* | *-solaris2.6* )
2469 opsys=sol2-6
2470 NON_GNU_CPP=/usr/ccs/lib/cpp
2471 RANLIB="ar -ts"
2473 *-sunos5* | *-solaris* )
2474 opsys=sol2-6
2475 NON_GNU_CPP=/usr/ccs/lib/cpp
2477 * ) opsys=bsd4-2 ;;
2478 esac
2479 ## Watch out for a compiler that we know will not work.
2480 case "${canonical}" in
2481 *-solaris* | *-sunos5* )
2482 if [ "x$CC" = x/usr/ucb/cc ]; then
2483 ## /usr/ucb/cc doesn't work;
2484 ## we should find some other compiler that does work.
2485 unset CC
2488 *) ;;
2489 esac
2491 sparc-*-nextstep* )
2492 machine=sparc opsys=nextstep
2495 ## Tadpole 68k
2496 m68*-tadpole-sysv* )
2497 machine=tad68k opsys=usg5-3
2500 ## Tahoe machines
2501 tahoe-tahoe-bsd4.2* )
2502 machine=tahoe opsys=bsd4-2
2504 tahoe-tahoe-bsd4.3* )
2505 machine=tahoe opsys=bsd4-3
2508 ## Tandem Integrity S2
2509 mips-tandem-sysv* )
2510 machine=tandem-s2 opsys=usg5-3
2513 ## Tektronix XD88
2514 m88k-tektronix-sysv3* )
2515 machine=tekxd88 opsys=usg5-3
2518 ## Tektronix 16000 box (6130?)
2519 ns16k-tektronix-bsd* )
2520 machine=ns16000 opsys=bsd4-2
2522 ## Tektronix 4300
2523 ## src/m/tek4300.h hints that this is a m68k machine.
2524 m68*-tektronix-bsd* )
2525 machine=tek4300 opsys=bsd4-3
2528 ## Titan P2 or P3
2529 ## We seem to have lost the machine-description file titan.h!
2530 titan-titan-sysv* )
2531 machine=titan opsys=usg5-3
2534 ## Ustation E30 (SS5E)
2535 m68*-unisys-uniplus* )
2536 machine=ustation opsystem=unipl5-2
2539 ## Vaxen.
2540 vax-dec-* )
2541 machine=vax
2542 case "${canonical}" in
2543 *-bsd4.1* ) opsys=bsd4-1 ;;
2544 *-bsd4.2* | *-ultrix[0-3].* | *-ultrix4.0* ) opsys=bsd4-2 ;;
2545 *-bsd4.3* | *-ultrix* ) opsys=bsd4-3 ;;
2546 *-sysv[01]* | *-sysvr[01]* ) opsys=usg5-0 ;;
2547 *-sysv2* | *-sysvr2* ) opsys=usg5-2 ;;
2548 *-vms* ) opsys=vms ;;
2549 * ) unported=yes
2550 esac
2553 ## Whitechapel MG1
2554 ns16k-whitechapel-* )
2555 machine=mg1
2556 ## We don't know what sort of OS runs on these; we'll let the
2557 ## operating system guessing code below try.
2560 ## Wicat
2561 m68*-wicat-sysv* )
2562 machine=wicat opsys=usg5-2
2565 ## IA-64
2566 ia64*-*-linux* )
2567 machine=ia64 opsys=gnu-linux
2570 ## Intel 386 machines where we don't care about the manufacturer
2571 i[3456]86-*-* )
2572 machine=intel386
2573 case "${canonical}" in
2574 *-cygwin ) opsys=cygwin ;;
2575 *-darwin* ) opsys=darwin
2576 CPP="${CC-cc} -E -no-cpp-precomp"
2578 *-isc1.* | *-isc2.[01]* ) opsys=386-ix ;;
2579 *-isc2.2* ) opsys=isc2-2 ;;
2580 *-isc4.0* ) opsys=isc4-0 ;;
2581 *-isc4.* ) opsys=isc4-1
2582 GCC_TEST_OPTIONS=-posix
2583 NON_GCC_TEST_OPTIONS=-Xp
2585 *-isc* ) opsys=isc3-0 ;;
2586 *-esix5* ) opsys=esix5r4; NON_GNU_CPP=/usr/lib/cpp ;;
2587 *-esix* ) opsys=esix ;;
2588 *-xenix* ) opsys=xenix ;;
2589 *-linux-gnu* ) opsys=gnu-linux ;;
2590 *-sco3.2v4* ) opsys=sco4 ; NON_GNU_CPP=/lib/cpp ;;
2591 *-sco3.2v5* ) opsys=sco5
2592 NON_GNU_CPP=/lib/cpp
2593 # Prevent -belf from being passed to $CPP.
2594 # /lib/cpp does not accept it.
2595 OVERRIDE_CPPFLAGS=" "
2597 *-sysv4.2uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
2598 *-sysv5uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
2599 *-sysv5OpenUNIX* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
2600 *-386bsd* ) opsys=386bsd ;;
2601 *-nextstep* ) opsys=nextstep ;;
2602 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
2603 esac
2606 ## m68k Linux-based GNU system
2607 m68k-*-linux-gnu* )
2608 machine=m68k opsys=gnu-linux
2611 ## Mips Linux-based GNU system
2612 mips-*-linux-gnu* | mipsel-*-linux-gnu* )
2613 machine=mips opsys=gnu-linux
2616 ## UXP/DS
2617 sparc-fujitsu-sysv4* )
2618 machine=sparc opsys=uxpds
2619 NON_GNU_CPP=/usr/ccs/lib/cpp
2620 RANLIB="ar -ts"
2623 ## UXP/V
2624 f301-fujitsu-uxpv4.1)
2625 machine=f301 opsys=uxpv
2628 ## Darwin / Mac OS X
2629 powerpc-apple-darwin* )
2630 machine=powermac opsys=darwin
2631 # Define CPP as follows to make autoconf work correctly.
2632 CPP="${CC-cc} -E -no-cpp-precomp"
2633 # Use fink packages if available.
2634 if test -d /sw/include && test -d /sw/lib; then
2635 GCC_TEST_OPTIONS="-I/sw/include -L/sw/lib"
2636 CPP="${CPP} ${GCC_TEST_OPTIONS}"
2637 NON_GCC_TEST_OPTIONS=${GCC_TEST_OPTIONS}
2641 ## AMD x86-64 Linux-based GNU system
2642 x86_64-*-linux-gnu* )
2643 machine=amdx86-64 opsys=gnu-linux
2647 unported=yes
2649 esac
2651 ### If the code above didn't choose an operating system, just choose
2652 ### an operating system based on the configuration name. You really
2653 ### only want to use this when you have no idea what the right
2654 ### operating system is; if you know what operating systems a machine
2655 ### runs, it's cleaner to make it explicit in the case statement
2656 ### above.
2657 if test x"${opsys}" = x; then
2658 case "${canonical}" in
2659 *-gnu* ) opsys=gnu ;;
2660 *-bsd4.[01] ) opsys=bsd4-1 ;;
2661 *-bsd4.2 ) opsys=bsd4-2 ;;
2662 *-bsd4.3 ) opsys=bsd4-3 ;;
2663 *-sysv0 | *-sysvr0 ) opsys=usg5-0 ;;
2664 *-sysv2 | *-sysvr2 ) opsys=usg5-2 ;;
2665 *-sysv2.2 | *-sysvr2.2 ) opsys=usg5-2-2 ;;
2666 *-sysv3* | *-sysvr3* ) opsys=usg5-3 ;;
2667 *-sysv4.2uw* ) opsys=unixware ;;
2668 *-sysv5uw* ) opsys=unixware ;;
2669 *-sysv5OpenUNIX* ) opsys=unixware ;;
2670 *-sysv4.1* | *-sysvr4.1* )
2671 NON_GNU_CPP=/usr/lib/cpp
2672 opsys=usg5-4 ;;
2673 *-sysv4.[2-9]* | *-sysvr4.[2-9]* )
2674 if [ x$NON_GNU_CPP = x ]; then
2675 if [ -f /usr/ccs/lib/cpp ]; then
2676 NON_GNU_CPP=/usr/ccs/lib/cpp
2677 else
2678 NON_GNU_CPP=/lib/cpp
2681 opsys=usg5-4-2 ;;
2682 *-sysv4* | *-sysvr4* ) opsys=usg5-4 ;;
2684 unported=yes
2686 esac
2691 if test $unported = yes; then
2692 { { echo "$as_me:$LINENO: error: Emacs hasn't been ported to \`${canonical}' systems.
2693 Check \`etc/MACHINES' for recognized configuration names." >&5
2694 echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems.
2695 Check \`etc/MACHINES' for recognized configuration names." >&2;}
2696 { (exit 1); exit 1; }; }
2699 machfile="m/${machine}.h"
2700 opsysfile="s/${opsys}.h"
2703 #### Choose a compiler.
2704 test -n "$CC" && cc_specified=yes
2706 # Save the value of CFLAGS that the user specified.
2707 SPECIFIED_CFLAGS="$CFLAGS"
2709 case ${with_gcc} in
2710 "yes" ) CC="gcc" GCC=yes ;;
2711 "no" ) : ${CC=cc} ;;
2713 esac
2714 ac_ext=c
2715 ac_cpp='$CPP $CPPFLAGS'
2716 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2717 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2718 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2719 if test -n "$ac_tool_prefix"; then
2720 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2721 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2722 echo "$as_me:$LINENO: checking for $ac_word" >&5
2723 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2724 if test "${ac_cv_prog_CC+set}" = set; then
2725 echo $ECHO_N "(cached) $ECHO_C" >&6
2726 else
2727 if test -n "$CC"; then
2728 ac_cv_prog_CC="$CC" # Let the user override the test.
2729 else
2730 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2731 for as_dir in $PATH
2733 IFS=$as_save_IFS
2734 test -z "$as_dir" && as_dir=.
2735 for ac_exec_ext in '' $ac_executable_extensions; do
2736 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2737 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2738 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2739 break 2
2741 done
2742 done
2746 CC=$ac_cv_prog_CC
2747 if test -n "$CC"; then
2748 echo "$as_me:$LINENO: result: $CC" >&5
2749 echo "${ECHO_T}$CC" >&6
2750 else
2751 echo "$as_me:$LINENO: result: no" >&5
2752 echo "${ECHO_T}no" >&6
2756 if test -z "$ac_cv_prog_CC"; then
2757 ac_ct_CC=$CC
2758 # Extract the first word of "gcc", so it can be a program name with args.
2759 set dummy gcc; ac_word=$2
2760 echo "$as_me:$LINENO: checking for $ac_word" >&5
2761 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2762 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2763 echo $ECHO_N "(cached) $ECHO_C" >&6
2764 else
2765 if test -n "$ac_ct_CC"; then
2766 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2767 else
2768 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2769 for as_dir in $PATH
2771 IFS=$as_save_IFS
2772 test -z "$as_dir" && as_dir=.
2773 for ac_exec_ext in '' $ac_executable_extensions; do
2774 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2775 ac_cv_prog_ac_ct_CC="gcc"
2776 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2777 break 2
2779 done
2780 done
2784 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2785 if test -n "$ac_ct_CC"; then
2786 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2787 echo "${ECHO_T}$ac_ct_CC" >&6
2788 else
2789 echo "$as_me:$LINENO: result: no" >&5
2790 echo "${ECHO_T}no" >&6
2793 CC=$ac_ct_CC
2794 else
2795 CC="$ac_cv_prog_CC"
2798 if test -z "$CC"; then
2799 if test -n "$ac_tool_prefix"; then
2800 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2801 set dummy ${ac_tool_prefix}cc; ac_word=$2
2802 echo "$as_me:$LINENO: checking for $ac_word" >&5
2803 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2804 if test "${ac_cv_prog_CC+set}" = set; then
2805 echo $ECHO_N "(cached) $ECHO_C" >&6
2806 else
2807 if test -n "$CC"; then
2808 ac_cv_prog_CC="$CC" # Let the user override the test.
2809 else
2810 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2811 for as_dir in $PATH
2813 IFS=$as_save_IFS
2814 test -z "$as_dir" && as_dir=.
2815 for ac_exec_ext in '' $ac_executable_extensions; do
2816 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2817 ac_cv_prog_CC="${ac_tool_prefix}cc"
2818 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2819 break 2
2821 done
2822 done
2826 CC=$ac_cv_prog_CC
2827 if test -n "$CC"; then
2828 echo "$as_me:$LINENO: result: $CC" >&5
2829 echo "${ECHO_T}$CC" >&6
2830 else
2831 echo "$as_me:$LINENO: result: no" >&5
2832 echo "${ECHO_T}no" >&6
2836 if test -z "$ac_cv_prog_CC"; then
2837 ac_ct_CC=$CC
2838 # Extract the first word of "cc", so it can be a program name with args.
2839 set dummy cc; ac_word=$2
2840 echo "$as_me:$LINENO: checking for $ac_word" >&5
2841 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2842 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2843 echo $ECHO_N "(cached) $ECHO_C" >&6
2844 else
2845 if test -n "$ac_ct_CC"; then
2846 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2847 else
2848 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2849 for as_dir in $PATH
2851 IFS=$as_save_IFS
2852 test -z "$as_dir" && as_dir=.
2853 for ac_exec_ext in '' $ac_executable_extensions; do
2854 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2855 ac_cv_prog_ac_ct_CC="cc"
2856 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2857 break 2
2859 done
2860 done
2864 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2865 if test -n "$ac_ct_CC"; then
2866 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2867 echo "${ECHO_T}$ac_ct_CC" >&6
2868 else
2869 echo "$as_me:$LINENO: result: no" >&5
2870 echo "${ECHO_T}no" >&6
2873 CC=$ac_ct_CC
2874 else
2875 CC="$ac_cv_prog_CC"
2879 if test -z "$CC"; then
2880 # Extract the first word of "cc", so it can be a program name with args.
2881 set dummy cc; ac_word=$2
2882 echo "$as_me:$LINENO: checking for $ac_word" >&5
2883 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2884 if test "${ac_cv_prog_CC+set}" = set; then
2885 echo $ECHO_N "(cached) $ECHO_C" >&6
2886 else
2887 if test -n "$CC"; then
2888 ac_cv_prog_CC="$CC" # Let the user override the test.
2889 else
2890 ac_prog_rejected=no
2891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2892 for as_dir in $PATH
2894 IFS=$as_save_IFS
2895 test -z "$as_dir" && as_dir=.
2896 for ac_exec_ext in '' $ac_executable_extensions; do
2897 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2898 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2899 ac_prog_rejected=yes
2900 continue
2902 ac_cv_prog_CC="cc"
2903 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2904 break 2
2906 done
2907 done
2909 if test $ac_prog_rejected = yes; then
2910 # We found a bogon in the path, so make sure we never use it.
2911 set dummy $ac_cv_prog_CC
2912 shift
2913 if test $# != 0; then
2914 # We chose a different compiler from the bogus one.
2915 # However, it has the same basename, so the bogon will be chosen
2916 # first if we set CC to just the basename; use the full file name.
2917 shift
2918 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2923 CC=$ac_cv_prog_CC
2924 if test -n "$CC"; then
2925 echo "$as_me:$LINENO: result: $CC" >&5
2926 echo "${ECHO_T}$CC" >&6
2927 else
2928 echo "$as_me:$LINENO: result: no" >&5
2929 echo "${ECHO_T}no" >&6
2933 if test -z "$CC"; then
2934 if test -n "$ac_tool_prefix"; then
2935 for ac_prog in cl
2937 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2938 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2939 echo "$as_me:$LINENO: checking for $ac_word" >&5
2940 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2941 if test "${ac_cv_prog_CC+set}" = set; then
2942 echo $ECHO_N "(cached) $ECHO_C" >&6
2943 else
2944 if test -n "$CC"; then
2945 ac_cv_prog_CC="$CC" # Let the user override the test.
2946 else
2947 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2948 for as_dir in $PATH
2950 IFS=$as_save_IFS
2951 test -z "$as_dir" && as_dir=.
2952 for ac_exec_ext in '' $ac_executable_extensions; do
2953 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2954 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2955 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2956 break 2
2958 done
2959 done
2963 CC=$ac_cv_prog_CC
2964 if test -n "$CC"; then
2965 echo "$as_me:$LINENO: result: $CC" >&5
2966 echo "${ECHO_T}$CC" >&6
2967 else
2968 echo "$as_me:$LINENO: result: no" >&5
2969 echo "${ECHO_T}no" >&6
2972 test -n "$CC" && break
2973 done
2975 if test -z "$CC"; then
2976 ac_ct_CC=$CC
2977 for ac_prog in cl
2979 # Extract the first word of "$ac_prog", so it can be a program name with args.
2980 set dummy $ac_prog; ac_word=$2
2981 echo "$as_me:$LINENO: checking for $ac_word" >&5
2982 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2983 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2984 echo $ECHO_N "(cached) $ECHO_C" >&6
2985 else
2986 if test -n "$ac_ct_CC"; then
2987 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2988 else
2989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2990 for as_dir in $PATH
2992 IFS=$as_save_IFS
2993 test -z "$as_dir" && as_dir=.
2994 for ac_exec_ext in '' $ac_executable_extensions; do
2995 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2996 ac_cv_prog_ac_ct_CC="$ac_prog"
2997 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2998 break 2
3000 done
3001 done
3005 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3006 if test -n "$ac_ct_CC"; then
3007 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3008 echo "${ECHO_T}$ac_ct_CC" >&6
3009 else
3010 echo "$as_me:$LINENO: result: no" >&5
3011 echo "${ECHO_T}no" >&6
3014 test -n "$ac_ct_CC" && break
3015 done
3017 CC=$ac_ct_CC
3023 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3024 See \`config.log' for more details." >&5
3025 echo "$as_me: error: no acceptable C compiler found in \$PATH
3026 See \`config.log' for more details." >&2;}
3027 { (exit 1); exit 1; }; }
3029 # Provide some information about the compiler.
3030 echo "$as_me:$LINENO:" \
3031 "checking for C compiler version" >&5
3032 ac_compiler=`set X $ac_compile; echo $2`
3033 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3034 (eval $ac_compiler --version </dev/null >&5) 2>&5
3035 ac_status=$?
3036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3037 (exit $ac_status); }
3038 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3039 (eval $ac_compiler -v </dev/null >&5) 2>&5
3040 ac_status=$?
3041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3042 (exit $ac_status); }
3043 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3044 (eval $ac_compiler -V </dev/null >&5) 2>&5
3045 ac_status=$?
3046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3047 (exit $ac_status); }
3049 cat >conftest.$ac_ext <<_ACEOF
3050 /* confdefs.h. */
3051 _ACEOF
3052 cat confdefs.h >>conftest.$ac_ext
3053 cat >>conftest.$ac_ext <<_ACEOF
3054 /* end confdefs.h. */
3057 main ()
3061 return 0;
3063 _ACEOF
3064 ac_clean_files_save=$ac_clean_files
3065 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3066 # Try to create an executable without -o first, disregard a.out.
3067 # It will help us diagnose broken compilers, and finding out an intuition
3068 # of exeext.
3069 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3070 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
3071 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3072 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
3073 (eval $ac_link_default) 2>&5
3074 ac_status=$?
3075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3076 (exit $ac_status); }; then
3077 # Find the output, starting from the most likely. This scheme is
3078 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
3079 # resort.
3081 # Be careful to initialize this variable, since it used to be cached.
3082 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
3083 ac_cv_exeext=
3084 # b.out is created by i960 compilers.
3085 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
3087 test -f "$ac_file" || continue
3088 case $ac_file in
3089 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
3091 conftest.$ac_ext )
3092 # This is the source file.
3094 [ab].out )
3095 # We found the default executable, but exeext='' is most
3096 # certainly right.
3097 break;;
3098 *.* )
3099 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3100 # FIXME: I believe we export ac_cv_exeext for Libtool,
3101 # but it would be cool to find out if it's true. Does anybody
3102 # maintain Libtool? --akim.
3103 export ac_cv_exeext
3104 break;;
3106 break;;
3107 esac
3108 done
3109 else
3110 echo "$as_me: failed program was:" >&5
3111 sed 's/^/| /' conftest.$ac_ext >&5
3113 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3114 See \`config.log' for more details." >&5
3115 echo "$as_me: error: C compiler cannot create executables
3116 See \`config.log' for more details." >&2;}
3117 { (exit 77); exit 77; }; }
3120 ac_exeext=$ac_cv_exeext
3121 echo "$as_me:$LINENO: result: $ac_file" >&5
3122 echo "${ECHO_T}$ac_file" >&6
3124 # Check the compiler produces executables we can run. If not, either
3125 # the compiler is broken, or we cross compile.
3126 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3127 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
3128 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3129 # If not cross compiling, check that we can run a simple program.
3130 if test "$cross_compiling" != yes; then
3131 if { ac_try='./$ac_file'
3132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3133 (eval $ac_try) 2>&5
3134 ac_status=$?
3135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3136 (exit $ac_status); }; }; then
3137 cross_compiling=no
3138 else
3139 if test "$cross_compiling" = maybe; then
3140 cross_compiling=yes
3141 else
3142 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3143 If you meant to cross compile, use \`--host'.
3144 See \`config.log' for more details." >&5
3145 echo "$as_me: error: cannot run C compiled programs.
3146 If you meant to cross compile, use \`--host'.
3147 See \`config.log' for more details." >&2;}
3148 { (exit 1); exit 1; }; }
3152 echo "$as_me:$LINENO: result: yes" >&5
3153 echo "${ECHO_T}yes" >&6
3155 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3156 ac_clean_files=$ac_clean_files_save
3157 # Check the compiler produces executables we can run. If not, either
3158 # the compiler is broken, or we cross compile.
3159 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3160 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
3161 echo "$as_me:$LINENO: result: $cross_compiling" >&5
3162 echo "${ECHO_T}$cross_compiling" >&6
3164 echo "$as_me:$LINENO: checking for suffix of executables" >&5
3165 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
3166 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3167 (eval $ac_link) 2>&5
3168 ac_status=$?
3169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3170 (exit $ac_status); }; then
3171 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3172 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3173 # work properly (i.e., refer to `conftest.exe'), while it won't with
3174 # `rm'.
3175 for ac_file in conftest.exe conftest conftest.*; do
3176 test -f "$ac_file" || continue
3177 case $ac_file in
3178 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
3179 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3180 export ac_cv_exeext
3181 break;;
3182 * ) break;;
3183 esac
3184 done
3185 else
3186 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3187 See \`config.log' for more details." >&5
3188 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3189 See \`config.log' for more details." >&2;}
3190 { (exit 1); exit 1; }; }
3193 rm -f conftest$ac_cv_exeext
3194 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3195 echo "${ECHO_T}$ac_cv_exeext" >&6
3197 rm -f conftest.$ac_ext
3198 EXEEXT=$ac_cv_exeext
3199 ac_exeext=$EXEEXT
3200 echo "$as_me:$LINENO: checking for suffix of object files" >&5
3201 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
3202 if test "${ac_cv_objext+set}" = set; then
3203 echo $ECHO_N "(cached) $ECHO_C" >&6
3204 else
3205 cat >conftest.$ac_ext <<_ACEOF
3206 /* confdefs.h. */
3207 _ACEOF
3208 cat confdefs.h >>conftest.$ac_ext
3209 cat >>conftest.$ac_ext <<_ACEOF
3210 /* end confdefs.h. */
3213 main ()
3217 return 0;
3219 _ACEOF
3220 rm -f conftest.o conftest.obj
3221 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3222 (eval $ac_compile) 2>&5
3223 ac_status=$?
3224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3225 (exit $ac_status); }; then
3226 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
3227 case $ac_file in
3228 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
3229 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3230 break;;
3231 esac
3232 done
3233 else
3234 echo "$as_me: failed program was:" >&5
3235 sed 's/^/| /' conftest.$ac_ext >&5
3237 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3238 See \`config.log' for more details." >&5
3239 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3240 See \`config.log' for more details." >&2;}
3241 { (exit 1); exit 1; }; }
3244 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3246 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3247 echo "${ECHO_T}$ac_cv_objext" >&6
3248 OBJEXT=$ac_cv_objext
3249 ac_objext=$OBJEXT
3250 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3251 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3252 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3253 echo $ECHO_N "(cached) $ECHO_C" >&6
3254 else
3255 cat >conftest.$ac_ext <<_ACEOF
3256 /* confdefs.h. */
3257 _ACEOF
3258 cat confdefs.h >>conftest.$ac_ext
3259 cat >>conftest.$ac_ext <<_ACEOF
3260 /* end confdefs.h. */
3263 main ()
3265 #ifndef __GNUC__
3266 choke me
3267 #endif
3270 return 0;
3272 _ACEOF
3273 rm -f conftest.$ac_objext
3274 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3275 (eval $ac_compile) 2>conftest.er1
3276 ac_status=$?
3277 grep -v '^ *+' conftest.er1 >conftest.err
3278 rm -f conftest.er1
3279 cat conftest.err >&5
3280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3281 (exit $ac_status); } &&
3282 { ac_try='test -z "$ac_c_werror_flag"
3283 || test ! -s conftest.err'
3284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3285 (eval $ac_try) 2>&5
3286 ac_status=$?
3287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3288 (exit $ac_status); }; } &&
3289 { ac_try='test -s conftest.$ac_objext'
3290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3291 (eval $ac_try) 2>&5
3292 ac_status=$?
3293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3294 (exit $ac_status); }; }; then
3295 ac_compiler_gnu=yes
3296 else
3297 echo "$as_me: failed program was:" >&5
3298 sed 's/^/| /' conftest.$ac_ext >&5
3300 ac_compiler_gnu=no
3302 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3303 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3306 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3307 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3308 GCC=`test $ac_compiler_gnu = yes && echo yes`
3309 ac_test_CFLAGS=${CFLAGS+set}
3310 ac_save_CFLAGS=$CFLAGS
3311 CFLAGS="-g"
3312 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3313 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3314 if test "${ac_cv_prog_cc_g+set}" = set; then
3315 echo $ECHO_N "(cached) $ECHO_C" >&6
3316 else
3317 cat >conftest.$ac_ext <<_ACEOF
3318 /* confdefs.h. */
3319 _ACEOF
3320 cat confdefs.h >>conftest.$ac_ext
3321 cat >>conftest.$ac_ext <<_ACEOF
3322 /* end confdefs.h. */
3325 main ()
3329 return 0;
3331 _ACEOF
3332 rm -f conftest.$ac_objext
3333 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3334 (eval $ac_compile) 2>conftest.er1
3335 ac_status=$?
3336 grep -v '^ *+' conftest.er1 >conftest.err
3337 rm -f conftest.er1
3338 cat conftest.err >&5
3339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3340 (exit $ac_status); } &&
3341 { ac_try='test -z "$ac_c_werror_flag"
3342 || test ! -s conftest.err'
3343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3344 (eval $ac_try) 2>&5
3345 ac_status=$?
3346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3347 (exit $ac_status); }; } &&
3348 { ac_try='test -s conftest.$ac_objext'
3349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3350 (eval $ac_try) 2>&5
3351 ac_status=$?
3352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3353 (exit $ac_status); }; }; then
3354 ac_cv_prog_cc_g=yes
3355 else
3356 echo "$as_me: failed program was:" >&5
3357 sed 's/^/| /' conftest.$ac_ext >&5
3359 ac_cv_prog_cc_g=no
3361 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3363 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3364 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3365 if test "$ac_test_CFLAGS" = set; then
3366 CFLAGS=$ac_save_CFLAGS
3367 elif test $ac_cv_prog_cc_g = yes; then
3368 if test "$GCC" = yes; then
3369 CFLAGS="-g -O2"
3370 else
3371 CFLAGS="-g"
3373 else
3374 if test "$GCC" = yes; then
3375 CFLAGS="-O2"
3376 else
3377 CFLAGS=
3380 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3381 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3382 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3383 echo $ECHO_N "(cached) $ECHO_C" >&6
3384 else
3385 ac_cv_prog_cc_stdc=no
3386 ac_save_CC=$CC
3387 cat >conftest.$ac_ext <<_ACEOF
3388 /* confdefs.h. */
3389 _ACEOF
3390 cat confdefs.h >>conftest.$ac_ext
3391 cat >>conftest.$ac_ext <<_ACEOF
3392 /* end confdefs.h. */
3393 #include <stdarg.h>
3394 #include <stdio.h>
3395 #include <sys/types.h>
3396 #include <sys/stat.h>
3397 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3398 struct buf { int x; };
3399 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3400 static char *e (p, i)
3401 char **p;
3402 int i;
3404 return p[i];
3406 static char *f (char * (*g) (char **, int), char **p, ...)
3408 char *s;
3409 va_list v;
3410 va_start (v,p);
3411 s = g (p, va_arg (v,int));
3412 va_end (v);
3413 return s;
3416 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3417 function prototypes and stuff, but not '\xHH' hex character constants.
3418 These don't provoke an error unfortunately, instead are silently treated
3419 as 'x'. The following induces an error, until -std1 is added to get
3420 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3421 array size at least. It's necessary to write '\x00'==0 to get something
3422 that's true only with -std1. */
3423 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3425 int test (int i, double x);
3426 struct s1 {int (*f) (int a);};
3427 struct s2 {int (*f) (double a);};
3428 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3429 int argc;
3430 char **argv;
3432 main ()
3434 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3436 return 0;
3438 _ACEOF
3439 # Don't try gcc -ansi; that turns off useful extensions and
3440 # breaks some systems' header files.
3441 # AIX -qlanglvl=ansi
3442 # Ultrix and OSF/1 -std1
3443 # HP-UX 10.20 and later -Ae
3444 # HP-UX older versions -Aa -D_HPUX_SOURCE
3445 # SVR4 -Xc -D__EXTENSIONS__
3446 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3448 CC="$ac_save_CC $ac_arg"
3449 rm -f conftest.$ac_objext
3450 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3451 (eval $ac_compile) 2>conftest.er1
3452 ac_status=$?
3453 grep -v '^ *+' conftest.er1 >conftest.err
3454 rm -f conftest.er1
3455 cat conftest.err >&5
3456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3457 (exit $ac_status); } &&
3458 { ac_try='test -z "$ac_c_werror_flag"
3459 || test ! -s conftest.err'
3460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3461 (eval $ac_try) 2>&5
3462 ac_status=$?
3463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3464 (exit $ac_status); }; } &&
3465 { ac_try='test -s conftest.$ac_objext'
3466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3467 (eval $ac_try) 2>&5
3468 ac_status=$?
3469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3470 (exit $ac_status); }; }; then
3471 ac_cv_prog_cc_stdc=$ac_arg
3472 break
3473 else
3474 echo "$as_me: failed program was:" >&5
3475 sed 's/^/| /' conftest.$ac_ext >&5
3478 rm -f conftest.err conftest.$ac_objext
3479 done
3480 rm -f conftest.$ac_ext conftest.$ac_objext
3481 CC=$ac_save_CC
3485 case "x$ac_cv_prog_cc_stdc" in
3486 x|xno)
3487 echo "$as_me:$LINENO: result: none needed" >&5
3488 echo "${ECHO_T}none needed" >&6 ;;
3490 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3491 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3492 CC="$CC $ac_cv_prog_cc_stdc" ;;
3493 esac
3495 # Some people use a C++ compiler to compile C. Since we use `exit',
3496 # in C++ we need to declare it. In case someone uses the same compiler
3497 # for both compiling C and C++ we need to have the C++ compiler decide
3498 # the declaration of exit, since it's the most demanding environment.
3499 cat >conftest.$ac_ext <<_ACEOF
3500 #ifndef __cplusplus
3501 choke me
3502 #endif
3503 _ACEOF
3504 rm -f conftest.$ac_objext
3505 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3506 (eval $ac_compile) 2>conftest.er1
3507 ac_status=$?
3508 grep -v '^ *+' conftest.er1 >conftest.err
3509 rm -f conftest.er1
3510 cat conftest.err >&5
3511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3512 (exit $ac_status); } &&
3513 { ac_try='test -z "$ac_c_werror_flag"
3514 || 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"
3560 || test ! -s conftest.err'
3561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3562 (eval $ac_try) 2>&5
3563 ac_status=$?
3564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3565 (exit $ac_status); }; } &&
3566 { ac_try='test -s conftest.$ac_objext'
3567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3568 (eval $ac_try) 2>&5
3569 ac_status=$?
3570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3571 (exit $ac_status); }; }; then
3573 else
3574 echo "$as_me: failed program was:" >&5
3575 sed 's/^/| /' conftest.$ac_ext >&5
3577 continue
3579 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3580 cat >conftest.$ac_ext <<_ACEOF
3581 /* confdefs.h. */
3582 _ACEOF
3583 cat confdefs.h >>conftest.$ac_ext
3584 cat >>conftest.$ac_ext <<_ACEOF
3585 /* end confdefs.h. */
3586 $ac_declaration
3588 main ()
3590 exit (42);
3592 return 0;
3594 _ACEOF
3595 rm -f conftest.$ac_objext
3596 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3597 (eval $ac_compile) 2>conftest.er1
3598 ac_status=$?
3599 grep -v '^ *+' conftest.er1 >conftest.err
3600 rm -f conftest.er1
3601 cat conftest.err >&5
3602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3603 (exit $ac_status); } &&
3604 { ac_try='test -z "$ac_c_werror_flag"
3605 || test ! -s conftest.err'
3606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3607 (eval $ac_try) 2>&5
3608 ac_status=$?
3609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3610 (exit $ac_status); }; } &&
3611 { ac_try='test -s conftest.$ac_objext'
3612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3613 (eval $ac_try) 2>&5
3614 ac_status=$?
3615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3616 (exit $ac_status); }; }; then
3617 break
3618 else
3619 echo "$as_me: failed program was:" >&5
3620 sed 's/^/| /' conftest.$ac_ext >&5
3623 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3624 done
3625 rm -f conftest*
3626 if test -n "$ac_declaration"; then
3627 echo '#ifdef __cplusplus' >>confdefs.h
3628 echo $ac_declaration >>confdefs.h
3629 echo '#endif' >>confdefs.h
3632 else
3633 echo "$as_me: failed program was:" >&5
3634 sed 's/^/| /' conftest.$ac_ext >&5
3637 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3638 ac_ext=c
3639 ac_cpp='$CPP $CPPFLAGS'
3640 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3641 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3642 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3645 # On Suns, sometimes $CPP names a directory.
3646 if test -n "$CPP" && test -d "$CPP"; then
3647 CPP=
3650 #### Some systems specify a CPP to use unless we are using GCC.
3651 #### Now that we know whether we are using GCC, we can decide whether
3652 #### to use that one.
3653 if test "x$NON_GNU_CPP" != x && test x$GCC != xyes && test "x$CPP" = x
3654 then
3655 CPP="$NON_GNU_CPP"
3658 #### Some systems specify a CC to use unless we are using GCC.
3659 #### Now that we know whether we are using GCC, we can decide whether
3660 #### to use that one.
3661 if test "x$NON_GNU_CC" != x && test x$GCC != xyes &&
3662 test x$cc_specified != xyes
3663 then
3664 CC="$NON_GNU_CC"
3667 if test x$GCC = xyes && test "x$GCC_TEST_OPTIONS" != x
3668 then
3669 CC="$CC $GCC_TEST_OPTIONS"
3672 if test x$GCC = x && test "x$NON_GCC_TEST_OPTIONS" != x
3673 then
3674 CC="$CC $NON_GCC_TEST_OPTIONS"
3678 ac_ext=c
3679 ac_cpp='$CPP $CPPFLAGS'
3680 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3681 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3682 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3683 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3684 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3685 # On Suns, sometimes $CPP names a directory.
3686 if test -n "$CPP" && test -d "$CPP"; then
3687 CPP=
3689 if test -z "$CPP"; then
3690 if test "${ac_cv_prog_CPP+set}" = set; then
3691 echo $ECHO_N "(cached) $ECHO_C" >&6
3692 else
3693 # Double quotes because CPP needs to be expanded
3694 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3696 ac_preproc_ok=false
3697 for ac_c_preproc_warn_flag in '' yes
3699 # Use a header file that comes with gcc, so configuring glibc
3700 # with a fresh cross-compiler works.
3701 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3702 # <limits.h> exists even on freestanding compilers.
3703 # On the NeXT, cc -E runs the code through the compiler's parser,
3704 # not just through cpp. "Syntax error" is here to catch this case.
3705 cat >conftest.$ac_ext <<_ACEOF
3706 /* confdefs.h. */
3707 _ACEOF
3708 cat confdefs.h >>conftest.$ac_ext
3709 cat >>conftest.$ac_ext <<_ACEOF
3710 /* end confdefs.h. */
3711 #ifdef __STDC__
3712 # include <limits.h>
3713 #else
3714 # include <assert.h>
3715 #endif
3716 Syntax error
3717 _ACEOF
3718 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3719 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3720 ac_status=$?
3721 grep -v '^ *+' conftest.er1 >conftest.err
3722 rm -f conftest.er1
3723 cat conftest.err >&5
3724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3725 (exit $ac_status); } >/dev/null; then
3726 if test -s conftest.err; then
3727 ac_cpp_err=$ac_c_preproc_warn_flag
3728 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3729 else
3730 ac_cpp_err=
3732 else
3733 ac_cpp_err=yes
3735 if test -z "$ac_cpp_err"; then
3737 else
3738 echo "$as_me: failed program was:" >&5
3739 sed 's/^/| /' conftest.$ac_ext >&5
3741 # Broken: fails on valid input.
3742 continue
3744 rm -f conftest.err conftest.$ac_ext
3746 # OK, works on sane cases. Now check whether non-existent headers
3747 # can be detected and how.
3748 cat >conftest.$ac_ext <<_ACEOF
3749 /* confdefs.h. */
3750 _ACEOF
3751 cat confdefs.h >>conftest.$ac_ext
3752 cat >>conftest.$ac_ext <<_ACEOF
3753 /* end confdefs.h. */
3754 #include <ac_nonexistent.h>
3755 _ACEOF
3756 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3757 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3758 ac_status=$?
3759 grep -v '^ *+' conftest.er1 >conftest.err
3760 rm -f conftest.er1
3761 cat conftest.err >&5
3762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3763 (exit $ac_status); } >/dev/null; then
3764 if test -s conftest.err; then
3765 ac_cpp_err=$ac_c_preproc_warn_flag
3766 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3767 else
3768 ac_cpp_err=
3770 else
3771 ac_cpp_err=yes
3773 if test -z "$ac_cpp_err"; then
3774 # Broken: success on invalid input.
3775 continue
3776 else
3777 echo "$as_me: failed program was:" >&5
3778 sed 's/^/| /' conftest.$ac_ext >&5
3780 # Passes both tests.
3781 ac_preproc_ok=:
3782 break
3784 rm -f conftest.err conftest.$ac_ext
3786 done
3787 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3788 rm -f conftest.err conftest.$ac_ext
3789 if $ac_preproc_ok; then
3790 break
3793 done
3794 ac_cv_prog_CPP=$CPP
3797 CPP=$ac_cv_prog_CPP
3798 else
3799 ac_cv_prog_CPP=$CPP
3801 echo "$as_me:$LINENO: result: $CPP" >&5
3802 echo "${ECHO_T}$CPP" >&6
3803 ac_preproc_ok=false
3804 for ac_c_preproc_warn_flag in '' yes
3806 # Use a header file that comes with gcc, so configuring glibc
3807 # with a fresh cross-compiler works.
3808 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3809 # <limits.h> exists even on freestanding compilers.
3810 # On the NeXT, cc -E runs the code through the compiler's parser,
3811 # not just through cpp. "Syntax error" is here to catch this case.
3812 cat >conftest.$ac_ext <<_ACEOF
3813 /* confdefs.h. */
3814 _ACEOF
3815 cat confdefs.h >>conftest.$ac_ext
3816 cat >>conftest.$ac_ext <<_ACEOF
3817 /* end confdefs.h. */
3818 #ifdef __STDC__
3819 # include <limits.h>
3820 #else
3821 # include <assert.h>
3822 #endif
3823 Syntax error
3824 _ACEOF
3825 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3826 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3827 ac_status=$?
3828 grep -v '^ *+' conftest.er1 >conftest.err
3829 rm -f conftest.er1
3830 cat conftest.err >&5
3831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3832 (exit $ac_status); } >/dev/null; then
3833 if test -s conftest.err; then
3834 ac_cpp_err=$ac_c_preproc_warn_flag
3835 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3836 else
3837 ac_cpp_err=
3839 else
3840 ac_cpp_err=yes
3842 if test -z "$ac_cpp_err"; then
3844 else
3845 echo "$as_me: failed program was:" >&5
3846 sed 's/^/| /' conftest.$ac_ext >&5
3848 # Broken: fails on valid input.
3849 continue
3851 rm -f conftest.err conftest.$ac_ext
3853 # OK, works on sane cases. Now check whether non-existent headers
3854 # can be detected and how.
3855 cat >conftest.$ac_ext <<_ACEOF
3856 /* confdefs.h. */
3857 _ACEOF
3858 cat confdefs.h >>conftest.$ac_ext
3859 cat >>conftest.$ac_ext <<_ACEOF
3860 /* end confdefs.h. */
3861 #include <ac_nonexistent.h>
3862 _ACEOF
3863 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3864 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3865 ac_status=$?
3866 grep -v '^ *+' conftest.er1 >conftest.err
3867 rm -f conftest.er1
3868 cat conftest.err >&5
3869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3870 (exit $ac_status); } >/dev/null; then
3871 if test -s conftest.err; then
3872 ac_cpp_err=$ac_c_preproc_warn_flag
3873 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3874 else
3875 ac_cpp_err=
3877 else
3878 ac_cpp_err=yes
3880 if test -z "$ac_cpp_err"; then
3881 # Broken: success on invalid input.
3882 continue
3883 else
3884 echo "$as_me: failed program was:" >&5
3885 sed 's/^/| /' conftest.$ac_ext >&5
3887 # Passes both tests.
3888 ac_preproc_ok=:
3889 break
3891 rm -f conftest.err conftest.$ac_ext
3893 done
3894 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3895 rm -f conftest.err conftest.$ac_ext
3896 if $ac_preproc_ok; then
3898 else
3899 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3900 See \`config.log' for more details." >&5
3901 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3902 See \`config.log' for more details." >&2;}
3903 { (exit 1); exit 1; }; }
3906 ac_ext=c
3907 ac_cpp='$CPP $CPPFLAGS'
3908 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3909 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3910 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3913 echo "$as_me:$LINENO: checking for egrep" >&5
3914 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3915 if test "${ac_cv_prog_egrep+set}" = set; then
3916 echo $ECHO_N "(cached) $ECHO_C" >&6
3917 else
3918 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3919 then ac_cv_prog_egrep='grep -E'
3920 else ac_cv_prog_egrep='egrep'
3923 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3924 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3925 EGREP=$ac_cv_prog_egrep
3929 echo "$as_me:$LINENO: checking for AIX" >&5
3930 echo $ECHO_N "checking for AIX... $ECHO_C" >&6
3931 cat >conftest.$ac_ext <<_ACEOF
3932 /* confdefs.h. */
3933 _ACEOF
3934 cat confdefs.h >>conftest.$ac_ext
3935 cat >>conftest.$ac_ext <<_ACEOF
3936 /* end confdefs.h. */
3937 #ifdef _AIX
3939 #endif
3941 _ACEOF
3942 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3943 $EGREP "yes" >/dev/null 2>&1; then
3944 echo "$as_me:$LINENO: result: yes" >&5
3945 echo "${ECHO_T}yes" >&6
3946 cat >>confdefs.h <<\_ACEOF
3947 #define _ALL_SOURCE 1
3948 _ACEOF
3950 else
3951 echo "$as_me:$LINENO: result: no" >&5
3952 echo "${ECHO_T}no" >&6
3954 rm -f conftest*
3958 cat >>confdefs.h <<\_ACEOF
3959 #define _GNU_SOURCE 1
3960 _ACEOF
3964 ### Use -Wno-pointer-sign if the compiler supports it
3965 echo "$as_me:$LINENO: checking whether gcc understands -Wno-pointer-sign" >&5
3966 echo $ECHO_N "checking whether gcc understands -Wno-pointer-sign... $ECHO_C" >&6
3967 SAVE_CFLAGS="$CFLAGS"
3968 CFLAGS="$CFLAGS -Wno-pointer-sign"
3969 cat >conftest.$ac_ext <<_ACEOF
3970 /* confdefs.h. */
3971 _ACEOF
3972 cat confdefs.h >>conftest.$ac_ext
3973 cat >>conftest.$ac_ext <<_ACEOF
3974 /* end confdefs.h. */
3977 main ()
3981 return 0;
3983 _ACEOF
3984 rm -f conftest.$ac_objext
3985 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3986 (eval $ac_compile) 2>conftest.er1
3987 ac_status=$?
3988 grep -v '^ *+' conftest.er1 >conftest.err
3989 rm -f conftest.er1
3990 cat conftest.err >&5
3991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3992 (exit $ac_status); } &&
3993 { ac_try='test -z "$ac_c_werror_flag"
3994 || test ! -s conftest.err'
3995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3996 (eval $ac_try) 2>&5
3997 ac_status=$?
3998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3999 (exit $ac_status); }; } &&
4000 { ac_try='test -s conftest.$ac_objext'
4001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4002 (eval $ac_try) 2>&5
4003 ac_status=$?
4004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4005 (exit $ac_status); }; }; then
4006 has_option=yes
4007 else
4008 echo "$as_me: failed program was:" >&5
4009 sed 's/^/| /' conftest.$ac_ext >&5
4011 has_option=no
4013 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4014 if test $has_option = yes; then
4015 C_WARNINGS_SWITCH="-Wno-pointer-sign $C_WARNINGS_SWITCH"
4017 echo "$as_me:$LINENO: result: $has_option" >&5
4018 echo "${ECHO_T}$has_option" >&6
4019 CFLAGS="$SAVE_CFLAGS"
4020 unset has_option
4021 unset SAVE_CFLAGS
4023 #### Some other nice autoconf tests.
4025 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4026 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4027 LN_S=$as_ln_s
4028 if test "$LN_S" = "ln -s"; then
4029 echo "$as_me:$LINENO: result: yes" >&5
4030 echo "${ECHO_T}yes" >&6
4031 else
4032 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4033 echo "${ECHO_T}no, using $LN_S" >&6
4036 ac_ext=c
4037 ac_cpp='$CPP $CPPFLAGS'
4038 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4039 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4040 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4041 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4042 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
4043 # On Suns, sometimes $CPP names a directory.
4044 if test -n "$CPP" && test -d "$CPP"; then
4045 CPP=
4047 if test -z "$CPP"; then
4048 if test "${ac_cv_prog_CPP+set}" = set; then
4049 echo $ECHO_N "(cached) $ECHO_C" >&6
4050 else
4051 # Double quotes because CPP needs to be expanded
4052 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4054 ac_preproc_ok=false
4055 for ac_c_preproc_warn_flag in '' yes
4057 # Use a header file that comes with gcc, so configuring glibc
4058 # with a fresh cross-compiler works.
4059 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4060 # <limits.h> exists even on freestanding compilers.
4061 # On the NeXT, cc -E runs the code through the compiler's parser,
4062 # not just through cpp. "Syntax error" is here to catch this case.
4063 cat >conftest.$ac_ext <<_ACEOF
4064 /* confdefs.h. */
4065 _ACEOF
4066 cat confdefs.h >>conftest.$ac_ext
4067 cat >>conftest.$ac_ext <<_ACEOF
4068 /* end confdefs.h. */
4069 #ifdef __STDC__
4070 # include <limits.h>
4071 #else
4072 # include <assert.h>
4073 #endif
4074 Syntax error
4075 _ACEOF
4076 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4077 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4078 ac_status=$?
4079 grep -v '^ *+' conftest.er1 >conftest.err
4080 rm -f conftest.er1
4081 cat conftest.err >&5
4082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4083 (exit $ac_status); } >/dev/null; then
4084 if test -s conftest.err; then
4085 ac_cpp_err=$ac_c_preproc_warn_flag
4086 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4087 else
4088 ac_cpp_err=
4090 else
4091 ac_cpp_err=yes
4093 if test -z "$ac_cpp_err"; then
4095 else
4096 echo "$as_me: failed program was:" >&5
4097 sed 's/^/| /' conftest.$ac_ext >&5
4099 # Broken: fails on valid input.
4100 continue
4102 rm -f conftest.err conftest.$ac_ext
4104 # OK, works on sane cases. Now check whether non-existent headers
4105 # can be detected and how.
4106 cat >conftest.$ac_ext <<_ACEOF
4107 /* confdefs.h. */
4108 _ACEOF
4109 cat confdefs.h >>conftest.$ac_ext
4110 cat >>conftest.$ac_ext <<_ACEOF
4111 /* end confdefs.h. */
4112 #include <ac_nonexistent.h>
4113 _ACEOF
4114 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4115 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4116 ac_status=$?
4117 grep -v '^ *+' conftest.er1 >conftest.err
4118 rm -f conftest.er1
4119 cat conftest.err >&5
4120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4121 (exit $ac_status); } >/dev/null; then
4122 if test -s conftest.err; then
4123 ac_cpp_err=$ac_c_preproc_warn_flag
4124 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4125 else
4126 ac_cpp_err=
4128 else
4129 ac_cpp_err=yes
4131 if test -z "$ac_cpp_err"; then
4132 # Broken: success on invalid input.
4133 continue
4134 else
4135 echo "$as_me: failed program was:" >&5
4136 sed 's/^/| /' conftest.$ac_ext >&5
4138 # Passes both tests.
4139 ac_preproc_ok=:
4140 break
4142 rm -f conftest.err conftest.$ac_ext
4144 done
4145 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4146 rm -f conftest.err conftest.$ac_ext
4147 if $ac_preproc_ok; then
4148 break
4151 done
4152 ac_cv_prog_CPP=$CPP
4155 CPP=$ac_cv_prog_CPP
4156 else
4157 ac_cv_prog_CPP=$CPP
4159 echo "$as_me:$LINENO: result: $CPP" >&5
4160 echo "${ECHO_T}$CPP" >&6
4161 ac_preproc_ok=false
4162 for ac_c_preproc_warn_flag in '' yes
4164 # Use a header file that comes with gcc, so configuring glibc
4165 # with a fresh cross-compiler works.
4166 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4167 # <limits.h> exists even on freestanding compilers.
4168 # On the NeXT, cc -E runs the code through the compiler's parser,
4169 # not just through cpp. "Syntax error" is here to catch this case.
4170 cat >conftest.$ac_ext <<_ACEOF
4171 /* confdefs.h. */
4172 _ACEOF
4173 cat confdefs.h >>conftest.$ac_ext
4174 cat >>conftest.$ac_ext <<_ACEOF
4175 /* end confdefs.h. */
4176 #ifdef __STDC__
4177 # include <limits.h>
4178 #else
4179 # include <assert.h>
4180 #endif
4181 Syntax error
4182 _ACEOF
4183 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4184 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4185 ac_status=$?
4186 grep -v '^ *+' conftest.er1 >conftest.err
4187 rm -f conftest.er1
4188 cat conftest.err >&5
4189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4190 (exit $ac_status); } >/dev/null; then
4191 if test -s conftest.err; then
4192 ac_cpp_err=$ac_c_preproc_warn_flag
4193 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4194 else
4195 ac_cpp_err=
4197 else
4198 ac_cpp_err=yes
4200 if test -z "$ac_cpp_err"; then
4202 else
4203 echo "$as_me: failed program was:" >&5
4204 sed 's/^/| /' conftest.$ac_ext >&5
4206 # Broken: fails on valid input.
4207 continue
4209 rm -f conftest.err conftest.$ac_ext
4211 # OK, works on sane cases. Now check whether non-existent headers
4212 # can be detected and how.
4213 cat >conftest.$ac_ext <<_ACEOF
4214 /* confdefs.h. */
4215 _ACEOF
4216 cat confdefs.h >>conftest.$ac_ext
4217 cat >>conftest.$ac_ext <<_ACEOF
4218 /* end confdefs.h. */
4219 #include <ac_nonexistent.h>
4220 _ACEOF
4221 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4222 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4223 ac_status=$?
4224 grep -v '^ *+' conftest.er1 >conftest.err
4225 rm -f conftest.er1
4226 cat conftest.err >&5
4227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4228 (exit $ac_status); } >/dev/null; then
4229 if test -s conftest.err; then
4230 ac_cpp_err=$ac_c_preproc_warn_flag
4231 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4232 else
4233 ac_cpp_err=
4235 else
4236 ac_cpp_err=yes
4238 if test -z "$ac_cpp_err"; then
4239 # Broken: success on invalid input.
4240 continue
4241 else
4242 echo "$as_me: failed program was:" >&5
4243 sed 's/^/| /' conftest.$ac_ext >&5
4245 # Passes both tests.
4246 ac_preproc_ok=:
4247 break
4249 rm -f conftest.err conftest.$ac_ext
4251 done
4252 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4253 rm -f conftest.err conftest.$ac_ext
4254 if $ac_preproc_ok; then
4256 else
4257 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4258 See \`config.log' for more details." >&5
4259 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4260 See \`config.log' for more details." >&2;}
4261 { (exit 1); exit 1; }; }
4264 ac_ext=c
4265 ac_cpp='$CPP $CPPFLAGS'
4266 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4267 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4268 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4270 # Find a good install program. We prefer a C program (faster),
4271 # so one script is as good as another. But avoid the broken or
4272 # incompatible versions:
4273 # SysV /etc/install, /usr/sbin/install
4274 # SunOS /usr/etc/install
4275 # IRIX /sbin/install
4276 # AIX /bin/install
4277 # AmigaOS /C/install, which installs bootblocks on floppy discs
4278 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4279 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4280 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4281 # OS/2's system install, which has a completely different semantic
4282 # ./install, which can be erroneously created by make from ./install.sh.
4283 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4284 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
4285 if test -z "$INSTALL"; then
4286 if test "${ac_cv_path_install+set}" = set; then
4287 echo $ECHO_N "(cached) $ECHO_C" >&6
4288 else
4289 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4290 for as_dir in $PATH
4292 IFS=$as_save_IFS
4293 test -z "$as_dir" && as_dir=.
4294 # Account for people who put trailing slashes in PATH elements.
4295 case $as_dir/ in
4296 ./ | .// | /cC/* | \
4297 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4298 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4299 /usr/ucb/* ) ;;
4301 # OSF1 and SCO ODT 3.0 have their own names for install.
4302 # Don't use installbsd from OSF since it installs stuff as root
4303 # by default.
4304 for ac_prog in ginstall scoinst install; do
4305 for ac_exec_ext in '' $ac_executable_extensions; do
4306 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4307 if test $ac_prog = install &&
4308 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4309 # AIX install. It has an incompatible calling convention.
4311 elif test $ac_prog = install &&
4312 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4313 # program-specific install script used by HP pwplus--don't use.
4315 else
4316 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4317 break 3
4320 done
4321 done
4323 esac
4324 done
4328 if test "${ac_cv_path_install+set}" = set; then
4329 INSTALL=$ac_cv_path_install
4330 else
4331 # As a last resort, use the slow shell script. We don't cache a
4332 # path for INSTALL within a source directory, because that will
4333 # break other packages using the cache if that directory is
4334 # removed, or if the path is relative.
4335 INSTALL=$ac_install_sh
4338 echo "$as_me:$LINENO: result: $INSTALL" >&5
4339 echo "${ECHO_T}$INSTALL" >&6
4341 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4342 # It thinks the first close brace ends the variable substitution.
4343 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4345 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4347 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4349 if test "x$RANLIB" = x; then
4350 if test -n "$ac_tool_prefix"; then
4351 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4352 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4353 echo "$as_me:$LINENO: checking for $ac_word" >&5
4354 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4355 if test "${ac_cv_prog_RANLIB+set}" = set; then
4356 echo $ECHO_N "(cached) $ECHO_C" >&6
4357 else
4358 if test -n "$RANLIB"; then
4359 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4360 else
4361 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4362 for as_dir in $PATH
4364 IFS=$as_save_IFS
4365 test -z "$as_dir" && as_dir=.
4366 for ac_exec_ext in '' $ac_executable_extensions; do
4367 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4368 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4369 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4370 break 2
4372 done
4373 done
4377 RANLIB=$ac_cv_prog_RANLIB
4378 if test -n "$RANLIB"; then
4379 echo "$as_me:$LINENO: result: $RANLIB" >&5
4380 echo "${ECHO_T}$RANLIB" >&6
4381 else
4382 echo "$as_me:$LINENO: result: no" >&5
4383 echo "${ECHO_T}no" >&6
4387 if test -z "$ac_cv_prog_RANLIB"; then
4388 ac_ct_RANLIB=$RANLIB
4389 # Extract the first word of "ranlib", so it can be a program name with args.
4390 set dummy ranlib; ac_word=$2
4391 echo "$as_me:$LINENO: checking for $ac_word" >&5
4392 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4393 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4394 echo $ECHO_N "(cached) $ECHO_C" >&6
4395 else
4396 if test -n "$ac_ct_RANLIB"; then
4397 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4398 else
4399 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4400 for as_dir in $PATH
4402 IFS=$as_save_IFS
4403 test -z "$as_dir" && as_dir=.
4404 for ac_exec_ext in '' $ac_executable_extensions; do
4405 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4406 ac_cv_prog_ac_ct_RANLIB="ranlib"
4407 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4408 break 2
4410 done
4411 done
4413 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4416 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4417 if test -n "$ac_ct_RANLIB"; then
4418 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4419 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4420 else
4421 echo "$as_me:$LINENO: result: no" >&5
4422 echo "${ECHO_T}no" >&6
4425 RANLIB=$ac_ct_RANLIB
4426 else
4427 RANLIB="$ac_cv_prog_RANLIB"
4431 # Extract the first word of "install-info", so it can be a program name with args.
4432 set dummy install-info; ac_word=$2
4433 echo "$as_me:$LINENO: checking for $ac_word" >&5
4434 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4435 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
4436 echo $ECHO_N "(cached) $ECHO_C" >&6
4437 else
4438 case $INSTALL_INFO in
4439 [\\/]* | ?:[\\/]*)
4440 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
4443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4444 for as_dir in $PATH
4446 IFS=$as_save_IFS
4447 test -z "$as_dir" && as_dir=.
4448 for ac_exec_ext in '' $ac_executable_extensions; do
4449 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4450 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
4451 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4452 break 2
4454 done
4455 done
4458 esac
4460 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
4462 if test -n "$INSTALL_INFO"; then
4463 echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
4464 echo "${ECHO_T}$INSTALL_INFO" >&6
4465 else
4466 echo "$as_me:$LINENO: result: no" >&5
4467 echo "${ECHO_T}no" >&6
4470 # Extract the first word of "install-info", so it can be a program name with args.
4471 set dummy install-info; ac_word=$2
4472 echo "$as_me:$LINENO: checking for $ac_word" >&5
4473 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4474 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
4475 echo $ECHO_N "(cached) $ECHO_C" >&6
4476 else
4477 case $INSTALL_INFO in
4478 [\\/]* | ?:[\\/]*)
4479 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
4482 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4483 for as_dir in /usr/sbin
4485 IFS=$as_save_IFS
4486 test -z "$as_dir" && as_dir=.
4487 for ac_exec_ext in '' $ac_executable_extensions; do
4488 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4489 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
4490 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4491 break 2
4493 done
4494 done
4497 esac
4499 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
4501 if test -n "$INSTALL_INFO"; then
4502 echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
4503 echo "${ECHO_T}$INSTALL_INFO" >&6
4504 else
4505 echo "$as_me:$LINENO: result: no" >&5
4506 echo "${ECHO_T}no" >&6
4509 # Extract the first word of "install-info", so it can be a program name with args.
4510 set dummy install-info; ac_word=$2
4511 echo "$as_me:$LINENO: checking for $ac_word" >&5
4512 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4513 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
4514 echo $ECHO_N "(cached) $ECHO_C" >&6
4515 else
4516 case $INSTALL_INFO in
4517 [\\/]* | ?:[\\/]*)
4518 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
4521 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4522 for as_dir in /sbin
4524 IFS=$as_save_IFS
4525 test -z "$as_dir" && as_dir=.
4526 for ac_exec_ext in '' $ac_executable_extensions; do
4527 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4528 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
4529 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4530 break 2
4532 done
4533 done
4535 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO=":"
4537 esac
4539 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
4541 if test -n "$INSTALL_INFO"; then
4542 echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
4543 echo "${ECHO_T}$INSTALL_INFO" >&6
4544 else
4545 echo "$as_me:$LINENO: result: no" >&5
4546 echo "${ECHO_T}no" >&6
4549 # Extract the first word of "gzip", so it can be a program name with args.
4550 set dummy gzip; ac_word=$2
4551 echo "$as_me:$LINENO: checking for $ac_word" >&5
4552 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4553 if test "${ac_cv_path_GZIP_PROG+set}" = set; then
4554 echo $ECHO_N "(cached) $ECHO_C" >&6
4555 else
4556 case $GZIP_PROG in
4557 [\\/]* | ?:[\\/]*)
4558 ac_cv_path_GZIP_PROG="$GZIP_PROG" # Let the user override the test with a path.
4561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4562 for as_dir in $PATH
4564 IFS=$as_save_IFS
4565 test -z "$as_dir" && as_dir=.
4566 for ac_exec_ext in '' $ac_executable_extensions; do
4567 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4568 ac_cv_path_GZIP_PROG="$as_dir/$ac_word$ac_exec_ext"
4569 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4570 break 2
4572 done
4573 done
4576 esac
4578 GZIP_PROG=$ac_cv_path_GZIP_PROG
4580 if test -n "$GZIP_PROG"; then
4581 echo "$as_me:$LINENO: result: $GZIP_PROG" >&5
4582 echo "${ECHO_T}$GZIP_PROG" >&6
4583 else
4584 echo "$as_me:$LINENO: result: no" >&5
4585 echo "${ECHO_T}no" >&6
4590 if test x$GCC = xyes && test "x$GCC_LINK_TEST_OPTIONS" != x
4591 then
4592 ac_link="$ac_link $GCC_LINK_TEST_OPTIONS"
4595 if test x$GCC = x && test "x$NON_GCC_LINK_TEST_OPTIONS" != x
4596 then
4597 ac_link="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
4601 late_LDFLAGS=$LDFLAGS
4602 if test "$GCC" = yes; then
4603 LDFLAGS="$LDFLAGS -Wl,-znocombreloc"
4604 else
4605 LDFLAGS="$LDFLAGS -znocombreloc"
4608 echo "$as_me:$LINENO: checking for -znocombreloc" >&5
4609 echo $ECHO_N "checking for -znocombreloc... $ECHO_C" >&6
4610 cat >conftest.$ac_ext <<_ACEOF
4611 main(){return 0;}
4612 _ACEOF
4613 rm -f conftest.$ac_objext conftest$ac_exeext
4614 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4615 (eval $ac_link) 2>conftest.er1
4616 ac_status=$?
4617 grep -v '^ *+' conftest.er1 >conftest.err
4618 rm -f conftest.er1
4619 cat conftest.err >&5
4620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4621 (exit $ac_status); } &&
4622 { ac_try='test -z "$ac_c_werror_flag"
4623 || test ! -s conftest.err'
4624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4625 (eval $ac_try) 2>&5
4626 ac_status=$?
4627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4628 (exit $ac_status); }; } &&
4629 { ac_try='test -s conftest$ac_exeext'
4630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4631 (eval $ac_try) 2>&5
4632 ac_status=$?
4633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4634 (exit $ac_status); }; }; then
4635 echo "$as_me:$LINENO: result: yes" >&5
4636 echo "${ECHO_T}yes" >&6
4637 else
4638 echo "$as_me: failed program was:" >&5
4639 sed 's/^/| /' conftest.$ac_ext >&5
4641 LDFLAGS=$late_LDFLAGS
4642 echo "$as_me:$LINENO: result: no" >&5
4643 echo "${ECHO_T}no" >&6
4645 rm -f conftest.err conftest.$ac_objext \
4646 conftest$ac_exeext conftest.$ac_ext
4648 #### Extract some information from the operating system and machine files.
4650 { echo "$as_me:$LINENO: checking the machine- and system-dependent files to find out
4651 - which libraries the lib-src programs will want, and
4652 - whether the GNU malloc routines are usable..." >&5
4653 echo "$as_me: checking the machine- and system-dependent files to find out
4654 - which libraries the lib-src programs will want, and
4655 - whether the GNU malloc routines are usable..." >&6;}
4657 ### First figure out CFLAGS (which we use for running the compiler here)
4658 ### and REAL_CFLAGS (which we use for real compilation).
4659 ### The two are the same except on a few systems, where they are made
4660 ### different to work around various lossages. For example,
4661 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
4662 ### as implying static linking.
4664 ### If the CFLAGS env var is specified, we use that value
4665 ### instead of the default.
4667 ### It's not important that this name contain the PID; you can't run
4668 ### two configures in the same directory and have anything work
4669 ### anyway.
4670 tempcname="conftest.c"
4672 echo '
4673 #include "'${srcdir}'/src/'${opsysfile}'"
4674 #include "'${srcdir}'/src/'${machfile}'"
4675 #ifndef LIBS_MACHINE
4676 #define LIBS_MACHINE
4677 #endif
4678 #ifndef LIBS_SYSTEM
4679 #define LIBS_SYSTEM
4680 #endif
4681 #ifndef C_SWITCH_SYSTEM
4682 #define C_SWITCH_SYSTEM
4683 #endif
4684 #ifndef C_SWITCH_MACHINE
4685 #define C_SWITCH_MACHINE
4686 #endif
4687 configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM
4688 configure___ c_switch_system=C_SWITCH_SYSTEM
4689 configure___ c_switch_machine=C_SWITCH_MACHINE
4691 #ifndef LIB_X11_LIB
4692 #define LIB_X11_LIB -lX11
4693 #endif
4695 #ifndef LIBX11_MACHINE
4696 #define LIBX11_MACHINE
4697 #endif
4699 #ifndef LIBX11_SYSTEM
4700 #define LIBX11_SYSTEM
4701 #endif
4702 configure___ LIBX=LIB_X11_LIB LIBX11_MACHINE LIBX11_SYSTEM
4704 #ifdef UNEXEC
4705 configure___ unexec=UNEXEC
4706 #else
4707 configure___ unexec=unexec.o
4708 #endif
4710 #ifdef SYSTEM_MALLOC
4711 configure___ system_malloc=yes
4712 #else
4713 configure___ system_malloc=no
4714 #endif
4716 #ifdef USE_MMAP_FOR_BUFFERS
4717 configure___ use_mmap_for_buffers=yes
4718 #else
4719 configure___ use_mmap_for_buffers=no
4720 #endif
4722 #ifndef C_DEBUG_SWITCH
4723 #define C_DEBUG_SWITCH -g
4724 #endif
4726 #ifndef C_OPTIMIZE_SWITCH
4727 #ifdef __GNUC__
4728 #define C_OPTIMIZE_SWITCH -O2
4729 #else
4730 #define C_OPTIMIZE_SWITCH -O
4731 #endif
4732 #endif
4734 #ifndef C_WARNINGS_SWITCH
4735 #define C_WARNINGS_SWITCH ${C_WARNINGS_SWITCH}
4736 #endif
4738 #ifndef LD_SWITCH_MACHINE
4739 #define LD_SWITCH_MACHINE
4740 #endif
4742 #ifndef LD_SWITCH_SYSTEM
4743 #define LD_SWITCH_SYSTEM
4744 #endif
4746 #ifndef LD_SWITCH_X_SITE_AUX
4747 #define LD_SWITCH_X_SITE_AUX
4748 #endif
4750 configure___ ld_switch_system=LD_SWITCH_SYSTEM
4751 configure___ ld_switch_machine=LD_SWITCH_MACHINE
4753 #ifdef THIS_IS_CONFIGURE
4755 /* Get the CFLAGS for tests in configure. */
4756 #ifdef __GNUC__
4757 configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
4758 #else
4759 configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
4760 #endif
4762 #else /* not THIS_IS_CONFIGURE */
4764 /* Get the CFLAGS for real compilation. */
4765 #ifdef __GNUC__
4766 configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH C_WARNINGS_SWITCH '${SPECIFIED_CFLAGS}'
4767 #else
4768 configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
4769 #endif
4771 #endif /* not THIS_IS_CONFIGURE */
4772 ' > ${tempcname}
4774 # The value of CPP is a quoted variable reference, so we need to do this
4775 # to get its actual value...
4776 CPP=`eval "echo $CPP"`
4777 eval `${CPP} -Isrc ${tempcname} \
4778 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
4779 if test "x$SPECIFIED_CFLAGS" = x; then
4780 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
4781 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
4782 else
4783 REAL_CFLAGS="$CFLAGS"
4785 rm ${tempcname}
4787 ac_link="$ac_link $ld_switch_machine $ld_switch_system"
4789 ### Make sure subsequent tests use flags consistent with the build flags.
4791 if test x"${OVERRIDE_CPPFLAGS}" != x; then
4792 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
4793 else
4794 CPPFLAGS="$c_switch_system $c_switch_machine $CPPFLAGS"
4799 # Check whether --enable-largefile or --disable-largefile was given.
4800 if test "${enable_largefile+set}" = set; then
4801 enableval="$enable_largefile"
4804 if test "$enable_largefile" != no; then
4806 echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
4807 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
4808 if test "${ac_cv_sys_largefile_CC+set}" = set; then
4809 echo $ECHO_N "(cached) $ECHO_C" >&6
4810 else
4811 ac_cv_sys_largefile_CC=no
4812 if test "$GCC" != yes; then
4813 ac_save_CC=$CC
4814 while :; do
4815 # IRIX 6.2 and later do not support large files by default,
4816 # so use the C compiler's -n32 option if that helps.
4817 cat >conftest.$ac_ext <<_ACEOF
4818 /* confdefs.h. */
4819 _ACEOF
4820 cat confdefs.h >>conftest.$ac_ext
4821 cat >>conftest.$ac_ext <<_ACEOF
4822 /* end confdefs.h. */
4823 #include <sys/types.h>
4824 /* Check that off_t can represent 2**63 - 1 correctly.
4825 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4826 since some C++ compilers masquerading as C compilers
4827 incorrectly reject 9223372036854775807. */
4828 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4829 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4830 && LARGE_OFF_T % 2147483647 == 1)
4831 ? 1 : -1];
4833 main ()
4837 return 0;
4839 _ACEOF
4840 rm -f conftest.$ac_objext
4841 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4842 (eval $ac_compile) 2>conftest.er1
4843 ac_status=$?
4844 grep -v '^ *+' conftest.er1 >conftest.err
4845 rm -f conftest.er1
4846 cat conftest.err >&5
4847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4848 (exit $ac_status); } &&
4849 { ac_try='test -z "$ac_c_werror_flag"
4850 || test ! -s conftest.err'
4851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4852 (eval $ac_try) 2>&5
4853 ac_status=$?
4854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4855 (exit $ac_status); }; } &&
4856 { ac_try='test -s conftest.$ac_objext'
4857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4858 (eval $ac_try) 2>&5
4859 ac_status=$?
4860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4861 (exit $ac_status); }; }; then
4862 break
4863 else
4864 echo "$as_me: failed program was:" >&5
4865 sed 's/^/| /' conftest.$ac_ext >&5
4868 rm -f conftest.err conftest.$ac_objext
4869 CC="$CC -n32"
4870 rm -f conftest.$ac_objext
4871 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4872 (eval $ac_compile) 2>conftest.er1
4873 ac_status=$?
4874 grep -v '^ *+' conftest.er1 >conftest.err
4875 rm -f conftest.er1
4876 cat conftest.err >&5
4877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4878 (exit $ac_status); } &&
4879 { ac_try='test -z "$ac_c_werror_flag"
4880 || test ! -s conftest.err'
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); }; } &&
4886 { ac_try='test -s conftest.$ac_objext'
4887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4888 (eval $ac_try) 2>&5
4889 ac_status=$?
4890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4891 (exit $ac_status); }; }; then
4892 ac_cv_sys_largefile_CC=' -n32'; break
4893 else
4894 echo "$as_me: failed program was:" >&5
4895 sed 's/^/| /' conftest.$ac_ext >&5
4898 rm -f conftest.err conftest.$ac_objext
4899 break
4900 done
4901 CC=$ac_save_CC
4902 rm -f conftest.$ac_ext
4905 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
4906 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
4907 if test "$ac_cv_sys_largefile_CC" != no; then
4908 CC=$CC$ac_cv_sys_largefile_CC
4911 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4912 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
4913 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
4914 echo $ECHO_N "(cached) $ECHO_C" >&6
4915 else
4916 while :; do
4917 ac_cv_sys_file_offset_bits=no
4918 cat >conftest.$ac_ext <<_ACEOF
4919 /* confdefs.h. */
4920 _ACEOF
4921 cat confdefs.h >>conftest.$ac_ext
4922 cat >>conftest.$ac_ext <<_ACEOF
4923 /* end confdefs.h. */
4924 #include <sys/types.h>
4925 /* Check that off_t can represent 2**63 - 1 correctly.
4926 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4927 since some C++ compilers masquerading as C compilers
4928 incorrectly reject 9223372036854775807. */
4929 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4930 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4931 && LARGE_OFF_T % 2147483647 == 1)
4932 ? 1 : -1];
4934 main ()
4938 return 0;
4940 _ACEOF
4941 rm -f conftest.$ac_objext
4942 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4943 (eval $ac_compile) 2>conftest.er1
4944 ac_status=$?
4945 grep -v '^ *+' conftest.er1 >conftest.err
4946 rm -f conftest.er1
4947 cat conftest.err >&5
4948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4949 (exit $ac_status); } &&
4950 { ac_try='test -z "$ac_c_werror_flag"
4951 || test ! -s conftest.err'
4952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4953 (eval $ac_try) 2>&5
4954 ac_status=$?
4955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4956 (exit $ac_status); }; } &&
4957 { ac_try='test -s conftest.$ac_objext'
4958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4959 (eval $ac_try) 2>&5
4960 ac_status=$?
4961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4962 (exit $ac_status); }; }; then
4963 break
4964 else
4965 echo "$as_me: failed program was:" >&5
4966 sed 's/^/| /' conftest.$ac_ext >&5
4969 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4970 cat >conftest.$ac_ext <<_ACEOF
4971 /* confdefs.h. */
4972 _ACEOF
4973 cat confdefs.h >>conftest.$ac_ext
4974 cat >>conftest.$ac_ext <<_ACEOF
4975 /* end confdefs.h. */
4976 #define _FILE_OFFSET_BITS 64
4977 #include <sys/types.h>
4978 /* Check that off_t can represent 2**63 - 1 correctly.
4979 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4980 since some C++ compilers masquerading as C compilers
4981 incorrectly reject 9223372036854775807. */
4982 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4983 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4984 && LARGE_OFF_T % 2147483647 == 1)
4985 ? 1 : -1];
4987 main ()
4991 return 0;
4993 _ACEOF
4994 rm -f conftest.$ac_objext
4995 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4996 (eval $ac_compile) 2>conftest.er1
4997 ac_status=$?
4998 grep -v '^ *+' conftest.er1 >conftest.err
4999 rm -f conftest.er1
5000 cat conftest.err >&5
5001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5002 (exit $ac_status); } &&
5003 { ac_try='test -z "$ac_c_werror_flag"
5004 || test ! -s conftest.err'
5005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5006 (eval $ac_try) 2>&5
5007 ac_status=$?
5008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5009 (exit $ac_status); }; } &&
5010 { ac_try='test -s conftest.$ac_objext'
5011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5012 (eval $ac_try) 2>&5
5013 ac_status=$?
5014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5015 (exit $ac_status); }; }; then
5016 ac_cv_sys_file_offset_bits=64; break
5017 else
5018 echo "$as_me: failed program was:" >&5
5019 sed 's/^/| /' conftest.$ac_ext >&5
5022 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5023 break
5024 done
5026 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
5027 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
5028 if test "$ac_cv_sys_file_offset_bits" != no; then
5030 cat >>confdefs.h <<_ACEOF
5031 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5032 _ACEOF
5035 rm -f conftest*
5036 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
5037 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
5038 if test "${ac_cv_sys_large_files+set}" = set; then
5039 echo $ECHO_N "(cached) $ECHO_C" >&6
5040 else
5041 while :; do
5042 ac_cv_sys_large_files=no
5043 cat >conftest.$ac_ext <<_ACEOF
5044 /* confdefs.h. */
5045 _ACEOF
5046 cat confdefs.h >>conftest.$ac_ext
5047 cat >>conftest.$ac_ext <<_ACEOF
5048 /* end confdefs.h. */
5049 #include <sys/types.h>
5050 /* Check that off_t can represent 2**63 - 1 correctly.
5051 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5052 since some C++ compilers masquerading as C compilers
5053 incorrectly reject 9223372036854775807. */
5054 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5055 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5056 && LARGE_OFF_T % 2147483647 == 1)
5057 ? 1 : -1];
5059 main ()
5063 return 0;
5065 _ACEOF
5066 rm -f conftest.$ac_objext
5067 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5068 (eval $ac_compile) 2>conftest.er1
5069 ac_status=$?
5070 grep -v '^ *+' conftest.er1 >conftest.err
5071 rm -f conftest.er1
5072 cat conftest.err >&5
5073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5074 (exit $ac_status); } &&
5075 { ac_try='test -z "$ac_c_werror_flag"
5076 || test ! -s conftest.err'
5077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5078 (eval $ac_try) 2>&5
5079 ac_status=$?
5080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5081 (exit $ac_status); }; } &&
5082 { ac_try='test -s conftest.$ac_objext'
5083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5084 (eval $ac_try) 2>&5
5085 ac_status=$?
5086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5087 (exit $ac_status); }; }; then
5088 break
5089 else
5090 echo "$as_me: failed program was:" >&5
5091 sed 's/^/| /' conftest.$ac_ext >&5
5094 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5095 cat >conftest.$ac_ext <<_ACEOF
5096 /* confdefs.h. */
5097 _ACEOF
5098 cat confdefs.h >>conftest.$ac_ext
5099 cat >>conftest.$ac_ext <<_ACEOF
5100 /* end confdefs.h. */
5101 #define _LARGE_FILES 1
5102 #include <sys/types.h>
5103 /* Check that off_t can represent 2**63 - 1 correctly.
5104 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5105 since some C++ compilers masquerading as C compilers
5106 incorrectly reject 9223372036854775807. */
5107 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5108 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5109 && LARGE_OFF_T % 2147483647 == 1)
5110 ? 1 : -1];
5112 main ()
5116 return 0;
5118 _ACEOF
5119 rm -f conftest.$ac_objext
5120 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5121 (eval $ac_compile) 2>conftest.er1
5122 ac_status=$?
5123 grep -v '^ *+' conftest.er1 >conftest.err
5124 rm -f conftest.er1
5125 cat conftest.err >&5
5126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5127 (exit $ac_status); } &&
5128 { ac_try='test -z "$ac_c_werror_flag"
5129 || test ! -s conftest.err'
5130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5131 (eval $ac_try) 2>&5
5132 ac_status=$?
5133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5134 (exit $ac_status); }; } &&
5135 { ac_try='test -s conftest.$ac_objext'
5136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5137 (eval $ac_try) 2>&5
5138 ac_status=$?
5139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5140 (exit $ac_status); }; }; then
5141 ac_cv_sys_large_files=1; break
5142 else
5143 echo "$as_me: failed program was:" >&5
5144 sed 's/^/| /' conftest.$ac_ext >&5
5147 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5148 break
5149 done
5151 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
5152 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
5153 if test "$ac_cv_sys_large_files" != no; then
5155 cat >>confdefs.h <<_ACEOF
5156 #define _LARGE_FILES $ac_cv_sys_large_files
5157 _ACEOF
5160 rm -f conftest*
5164 if test "${with_sound}" != "no"; then
5165 # Sound support for GNU/Linux and the free BSDs.
5166 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5167 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5168 if test "${ac_cv_header_stdc+set}" = set; then
5169 echo $ECHO_N "(cached) $ECHO_C" >&6
5170 else
5171 cat >conftest.$ac_ext <<_ACEOF
5172 /* confdefs.h. */
5173 _ACEOF
5174 cat confdefs.h >>conftest.$ac_ext
5175 cat >>conftest.$ac_ext <<_ACEOF
5176 /* end confdefs.h. */
5177 #include <stdlib.h>
5178 #include <stdarg.h>
5179 #include <string.h>
5180 #include <float.h>
5183 main ()
5187 return 0;
5189 _ACEOF
5190 rm -f conftest.$ac_objext
5191 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5192 (eval $ac_compile) 2>conftest.er1
5193 ac_status=$?
5194 grep -v '^ *+' conftest.er1 >conftest.err
5195 rm -f conftest.er1
5196 cat conftest.err >&5
5197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5198 (exit $ac_status); } &&
5199 { ac_try='test -z "$ac_c_werror_flag"
5200 || test ! -s conftest.err'
5201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5202 (eval $ac_try) 2>&5
5203 ac_status=$?
5204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5205 (exit $ac_status); }; } &&
5206 { ac_try='test -s conftest.$ac_objext'
5207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5208 (eval $ac_try) 2>&5
5209 ac_status=$?
5210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5211 (exit $ac_status); }; }; then
5212 ac_cv_header_stdc=yes
5213 else
5214 echo "$as_me: failed program was:" >&5
5215 sed 's/^/| /' conftest.$ac_ext >&5
5217 ac_cv_header_stdc=no
5219 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5221 if test $ac_cv_header_stdc = yes; then
5222 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5223 cat >conftest.$ac_ext <<_ACEOF
5224 /* confdefs.h. */
5225 _ACEOF
5226 cat confdefs.h >>conftest.$ac_ext
5227 cat >>conftest.$ac_ext <<_ACEOF
5228 /* end confdefs.h. */
5229 #include <string.h>
5231 _ACEOF
5232 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5233 $EGREP "memchr" >/dev/null 2>&1; then
5235 else
5236 ac_cv_header_stdc=no
5238 rm -f conftest*
5242 if test $ac_cv_header_stdc = yes; then
5243 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5244 cat >conftest.$ac_ext <<_ACEOF
5245 /* confdefs.h. */
5246 _ACEOF
5247 cat confdefs.h >>conftest.$ac_ext
5248 cat >>conftest.$ac_ext <<_ACEOF
5249 /* end confdefs.h. */
5250 #include <stdlib.h>
5252 _ACEOF
5253 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5254 $EGREP "free" >/dev/null 2>&1; then
5256 else
5257 ac_cv_header_stdc=no
5259 rm -f conftest*
5263 if test $ac_cv_header_stdc = yes; then
5264 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5265 if test "$cross_compiling" = yes; then
5267 else
5268 cat >conftest.$ac_ext <<_ACEOF
5269 /* confdefs.h. */
5270 _ACEOF
5271 cat confdefs.h >>conftest.$ac_ext
5272 cat >>conftest.$ac_ext <<_ACEOF
5273 /* end confdefs.h. */
5274 #include <ctype.h>
5275 #if ((' ' & 0x0FF) == 0x020)
5276 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5277 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5278 #else
5279 # define ISLOWER(c) \
5280 (('a' <= (c) && (c) <= 'i') \
5281 || ('j' <= (c) && (c) <= 'r') \
5282 || ('s' <= (c) && (c) <= 'z'))
5283 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5284 #endif
5286 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5288 main ()
5290 int i;
5291 for (i = 0; i < 256; i++)
5292 if (XOR (islower (i), ISLOWER (i))
5293 || toupper (i) != TOUPPER (i))
5294 exit(2);
5295 exit (0);
5297 _ACEOF
5298 rm -f conftest$ac_exeext
5299 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5300 (eval $ac_link) 2>&5
5301 ac_status=$?
5302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5303 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5305 (eval $ac_try) 2>&5
5306 ac_status=$?
5307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5308 (exit $ac_status); }; }; then
5310 else
5311 echo "$as_me: program exited with status $ac_status" >&5
5312 echo "$as_me: failed program was:" >&5
5313 sed 's/^/| /' conftest.$ac_ext >&5
5315 ( exit $ac_status )
5316 ac_cv_header_stdc=no
5318 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5322 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5323 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5324 if test $ac_cv_header_stdc = yes; then
5326 cat >>confdefs.h <<\_ACEOF
5327 #define STDC_HEADERS 1
5328 _ACEOF
5332 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5342 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5343 inttypes.h stdint.h unistd.h
5345 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5346 echo "$as_me:$LINENO: checking for $ac_header" >&5
5347 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5348 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5349 echo $ECHO_N "(cached) $ECHO_C" >&6
5350 else
5351 cat >conftest.$ac_ext <<_ACEOF
5352 /* confdefs.h. */
5353 _ACEOF
5354 cat confdefs.h >>conftest.$ac_ext
5355 cat >>conftest.$ac_ext <<_ACEOF
5356 /* end confdefs.h. */
5357 $ac_includes_default
5359 #include <$ac_header>
5360 _ACEOF
5361 rm -f conftest.$ac_objext
5362 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5363 (eval $ac_compile) 2>conftest.er1
5364 ac_status=$?
5365 grep -v '^ *+' conftest.er1 >conftest.err
5366 rm -f conftest.er1
5367 cat conftest.err >&5
5368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5369 (exit $ac_status); } &&
5370 { ac_try='test -z "$ac_c_werror_flag"
5371 || test ! -s conftest.err'
5372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5373 (eval $ac_try) 2>&5
5374 ac_status=$?
5375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5376 (exit $ac_status); }; } &&
5377 { ac_try='test -s conftest.$ac_objext'
5378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5379 (eval $ac_try) 2>&5
5380 ac_status=$?
5381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5382 (exit $ac_status); }; }; then
5383 eval "$as_ac_Header=yes"
5384 else
5385 echo "$as_me: failed program was:" >&5
5386 sed 's/^/| /' conftest.$ac_ext >&5
5388 eval "$as_ac_Header=no"
5390 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5392 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5393 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5394 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5395 cat >>confdefs.h <<_ACEOF
5396 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5397 _ACEOF
5401 done
5407 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
5409 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5410 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5411 echo "$as_me:$LINENO: checking for $ac_header" >&5
5412 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5413 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5414 echo $ECHO_N "(cached) $ECHO_C" >&6
5416 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5417 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5418 else
5419 # Is the header compilable?
5420 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5421 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5422 cat >conftest.$ac_ext <<_ACEOF
5423 /* confdefs.h. */
5424 _ACEOF
5425 cat confdefs.h >>conftest.$ac_ext
5426 cat >>conftest.$ac_ext <<_ACEOF
5427 /* end confdefs.h. */
5428 $ac_includes_default
5429 #include <$ac_header>
5430 _ACEOF
5431 rm -f conftest.$ac_objext
5432 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5433 (eval $ac_compile) 2>conftest.er1
5434 ac_status=$?
5435 grep -v '^ *+' conftest.er1 >conftest.err
5436 rm -f conftest.er1
5437 cat conftest.err >&5
5438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5439 (exit $ac_status); } &&
5440 { ac_try='test -z "$ac_c_werror_flag"
5441 || test ! -s conftest.err'
5442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5443 (eval $ac_try) 2>&5
5444 ac_status=$?
5445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5446 (exit $ac_status); }; } &&
5447 { ac_try='test -s conftest.$ac_objext'
5448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5449 (eval $ac_try) 2>&5
5450 ac_status=$?
5451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5452 (exit $ac_status); }; }; then
5453 ac_header_compiler=yes
5454 else
5455 echo "$as_me: failed program was:" >&5
5456 sed 's/^/| /' conftest.$ac_ext >&5
5458 ac_header_compiler=no
5460 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5461 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5462 echo "${ECHO_T}$ac_header_compiler" >&6
5464 # Is the header present?
5465 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5466 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5467 cat >conftest.$ac_ext <<_ACEOF
5468 /* confdefs.h. */
5469 _ACEOF
5470 cat confdefs.h >>conftest.$ac_ext
5471 cat >>conftest.$ac_ext <<_ACEOF
5472 /* end confdefs.h. */
5473 #include <$ac_header>
5474 _ACEOF
5475 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5476 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5477 ac_status=$?
5478 grep -v '^ *+' conftest.er1 >conftest.err
5479 rm -f conftest.er1
5480 cat conftest.err >&5
5481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5482 (exit $ac_status); } >/dev/null; then
5483 if test -s conftest.err; then
5484 ac_cpp_err=$ac_c_preproc_warn_flag
5485 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5486 else
5487 ac_cpp_err=
5489 else
5490 ac_cpp_err=yes
5492 if test -z "$ac_cpp_err"; then
5493 ac_header_preproc=yes
5494 else
5495 echo "$as_me: failed program was:" >&5
5496 sed 's/^/| /' conftest.$ac_ext >&5
5498 ac_header_preproc=no
5500 rm -f conftest.err conftest.$ac_ext
5501 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5502 echo "${ECHO_T}$ac_header_preproc" >&6
5504 # So? What about this header?
5505 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5506 yes:no: )
5507 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5508 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5509 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5510 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5511 ac_header_preproc=yes
5513 no:yes:* )
5514 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5515 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5516 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5517 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5518 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5519 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5520 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5521 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5522 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5523 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5524 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5525 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5527 cat <<\_ASBOX
5528 ## ------------------------------------------ ##
5529 ## Report this to the AC_PACKAGE_NAME lists. ##
5530 ## ------------------------------------------ ##
5531 _ASBOX
5533 sed "s/^/$as_me: WARNING: /" >&2
5535 esac
5536 echo "$as_me:$LINENO: checking for $ac_header" >&5
5537 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5538 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5539 echo $ECHO_N "(cached) $ECHO_C" >&6
5540 else
5541 eval "$as_ac_Header=\$ac_header_preproc"
5543 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5544 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5547 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5548 cat >>confdefs.h <<_ACEOF
5549 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5550 _ACEOF
5554 done
5556 # Emulation library used on NetBSD.
5557 echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
5558 echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6
5559 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
5560 echo $ECHO_N "(cached) $ECHO_C" >&6
5561 else
5562 ac_check_lib_save_LIBS=$LIBS
5563 LIBS="-lossaudio $LIBS"
5564 cat >conftest.$ac_ext <<_ACEOF
5565 /* confdefs.h. */
5566 _ACEOF
5567 cat confdefs.h >>conftest.$ac_ext
5568 cat >>conftest.$ac_ext <<_ACEOF
5569 /* end confdefs.h. */
5571 /* Override any gcc2 internal prototype to avoid an error. */
5572 #ifdef __cplusplus
5573 extern "C"
5574 #endif
5575 /* We use char because int might match the return type of a gcc2
5576 builtin and then its argument prototype would still apply. */
5577 char _oss_ioctl ();
5579 main ()
5581 _oss_ioctl ();
5583 return 0;
5585 _ACEOF
5586 rm -f conftest.$ac_objext conftest$ac_exeext
5587 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5588 (eval $ac_link) 2>conftest.er1
5589 ac_status=$?
5590 grep -v '^ *+' conftest.er1 >conftest.err
5591 rm -f conftest.er1
5592 cat conftest.err >&5
5593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5594 (exit $ac_status); } &&
5595 { ac_try='test -z "$ac_c_werror_flag"
5596 || test ! -s conftest.err'
5597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5598 (eval $ac_try) 2>&5
5599 ac_status=$?
5600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5601 (exit $ac_status); }; } &&
5602 { ac_try='test -s conftest$ac_exeext'
5603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5604 (eval $ac_try) 2>&5
5605 ac_status=$?
5606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5607 (exit $ac_status); }; }; then
5608 ac_cv_lib_ossaudio__oss_ioctl=yes
5609 else
5610 echo "$as_me: failed program was:" >&5
5611 sed 's/^/| /' conftest.$ac_ext >&5
5613 ac_cv_lib_ossaudio__oss_ioctl=no
5615 rm -f conftest.err conftest.$ac_objext \
5616 conftest$ac_exeext conftest.$ac_ext
5617 LIBS=$ac_check_lib_save_LIBS
5619 echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
5620 echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6
5621 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
5622 LIBSOUND=-lossaudio
5623 else
5624 LIBSOUND=
5655 for ac_header in sys/select.h sys/timeb.h sys/time.h unistd.h utime.h \
5656 linux/version.h sys/systeminfo.h termios.h limits.h string.h stdlib.h \
5657 termcap.h stdio_ext.h fcntl.h strings.h coff.h pty.h sys/mman.h \
5658 sys/param.h sys/vlimit.h sys/resource.h locale.h sys/_mbstate_t.h \
5659 sys/utsname.h pwd.h
5661 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5662 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5663 echo "$as_me:$LINENO: checking for $ac_header" >&5
5664 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5665 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5666 echo $ECHO_N "(cached) $ECHO_C" >&6
5668 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5669 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5670 else
5671 # Is the header compilable?
5672 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5673 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5674 cat >conftest.$ac_ext <<_ACEOF
5675 /* confdefs.h. */
5676 _ACEOF
5677 cat confdefs.h >>conftest.$ac_ext
5678 cat >>conftest.$ac_ext <<_ACEOF
5679 /* end confdefs.h. */
5680 $ac_includes_default
5681 #include <$ac_header>
5682 _ACEOF
5683 rm -f conftest.$ac_objext
5684 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5685 (eval $ac_compile) 2>conftest.er1
5686 ac_status=$?
5687 grep -v '^ *+' conftest.er1 >conftest.err
5688 rm -f conftest.er1
5689 cat conftest.err >&5
5690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5691 (exit $ac_status); } &&
5692 { ac_try='test -z "$ac_c_werror_flag"
5693 || test ! -s conftest.err'
5694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5695 (eval $ac_try) 2>&5
5696 ac_status=$?
5697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5698 (exit $ac_status); }; } &&
5699 { ac_try='test -s conftest.$ac_objext'
5700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5701 (eval $ac_try) 2>&5
5702 ac_status=$?
5703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5704 (exit $ac_status); }; }; then
5705 ac_header_compiler=yes
5706 else
5707 echo "$as_me: failed program was:" >&5
5708 sed 's/^/| /' conftest.$ac_ext >&5
5710 ac_header_compiler=no
5712 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5713 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5714 echo "${ECHO_T}$ac_header_compiler" >&6
5716 # Is the header present?
5717 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5718 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5719 cat >conftest.$ac_ext <<_ACEOF
5720 /* confdefs.h. */
5721 _ACEOF
5722 cat confdefs.h >>conftest.$ac_ext
5723 cat >>conftest.$ac_ext <<_ACEOF
5724 /* end confdefs.h. */
5725 #include <$ac_header>
5726 _ACEOF
5727 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5728 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5729 ac_status=$?
5730 grep -v '^ *+' conftest.er1 >conftest.err
5731 rm -f conftest.er1
5732 cat conftest.err >&5
5733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5734 (exit $ac_status); } >/dev/null; then
5735 if test -s conftest.err; then
5736 ac_cpp_err=$ac_c_preproc_warn_flag
5737 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5738 else
5739 ac_cpp_err=
5741 else
5742 ac_cpp_err=yes
5744 if test -z "$ac_cpp_err"; then
5745 ac_header_preproc=yes
5746 else
5747 echo "$as_me: failed program was:" >&5
5748 sed 's/^/| /' conftest.$ac_ext >&5
5750 ac_header_preproc=no
5752 rm -f conftest.err conftest.$ac_ext
5753 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5754 echo "${ECHO_T}$ac_header_preproc" >&6
5756 # So? What about this header?
5757 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5758 yes:no: )
5759 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5760 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5761 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5762 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5763 ac_header_preproc=yes
5765 no:yes:* )
5766 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5767 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5768 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5769 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5770 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5771 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5772 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5773 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5774 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5775 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5776 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5777 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5779 cat <<\_ASBOX
5780 ## ------------------------------------------ ##
5781 ## Report this to the AC_PACKAGE_NAME lists. ##
5782 ## ------------------------------------------ ##
5783 _ASBOX
5785 sed "s/^/$as_me: WARNING: /" >&2
5787 esac
5788 echo "$as_me:$LINENO: checking for $ac_header" >&5
5789 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5790 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5791 echo $ECHO_N "(cached) $ECHO_C" >&6
5792 else
5793 eval "$as_ac_Header=\$ac_header_preproc"
5795 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5796 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5799 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5800 cat >>confdefs.h <<_ACEOF
5801 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5802 _ACEOF
5806 done
5809 echo "$as_me:$LINENO: checking if personality LINUX32 can be set" >&5
5810 echo $ECHO_N "checking if personality LINUX32 can be set... $ECHO_C" >&6
5811 cat >conftest.$ac_ext <<_ACEOF
5812 /* confdefs.h. */
5813 _ACEOF
5814 cat confdefs.h >>conftest.$ac_ext
5815 cat >>conftest.$ac_ext <<_ACEOF
5816 /* end confdefs.h. */
5817 #include <sys/personality.h>
5819 main ()
5821 personality (PER_LINUX32)
5823 return 0;
5825 _ACEOF
5826 rm -f conftest.$ac_objext
5827 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5828 (eval $ac_compile) 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); } &&
5835 { ac_try='test -z "$ac_c_werror_flag"
5836 || test ! -s conftest.err'
5837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5838 (eval $ac_try) 2>&5
5839 ac_status=$?
5840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5841 (exit $ac_status); }; } &&
5842 { ac_try='test -s conftest.$ac_objext'
5843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5844 (eval $ac_try) 2>&5
5845 ac_status=$?
5846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5847 (exit $ac_status); }; }; then
5848 emacs_cv_personality_linux32=yes
5849 else
5850 echo "$as_me: failed program was:" >&5
5851 sed 's/^/| /' conftest.$ac_ext >&5
5853 emacs_cv_personality_linux32=no
5855 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5856 echo "$as_me:$LINENO: result: $emacs_cv_personality_linux32" >&5
5857 echo "${ECHO_T}$emacs_cv_personality_linux32" >&6
5859 if test $emacs_cv_personality_linux32 = yes; then
5861 cat >>confdefs.h <<\_ACEOF
5862 #define HAVE_PERSONALITY_LINUX32 1
5863 _ACEOF
5868 for ac_header in term.h
5870 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5871 echo "$as_me:$LINENO: checking for $ac_header" >&5
5872 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5873 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5874 echo $ECHO_N "(cached) $ECHO_C" >&6
5875 else
5876 cat >conftest.$ac_ext <<_ACEOF
5877 /* confdefs.h. */
5878 _ACEOF
5879 cat confdefs.h >>conftest.$ac_ext
5880 cat >>conftest.$ac_ext <<_ACEOF
5881 /* end confdefs.h. */
5882 #include <$ac_header>
5883 _ACEOF
5884 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5885 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5886 ac_status=$?
5887 grep -v '^ *+' conftest.er1 >conftest.err
5888 rm -f conftest.er1
5889 cat conftest.err >&5
5890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5891 (exit $ac_status); } >/dev/null; then
5892 if test -s conftest.err; then
5893 ac_cpp_err=$ac_c_preproc_warn_flag
5894 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5895 else
5896 ac_cpp_err=
5898 else
5899 ac_cpp_err=yes
5901 if test -z "$ac_cpp_err"; then
5902 eval "$as_ac_Header=yes"
5903 else
5904 echo "$as_me: failed program was:" >&5
5905 sed 's/^/| /' conftest.$ac_ext >&5
5907 eval "$as_ac_Header=no"
5909 rm -f conftest.err conftest.$ac_ext
5911 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5912 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5913 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5914 cat >>confdefs.h <<_ACEOF
5915 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5916 _ACEOF
5920 done
5922 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5923 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5924 if test "${ac_cv_header_stdc+set}" = set; then
5925 echo $ECHO_N "(cached) $ECHO_C" >&6
5926 else
5927 cat >conftest.$ac_ext <<_ACEOF
5928 /* confdefs.h. */
5929 _ACEOF
5930 cat confdefs.h >>conftest.$ac_ext
5931 cat >>conftest.$ac_ext <<_ACEOF
5932 /* end confdefs.h. */
5933 #include <stdlib.h>
5934 #include <stdarg.h>
5935 #include <string.h>
5936 #include <float.h>
5939 main ()
5943 return 0;
5945 _ACEOF
5946 rm -f conftest.$ac_objext
5947 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5948 (eval $ac_compile) 2>conftest.er1
5949 ac_status=$?
5950 grep -v '^ *+' conftest.er1 >conftest.err
5951 rm -f conftest.er1
5952 cat conftest.err >&5
5953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5954 (exit $ac_status); } &&
5955 { ac_try='test -z "$ac_c_werror_flag"
5956 || test ! -s conftest.err'
5957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5958 (eval $ac_try) 2>&5
5959 ac_status=$?
5960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5961 (exit $ac_status); }; } &&
5962 { ac_try='test -s conftest.$ac_objext'
5963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5964 (eval $ac_try) 2>&5
5965 ac_status=$?
5966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5967 (exit $ac_status); }; }; then
5968 ac_cv_header_stdc=yes
5969 else
5970 echo "$as_me: failed program was:" >&5
5971 sed 's/^/| /' conftest.$ac_ext >&5
5973 ac_cv_header_stdc=no
5975 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5977 if test $ac_cv_header_stdc = yes; then
5978 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5979 cat >conftest.$ac_ext <<_ACEOF
5980 /* confdefs.h. */
5981 _ACEOF
5982 cat confdefs.h >>conftest.$ac_ext
5983 cat >>conftest.$ac_ext <<_ACEOF
5984 /* end confdefs.h. */
5985 #include <string.h>
5987 _ACEOF
5988 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5989 $EGREP "memchr" >/dev/null 2>&1; then
5991 else
5992 ac_cv_header_stdc=no
5994 rm -f conftest*
5998 if test $ac_cv_header_stdc = yes; then
5999 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6000 cat >conftest.$ac_ext <<_ACEOF
6001 /* confdefs.h. */
6002 _ACEOF
6003 cat confdefs.h >>conftest.$ac_ext
6004 cat >>conftest.$ac_ext <<_ACEOF
6005 /* end confdefs.h. */
6006 #include <stdlib.h>
6008 _ACEOF
6009 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6010 $EGREP "free" >/dev/null 2>&1; then
6012 else
6013 ac_cv_header_stdc=no
6015 rm -f conftest*
6019 if test $ac_cv_header_stdc = yes; then
6020 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6021 if test "$cross_compiling" = yes; then
6023 else
6024 cat >conftest.$ac_ext <<_ACEOF
6025 /* confdefs.h. */
6026 _ACEOF
6027 cat confdefs.h >>conftest.$ac_ext
6028 cat >>conftest.$ac_ext <<_ACEOF
6029 /* end confdefs.h. */
6030 #include <ctype.h>
6031 #if ((' ' & 0x0FF) == 0x020)
6032 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6033 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6034 #else
6035 # define ISLOWER(c) \
6036 (('a' <= (c) && (c) <= 'i') \
6037 || ('j' <= (c) && (c) <= 'r') \
6038 || ('s' <= (c) && (c) <= 'z'))
6039 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6040 #endif
6042 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6044 main ()
6046 int i;
6047 for (i = 0; i < 256; i++)
6048 if (XOR (islower (i), ISLOWER (i))
6049 || toupper (i) != TOUPPER (i))
6050 exit(2);
6051 exit (0);
6053 _ACEOF
6054 rm -f conftest$ac_exeext
6055 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6056 (eval $ac_link) 2>&5
6057 ac_status=$?
6058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6059 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6061 (eval $ac_try) 2>&5
6062 ac_status=$?
6063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6064 (exit $ac_status); }; }; then
6066 else
6067 echo "$as_me: program exited with status $ac_status" >&5
6068 echo "$as_me: failed program was:" >&5
6069 sed 's/^/| /' conftest.$ac_ext >&5
6071 ( exit $ac_status )
6072 ac_cv_header_stdc=no
6074 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6078 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6079 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6080 if test $ac_cv_header_stdc = yes; then
6082 cat >>confdefs.h <<\_ACEOF
6083 #define STDC_HEADERS 1
6084 _ACEOF
6088 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
6089 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
6090 if test "${ac_cv_header_time+set}" = set; then
6091 echo $ECHO_N "(cached) $ECHO_C" >&6
6092 else
6093 cat >conftest.$ac_ext <<_ACEOF
6094 /* confdefs.h. */
6095 _ACEOF
6096 cat confdefs.h >>conftest.$ac_ext
6097 cat >>conftest.$ac_ext <<_ACEOF
6098 /* end confdefs.h. */
6099 #include <sys/types.h>
6100 #include <sys/time.h>
6101 #include <time.h>
6104 main ()
6106 if ((struct tm *) 0)
6107 return 0;
6109 return 0;
6111 _ACEOF
6112 rm -f conftest.$ac_objext
6113 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6114 (eval $ac_compile) 2>conftest.er1
6115 ac_status=$?
6116 grep -v '^ *+' conftest.er1 >conftest.err
6117 rm -f conftest.er1
6118 cat conftest.err >&5
6119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6120 (exit $ac_status); } &&
6121 { ac_try='test -z "$ac_c_werror_flag"
6122 || test ! -s conftest.err'
6123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6124 (eval $ac_try) 2>&5
6125 ac_status=$?
6126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6127 (exit $ac_status); }; } &&
6128 { ac_try='test -s conftest.$ac_objext'
6129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6130 (eval $ac_try) 2>&5
6131 ac_status=$?
6132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6133 (exit $ac_status); }; }; then
6134 ac_cv_header_time=yes
6135 else
6136 echo "$as_me: failed program was:" >&5
6137 sed 's/^/| /' conftest.$ac_ext >&5
6139 ac_cv_header_time=no
6141 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6143 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
6144 echo "${ECHO_T}$ac_cv_header_time" >&6
6145 if test $ac_cv_header_time = yes; then
6147 cat >>confdefs.h <<\_ACEOF
6148 #define TIME_WITH_SYS_TIME 1
6149 _ACEOF
6153 echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
6154 echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6
6155 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
6156 echo $ECHO_N "(cached) $ECHO_C" >&6
6157 else
6158 cat >conftest.$ac_ext <<_ACEOF
6159 /* confdefs.h. */
6160 _ACEOF
6161 cat confdefs.h >>conftest.$ac_ext
6162 cat >>conftest.$ac_ext <<_ACEOF
6163 /* end confdefs.h. */
6164 $ac_includes_default
6166 main ()
6168 #ifndef sys_siglist
6169 char *p = (char *) sys_siglist;
6170 #endif
6173 return 0;
6175 _ACEOF
6176 rm -f conftest.$ac_objext
6177 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6178 (eval $ac_compile) 2>conftest.er1
6179 ac_status=$?
6180 grep -v '^ *+' conftest.er1 >conftest.err
6181 rm -f conftest.er1
6182 cat conftest.err >&5
6183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6184 (exit $ac_status); } &&
6185 { ac_try='test -z "$ac_c_werror_flag"
6186 || test ! -s conftest.err'
6187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6188 (eval $ac_try) 2>&5
6189 ac_status=$?
6190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6191 (exit $ac_status); }; } &&
6192 { ac_try='test -s conftest.$ac_objext'
6193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6194 (eval $ac_try) 2>&5
6195 ac_status=$?
6196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6197 (exit $ac_status); }; }; then
6198 ac_cv_have_decl_sys_siglist=yes
6199 else
6200 echo "$as_me: failed program was:" >&5
6201 sed 's/^/| /' conftest.$ac_ext >&5
6203 ac_cv_have_decl_sys_siglist=no
6205 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6207 echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
6208 echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6
6209 if test $ac_cv_have_decl_sys_siglist = yes; then
6211 cat >>confdefs.h <<_ACEOF
6212 #define HAVE_DECL_SYS_SIGLIST 1
6213 _ACEOF
6216 else
6217 cat >>confdefs.h <<_ACEOF
6218 #define HAVE_DECL_SYS_SIGLIST 0
6219 _ACEOF
6225 if test $ac_cv_have_decl_sys_siglist != yes; then
6226 # For Tru64, at least:
6227 echo "$as_me:$LINENO: checking whether __sys_siglist is declared" >&5
6228 echo $ECHO_N "checking whether __sys_siglist is declared... $ECHO_C" >&6
6229 if test "${ac_cv_have_decl___sys_siglist+set}" = set; then
6230 echo $ECHO_N "(cached) $ECHO_C" >&6
6231 else
6232 cat >conftest.$ac_ext <<_ACEOF
6233 /* confdefs.h. */
6234 _ACEOF
6235 cat confdefs.h >>conftest.$ac_ext
6236 cat >>conftest.$ac_ext <<_ACEOF
6237 /* end confdefs.h. */
6238 $ac_includes_default
6240 main ()
6242 #ifndef __sys_siglist
6243 char *p = (char *) __sys_siglist;
6244 #endif
6247 return 0;
6249 _ACEOF
6250 rm -f conftest.$ac_objext
6251 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6252 (eval $ac_compile) 2>conftest.er1
6253 ac_status=$?
6254 grep -v '^ *+' conftest.er1 >conftest.err
6255 rm -f conftest.er1
6256 cat conftest.err >&5
6257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6258 (exit $ac_status); } &&
6259 { ac_try='test -z "$ac_c_werror_flag"
6260 || test ! -s conftest.err'
6261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6262 (eval $ac_try) 2>&5
6263 ac_status=$?
6264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6265 (exit $ac_status); }; } &&
6266 { ac_try='test -s conftest.$ac_objext'
6267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6268 (eval $ac_try) 2>&5
6269 ac_status=$?
6270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6271 (exit $ac_status); }; }; then
6272 ac_cv_have_decl___sys_siglist=yes
6273 else
6274 echo "$as_me: failed program was:" >&5
6275 sed 's/^/| /' conftest.$ac_ext >&5
6277 ac_cv_have_decl___sys_siglist=no
6279 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6281 echo "$as_me:$LINENO: result: $ac_cv_have_decl___sys_siglist" >&5
6282 echo "${ECHO_T}$ac_cv_have_decl___sys_siglist" >&6
6283 if test $ac_cv_have_decl___sys_siglist = yes; then
6285 cat >>confdefs.h <<_ACEOF
6286 #define HAVE_DECL___SYS_SIGLIST 1
6287 _ACEOF
6290 else
6291 cat >>confdefs.h <<_ACEOF
6292 #define HAVE_DECL___SYS_SIGLIST 0
6293 _ACEOF
6299 if test $ac_cv_have_decl___sys_siglist = yes; then
6301 cat >>confdefs.h <<\_ACEOF
6302 #define sys_siglist __sys_siglist
6303 _ACEOF
6307 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
6308 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
6309 if test "${ac_cv_header_sys_wait_h+set}" = set; then
6310 echo $ECHO_N "(cached) $ECHO_C" >&6
6311 else
6312 cat >conftest.$ac_ext <<_ACEOF
6313 /* confdefs.h. */
6314 _ACEOF
6315 cat confdefs.h >>conftest.$ac_ext
6316 cat >>conftest.$ac_ext <<_ACEOF
6317 /* end confdefs.h. */
6318 #include <sys/types.h>
6319 #include <sys/wait.h>
6320 #ifndef WEXITSTATUS
6321 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
6322 #endif
6323 #ifndef WIFEXITED
6324 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
6325 #endif
6328 main ()
6330 int s;
6331 wait (&s);
6332 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
6334 return 0;
6336 _ACEOF
6337 rm -f conftest.$ac_objext
6338 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6339 (eval $ac_compile) 2>conftest.er1
6340 ac_status=$?
6341 grep -v '^ *+' conftest.er1 >conftest.err
6342 rm -f conftest.er1
6343 cat conftest.err >&5
6344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6345 (exit $ac_status); } &&
6346 { ac_try='test -z "$ac_c_werror_flag"
6347 || test ! -s conftest.err'
6348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6349 (eval $ac_try) 2>&5
6350 ac_status=$?
6351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6352 (exit $ac_status); }; } &&
6353 { ac_try='test -s conftest.$ac_objext'
6354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6355 (eval $ac_try) 2>&5
6356 ac_status=$?
6357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6358 (exit $ac_status); }; }; then
6359 ac_cv_header_sys_wait_h=yes
6360 else
6361 echo "$as_me: failed program was:" >&5
6362 sed 's/^/| /' conftest.$ac_ext >&5
6364 ac_cv_header_sys_wait_h=no
6366 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6368 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
6369 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
6370 if test $ac_cv_header_sys_wait_h = yes; then
6372 cat >>confdefs.h <<\_ACEOF
6373 #define HAVE_SYS_WAIT_H 1
6374 _ACEOF
6379 echo "$as_me:$LINENO: checking for struct utimbuf" >&5
6380 echo $ECHO_N "checking for struct utimbuf... $ECHO_C" >&6
6381 if test "${emacs_cv_struct_utimbuf+set}" = set; then
6382 echo $ECHO_N "(cached) $ECHO_C" >&6
6383 else
6384 cat >conftest.$ac_ext <<_ACEOF
6385 /* confdefs.h. */
6386 _ACEOF
6387 cat confdefs.h >>conftest.$ac_ext
6388 cat >>conftest.$ac_ext <<_ACEOF
6389 /* end confdefs.h. */
6390 #ifdef TIME_WITH_SYS_TIME
6391 #include <sys/time.h>
6392 #include <time.h>
6393 #else
6394 #ifdef HAVE_SYS_TIME_H
6395 #include <sys/time.h>
6396 #else
6397 #include <time.h>
6398 #endif
6399 #endif
6400 #ifdef HAVE_UTIME_H
6401 #include <utime.h>
6402 #endif
6404 main ()
6406 static struct utimbuf x; x.actime = x.modtime;
6408 return 0;
6410 _ACEOF
6411 rm -f conftest.$ac_objext
6412 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6413 (eval $ac_compile) 2>conftest.er1
6414 ac_status=$?
6415 grep -v '^ *+' conftest.er1 >conftest.err
6416 rm -f conftest.er1
6417 cat conftest.err >&5
6418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6419 (exit $ac_status); } &&
6420 { ac_try='test -z "$ac_c_werror_flag"
6421 || test ! -s conftest.err'
6422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6423 (eval $ac_try) 2>&5
6424 ac_status=$?
6425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6426 (exit $ac_status); }; } &&
6427 { ac_try='test -s conftest.$ac_objext'
6428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6429 (eval $ac_try) 2>&5
6430 ac_status=$?
6431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6432 (exit $ac_status); }; }; then
6433 emacs_cv_struct_utimbuf=yes
6434 else
6435 echo "$as_me: failed program was:" >&5
6436 sed 's/^/| /' conftest.$ac_ext >&5
6438 emacs_cv_struct_utimbuf=no
6440 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6442 echo "$as_me:$LINENO: result: $emacs_cv_struct_utimbuf" >&5
6443 echo "${ECHO_T}$emacs_cv_struct_utimbuf" >&6
6444 if test $emacs_cv_struct_utimbuf = yes; then
6446 cat >>confdefs.h <<\_ACEOF
6447 #define HAVE_STRUCT_UTIMBUF 1
6448 _ACEOF
6452 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
6453 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
6454 if test "${ac_cv_type_signal+set}" = set; then
6455 echo $ECHO_N "(cached) $ECHO_C" >&6
6456 else
6457 cat >conftest.$ac_ext <<_ACEOF
6458 /* confdefs.h. */
6459 _ACEOF
6460 cat confdefs.h >>conftest.$ac_ext
6461 cat >>conftest.$ac_ext <<_ACEOF
6462 /* end confdefs.h. */
6463 #include <sys/types.h>
6464 #include <signal.h>
6465 #ifdef signal
6466 # undef signal
6467 #endif
6468 #ifdef __cplusplus
6469 extern "C" void (*signal (int, void (*)(int)))(int);
6470 #else
6471 void (*signal ()) ();
6472 #endif
6475 main ()
6477 int i;
6479 return 0;
6481 _ACEOF
6482 rm -f conftest.$ac_objext
6483 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6484 (eval $ac_compile) 2>conftest.er1
6485 ac_status=$?
6486 grep -v '^ *+' conftest.er1 >conftest.err
6487 rm -f conftest.er1
6488 cat conftest.err >&5
6489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6490 (exit $ac_status); } &&
6491 { ac_try='test -z "$ac_c_werror_flag"
6492 || test ! -s conftest.err'
6493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6494 (eval $ac_try) 2>&5
6495 ac_status=$?
6496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6497 (exit $ac_status); }; } &&
6498 { ac_try='test -s conftest.$ac_objext'
6499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6500 (eval $ac_try) 2>&5
6501 ac_status=$?
6502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6503 (exit $ac_status); }; }; then
6504 ac_cv_type_signal=void
6505 else
6506 echo "$as_me: failed program was:" >&5
6507 sed 's/^/| /' conftest.$ac_ext >&5
6509 ac_cv_type_signal=int
6511 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6513 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
6514 echo "${ECHO_T}$ac_cv_type_signal" >&6
6516 cat >>confdefs.h <<_ACEOF
6517 #define RETSIGTYPE $ac_cv_type_signal
6518 _ACEOF
6522 echo "$as_me:$LINENO: checking for speed_t" >&5
6523 echo $ECHO_N "checking for speed_t... $ECHO_C" >&6
6524 if test "${emacs_cv_speed_t+set}" = set; then
6525 echo $ECHO_N "(cached) $ECHO_C" >&6
6526 else
6527 cat >conftest.$ac_ext <<_ACEOF
6528 /* confdefs.h. */
6529 _ACEOF
6530 cat confdefs.h >>conftest.$ac_ext
6531 cat >>conftest.$ac_ext <<_ACEOF
6532 /* end confdefs.h. */
6533 #include <termios.h>
6535 main ()
6537 speed_t x = 1;
6539 return 0;
6541 _ACEOF
6542 rm -f conftest.$ac_objext
6543 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6544 (eval $ac_compile) 2>conftest.er1
6545 ac_status=$?
6546 grep -v '^ *+' conftest.er1 >conftest.err
6547 rm -f conftest.er1
6548 cat conftest.err >&5
6549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6550 (exit $ac_status); } &&
6551 { ac_try='test -z "$ac_c_werror_flag"
6552 || test ! -s conftest.err'
6553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6554 (eval $ac_try) 2>&5
6555 ac_status=$?
6556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6557 (exit $ac_status); }; } &&
6558 { ac_try='test -s conftest.$ac_objext'
6559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6560 (eval $ac_try) 2>&5
6561 ac_status=$?
6562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6563 (exit $ac_status); }; }; then
6564 emacs_cv_speed_t=yes
6565 else
6566 echo "$as_me: failed program was:" >&5
6567 sed 's/^/| /' conftest.$ac_ext >&5
6569 emacs_cv_speed_t=no
6571 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6573 echo "$as_me:$LINENO: result: $emacs_cv_speed_t" >&5
6574 echo "${ECHO_T}$emacs_cv_speed_t" >&6
6575 if test $emacs_cv_speed_t = yes; then
6577 cat >>confdefs.h <<\_ACEOF
6578 #define HAVE_SPEED_T 1
6579 _ACEOF
6583 echo "$as_me:$LINENO: checking for struct timeval" >&5
6584 echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6
6585 if test "${emacs_cv_struct_timeval+set}" = set; then
6586 echo $ECHO_N "(cached) $ECHO_C" >&6
6587 else
6588 cat >conftest.$ac_ext <<_ACEOF
6589 /* confdefs.h. */
6590 _ACEOF
6591 cat confdefs.h >>conftest.$ac_ext
6592 cat >>conftest.$ac_ext <<_ACEOF
6593 /* end confdefs.h. */
6594 #ifdef TIME_WITH_SYS_TIME
6595 #include <sys/time.h>
6596 #include <time.h>
6597 #else
6598 #ifdef HAVE_SYS_TIME_H
6599 #include <sys/time.h>
6600 #else
6601 #include <time.h>
6602 #endif
6603 #endif
6605 main ()
6607 static struct timeval x; x.tv_sec = x.tv_usec;
6609 return 0;
6611 _ACEOF
6612 rm -f conftest.$ac_objext
6613 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6614 (eval $ac_compile) 2>conftest.er1
6615 ac_status=$?
6616 grep -v '^ *+' conftest.er1 >conftest.err
6617 rm -f conftest.er1
6618 cat conftest.err >&5
6619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6620 (exit $ac_status); } &&
6621 { ac_try='test -z "$ac_c_werror_flag"
6622 || test ! -s conftest.err'
6623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6624 (eval $ac_try) 2>&5
6625 ac_status=$?
6626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6627 (exit $ac_status); }; } &&
6628 { ac_try='test -s conftest.$ac_objext'
6629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6630 (eval $ac_try) 2>&5
6631 ac_status=$?
6632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6633 (exit $ac_status); }; }; then
6634 emacs_cv_struct_timeval=yes
6635 else
6636 echo "$as_me: failed program was:" >&5
6637 sed 's/^/| /' conftest.$ac_ext >&5
6639 emacs_cv_struct_timeval=no
6641 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6643 echo "$as_me:$LINENO: result: $emacs_cv_struct_timeval" >&5
6644 echo "${ECHO_T}$emacs_cv_struct_timeval" >&6
6645 HAVE_TIMEVAL=$emacs_cv_struct_timeval
6646 if test $emacs_cv_struct_timeval = yes; then
6648 cat >>confdefs.h <<\_ACEOF
6649 #define HAVE_TIMEVAL 1
6650 _ACEOF
6654 echo "$as_me:$LINENO: checking for struct exception" >&5
6655 echo $ECHO_N "checking for struct exception... $ECHO_C" >&6
6656 if test "${emacs_cv_struct_exception+set}" = set; then
6657 echo $ECHO_N "(cached) $ECHO_C" >&6
6658 else
6659 cat >conftest.$ac_ext <<_ACEOF
6660 /* confdefs.h. */
6661 _ACEOF
6662 cat confdefs.h >>conftest.$ac_ext
6663 cat >>conftest.$ac_ext <<_ACEOF
6664 /* end confdefs.h. */
6665 #include <math.h>
6667 main ()
6669 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
6671 return 0;
6673 _ACEOF
6674 rm -f conftest.$ac_objext
6675 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6676 (eval $ac_compile) 2>conftest.er1
6677 ac_status=$?
6678 grep -v '^ *+' conftest.er1 >conftest.err
6679 rm -f conftest.er1
6680 cat conftest.err >&5
6681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6682 (exit $ac_status); } &&
6683 { ac_try='test -z "$ac_c_werror_flag"
6684 || test ! -s conftest.err'
6685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6686 (eval $ac_try) 2>&5
6687 ac_status=$?
6688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6689 (exit $ac_status); }; } &&
6690 { ac_try='test -s conftest.$ac_objext'
6691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6692 (eval $ac_try) 2>&5
6693 ac_status=$?
6694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6695 (exit $ac_status); }; }; then
6696 emacs_cv_struct_exception=yes
6697 else
6698 echo "$as_me: failed program was:" >&5
6699 sed 's/^/| /' conftest.$ac_ext >&5
6701 emacs_cv_struct_exception=no
6703 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6705 echo "$as_me:$LINENO: result: $emacs_cv_struct_exception" >&5
6706 echo "${ECHO_T}$emacs_cv_struct_exception" >&6
6707 HAVE_EXCEPTION=$emacs_cv_struct_exception
6708 if test $emacs_cv_struct_exception != yes; then
6710 cat >>confdefs.h <<\_ACEOF
6711 #define NO_MATHERR 1
6712 _ACEOF
6717 for ac_header in sys/socket.h
6719 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6720 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6721 echo "$as_me:$LINENO: checking for $ac_header" >&5
6722 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6723 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6724 echo $ECHO_N "(cached) $ECHO_C" >&6
6726 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6727 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6728 else
6729 # Is the header compilable?
6730 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6731 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6732 cat >conftest.$ac_ext <<_ACEOF
6733 /* confdefs.h. */
6734 _ACEOF
6735 cat confdefs.h >>conftest.$ac_ext
6736 cat >>conftest.$ac_ext <<_ACEOF
6737 /* end confdefs.h. */
6738 $ac_includes_default
6739 #include <$ac_header>
6740 _ACEOF
6741 rm -f conftest.$ac_objext
6742 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6743 (eval $ac_compile) 2>conftest.er1
6744 ac_status=$?
6745 grep -v '^ *+' conftest.er1 >conftest.err
6746 rm -f conftest.er1
6747 cat conftest.err >&5
6748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6749 (exit $ac_status); } &&
6750 { ac_try='test -z "$ac_c_werror_flag"
6751 || test ! -s conftest.err'
6752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6753 (eval $ac_try) 2>&5
6754 ac_status=$?
6755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6756 (exit $ac_status); }; } &&
6757 { ac_try='test -s conftest.$ac_objext'
6758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6759 (eval $ac_try) 2>&5
6760 ac_status=$?
6761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6762 (exit $ac_status); }; }; then
6763 ac_header_compiler=yes
6764 else
6765 echo "$as_me: failed program was:" >&5
6766 sed 's/^/| /' conftest.$ac_ext >&5
6768 ac_header_compiler=no
6770 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6771 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6772 echo "${ECHO_T}$ac_header_compiler" >&6
6774 # Is the header present?
6775 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6776 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6777 cat >conftest.$ac_ext <<_ACEOF
6778 /* confdefs.h. */
6779 _ACEOF
6780 cat confdefs.h >>conftest.$ac_ext
6781 cat >>conftest.$ac_ext <<_ACEOF
6782 /* end confdefs.h. */
6783 #include <$ac_header>
6784 _ACEOF
6785 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6786 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6787 ac_status=$?
6788 grep -v '^ *+' conftest.er1 >conftest.err
6789 rm -f conftest.er1
6790 cat conftest.err >&5
6791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6792 (exit $ac_status); } >/dev/null; then
6793 if test -s conftest.err; then
6794 ac_cpp_err=$ac_c_preproc_warn_flag
6795 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6796 else
6797 ac_cpp_err=
6799 else
6800 ac_cpp_err=yes
6802 if test -z "$ac_cpp_err"; then
6803 ac_header_preproc=yes
6804 else
6805 echo "$as_me: failed program was:" >&5
6806 sed 's/^/| /' conftest.$ac_ext >&5
6808 ac_header_preproc=no
6810 rm -f conftest.err conftest.$ac_ext
6811 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6812 echo "${ECHO_T}$ac_header_preproc" >&6
6814 # So? What about this header?
6815 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6816 yes:no: )
6817 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6818 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6819 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6820 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6821 ac_header_preproc=yes
6823 no:yes:* )
6824 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6825 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6826 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6827 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6828 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6829 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6830 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6831 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6832 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6833 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6834 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6835 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6837 cat <<\_ASBOX
6838 ## ------------------------------------------ ##
6839 ## Report this to the AC_PACKAGE_NAME lists. ##
6840 ## ------------------------------------------ ##
6841 _ASBOX
6843 sed "s/^/$as_me: WARNING: /" >&2
6845 esac
6846 echo "$as_me:$LINENO: checking for $ac_header" >&5
6847 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6848 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6849 echo $ECHO_N "(cached) $ECHO_C" >&6
6850 else
6851 eval "$as_ac_Header=\$ac_header_preproc"
6853 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6854 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6857 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6858 cat >>confdefs.h <<_ACEOF
6859 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6860 _ACEOF
6864 done
6867 for ac_header in net/if.h
6869 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6870 echo "$as_me:$LINENO: checking for $ac_header" >&5
6871 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6872 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6873 echo $ECHO_N "(cached) $ECHO_C" >&6
6874 else
6875 cat >conftest.$ac_ext <<_ACEOF
6876 /* confdefs.h. */
6877 _ACEOF
6878 cat confdefs.h >>conftest.$ac_ext
6879 cat >>conftest.$ac_ext <<_ACEOF
6880 /* end confdefs.h. */
6881 $ac_includes_default
6882 #if HAVE_SYS_SOCKET_H
6883 #include <sys/socket.h>
6884 #endif
6886 #include <$ac_header>
6887 _ACEOF
6888 rm -f conftest.$ac_objext
6889 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6890 (eval $ac_compile) 2>conftest.er1
6891 ac_status=$?
6892 grep -v '^ *+' conftest.er1 >conftest.err
6893 rm -f conftest.er1
6894 cat conftest.err >&5
6895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6896 (exit $ac_status); } &&
6897 { ac_try='test -z "$ac_c_werror_flag"
6898 || test ! -s conftest.err'
6899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6900 (eval $ac_try) 2>&5
6901 ac_status=$?
6902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6903 (exit $ac_status); }; } &&
6904 { ac_try='test -s conftest.$ac_objext'
6905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6906 (eval $ac_try) 2>&5
6907 ac_status=$?
6908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6909 (exit $ac_status); }; }; then
6910 eval "$as_ac_Header=yes"
6911 else
6912 echo "$as_me: failed program was:" >&5
6913 sed 's/^/| /' conftest.$ac_ext >&5
6915 eval "$as_ac_Header=no"
6917 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6919 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6920 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6921 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6922 cat >>confdefs.h <<_ACEOF
6923 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6924 _ACEOF
6928 done
6931 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
6932 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
6933 if test "${ac_cv_struct_tm+set}" = set; then
6934 echo $ECHO_N "(cached) $ECHO_C" >&6
6935 else
6936 cat >conftest.$ac_ext <<_ACEOF
6937 /* confdefs.h. */
6938 _ACEOF
6939 cat confdefs.h >>conftest.$ac_ext
6940 cat >>conftest.$ac_ext <<_ACEOF
6941 /* end confdefs.h. */
6942 #include <sys/types.h>
6943 #include <time.h>
6946 main ()
6948 struct tm *tp; tp->tm_sec;
6950 return 0;
6952 _ACEOF
6953 rm -f conftest.$ac_objext
6954 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6955 (eval $ac_compile) 2>conftest.er1
6956 ac_status=$?
6957 grep -v '^ *+' conftest.er1 >conftest.err
6958 rm -f conftest.er1
6959 cat conftest.err >&5
6960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6961 (exit $ac_status); } &&
6962 { ac_try='test -z "$ac_c_werror_flag"
6963 || test ! -s conftest.err'
6964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6965 (eval $ac_try) 2>&5
6966 ac_status=$?
6967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6968 (exit $ac_status); }; } &&
6969 { ac_try='test -s conftest.$ac_objext'
6970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6971 (eval $ac_try) 2>&5
6972 ac_status=$?
6973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6974 (exit $ac_status); }; }; then
6975 ac_cv_struct_tm=time.h
6976 else
6977 echo "$as_me: failed program was:" >&5
6978 sed 's/^/| /' conftest.$ac_ext >&5
6980 ac_cv_struct_tm=sys/time.h
6982 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6984 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
6985 echo "${ECHO_T}$ac_cv_struct_tm" >&6
6986 if test $ac_cv_struct_tm = sys/time.h; then
6988 cat >>confdefs.h <<\_ACEOF
6989 #define TM_IN_SYS_TIME 1
6990 _ACEOF
6994 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
6995 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
6996 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
6997 echo $ECHO_N "(cached) $ECHO_C" >&6
6998 else
6999 cat >conftest.$ac_ext <<_ACEOF
7000 /* confdefs.h. */
7001 _ACEOF
7002 cat confdefs.h >>conftest.$ac_ext
7003 cat >>conftest.$ac_ext <<_ACEOF
7004 /* end confdefs.h. */
7005 #include <sys/types.h>
7006 #include <$ac_cv_struct_tm>
7010 main ()
7012 static struct tm ac_aggr;
7013 if (ac_aggr.tm_zone)
7014 return 0;
7016 return 0;
7018 _ACEOF
7019 rm -f conftest.$ac_objext
7020 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7021 (eval $ac_compile) 2>conftest.er1
7022 ac_status=$?
7023 grep -v '^ *+' conftest.er1 >conftest.err
7024 rm -f conftest.er1
7025 cat conftest.err >&5
7026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7027 (exit $ac_status); } &&
7028 { ac_try='test -z "$ac_c_werror_flag"
7029 || test ! -s conftest.err'
7030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7031 (eval $ac_try) 2>&5
7032 ac_status=$?
7033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7034 (exit $ac_status); }; } &&
7035 { ac_try='test -s conftest.$ac_objext'
7036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7037 (eval $ac_try) 2>&5
7038 ac_status=$?
7039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7040 (exit $ac_status); }; }; then
7041 ac_cv_member_struct_tm_tm_zone=yes
7042 else
7043 echo "$as_me: failed program was:" >&5
7044 sed 's/^/| /' conftest.$ac_ext >&5
7046 cat >conftest.$ac_ext <<_ACEOF
7047 /* confdefs.h. */
7048 _ACEOF
7049 cat confdefs.h >>conftest.$ac_ext
7050 cat >>conftest.$ac_ext <<_ACEOF
7051 /* end confdefs.h. */
7052 #include <sys/types.h>
7053 #include <$ac_cv_struct_tm>
7057 main ()
7059 static struct tm ac_aggr;
7060 if (sizeof ac_aggr.tm_zone)
7061 return 0;
7063 return 0;
7065 _ACEOF
7066 rm -f conftest.$ac_objext
7067 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7068 (eval $ac_compile) 2>conftest.er1
7069 ac_status=$?
7070 grep -v '^ *+' conftest.er1 >conftest.err
7071 rm -f conftest.er1
7072 cat conftest.err >&5
7073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7074 (exit $ac_status); } &&
7075 { ac_try='test -z "$ac_c_werror_flag"
7076 || test ! -s conftest.err'
7077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7078 (eval $ac_try) 2>&5
7079 ac_status=$?
7080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7081 (exit $ac_status); }; } &&
7082 { ac_try='test -s conftest.$ac_objext'
7083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7084 (eval $ac_try) 2>&5
7085 ac_status=$?
7086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7087 (exit $ac_status); }; }; then
7088 ac_cv_member_struct_tm_tm_zone=yes
7089 else
7090 echo "$as_me: failed program was:" >&5
7091 sed 's/^/| /' conftest.$ac_ext >&5
7093 ac_cv_member_struct_tm_tm_zone=no
7095 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7097 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7099 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
7100 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
7101 if test $ac_cv_member_struct_tm_tm_zone = yes; then
7103 cat >>confdefs.h <<_ACEOF
7104 #define HAVE_STRUCT_TM_TM_ZONE 1
7105 _ACEOF
7110 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
7112 cat >>confdefs.h <<\_ACEOF
7113 #define HAVE_TM_ZONE 1
7114 _ACEOF
7116 else
7117 echo "$as_me:$LINENO: checking for tzname" >&5
7118 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
7119 if test "${ac_cv_var_tzname+set}" = set; then
7120 echo $ECHO_N "(cached) $ECHO_C" >&6
7121 else
7122 cat >conftest.$ac_ext <<_ACEOF
7123 /* confdefs.h. */
7124 _ACEOF
7125 cat confdefs.h >>conftest.$ac_ext
7126 cat >>conftest.$ac_ext <<_ACEOF
7127 /* end confdefs.h. */
7128 #include <time.h>
7129 #ifndef tzname /* For SGI. */
7130 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
7131 #endif
7134 main ()
7136 atoi(*tzname);
7138 return 0;
7140 _ACEOF
7141 rm -f conftest.$ac_objext conftest$ac_exeext
7142 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7143 (eval $ac_link) 2>conftest.er1
7144 ac_status=$?
7145 grep -v '^ *+' conftest.er1 >conftest.err
7146 rm -f conftest.er1
7147 cat conftest.err >&5
7148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7149 (exit $ac_status); } &&
7150 { ac_try='test -z "$ac_c_werror_flag"
7151 || test ! -s conftest.err'
7152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7153 (eval $ac_try) 2>&5
7154 ac_status=$?
7155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7156 (exit $ac_status); }; } &&
7157 { ac_try='test -s conftest$ac_exeext'
7158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7159 (eval $ac_try) 2>&5
7160 ac_status=$?
7161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7162 (exit $ac_status); }; }; then
7163 ac_cv_var_tzname=yes
7164 else
7165 echo "$as_me: failed program was:" >&5
7166 sed 's/^/| /' conftest.$ac_ext >&5
7168 ac_cv_var_tzname=no
7170 rm -f conftest.err conftest.$ac_objext \
7171 conftest$ac_exeext conftest.$ac_ext
7173 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
7174 echo "${ECHO_T}$ac_cv_var_tzname" >&6
7175 if test $ac_cv_var_tzname = yes; then
7177 cat >>confdefs.h <<\_ACEOF
7178 #define HAVE_TZNAME 1
7179 _ACEOF
7184 echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
7185 echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6
7186 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
7187 echo $ECHO_N "(cached) $ECHO_C" >&6
7188 else
7189 cat >conftest.$ac_ext <<_ACEOF
7190 /* confdefs.h. */
7191 _ACEOF
7192 cat confdefs.h >>conftest.$ac_ext
7193 cat >>conftest.$ac_ext <<_ACEOF
7194 /* end confdefs.h. */
7195 #include <time.h>
7198 main ()
7200 static struct tm ac_aggr;
7201 if (ac_aggr.tm_gmtoff)
7202 return 0;
7204 return 0;
7206 _ACEOF
7207 rm -f conftest.$ac_objext
7208 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7209 (eval $ac_compile) 2>conftest.er1
7210 ac_status=$?
7211 grep -v '^ *+' conftest.er1 >conftest.err
7212 rm -f conftest.er1
7213 cat conftest.err >&5
7214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7215 (exit $ac_status); } &&
7216 { ac_try='test -z "$ac_c_werror_flag"
7217 || test ! -s conftest.err'
7218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7219 (eval $ac_try) 2>&5
7220 ac_status=$?
7221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7222 (exit $ac_status); }; } &&
7223 { ac_try='test -s conftest.$ac_objext'
7224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7225 (eval $ac_try) 2>&5
7226 ac_status=$?
7227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7228 (exit $ac_status); }; }; then
7229 ac_cv_member_struct_tm_tm_gmtoff=yes
7230 else
7231 echo "$as_me: failed program was:" >&5
7232 sed 's/^/| /' conftest.$ac_ext >&5
7234 cat >conftest.$ac_ext <<_ACEOF
7235 /* confdefs.h. */
7236 _ACEOF
7237 cat confdefs.h >>conftest.$ac_ext
7238 cat >>conftest.$ac_ext <<_ACEOF
7239 /* end confdefs.h. */
7240 #include <time.h>
7243 main ()
7245 static struct tm ac_aggr;
7246 if (sizeof ac_aggr.tm_gmtoff)
7247 return 0;
7249 return 0;
7251 _ACEOF
7252 rm -f conftest.$ac_objext
7253 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7254 (eval $ac_compile) 2>conftest.er1
7255 ac_status=$?
7256 grep -v '^ *+' conftest.er1 >conftest.err
7257 rm -f conftest.er1
7258 cat conftest.err >&5
7259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7260 (exit $ac_status); } &&
7261 { ac_try='test -z "$ac_c_werror_flag"
7262 || test ! -s conftest.err'
7263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7264 (eval $ac_try) 2>&5
7265 ac_status=$?
7266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7267 (exit $ac_status); }; } &&
7268 { ac_try='test -s conftest.$ac_objext'
7269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7270 (eval $ac_try) 2>&5
7271 ac_status=$?
7272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7273 (exit $ac_status); }; }; then
7274 ac_cv_member_struct_tm_tm_gmtoff=yes
7275 else
7276 echo "$as_me: failed program was:" >&5
7277 sed 's/^/| /' conftest.$ac_ext >&5
7279 ac_cv_member_struct_tm_tm_gmtoff=no
7281 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7283 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7285 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
7286 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6
7287 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
7289 cat >>confdefs.h <<\_ACEOF
7290 #define HAVE_TM_GMTOFF 1
7291 _ACEOF
7295 echo "$as_me:$LINENO: checking for struct ifreq.ifr_flags" >&5
7296 echo $ECHO_N "checking for struct ifreq.ifr_flags... $ECHO_C" >&6
7297 if test "${ac_cv_member_struct_ifreq_ifr_flags+set}" = set; then
7298 echo $ECHO_N "(cached) $ECHO_C" >&6
7299 else
7300 cat >conftest.$ac_ext <<_ACEOF
7301 /* confdefs.h. */
7302 _ACEOF
7303 cat confdefs.h >>conftest.$ac_ext
7304 cat >>conftest.$ac_ext <<_ACEOF
7305 /* end confdefs.h. */
7306 $ac_includes_default
7307 #if HAVE_SYS_SOCKET_H
7308 #include <sys/socket.h>
7309 #endif
7310 #if HAVE_NET_IF_H
7311 #include <net/if.h>
7312 #endif
7315 main ()
7317 static struct ifreq ac_aggr;
7318 if (ac_aggr.ifr_flags)
7319 return 0;
7321 return 0;
7323 _ACEOF
7324 rm -f conftest.$ac_objext
7325 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7326 (eval $ac_compile) 2>conftest.er1
7327 ac_status=$?
7328 grep -v '^ *+' conftest.er1 >conftest.err
7329 rm -f conftest.er1
7330 cat conftest.err >&5
7331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7332 (exit $ac_status); } &&
7333 { ac_try='test -z "$ac_c_werror_flag"
7334 || test ! -s conftest.err'
7335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7336 (eval $ac_try) 2>&5
7337 ac_status=$?
7338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7339 (exit $ac_status); }; } &&
7340 { ac_try='test -s conftest.$ac_objext'
7341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7342 (eval $ac_try) 2>&5
7343 ac_status=$?
7344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7345 (exit $ac_status); }; }; then
7346 ac_cv_member_struct_ifreq_ifr_flags=yes
7347 else
7348 echo "$as_me: failed program was:" >&5
7349 sed 's/^/| /' conftest.$ac_ext >&5
7351 cat >conftest.$ac_ext <<_ACEOF
7352 /* confdefs.h. */
7353 _ACEOF
7354 cat confdefs.h >>conftest.$ac_ext
7355 cat >>conftest.$ac_ext <<_ACEOF
7356 /* end confdefs.h. */
7357 $ac_includes_default
7358 #if HAVE_SYS_SOCKET_H
7359 #include <sys/socket.h>
7360 #endif
7361 #if HAVE_NET_IF_H
7362 #include <net/if.h>
7363 #endif
7366 main ()
7368 static struct ifreq ac_aggr;
7369 if (sizeof ac_aggr.ifr_flags)
7370 return 0;
7372 return 0;
7374 _ACEOF
7375 rm -f conftest.$ac_objext
7376 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7377 (eval $ac_compile) 2>conftest.er1
7378 ac_status=$?
7379 grep -v '^ *+' conftest.er1 >conftest.err
7380 rm -f conftest.er1
7381 cat conftest.err >&5
7382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7383 (exit $ac_status); } &&
7384 { ac_try='test -z "$ac_c_werror_flag"
7385 || test ! -s conftest.err'
7386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7387 (eval $ac_try) 2>&5
7388 ac_status=$?
7389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7390 (exit $ac_status); }; } &&
7391 { ac_try='test -s conftest.$ac_objext'
7392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7393 (eval $ac_try) 2>&5
7394 ac_status=$?
7395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7396 (exit $ac_status); }; }; then
7397 ac_cv_member_struct_ifreq_ifr_flags=yes
7398 else
7399 echo "$as_me: failed program was:" >&5
7400 sed 's/^/| /' conftest.$ac_ext >&5
7402 ac_cv_member_struct_ifreq_ifr_flags=no
7404 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7406 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7408 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_flags" >&5
7409 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_flags" >&6
7410 if test $ac_cv_member_struct_ifreq_ifr_flags = yes; then
7412 cat >>confdefs.h <<_ACEOF
7413 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
7414 _ACEOF
7418 echo "$as_me:$LINENO: checking for struct ifreq.ifr_hwaddr" >&5
7419 echo $ECHO_N "checking for struct ifreq.ifr_hwaddr... $ECHO_C" >&6
7420 if test "${ac_cv_member_struct_ifreq_ifr_hwaddr+set}" = set; then
7421 echo $ECHO_N "(cached) $ECHO_C" >&6
7422 else
7423 cat >conftest.$ac_ext <<_ACEOF
7424 /* confdefs.h. */
7425 _ACEOF
7426 cat confdefs.h >>conftest.$ac_ext
7427 cat >>conftest.$ac_ext <<_ACEOF
7428 /* end confdefs.h. */
7429 $ac_includes_default
7430 #if HAVE_SYS_SOCKET_H
7431 #include <sys/socket.h>
7432 #endif
7433 #if HAVE_NET_IF_H
7434 #include <net/if.h>
7435 #endif
7438 main ()
7440 static struct ifreq ac_aggr;
7441 if (ac_aggr.ifr_hwaddr)
7442 return 0;
7444 return 0;
7446 _ACEOF
7447 rm -f conftest.$ac_objext
7448 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7449 (eval $ac_compile) 2>conftest.er1
7450 ac_status=$?
7451 grep -v '^ *+' conftest.er1 >conftest.err
7452 rm -f conftest.er1
7453 cat conftest.err >&5
7454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7455 (exit $ac_status); } &&
7456 { ac_try='test -z "$ac_c_werror_flag"
7457 || test ! -s conftest.err'
7458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7459 (eval $ac_try) 2>&5
7460 ac_status=$?
7461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7462 (exit $ac_status); }; } &&
7463 { ac_try='test -s conftest.$ac_objext'
7464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7465 (eval $ac_try) 2>&5
7466 ac_status=$?
7467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7468 (exit $ac_status); }; }; then
7469 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
7470 else
7471 echo "$as_me: failed program was:" >&5
7472 sed 's/^/| /' conftest.$ac_ext >&5
7474 cat >conftest.$ac_ext <<_ACEOF
7475 /* confdefs.h. */
7476 _ACEOF
7477 cat confdefs.h >>conftest.$ac_ext
7478 cat >>conftest.$ac_ext <<_ACEOF
7479 /* end confdefs.h. */
7480 $ac_includes_default
7481 #if HAVE_SYS_SOCKET_H
7482 #include <sys/socket.h>
7483 #endif
7484 #if HAVE_NET_IF_H
7485 #include <net/if.h>
7486 #endif
7489 main ()
7491 static struct ifreq ac_aggr;
7492 if (sizeof ac_aggr.ifr_hwaddr)
7493 return 0;
7495 return 0;
7497 _ACEOF
7498 rm -f conftest.$ac_objext
7499 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7500 (eval $ac_compile) 2>conftest.er1
7501 ac_status=$?
7502 grep -v '^ *+' conftest.er1 >conftest.err
7503 rm -f conftest.er1
7504 cat conftest.err >&5
7505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7506 (exit $ac_status); } &&
7507 { ac_try='test -z "$ac_c_werror_flag"
7508 || test ! -s conftest.err'
7509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7510 (eval $ac_try) 2>&5
7511 ac_status=$?
7512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7513 (exit $ac_status); }; } &&
7514 { ac_try='test -s conftest.$ac_objext'
7515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7516 (eval $ac_try) 2>&5
7517 ac_status=$?
7518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7519 (exit $ac_status); }; }; then
7520 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
7521 else
7522 echo "$as_me: failed program was:" >&5
7523 sed 's/^/| /' conftest.$ac_ext >&5
7525 ac_cv_member_struct_ifreq_ifr_hwaddr=no
7527 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7529 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7531 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_hwaddr" >&5
7532 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_hwaddr" >&6
7533 if test $ac_cv_member_struct_ifreq_ifr_hwaddr = yes; then
7535 cat >>confdefs.h <<_ACEOF
7536 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
7537 _ACEOF
7541 echo "$as_me:$LINENO: checking for struct ifreq.ifr_netmask" >&5
7542 echo $ECHO_N "checking for struct ifreq.ifr_netmask... $ECHO_C" >&6
7543 if test "${ac_cv_member_struct_ifreq_ifr_netmask+set}" = set; then
7544 echo $ECHO_N "(cached) $ECHO_C" >&6
7545 else
7546 cat >conftest.$ac_ext <<_ACEOF
7547 /* confdefs.h. */
7548 _ACEOF
7549 cat confdefs.h >>conftest.$ac_ext
7550 cat >>conftest.$ac_ext <<_ACEOF
7551 /* end confdefs.h. */
7552 $ac_includes_default
7553 #if HAVE_SYS_SOCKET_H
7554 #include <sys/socket.h>
7555 #endif
7556 #if HAVE_NET_IF_H
7557 #include <net/if.h>
7558 #endif
7561 main ()
7563 static struct ifreq ac_aggr;
7564 if (ac_aggr.ifr_netmask)
7565 return 0;
7567 return 0;
7569 _ACEOF
7570 rm -f conftest.$ac_objext
7571 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7572 (eval $ac_compile) 2>conftest.er1
7573 ac_status=$?
7574 grep -v '^ *+' conftest.er1 >conftest.err
7575 rm -f conftest.er1
7576 cat conftest.err >&5
7577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7578 (exit $ac_status); } &&
7579 { ac_try='test -z "$ac_c_werror_flag"
7580 || test ! -s conftest.err'
7581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7582 (eval $ac_try) 2>&5
7583 ac_status=$?
7584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7585 (exit $ac_status); }; } &&
7586 { ac_try='test -s conftest.$ac_objext'
7587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7588 (eval $ac_try) 2>&5
7589 ac_status=$?
7590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7591 (exit $ac_status); }; }; then
7592 ac_cv_member_struct_ifreq_ifr_netmask=yes
7593 else
7594 echo "$as_me: failed program was:" >&5
7595 sed 's/^/| /' conftest.$ac_ext >&5
7597 cat >conftest.$ac_ext <<_ACEOF
7598 /* confdefs.h. */
7599 _ACEOF
7600 cat confdefs.h >>conftest.$ac_ext
7601 cat >>conftest.$ac_ext <<_ACEOF
7602 /* end confdefs.h. */
7603 $ac_includes_default
7604 #if HAVE_SYS_SOCKET_H
7605 #include <sys/socket.h>
7606 #endif
7607 #if HAVE_NET_IF_H
7608 #include <net/if.h>
7609 #endif
7612 main ()
7614 static struct ifreq ac_aggr;
7615 if (sizeof ac_aggr.ifr_netmask)
7616 return 0;
7618 return 0;
7620 _ACEOF
7621 rm -f conftest.$ac_objext
7622 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7623 (eval $ac_compile) 2>conftest.er1
7624 ac_status=$?
7625 grep -v '^ *+' conftest.er1 >conftest.err
7626 rm -f conftest.er1
7627 cat conftest.err >&5
7628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7629 (exit $ac_status); } &&
7630 { ac_try='test -z "$ac_c_werror_flag"
7631 || test ! -s conftest.err'
7632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7633 (eval $ac_try) 2>&5
7634 ac_status=$?
7635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7636 (exit $ac_status); }; } &&
7637 { ac_try='test -s conftest.$ac_objext'
7638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7639 (eval $ac_try) 2>&5
7640 ac_status=$?
7641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7642 (exit $ac_status); }; }; then
7643 ac_cv_member_struct_ifreq_ifr_netmask=yes
7644 else
7645 echo "$as_me: failed program was:" >&5
7646 sed 's/^/| /' conftest.$ac_ext >&5
7648 ac_cv_member_struct_ifreq_ifr_netmask=no
7650 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7652 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7654 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_netmask" >&5
7655 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_netmask" >&6
7656 if test $ac_cv_member_struct_ifreq_ifr_netmask = yes; then
7658 cat >>confdefs.h <<_ACEOF
7659 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
7660 _ACEOF
7664 echo "$as_me:$LINENO: checking for struct ifreq.ifr_broadaddr" >&5
7665 echo $ECHO_N "checking for struct ifreq.ifr_broadaddr... $ECHO_C" >&6
7666 if test "${ac_cv_member_struct_ifreq_ifr_broadaddr+set}" = set; then
7667 echo $ECHO_N "(cached) $ECHO_C" >&6
7668 else
7669 cat >conftest.$ac_ext <<_ACEOF
7670 /* confdefs.h. */
7671 _ACEOF
7672 cat confdefs.h >>conftest.$ac_ext
7673 cat >>conftest.$ac_ext <<_ACEOF
7674 /* end confdefs.h. */
7675 $ac_includes_default
7676 #if HAVE_SYS_SOCKET_H
7677 #include <sys/socket.h>
7678 #endif
7679 #if HAVE_NET_IF_H
7680 #include <net/if.h>
7681 #endif
7684 main ()
7686 static struct ifreq ac_aggr;
7687 if (ac_aggr.ifr_broadaddr)
7688 return 0;
7690 return 0;
7692 _ACEOF
7693 rm -f conftest.$ac_objext
7694 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7695 (eval $ac_compile) 2>conftest.er1
7696 ac_status=$?
7697 grep -v '^ *+' conftest.er1 >conftest.err
7698 rm -f conftest.er1
7699 cat conftest.err >&5
7700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7701 (exit $ac_status); } &&
7702 { ac_try='test -z "$ac_c_werror_flag"
7703 || test ! -s conftest.err'
7704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7705 (eval $ac_try) 2>&5
7706 ac_status=$?
7707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7708 (exit $ac_status); }; } &&
7709 { ac_try='test -s conftest.$ac_objext'
7710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7711 (eval $ac_try) 2>&5
7712 ac_status=$?
7713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7714 (exit $ac_status); }; }; then
7715 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
7716 else
7717 echo "$as_me: failed program was:" >&5
7718 sed 's/^/| /' conftest.$ac_ext >&5
7720 cat >conftest.$ac_ext <<_ACEOF
7721 /* confdefs.h. */
7722 _ACEOF
7723 cat confdefs.h >>conftest.$ac_ext
7724 cat >>conftest.$ac_ext <<_ACEOF
7725 /* end confdefs.h. */
7726 $ac_includes_default
7727 #if HAVE_SYS_SOCKET_H
7728 #include <sys/socket.h>
7729 #endif
7730 #if HAVE_NET_IF_H
7731 #include <net/if.h>
7732 #endif
7735 main ()
7737 static struct ifreq ac_aggr;
7738 if (sizeof ac_aggr.ifr_broadaddr)
7739 return 0;
7741 return 0;
7743 _ACEOF
7744 rm -f conftest.$ac_objext
7745 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7746 (eval $ac_compile) 2>conftest.er1
7747 ac_status=$?
7748 grep -v '^ *+' conftest.er1 >conftest.err
7749 rm -f conftest.er1
7750 cat conftest.err >&5
7751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7752 (exit $ac_status); } &&
7753 { ac_try='test -z "$ac_c_werror_flag"
7754 || test ! -s conftest.err'
7755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7756 (eval $ac_try) 2>&5
7757 ac_status=$?
7758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7759 (exit $ac_status); }; } &&
7760 { ac_try='test -s conftest.$ac_objext'
7761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7762 (eval $ac_try) 2>&5
7763 ac_status=$?
7764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7765 (exit $ac_status); }; }; then
7766 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
7767 else
7768 echo "$as_me: failed program was:" >&5
7769 sed 's/^/| /' conftest.$ac_ext >&5
7771 ac_cv_member_struct_ifreq_ifr_broadaddr=no
7773 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7775 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7777 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_broadaddr" >&5
7778 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_broadaddr" >&6
7779 if test $ac_cv_member_struct_ifreq_ifr_broadaddr = yes; then
7781 cat >>confdefs.h <<_ACEOF
7782 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
7783 _ACEOF
7787 echo "$as_me:$LINENO: checking for struct ifreq.ifr_addr" >&5
7788 echo $ECHO_N "checking for struct ifreq.ifr_addr... $ECHO_C" >&6
7789 if test "${ac_cv_member_struct_ifreq_ifr_addr+set}" = set; then
7790 echo $ECHO_N "(cached) $ECHO_C" >&6
7791 else
7792 cat >conftest.$ac_ext <<_ACEOF
7793 /* confdefs.h. */
7794 _ACEOF
7795 cat confdefs.h >>conftest.$ac_ext
7796 cat >>conftest.$ac_ext <<_ACEOF
7797 /* end confdefs.h. */
7798 $ac_includes_default
7799 #if HAVE_SYS_SOCKET_H
7800 #include <sys/socket.h>
7801 #endif
7802 #if HAVE_NET_IF_H
7803 #include <net/if.h>
7804 #endif
7807 main ()
7809 static struct ifreq ac_aggr;
7810 if (ac_aggr.ifr_addr)
7811 return 0;
7813 return 0;
7815 _ACEOF
7816 rm -f conftest.$ac_objext
7817 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7818 (eval $ac_compile) 2>conftest.er1
7819 ac_status=$?
7820 grep -v '^ *+' conftest.er1 >conftest.err
7821 rm -f conftest.er1
7822 cat conftest.err >&5
7823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7824 (exit $ac_status); } &&
7825 { ac_try='test -z "$ac_c_werror_flag"
7826 || test ! -s conftest.err'
7827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7828 (eval $ac_try) 2>&5
7829 ac_status=$?
7830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7831 (exit $ac_status); }; } &&
7832 { ac_try='test -s conftest.$ac_objext'
7833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7834 (eval $ac_try) 2>&5
7835 ac_status=$?
7836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7837 (exit $ac_status); }; }; then
7838 ac_cv_member_struct_ifreq_ifr_addr=yes
7839 else
7840 echo "$as_me: failed program was:" >&5
7841 sed 's/^/| /' conftest.$ac_ext >&5
7843 cat >conftest.$ac_ext <<_ACEOF
7844 /* confdefs.h. */
7845 _ACEOF
7846 cat confdefs.h >>conftest.$ac_ext
7847 cat >>conftest.$ac_ext <<_ACEOF
7848 /* end confdefs.h. */
7849 $ac_includes_default
7850 #if HAVE_SYS_SOCKET_H
7851 #include <sys/socket.h>
7852 #endif
7853 #if HAVE_NET_IF_H
7854 #include <net/if.h>
7855 #endif
7858 main ()
7860 static struct ifreq ac_aggr;
7861 if (sizeof ac_aggr.ifr_addr)
7862 return 0;
7864 return 0;
7866 _ACEOF
7867 rm -f conftest.$ac_objext
7868 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7869 (eval $ac_compile) 2>conftest.er1
7870 ac_status=$?
7871 grep -v '^ *+' conftest.er1 >conftest.err
7872 rm -f conftest.er1
7873 cat conftest.err >&5
7874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7875 (exit $ac_status); } &&
7876 { ac_try='test -z "$ac_c_werror_flag"
7877 || test ! -s conftest.err'
7878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7879 (eval $ac_try) 2>&5
7880 ac_status=$?
7881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7882 (exit $ac_status); }; } &&
7883 { ac_try='test -s conftest.$ac_objext'
7884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7885 (eval $ac_try) 2>&5
7886 ac_status=$?
7887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7888 (exit $ac_status); }; }; then
7889 ac_cv_member_struct_ifreq_ifr_addr=yes
7890 else
7891 echo "$as_me: failed program was:" >&5
7892 sed 's/^/| /' conftest.$ac_ext >&5
7894 ac_cv_member_struct_ifreq_ifr_addr=no
7896 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7898 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7900 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_addr" >&5
7901 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_addr" >&6
7902 if test $ac_cv_member_struct_ifreq_ifr_addr = yes; then
7904 cat >>confdefs.h <<_ACEOF
7905 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
7906 _ACEOF
7913 echo "$as_me:$LINENO: checking for function prototypes" >&5
7914 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
7915 if test "$ac_cv_prog_cc_stdc" != no; then
7916 echo "$as_me:$LINENO: result: yes" >&5
7917 echo "${ECHO_T}yes" >&6
7919 cat >>confdefs.h <<\_ACEOF
7920 #define PROTOTYPES 1
7921 _ACEOF
7924 cat >>confdefs.h <<\_ACEOF
7925 #define __PROTOTYPES 1
7926 _ACEOF
7928 else
7929 echo "$as_me:$LINENO: result: no" >&5
7930 echo "${ECHO_T}no" >&6
7933 echo "$as_me:$LINENO: checking for working volatile" >&5
7934 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
7935 if test "${ac_cv_c_volatile+set}" = set; then
7936 echo $ECHO_N "(cached) $ECHO_C" >&6
7937 else
7938 cat >conftest.$ac_ext <<_ACEOF
7939 /* confdefs.h. */
7940 _ACEOF
7941 cat confdefs.h >>conftest.$ac_ext
7942 cat >>conftest.$ac_ext <<_ACEOF
7943 /* end confdefs.h. */
7946 main ()
7949 volatile int x;
7950 int * volatile y;
7952 return 0;
7954 _ACEOF
7955 rm -f conftest.$ac_objext
7956 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7957 (eval $ac_compile) 2>conftest.er1
7958 ac_status=$?
7959 grep -v '^ *+' conftest.er1 >conftest.err
7960 rm -f conftest.er1
7961 cat conftest.err >&5
7962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7963 (exit $ac_status); } &&
7964 { ac_try='test -z "$ac_c_werror_flag"
7965 || test ! -s conftest.err'
7966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7967 (eval $ac_try) 2>&5
7968 ac_status=$?
7969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7970 (exit $ac_status); }; } &&
7971 { ac_try='test -s conftest.$ac_objext'
7972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7973 (eval $ac_try) 2>&5
7974 ac_status=$?
7975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7976 (exit $ac_status); }; }; then
7977 ac_cv_c_volatile=yes
7978 else
7979 echo "$as_me: failed program was:" >&5
7980 sed 's/^/| /' conftest.$ac_ext >&5
7982 ac_cv_c_volatile=no
7984 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7986 echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
7987 echo "${ECHO_T}$ac_cv_c_volatile" >&6
7988 if test $ac_cv_c_volatile = no; then
7990 cat >>confdefs.h <<\_ACEOF
7991 #define volatile
7992 _ACEOF
7996 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
7997 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
7998 if test "${ac_cv_c_const+set}" = set; then
7999 echo $ECHO_N "(cached) $ECHO_C" >&6
8000 else
8001 cat >conftest.$ac_ext <<_ACEOF
8002 /* confdefs.h. */
8003 _ACEOF
8004 cat confdefs.h >>conftest.$ac_ext
8005 cat >>conftest.$ac_ext <<_ACEOF
8006 /* end confdefs.h. */
8009 main ()
8011 /* FIXME: Include the comments suggested by Paul. */
8012 #ifndef __cplusplus
8013 /* Ultrix mips cc rejects this. */
8014 typedef int charset[2];
8015 const charset x;
8016 /* SunOS 4.1.1 cc rejects this. */
8017 char const *const *ccp;
8018 char **p;
8019 /* NEC SVR4.0.2 mips cc rejects this. */
8020 struct point {int x, y;};
8021 static struct point const zero = {0,0};
8022 /* AIX XL C 1.02.0.0 rejects this.
8023 It does not let you subtract one const X* pointer from another in
8024 an arm of an if-expression whose if-part is not a constant
8025 expression */
8026 const char *g = "string";
8027 ccp = &g + (g ? g-g : 0);
8028 /* HPUX 7.0 cc rejects these. */
8029 ++ccp;
8030 p = (char**) ccp;
8031 ccp = (char const *const *) p;
8032 { /* SCO 3.2v4 cc rejects this. */
8033 char *t;
8034 char const *s = 0 ? (char *) 0 : (char const *) 0;
8036 *t++ = 0;
8038 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8039 int x[] = {25, 17};
8040 const int *foo = &x[0];
8041 ++foo;
8043 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8044 typedef const int *iptr;
8045 iptr p = 0;
8046 ++p;
8048 { /* AIX XL C 1.02.0.0 rejects this saying
8049 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8050 struct s { int j; const int *ap[3]; };
8051 struct s *b; b->j = 5;
8053 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8054 const int foo = 10;
8056 #endif
8059 return 0;
8061 _ACEOF
8062 rm -f conftest.$ac_objext
8063 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8064 (eval $ac_compile) 2>conftest.er1
8065 ac_status=$?
8066 grep -v '^ *+' conftest.er1 >conftest.err
8067 rm -f conftest.er1
8068 cat conftest.err >&5
8069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8070 (exit $ac_status); } &&
8071 { ac_try='test -z "$ac_c_werror_flag"
8072 || test ! -s conftest.err'
8073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8074 (eval $ac_try) 2>&5
8075 ac_status=$?
8076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8077 (exit $ac_status); }; } &&
8078 { ac_try='test -s conftest.$ac_objext'
8079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8080 (eval $ac_try) 2>&5
8081 ac_status=$?
8082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8083 (exit $ac_status); }; }; then
8084 ac_cv_c_const=yes
8085 else
8086 echo "$as_me: failed program was:" >&5
8087 sed 's/^/| /' conftest.$ac_ext >&5
8089 ac_cv_c_const=no
8091 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8093 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8094 echo "${ECHO_T}$ac_cv_c_const" >&6
8095 if test $ac_cv_c_const = no; then
8097 cat >>confdefs.h <<\_ACEOF
8098 #define const
8099 _ACEOF
8103 echo "$as_me:$LINENO: checking for void * support" >&5
8104 echo $ECHO_N "checking for void * support... $ECHO_C" >&6
8105 if test "${emacs_cv_void_star+set}" = set; then
8106 echo $ECHO_N "(cached) $ECHO_C" >&6
8107 else
8108 cat >conftest.$ac_ext <<_ACEOF
8109 /* confdefs.h. */
8110 _ACEOF
8111 cat confdefs.h >>conftest.$ac_ext
8112 cat >>conftest.$ac_ext <<_ACEOF
8113 /* end confdefs.h. */
8116 main ()
8118 void * foo;
8120 return 0;
8122 _ACEOF
8123 rm -f conftest.$ac_objext
8124 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8125 (eval $ac_compile) 2>conftest.er1
8126 ac_status=$?
8127 grep -v '^ *+' conftest.er1 >conftest.err
8128 rm -f conftest.er1
8129 cat conftest.err >&5
8130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8131 (exit $ac_status); } &&
8132 { ac_try='test -z "$ac_c_werror_flag"
8133 || test ! -s conftest.err'
8134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8135 (eval $ac_try) 2>&5
8136 ac_status=$?
8137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8138 (exit $ac_status); }; } &&
8139 { ac_try='test -s conftest.$ac_objext'
8140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8141 (eval $ac_try) 2>&5
8142 ac_status=$?
8143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8144 (exit $ac_status); }; }; then
8145 emacs_cv_void_star=yes
8146 else
8147 echo "$as_me: failed program was:" >&5
8148 sed 's/^/| /' conftest.$ac_ext >&5
8150 emacs_cv_void_star=no
8152 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8154 echo "$as_me:$LINENO: result: $emacs_cv_void_star" >&5
8155 echo "${ECHO_T}$emacs_cv_void_star" >&6
8156 if test $emacs_cv_void_star = yes; then
8157 cat >>confdefs.h <<\_ACEOF
8158 #define POINTER_TYPE void
8159 _ACEOF
8161 else
8162 cat >>confdefs.h <<\_ACEOF
8163 #define POINTER_TYPE char
8164 _ACEOF
8172 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8173 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
8174 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
8175 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
8176 echo $ECHO_N "(cached) $ECHO_C" >&6
8177 else
8178 cat >conftest.make <<\_ACEOF
8179 all:
8180 @echo 'ac_maketemp="$(MAKE)"'
8181 _ACEOF
8182 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8183 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
8184 if test -n "$ac_maketemp"; then
8185 eval ac_cv_prog_make_${ac_make}_set=yes
8186 else
8187 eval ac_cv_prog_make_${ac_make}_set=no
8189 rm -f conftest.make
8191 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
8192 echo "$as_me:$LINENO: result: yes" >&5
8193 echo "${ECHO_T}yes" >&6
8194 SET_MAKE=
8195 else
8196 echo "$as_me:$LINENO: result: no" >&5
8197 echo "${ECHO_T}no" >&6
8198 SET_MAKE="MAKE=${MAKE-make}"
8202 echo "$as_me:$LINENO: checking for long file names" >&5
8203 echo $ECHO_N "checking for long file names... $ECHO_C" >&6
8204 if test "${ac_cv_sys_long_file_names+set}" = set; then
8205 echo $ECHO_N "(cached) $ECHO_C" >&6
8206 else
8207 ac_cv_sys_long_file_names=yes
8208 # Test for long file names in all the places we know might matter:
8209 # . the current directory, where building will happen
8210 # $prefix/lib where we will be installing things
8211 # $exec_prefix/lib likewise
8212 # eval it to expand exec_prefix.
8213 # $TMPDIR if set, where it might want to write temporary files
8214 # if $TMPDIR is not set:
8215 # /tmp where it might want to write temporary files
8216 # /var/tmp likewise
8217 # /usr/tmp likewise
8218 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
8219 ac_tmpdirs=$TMPDIR
8220 else
8221 ac_tmpdirs='/tmp /var/tmp /usr/tmp'
8223 for ac_dir in . $ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
8224 test -d $ac_dir || continue
8225 test -w $ac_dir || continue # It is less confusing to not echo anything here.
8226 ac_xdir=$ac_dir/cf$$
8227 (umask 077 && mkdir $ac_xdir 2>/dev/null) || continue
8228 ac_tf1=$ac_xdir/conftest9012345
8229 ac_tf2=$ac_xdir/conftest9012346
8230 (echo 1 >$ac_tf1) 2>/dev/null
8231 (echo 2 >$ac_tf2) 2>/dev/null
8232 ac_val=`cat $ac_tf1 2>/dev/null`
8233 if test ! -f $ac_tf1 || test "$ac_val" != 1; then
8234 ac_cv_sys_long_file_names=no
8235 rm -rf $ac_xdir 2>/dev/null
8236 break
8238 rm -rf $ac_xdir 2>/dev/null
8239 done
8241 echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
8242 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6
8243 if test $ac_cv_sys_long_file_names = yes; then
8245 cat >>confdefs.h <<\_ACEOF
8246 #define HAVE_LONG_FILE_NAMES 1
8247 _ACEOF
8252 #### Choose a window system.
8254 echo "$as_me:$LINENO: checking for X" >&5
8255 echo $ECHO_N "checking for X... $ECHO_C" >&6
8258 # Check whether --with-x or --without-x was given.
8259 if test "${with_x+set}" = set; then
8260 withval="$with_x"
8263 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
8264 if test "x$with_x" = xno; then
8265 # The user explicitly disabled X.
8266 have_x=disabled
8267 else
8268 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
8269 # Both variables are already set.
8270 have_x=yes
8271 else
8272 if test "${ac_cv_have_x+set}" = set; then
8273 echo $ECHO_N "(cached) $ECHO_C" >&6
8274 else
8275 # One or both of the vars are not set, and there is no cached value.
8276 ac_x_includes=no ac_x_libraries=no
8277 rm -fr conftest.dir
8278 if mkdir conftest.dir; then
8279 cd conftest.dir
8280 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
8281 cat >Imakefile <<'_ACEOF'
8282 acfindx:
8283 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
8284 _ACEOF
8285 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
8286 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8287 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
8288 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
8289 for ac_extension in a so sl; do
8290 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
8291 test -f $ac_im_libdir/libX11.$ac_extension; then
8292 ac_im_usrlibdir=$ac_im_libdir; break
8294 done
8295 # Screen out bogus values from the imake configuration. They are
8296 # bogus both because they are the default anyway, and because
8297 # using them would break gcc on systems where it needs fixed includes.
8298 case $ac_im_incroot in
8299 /usr/include) ;;
8300 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
8301 esac
8302 case $ac_im_usrlibdir in
8303 /usr/lib | /lib) ;;
8304 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
8305 esac
8307 cd ..
8308 rm -fr conftest.dir
8311 # Standard set of common directories for X headers.
8312 # Check X11 before X11Rn because it is often a symlink to the current release.
8313 ac_x_header_dirs='
8314 /usr/X11/include
8315 /usr/X11R6/include
8316 /usr/X11R5/include
8317 /usr/X11R4/include
8319 /usr/include/X11
8320 /usr/include/X11R6
8321 /usr/include/X11R5
8322 /usr/include/X11R4
8324 /usr/local/X11/include
8325 /usr/local/X11R6/include
8326 /usr/local/X11R5/include
8327 /usr/local/X11R4/include
8329 /usr/local/include/X11
8330 /usr/local/include/X11R6
8331 /usr/local/include/X11R5
8332 /usr/local/include/X11R4
8334 /usr/X386/include
8335 /usr/x386/include
8336 /usr/XFree86/include/X11
8338 /usr/include
8339 /usr/local/include
8340 /usr/unsupported/include
8341 /usr/athena/include
8342 /usr/local/x11r5/include
8343 /usr/lpp/Xamples/include
8345 /usr/openwin/include
8346 /usr/openwin/share/include'
8348 if test "$ac_x_includes" = no; then
8349 # Guess where to find include files, by looking for Intrinsic.h.
8350 # First, try using that file with no special directory specified.
8351 cat >conftest.$ac_ext <<_ACEOF
8352 /* confdefs.h. */
8353 _ACEOF
8354 cat confdefs.h >>conftest.$ac_ext
8355 cat >>conftest.$ac_ext <<_ACEOF
8356 /* end confdefs.h. */
8357 #include <X11/Intrinsic.h>
8358 _ACEOF
8359 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8360 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8361 ac_status=$?
8362 grep -v '^ *+' conftest.er1 >conftest.err
8363 rm -f conftest.er1
8364 cat conftest.err >&5
8365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8366 (exit $ac_status); } >/dev/null; then
8367 if test -s conftest.err; then
8368 ac_cpp_err=$ac_c_preproc_warn_flag
8369 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8370 else
8371 ac_cpp_err=
8373 else
8374 ac_cpp_err=yes
8376 if test -z "$ac_cpp_err"; then
8377 # We can compile using X headers with no special include directory.
8378 ac_x_includes=
8379 else
8380 echo "$as_me: failed program was:" >&5
8381 sed 's/^/| /' conftest.$ac_ext >&5
8383 for ac_dir in $ac_x_header_dirs; do
8384 if test -r "$ac_dir/X11/Intrinsic.h"; then
8385 ac_x_includes=$ac_dir
8386 break
8388 done
8390 rm -f conftest.err conftest.$ac_ext
8391 fi # $ac_x_includes = no
8393 if test "$ac_x_libraries" = no; then
8394 # Check for the libraries.
8395 # See if we find them without any special options.
8396 # Don't add to $LIBS permanently.
8397 ac_save_LIBS=$LIBS
8398 LIBS="-lXt $LIBS"
8399 cat >conftest.$ac_ext <<_ACEOF
8400 /* confdefs.h. */
8401 _ACEOF
8402 cat confdefs.h >>conftest.$ac_ext
8403 cat >>conftest.$ac_ext <<_ACEOF
8404 /* end confdefs.h. */
8405 #include <X11/Intrinsic.h>
8407 main ()
8409 XtMalloc (0)
8411 return 0;
8413 _ACEOF
8414 rm -f conftest.$ac_objext conftest$ac_exeext
8415 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8416 (eval $ac_link) 2>conftest.er1
8417 ac_status=$?
8418 grep -v '^ *+' conftest.er1 >conftest.err
8419 rm -f conftest.er1
8420 cat conftest.err >&5
8421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8422 (exit $ac_status); } &&
8423 { ac_try='test -z "$ac_c_werror_flag"
8424 || test ! -s conftest.err'
8425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8426 (eval $ac_try) 2>&5
8427 ac_status=$?
8428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8429 (exit $ac_status); }; } &&
8430 { ac_try='test -s conftest$ac_exeext'
8431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8432 (eval $ac_try) 2>&5
8433 ac_status=$?
8434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8435 (exit $ac_status); }; }; then
8436 LIBS=$ac_save_LIBS
8437 # We can link X programs with no special library path.
8438 ac_x_libraries=
8439 else
8440 echo "$as_me: failed program was:" >&5
8441 sed 's/^/| /' conftest.$ac_ext >&5
8443 LIBS=$ac_save_LIBS
8444 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
8446 # Don't even attempt the hair of trying to link an X program!
8447 for ac_extension in a so sl; do
8448 if test -r $ac_dir/libXt.$ac_extension; then
8449 ac_x_libraries=$ac_dir
8450 break 2
8452 done
8453 done
8455 rm -f conftest.err conftest.$ac_objext \
8456 conftest$ac_exeext conftest.$ac_ext
8457 fi # $ac_x_libraries = no
8459 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
8460 # Didn't find X anywhere. Cache the known absence of X.
8461 ac_cv_have_x="have_x=no"
8462 else
8463 # Record where we found X for the cache.
8464 ac_cv_have_x="have_x=yes \
8465 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
8470 eval "$ac_cv_have_x"
8471 fi # $with_x != no
8473 if test "$have_x" != yes; then
8474 echo "$as_me:$LINENO: result: $have_x" >&5
8475 echo "${ECHO_T}$have_x" >&6
8476 no_x=yes
8477 else
8478 # If each of the values was on the command line, it overrides each guess.
8479 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
8480 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
8481 # Update the cache value to reflect the command line values.
8482 ac_cv_have_x="have_x=yes \
8483 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
8484 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
8485 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
8488 if test "$no_x" = yes; then
8489 window_system=none
8490 else
8491 window_system=x11
8494 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
8495 LD_SWITCH_X_SITE=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
8496 LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
8497 x_default_search_path=""
8498 for x_library in `echo ${x_libraries} | sed -e "s/:/ /g"`; do
8499 x_search_path="\
8500 ${x_library}/X11/%L/%T/%N%C%S:\
8501 ${x_library}/X11/%l/%T/%N%C%S:\
8502 ${x_library}/X11/%T/%N%C%S:\
8503 ${x_library}/X11/%L/%T/%N%S:\
8504 ${x_library}/X11/%l/%T/%N%S:\
8505 ${x_library}/X11/%T/%N%S"
8506 if test x"${x_default_search_path}" = x; then
8507 x_default_search_path=${x_search_path}
8508 else
8509 x_default_search_path="${x_search_path}:${x_default_search_path}"
8511 done
8513 if test "${x_includes}" != NONE && test -n "${x_includes}"; then
8514 C_SWITCH_X_SITE=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
8517 if test x"${x_includes}" = x; then
8518 bitmapdir=/usr/include/X11/bitmaps
8519 else
8520 # accumulate include directories that have X11 bitmap subdirectories
8521 bmd_acc="dummyval"
8522 for bmd in `echo ${x_includes} | sed -e "s/:/ /g"`; do
8523 if test -d "${bmd}/X11/bitmaps"; then
8524 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
8526 if test -d "${bmd}/bitmaps"; then
8527 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
8529 done
8530 if test ${bmd_acc} != "dummyval"; then
8531 bitmapdir=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
8535 HAVE_CARBON=no
8536 if test "${with_carbon}" != no; then
8537 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
8538 echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
8539 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6
8540 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
8541 echo $ECHO_N "(cached) $ECHO_C" >&6
8543 echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
8544 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6
8545 else
8546 # Is the header compilable?
8547 echo "$as_me:$LINENO: checking Carbon/Carbon.h usability" >&5
8548 echo $ECHO_N "checking Carbon/Carbon.h usability... $ECHO_C" >&6
8549 cat >conftest.$ac_ext <<_ACEOF
8550 /* confdefs.h. */
8551 _ACEOF
8552 cat confdefs.h >>conftest.$ac_ext
8553 cat >>conftest.$ac_ext <<_ACEOF
8554 /* end confdefs.h. */
8555 $ac_includes_default
8556 #include <Carbon/Carbon.h>
8557 _ACEOF
8558 rm -f conftest.$ac_objext
8559 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8560 (eval $ac_compile) 2>conftest.er1
8561 ac_status=$?
8562 grep -v '^ *+' conftest.er1 >conftest.err
8563 rm -f conftest.er1
8564 cat conftest.err >&5
8565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8566 (exit $ac_status); } &&
8567 { ac_try='test -z "$ac_c_werror_flag"
8568 || test ! -s conftest.err'
8569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8570 (eval $ac_try) 2>&5
8571 ac_status=$?
8572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8573 (exit $ac_status); }; } &&
8574 { ac_try='test -s conftest.$ac_objext'
8575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8576 (eval $ac_try) 2>&5
8577 ac_status=$?
8578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8579 (exit $ac_status); }; }; then
8580 ac_header_compiler=yes
8581 else
8582 echo "$as_me: failed program was:" >&5
8583 sed 's/^/| /' conftest.$ac_ext >&5
8585 ac_header_compiler=no
8587 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8588 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8589 echo "${ECHO_T}$ac_header_compiler" >&6
8591 # Is the header present?
8592 echo "$as_me:$LINENO: checking Carbon/Carbon.h presence" >&5
8593 echo $ECHO_N "checking Carbon/Carbon.h presence... $ECHO_C" >&6
8594 cat >conftest.$ac_ext <<_ACEOF
8595 /* confdefs.h. */
8596 _ACEOF
8597 cat confdefs.h >>conftest.$ac_ext
8598 cat >>conftest.$ac_ext <<_ACEOF
8599 /* end confdefs.h. */
8600 #include <Carbon/Carbon.h>
8601 _ACEOF
8602 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8603 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8604 ac_status=$?
8605 grep -v '^ *+' conftest.er1 >conftest.err
8606 rm -f conftest.er1
8607 cat conftest.err >&5
8608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8609 (exit $ac_status); } >/dev/null; then
8610 if test -s conftest.err; then
8611 ac_cpp_err=$ac_c_preproc_warn_flag
8612 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8613 else
8614 ac_cpp_err=
8616 else
8617 ac_cpp_err=yes
8619 if test -z "$ac_cpp_err"; then
8620 ac_header_preproc=yes
8621 else
8622 echo "$as_me: failed program was:" >&5
8623 sed 's/^/| /' conftest.$ac_ext >&5
8625 ac_header_preproc=no
8627 rm -f conftest.err conftest.$ac_ext
8628 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8629 echo "${ECHO_T}$ac_header_preproc" >&6
8631 # So? What about this header?
8632 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8633 yes:no: )
8634 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&5
8635 echo "$as_me: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8636 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&5
8637 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&2;}
8638 ac_header_preproc=yes
8640 no:yes:* )
8641 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&5
8642 echo "$as_me: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&2;}
8643 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&5
8644 echo "$as_me: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&2;}
8645 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&5
8646 echo "$as_me: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&2;}
8647 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&5
8648 echo "$as_me: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&2;}
8649 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5
8650 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;}
8651 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&5
8652 echo "$as_me: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&2;}
8654 cat <<\_ASBOX
8655 ## ------------------------------------------ ##
8656 ## Report this to the AC_PACKAGE_NAME lists. ##
8657 ## ------------------------------------------ ##
8658 _ASBOX
8660 sed "s/^/$as_me: WARNING: /" >&2
8662 esac
8663 echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
8664 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6
8665 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
8666 echo $ECHO_N "(cached) $ECHO_C" >&6
8667 else
8668 ac_cv_header_Carbon_Carbon_h=$ac_header_preproc
8670 echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
8671 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6
8674 if test $ac_cv_header_Carbon_Carbon_h = yes; then
8675 HAVE_CARBON=yes
8680 if test "${window_system}" = x11 && test "${HAVE_CARBON}" = yes; then
8681 if test "${with_carbon+set}" != set \
8682 && test "${carbon_appdir_x+set}" != set; then
8683 HAVE_CARBON=no
8686 if test "${HAVE_CARBON}" = yes; then
8687 window_system=mac
8690 case "${window_system}" in
8691 x11 )
8692 HAVE_X_WINDOWS=yes
8693 HAVE_X11=yes
8694 case "${with_x_toolkit}" in
8695 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
8696 motif ) USE_X_TOOLKIT=MOTIF ;;
8697 gtk ) with_gtk=yes
8698 USE_X_TOOLKIT=none ;;
8699 no ) USE_X_TOOLKIT=none ;;
8700 * ) USE_X_TOOLKIT=maybe ;;
8701 esac
8703 mac | none )
8704 HAVE_X_WINDOWS=no
8705 HAVE_X11=no
8706 USE_X_TOOLKIT=none
8708 esac
8710 ### If we're using X11, we should use the X menu package.
8711 HAVE_MENUS=no
8712 case ${HAVE_X11} in
8713 yes ) HAVE_MENUS=yes ;;
8714 esac
8716 if test "${opsys}" = "hpux9"; then
8717 case "${x_libraries}" in
8718 *X11R4* )
8719 opsysfile="s/hpux9-x11r4.h"
8721 esac
8724 if test "${opsys}" = "hpux9shr"; then
8725 case "${x_libraries}" in
8726 *X11R4* )
8727 opsysfile="s/hpux9shxr4.h"
8729 esac
8732 ### Compute the unexec source name from the object name.
8733 UNEXEC_SRC="`echo ${unexec} | sed 's/\.o/.c/'`"
8735 # Do the opsystem or machine files prohibit the use of the GNU malloc?
8736 # Assume not, until told otherwise.
8737 GNU_MALLOC=yes
8738 doug_lea_malloc=yes
8739 echo "$as_me:$LINENO: checking for malloc_get_state" >&5
8740 echo $ECHO_N "checking for malloc_get_state... $ECHO_C" >&6
8741 if test "${ac_cv_func_malloc_get_state+set}" = set; then
8742 echo $ECHO_N "(cached) $ECHO_C" >&6
8743 else
8744 cat >conftest.$ac_ext <<_ACEOF
8745 /* confdefs.h. */
8746 _ACEOF
8747 cat confdefs.h >>conftest.$ac_ext
8748 cat >>conftest.$ac_ext <<_ACEOF
8749 /* end confdefs.h. */
8750 /* Define malloc_get_state to an innocuous variant, in case <limits.h> declares malloc_get_state.
8751 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8752 #define malloc_get_state innocuous_malloc_get_state
8754 /* System header to define __stub macros and hopefully few prototypes,
8755 which can conflict with char malloc_get_state (); below.
8756 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8757 <limits.h> exists even on freestanding compilers. */
8759 #ifdef __STDC__
8760 # include <limits.h>
8761 #else
8762 # include <assert.h>
8763 #endif
8765 #undef malloc_get_state
8767 /* Override any gcc2 internal prototype to avoid an error. */
8768 #ifdef __cplusplus
8769 extern "C"
8771 #endif
8772 /* We use char because int might match the return type of a gcc2
8773 builtin and then its argument prototype would still apply. */
8774 char malloc_get_state ();
8775 /* The GNU C library defines this for functions which it implements
8776 to always fail with ENOSYS. Some functions are actually named
8777 something starting with __ and the normal name is an alias. */
8778 #if defined (__stub_malloc_get_state) || defined (__stub___malloc_get_state)
8779 choke me
8780 #else
8781 char (*f) () = malloc_get_state;
8782 #endif
8783 #ifdef __cplusplus
8785 #endif
8788 main ()
8790 return f != malloc_get_state;
8792 return 0;
8794 _ACEOF
8795 rm -f conftest.$ac_objext conftest$ac_exeext
8796 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8797 (eval $ac_link) 2>conftest.er1
8798 ac_status=$?
8799 grep -v '^ *+' conftest.er1 >conftest.err
8800 rm -f conftest.er1
8801 cat conftest.err >&5
8802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8803 (exit $ac_status); } &&
8804 { ac_try='test -z "$ac_c_werror_flag"
8805 || test ! -s conftest.err'
8806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8807 (eval $ac_try) 2>&5
8808 ac_status=$?
8809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8810 (exit $ac_status); }; } &&
8811 { ac_try='test -s conftest$ac_exeext'
8812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8813 (eval $ac_try) 2>&5
8814 ac_status=$?
8815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8816 (exit $ac_status); }; }; then
8817 ac_cv_func_malloc_get_state=yes
8818 else
8819 echo "$as_me: failed program was:" >&5
8820 sed 's/^/| /' conftest.$ac_ext >&5
8822 ac_cv_func_malloc_get_state=no
8824 rm -f conftest.err conftest.$ac_objext \
8825 conftest$ac_exeext conftest.$ac_ext
8827 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_get_state" >&5
8828 echo "${ECHO_T}$ac_cv_func_malloc_get_state" >&6
8829 if test $ac_cv_func_malloc_get_state = yes; then
8831 else
8832 doug_lea_malloc=no
8835 echo "$as_me:$LINENO: checking for malloc_set_state" >&5
8836 echo $ECHO_N "checking for malloc_set_state... $ECHO_C" >&6
8837 if test "${ac_cv_func_malloc_set_state+set}" = set; then
8838 echo $ECHO_N "(cached) $ECHO_C" >&6
8839 else
8840 cat >conftest.$ac_ext <<_ACEOF
8841 /* confdefs.h. */
8842 _ACEOF
8843 cat confdefs.h >>conftest.$ac_ext
8844 cat >>conftest.$ac_ext <<_ACEOF
8845 /* end confdefs.h. */
8846 /* Define malloc_set_state to an innocuous variant, in case <limits.h> declares malloc_set_state.
8847 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8848 #define malloc_set_state innocuous_malloc_set_state
8850 /* System header to define __stub macros and hopefully few prototypes,
8851 which can conflict with char malloc_set_state (); below.
8852 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8853 <limits.h> exists even on freestanding compilers. */
8855 #ifdef __STDC__
8856 # include <limits.h>
8857 #else
8858 # include <assert.h>
8859 #endif
8861 #undef malloc_set_state
8863 /* Override any gcc2 internal prototype to avoid an error. */
8864 #ifdef __cplusplus
8865 extern "C"
8867 #endif
8868 /* We use char because int might match the return type of a gcc2
8869 builtin and then its argument prototype would still apply. */
8870 char malloc_set_state ();
8871 /* The GNU C library defines this for functions which it implements
8872 to always fail with ENOSYS. Some functions are actually named
8873 something starting with __ and the normal name is an alias. */
8874 #if defined (__stub_malloc_set_state) || defined (__stub___malloc_set_state)
8875 choke me
8876 #else
8877 char (*f) () = malloc_set_state;
8878 #endif
8879 #ifdef __cplusplus
8881 #endif
8884 main ()
8886 return f != malloc_set_state;
8888 return 0;
8890 _ACEOF
8891 rm -f conftest.$ac_objext conftest$ac_exeext
8892 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8893 (eval $ac_link) 2>conftest.er1
8894 ac_status=$?
8895 grep -v '^ *+' conftest.er1 >conftest.err
8896 rm -f conftest.er1
8897 cat conftest.err >&5
8898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8899 (exit $ac_status); } &&
8900 { ac_try='test -z "$ac_c_werror_flag"
8901 || test ! -s conftest.err'
8902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8903 (eval $ac_try) 2>&5
8904 ac_status=$?
8905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8906 (exit $ac_status); }; } &&
8907 { ac_try='test -s conftest$ac_exeext'
8908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8909 (eval $ac_try) 2>&5
8910 ac_status=$?
8911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8912 (exit $ac_status); }; }; then
8913 ac_cv_func_malloc_set_state=yes
8914 else
8915 echo "$as_me: failed program was:" >&5
8916 sed 's/^/| /' conftest.$ac_ext >&5
8918 ac_cv_func_malloc_set_state=no
8920 rm -f conftest.err conftest.$ac_objext \
8921 conftest$ac_exeext conftest.$ac_ext
8923 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_set_state" >&5
8924 echo "${ECHO_T}$ac_cv_func_malloc_set_state" >&6
8925 if test $ac_cv_func_malloc_set_state = yes; then
8927 else
8928 doug_lea_malloc=no
8931 echo "$as_me:$LINENO: checking whether __after_morecore_hook exists" >&5
8932 echo $ECHO_N "checking whether __after_morecore_hook exists... $ECHO_C" >&6
8933 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then
8934 echo $ECHO_N "(cached) $ECHO_C" >&6
8935 else
8936 cat >conftest.$ac_ext <<_ACEOF
8937 /* confdefs.h. */
8938 _ACEOF
8939 cat confdefs.h >>conftest.$ac_ext
8940 cat >>conftest.$ac_ext <<_ACEOF
8941 /* end confdefs.h. */
8942 extern void (* __after_morecore_hook)();
8944 main ()
8946 __after_morecore_hook = 0
8948 return 0;
8950 _ACEOF
8951 rm -f conftest.$ac_objext conftest$ac_exeext
8952 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8953 (eval $ac_link) 2>conftest.er1
8954 ac_status=$?
8955 grep -v '^ *+' conftest.er1 >conftest.err
8956 rm -f conftest.er1
8957 cat conftest.err >&5
8958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8959 (exit $ac_status); } &&
8960 { ac_try='test -z "$ac_c_werror_flag"
8961 || test ! -s conftest.err'
8962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8963 (eval $ac_try) 2>&5
8964 ac_status=$?
8965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8966 (exit $ac_status); }; } &&
8967 { ac_try='test -s conftest$ac_exeext'
8968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8969 (eval $ac_try) 2>&5
8970 ac_status=$?
8971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8972 (exit $ac_status); }; }; then
8973 emacs_cv_var___after_morecore_hook=yes
8974 else
8975 echo "$as_me: failed program was:" >&5
8976 sed 's/^/| /' conftest.$ac_ext >&5
8978 emacs_cv_var___after_morecore_hook=no
8980 rm -f conftest.err conftest.$ac_objext \
8981 conftest$ac_exeext conftest.$ac_ext
8983 echo "$as_me:$LINENO: result: $emacs_cv_var___after_morecore_hook" >&5
8984 echo "${ECHO_T}$emacs_cv_var___after_morecore_hook" >&6
8985 if test $emacs_cv_var___after_morecore_hook = no; then
8986 doug_lea_malloc=no
8988 if test "${system_malloc}" = "yes"; then
8989 GNU_MALLOC=no
8990 GNU_MALLOC_reason="
8991 (The GNU allocators don't work with this system configuration.)"
8993 if test "$doug_lea_malloc" = "yes" ; then
8994 if test "$GNU_MALLOC" = yes ; then
8995 GNU_MALLOC_reason="
8996 (Using Doug Lea's new malloc from the GNU C Library.)"
8999 cat >>confdefs.h <<\_ACEOF
9000 #define DOUG_LEA_MALLOC 1
9001 _ACEOF
9005 if test x"${REL_ALLOC}" = x; then
9006 REL_ALLOC=${GNU_MALLOC}
9012 for ac_header in stdlib.h unistd.h
9014 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9015 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9016 echo "$as_me:$LINENO: checking for $ac_header" >&5
9017 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9018 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9019 echo $ECHO_N "(cached) $ECHO_C" >&6
9021 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9022 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9023 else
9024 # Is the header compilable?
9025 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9026 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9027 cat >conftest.$ac_ext <<_ACEOF
9028 /* confdefs.h. */
9029 _ACEOF
9030 cat confdefs.h >>conftest.$ac_ext
9031 cat >>conftest.$ac_ext <<_ACEOF
9032 /* end confdefs.h. */
9033 $ac_includes_default
9034 #include <$ac_header>
9035 _ACEOF
9036 rm -f conftest.$ac_objext
9037 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9038 (eval $ac_compile) 2>conftest.er1
9039 ac_status=$?
9040 grep -v '^ *+' conftest.er1 >conftest.err
9041 rm -f conftest.er1
9042 cat conftest.err >&5
9043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9044 (exit $ac_status); } &&
9045 { ac_try='test -z "$ac_c_werror_flag"
9046 || test ! -s conftest.err'
9047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9048 (eval $ac_try) 2>&5
9049 ac_status=$?
9050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9051 (exit $ac_status); }; } &&
9052 { ac_try='test -s conftest.$ac_objext'
9053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9054 (eval $ac_try) 2>&5
9055 ac_status=$?
9056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9057 (exit $ac_status); }; }; then
9058 ac_header_compiler=yes
9059 else
9060 echo "$as_me: failed program was:" >&5
9061 sed 's/^/| /' conftest.$ac_ext >&5
9063 ac_header_compiler=no
9065 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9066 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9067 echo "${ECHO_T}$ac_header_compiler" >&6
9069 # Is the header present?
9070 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9071 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9072 cat >conftest.$ac_ext <<_ACEOF
9073 /* confdefs.h. */
9074 _ACEOF
9075 cat confdefs.h >>conftest.$ac_ext
9076 cat >>conftest.$ac_ext <<_ACEOF
9077 /* end confdefs.h. */
9078 #include <$ac_header>
9079 _ACEOF
9080 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9081 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9082 ac_status=$?
9083 grep -v '^ *+' conftest.er1 >conftest.err
9084 rm -f conftest.er1
9085 cat conftest.err >&5
9086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9087 (exit $ac_status); } >/dev/null; then
9088 if test -s conftest.err; then
9089 ac_cpp_err=$ac_c_preproc_warn_flag
9090 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9091 else
9092 ac_cpp_err=
9094 else
9095 ac_cpp_err=yes
9097 if test -z "$ac_cpp_err"; then
9098 ac_header_preproc=yes
9099 else
9100 echo "$as_me: failed program was:" >&5
9101 sed 's/^/| /' conftest.$ac_ext >&5
9103 ac_header_preproc=no
9105 rm -f conftest.err conftest.$ac_ext
9106 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9107 echo "${ECHO_T}$ac_header_preproc" >&6
9109 # So? What about this header?
9110 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9111 yes:no: )
9112 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9113 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9114 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9115 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9116 ac_header_preproc=yes
9118 no:yes:* )
9119 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9120 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9121 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9122 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9123 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9124 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9125 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9126 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9127 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9128 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9129 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9130 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9132 cat <<\_ASBOX
9133 ## ------------------------------------------ ##
9134 ## Report this to the AC_PACKAGE_NAME lists. ##
9135 ## ------------------------------------------ ##
9136 _ASBOX
9138 sed "s/^/$as_me: WARNING: /" >&2
9140 esac
9141 echo "$as_me:$LINENO: checking for $ac_header" >&5
9142 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9143 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9144 echo $ECHO_N "(cached) $ECHO_C" >&6
9145 else
9146 eval "$as_ac_Header=\$ac_header_preproc"
9148 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9149 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9152 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9153 cat >>confdefs.h <<_ACEOF
9154 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9155 _ACEOF
9159 done
9162 for ac_func in getpagesize
9164 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9165 echo "$as_me:$LINENO: checking for $ac_func" >&5
9166 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9167 if eval "test \"\${$as_ac_var+set}\" = set"; then
9168 echo $ECHO_N "(cached) $ECHO_C" >&6
9169 else
9170 cat >conftest.$ac_ext <<_ACEOF
9171 /* confdefs.h. */
9172 _ACEOF
9173 cat confdefs.h >>conftest.$ac_ext
9174 cat >>conftest.$ac_ext <<_ACEOF
9175 /* end confdefs.h. */
9176 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9177 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9178 #define $ac_func innocuous_$ac_func
9180 /* System header to define __stub macros and hopefully few prototypes,
9181 which can conflict with char $ac_func (); below.
9182 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9183 <limits.h> exists even on freestanding compilers. */
9185 #ifdef __STDC__
9186 # include <limits.h>
9187 #else
9188 # include <assert.h>
9189 #endif
9191 #undef $ac_func
9193 /* Override any gcc2 internal prototype to avoid an error. */
9194 #ifdef __cplusplus
9195 extern "C"
9197 #endif
9198 /* We use char because int might match the return type of a gcc2
9199 builtin and then its argument prototype would still apply. */
9200 char $ac_func ();
9201 /* The GNU C library defines this for functions which it implements
9202 to always fail with ENOSYS. Some functions are actually named
9203 something starting with __ and the normal name is an alias. */
9204 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9205 choke me
9206 #else
9207 char (*f) () = $ac_func;
9208 #endif
9209 #ifdef __cplusplus
9211 #endif
9214 main ()
9216 return f != $ac_func;
9218 return 0;
9220 _ACEOF
9221 rm -f conftest.$ac_objext conftest$ac_exeext
9222 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9223 (eval $ac_link) 2>conftest.er1
9224 ac_status=$?
9225 grep -v '^ *+' conftest.er1 >conftest.err
9226 rm -f conftest.er1
9227 cat conftest.err >&5
9228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9229 (exit $ac_status); } &&
9230 { ac_try='test -z "$ac_c_werror_flag"
9231 || test ! -s conftest.err'
9232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9233 (eval $ac_try) 2>&5
9234 ac_status=$?
9235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9236 (exit $ac_status); }; } &&
9237 { ac_try='test -s conftest$ac_exeext'
9238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9239 (eval $ac_try) 2>&5
9240 ac_status=$?
9241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9242 (exit $ac_status); }; }; then
9243 eval "$as_ac_var=yes"
9244 else
9245 echo "$as_me: failed program was:" >&5
9246 sed 's/^/| /' conftest.$ac_ext >&5
9248 eval "$as_ac_var=no"
9250 rm -f conftest.err conftest.$ac_objext \
9251 conftest$ac_exeext conftest.$ac_ext
9253 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9254 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9255 if test `eval echo '${'$as_ac_var'}'` = yes; then
9256 cat >>confdefs.h <<_ACEOF
9257 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9258 _ACEOF
9261 done
9263 echo "$as_me:$LINENO: checking for working mmap" >&5
9264 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
9265 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
9266 echo $ECHO_N "(cached) $ECHO_C" >&6
9267 else
9268 if test "$cross_compiling" = yes; then
9269 ac_cv_func_mmap_fixed_mapped=no
9270 else
9271 cat >conftest.$ac_ext <<_ACEOF
9272 /* confdefs.h. */
9273 _ACEOF
9274 cat confdefs.h >>conftest.$ac_ext
9275 cat >>conftest.$ac_ext <<_ACEOF
9276 /* end confdefs.h. */
9277 $ac_includes_default
9278 /* malloc might have been renamed as rpl_malloc. */
9279 #undef malloc
9281 /* Thanks to Mike Haertel and Jim Avera for this test.
9282 Here is a matrix of mmap possibilities:
9283 mmap private not fixed
9284 mmap private fixed at somewhere currently unmapped
9285 mmap private fixed at somewhere already mapped
9286 mmap shared not fixed
9287 mmap shared fixed at somewhere currently unmapped
9288 mmap shared fixed at somewhere already mapped
9289 For private mappings, we should verify that changes cannot be read()
9290 back from the file, nor mmap's back from the file at a different
9291 address. (There have been systems where private was not correctly
9292 implemented like the infamous i386 svr4.0, and systems where the
9293 VM page cache was not coherent with the file system buffer cache
9294 like early versions of FreeBSD and possibly contemporary NetBSD.)
9295 For shared mappings, we should conversely verify that changes get
9296 propagated back to all the places they're supposed to be.
9298 Grep wants private fixed already mapped.
9299 The main things grep needs to know about mmap are:
9300 * does it exist and is it safe to write into the mmap'd area
9301 * how to use it (BSD variants) */
9303 #include <fcntl.h>
9304 #include <sys/mman.h>
9306 #if !STDC_HEADERS && !HAVE_STDLIB_H
9307 char *malloc ();
9308 #endif
9310 /* This mess was copied from the GNU getpagesize.h. */
9311 #if !HAVE_GETPAGESIZE
9312 /* Assume that all systems that can run configure have sys/param.h. */
9313 # if !HAVE_SYS_PARAM_H
9314 # define HAVE_SYS_PARAM_H 1
9315 # endif
9317 # ifdef _SC_PAGESIZE
9318 # define getpagesize() sysconf(_SC_PAGESIZE)
9319 # else /* no _SC_PAGESIZE */
9320 # if HAVE_SYS_PARAM_H
9321 # include <sys/param.h>
9322 # ifdef EXEC_PAGESIZE
9323 # define getpagesize() EXEC_PAGESIZE
9324 # else /* no EXEC_PAGESIZE */
9325 # ifdef NBPG
9326 # define getpagesize() NBPG * CLSIZE
9327 # ifndef CLSIZE
9328 # define CLSIZE 1
9329 # endif /* no CLSIZE */
9330 # else /* no NBPG */
9331 # ifdef NBPC
9332 # define getpagesize() NBPC
9333 # else /* no NBPC */
9334 # ifdef PAGESIZE
9335 # define getpagesize() PAGESIZE
9336 # endif /* PAGESIZE */
9337 # endif /* no NBPC */
9338 # endif /* no NBPG */
9339 # endif /* no EXEC_PAGESIZE */
9340 # else /* no HAVE_SYS_PARAM_H */
9341 # define getpagesize() 8192 /* punt totally */
9342 # endif /* no HAVE_SYS_PARAM_H */
9343 # endif /* no _SC_PAGESIZE */
9345 #endif /* no HAVE_GETPAGESIZE */
9348 main ()
9350 char *data, *data2, *data3;
9351 int i, pagesize;
9352 int fd;
9354 pagesize = getpagesize ();
9356 /* First, make a file with some known garbage in it. */
9357 data = (char *) malloc (pagesize);
9358 if (!data)
9359 exit (1);
9360 for (i = 0; i < pagesize; ++i)
9361 *(data + i) = rand ();
9362 umask (0);
9363 fd = creat ("conftest.mmap", 0600);
9364 if (fd < 0)
9365 exit (1);
9366 if (write (fd, data, pagesize) != pagesize)
9367 exit (1);
9368 close (fd);
9370 /* Next, try to mmap the file at a fixed address which already has
9371 something else allocated at it. If we can, also make sure that
9372 we see the same garbage. */
9373 fd = open ("conftest.mmap", O_RDWR);
9374 if (fd < 0)
9375 exit (1);
9376 data2 = (char *) malloc (2 * pagesize);
9377 if (!data2)
9378 exit (1);
9379 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
9380 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
9381 MAP_PRIVATE | MAP_FIXED, fd, 0L))
9382 exit (1);
9383 for (i = 0; i < pagesize; ++i)
9384 if (*(data + i) != *(data2 + i))
9385 exit (1);
9387 /* Finally, make sure that changes to the mapped area do not
9388 percolate back to the file as seen by read(). (This is a bug on
9389 some variants of i386 svr4.0.) */
9390 for (i = 0; i < pagesize; ++i)
9391 *(data2 + i) = *(data2 + i) + 1;
9392 data3 = (char *) malloc (pagesize);
9393 if (!data3)
9394 exit (1);
9395 if (read (fd, data3, pagesize) != pagesize)
9396 exit (1);
9397 for (i = 0; i < pagesize; ++i)
9398 if (*(data + i) != *(data3 + i))
9399 exit (1);
9400 close (fd);
9401 exit (0);
9403 _ACEOF
9404 rm -f conftest$ac_exeext
9405 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9406 (eval $ac_link) 2>&5
9407 ac_status=$?
9408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9409 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9411 (eval $ac_try) 2>&5
9412 ac_status=$?
9413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9414 (exit $ac_status); }; }; then
9415 ac_cv_func_mmap_fixed_mapped=yes
9416 else
9417 echo "$as_me: program exited with status $ac_status" >&5
9418 echo "$as_me: failed program was:" >&5
9419 sed 's/^/| /' conftest.$ac_ext >&5
9421 ( exit $ac_status )
9422 ac_cv_func_mmap_fixed_mapped=no
9424 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9427 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
9428 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
9429 if test $ac_cv_func_mmap_fixed_mapped = yes; then
9431 cat >>confdefs.h <<\_ACEOF
9432 #define HAVE_MMAP 1
9433 _ACEOF
9436 rm -f conftest.mmap
9438 if test $use_mmap_for_buffers = yes; then
9439 REL_ALLOC=no
9442 LIBS="$libsrc_libs $LIBS"
9445 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
9446 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
9447 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
9448 echo $ECHO_N "(cached) $ECHO_C" >&6
9449 else
9450 ac_check_lib_save_LIBS=$LIBS
9451 LIBS="-ldnet $LIBS"
9452 cat >conftest.$ac_ext <<_ACEOF
9453 /* confdefs.h. */
9454 _ACEOF
9455 cat confdefs.h >>conftest.$ac_ext
9456 cat >>conftest.$ac_ext <<_ACEOF
9457 /* end confdefs.h. */
9459 /* Override any gcc2 internal prototype to avoid an error. */
9460 #ifdef __cplusplus
9461 extern "C"
9462 #endif
9463 /* We use char because int might match the return type of a gcc2
9464 builtin and then its argument prototype would still apply. */
9465 char dnet_ntoa ();
9467 main ()
9469 dnet_ntoa ();
9471 return 0;
9473 _ACEOF
9474 rm -f conftest.$ac_objext conftest$ac_exeext
9475 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9476 (eval $ac_link) 2>conftest.er1
9477 ac_status=$?
9478 grep -v '^ *+' conftest.er1 >conftest.err
9479 rm -f conftest.er1
9480 cat conftest.err >&5
9481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9482 (exit $ac_status); } &&
9483 { ac_try='test -z "$ac_c_werror_flag"
9484 || test ! -s conftest.err'
9485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9486 (eval $ac_try) 2>&5
9487 ac_status=$?
9488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9489 (exit $ac_status); }; } &&
9490 { ac_try='test -s conftest$ac_exeext'
9491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9492 (eval $ac_try) 2>&5
9493 ac_status=$?
9494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9495 (exit $ac_status); }; }; then
9496 ac_cv_lib_dnet_dnet_ntoa=yes
9497 else
9498 echo "$as_me: failed program was:" >&5
9499 sed 's/^/| /' conftest.$ac_ext >&5
9501 ac_cv_lib_dnet_dnet_ntoa=no
9503 rm -f conftest.err conftest.$ac_objext \
9504 conftest$ac_exeext conftest.$ac_ext
9505 LIBS=$ac_check_lib_save_LIBS
9507 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
9508 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
9509 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
9510 cat >>confdefs.h <<_ACEOF
9511 #define HAVE_LIBDNET 1
9512 _ACEOF
9514 LIBS="-ldnet $LIBS"
9519 echo "$as_me:$LINENO: checking for main in -lXbsd" >&5
9520 echo $ECHO_N "checking for main in -lXbsd... $ECHO_C" >&6
9521 if test "${ac_cv_lib_Xbsd_main+set}" = set; then
9522 echo $ECHO_N "(cached) $ECHO_C" >&6
9523 else
9524 ac_check_lib_save_LIBS=$LIBS
9525 LIBS="-lXbsd $LIBS"
9526 cat >conftest.$ac_ext <<_ACEOF
9527 /* confdefs.h. */
9528 _ACEOF
9529 cat confdefs.h >>conftest.$ac_ext
9530 cat >>conftest.$ac_ext <<_ACEOF
9531 /* end confdefs.h. */
9535 main ()
9537 main ();
9539 return 0;
9541 _ACEOF
9542 rm -f conftest.$ac_objext conftest$ac_exeext
9543 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9544 (eval $ac_link) 2>conftest.er1
9545 ac_status=$?
9546 grep -v '^ *+' conftest.er1 >conftest.err
9547 rm -f conftest.er1
9548 cat conftest.err >&5
9549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9550 (exit $ac_status); } &&
9551 { ac_try='test -z "$ac_c_werror_flag"
9552 || test ! -s conftest.err'
9553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9554 (eval $ac_try) 2>&5
9555 ac_status=$?
9556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9557 (exit $ac_status); }; } &&
9558 { ac_try='test -s conftest$ac_exeext'
9559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9560 (eval $ac_try) 2>&5
9561 ac_status=$?
9562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9563 (exit $ac_status); }; }; then
9564 ac_cv_lib_Xbsd_main=yes
9565 else
9566 echo "$as_me: failed program was:" >&5
9567 sed 's/^/| /' conftest.$ac_ext >&5
9569 ac_cv_lib_Xbsd_main=no
9571 rm -f conftest.err conftest.$ac_objext \
9572 conftest$ac_exeext conftest.$ac_ext
9573 LIBS=$ac_check_lib_save_LIBS
9575 echo "$as_me:$LINENO: result: $ac_cv_lib_Xbsd_main" >&5
9576 echo "${ECHO_T}$ac_cv_lib_Xbsd_main" >&6
9577 if test $ac_cv_lib_Xbsd_main = yes; then
9578 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
9583 echo "$as_me:$LINENO: checking for cma_open in -lpthreads" >&5
9584 echo $ECHO_N "checking for cma_open in -lpthreads... $ECHO_C" >&6
9585 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then
9586 echo $ECHO_N "(cached) $ECHO_C" >&6
9587 else
9588 ac_check_lib_save_LIBS=$LIBS
9589 LIBS="-lpthreads $LIBS"
9590 cat >conftest.$ac_ext <<_ACEOF
9591 /* confdefs.h. */
9592 _ACEOF
9593 cat confdefs.h >>conftest.$ac_ext
9594 cat >>conftest.$ac_ext <<_ACEOF
9595 /* end confdefs.h. */
9597 /* Override any gcc2 internal prototype to avoid an error. */
9598 #ifdef __cplusplus
9599 extern "C"
9600 #endif
9601 /* We use char because int might match the return type of a gcc2
9602 builtin and then its argument prototype would still apply. */
9603 char cma_open ();
9605 main ()
9607 cma_open ();
9609 return 0;
9611 _ACEOF
9612 rm -f conftest.$ac_objext conftest$ac_exeext
9613 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9614 (eval $ac_link) 2>conftest.er1
9615 ac_status=$?
9616 grep -v '^ *+' conftest.er1 >conftest.err
9617 rm -f conftest.er1
9618 cat conftest.err >&5
9619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9620 (exit $ac_status); } &&
9621 { ac_try='test -z "$ac_c_werror_flag"
9622 || test ! -s conftest.err'
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); }; } &&
9628 { ac_try='test -s conftest$ac_exeext'
9629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9630 (eval $ac_try) 2>&5
9631 ac_status=$?
9632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9633 (exit $ac_status); }; }; then
9634 ac_cv_lib_pthreads_cma_open=yes
9635 else
9636 echo "$as_me: failed program was:" >&5
9637 sed 's/^/| /' conftest.$ac_ext >&5
9639 ac_cv_lib_pthreads_cma_open=no
9641 rm -f conftest.err conftest.$ac_objext \
9642 conftest$ac_exeext conftest.$ac_ext
9643 LIBS=$ac_check_lib_save_LIBS
9645 echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_cma_open" >&5
9646 echo "${ECHO_T}$ac_cv_lib_pthreads_cma_open" >&6
9647 if test $ac_cv_lib_pthreads_cma_open = yes; then
9648 cat >>confdefs.h <<_ACEOF
9649 #define HAVE_LIBPTHREADS 1
9650 _ACEOF
9652 LIBS="-lpthreads $LIBS"
9657 echo "$as_me:$LINENO: checking for XFree86 in /usr/X386" >&5
9658 echo $ECHO_N "checking for XFree86 in /usr/X386... $ECHO_C" >&6
9659 if test -d /usr/X386/include; then
9660 HAVE_XFREE386=yes
9661 : ${C_SWITCH_X_SITE="-I/usr/X386/include"}
9662 else
9663 HAVE_XFREE386=no
9665 echo "$as_me:$LINENO: result: $HAVE_XFREE386" >&5
9666 echo "${ECHO_T}$HAVE_XFREE386" >&6
9669 case ${host_os} in
9670 aix*)
9671 echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
9672 echo $ECHO_N "checking for -bbigtoc option... $ECHO_C" >&6
9673 if test "${gdb_cv_bigtoc+set}" = set; then
9674 echo $ECHO_N "(cached) $ECHO_C" >&6
9675 else
9677 case $GCC in
9678 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
9679 *) gdb_cv_bigtoc=-bbigtoc ;;
9680 esac
9682 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
9683 cat >conftest.$ac_ext <<_ACEOF
9684 /* confdefs.h. */
9685 _ACEOF
9686 cat confdefs.h >>conftest.$ac_ext
9687 cat >>conftest.$ac_ext <<_ACEOF
9688 /* end confdefs.h. */
9691 main ()
9693 int i;
9695 return 0;
9697 _ACEOF
9698 rm -f conftest.$ac_objext conftest$ac_exeext
9699 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9700 (eval $ac_link) 2>conftest.er1
9701 ac_status=$?
9702 grep -v '^ *+' conftest.er1 >conftest.err
9703 rm -f conftest.er1
9704 cat conftest.err >&5
9705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9706 (exit $ac_status); } &&
9707 { ac_try='test -z "$ac_c_werror_flag"
9708 || test ! -s conftest.err'
9709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9710 (eval $ac_try) 2>&5
9711 ac_status=$?
9712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9713 (exit $ac_status); }; } &&
9714 { ac_try='test -s conftest$ac_exeext'
9715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9716 (eval $ac_try) 2>&5
9717 ac_status=$?
9718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9719 (exit $ac_status); }; }; then
9721 else
9722 echo "$as_me: failed program was:" >&5
9723 sed 's/^/| /' conftest.$ac_ext >&5
9725 gdb_cv_bigtoc=
9727 rm -f conftest.err conftest.$ac_objext \
9728 conftest$ac_exeext conftest.$ac_ext
9731 echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
9732 echo "${ECHO_T}$gdb_cv_bigtoc" >&6
9734 esac
9736 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
9737 # used for the tests that follow. We set them back to REAL_CFLAGS and
9738 # REAL_CPPFLAGS later on.
9740 REAL_CPPFLAGS="$CPPFLAGS"
9742 if test "${HAVE_X11}" = "yes"; then
9743 DEFS="$C_SWITCH_X_SITE $DEFS"
9744 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
9745 LIBS="$LIBX $LIBS"
9746 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
9747 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
9749 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
9750 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
9751 # but it's more convenient here to set LD_RUN_PATH
9752 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
9753 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
9754 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
9755 export LD_RUN_PATH
9758 if test "${opsys}" = "gnu-linux"; then
9759 echo "$as_me:$LINENO: checking whether X on GNU/Linux needs -b to link" >&5
9760 echo $ECHO_N "checking whether X on GNU/Linux needs -b to link... $ECHO_C" >&6
9761 cat >conftest.$ac_ext <<_ACEOF
9762 /* confdefs.h. */
9763 _ACEOF
9764 cat confdefs.h >>conftest.$ac_ext
9765 cat >>conftest.$ac_ext <<_ACEOF
9766 /* end confdefs.h. */
9769 main ()
9771 XOpenDisplay ("foo");
9773 return 0;
9775 _ACEOF
9776 rm -f conftest.$ac_objext conftest$ac_exeext
9777 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9778 (eval $ac_link) 2>conftest.er1
9779 ac_status=$?
9780 grep -v '^ *+' conftest.er1 >conftest.err
9781 rm -f conftest.er1
9782 cat conftest.err >&5
9783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9784 (exit $ac_status); } &&
9785 { ac_try='test -z "$ac_c_werror_flag"
9786 || test ! -s conftest.err'
9787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9788 (eval $ac_try) 2>&5
9789 ac_status=$?
9790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9791 (exit $ac_status); }; } &&
9792 { ac_try='test -s conftest$ac_exeext'
9793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9794 (eval $ac_try) 2>&5
9795 ac_status=$?
9796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9797 (exit $ac_status); }; }; then
9798 xlinux_first_failure=no
9799 else
9800 echo "$as_me: failed program was:" >&5
9801 sed 's/^/| /' conftest.$ac_ext >&5
9803 xlinux_first_failure=yes
9805 rm -f conftest.err conftest.$ac_objext \
9806 conftest$ac_exeext conftest.$ac_ext
9807 if test "${xlinux_first_failure}" = "yes"; then
9808 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE"
9809 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE"
9810 OLD_CPPFLAGS="$CPPFLAGS"
9811 OLD_LIBS="$LIBS"
9812 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout"
9813 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout"
9814 CPPFLAGS="$CPPFLAGS -b i486-linuxaout"
9815 LIBS="$LIBS -b i486-linuxaout"
9816 cat >conftest.$ac_ext <<_ACEOF
9817 /* confdefs.h. */
9818 _ACEOF
9819 cat confdefs.h >>conftest.$ac_ext
9820 cat >>conftest.$ac_ext <<_ACEOF
9821 /* end confdefs.h. */
9824 main ()
9826 XOpenDisplay ("foo");
9828 return 0;
9830 _ACEOF
9831 rm -f conftest.$ac_objext conftest$ac_exeext
9832 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9833 (eval $ac_link) 2>conftest.er1
9834 ac_status=$?
9835 grep -v '^ *+' conftest.er1 >conftest.err
9836 rm -f conftest.er1
9837 cat conftest.err >&5
9838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9839 (exit $ac_status); } &&
9840 { ac_try='test -z "$ac_c_werror_flag"
9841 || test ! -s conftest.err'
9842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9843 (eval $ac_try) 2>&5
9844 ac_status=$?
9845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9846 (exit $ac_status); }; } &&
9847 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
9853 xlinux_second_failure=no
9854 else
9855 echo "$as_me: failed program was:" >&5
9856 sed 's/^/| /' conftest.$ac_ext >&5
9858 xlinux_second_failure=yes
9860 rm -f conftest.err conftest.$ac_objext \
9861 conftest$ac_exeext conftest.$ac_ext
9862 if test "${xlinux_second_failure}" = "yes"; then
9863 # If we get the same failure with -b, there is no use adding -b.
9864 # So take it out. This plays safe.
9865 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
9866 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
9867 CPPFLAGS="$OLD_CPPFLAGS"
9868 LIBS="$OLD_LIBS"
9869 echo "$as_me:$LINENO: result: no" >&5
9870 echo "${ECHO_T}no" >&6
9871 else
9872 echo "$as_me:$LINENO: result: yes" >&5
9873 echo "${ECHO_T}yes" >&6
9875 else
9876 echo "$as_me:$LINENO: result: no" >&5
9877 echo "${ECHO_T}no" >&6
9881 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
9882 # header files included from there.
9883 echo "$as_me:$LINENO: checking for Xkb" >&5
9884 echo $ECHO_N "checking for Xkb... $ECHO_C" >&6
9885 cat >conftest.$ac_ext <<_ACEOF
9886 /* confdefs.h. */
9887 _ACEOF
9888 cat confdefs.h >>conftest.$ac_ext
9889 cat >>conftest.$ac_ext <<_ACEOF
9890 /* end confdefs.h. */
9891 #include <X11/Xlib.h>
9892 #include <X11/XKBlib.h>
9894 main ()
9896 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
9898 return 0;
9900 _ACEOF
9901 rm -f conftest.$ac_objext conftest$ac_exeext
9902 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9903 (eval $ac_link) 2>conftest.er1
9904 ac_status=$?
9905 grep -v '^ *+' conftest.er1 >conftest.err
9906 rm -f conftest.er1
9907 cat conftest.err >&5
9908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9909 (exit $ac_status); } &&
9910 { ac_try='test -z "$ac_c_werror_flag"
9911 || test ! -s conftest.err'
9912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9913 (eval $ac_try) 2>&5
9914 ac_status=$?
9915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9916 (exit $ac_status); }; } &&
9917 { ac_try='test -s conftest$ac_exeext'
9918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9919 (eval $ac_try) 2>&5
9920 ac_status=$?
9921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9922 (exit $ac_status); }; }; then
9923 emacs_xkb=yes
9924 else
9925 echo "$as_me: failed program was:" >&5
9926 sed 's/^/| /' conftest.$ac_ext >&5
9928 emacs_xkb=no
9930 rm -f conftest.err conftest.$ac_objext \
9931 conftest$ac_exeext conftest.$ac_ext
9932 echo "$as_me:$LINENO: result: $emacs_xkb" >&5
9933 echo "${ECHO_T}$emacs_xkb" >&6
9934 if test $emacs_xkb = yes; then
9936 cat >>confdefs.h <<\_ACEOF
9937 #define HAVE_XKBGETKEYBOARD 1
9938 _ACEOF
9946 for ac_func in XrmSetDatabase XScreenResourceString \
9947 XScreenNumberOfScreen XSetWMProtocols
9949 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9950 echo "$as_me:$LINENO: checking for $ac_func" >&5
9951 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9952 if eval "test \"\${$as_ac_var+set}\" = set"; then
9953 echo $ECHO_N "(cached) $ECHO_C" >&6
9954 else
9955 cat >conftest.$ac_ext <<_ACEOF
9956 /* confdefs.h. */
9957 _ACEOF
9958 cat confdefs.h >>conftest.$ac_ext
9959 cat >>conftest.$ac_ext <<_ACEOF
9960 /* end confdefs.h. */
9961 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9962 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9963 #define $ac_func innocuous_$ac_func
9965 /* System header to define __stub macros and hopefully few prototypes,
9966 which can conflict with char $ac_func (); below.
9967 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9968 <limits.h> exists even on freestanding compilers. */
9970 #ifdef __STDC__
9971 # include <limits.h>
9972 #else
9973 # include <assert.h>
9974 #endif
9976 #undef $ac_func
9978 /* Override any gcc2 internal prototype to avoid an error. */
9979 #ifdef __cplusplus
9980 extern "C"
9982 #endif
9983 /* We use char because int might match the return type of a gcc2
9984 builtin and then its argument prototype would still apply. */
9985 char $ac_func ();
9986 /* The GNU C library defines this for functions which it implements
9987 to always fail with ENOSYS. Some functions are actually named
9988 something starting with __ and the normal name is an alias. */
9989 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9990 choke me
9991 #else
9992 char (*f) () = $ac_func;
9993 #endif
9994 #ifdef __cplusplus
9996 #endif
9999 main ()
10001 return f != $ac_func;
10003 return 0;
10005 _ACEOF
10006 rm -f conftest.$ac_objext conftest$ac_exeext
10007 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10008 (eval $ac_link) 2>conftest.er1
10009 ac_status=$?
10010 grep -v '^ *+' conftest.er1 >conftest.err
10011 rm -f conftest.er1
10012 cat conftest.err >&5
10013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10014 (exit $ac_status); } &&
10015 { ac_try='test -z "$ac_c_werror_flag"
10016 || test ! -s conftest.err'
10017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10018 (eval $ac_try) 2>&5
10019 ac_status=$?
10020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10021 (exit $ac_status); }; } &&
10022 { ac_try='test -s conftest$ac_exeext'
10023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10024 (eval $ac_try) 2>&5
10025 ac_status=$?
10026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10027 (exit $ac_status); }; }; then
10028 eval "$as_ac_var=yes"
10029 else
10030 echo "$as_me: failed program was:" >&5
10031 sed 's/^/| /' conftest.$ac_ext >&5
10033 eval "$as_ac_var=no"
10035 rm -f conftest.err conftest.$ac_objext \
10036 conftest$ac_exeext conftest.$ac_ext
10038 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10039 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10040 if test `eval echo '${'$as_ac_var'}'` = yes; then
10041 cat >>confdefs.h <<_ACEOF
10042 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10043 _ACEOF
10046 done
10050 if test "${window_system}" = "x11"; then
10051 echo "$as_me:$LINENO: checking X11 version 6" >&5
10052 echo $ECHO_N "checking X11 version 6... $ECHO_C" >&6
10053 if test "${emacs_cv_x11_version_6+set}" = set; then
10054 echo $ECHO_N "(cached) $ECHO_C" >&6
10055 else
10056 cat >conftest.$ac_ext <<_ACEOF
10057 /* confdefs.h. */
10058 _ACEOF
10059 cat confdefs.h >>conftest.$ac_ext
10060 cat >>conftest.$ac_ext <<_ACEOF
10061 /* end confdefs.h. */
10062 #include <X11/Xlib.h>
10064 main ()
10066 #if XlibSpecificationRelease < 6
10067 fail;
10068 #endif
10071 return 0;
10073 _ACEOF
10074 rm -f conftest.$ac_objext conftest$ac_exeext
10075 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10076 (eval $ac_link) 2>conftest.er1
10077 ac_status=$?
10078 grep -v '^ *+' conftest.er1 >conftest.err
10079 rm -f conftest.er1
10080 cat conftest.err >&5
10081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10082 (exit $ac_status); } &&
10083 { ac_try='test -z "$ac_c_werror_flag"
10084 || test ! -s conftest.err'
10085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10086 (eval $ac_try) 2>&5
10087 ac_status=$?
10088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10089 (exit $ac_status); }; } &&
10090 { ac_try='test -s conftest$ac_exeext'
10091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10092 (eval $ac_try) 2>&5
10093 ac_status=$?
10094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10095 (exit $ac_status); }; }; then
10096 emacs_cv_x11_version_6=yes
10097 else
10098 echo "$as_me: failed program was:" >&5
10099 sed 's/^/| /' conftest.$ac_ext >&5
10101 emacs_cv_x11_version_6=no
10103 rm -f conftest.err conftest.$ac_objext \
10104 conftest$ac_exeext conftest.$ac_ext
10107 if test $emacs_cv_x11_version_6 = yes; then
10108 echo "$as_me:$LINENO: result: 6 or newer" >&5
10109 echo "${ECHO_T}6 or newer" >&6
10111 cat >>confdefs.h <<\_ACEOF
10112 #define HAVE_X11R6 1
10113 _ACEOF
10115 else
10116 echo "$as_me:$LINENO: result: before 6" >&5
10117 echo "${ECHO_T}before 6" >&6
10121 if test "${window_system}" = "x11"; then
10122 echo "$as_me:$LINENO: checking X11 version 5" >&5
10123 echo $ECHO_N "checking X11 version 5... $ECHO_C" >&6
10124 if test "${emacs_cv_x11_version_5+set}" = set; then
10125 echo $ECHO_N "(cached) $ECHO_C" >&6
10126 else
10127 cat >conftest.$ac_ext <<_ACEOF
10128 /* confdefs.h. */
10129 _ACEOF
10130 cat confdefs.h >>conftest.$ac_ext
10131 cat >>conftest.$ac_ext <<_ACEOF
10132 /* end confdefs.h. */
10133 #include <X11/Xlib.h>
10135 main ()
10137 #if XlibSpecificationRelease < 5
10138 fail;
10139 #endif
10142 return 0;
10144 _ACEOF
10145 rm -f conftest.$ac_objext conftest$ac_exeext
10146 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10147 (eval $ac_link) 2>conftest.er1
10148 ac_status=$?
10149 grep -v '^ *+' conftest.er1 >conftest.err
10150 rm -f conftest.er1
10151 cat conftest.err >&5
10152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10153 (exit $ac_status); } &&
10154 { ac_try='test -z "$ac_c_werror_flag"
10155 || test ! -s conftest.err'
10156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10157 (eval $ac_try) 2>&5
10158 ac_status=$?
10159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10160 (exit $ac_status); }; } &&
10161 { ac_try='test -s conftest$ac_exeext'
10162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10163 (eval $ac_try) 2>&5
10164 ac_status=$?
10165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10166 (exit $ac_status); }; }; then
10167 emacs_cv_x11_version_5=yes
10168 else
10169 echo "$as_me: failed program was:" >&5
10170 sed 's/^/| /' conftest.$ac_ext >&5
10172 emacs_cv_x11_version_5=no
10174 rm -f conftest.err conftest.$ac_objext \
10175 conftest$ac_exeext conftest.$ac_ext
10178 if test $emacs_cv_x11_version_5 = yes; then
10179 echo "$as_me:$LINENO: result: 5 or newer" >&5
10180 echo "${ECHO_T}5 or newer" >&6
10181 HAVE_X11R5=yes
10183 cat >>confdefs.h <<\_ACEOF
10184 #define HAVE_X11R5 1
10185 _ACEOF
10187 else
10188 HAVE_X11R5=no
10189 echo "$as_me:$LINENO: result: before 5" >&5
10190 echo "${ECHO_T}before 5" >&6
10196 HAVE_GTK=no
10197 if test "${with_gtk}" = "yes" || test "$USE_X_TOOLKIT" = "gtk"; then
10198 if test "$USE_X_TOOLKIT" != "none" && test "$USE_X_TOOLKIT" != "maybe"; then
10199 { { echo "$as_me:$LINENO: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&5
10200 echo "$as_me: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&2;}
10201 { (exit 1); exit 1; }; };
10203 GLIB_REQUIRED=2.0.1
10204 GTK_REQUIRED=2.0.1
10205 GTK_MODULES="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
10207 if test "X${with_pkg_config_prog}" != X; then
10208 PKG_CONFIG="${with_pkg_config_prog}"
10211 succeeded=no
10213 if test -z "$PKG_CONFIG"; then
10214 # Extract the first word of "pkg-config", so it can be a program name with args.
10215 set dummy pkg-config; ac_word=$2
10216 echo "$as_me:$LINENO: checking for $ac_word" >&5
10217 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10218 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
10219 echo $ECHO_N "(cached) $ECHO_C" >&6
10220 else
10221 case $PKG_CONFIG in
10222 [\\/]* | ?:[\\/]*)
10223 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10226 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10227 for as_dir in $PATH
10229 IFS=$as_save_IFS
10230 test -z "$as_dir" && as_dir=.
10231 for ac_exec_ext in '' $ac_executable_extensions; do
10232 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10233 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10234 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10235 break 2
10237 done
10238 done
10240 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10242 esac
10244 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10246 if test -n "$PKG_CONFIG"; then
10247 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
10248 echo "${ECHO_T}$PKG_CONFIG" >&6
10249 else
10250 echo "$as_me:$LINENO: result: no" >&5
10251 echo "${ECHO_T}no" >&6
10256 if test "$PKG_CONFIG" = "no" ; then
10257 echo "*** The pkg-config script could not be found. Make sure it is"
10258 echo "*** in your path, or give the full path to pkg-config with"
10259 echo "*** the PKG_CONFIG environment variable or --with-pkg-config-prog."
10260 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
10261 else
10262 PKG_CONFIG_MIN_VERSION=0.9.0
10263 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10264 echo "$as_me:$LINENO: checking for $GTK_MODULES" >&5
10265 echo $ECHO_N "checking for $GTK_MODULES... $ECHO_C" >&6
10267 if $PKG_CONFIG --exists "$GTK_MODULES" ; then
10268 echo "$as_me:$LINENO: result: yes" >&5
10269 echo "${ECHO_T}yes" >&6
10270 succeeded=yes
10272 echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
10273 echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6
10274 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"`
10275 echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
10276 echo "${ECHO_T}$GTK_CFLAGS" >&6
10278 echo "$as_me:$LINENO: checking GTK_LIBS" >&5
10279 echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6
10280 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"`
10281 echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
10282 echo "${ECHO_T}$GTK_LIBS" >&6
10283 else
10284 GTK_CFLAGS=""
10285 GTK_LIBS=""
10286 ## If we have a custom action on failure, don't print errors, but
10287 ## do set a variable so people can do so.
10288 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
10289 echo $GTK_PKG_ERRORS
10294 else
10295 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10296 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10300 if test $succeeded = yes; then
10302 else
10303 { { 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
10304 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;}
10305 { (exit 1); exit 1; }; }
10310 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS"
10311 CFLAGS="$CFLAGS $GTK_CFLAGS"
10312 LIBS="$GTK_LIBS $LIBS"
10313 HAVE_GTK=yes
10315 cat >>confdefs.h <<\_ACEOF
10316 #define HAVE_GTK 1
10317 _ACEOF
10319 USE_X_TOOLKIT=none
10321 if test "$with_toolkit_scroll_bars" != no; then
10322 with_toolkit_scroll_bars=yes
10325 HAVE_GTK_MULTIDISPLAY=no
10327 for ac_func in gdk_display_open
10329 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10330 echo "$as_me:$LINENO: checking for $ac_func" >&5
10331 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10332 if eval "test \"\${$as_ac_var+set}\" = set"; then
10333 echo $ECHO_N "(cached) $ECHO_C" >&6
10334 else
10335 cat >conftest.$ac_ext <<_ACEOF
10336 /* confdefs.h. */
10337 _ACEOF
10338 cat confdefs.h >>conftest.$ac_ext
10339 cat >>conftest.$ac_ext <<_ACEOF
10340 /* end confdefs.h. */
10341 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10342 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10343 #define $ac_func innocuous_$ac_func
10345 /* System header to define __stub macros and hopefully few prototypes,
10346 which can conflict with char $ac_func (); below.
10347 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10348 <limits.h> exists even on freestanding compilers. */
10350 #ifdef __STDC__
10351 # include <limits.h>
10352 #else
10353 # include <assert.h>
10354 #endif
10356 #undef $ac_func
10358 /* Override any gcc2 internal prototype to avoid an error. */
10359 #ifdef __cplusplus
10360 extern "C"
10362 #endif
10363 /* We use char because int might match the return type of a gcc2
10364 builtin and then its argument prototype would still apply. */
10365 char $ac_func ();
10366 /* The GNU C library defines this for functions which it implements
10367 to always fail with ENOSYS. Some functions are actually named
10368 something starting with __ and the normal name is an alias. */
10369 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10370 choke me
10371 #else
10372 char (*f) () = $ac_func;
10373 #endif
10374 #ifdef __cplusplus
10376 #endif
10379 main ()
10381 return f != $ac_func;
10383 return 0;
10385 _ACEOF
10386 rm -f conftest.$ac_objext conftest$ac_exeext
10387 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10388 (eval $ac_link) 2>conftest.er1
10389 ac_status=$?
10390 grep -v '^ *+' conftest.er1 >conftest.err
10391 rm -f conftest.er1
10392 cat conftest.err >&5
10393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10394 (exit $ac_status); } &&
10395 { ac_try='test -z "$ac_c_werror_flag"
10396 || test ! -s conftest.err'
10397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10398 (eval $ac_try) 2>&5
10399 ac_status=$?
10400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10401 (exit $ac_status); }; } &&
10402 { ac_try='test -s conftest$ac_exeext'
10403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10404 (eval $ac_try) 2>&5
10405 ac_status=$?
10406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10407 (exit $ac_status); }; }; then
10408 eval "$as_ac_var=yes"
10409 else
10410 echo "$as_me: failed program was:" >&5
10411 sed 's/^/| /' conftest.$ac_ext >&5
10413 eval "$as_ac_var=no"
10415 rm -f conftest.err conftest.$ac_objext \
10416 conftest$ac_exeext conftest.$ac_ext
10418 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10419 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10420 if test `eval echo '${'$as_ac_var'}'` = yes; then
10421 cat >>confdefs.h <<_ACEOF
10422 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10423 _ACEOF
10424 HAVE_GTK_MULTIDISPLAY=yes
10426 done
10428 if test "${HAVE_GTK_MULTIDISPLAY}" = "yes"; then
10430 cat >>confdefs.h <<\_ACEOF
10431 #define HAVE_GTK_MULTIDISPLAY 1
10432 _ACEOF
10435 HAVE_GTK_FILE_SELECTION=no
10437 for ac_func in gtk_file_selection_new
10439 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10440 echo "$as_me:$LINENO: checking for $ac_func" >&5
10441 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10442 if eval "test \"\${$as_ac_var+set}\" = set"; then
10443 echo $ECHO_N "(cached) $ECHO_C" >&6
10444 else
10445 cat >conftest.$ac_ext <<_ACEOF
10446 /* confdefs.h. */
10447 _ACEOF
10448 cat confdefs.h >>conftest.$ac_ext
10449 cat >>conftest.$ac_ext <<_ACEOF
10450 /* end confdefs.h. */
10451 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10452 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10453 #define $ac_func innocuous_$ac_func
10455 /* System header to define __stub macros and hopefully few prototypes,
10456 which can conflict with char $ac_func (); below.
10457 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10458 <limits.h> exists even on freestanding compilers. */
10460 #ifdef __STDC__
10461 # include <limits.h>
10462 #else
10463 # include <assert.h>
10464 #endif
10466 #undef $ac_func
10468 /* Override any gcc2 internal prototype to avoid an error. */
10469 #ifdef __cplusplus
10470 extern "C"
10472 #endif
10473 /* We use char because int might match the return type of a gcc2
10474 builtin and then its argument prototype would still apply. */
10475 char $ac_func ();
10476 /* The GNU C library defines this for functions which it implements
10477 to always fail with ENOSYS. Some functions are actually named
10478 something starting with __ and the normal name is an alias. */
10479 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10480 choke me
10481 #else
10482 char (*f) () = $ac_func;
10483 #endif
10484 #ifdef __cplusplus
10486 #endif
10489 main ()
10491 return f != $ac_func;
10493 return 0;
10495 _ACEOF
10496 rm -f conftest.$ac_objext conftest$ac_exeext
10497 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10498 (eval $ac_link) 2>conftest.er1
10499 ac_status=$?
10500 grep -v '^ *+' conftest.er1 >conftest.err
10501 rm -f conftest.er1
10502 cat conftest.err >&5
10503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10504 (exit $ac_status); } &&
10505 { ac_try='test -z "$ac_c_werror_flag"
10506 || test ! -s conftest.err'
10507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10508 (eval $ac_try) 2>&5
10509 ac_status=$?
10510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10511 (exit $ac_status); }; } &&
10512 { ac_try='test -s conftest$ac_exeext'
10513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10514 (eval $ac_try) 2>&5
10515 ac_status=$?
10516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10517 (exit $ac_status); }; }; then
10518 eval "$as_ac_var=yes"
10519 else
10520 echo "$as_me: failed program was:" >&5
10521 sed 's/^/| /' conftest.$ac_ext >&5
10523 eval "$as_ac_var=no"
10525 rm -f conftest.err conftest.$ac_objext \
10526 conftest$ac_exeext conftest.$ac_ext
10528 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10529 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10530 if test `eval echo '${'$as_ac_var'}'` = yes; then
10531 cat >>confdefs.h <<_ACEOF
10532 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10533 _ACEOF
10534 HAVE_GTK_FILE_SELECTION=yes
10536 done
10539 HAVE_GTK_FILE_CHOOSER=no
10541 for ac_func in gtk_file_chooser_dialog_new
10543 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10544 echo "$as_me:$LINENO: checking for $ac_func" >&5
10545 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10546 if eval "test \"\${$as_ac_var+set}\" = set"; then
10547 echo $ECHO_N "(cached) $ECHO_C" >&6
10548 else
10549 cat >conftest.$ac_ext <<_ACEOF
10550 /* confdefs.h. */
10551 _ACEOF
10552 cat confdefs.h >>conftest.$ac_ext
10553 cat >>conftest.$ac_ext <<_ACEOF
10554 /* end confdefs.h. */
10555 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10556 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10557 #define $ac_func innocuous_$ac_func
10559 /* System header to define __stub macros and hopefully few prototypes,
10560 which can conflict with char $ac_func (); below.
10561 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10562 <limits.h> exists even on freestanding compilers. */
10564 #ifdef __STDC__
10565 # include <limits.h>
10566 #else
10567 # include <assert.h>
10568 #endif
10570 #undef $ac_func
10572 /* Override any gcc2 internal prototype to avoid an error. */
10573 #ifdef __cplusplus
10574 extern "C"
10576 #endif
10577 /* We use char because int might match the return type of a gcc2
10578 builtin and then its argument prototype would still apply. */
10579 char $ac_func ();
10580 /* The GNU C library defines this for functions which it implements
10581 to always fail with ENOSYS. Some functions are actually named
10582 something starting with __ and the normal name is an alias. */
10583 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10584 choke me
10585 #else
10586 char (*f) () = $ac_func;
10587 #endif
10588 #ifdef __cplusplus
10590 #endif
10593 main ()
10595 return f != $ac_func;
10597 return 0;
10599 _ACEOF
10600 rm -f conftest.$ac_objext conftest$ac_exeext
10601 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10602 (eval $ac_link) 2>conftest.er1
10603 ac_status=$?
10604 grep -v '^ *+' conftest.er1 >conftest.err
10605 rm -f conftest.er1
10606 cat conftest.err >&5
10607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10608 (exit $ac_status); } &&
10609 { ac_try='test -z "$ac_c_werror_flag"
10610 || test ! -s conftest.err'
10611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10612 (eval $ac_try) 2>&5
10613 ac_status=$?
10614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10615 (exit $ac_status); }; } &&
10616 { ac_try='test -s conftest$ac_exeext'
10617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10618 (eval $ac_try) 2>&5
10619 ac_status=$?
10620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10621 (exit $ac_status); }; }; then
10622 eval "$as_ac_var=yes"
10623 else
10624 echo "$as_me: failed program was:" >&5
10625 sed 's/^/| /' conftest.$ac_ext >&5
10627 eval "$as_ac_var=no"
10629 rm -f conftest.err conftest.$ac_objext \
10630 conftest$ac_exeext conftest.$ac_ext
10632 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10633 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10634 if test `eval echo '${'$as_ac_var'}'` = yes; then
10635 cat >>confdefs.h <<_ACEOF
10636 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10637 _ACEOF
10638 HAVE_GTK_FILE_CHOOSER=yes
10640 done
10643 if test "$HAVE_GTK_FILE_SELECTION" = yes \
10644 && test "$HAVE_GTK_FILE_CHOOSER" = yes; then
10646 cat >>confdefs.h <<\_ACEOF
10647 #define HAVE_GTK_FILE_BOTH 1
10648 _ACEOF
10652 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
10653 HAVE_GTK_AND_PTHREAD=no
10655 for ac_header in pthread.h
10657 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10658 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10659 echo "$as_me:$LINENO: checking for $ac_header" >&5
10660 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10661 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10662 echo $ECHO_N "(cached) $ECHO_C" >&6
10664 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10665 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10666 else
10667 # Is the header compilable?
10668 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10669 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10670 cat >conftest.$ac_ext <<_ACEOF
10671 /* confdefs.h. */
10672 _ACEOF
10673 cat confdefs.h >>conftest.$ac_ext
10674 cat >>conftest.$ac_ext <<_ACEOF
10675 /* end confdefs.h. */
10676 $ac_includes_default
10677 #include <$ac_header>
10678 _ACEOF
10679 rm -f conftest.$ac_objext
10680 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10681 (eval $ac_compile) 2>conftest.er1
10682 ac_status=$?
10683 grep -v '^ *+' conftest.er1 >conftest.err
10684 rm -f conftest.er1
10685 cat conftest.err >&5
10686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10687 (exit $ac_status); } &&
10688 { ac_try='test -z "$ac_c_werror_flag"
10689 || test ! -s conftest.err'
10690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10691 (eval $ac_try) 2>&5
10692 ac_status=$?
10693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10694 (exit $ac_status); }; } &&
10695 { ac_try='test -s conftest.$ac_objext'
10696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10697 (eval $ac_try) 2>&5
10698 ac_status=$?
10699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10700 (exit $ac_status); }; }; then
10701 ac_header_compiler=yes
10702 else
10703 echo "$as_me: failed program was:" >&5
10704 sed 's/^/| /' conftest.$ac_ext >&5
10706 ac_header_compiler=no
10708 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10709 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10710 echo "${ECHO_T}$ac_header_compiler" >&6
10712 # Is the header present?
10713 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10714 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10715 cat >conftest.$ac_ext <<_ACEOF
10716 /* confdefs.h. */
10717 _ACEOF
10718 cat confdefs.h >>conftest.$ac_ext
10719 cat >>conftest.$ac_ext <<_ACEOF
10720 /* end confdefs.h. */
10721 #include <$ac_header>
10722 _ACEOF
10723 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10724 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10725 ac_status=$?
10726 grep -v '^ *+' conftest.er1 >conftest.err
10727 rm -f conftest.er1
10728 cat conftest.err >&5
10729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10730 (exit $ac_status); } >/dev/null; then
10731 if test -s conftest.err; then
10732 ac_cpp_err=$ac_c_preproc_warn_flag
10733 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10734 else
10735 ac_cpp_err=
10737 else
10738 ac_cpp_err=yes
10740 if test -z "$ac_cpp_err"; then
10741 ac_header_preproc=yes
10742 else
10743 echo "$as_me: failed program was:" >&5
10744 sed 's/^/| /' conftest.$ac_ext >&5
10746 ac_header_preproc=no
10748 rm -f conftest.err conftest.$ac_ext
10749 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10750 echo "${ECHO_T}$ac_header_preproc" >&6
10752 # So? What about this header?
10753 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10754 yes:no: )
10755 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10756 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10757 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10758 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10759 ac_header_preproc=yes
10761 no:yes:* )
10762 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10763 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10764 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10765 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10766 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10767 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10768 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10769 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10770 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10771 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10772 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10773 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10775 cat <<\_ASBOX
10776 ## ------------------------------------------ ##
10777 ## Report this to the AC_PACKAGE_NAME lists. ##
10778 ## ------------------------------------------ ##
10779 _ASBOX
10781 sed "s/^/$as_me: WARNING: /" >&2
10783 esac
10784 echo "$as_me:$LINENO: checking for $ac_header" >&5
10785 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10786 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10787 echo $ECHO_N "(cached) $ECHO_C" >&6
10788 else
10789 eval "$as_ac_Header=\$ac_header_preproc"
10791 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10792 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10795 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10796 cat >>confdefs.h <<_ACEOF
10797 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10798 _ACEOF
10802 done
10804 if test "$ac_cv_header_pthread_h"; then
10805 echo "$as_me:$LINENO: checking for pthread_self in -lpthread" >&5
10806 echo $ECHO_N "checking for pthread_self in -lpthread... $ECHO_C" >&6
10807 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then
10808 echo $ECHO_N "(cached) $ECHO_C" >&6
10809 else
10810 ac_check_lib_save_LIBS=$LIBS
10811 LIBS="-lpthread $LIBS"
10812 cat >conftest.$ac_ext <<_ACEOF
10813 /* confdefs.h. */
10814 _ACEOF
10815 cat confdefs.h >>conftest.$ac_ext
10816 cat >>conftest.$ac_ext <<_ACEOF
10817 /* end confdefs.h. */
10819 /* Override any gcc2 internal prototype to avoid an error. */
10820 #ifdef __cplusplus
10821 extern "C"
10822 #endif
10823 /* We use char because int might match the return type of a gcc2
10824 builtin and then its argument prototype would still apply. */
10825 char pthread_self ();
10827 main ()
10829 pthread_self ();
10831 return 0;
10833 _ACEOF
10834 rm -f conftest.$ac_objext conftest$ac_exeext
10835 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10836 (eval $ac_link) 2>conftest.er1
10837 ac_status=$?
10838 grep -v '^ *+' conftest.er1 >conftest.err
10839 rm -f conftest.er1
10840 cat conftest.err >&5
10841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10842 (exit $ac_status); } &&
10843 { ac_try='test -z "$ac_c_werror_flag"
10844 || test ! -s conftest.err'
10845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10846 (eval $ac_try) 2>&5
10847 ac_status=$?
10848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10849 (exit $ac_status); }; } &&
10850 { ac_try='test -s conftest$ac_exeext'
10851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10852 (eval $ac_try) 2>&5
10853 ac_status=$?
10854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10855 (exit $ac_status); }; }; then
10856 ac_cv_lib_pthread_pthread_self=yes
10857 else
10858 echo "$as_me: failed program was:" >&5
10859 sed 's/^/| /' conftest.$ac_ext >&5
10861 ac_cv_lib_pthread_pthread_self=no
10863 rm -f conftest.err conftest.$ac_objext \
10864 conftest$ac_exeext conftest.$ac_ext
10865 LIBS=$ac_check_lib_save_LIBS
10867 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_self" >&5
10868 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_self" >&6
10869 if test $ac_cv_lib_pthread_pthread_self = yes; then
10870 HAVE_GTK_AND_PTHREAD=yes
10874 if test "$HAVE_GTK_AND_PTHREAD" = yes; then
10875 GTK_LIBS="$GTK_LIBS -lpthread"
10877 cat >>confdefs.h <<\_ACEOF
10878 #define HAVE_GTK_AND_PTHREAD 1
10879 _ACEOF
10885 if test x"${USE_X_TOOLKIT}" = xmaybe; then
10886 if test x"${HAVE_X11R5}" = xyes; then
10887 echo "$as_me:$LINENO: checking X11 version 5 with Xaw" >&5
10888 echo $ECHO_N "checking X11 version 5 with Xaw... $ECHO_C" >&6
10889 if test "${emacs_cv_x11_version_5_with_xaw+set}" = set; then
10890 echo $ECHO_N "(cached) $ECHO_C" >&6
10891 else
10892 cat >conftest.$ac_ext <<_ACEOF
10893 /* confdefs.h. */
10894 _ACEOF
10895 cat confdefs.h >>conftest.$ac_ext
10896 cat >>conftest.$ac_ext <<_ACEOF
10897 /* end confdefs.h. */
10899 #include <X11/Intrinsic.h>
10900 #include <X11/Xaw/Simple.h>
10902 main ()
10906 return 0;
10908 _ACEOF
10909 rm -f conftest.$ac_objext conftest$ac_exeext
10910 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10911 (eval $ac_link) 2>conftest.er1
10912 ac_status=$?
10913 grep -v '^ *+' conftest.er1 >conftest.err
10914 rm -f conftest.er1
10915 cat conftest.err >&5
10916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10917 (exit $ac_status); } &&
10918 { ac_try='test -z "$ac_c_werror_flag"
10919 || test ! -s conftest.err'
10920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10921 (eval $ac_try) 2>&5
10922 ac_status=$?
10923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10924 (exit $ac_status); }; } &&
10925 { ac_try='test -s conftest$ac_exeext'
10926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10927 (eval $ac_try) 2>&5
10928 ac_status=$?
10929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10930 (exit $ac_status); }; }; then
10931 emacs_cv_x11_version_5_with_xaw=yes
10932 else
10933 echo "$as_me: failed program was:" >&5
10934 sed 's/^/| /' conftest.$ac_ext >&5
10936 emacs_cv_x11_version_5_with_xaw=no
10938 rm -f conftest.err conftest.$ac_objext \
10939 conftest$ac_exeext conftest.$ac_ext
10942 if test $emacs_cv_x11_version_5_with_xaw = yes; then
10943 echo "$as_me:$LINENO: result: 5 or newer, with Xaw; use toolkit by default" >&5
10944 echo "${ECHO_T}5 or newer, with Xaw; use toolkit by default" >&6
10945 USE_X_TOOLKIT=LUCID
10946 else
10947 echo "$as_me:$LINENO: result: before 5 or no Xaw; do not use toolkit by default" >&5
10948 echo "${ECHO_T}before 5 or no Xaw; do not use toolkit by default" >&6
10949 USE_X_TOOLKIT=none
10951 else
10952 USE_X_TOOLKIT=none
10956 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
10958 if test "${USE_X_TOOLKIT}" != "none"; then
10959 echo "$as_me:$LINENO: checking X11 toolkit version" >&5
10960 echo $ECHO_N "checking X11 toolkit version... $ECHO_C" >&6
10961 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then
10962 echo $ECHO_N "(cached) $ECHO_C" >&6
10963 else
10964 cat >conftest.$ac_ext <<_ACEOF
10965 /* confdefs.h. */
10966 _ACEOF
10967 cat confdefs.h >>conftest.$ac_ext
10968 cat >>conftest.$ac_ext <<_ACEOF
10969 /* end confdefs.h. */
10970 #include <X11/Intrinsic.h>
10972 main ()
10974 #if XtSpecificationRelease < 6
10975 fail;
10976 #endif
10979 return 0;
10981 _ACEOF
10982 rm -f conftest.$ac_objext conftest$ac_exeext
10983 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10984 (eval $ac_link) 2>conftest.er1
10985 ac_status=$?
10986 grep -v '^ *+' conftest.er1 >conftest.err
10987 rm -f conftest.er1
10988 cat conftest.err >&5
10989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10990 (exit $ac_status); } &&
10991 { ac_try='test -z "$ac_c_werror_flag"
10992 || test ! -s conftest.err'
10993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10994 (eval $ac_try) 2>&5
10995 ac_status=$?
10996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10997 (exit $ac_status); }; } &&
10998 { ac_try='test -s conftest$ac_exeext'
10999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11000 (eval $ac_try) 2>&5
11001 ac_status=$?
11002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11003 (exit $ac_status); }; }; then
11004 emacs_cv_x11_toolkit_version_6=yes
11005 else
11006 echo "$as_me: failed program was:" >&5
11007 sed 's/^/| /' conftest.$ac_ext >&5
11009 emacs_cv_x11_toolkit_version_6=no
11011 rm -f conftest.err conftest.$ac_objext \
11012 conftest$ac_exeext conftest.$ac_ext
11015 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
11016 if test $emacs_cv_x11_toolkit_version_6 = yes; then
11017 echo "$as_me:$LINENO: result: 6 or newer" >&5
11018 echo "${ECHO_T}6 or newer" >&6
11020 cat >>confdefs.h <<\_ACEOF
11021 #define HAVE_X11XTR6 1
11022 _ACEOF
11024 else
11025 echo "$as_me:$LINENO: result: before 6" >&5
11026 echo "${ECHO_T}before 6" >&6
11029 OLDLIBS="$LIBS"
11030 if test x$HAVE_X11XTR6 = xyes; then
11031 LIBS="-lXt -lSM -lICE $LIBS"
11032 else
11033 LIBS="-lXt $LIBS"
11036 echo "$as_me:$LINENO: checking for XmuConvertStandardSelection in -lXmu" >&5
11037 echo $ECHO_N "checking for XmuConvertStandardSelection in -lXmu... $ECHO_C" >&6
11038 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then
11039 echo $ECHO_N "(cached) $ECHO_C" >&6
11040 else
11041 ac_check_lib_save_LIBS=$LIBS
11042 LIBS="-lXmu $LIBS"
11043 cat >conftest.$ac_ext <<_ACEOF
11044 /* confdefs.h. */
11045 _ACEOF
11046 cat confdefs.h >>conftest.$ac_ext
11047 cat >>conftest.$ac_ext <<_ACEOF
11048 /* end confdefs.h. */
11050 /* Override any gcc2 internal prototype to avoid an error. */
11051 #ifdef __cplusplus
11052 extern "C"
11053 #endif
11054 /* We use char because int might match the return type of a gcc2
11055 builtin and then its argument prototype would still apply. */
11056 char XmuConvertStandardSelection ();
11058 main ()
11060 XmuConvertStandardSelection ();
11062 return 0;
11064 _ACEOF
11065 rm -f conftest.$ac_objext conftest$ac_exeext
11066 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11067 (eval $ac_link) 2>conftest.er1
11068 ac_status=$?
11069 grep -v '^ *+' conftest.er1 >conftest.err
11070 rm -f conftest.er1
11071 cat conftest.err >&5
11072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11073 (exit $ac_status); } &&
11074 { ac_try='test -z "$ac_c_werror_flag"
11075 || test ! -s conftest.err'
11076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11077 (eval $ac_try) 2>&5
11078 ac_status=$?
11079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11080 (exit $ac_status); }; } &&
11081 { ac_try='test -s conftest$ac_exeext'
11082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11083 (eval $ac_try) 2>&5
11084 ac_status=$?
11085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11086 (exit $ac_status); }; }; then
11087 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
11088 else
11089 echo "$as_me: failed program was:" >&5
11090 sed 's/^/| /' conftest.$ac_ext >&5
11092 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
11094 rm -f conftest.err conftest.$ac_objext \
11095 conftest$ac_exeext conftest.$ac_ext
11096 LIBS=$ac_check_lib_save_LIBS
11098 echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
11099 echo "${ECHO_T}$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6
11100 if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then
11101 cat >>confdefs.h <<_ACEOF
11102 #define HAVE_LIBXMU 1
11103 _ACEOF
11105 LIBS="-lXmu $LIBS"
11109 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
11112 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
11113 if test "${HAVE_X11}" = "yes"; then
11114 if test "${USE_X_TOOLKIT}" != "none"; then
11116 echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
11117 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
11118 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
11119 echo $ECHO_N "(cached) $ECHO_C" >&6
11120 else
11121 ac_check_lib_save_LIBS=$LIBS
11122 LIBS="-lXext $LIBS"
11123 cat >conftest.$ac_ext <<_ACEOF
11124 /* confdefs.h. */
11125 _ACEOF
11126 cat confdefs.h >>conftest.$ac_ext
11127 cat >>conftest.$ac_ext <<_ACEOF
11128 /* end confdefs.h. */
11130 /* Override any gcc2 internal prototype to avoid an error. */
11131 #ifdef __cplusplus
11132 extern "C"
11133 #endif
11134 /* We use char because int might match the return type of a gcc2
11135 builtin and then its argument prototype would still apply. */
11136 char XShapeQueryExtension ();
11138 main ()
11140 XShapeQueryExtension ();
11142 return 0;
11144 _ACEOF
11145 rm -f conftest.$ac_objext conftest$ac_exeext
11146 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11147 (eval $ac_link) 2>conftest.er1
11148 ac_status=$?
11149 grep -v '^ *+' conftest.er1 >conftest.err
11150 rm -f conftest.er1
11151 cat conftest.err >&5
11152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11153 (exit $ac_status); } &&
11154 { ac_try='test -z "$ac_c_werror_flag"
11155 || test ! -s conftest.err'
11156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11157 (eval $ac_try) 2>&5
11158 ac_status=$?
11159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11160 (exit $ac_status); }; } &&
11161 { ac_try='test -s conftest$ac_exeext'
11162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11163 (eval $ac_try) 2>&5
11164 ac_status=$?
11165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11166 (exit $ac_status); }; }; then
11167 ac_cv_lib_Xext_XShapeQueryExtension=yes
11168 else
11169 echo "$as_me: failed program was:" >&5
11170 sed 's/^/| /' conftest.$ac_ext >&5
11172 ac_cv_lib_Xext_XShapeQueryExtension=no
11174 rm -f conftest.err conftest.$ac_objext \
11175 conftest$ac_exeext conftest.$ac_ext
11176 LIBS=$ac_check_lib_save_LIBS
11178 echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
11179 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
11180 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
11181 cat >>confdefs.h <<_ACEOF
11182 #define HAVE_LIBXEXT 1
11183 _ACEOF
11185 LIBS="-lXext $LIBS"
11192 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
11193 echo "$as_me:$LINENO: checking for Motif version 2.1" >&5
11194 echo $ECHO_N "checking for Motif version 2.1... $ECHO_C" >&6
11195 if test "${emacs_cv_motif_version_2_1+set}" = set; then
11196 echo $ECHO_N "(cached) $ECHO_C" >&6
11197 else
11198 cat >conftest.$ac_ext <<_ACEOF
11199 /* confdefs.h. */
11200 _ACEOF
11201 cat confdefs.h >>conftest.$ac_ext
11202 cat >>conftest.$ac_ext <<_ACEOF
11203 /* end confdefs.h. */
11204 #include <Xm/Xm.h>
11206 main ()
11208 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
11209 int x = 5;
11210 #else
11211 Motif version prior to 2.1.
11212 #endif
11214 return 0;
11216 _ACEOF
11217 rm -f conftest.$ac_objext
11218 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11219 (eval $ac_compile) 2>conftest.er1
11220 ac_status=$?
11221 grep -v '^ *+' conftest.er1 >conftest.err
11222 rm -f conftest.er1
11223 cat conftest.err >&5
11224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11225 (exit $ac_status); } &&
11226 { ac_try='test -z "$ac_c_werror_flag"
11227 || test ! -s conftest.err'
11228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11229 (eval $ac_try) 2>&5
11230 ac_status=$?
11231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11232 (exit $ac_status); }; } &&
11233 { ac_try='test -s conftest.$ac_objext'
11234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11235 (eval $ac_try) 2>&5
11236 ac_status=$?
11237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11238 (exit $ac_status); }; }; then
11239 emacs_cv_motif_version_2_1=yes
11240 else
11241 echo "$as_me: failed program was:" >&5
11242 sed 's/^/| /' conftest.$ac_ext >&5
11244 emacs_cv_motif_version_2_1=no
11246 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11248 echo "$as_me:$LINENO: result: $emacs_cv_motif_version_2_1" >&5
11249 echo "${ECHO_T}$emacs_cv_motif_version_2_1" >&6
11250 HAVE_MOTIF_2_1=$emacs_cv_motif_version_2_1
11251 if test $emacs_cv_motif_version_2_1 = yes; then
11252 HAVE_LIBXP=no
11254 cat >>confdefs.h <<\_ACEOF
11255 #define HAVE_MOTIF_2_1 1
11256 _ACEOF
11258 echo "$as_me:$LINENO: checking for XpCreateContext in -lXp" >&5
11259 echo $ECHO_N "checking for XpCreateContext in -lXp... $ECHO_C" >&6
11260 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then
11261 echo $ECHO_N "(cached) $ECHO_C" >&6
11262 else
11263 ac_check_lib_save_LIBS=$LIBS
11264 LIBS="-lXp $LIBS"
11265 cat >conftest.$ac_ext <<_ACEOF
11266 /* confdefs.h. */
11267 _ACEOF
11268 cat confdefs.h >>conftest.$ac_ext
11269 cat >>conftest.$ac_ext <<_ACEOF
11270 /* end confdefs.h. */
11272 /* Override any gcc2 internal prototype to avoid an error. */
11273 #ifdef __cplusplus
11274 extern "C"
11275 #endif
11276 /* We use char because int might match the return type of a gcc2
11277 builtin and then its argument prototype would still apply. */
11278 char XpCreateContext ();
11280 main ()
11282 XpCreateContext ();
11284 return 0;
11286 _ACEOF
11287 rm -f conftest.$ac_objext conftest$ac_exeext
11288 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11289 (eval $ac_link) 2>conftest.er1
11290 ac_status=$?
11291 grep -v '^ *+' conftest.er1 >conftest.err
11292 rm -f conftest.er1
11293 cat conftest.err >&5
11294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11295 (exit $ac_status); } &&
11296 { ac_try='test -z "$ac_c_werror_flag"
11297 || test ! -s conftest.err'
11298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11299 (eval $ac_try) 2>&5
11300 ac_status=$?
11301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11302 (exit $ac_status); }; } &&
11303 { ac_try='test -s conftest$ac_exeext'
11304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11305 (eval $ac_try) 2>&5
11306 ac_status=$?
11307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11308 (exit $ac_status); }; }; then
11309 ac_cv_lib_Xp_XpCreateContext=yes
11310 else
11311 echo "$as_me: failed program was:" >&5
11312 sed 's/^/| /' conftest.$ac_ext >&5
11314 ac_cv_lib_Xp_XpCreateContext=no
11316 rm -f conftest.err conftest.$ac_objext \
11317 conftest$ac_exeext conftest.$ac_ext
11318 LIBS=$ac_check_lib_save_LIBS
11320 echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpCreateContext" >&5
11321 echo "${ECHO_T}$ac_cv_lib_Xp_XpCreateContext" >&6
11322 if test $ac_cv_lib_Xp_XpCreateContext = yes; then
11323 HAVE_LIBXP=yes
11326 if test ${HAVE_LIBXP} = yes; then
11328 cat >>confdefs.h <<\_ACEOF
11329 #define HAVE_LIBXP 1
11330 _ACEOF
11333 else
11334 echo "$as_me:$LINENO: checking for LessTif where some systems put it" >&5
11335 echo $ECHO_N "checking for LessTif where some systems put it... $ECHO_C" >&6
11336 if test "${emacs_cv_lesstif+set}" = set; then
11337 echo $ECHO_N "(cached) $ECHO_C" >&6
11338 else
11339 # We put this in CFLAGS temporarily to precede other -I options
11340 # that might be in CFLAGS temporarily.
11341 # We put this in CPPFLAGS where it precedes the other -I options.
11342 OLD_CPPFLAGS=$CPPFLAGS
11343 OLD_CFLAGS=$CFLAGS
11344 CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
11345 CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
11346 cat >conftest.$ac_ext <<_ACEOF
11347 /* confdefs.h. */
11348 _ACEOF
11349 cat confdefs.h >>conftest.$ac_ext
11350 cat >>conftest.$ac_ext <<_ACEOF
11351 /* end confdefs.h. */
11352 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
11354 main ()
11356 int x = 5;
11358 return 0;
11360 _ACEOF
11361 rm -f conftest.$ac_objext
11362 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11363 (eval $ac_compile) 2>conftest.er1
11364 ac_status=$?
11365 grep -v '^ *+' conftest.er1 >conftest.err
11366 rm -f conftest.er1
11367 cat conftest.err >&5
11368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11369 (exit $ac_status); } &&
11370 { ac_try='test -z "$ac_c_werror_flag"
11371 || test ! -s conftest.err'
11372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11373 (eval $ac_try) 2>&5
11374 ac_status=$?
11375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11376 (exit $ac_status); }; } &&
11377 { ac_try='test -s conftest.$ac_objext'
11378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11379 (eval $ac_try) 2>&5
11380 ac_status=$?
11381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11382 (exit $ac_status); }; }; then
11383 emacs_cv_lesstif=yes
11384 else
11385 echo "$as_me: failed program was:" >&5
11386 sed 's/^/| /' conftest.$ac_ext >&5
11388 emacs_cv_lesstif=no
11390 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11392 echo "$as_me:$LINENO: result: $emacs_cv_lesstif" >&5
11393 echo "${ECHO_T}$emacs_cv_lesstif" >&6
11394 if test $emacs_cv_lesstif = yes; then
11395 # Make sure this -I option remains in CPPFLAGS after it is set
11396 # back to REAL_CPPFLAGS.
11397 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
11398 # have those other -I options anyway. Ultimately, having this
11399 # directory ultimately in CPPFLAGS will be enough.
11400 REAL_CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
11401 LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
11402 else
11403 CFLAGS=$OLD_CFLAGS
11404 CPPFLAGS=$OLD_CPPFLAGS
11409 ### Is -lXaw3d available?
11410 HAVE_XAW3D=no
11411 if test "${HAVE_X11}" = "yes"; then
11412 if test "${USE_X_TOOLKIT}" != "none"; then
11413 echo "$as_me:$LINENO: checking for X11/Xaw3d/Scrollbar.h" >&5
11414 echo $ECHO_N "checking for X11/Xaw3d/Scrollbar.h... $ECHO_C" >&6
11415 if test "${ac_cv_header_X11_Xaw3d_Scrollbar_h+set}" = set; then
11416 echo $ECHO_N "(cached) $ECHO_C" >&6
11417 else
11418 cat >conftest.$ac_ext <<_ACEOF
11419 /* confdefs.h. */
11420 _ACEOF
11421 cat confdefs.h >>conftest.$ac_ext
11422 cat >>conftest.$ac_ext <<_ACEOF
11423 /* end confdefs.h. */
11424 #include <X11/Xaw3d/Scrollbar.h>
11425 _ACEOF
11426 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11427 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11428 ac_status=$?
11429 grep -v '^ *+' conftest.er1 >conftest.err
11430 rm -f conftest.er1
11431 cat conftest.err >&5
11432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11433 (exit $ac_status); } >/dev/null; then
11434 if test -s conftest.err; then
11435 ac_cpp_err=$ac_c_preproc_warn_flag
11436 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11437 else
11438 ac_cpp_err=
11440 else
11441 ac_cpp_err=yes
11443 if test -z "$ac_cpp_err"; then
11444 ac_cv_header_X11_Xaw3d_Scrollbar_h=yes
11445 else
11446 echo "$as_me: failed program was:" >&5
11447 sed 's/^/| /' conftest.$ac_ext >&5
11449 ac_cv_header_X11_Xaw3d_Scrollbar_h=no
11451 rm -f conftest.err conftest.$ac_ext
11453 echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xaw3d_Scrollbar_h" >&5
11454 echo "${ECHO_T}$ac_cv_header_X11_Xaw3d_Scrollbar_h" >&6
11455 if test $ac_cv_header_X11_Xaw3d_Scrollbar_h = yes; then
11456 echo "$as_me:$LINENO: checking for XawScrollbarSetThumb in -lXaw3d" >&5
11457 echo $ECHO_N "checking for XawScrollbarSetThumb in -lXaw3d... $ECHO_C" >&6
11458 if test "${ac_cv_lib_Xaw3d_XawScrollbarSetThumb+set}" = set; then
11459 echo $ECHO_N "(cached) $ECHO_C" >&6
11460 else
11461 ac_check_lib_save_LIBS=$LIBS
11462 LIBS="-lXaw3d $LIBS"
11463 cat >conftest.$ac_ext <<_ACEOF
11464 /* confdefs.h. */
11465 _ACEOF
11466 cat confdefs.h >>conftest.$ac_ext
11467 cat >>conftest.$ac_ext <<_ACEOF
11468 /* end confdefs.h. */
11470 /* Override any gcc2 internal prototype to avoid an error. */
11471 #ifdef __cplusplus
11472 extern "C"
11473 #endif
11474 /* We use char because int might match the return type of a gcc2
11475 builtin and then its argument prototype would still apply. */
11476 char XawScrollbarSetThumb ();
11478 main ()
11480 XawScrollbarSetThumb ();
11482 return 0;
11484 _ACEOF
11485 rm -f conftest.$ac_objext conftest$ac_exeext
11486 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11487 (eval $ac_link) 2>conftest.er1
11488 ac_status=$?
11489 grep -v '^ *+' conftest.er1 >conftest.err
11490 rm -f conftest.er1
11491 cat conftest.err >&5
11492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11493 (exit $ac_status); } &&
11494 { ac_try='test -z "$ac_c_werror_flag"
11495 || test ! -s conftest.err'
11496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11497 (eval $ac_try) 2>&5
11498 ac_status=$?
11499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11500 (exit $ac_status); }; } &&
11501 { ac_try='test -s conftest$ac_exeext'
11502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11503 (eval $ac_try) 2>&5
11504 ac_status=$?
11505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11506 (exit $ac_status); }; }; then
11507 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=yes
11508 else
11509 echo "$as_me: failed program was:" >&5
11510 sed 's/^/| /' conftest.$ac_ext >&5
11512 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=no
11514 rm -f conftest.err conftest.$ac_objext \
11515 conftest$ac_exeext conftest.$ac_ext
11516 LIBS=$ac_check_lib_save_LIBS
11518 echo "$as_me:$LINENO: result: $ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&5
11519 echo "${ECHO_T}$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&6
11520 if test $ac_cv_lib_Xaw3d_XawScrollbarSetThumb = yes; then
11521 HAVE_XAW3D=yes
11527 if test "${HAVE_XAW3D}" = "yes"; then
11529 cat >>confdefs.h <<\_ACEOF
11530 #define HAVE_XAW3D 1
11531 _ACEOF
11539 USE_TOOLKIT_SCROLL_BARS=no
11540 if test "${with_toolkit_scroll_bars}" != "no"; then
11541 if test "${USE_X_TOOLKIT}" != "none"; then
11542 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
11543 cat >>confdefs.h <<\_ACEOF
11544 #define USE_TOOLKIT_SCROLL_BARS 1
11545 _ACEOF
11547 HAVE_XAW3D=no
11548 USE_TOOLKIT_SCROLL_BARS=yes
11549 elif test "${HAVE_XAW3D}" = "yes"; then
11550 cat >>confdefs.h <<\_ACEOF
11551 #define USE_TOOLKIT_SCROLL_BARS 1
11552 _ACEOF
11554 USE_TOOLKIT_SCROLL_BARS=yes
11556 elif test "${HAVE_GTK}" = "yes"; then
11557 cat >>confdefs.h <<\_ACEOF
11558 #define USE_TOOLKIT_SCROLL_BARS 1
11559 _ACEOF
11561 USE_TOOLKIT_SCROLL_BARS=yes
11562 elif test "${HAVE_CARBON}" = "yes"; then
11563 cat >>confdefs.h <<\_ACEOF
11564 #define USE_TOOLKIT_SCROLL_BARS 1
11565 _ACEOF
11567 USE_TOOLKIT_SCROLL_BARS=yes
11571 cat >conftest.$ac_ext <<_ACEOF
11572 /* confdefs.h. */
11573 _ACEOF
11574 cat confdefs.h >>conftest.$ac_ext
11575 cat >>conftest.$ac_ext <<_ACEOF
11576 /* end confdefs.h. */
11578 #include <X11/Xlib.h>
11579 #include <X11/Xresource.h>
11581 main ()
11583 XIMProc callback;
11585 return 0;
11587 _ACEOF
11588 rm -f conftest.$ac_objext
11589 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11590 (eval $ac_compile) 2>conftest.er1
11591 ac_status=$?
11592 grep -v '^ *+' conftest.er1 >conftest.err
11593 rm -f conftest.er1
11594 cat conftest.err >&5
11595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11596 (exit $ac_status); } &&
11597 { ac_try='test -z "$ac_c_werror_flag"
11598 || test ! -s conftest.err'
11599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11600 (eval $ac_try) 2>&5
11601 ac_status=$?
11602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11603 (exit $ac_status); }; } &&
11604 { ac_try='test -s conftest.$ac_objext'
11605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11606 (eval $ac_try) 2>&5
11607 ac_status=$?
11608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11609 (exit $ac_status); }; }; then
11610 HAVE_XIM=yes
11612 cat >>confdefs.h <<\_ACEOF
11613 #define HAVE_XIM 1
11614 _ACEOF
11616 else
11617 echo "$as_me: failed program was:" >&5
11618 sed 's/^/| /' conftest.$ac_ext >&5
11620 HAVE_XIM=no
11622 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11625 if test "${with_xim}" != "no"; then
11627 cat >>confdefs.h <<\_ACEOF
11628 #define USE_XIM 1
11629 _ACEOF
11634 if test "${HAVE_XIM}" != "no"; then
11635 late_CFLAGS=$CFLAGS
11636 if test "$GCC" = yes; then
11637 CFLAGS="$CFLAGS --pedantic-errors"
11639 cat >conftest.$ac_ext <<_ACEOF
11640 /* confdefs.h. */
11641 _ACEOF
11642 cat confdefs.h >>conftest.$ac_ext
11643 cat >>conftest.$ac_ext <<_ACEOF
11644 /* end confdefs.h. */
11646 #include <X11/Xlib.h>
11647 #include <X11/Xresource.h>
11649 main ()
11651 Display *display;
11652 XrmDatabase db;
11653 char *res_name;
11654 char *res_class;
11655 XIMProc callback;
11656 XPointer *client_data;
11657 #ifndef __GNUC__
11658 /* If we're not using GCC, it's probably not XFree86, and this is
11659 probably right, but we can't use something like --pedantic-errors. */
11660 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
11661 char*, XIMProc, XPointer*);
11662 #endif
11663 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
11664 client_data);
11666 return 0;
11668 _ACEOF
11669 rm -f conftest.$ac_objext
11670 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11671 (eval $ac_compile) 2>conftest.er1
11672 ac_status=$?
11673 grep -v '^ *+' conftest.er1 >conftest.err
11674 rm -f conftest.er1
11675 cat conftest.err >&5
11676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11677 (exit $ac_status); } &&
11678 { ac_try='test -z "$ac_c_werror_flag"
11679 || test ! -s conftest.err'
11680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11681 (eval $ac_try) 2>&5
11682 ac_status=$?
11683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11684 (exit $ac_status); }; } &&
11685 { ac_try='test -s conftest.$ac_objext'
11686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11687 (eval $ac_try) 2>&5
11688 ac_status=$?
11689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11690 (exit $ac_status); }; }; then
11691 emacs_cv_arg6_star=yes
11692 else
11693 echo "$as_me: failed program was:" >&5
11694 sed 's/^/| /' conftest.$ac_ext >&5
11697 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11699 if test "$emacs_cv_arg6_star" = yes; then
11700 cat >>confdefs.h <<\_ACEOF
11701 #define XRegisterIMInstantiateCallback_arg6 XPointer*
11702 _ACEOF
11704 else
11705 cat >>confdefs.h <<\_ACEOF
11706 #define XRegisterIMInstantiateCallback_arg6 XPointer
11707 _ACEOF
11710 CFLAGS=$late_CFLAGS
11713 ### Use -lXpm if available, unless `--with-xpm=no'.
11714 HAVE_XPM=no
11715 if test "${HAVE_X11}" = "yes"; then
11716 if test "${with_xpm}" != "no"; then
11717 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
11718 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
11719 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
11720 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
11721 echo $ECHO_N "(cached) $ECHO_C" >&6
11723 echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
11724 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
11725 else
11726 # Is the header compilable?
11727 echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
11728 echo $ECHO_N "checking X11/xpm.h usability... $ECHO_C" >&6
11729 cat >conftest.$ac_ext <<_ACEOF
11730 /* confdefs.h. */
11731 _ACEOF
11732 cat confdefs.h >>conftest.$ac_ext
11733 cat >>conftest.$ac_ext <<_ACEOF
11734 /* end confdefs.h. */
11735 $ac_includes_default
11736 #include <X11/xpm.h>
11737 _ACEOF
11738 rm -f conftest.$ac_objext
11739 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11740 (eval $ac_compile) 2>conftest.er1
11741 ac_status=$?
11742 grep -v '^ *+' conftest.er1 >conftest.err
11743 rm -f conftest.er1
11744 cat conftest.err >&5
11745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11746 (exit $ac_status); } &&
11747 { ac_try='test -z "$ac_c_werror_flag"
11748 || test ! -s conftest.err'
11749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11750 (eval $ac_try) 2>&5
11751 ac_status=$?
11752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11753 (exit $ac_status); }; } &&
11754 { ac_try='test -s conftest.$ac_objext'
11755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11756 (eval $ac_try) 2>&5
11757 ac_status=$?
11758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11759 (exit $ac_status); }; }; then
11760 ac_header_compiler=yes
11761 else
11762 echo "$as_me: failed program was:" >&5
11763 sed 's/^/| /' conftest.$ac_ext >&5
11765 ac_header_compiler=no
11767 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11768 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11769 echo "${ECHO_T}$ac_header_compiler" >&6
11771 # Is the header present?
11772 echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
11773 echo $ECHO_N "checking X11/xpm.h presence... $ECHO_C" >&6
11774 cat >conftest.$ac_ext <<_ACEOF
11775 /* confdefs.h. */
11776 _ACEOF
11777 cat confdefs.h >>conftest.$ac_ext
11778 cat >>conftest.$ac_ext <<_ACEOF
11779 /* end confdefs.h. */
11780 #include <X11/xpm.h>
11781 _ACEOF
11782 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11783 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11784 ac_status=$?
11785 grep -v '^ *+' conftest.er1 >conftest.err
11786 rm -f conftest.er1
11787 cat conftest.err >&5
11788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11789 (exit $ac_status); } >/dev/null; then
11790 if test -s conftest.err; then
11791 ac_cpp_err=$ac_c_preproc_warn_flag
11792 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11793 else
11794 ac_cpp_err=
11796 else
11797 ac_cpp_err=yes
11799 if test -z "$ac_cpp_err"; then
11800 ac_header_preproc=yes
11801 else
11802 echo "$as_me: failed program was:" >&5
11803 sed 's/^/| /' conftest.$ac_ext >&5
11805 ac_header_preproc=no
11807 rm -f conftest.err conftest.$ac_ext
11808 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11809 echo "${ECHO_T}$ac_header_preproc" >&6
11811 # So? What about this header?
11812 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11813 yes:no: )
11814 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
11815 echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11816 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the compiler's result" >&5
11817 echo "$as_me: WARNING: X11/xpm.h: proceeding with the compiler's result" >&2;}
11818 ac_header_preproc=yes
11820 no:yes:* )
11821 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
11822 echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
11823 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5
11824 echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;}
11825 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: see the Autoconf documentation" >&5
11826 echo "$as_me: WARNING: X11/xpm.h: see the Autoconf documentation" >&2;}
11827 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&5
11828 echo "$as_me: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
11829 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
11830 echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
11831 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&5
11832 echo "$as_me: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&2;}
11834 cat <<\_ASBOX
11835 ## ------------------------------------------ ##
11836 ## Report this to the AC_PACKAGE_NAME lists. ##
11837 ## ------------------------------------------ ##
11838 _ASBOX
11840 sed "s/^/$as_me: WARNING: /" >&2
11842 esac
11843 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
11844 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
11845 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
11846 echo $ECHO_N "(cached) $ECHO_C" >&6
11847 else
11848 ac_cv_header_X11_xpm_h=$ac_header_preproc
11850 echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
11851 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
11854 if test $ac_cv_header_X11_xpm_h = yes; then
11855 echo "$as_me:$LINENO: checking for XpmReadFileToPixmap in -lXpm" >&5
11856 echo $ECHO_N "checking for XpmReadFileToPixmap in -lXpm... $ECHO_C" >&6
11857 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
11858 echo $ECHO_N "(cached) $ECHO_C" >&6
11859 else
11860 ac_check_lib_save_LIBS=$LIBS
11861 LIBS="-lXpm -lX11 $LIBS"
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. */
11869 /* Override any gcc2 internal prototype to avoid an error. */
11870 #ifdef __cplusplus
11871 extern "C"
11872 #endif
11873 /* We use char because int might match the return type of a gcc2
11874 builtin and then its argument prototype would still apply. */
11875 char XpmReadFileToPixmap ();
11877 main ()
11879 XpmReadFileToPixmap ();
11881 return 0;
11883 _ACEOF
11884 rm -f conftest.$ac_objext conftest$ac_exeext
11885 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11886 (eval $ac_link) 2>conftest.er1
11887 ac_status=$?
11888 grep -v '^ *+' conftest.er1 >conftest.err
11889 rm -f conftest.er1
11890 cat conftest.err >&5
11891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11892 (exit $ac_status); } &&
11893 { ac_try='test -z "$ac_c_werror_flag"
11894 || test ! -s conftest.err'
11895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11896 (eval $ac_try) 2>&5
11897 ac_status=$?
11898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11899 (exit $ac_status); }; } &&
11900 { ac_try='test -s conftest$ac_exeext'
11901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11902 (eval $ac_try) 2>&5
11903 ac_status=$?
11904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11905 (exit $ac_status); }; }; then
11906 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
11907 else
11908 echo "$as_me: failed program was:" >&5
11909 sed 's/^/| /' conftest.$ac_ext >&5
11911 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
11913 rm -f conftest.err conftest.$ac_objext \
11914 conftest$ac_exeext conftest.$ac_ext
11915 LIBS=$ac_check_lib_save_LIBS
11917 echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
11918 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6
11919 if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
11920 HAVE_XPM=yes
11926 if test "${HAVE_XPM}" = "yes"; then
11927 echo "$as_me:$LINENO: checking for XpmReturnAllocPixels preprocessor define" >&5
11928 echo $ECHO_N "checking for XpmReturnAllocPixels preprocessor define... $ECHO_C" >&6
11929 cat >conftest.$ac_ext <<_ACEOF
11930 /* confdefs.h. */
11931 _ACEOF
11932 cat confdefs.h >>conftest.$ac_ext
11933 cat >>conftest.$ac_ext <<_ACEOF
11934 /* end confdefs.h. */
11935 #include "X11/xpm.h"
11936 #ifndef XpmReturnAllocPixels
11937 no_return_alloc_pixels
11938 #endif
11940 _ACEOF
11941 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11942 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then
11943 HAVE_XPM=no
11944 else
11945 HAVE_XPM=yes
11947 rm -f conftest*
11950 if test "${HAVE_XPM}" = "yes"; then
11951 echo "$as_me:$LINENO: result: yes" >&5
11952 echo "${ECHO_T}yes" >&6
11953 else
11954 echo "$as_me:$LINENO: result: no" >&5
11955 echo "${ECHO_T}no" >&6
11960 if test "${HAVE_XPM}" = "yes"; then
11962 cat >>confdefs.h <<\_ACEOF
11963 #define HAVE_XPM 1
11964 _ACEOF
11969 ### Use -ljpeg if available, unless `--with-jpeg=no'.
11970 HAVE_JPEG=no
11971 if test "${HAVE_X11}" = "yes"; then
11972 if test "${with_jpeg}" != "no"; then
11973 if test "${ac_cv_header_jerror_h+set}" = set; then
11974 echo "$as_me:$LINENO: checking for jerror.h" >&5
11975 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6
11976 if test "${ac_cv_header_jerror_h+set}" = set; then
11977 echo $ECHO_N "(cached) $ECHO_C" >&6
11979 echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
11980 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6
11981 else
11982 # Is the header compilable?
11983 echo "$as_me:$LINENO: checking jerror.h usability" >&5
11984 echo $ECHO_N "checking jerror.h usability... $ECHO_C" >&6
11985 cat >conftest.$ac_ext <<_ACEOF
11986 /* confdefs.h. */
11987 _ACEOF
11988 cat confdefs.h >>conftest.$ac_ext
11989 cat >>conftest.$ac_ext <<_ACEOF
11990 /* end confdefs.h. */
11991 $ac_includes_default
11992 #include <jerror.h>
11993 _ACEOF
11994 rm -f conftest.$ac_objext
11995 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11996 (eval $ac_compile) 2>conftest.er1
11997 ac_status=$?
11998 grep -v '^ *+' conftest.er1 >conftest.err
11999 rm -f conftest.er1
12000 cat conftest.err >&5
12001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12002 (exit $ac_status); } &&
12003 { ac_try='test -z "$ac_c_werror_flag"
12004 || test ! -s conftest.err'
12005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12006 (eval $ac_try) 2>&5
12007 ac_status=$?
12008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12009 (exit $ac_status); }; } &&
12010 { ac_try='test -s conftest.$ac_objext'
12011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12012 (eval $ac_try) 2>&5
12013 ac_status=$?
12014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12015 (exit $ac_status); }; }; then
12016 ac_header_compiler=yes
12017 else
12018 echo "$as_me: failed program was:" >&5
12019 sed 's/^/| /' conftest.$ac_ext >&5
12021 ac_header_compiler=no
12023 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12024 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12025 echo "${ECHO_T}$ac_header_compiler" >&6
12027 # Is the header present?
12028 echo "$as_me:$LINENO: checking jerror.h presence" >&5
12029 echo $ECHO_N "checking jerror.h presence... $ECHO_C" >&6
12030 cat >conftest.$ac_ext <<_ACEOF
12031 /* confdefs.h. */
12032 _ACEOF
12033 cat confdefs.h >>conftest.$ac_ext
12034 cat >>conftest.$ac_ext <<_ACEOF
12035 /* end confdefs.h. */
12036 #include <jerror.h>
12037 _ACEOF
12038 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12039 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12040 ac_status=$?
12041 grep -v '^ *+' conftest.er1 >conftest.err
12042 rm -f conftest.er1
12043 cat conftest.err >&5
12044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12045 (exit $ac_status); } >/dev/null; then
12046 if test -s conftest.err; then
12047 ac_cpp_err=$ac_c_preproc_warn_flag
12048 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12049 else
12050 ac_cpp_err=
12052 else
12053 ac_cpp_err=yes
12055 if test -z "$ac_cpp_err"; then
12056 ac_header_preproc=yes
12057 else
12058 echo "$as_me: failed program was:" >&5
12059 sed 's/^/| /' conftest.$ac_ext >&5
12061 ac_header_preproc=no
12063 rm -f conftest.err conftest.$ac_ext
12064 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12065 echo "${ECHO_T}$ac_header_preproc" >&6
12067 # So? What about this header?
12068 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12069 yes:no: )
12070 { echo "$as_me:$LINENO: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&5
12071 echo "$as_me: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12072 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the compiler's result" >&5
12073 echo "$as_me: WARNING: jerror.h: proceeding with the compiler's result" >&2;}
12074 ac_header_preproc=yes
12076 no:yes:* )
12077 { echo "$as_me:$LINENO: WARNING: jerror.h: present but cannot be compiled" >&5
12078 echo "$as_me: WARNING: jerror.h: present but cannot be compiled" >&2;}
12079 { echo "$as_me:$LINENO: WARNING: jerror.h: check for missing prerequisite headers?" >&5
12080 echo "$as_me: WARNING: jerror.h: check for missing prerequisite headers?" >&2;}
12081 { echo "$as_me:$LINENO: WARNING: jerror.h: see the Autoconf documentation" >&5
12082 echo "$as_me: WARNING: jerror.h: see the Autoconf documentation" >&2;}
12083 { echo "$as_me:$LINENO: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&5
12084 echo "$as_me: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&2;}
12085 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result" >&5
12086 echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result" >&2;}
12087 { echo "$as_me:$LINENO: WARNING: jerror.h: in the future, the compiler will take precedence" >&5
12088 echo "$as_me: WARNING: jerror.h: in the future, the compiler will take precedence" >&2;}
12090 cat <<\_ASBOX
12091 ## ------------------------------------------ ##
12092 ## Report this to the AC_PACKAGE_NAME lists. ##
12093 ## ------------------------------------------ ##
12094 _ASBOX
12096 sed "s/^/$as_me: WARNING: /" >&2
12098 esac
12099 echo "$as_me:$LINENO: checking for jerror.h" >&5
12100 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6
12101 if test "${ac_cv_header_jerror_h+set}" = set; then
12102 echo $ECHO_N "(cached) $ECHO_C" >&6
12103 else
12104 ac_cv_header_jerror_h=$ac_header_preproc
12106 echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
12107 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6
12110 if test $ac_cv_header_jerror_h = yes; then
12111 echo "$as_me:$LINENO: checking for jpeg_destroy_compress in -ljpeg" >&5
12112 echo $ECHO_N "checking for jpeg_destroy_compress in -ljpeg... $ECHO_C" >&6
12113 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
12114 echo $ECHO_N "(cached) $ECHO_C" >&6
12115 else
12116 ac_check_lib_save_LIBS=$LIBS
12117 LIBS="-ljpeg $LIBS"
12118 cat >conftest.$ac_ext <<_ACEOF
12119 /* confdefs.h. */
12120 _ACEOF
12121 cat confdefs.h >>conftest.$ac_ext
12122 cat >>conftest.$ac_ext <<_ACEOF
12123 /* end confdefs.h. */
12125 /* Override any gcc2 internal prototype to avoid an error. */
12126 #ifdef __cplusplus
12127 extern "C"
12128 #endif
12129 /* We use char because int might match the return type of a gcc2
12130 builtin and then its argument prototype would still apply. */
12131 char jpeg_destroy_compress ();
12133 main ()
12135 jpeg_destroy_compress ();
12137 return 0;
12139 _ACEOF
12140 rm -f conftest.$ac_objext conftest$ac_exeext
12141 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12142 (eval $ac_link) 2>conftest.er1
12143 ac_status=$?
12144 grep -v '^ *+' conftest.er1 >conftest.err
12145 rm -f conftest.er1
12146 cat conftest.err >&5
12147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12148 (exit $ac_status); } &&
12149 { ac_try='test -z "$ac_c_werror_flag"
12150 || test ! -s conftest.err'
12151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12152 (eval $ac_try) 2>&5
12153 ac_status=$?
12154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12155 (exit $ac_status); }; } &&
12156 { ac_try='test -s conftest$ac_exeext'
12157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12158 (eval $ac_try) 2>&5
12159 ac_status=$?
12160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12161 (exit $ac_status); }; }; then
12162 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
12163 else
12164 echo "$as_me: failed program was:" >&5
12165 sed 's/^/| /' conftest.$ac_ext >&5
12167 ac_cv_lib_jpeg_jpeg_destroy_compress=no
12169 rm -f conftest.err conftest.$ac_objext \
12170 conftest$ac_exeext conftest.$ac_ext
12171 LIBS=$ac_check_lib_save_LIBS
12173 echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
12174 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6
12175 if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then
12176 HAVE_JPEG=yes
12185 if test "${HAVE_JPEG}" = "yes"; then
12186 cat >>confdefs.h <<\_ACEOF
12187 #define HAVE_JPEG 1
12188 _ACEOF
12190 cat >conftest.$ac_ext <<_ACEOF
12191 /* confdefs.h. */
12192 _ACEOF
12193 cat confdefs.h >>conftest.$ac_ext
12194 cat >>conftest.$ac_ext <<_ACEOF
12195 /* end confdefs.h. */
12196 #include <jpeglib.h>
12197 version=JPEG_LIB_VERSION
12199 _ACEOF
12200 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12201 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then
12202 cat >>confdefs.h <<\_ACEOF
12203 #define HAVE_JPEG 1
12204 _ACEOF
12206 else
12207 { echo "$as_me:$LINENO: WARNING: libjpeg found, but not version 6b or later" >&5
12208 echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
12209 HAVE_JPEG=no
12211 rm -f conftest*
12216 ### Use -lpng if available, unless `--with-png=no'.
12217 HAVE_PNG=no
12218 if test "${HAVE_X11}" = "yes"; then
12219 if test "${with_png}" != "no"; then
12220 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
12221 # in /usr/include/libpng.
12224 for ac_header in png.h libpng/png.h
12226 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12227 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12228 echo "$as_me:$LINENO: checking for $ac_header" >&5
12229 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12230 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12231 echo $ECHO_N "(cached) $ECHO_C" >&6
12233 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12234 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12235 else
12236 # Is the header compilable?
12237 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12238 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12239 cat >conftest.$ac_ext <<_ACEOF
12240 /* confdefs.h. */
12241 _ACEOF
12242 cat confdefs.h >>conftest.$ac_ext
12243 cat >>conftest.$ac_ext <<_ACEOF
12244 /* end confdefs.h. */
12245 $ac_includes_default
12246 #include <$ac_header>
12247 _ACEOF
12248 rm -f conftest.$ac_objext
12249 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12250 (eval $ac_compile) 2>conftest.er1
12251 ac_status=$?
12252 grep -v '^ *+' conftest.er1 >conftest.err
12253 rm -f conftest.er1
12254 cat conftest.err >&5
12255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12256 (exit $ac_status); } &&
12257 { ac_try='test -z "$ac_c_werror_flag"
12258 || test ! -s conftest.err'
12259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12260 (eval $ac_try) 2>&5
12261 ac_status=$?
12262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12263 (exit $ac_status); }; } &&
12264 { ac_try='test -s conftest.$ac_objext'
12265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12266 (eval $ac_try) 2>&5
12267 ac_status=$?
12268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12269 (exit $ac_status); }; }; then
12270 ac_header_compiler=yes
12271 else
12272 echo "$as_me: failed program was:" >&5
12273 sed 's/^/| /' conftest.$ac_ext >&5
12275 ac_header_compiler=no
12277 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12278 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12279 echo "${ECHO_T}$ac_header_compiler" >&6
12281 # Is the header present?
12282 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12283 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12284 cat >conftest.$ac_ext <<_ACEOF
12285 /* confdefs.h. */
12286 _ACEOF
12287 cat confdefs.h >>conftest.$ac_ext
12288 cat >>conftest.$ac_ext <<_ACEOF
12289 /* end confdefs.h. */
12290 #include <$ac_header>
12291 _ACEOF
12292 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12293 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12294 ac_status=$?
12295 grep -v '^ *+' conftest.er1 >conftest.err
12296 rm -f conftest.er1
12297 cat conftest.err >&5
12298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12299 (exit $ac_status); } >/dev/null; then
12300 if test -s conftest.err; then
12301 ac_cpp_err=$ac_c_preproc_warn_flag
12302 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12303 else
12304 ac_cpp_err=
12306 else
12307 ac_cpp_err=yes
12309 if test -z "$ac_cpp_err"; then
12310 ac_header_preproc=yes
12311 else
12312 echo "$as_me: failed program was:" >&5
12313 sed 's/^/| /' conftest.$ac_ext >&5
12315 ac_header_preproc=no
12317 rm -f conftest.err conftest.$ac_ext
12318 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12319 echo "${ECHO_T}$ac_header_preproc" >&6
12321 # So? What about this header?
12322 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12323 yes:no: )
12324 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12325 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12326 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12327 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12328 ac_header_preproc=yes
12330 no:yes:* )
12331 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12332 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12333 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12334 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12335 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12336 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12337 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12338 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12339 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12340 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12341 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12342 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12344 cat <<\_ASBOX
12345 ## ------------------------------------------ ##
12346 ## Report this to the AC_PACKAGE_NAME lists. ##
12347 ## ------------------------------------------ ##
12348 _ASBOX
12350 sed "s/^/$as_me: WARNING: /" >&2
12352 esac
12353 echo "$as_me:$LINENO: checking for $ac_header" >&5
12354 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12355 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12356 echo $ECHO_N "(cached) $ECHO_C" >&6
12357 else
12358 eval "$as_ac_Header=\$ac_header_preproc"
12360 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12361 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12364 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12365 cat >>confdefs.h <<_ACEOF
12366 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12367 _ACEOF
12371 done
12373 if test "$ac_cv_header_png_h" = yes || test "$ac_cv_header_libpng_png_h" = yes ; then
12374 echo "$as_me:$LINENO: checking for png_get_channels in -lpng" >&5
12375 echo $ECHO_N "checking for png_get_channels in -lpng... $ECHO_C" >&6
12376 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then
12377 echo $ECHO_N "(cached) $ECHO_C" >&6
12378 else
12379 ac_check_lib_save_LIBS=$LIBS
12380 LIBS="-lpng -lz -lm $LIBS"
12381 cat >conftest.$ac_ext <<_ACEOF
12382 /* confdefs.h. */
12383 _ACEOF
12384 cat confdefs.h >>conftest.$ac_ext
12385 cat >>conftest.$ac_ext <<_ACEOF
12386 /* end confdefs.h. */
12388 /* Override any gcc2 internal prototype to avoid an error. */
12389 #ifdef __cplusplus
12390 extern "C"
12391 #endif
12392 /* We use char because int might match the return type of a gcc2
12393 builtin and then its argument prototype would still apply. */
12394 char png_get_channels ();
12396 main ()
12398 png_get_channels ();
12400 return 0;
12402 _ACEOF
12403 rm -f conftest.$ac_objext conftest$ac_exeext
12404 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12405 (eval $ac_link) 2>conftest.er1
12406 ac_status=$?
12407 grep -v '^ *+' conftest.er1 >conftest.err
12408 rm -f conftest.er1
12409 cat conftest.err >&5
12410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12411 (exit $ac_status); } &&
12412 { ac_try='test -z "$ac_c_werror_flag"
12413 || test ! -s conftest.err'
12414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12415 (eval $ac_try) 2>&5
12416 ac_status=$?
12417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12418 (exit $ac_status); }; } &&
12419 { ac_try='test -s conftest$ac_exeext'
12420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12421 (eval $ac_try) 2>&5
12422 ac_status=$?
12423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12424 (exit $ac_status); }; }; then
12425 ac_cv_lib_png_png_get_channels=yes
12426 else
12427 echo "$as_me: failed program was:" >&5
12428 sed 's/^/| /' conftest.$ac_ext >&5
12430 ac_cv_lib_png_png_get_channels=no
12432 rm -f conftest.err conftest.$ac_objext \
12433 conftest$ac_exeext conftest.$ac_ext
12434 LIBS=$ac_check_lib_save_LIBS
12436 echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_get_channels" >&5
12437 echo "${ECHO_T}$ac_cv_lib_png_png_get_channels" >&6
12438 if test $ac_cv_lib_png_png_get_channels = yes; then
12439 HAVE_PNG=yes
12445 if test "${HAVE_PNG}" = "yes"; then
12447 cat >>confdefs.h <<\_ACEOF
12448 #define HAVE_PNG 1
12449 _ACEOF
12454 ### Use -ltiff if available, unless `--with-tiff=no'.
12455 HAVE_TIFF=no
12456 if test "${HAVE_X11}" = "yes"; then
12457 if test "${with_tiff}" != "no"; then
12458 if test "${ac_cv_header_tiffio_h+set}" = set; then
12459 echo "$as_me:$LINENO: checking for tiffio.h" >&5
12460 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
12461 if test "${ac_cv_header_tiffio_h+set}" = set; then
12462 echo $ECHO_N "(cached) $ECHO_C" >&6
12464 echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
12465 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
12466 else
12467 # Is the header compilable?
12468 echo "$as_me:$LINENO: checking tiffio.h usability" >&5
12469 echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6
12470 cat >conftest.$ac_ext <<_ACEOF
12471 /* confdefs.h. */
12472 _ACEOF
12473 cat confdefs.h >>conftest.$ac_ext
12474 cat >>conftest.$ac_ext <<_ACEOF
12475 /* end confdefs.h. */
12476 $ac_includes_default
12477 #include <tiffio.h>
12478 _ACEOF
12479 rm -f conftest.$ac_objext
12480 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12481 (eval $ac_compile) 2>conftest.er1
12482 ac_status=$?
12483 grep -v '^ *+' conftest.er1 >conftest.err
12484 rm -f conftest.er1
12485 cat conftest.err >&5
12486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12487 (exit $ac_status); } &&
12488 { ac_try='test -z "$ac_c_werror_flag"
12489 || test ! -s conftest.err'
12490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12491 (eval $ac_try) 2>&5
12492 ac_status=$?
12493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12494 (exit $ac_status); }; } &&
12495 { ac_try='test -s conftest.$ac_objext'
12496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12497 (eval $ac_try) 2>&5
12498 ac_status=$?
12499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12500 (exit $ac_status); }; }; then
12501 ac_header_compiler=yes
12502 else
12503 echo "$as_me: failed program was:" >&5
12504 sed 's/^/| /' conftest.$ac_ext >&5
12506 ac_header_compiler=no
12508 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12509 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12510 echo "${ECHO_T}$ac_header_compiler" >&6
12512 # Is the header present?
12513 echo "$as_me:$LINENO: checking tiffio.h presence" >&5
12514 echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6
12515 cat >conftest.$ac_ext <<_ACEOF
12516 /* confdefs.h. */
12517 _ACEOF
12518 cat confdefs.h >>conftest.$ac_ext
12519 cat >>conftest.$ac_ext <<_ACEOF
12520 /* end confdefs.h. */
12521 #include <tiffio.h>
12522 _ACEOF
12523 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12524 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12525 ac_status=$?
12526 grep -v '^ *+' conftest.er1 >conftest.err
12527 rm -f conftest.er1
12528 cat conftest.err >&5
12529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12530 (exit $ac_status); } >/dev/null; then
12531 if test -s conftest.err; then
12532 ac_cpp_err=$ac_c_preproc_warn_flag
12533 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12534 else
12535 ac_cpp_err=
12537 else
12538 ac_cpp_err=yes
12540 if test -z "$ac_cpp_err"; then
12541 ac_header_preproc=yes
12542 else
12543 echo "$as_me: failed program was:" >&5
12544 sed 's/^/| /' conftest.$ac_ext >&5
12546 ac_header_preproc=no
12548 rm -f conftest.err conftest.$ac_ext
12549 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12550 echo "${ECHO_T}$ac_header_preproc" >&6
12552 # So? What about this header?
12553 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12554 yes:no: )
12555 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
12556 echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12557 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
12558 echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
12559 ac_header_preproc=yes
12561 no:yes:* )
12562 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
12563 echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
12564 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
12565 echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
12566 { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
12567 echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
12568 { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
12569 echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
12570 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
12571 echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
12572 { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
12573 echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
12575 cat <<\_ASBOX
12576 ## ------------------------------------------ ##
12577 ## Report this to the AC_PACKAGE_NAME lists. ##
12578 ## ------------------------------------------ ##
12579 _ASBOX
12581 sed "s/^/$as_me: WARNING: /" >&2
12583 esac
12584 echo "$as_me:$LINENO: checking for tiffio.h" >&5
12585 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
12586 if test "${ac_cv_header_tiffio_h+set}" = set; then
12587 echo $ECHO_N "(cached) $ECHO_C" >&6
12588 else
12589 ac_cv_header_tiffio_h=$ac_header_preproc
12591 echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
12592 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
12595 if test $ac_cv_header_tiffio_h = yes; then
12596 tifflibs="-lz -lm"
12597 # At least one tiff package requires the jpeg library.
12598 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
12599 echo "$as_me:$LINENO: checking for TIFFGetVersion in -ltiff" >&5
12600 echo $ECHO_N "checking for TIFFGetVersion in -ltiff... $ECHO_C" >&6
12601 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
12602 echo $ECHO_N "(cached) $ECHO_C" >&6
12603 else
12604 ac_check_lib_save_LIBS=$LIBS
12605 LIBS="-ltiff $tifflibs $LIBS"
12606 cat >conftest.$ac_ext <<_ACEOF
12607 /* confdefs.h. */
12608 _ACEOF
12609 cat confdefs.h >>conftest.$ac_ext
12610 cat >>conftest.$ac_ext <<_ACEOF
12611 /* end confdefs.h. */
12613 /* Override any gcc2 internal prototype to avoid an error. */
12614 #ifdef __cplusplus
12615 extern "C"
12616 #endif
12617 /* We use char because int might match the return type of a gcc2
12618 builtin and then its argument prototype would still apply. */
12619 char TIFFGetVersion ();
12621 main ()
12623 TIFFGetVersion ();
12625 return 0;
12627 _ACEOF
12628 rm -f conftest.$ac_objext conftest$ac_exeext
12629 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12630 (eval $ac_link) 2>conftest.er1
12631 ac_status=$?
12632 grep -v '^ *+' conftest.er1 >conftest.err
12633 rm -f conftest.er1
12634 cat conftest.err >&5
12635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12636 (exit $ac_status); } &&
12637 { ac_try='test -z "$ac_c_werror_flag"
12638 || test ! -s conftest.err'
12639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12640 (eval $ac_try) 2>&5
12641 ac_status=$?
12642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12643 (exit $ac_status); }; } &&
12644 { ac_try='test -s conftest$ac_exeext'
12645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12646 (eval $ac_try) 2>&5
12647 ac_status=$?
12648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12649 (exit $ac_status); }; }; then
12650 ac_cv_lib_tiff_TIFFGetVersion=yes
12651 else
12652 echo "$as_me: failed program was:" >&5
12653 sed 's/^/| /' conftest.$ac_ext >&5
12655 ac_cv_lib_tiff_TIFFGetVersion=no
12657 rm -f conftest.err conftest.$ac_objext \
12658 conftest$ac_exeext conftest.$ac_ext
12659 LIBS=$ac_check_lib_save_LIBS
12661 echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
12662 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFGetVersion" >&6
12663 if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then
12664 HAVE_TIFF=yes
12672 if test "${HAVE_TIFF}" = "yes"; then
12674 cat >>confdefs.h <<\_ACEOF
12675 #define HAVE_TIFF 1
12676 _ACEOF
12681 ### Use -lgif if available, unless `--with-gif=no'.
12682 HAVE_GIF=no
12683 if test "${HAVE_X11}" = "yes"; then
12684 if test "${with_gif}" != "no"; then
12685 if test "${ac_cv_header_gif_lib_h+set}" = set; then
12686 echo "$as_me:$LINENO: checking for gif_lib.h" >&5
12687 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6
12688 if test "${ac_cv_header_gif_lib_h+set}" = set; then
12689 echo $ECHO_N "(cached) $ECHO_C" >&6
12691 echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
12692 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6
12693 else
12694 # Is the header compilable?
12695 echo "$as_me:$LINENO: checking gif_lib.h usability" >&5
12696 echo $ECHO_N "checking gif_lib.h usability... $ECHO_C" >&6
12697 cat >conftest.$ac_ext <<_ACEOF
12698 /* confdefs.h. */
12699 _ACEOF
12700 cat confdefs.h >>conftest.$ac_ext
12701 cat >>conftest.$ac_ext <<_ACEOF
12702 /* end confdefs.h. */
12703 $ac_includes_default
12704 #include <gif_lib.h>
12705 _ACEOF
12706 rm -f conftest.$ac_objext
12707 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12708 (eval $ac_compile) 2>conftest.er1
12709 ac_status=$?
12710 grep -v '^ *+' conftest.er1 >conftest.err
12711 rm -f conftest.er1
12712 cat conftest.err >&5
12713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12714 (exit $ac_status); } &&
12715 { ac_try='test -z "$ac_c_werror_flag"
12716 || test ! -s conftest.err'
12717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12718 (eval $ac_try) 2>&5
12719 ac_status=$?
12720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12721 (exit $ac_status); }; } &&
12722 { ac_try='test -s conftest.$ac_objext'
12723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12724 (eval $ac_try) 2>&5
12725 ac_status=$?
12726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12727 (exit $ac_status); }; }; then
12728 ac_header_compiler=yes
12729 else
12730 echo "$as_me: failed program was:" >&5
12731 sed 's/^/| /' conftest.$ac_ext >&5
12733 ac_header_compiler=no
12735 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12736 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12737 echo "${ECHO_T}$ac_header_compiler" >&6
12739 # Is the header present?
12740 echo "$as_me:$LINENO: checking gif_lib.h presence" >&5
12741 echo $ECHO_N "checking gif_lib.h presence... $ECHO_C" >&6
12742 cat >conftest.$ac_ext <<_ACEOF
12743 /* confdefs.h. */
12744 _ACEOF
12745 cat confdefs.h >>conftest.$ac_ext
12746 cat >>conftest.$ac_ext <<_ACEOF
12747 /* end confdefs.h. */
12748 #include <gif_lib.h>
12749 _ACEOF
12750 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12751 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12752 ac_status=$?
12753 grep -v '^ *+' conftest.er1 >conftest.err
12754 rm -f conftest.er1
12755 cat conftest.err >&5
12756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12757 (exit $ac_status); } >/dev/null; then
12758 if test -s conftest.err; then
12759 ac_cpp_err=$ac_c_preproc_warn_flag
12760 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12761 else
12762 ac_cpp_err=
12764 else
12765 ac_cpp_err=yes
12767 if test -z "$ac_cpp_err"; then
12768 ac_header_preproc=yes
12769 else
12770 echo "$as_me: failed program was:" >&5
12771 sed 's/^/| /' conftest.$ac_ext >&5
12773 ac_header_preproc=no
12775 rm -f conftest.err conftest.$ac_ext
12776 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12777 echo "${ECHO_T}$ac_header_preproc" >&6
12779 # So? What about this header?
12780 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12781 yes:no: )
12782 { echo "$as_me:$LINENO: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&5
12783 echo "$as_me: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12784 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the compiler's result" >&5
12785 echo "$as_me: WARNING: gif_lib.h: proceeding with the compiler's result" >&2;}
12786 ac_header_preproc=yes
12788 no:yes:* )
12789 { echo "$as_me:$LINENO: WARNING: gif_lib.h: present but cannot be compiled" >&5
12790 echo "$as_me: WARNING: gif_lib.h: present but cannot be compiled" >&2;}
12791 { echo "$as_me:$LINENO: WARNING: gif_lib.h: check for missing prerequisite headers?" >&5
12792 echo "$as_me: WARNING: gif_lib.h: check for missing prerequisite headers?" >&2;}
12793 { echo "$as_me:$LINENO: WARNING: gif_lib.h: see the Autoconf documentation" >&5
12794 echo "$as_me: WARNING: gif_lib.h: see the Autoconf documentation" >&2;}
12795 { echo "$as_me:$LINENO: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&5
12796 echo "$as_me: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&2;}
12797 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5
12798 echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;}
12799 { echo "$as_me:$LINENO: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&5
12800 echo "$as_me: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&2;}
12802 cat <<\_ASBOX
12803 ## ------------------------------------------ ##
12804 ## Report this to the AC_PACKAGE_NAME lists. ##
12805 ## ------------------------------------------ ##
12806 _ASBOX
12808 sed "s/^/$as_me: WARNING: /" >&2
12810 esac
12811 echo "$as_me:$LINENO: checking for gif_lib.h" >&5
12812 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6
12813 if test "${ac_cv_header_gif_lib_h+set}" = set; then
12814 echo $ECHO_N "(cached) $ECHO_C" >&6
12815 else
12816 ac_cv_header_gif_lib_h=$ac_header_preproc
12818 echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
12819 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6
12822 if test $ac_cv_header_gif_lib_h = yes; then
12823 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
12824 # Earlier versions can crash Emacs.
12825 echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lungif" >&5
12826 echo $ECHO_N "checking for EGifPutExtensionLast in -lungif... $ECHO_C" >&6
12827 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then
12828 echo $ECHO_N "(cached) $ECHO_C" >&6
12829 else
12830 ac_check_lib_save_LIBS=$LIBS
12831 LIBS="-lungif $LIBS"
12832 cat >conftest.$ac_ext <<_ACEOF
12833 /* confdefs.h. */
12834 _ACEOF
12835 cat confdefs.h >>conftest.$ac_ext
12836 cat >>conftest.$ac_ext <<_ACEOF
12837 /* end confdefs.h. */
12839 /* Override any gcc2 internal prototype to avoid an error. */
12840 #ifdef __cplusplus
12841 extern "C"
12842 #endif
12843 /* We use char because int might match the return type of a gcc2
12844 builtin and then its argument prototype would still apply. */
12845 char EGifPutExtensionLast ();
12847 main ()
12849 EGifPutExtensionLast ();
12851 return 0;
12853 _ACEOF
12854 rm -f conftest.$ac_objext conftest$ac_exeext
12855 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12856 (eval $ac_link) 2>conftest.er1
12857 ac_status=$?
12858 grep -v '^ *+' conftest.er1 >conftest.err
12859 rm -f conftest.er1
12860 cat conftest.err >&5
12861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12862 (exit $ac_status); } &&
12863 { ac_try='test -z "$ac_c_werror_flag"
12864 || test ! -s conftest.err'
12865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12866 (eval $ac_try) 2>&5
12867 ac_status=$?
12868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12869 (exit $ac_status); }; } &&
12870 { ac_try='test -s conftest$ac_exeext'
12871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12872 (eval $ac_try) 2>&5
12873 ac_status=$?
12874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12875 (exit $ac_status); }; }; then
12876 ac_cv_lib_ungif_EGifPutExtensionLast=yes
12877 else
12878 echo "$as_me: failed program was:" >&5
12879 sed 's/^/| /' conftest.$ac_ext >&5
12881 ac_cv_lib_ungif_EGifPutExtensionLast=no
12883 rm -f conftest.err conftest.$ac_objext \
12884 conftest$ac_exeext conftest.$ac_ext
12885 LIBS=$ac_check_lib_save_LIBS
12887 echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
12888 echo "${ECHO_T}$ac_cv_lib_ungif_EGifPutExtensionLast" >&6
12889 if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then
12890 HAVE_GIF=yes
12898 if test "${HAVE_GIF}" = "yes"; then
12900 cat >>confdefs.h <<\_ACEOF
12901 #define HAVE_GIF 1
12902 _ACEOF
12907 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
12908 echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
12909 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6
12910 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
12911 echo $ECHO_N "(cached) $ECHO_C" >&6
12913 echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
12914 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6
12915 else
12916 # Is the header compilable?
12917 echo "$as_me:$LINENO: checking malloc/malloc.h usability" >&5
12918 echo $ECHO_N "checking malloc/malloc.h usability... $ECHO_C" >&6
12919 cat >conftest.$ac_ext <<_ACEOF
12920 /* confdefs.h. */
12921 _ACEOF
12922 cat confdefs.h >>conftest.$ac_ext
12923 cat >>conftest.$ac_ext <<_ACEOF
12924 /* end confdefs.h. */
12925 $ac_includes_default
12926 #include <malloc/malloc.h>
12927 _ACEOF
12928 rm -f conftest.$ac_objext
12929 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12930 (eval $ac_compile) 2>conftest.er1
12931 ac_status=$?
12932 grep -v '^ *+' conftest.er1 >conftest.err
12933 rm -f conftest.er1
12934 cat conftest.err >&5
12935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12936 (exit $ac_status); } &&
12937 { ac_try='test -z "$ac_c_werror_flag"
12938 || test ! -s conftest.err'
12939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12940 (eval $ac_try) 2>&5
12941 ac_status=$?
12942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12943 (exit $ac_status); }; } &&
12944 { ac_try='test -s conftest.$ac_objext'
12945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12946 (eval $ac_try) 2>&5
12947 ac_status=$?
12948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12949 (exit $ac_status); }; }; then
12950 ac_header_compiler=yes
12951 else
12952 echo "$as_me: failed program was:" >&5
12953 sed 's/^/| /' conftest.$ac_ext >&5
12955 ac_header_compiler=no
12957 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12958 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12959 echo "${ECHO_T}$ac_header_compiler" >&6
12961 # Is the header present?
12962 echo "$as_me:$LINENO: checking malloc/malloc.h presence" >&5
12963 echo $ECHO_N "checking malloc/malloc.h presence... $ECHO_C" >&6
12964 cat >conftest.$ac_ext <<_ACEOF
12965 /* confdefs.h. */
12966 _ACEOF
12967 cat confdefs.h >>conftest.$ac_ext
12968 cat >>conftest.$ac_ext <<_ACEOF
12969 /* end confdefs.h. */
12970 #include <malloc/malloc.h>
12971 _ACEOF
12972 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12973 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12974 ac_status=$?
12975 grep -v '^ *+' conftest.er1 >conftest.err
12976 rm -f conftest.er1
12977 cat conftest.err >&5
12978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12979 (exit $ac_status); } >/dev/null; then
12980 if test -s conftest.err; then
12981 ac_cpp_err=$ac_c_preproc_warn_flag
12982 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12983 else
12984 ac_cpp_err=
12986 else
12987 ac_cpp_err=yes
12989 if test -z "$ac_cpp_err"; then
12990 ac_header_preproc=yes
12991 else
12992 echo "$as_me: failed program was:" >&5
12993 sed 's/^/| /' conftest.$ac_ext >&5
12995 ac_header_preproc=no
12997 rm -f conftest.err conftest.$ac_ext
12998 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12999 echo "${ECHO_T}$ac_header_preproc" >&6
13001 # So? What about this header?
13002 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13003 yes:no: )
13004 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&5
13005 echo "$as_me: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13006 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&5
13007 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&2;}
13008 ac_header_preproc=yes
13010 no:yes:* )
13011 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: present but cannot be compiled" >&5
13012 echo "$as_me: WARNING: malloc/malloc.h: present but cannot be compiled" >&2;}
13013 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&5
13014 echo "$as_me: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&2;}
13015 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: see the Autoconf documentation" >&5
13016 echo "$as_me: WARNING: malloc/malloc.h: see the Autoconf documentation" >&2;}
13017 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&5
13018 echo "$as_me: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&2;}
13019 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&5
13020 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&2;}
13021 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&5
13022 echo "$as_me: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&2;}
13024 cat <<\_ASBOX
13025 ## ------------------------------------------ ##
13026 ## Report this to the AC_PACKAGE_NAME lists. ##
13027 ## ------------------------------------------ ##
13028 _ASBOX
13030 sed "s/^/$as_me: WARNING: /" >&2
13032 esac
13033 echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
13034 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6
13035 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
13036 echo $ECHO_N "(cached) $ECHO_C" >&6
13037 else
13038 ac_cv_header_malloc_malloc_h=$ac_header_preproc
13040 echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
13041 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6
13044 if test $ac_cv_header_malloc_malloc_h = yes; then
13046 cat >>confdefs.h <<\_ACEOF
13047 #define HAVE_MALLOC_MALLOC_H 1
13048 _ACEOF
13054 ### Use Mac OS X Carbon API to implement GUI.
13055 if test "${HAVE_CARBON}" = "yes"; then
13057 cat >>confdefs.h <<\_ACEOF
13058 #define HAVE_CARBON 1
13059 _ACEOF
13061 ## Specify the install directory
13062 carbon_appdir=
13063 if test "${carbon_appdir_x}" != ""; then
13064 case ${carbon_appdir_x} in
13065 y | ye | yes) carbon_appdir=/Applications ;;
13066 * ) carbon_appdir=${carbon_appdir_x} ;;
13067 esac
13069 # We also have mouse menus.
13070 HAVE_MENUS=yes
13072 tmp_CFLAGS="$CFLAGS"
13073 CFLAGS="$CFLAGS -framework Carbon"
13074 echo "$as_me:$LINENO: checking for CancelMenuTracking" >&5
13075 echo $ECHO_N "checking for CancelMenuTracking... $ECHO_C" >&6
13076 if test "${ac_cv_func_CancelMenuTracking+set}" = set; then
13077 echo $ECHO_N "(cached) $ECHO_C" >&6
13078 else
13079 cat >conftest.$ac_ext <<_ACEOF
13080 /* confdefs.h. */
13081 _ACEOF
13082 cat confdefs.h >>conftest.$ac_ext
13083 cat >>conftest.$ac_ext <<_ACEOF
13084 /* end confdefs.h. */
13085 /* Define CancelMenuTracking to an innocuous variant, in case <limits.h> declares CancelMenuTracking.
13086 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13087 #define CancelMenuTracking innocuous_CancelMenuTracking
13089 /* System header to define __stub macros and hopefully few prototypes,
13090 which can conflict with char CancelMenuTracking (); below.
13091 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13092 <limits.h> exists even on freestanding compilers. */
13094 #ifdef __STDC__
13095 # include <limits.h>
13096 #else
13097 # include <assert.h>
13098 #endif
13100 #undef CancelMenuTracking
13102 /* Override any gcc2 internal prototype to avoid an error. */
13103 #ifdef __cplusplus
13104 extern "C"
13106 #endif
13107 /* We use char because int might match the return type of a gcc2
13108 builtin and then its argument prototype would still apply. */
13109 char CancelMenuTracking ();
13110 /* The GNU C library defines this for functions which it implements
13111 to always fail with ENOSYS. Some functions are actually named
13112 something starting with __ and the normal name is an alias. */
13113 #if defined (__stub_CancelMenuTracking) || defined (__stub___CancelMenuTracking)
13114 choke me
13115 #else
13116 char (*f) () = CancelMenuTracking;
13117 #endif
13118 #ifdef __cplusplus
13120 #endif
13123 main ()
13125 return f != CancelMenuTracking;
13127 return 0;
13129 _ACEOF
13130 rm -f conftest.$ac_objext conftest$ac_exeext
13131 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13132 (eval $ac_link) 2>conftest.er1
13133 ac_status=$?
13134 grep -v '^ *+' conftest.er1 >conftest.err
13135 rm -f conftest.er1
13136 cat conftest.err >&5
13137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13138 (exit $ac_status); } &&
13139 { ac_try='test -z "$ac_c_werror_flag"
13140 || test ! -s conftest.err'
13141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13142 (eval $ac_try) 2>&5
13143 ac_status=$?
13144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13145 (exit $ac_status); }; } &&
13146 { ac_try='test -s conftest$ac_exeext'
13147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13148 (eval $ac_try) 2>&5
13149 ac_status=$?
13150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13151 (exit $ac_status); }; }; then
13152 ac_cv_func_CancelMenuTracking=yes
13153 else
13154 echo "$as_me: failed program was:" >&5
13155 sed 's/^/| /' conftest.$ac_ext >&5
13157 ac_cv_func_CancelMenuTracking=no
13159 rm -f conftest.err conftest.$ac_objext \
13160 conftest$ac_exeext conftest.$ac_ext
13162 echo "$as_me:$LINENO: result: $ac_cv_func_CancelMenuTracking" >&5
13163 echo "${ECHO_T}$ac_cv_func_CancelMenuTracking" >&6
13164 if test $ac_cv_func_CancelMenuTracking = yes; then
13165 have_cmt=yes
13166 else
13167 have_cmt=no
13170 if test "$have_cmt" = yes; then
13172 cat >>confdefs.h <<\_ACEOF
13173 #define HAVE_CANCELMENUTRACKING 1
13174 _ACEOF
13177 CFLAGS="$tmp_CFLAGS"
13180 ### Use session management (-lSM -lICE) if available
13181 HAVE_X_SM=no
13182 if test "${HAVE_X11}" = "yes"; then
13183 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
13184 echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
13185 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6
13186 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
13187 echo $ECHO_N "(cached) $ECHO_C" >&6
13189 echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
13190 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6
13191 else
13192 # Is the header compilable?
13193 echo "$as_me:$LINENO: checking X11/SM/SMlib.h usability" >&5
13194 echo $ECHO_N "checking X11/SM/SMlib.h usability... $ECHO_C" >&6
13195 cat >conftest.$ac_ext <<_ACEOF
13196 /* confdefs.h. */
13197 _ACEOF
13198 cat confdefs.h >>conftest.$ac_ext
13199 cat >>conftest.$ac_ext <<_ACEOF
13200 /* end confdefs.h. */
13201 $ac_includes_default
13202 #include <X11/SM/SMlib.h>
13203 _ACEOF
13204 rm -f conftest.$ac_objext
13205 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13206 (eval $ac_compile) 2>conftest.er1
13207 ac_status=$?
13208 grep -v '^ *+' conftest.er1 >conftest.err
13209 rm -f conftest.er1
13210 cat conftest.err >&5
13211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13212 (exit $ac_status); } &&
13213 { ac_try='test -z "$ac_c_werror_flag"
13214 || test ! -s conftest.err'
13215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13216 (eval $ac_try) 2>&5
13217 ac_status=$?
13218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13219 (exit $ac_status); }; } &&
13220 { ac_try='test -s conftest.$ac_objext'
13221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13222 (eval $ac_try) 2>&5
13223 ac_status=$?
13224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13225 (exit $ac_status); }; }; then
13226 ac_header_compiler=yes
13227 else
13228 echo "$as_me: failed program was:" >&5
13229 sed 's/^/| /' conftest.$ac_ext >&5
13231 ac_header_compiler=no
13233 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13234 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13235 echo "${ECHO_T}$ac_header_compiler" >&6
13237 # Is the header present?
13238 echo "$as_me:$LINENO: checking X11/SM/SMlib.h presence" >&5
13239 echo $ECHO_N "checking X11/SM/SMlib.h presence... $ECHO_C" >&6
13240 cat >conftest.$ac_ext <<_ACEOF
13241 /* confdefs.h. */
13242 _ACEOF
13243 cat confdefs.h >>conftest.$ac_ext
13244 cat >>conftest.$ac_ext <<_ACEOF
13245 /* end confdefs.h. */
13246 #include <X11/SM/SMlib.h>
13247 _ACEOF
13248 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13249 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13250 ac_status=$?
13251 grep -v '^ *+' conftest.er1 >conftest.err
13252 rm -f conftest.er1
13253 cat conftest.err >&5
13254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13255 (exit $ac_status); } >/dev/null; then
13256 if test -s conftest.err; then
13257 ac_cpp_err=$ac_c_preproc_warn_flag
13258 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13259 else
13260 ac_cpp_err=
13262 else
13263 ac_cpp_err=yes
13265 if test -z "$ac_cpp_err"; then
13266 ac_header_preproc=yes
13267 else
13268 echo "$as_me: failed program was:" >&5
13269 sed 's/^/| /' conftest.$ac_ext >&5
13271 ac_header_preproc=no
13273 rm -f conftest.err conftest.$ac_ext
13274 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13275 echo "${ECHO_T}$ac_header_preproc" >&6
13277 # So? What about this header?
13278 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13279 yes:no: )
13280 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
13281 echo "$as_me: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13282 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&5
13283 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&2;}
13284 ac_header_preproc=yes
13286 no:yes:* )
13287 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&5
13288 echo "$as_me: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&2;}
13289 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&5
13290 echo "$as_me: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&2;}
13291 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&5
13292 echo "$as_me: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&2;}
13293 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&5
13294 echo "$as_me: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
13295 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
13296 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;}
13297 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&5
13298 echo "$as_me: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&2;}
13300 cat <<\_ASBOX
13301 ## ------------------------------------------ ##
13302 ## Report this to the AC_PACKAGE_NAME lists. ##
13303 ## ------------------------------------------ ##
13304 _ASBOX
13306 sed "s/^/$as_me: WARNING: /" >&2
13308 esac
13309 echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
13310 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6
13311 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
13312 echo $ECHO_N "(cached) $ECHO_C" >&6
13313 else
13314 ac_cv_header_X11_SM_SMlib_h=$ac_header_preproc
13316 echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
13317 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6
13320 if test $ac_cv_header_X11_SM_SMlib_h = yes; then
13321 echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
13322 echo $ECHO_N "checking for SmcOpenConnection in -lSM... $ECHO_C" >&6
13323 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
13324 echo $ECHO_N "(cached) $ECHO_C" >&6
13325 else
13326 ac_check_lib_save_LIBS=$LIBS
13327 LIBS="-lSM -lICE $LIBS"
13328 cat >conftest.$ac_ext <<_ACEOF
13329 /* confdefs.h. */
13330 _ACEOF
13331 cat confdefs.h >>conftest.$ac_ext
13332 cat >>conftest.$ac_ext <<_ACEOF
13333 /* end confdefs.h. */
13335 /* Override any gcc2 internal prototype to avoid an error. */
13336 #ifdef __cplusplus
13337 extern "C"
13338 #endif
13339 /* We use char because int might match the return type of a gcc2
13340 builtin and then its argument prototype would still apply. */
13341 char SmcOpenConnection ();
13343 main ()
13345 SmcOpenConnection ();
13347 return 0;
13349 _ACEOF
13350 rm -f conftest.$ac_objext conftest$ac_exeext
13351 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13352 (eval $ac_link) 2>conftest.er1
13353 ac_status=$?
13354 grep -v '^ *+' conftest.er1 >conftest.err
13355 rm -f conftest.er1
13356 cat conftest.err >&5
13357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13358 (exit $ac_status); } &&
13359 { ac_try='test -z "$ac_c_werror_flag"
13360 || test ! -s conftest.err'
13361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13362 (eval $ac_try) 2>&5
13363 ac_status=$?
13364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13365 (exit $ac_status); }; } &&
13366 { ac_try='test -s conftest$ac_exeext'
13367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13368 (eval $ac_try) 2>&5
13369 ac_status=$?
13370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13371 (exit $ac_status); }; }; then
13372 ac_cv_lib_SM_SmcOpenConnection=yes
13373 else
13374 echo "$as_me: failed program was:" >&5
13375 sed 's/^/| /' conftest.$ac_ext >&5
13377 ac_cv_lib_SM_SmcOpenConnection=no
13379 rm -f conftest.err conftest.$ac_objext \
13380 conftest$ac_exeext conftest.$ac_ext
13381 LIBS=$ac_check_lib_save_LIBS
13383 echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
13384 echo "${ECHO_T}$ac_cv_lib_SM_SmcOpenConnection" >&6
13385 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
13386 HAVE_X_SM=yes
13393 if test "${HAVE_X_SM}" = "yes"; then
13395 cat >>confdefs.h <<\_ACEOF
13396 #define HAVE_X_SM 1
13397 _ACEOF
13399 case "$LIBS" in
13400 *-lSM*) ;;
13401 *) LIBS="-lSM -lICE $LIBS" ;;
13402 esac
13406 # If netdb.h doesn't declare h_errno, we must declare it by hand.
13407 echo "$as_me:$LINENO: checking whether netdb declares h_errno" >&5
13408 echo $ECHO_N "checking whether netdb declares h_errno... $ECHO_C" >&6
13409 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then
13410 echo $ECHO_N "(cached) $ECHO_C" >&6
13411 else
13412 cat >conftest.$ac_ext <<_ACEOF
13413 /* confdefs.h. */
13414 _ACEOF
13415 cat confdefs.h >>conftest.$ac_ext
13416 cat >>conftest.$ac_ext <<_ACEOF
13417 /* end confdefs.h. */
13418 #include <netdb.h>
13420 main ()
13422 return h_errno;
13424 return 0;
13426 _ACEOF
13427 rm -f conftest.$ac_objext conftest$ac_exeext
13428 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13429 (eval $ac_link) 2>conftest.er1
13430 ac_status=$?
13431 grep -v '^ *+' conftest.er1 >conftest.err
13432 rm -f conftest.er1
13433 cat conftest.err >&5
13434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13435 (exit $ac_status); } &&
13436 { ac_try='test -z "$ac_c_werror_flag"
13437 || test ! -s conftest.err'
13438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13439 (eval $ac_try) 2>&5
13440 ac_status=$?
13441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13442 (exit $ac_status); }; } &&
13443 { ac_try='test -s conftest$ac_exeext'
13444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13445 (eval $ac_try) 2>&5
13446 ac_status=$?
13447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13448 (exit $ac_status); }; }; then
13449 emacs_cv_netdb_declares_h_errno=yes
13450 else
13451 echo "$as_me: failed program was:" >&5
13452 sed 's/^/| /' conftest.$ac_ext >&5
13454 emacs_cv_netdb_declares_h_errno=no
13456 rm -f conftest.err conftest.$ac_objext \
13457 conftest$ac_exeext conftest.$ac_ext
13459 echo "$as_me:$LINENO: result: $emacs_cv_netdb_declares_h_errno" >&5
13460 echo "${ECHO_T}$emacs_cv_netdb_declares_h_errno" >&6
13461 if test $emacs_cv_netdb_declares_h_errno = yes; then
13463 cat >>confdefs.h <<\_ACEOF
13464 #define HAVE_H_ERRNO 1
13465 _ACEOF
13469 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
13470 # for constant arguments. Useless!
13471 echo "$as_me:$LINENO: checking for working alloca.h" >&5
13472 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
13473 if test "${ac_cv_working_alloca_h+set}" = set; then
13474 echo $ECHO_N "(cached) $ECHO_C" >&6
13475 else
13476 cat >conftest.$ac_ext <<_ACEOF
13477 /* confdefs.h. */
13478 _ACEOF
13479 cat confdefs.h >>conftest.$ac_ext
13480 cat >>conftest.$ac_ext <<_ACEOF
13481 /* end confdefs.h. */
13482 #include <alloca.h>
13484 main ()
13486 char *p = (char *) alloca (2 * sizeof (int));
13488 return 0;
13490 _ACEOF
13491 rm -f conftest.$ac_objext conftest$ac_exeext
13492 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13493 (eval $ac_link) 2>conftest.er1
13494 ac_status=$?
13495 grep -v '^ *+' conftest.er1 >conftest.err
13496 rm -f conftest.er1
13497 cat conftest.err >&5
13498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13499 (exit $ac_status); } &&
13500 { ac_try='test -z "$ac_c_werror_flag"
13501 || 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_working_alloca_h=yes
13514 else
13515 echo "$as_me: failed program was:" >&5
13516 sed 's/^/| /' conftest.$ac_ext >&5
13518 ac_cv_working_alloca_h=no
13520 rm -f conftest.err conftest.$ac_objext \
13521 conftest$ac_exeext conftest.$ac_ext
13523 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
13524 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
13525 if test $ac_cv_working_alloca_h = yes; then
13527 cat >>confdefs.h <<\_ACEOF
13528 #define HAVE_ALLOCA_H 1
13529 _ACEOF
13533 echo "$as_me:$LINENO: checking for alloca" >&5
13534 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
13535 if test "${ac_cv_func_alloca_works+set}" = set; then
13536 echo $ECHO_N "(cached) $ECHO_C" >&6
13537 else
13538 cat >conftest.$ac_ext <<_ACEOF
13539 /* confdefs.h. */
13540 _ACEOF
13541 cat confdefs.h >>conftest.$ac_ext
13542 cat >>conftest.$ac_ext <<_ACEOF
13543 /* end confdefs.h. */
13544 #ifdef __GNUC__
13545 # define alloca __builtin_alloca
13546 #else
13547 # ifdef _MSC_VER
13548 # include <malloc.h>
13549 # define alloca _alloca
13550 # else
13551 # if HAVE_ALLOCA_H
13552 # include <alloca.h>
13553 # else
13554 # ifdef _AIX
13555 #pragma alloca
13556 # else
13557 # ifndef alloca /* predefined by HP cc +Olibcalls */
13558 char *alloca ();
13559 # endif
13560 # endif
13561 # endif
13562 # endif
13563 #endif
13566 main ()
13568 char *p = (char *) alloca (1);
13570 return 0;
13572 _ACEOF
13573 rm -f conftest.$ac_objext conftest$ac_exeext
13574 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13575 (eval $ac_link) 2>conftest.er1
13576 ac_status=$?
13577 grep -v '^ *+' conftest.er1 >conftest.err
13578 rm -f conftest.er1
13579 cat conftest.err >&5
13580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13581 (exit $ac_status); } &&
13582 { ac_try='test -z "$ac_c_werror_flag"
13583 || test ! -s conftest.err'
13584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13585 (eval $ac_try) 2>&5
13586 ac_status=$?
13587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13588 (exit $ac_status); }; } &&
13589 { ac_try='test -s conftest$ac_exeext'
13590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13591 (eval $ac_try) 2>&5
13592 ac_status=$?
13593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13594 (exit $ac_status); }; }; then
13595 ac_cv_func_alloca_works=yes
13596 else
13597 echo "$as_me: failed program was:" >&5
13598 sed 's/^/| /' conftest.$ac_ext >&5
13600 ac_cv_func_alloca_works=no
13602 rm -f conftest.err conftest.$ac_objext \
13603 conftest$ac_exeext conftest.$ac_ext
13605 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
13606 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
13608 if test $ac_cv_func_alloca_works = yes; then
13610 cat >>confdefs.h <<\_ACEOF
13611 #define HAVE_ALLOCA 1
13612 _ACEOF
13614 else
13615 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
13616 # that cause trouble. Some versions do not even contain alloca or
13617 # contain a buggy version. If you still want to use their alloca,
13618 # use ar to extract alloca.o from them instead of compiling alloca.c.
13620 ALLOCA=alloca.$ac_objext
13622 cat >>confdefs.h <<\_ACEOF
13623 #define C_ALLOCA 1
13624 _ACEOF
13627 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
13628 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
13629 if test "${ac_cv_os_cray+set}" = set; then
13630 echo $ECHO_N "(cached) $ECHO_C" >&6
13631 else
13632 cat >conftest.$ac_ext <<_ACEOF
13633 /* confdefs.h. */
13634 _ACEOF
13635 cat confdefs.h >>conftest.$ac_ext
13636 cat >>conftest.$ac_ext <<_ACEOF
13637 /* end confdefs.h. */
13638 #if defined(CRAY) && ! defined(CRAY2)
13639 webecray
13640 #else
13641 wenotbecray
13642 #endif
13644 _ACEOF
13645 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13646 $EGREP "webecray" >/dev/null 2>&1; then
13647 ac_cv_os_cray=yes
13648 else
13649 ac_cv_os_cray=no
13651 rm -f conftest*
13654 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
13655 echo "${ECHO_T}$ac_cv_os_cray" >&6
13656 if test $ac_cv_os_cray = yes; then
13657 for ac_func in _getb67 GETB67 getb67; do
13658 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13659 echo "$as_me:$LINENO: checking for $ac_func" >&5
13660 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13661 if eval "test \"\${$as_ac_var+set}\" = set"; then
13662 echo $ECHO_N "(cached) $ECHO_C" >&6
13663 else
13664 cat >conftest.$ac_ext <<_ACEOF
13665 /* confdefs.h. */
13666 _ACEOF
13667 cat confdefs.h >>conftest.$ac_ext
13668 cat >>conftest.$ac_ext <<_ACEOF
13669 /* end confdefs.h. */
13670 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13671 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13672 #define $ac_func innocuous_$ac_func
13674 /* System header to define __stub macros and hopefully few prototypes,
13675 which can conflict with char $ac_func (); below.
13676 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13677 <limits.h> exists even on freestanding compilers. */
13679 #ifdef __STDC__
13680 # include <limits.h>
13681 #else
13682 # include <assert.h>
13683 #endif
13685 #undef $ac_func
13687 /* Override any gcc2 internal prototype to avoid an error. */
13688 #ifdef __cplusplus
13689 extern "C"
13691 #endif
13692 /* We use char because int might match the return type of a gcc2
13693 builtin and then its argument prototype would still apply. */
13694 char $ac_func ();
13695 /* The GNU C library defines this for functions which it implements
13696 to always fail with ENOSYS. Some functions are actually named
13697 something starting with __ and the normal name is an alias. */
13698 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13699 choke me
13700 #else
13701 char (*f) () = $ac_func;
13702 #endif
13703 #ifdef __cplusplus
13705 #endif
13708 main ()
13710 return f != $ac_func;
13712 return 0;
13714 _ACEOF
13715 rm -f conftest.$ac_objext conftest$ac_exeext
13716 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13717 (eval $ac_link) 2>conftest.er1
13718 ac_status=$?
13719 grep -v '^ *+' conftest.er1 >conftest.err
13720 rm -f conftest.er1
13721 cat conftest.err >&5
13722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13723 (exit $ac_status); } &&
13724 { ac_try='test -z "$ac_c_werror_flag"
13725 || test ! -s conftest.err'
13726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13727 (eval $ac_try) 2>&5
13728 ac_status=$?
13729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13730 (exit $ac_status); }; } &&
13731 { ac_try='test -s conftest$ac_exeext'
13732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13733 (eval $ac_try) 2>&5
13734 ac_status=$?
13735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13736 (exit $ac_status); }; }; then
13737 eval "$as_ac_var=yes"
13738 else
13739 echo "$as_me: failed program was:" >&5
13740 sed 's/^/| /' conftest.$ac_ext >&5
13742 eval "$as_ac_var=no"
13744 rm -f conftest.err conftest.$ac_objext \
13745 conftest$ac_exeext conftest.$ac_ext
13747 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13748 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13749 if test `eval echo '${'$as_ac_var'}'` = yes; then
13751 cat >>confdefs.h <<_ACEOF
13752 #define CRAY_STACKSEG_END $ac_func
13753 _ACEOF
13755 break
13758 done
13761 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
13762 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
13763 if test "${ac_cv_c_stack_direction+set}" = set; then
13764 echo $ECHO_N "(cached) $ECHO_C" >&6
13765 else
13766 if test "$cross_compiling" = yes; then
13767 ac_cv_c_stack_direction=0
13768 else
13769 cat >conftest.$ac_ext <<_ACEOF
13770 /* confdefs.h. */
13771 _ACEOF
13772 cat confdefs.h >>conftest.$ac_ext
13773 cat >>conftest.$ac_ext <<_ACEOF
13774 /* end confdefs.h. */
13776 find_stack_direction ()
13778 static char *addr = 0;
13779 auto char dummy;
13780 if (addr == 0)
13782 addr = &dummy;
13783 return find_stack_direction ();
13785 else
13786 return (&dummy > addr) ? 1 : -1;
13790 main ()
13792 exit (find_stack_direction () < 0);
13794 _ACEOF
13795 rm -f conftest$ac_exeext
13796 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13797 (eval $ac_link) 2>&5
13798 ac_status=$?
13799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13800 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13802 (eval $ac_try) 2>&5
13803 ac_status=$?
13804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13805 (exit $ac_status); }; }; then
13806 ac_cv_c_stack_direction=1
13807 else
13808 echo "$as_me: program exited with status $ac_status" >&5
13809 echo "$as_me: failed program was:" >&5
13810 sed 's/^/| /' conftest.$ac_ext >&5
13812 ( exit $ac_status )
13813 ac_cv_c_stack_direction=-1
13815 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13818 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
13819 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
13821 cat >>confdefs.h <<_ACEOF
13822 #define STACK_DIRECTION $ac_cv_c_stack_direction
13823 _ACEOF
13829 # fmod, logb, and frexp are found in -lm on most systems.
13830 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
13832 echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
13833 echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6
13834 if test "${ac_cv_lib_m_sqrt+set}" = set; then
13835 echo $ECHO_N "(cached) $ECHO_C" >&6
13836 else
13837 ac_check_lib_save_LIBS=$LIBS
13838 LIBS="-lm $LIBS"
13839 cat >conftest.$ac_ext <<_ACEOF
13840 /* confdefs.h. */
13841 _ACEOF
13842 cat confdefs.h >>conftest.$ac_ext
13843 cat >>conftest.$ac_ext <<_ACEOF
13844 /* end confdefs.h. */
13846 /* Override any gcc2 internal prototype to avoid an error. */
13847 #ifdef __cplusplus
13848 extern "C"
13849 #endif
13850 /* We use char because int might match the return type of a gcc2
13851 builtin and then its argument prototype would still apply. */
13852 char sqrt ();
13854 main ()
13856 sqrt ();
13858 return 0;
13860 _ACEOF
13861 rm -f conftest.$ac_objext conftest$ac_exeext
13862 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13863 (eval $ac_link) 2>conftest.er1
13864 ac_status=$?
13865 grep -v '^ *+' conftest.er1 >conftest.err
13866 rm -f conftest.er1
13867 cat conftest.err >&5
13868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13869 (exit $ac_status); } &&
13870 { ac_try='test -z "$ac_c_werror_flag"
13871 || test ! -s conftest.err'
13872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13873 (eval $ac_try) 2>&5
13874 ac_status=$?
13875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13876 (exit $ac_status); }; } &&
13877 { ac_try='test -s conftest$ac_exeext'
13878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13879 (eval $ac_try) 2>&5
13880 ac_status=$?
13881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13882 (exit $ac_status); }; }; then
13883 ac_cv_lib_m_sqrt=yes
13884 else
13885 echo "$as_me: failed program was:" >&5
13886 sed 's/^/| /' conftest.$ac_ext >&5
13888 ac_cv_lib_m_sqrt=no
13890 rm -f conftest.err conftest.$ac_objext \
13891 conftest$ac_exeext conftest.$ac_ext
13892 LIBS=$ac_check_lib_save_LIBS
13894 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
13895 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6
13896 if test $ac_cv_lib_m_sqrt = yes; then
13897 cat >>confdefs.h <<_ACEOF
13898 #define HAVE_LIBM 1
13899 _ACEOF
13901 LIBS="-lm $LIBS"
13906 # Check for mail-locking functions in a "mail" library. Probably this should
13907 # have the same check as for liblockfile below.
13909 echo "$as_me:$LINENO: checking for maillock in -lmail" >&5
13910 echo $ECHO_N "checking for maillock in -lmail... $ECHO_C" >&6
13911 if test "${ac_cv_lib_mail_maillock+set}" = set; then
13912 echo $ECHO_N "(cached) $ECHO_C" >&6
13913 else
13914 ac_check_lib_save_LIBS=$LIBS
13915 LIBS="-lmail $LIBS"
13916 cat >conftest.$ac_ext <<_ACEOF
13917 /* confdefs.h. */
13918 _ACEOF
13919 cat confdefs.h >>conftest.$ac_ext
13920 cat >>conftest.$ac_ext <<_ACEOF
13921 /* end confdefs.h. */
13923 /* Override any gcc2 internal prototype to avoid an error. */
13924 #ifdef __cplusplus
13925 extern "C"
13926 #endif
13927 /* We use char because int might match the return type of a gcc2
13928 builtin and then its argument prototype would still apply. */
13929 char maillock ();
13931 main ()
13933 maillock ();
13935 return 0;
13937 _ACEOF
13938 rm -f conftest.$ac_objext conftest$ac_exeext
13939 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13940 (eval $ac_link) 2>conftest.er1
13941 ac_status=$?
13942 grep -v '^ *+' conftest.er1 >conftest.err
13943 rm -f conftest.er1
13944 cat conftest.err >&5
13945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13946 (exit $ac_status); } &&
13947 { ac_try='test -z "$ac_c_werror_flag"
13948 || test ! -s conftest.err'
13949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13950 (eval $ac_try) 2>&5
13951 ac_status=$?
13952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13953 (exit $ac_status); }; } &&
13954 { ac_try='test -s conftest$ac_exeext'
13955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13956 (eval $ac_try) 2>&5
13957 ac_status=$?
13958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13959 (exit $ac_status); }; }; then
13960 ac_cv_lib_mail_maillock=yes
13961 else
13962 echo "$as_me: failed program was:" >&5
13963 sed 's/^/| /' conftest.$ac_ext >&5
13965 ac_cv_lib_mail_maillock=no
13967 rm -f conftest.err conftest.$ac_objext \
13968 conftest$ac_exeext conftest.$ac_ext
13969 LIBS=$ac_check_lib_save_LIBS
13971 echo "$as_me:$LINENO: result: $ac_cv_lib_mail_maillock" >&5
13972 echo "${ECHO_T}$ac_cv_lib_mail_maillock" >&6
13973 if test $ac_cv_lib_mail_maillock = yes; then
13974 cat >>confdefs.h <<_ACEOF
13975 #define HAVE_LIBMAIL 1
13976 _ACEOF
13978 LIBS="-lmail $LIBS"
13983 echo "$as_me:$LINENO: checking for maillock in -llockfile" >&5
13984 echo $ECHO_N "checking for maillock in -llockfile... $ECHO_C" >&6
13985 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
13986 echo $ECHO_N "(cached) $ECHO_C" >&6
13987 else
13988 ac_check_lib_save_LIBS=$LIBS
13989 LIBS="-llockfile $LIBS"
13990 cat >conftest.$ac_ext <<_ACEOF
13991 /* confdefs.h. */
13992 _ACEOF
13993 cat confdefs.h >>conftest.$ac_ext
13994 cat >>conftest.$ac_ext <<_ACEOF
13995 /* end confdefs.h. */
13997 /* Override any gcc2 internal prototype to avoid an error. */
13998 #ifdef __cplusplus
13999 extern "C"
14000 #endif
14001 /* We use char because int might match the return type of a gcc2
14002 builtin and then its argument prototype would still apply. */
14003 char maillock ();
14005 main ()
14007 maillock ();
14009 return 0;
14011 _ACEOF
14012 rm -f conftest.$ac_objext conftest$ac_exeext
14013 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14014 (eval $ac_link) 2>conftest.er1
14015 ac_status=$?
14016 grep -v '^ *+' conftest.er1 >conftest.err
14017 rm -f conftest.er1
14018 cat conftest.err >&5
14019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14020 (exit $ac_status); } &&
14021 { ac_try='test -z "$ac_c_werror_flag"
14022 || test ! -s conftest.err'
14023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14024 (eval $ac_try) 2>&5
14025 ac_status=$?
14026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14027 (exit $ac_status); }; } &&
14028 { ac_try='test -s conftest$ac_exeext'
14029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14030 (eval $ac_try) 2>&5
14031 ac_status=$?
14032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14033 (exit $ac_status); }; }; then
14034 ac_cv_lib_lockfile_maillock=yes
14035 else
14036 echo "$as_me: failed program was:" >&5
14037 sed 's/^/| /' conftest.$ac_ext >&5
14039 ac_cv_lib_lockfile_maillock=no
14041 rm -f conftest.err conftest.$ac_objext \
14042 conftest$ac_exeext conftest.$ac_ext
14043 LIBS=$ac_check_lib_save_LIBS
14045 echo "$as_me:$LINENO: result: $ac_cv_lib_lockfile_maillock" >&5
14046 echo "${ECHO_T}$ac_cv_lib_lockfile_maillock" >&6
14047 if test $ac_cv_lib_lockfile_maillock = yes; then
14048 cat >>confdefs.h <<_ACEOF
14049 #define HAVE_LIBLOCKFILE 1
14050 _ACEOF
14052 LIBS="-llockfile $LIBS"
14056 # If we have the shared liblockfile, assume we must use it for mail
14057 # locking (e.g. Debian). If we couldn't link against liblockfile
14058 # (no liblockfile.a installed), ensure that we don't need to.
14059 if test "$ac_cv_lib_lockfile_maillock" = no; then
14060 # Extract the first word of "liblockfile.so", so it can be a program name with args.
14061 set dummy liblockfile.so; ac_word=$2
14062 echo "$as_me:$LINENO: checking for $ac_word" >&5
14063 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14064 if test "${ac_cv_prog_liblockfile+set}" = set; then
14065 echo $ECHO_N "(cached) $ECHO_C" >&6
14066 else
14067 if test -n "$liblockfile"; then
14068 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
14069 else
14070 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14071 as_dummy="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
14072 for as_dir in $as_dummy
14074 IFS=$as_save_IFS
14075 test -z "$as_dir" && as_dir=.
14076 for ac_exec_ext in '' $ac_executable_extensions; do
14077 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14078 ac_cv_prog_liblockfile="yes"
14079 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14080 break 2
14082 done
14083 done
14085 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no"
14088 liblockfile=$ac_cv_prog_liblockfile
14089 if test -n "$liblockfile"; then
14090 echo "$as_me:$LINENO: result: $liblockfile" >&5
14091 echo "${ECHO_T}$liblockfile" >&6
14092 else
14093 echo "$as_me:$LINENO: result: no" >&5
14094 echo "${ECHO_T}no" >&6
14097 if test $ac_cv_prog_liblockfile = yes; then
14098 { { echo "$as_me:$LINENO: error: Shared liblockfile found but can't link against it.
14099 This probably means that movemail could lose mail.
14100 There may be a \`development' package to install containing liblockfile." >&5
14101 echo "$as_me: error: Shared liblockfile found but can't link against it.
14102 This probably means that movemail could lose mail.
14103 There may be a \`development' package to install containing liblockfile." >&2;}
14104 { (exit 1); exit 1; }; }
14105 else :
14109 for ac_func in touchlock
14111 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14112 echo "$as_me:$LINENO: checking for $ac_func" >&5
14113 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14114 if eval "test \"\${$as_ac_var+set}\" = set"; then
14115 echo $ECHO_N "(cached) $ECHO_C" >&6
14116 else
14117 cat >conftest.$ac_ext <<_ACEOF
14118 /* confdefs.h. */
14119 _ACEOF
14120 cat confdefs.h >>conftest.$ac_ext
14121 cat >>conftest.$ac_ext <<_ACEOF
14122 /* end confdefs.h. */
14123 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14124 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14125 #define $ac_func innocuous_$ac_func
14127 /* System header to define __stub macros and hopefully few prototypes,
14128 which can conflict with char $ac_func (); below.
14129 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14130 <limits.h> exists even on freestanding compilers. */
14132 #ifdef __STDC__
14133 # include <limits.h>
14134 #else
14135 # include <assert.h>
14136 #endif
14138 #undef $ac_func
14140 /* Override any gcc2 internal prototype to avoid an error. */
14141 #ifdef __cplusplus
14142 extern "C"
14144 #endif
14145 /* We use char because int might match the return type of a gcc2
14146 builtin and then its argument prototype would still apply. */
14147 char $ac_func ();
14148 /* The GNU C library defines this for functions which it implements
14149 to always fail with ENOSYS. Some functions are actually named
14150 something starting with __ and the normal name is an alias. */
14151 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14152 choke me
14153 #else
14154 char (*f) () = $ac_func;
14155 #endif
14156 #ifdef __cplusplus
14158 #endif
14161 main ()
14163 return f != $ac_func;
14165 return 0;
14167 _ACEOF
14168 rm -f conftest.$ac_objext conftest$ac_exeext
14169 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14170 (eval $ac_link) 2>conftest.er1
14171 ac_status=$?
14172 grep -v '^ *+' conftest.er1 >conftest.err
14173 rm -f conftest.er1
14174 cat conftest.err >&5
14175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14176 (exit $ac_status); } &&
14177 { ac_try='test -z "$ac_c_werror_flag"
14178 || test ! -s conftest.err'
14179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14180 (eval $ac_try) 2>&5
14181 ac_status=$?
14182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14183 (exit $ac_status); }; } &&
14184 { ac_try='test -s conftest$ac_exeext'
14185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14186 (eval $ac_try) 2>&5
14187 ac_status=$?
14188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14189 (exit $ac_status); }; }; then
14190 eval "$as_ac_var=yes"
14191 else
14192 echo "$as_me: failed program was:" >&5
14193 sed 's/^/| /' conftest.$ac_ext >&5
14195 eval "$as_ac_var=no"
14197 rm -f conftest.err conftest.$ac_objext \
14198 conftest$ac_exeext conftest.$ac_ext
14200 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14201 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14202 if test `eval echo '${'$as_ac_var'}'` = yes; then
14203 cat >>confdefs.h <<_ACEOF
14204 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14205 _ACEOF
14208 done
14211 for ac_header in maillock.h
14213 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14214 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14215 echo "$as_me:$LINENO: checking for $ac_header" >&5
14216 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14217 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14218 echo $ECHO_N "(cached) $ECHO_C" >&6
14220 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14221 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14222 else
14223 # Is the header compilable?
14224 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14225 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14226 cat >conftest.$ac_ext <<_ACEOF
14227 /* confdefs.h. */
14228 _ACEOF
14229 cat confdefs.h >>conftest.$ac_ext
14230 cat >>conftest.$ac_ext <<_ACEOF
14231 /* end confdefs.h. */
14232 $ac_includes_default
14233 #include <$ac_header>
14234 _ACEOF
14235 rm -f conftest.$ac_objext
14236 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14237 (eval $ac_compile) 2>conftest.er1
14238 ac_status=$?
14239 grep -v '^ *+' conftest.er1 >conftest.err
14240 rm -f conftest.er1
14241 cat conftest.err >&5
14242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14243 (exit $ac_status); } &&
14244 { ac_try='test -z "$ac_c_werror_flag"
14245 || test ! -s conftest.err'
14246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14247 (eval $ac_try) 2>&5
14248 ac_status=$?
14249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14250 (exit $ac_status); }; } &&
14251 { ac_try='test -s conftest.$ac_objext'
14252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14253 (eval $ac_try) 2>&5
14254 ac_status=$?
14255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14256 (exit $ac_status); }; }; then
14257 ac_header_compiler=yes
14258 else
14259 echo "$as_me: failed program was:" >&5
14260 sed 's/^/| /' conftest.$ac_ext >&5
14262 ac_header_compiler=no
14264 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14265 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14266 echo "${ECHO_T}$ac_header_compiler" >&6
14268 # Is the header present?
14269 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14270 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14271 cat >conftest.$ac_ext <<_ACEOF
14272 /* confdefs.h. */
14273 _ACEOF
14274 cat confdefs.h >>conftest.$ac_ext
14275 cat >>conftest.$ac_ext <<_ACEOF
14276 /* end confdefs.h. */
14277 #include <$ac_header>
14278 _ACEOF
14279 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14280 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14281 ac_status=$?
14282 grep -v '^ *+' conftest.er1 >conftest.err
14283 rm -f conftest.er1
14284 cat conftest.err >&5
14285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14286 (exit $ac_status); } >/dev/null; then
14287 if test -s conftest.err; then
14288 ac_cpp_err=$ac_c_preproc_warn_flag
14289 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14290 else
14291 ac_cpp_err=
14293 else
14294 ac_cpp_err=yes
14296 if test -z "$ac_cpp_err"; then
14297 ac_header_preproc=yes
14298 else
14299 echo "$as_me: failed program was:" >&5
14300 sed 's/^/| /' conftest.$ac_ext >&5
14302 ac_header_preproc=no
14304 rm -f conftest.err conftest.$ac_ext
14305 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14306 echo "${ECHO_T}$ac_header_preproc" >&6
14308 # So? What about this header?
14309 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14310 yes:no: )
14311 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14312 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14313 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14314 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14315 ac_header_preproc=yes
14317 no:yes:* )
14318 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14319 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14320 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14321 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14322 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14323 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14324 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14325 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14326 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14327 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14328 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14329 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14331 cat <<\_ASBOX
14332 ## ------------------------------------------ ##
14333 ## Report this to the AC_PACKAGE_NAME lists. ##
14334 ## ------------------------------------------ ##
14335 _ASBOX
14337 sed "s/^/$as_me: WARNING: /" >&2
14339 esac
14340 echo "$as_me:$LINENO: checking for $ac_header" >&5
14341 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14342 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14343 echo $ECHO_N "(cached) $ECHO_C" >&6
14344 else
14345 eval "$as_ac_Header=\$ac_header_preproc"
14347 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14348 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14351 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14352 cat >>confdefs.h <<_ACEOF
14353 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14354 _ACEOF
14358 done
14429 for ac_func in gethostname getdomainname dup2 \
14430 rename closedir mkdir rmdir sysinfo getrusage get_current_dir_name \
14431 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime res_init setsid \
14432 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \
14433 utimes setrlimit setpgid getcwd getwd shutdown getaddrinfo \
14434 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
14435 sendto recvfrom getsockopt setsockopt getsockname getpeername \
14436 gai_strerror mkstemp getline getdelim mremap memmove fsync bzero \
14437 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign
14439 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14440 echo "$as_me:$LINENO: checking for $ac_func" >&5
14441 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14442 if eval "test \"\${$as_ac_var+set}\" = set"; then
14443 echo $ECHO_N "(cached) $ECHO_C" >&6
14444 else
14445 cat >conftest.$ac_ext <<_ACEOF
14446 /* confdefs.h. */
14447 _ACEOF
14448 cat confdefs.h >>conftest.$ac_ext
14449 cat >>conftest.$ac_ext <<_ACEOF
14450 /* end confdefs.h. */
14451 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14452 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14453 #define $ac_func innocuous_$ac_func
14455 /* System header to define __stub macros and hopefully few prototypes,
14456 which can conflict with char $ac_func (); below.
14457 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14458 <limits.h> exists even on freestanding compilers. */
14460 #ifdef __STDC__
14461 # include <limits.h>
14462 #else
14463 # include <assert.h>
14464 #endif
14466 #undef $ac_func
14468 /* Override any gcc2 internal prototype to avoid an error. */
14469 #ifdef __cplusplus
14470 extern "C"
14472 #endif
14473 /* We use char because int might match the return type of a gcc2
14474 builtin and then its argument prototype would still apply. */
14475 char $ac_func ();
14476 /* The GNU C library defines this for functions which it implements
14477 to always fail with ENOSYS. Some functions are actually named
14478 something starting with __ and the normal name is an alias. */
14479 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14480 choke me
14481 #else
14482 char (*f) () = $ac_func;
14483 #endif
14484 #ifdef __cplusplus
14486 #endif
14489 main ()
14491 return f != $ac_func;
14493 return 0;
14495 _ACEOF
14496 rm -f conftest.$ac_objext conftest$ac_exeext
14497 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14498 (eval $ac_link) 2>conftest.er1
14499 ac_status=$?
14500 grep -v '^ *+' conftest.er1 >conftest.err
14501 rm -f conftest.er1
14502 cat conftest.err >&5
14503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14504 (exit $ac_status); } &&
14505 { ac_try='test -z "$ac_c_werror_flag"
14506 || test ! -s conftest.err'
14507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14508 (eval $ac_try) 2>&5
14509 ac_status=$?
14510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14511 (exit $ac_status); }; } &&
14512 { ac_try='test -s conftest$ac_exeext'
14513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14514 (eval $ac_try) 2>&5
14515 ac_status=$?
14516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14517 (exit $ac_status); }; }; then
14518 eval "$as_ac_var=yes"
14519 else
14520 echo "$as_me: failed program was:" >&5
14521 sed 's/^/| /' conftest.$ac_ext >&5
14523 eval "$as_ac_var=no"
14525 rm -f conftest.err conftest.$ac_objext \
14526 conftest$ac_exeext conftest.$ac_ext
14528 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14529 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14530 if test `eval echo '${'$as_ac_var'}'` = yes; then
14531 cat >>confdefs.h <<_ACEOF
14532 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14533 _ACEOF
14536 done
14540 for ac_header in sys/un.h
14542 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14543 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14544 echo "$as_me:$LINENO: checking for $ac_header" >&5
14545 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14546 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14547 echo $ECHO_N "(cached) $ECHO_C" >&6
14549 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14550 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14551 else
14552 # Is the header compilable?
14553 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14554 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14555 cat >conftest.$ac_ext <<_ACEOF
14556 /* confdefs.h. */
14557 _ACEOF
14558 cat confdefs.h >>conftest.$ac_ext
14559 cat >>conftest.$ac_ext <<_ACEOF
14560 /* end confdefs.h. */
14561 $ac_includes_default
14562 #include <$ac_header>
14563 _ACEOF
14564 rm -f conftest.$ac_objext
14565 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14566 (eval $ac_compile) 2>conftest.er1
14567 ac_status=$?
14568 grep -v '^ *+' conftest.er1 >conftest.err
14569 rm -f conftest.er1
14570 cat conftest.err >&5
14571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14572 (exit $ac_status); } &&
14573 { ac_try='test -z "$ac_c_werror_flag"
14574 || test ! -s conftest.err'
14575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14576 (eval $ac_try) 2>&5
14577 ac_status=$?
14578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14579 (exit $ac_status); }; } &&
14580 { ac_try='test -s conftest.$ac_objext'
14581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14582 (eval $ac_try) 2>&5
14583 ac_status=$?
14584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14585 (exit $ac_status); }; }; then
14586 ac_header_compiler=yes
14587 else
14588 echo "$as_me: failed program was:" >&5
14589 sed 's/^/| /' conftest.$ac_ext >&5
14591 ac_header_compiler=no
14593 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14594 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14595 echo "${ECHO_T}$ac_header_compiler" >&6
14597 # Is the header present?
14598 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14599 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14600 cat >conftest.$ac_ext <<_ACEOF
14601 /* confdefs.h. */
14602 _ACEOF
14603 cat confdefs.h >>conftest.$ac_ext
14604 cat >>conftest.$ac_ext <<_ACEOF
14605 /* end confdefs.h. */
14606 #include <$ac_header>
14607 _ACEOF
14608 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14609 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14610 ac_status=$?
14611 grep -v '^ *+' conftest.er1 >conftest.err
14612 rm -f conftest.er1
14613 cat conftest.err >&5
14614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14615 (exit $ac_status); } >/dev/null; then
14616 if test -s conftest.err; then
14617 ac_cpp_err=$ac_c_preproc_warn_flag
14618 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14619 else
14620 ac_cpp_err=
14622 else
14623 ac_cpp_err=yes
14625 if test -z "$ac_cpp_err"; then
14626 ac_header_preproc=yes
14627 else
14628 echo "$as_me: failed program was:" >&5
14629 sed 's/^/| /' conftest.$ac_ext >&5
14631 ac_header_preproc=no
14633 rm -f conftest.err conftest.$ac_ext
14634 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14635 echo "${ECHO_T}$ac_header_preproc" >&6
14637 # So? What about this header?
14638 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14639 yes:no: )
14640 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14641 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14642 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14643 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14644 ac_header_preproc=yes
14646 no:yes:* )
14647 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14648 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14649 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14650 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14651 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14652 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14653 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14654 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14655 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14656 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14657 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14658 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14660 cat <<\_ASBOX
14661 ## ------------------------------------------ ##
14662 ## Report this to the AC_PACKAGE_NAME lists. ##
14663 ## ------------------------------------------ ##
14664 _ASBOX
14666 sed "s/^/$as_me: WARNING: /" >&2
14668 esac
14669 echo "$as_me:$LINENO: checking for $ac_header" >&5
14670 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14671 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14672 echo $ECHO_N "(cached) $ECHO_C" >&6
14673 else
14674 eval "$as_ac_Header=\$ac_header_preproc"
14676 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14677 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14680 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14681 cat >>confdefs.h <<_ACEOF
14682 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14683 _ACEOF
14687 done
14693 for ac_header in stdlib.h sys/time.h unistd.h
14695 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14696 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14697 echo "$as_me:$LINENO: checking for $ac_header" >&5
14698 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14699 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14700 echo $ECHO_N "(cached) $ECHO_C" >&6
14702 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14703 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14704 else
14705 # Is the header compilable?
14706 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14707 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14708 cat >conftest.$ac_ext <<_ACEOF
14709 /* confdefs.h. */
14710 _ACEOF
14711 cat confdefs.h >>conftest.$ac_ext
14712 cat >>conftest.$ac_ext <<_ACEOF
14713 /* end confdefs.h. */
14714 $ac_includes_default
14715 #include <$ac_header>
14716 _ACEOF
14717 rm -f conftest.$ac_objext
14718 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14719 (eval $ac_compile) 2>conftest.er1
14720 ac_status=$?
14721 grep -v '^ *+' conftest.er1 >conftest.err
14722 rm -f conftest.er1
14723 cat conftest.err >&5
14724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14725 (exit $ac_status); } &&
14726 { ac_try='test -z "$ac_c_werror_flag"
14727 || test ! -s conftest.err'
14728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14729 (eval $ac_try) 2>&5
14730 ac_status=$?
14731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14732 (exit $ac_status); }; } &&
14733 { ac_try='test -s conftest.$ac_objext'
14734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14735 (eval $ac_try) 2>&5
14736 ac_status=$?
14737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14738 (exit $ac_status); }; }; then
14739 ac_header_compiler=yes
14740 else
14741 echo "$as_me: failed program was:" >&5
14742 sed 's/^/| /' conftest.$ac_ext >&5
14744 ac_header_compiler=no
14746 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14747 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14748 echo "${ECHO_T}$ac_header_compiler" >&6
14750 # Is the header present?
14751 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14752 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14753 cat >conftest.$ac_ext <<_ACEOF
14754 /* confdefs.h. */
14755 _ACEOF
14756 cat confdefs.h >>conftest.$ac_ext
14757 cat >>conftest.$ac_ext <<_ACEOF
14758 /* end confdefs.h. */
14759 #include <$ac_header>
14760 _ACEOF
14761 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14762 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14763 ac_status=$?
14764 grep -v '^ *+' conftest.er1 >conftest.err
14765 rm -f conftest.er1
14766 cat conftest.err >&5
14767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14768 (exit $ac_status); } >/dev/null; then
14769 if test -s conftest.err; then
14770 ac_cpp_err=$ac_c_preproc_warn_flag
14771 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14772 else
14773 ac_cpp_err=
14775 else
14776 ac_cpp_err=yes
14778 if test -z "$ac_cpp_err"; then
14779 ac_header_preproc=yes
14780 else
14781 echo "$as_me: failed program was:" >&5
14782 sed 's/^/| /' conftest.$ac_ext >&5
14784 ac_header_preproc=no
14786 rm -f conftest.err conftest.$ac_ext
14787 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14788 echo "${ECHO_T}$ac_header_preproc" >&6
14790 # So? What about this header?
14791 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14792 yes:no: )
14793 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14794 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14795 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14796 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14797 ac_header_preproc=yes
14799 no:yes:* )
14800 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14801 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14802 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14803 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14804 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14805 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14806 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14807 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14808 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14809 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14810 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14811 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14813 cat <<\_ASBOX
14814 ## ------------------------------------------ ##
14815 ## Report this to the AC_PACKAGE_NAME lists. ##
14816 ## ------------------------------------------ ##
14817 _ASBOX
14819 sed "s/^/$as_me: WARNING: /" >&2
14821 esac
14822 echo "$as_me:$LINENO: checking for $ac_header" >&5
14823 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14824 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14825 echo $ECHO_N "(cached) $ECHO_C" >&6
14826 else
14827 eval "$as_ac_Header=\$ac_header_preproc"
14829 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14830 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14833 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14834 cat >>confdefs.h <<_ACEOF
14835 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14836 _ACEOF
14840 done
14843 for ac_func in alarm
14845 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14846 echo "$as_me:$LINENO: checking for $ac_func" >&5
14847 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14848 if eval "test \"\${$as_ac_var+set}\" = set"; then
14849 echo $ECHO_N "(cached) $ECHO_C" >&6
14850 else
14851 cat >conftest.$ac_ext <<_ACEOF
14852 /* confdefs.h. */
14853 _ACEOF
14854 cat confdefs.h >>conftest.$ac_ext
14855 cat >>conftest.$ac_ext <<_ACEOF
14856 /* end confdefs.h. */
14857 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14858 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14859 #define $ac_func innocuous_$ac_func
14861 /* System header to define __stub macros and hopefully few prototypes,
14862 which can conflict with char $ac_func (); below.
14863 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14864 <limits.h> exists even on freestanding compilers. */
14866 #ifdef __STDC__
14867 # include <limits.h>
14868 #else
14869 # include <assert.h>
14870 #endif
14872 #undef $ac_func
14874 /* Override any gcc2 internal prototype to avoid an error. */
14875 #ifdef __cplusplus
14876 extern "C"
14878 #endif
14879 /* We use char because int might match the return type of a gcc2
14880 builtin and then its argument prototype would still apply. */
14881 char $ac_func ();
14882 /* The GNU C library defines this for functions which it implements
14883 to always fail with ENOSYS. Some functions are actually named
14884 something starting with __ and the normal name is an alias. */
14885 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14886 choke me
14887 #else
14888 char (*f) () = $ac_func;
14889 #endif
14890 #ifdef __cplusplus
14892 #endif
14895 main ()
14897 return f != $ac_func;
14899 return 0;
14901 _ACEOF
14902 rm -f conftest.$ac_objext conftest$ac_exeext
14903 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14904 (eval $ac_link) 2>conftest.er1
14905 ac_status=$?
14906 grep -v '^ *+' conftest.er1 >conftest.err
14907 rm -f conftest.er1
14908 cat conftest.err >&5
14909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14910 (exit $ac_status); } &&
14911 { ac_try='test -z "$ac_c_werror_flag"
14912 || test ! -s conftest.err'
14913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14914 (eval $ac_try) 2>&5
14915 ac_status=$?
14916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14917 (exit $ac_status); }; } &&
14918 { ac_try='test -s conftest$ac_exeext'
14919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14920 (eval $ac_try) 2>&5
14921 ac_status=$?
14922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14923 (exit $ac_status); }; }; then
14924 eval "$as_ac_var=yes"
14925 else
14926 echo "$as_me: failed program was:" >&5
14927 sed 's/^/| /' conftest.$ac_ext >&5
14929 eval "$as_ac_var=no"
14931 rm -f conftest.err conftest.$ac_objext \
14932 conftest$ac_exeext conftest.$ac_ext
14934 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14935 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14936 if test `eval echo '${'$as_ac_var'}'` = yes; then
14937 cat >>confdefs.h <<_ACEOF
14938 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14939 _ACEOF
14942 done
14944 echo "$as_me:$LINENO: checking for working mktime" >&5
14945 echo $ECHO_N "checking for working mktime... $ECHO_C" >&6
14946 if test "${ac_cv_func_working_mktime+set}" = set; then
14947 echo $ECHO_N "(cached) $ECHO_C" >&6
14948 else
14949 if test "$cross_compiling" = yes; then
14950 ac_cv_func_working_mktime=no
14951 else
14952 cat >conftest.$ac_ext <<_ACEOF
14953 /* confdefs.h. */
14954 _ACEOF
14955 cat confdefs.h >>conftest.$ac_ext
14956 cat >>conftest.$ac_ext <<_ACEOF
14957 /* end confdefs.h. */
14958 /* Test program from Paul Eggert and Tony Leneis. */
14959 #if TIME_WITH_SYS_TIME
14960 # include <sys/time.h>
14961 # include <time.h>
14962 #else
14963 # if HAVE_SYS_TIME_H
14964 # include <sys/time.h>
14965 # else
14966 # include <time.h>
14967 # endif
14968 #endif
14970 #if HAVE_STDLIB_H
14971 # include <stdlib.h>
14972 #endif
14974 #if HAVE_UNISTD_H
14975 # include <unistd.h>
14976 #endif
14978 #if !HAVE_ALARM
14979 # define alarm(X) /* empty */
14980 #endif
14982 /* Work around redefinition to rpl_putenv by other config tests. */
14983 #undef putenv
14985 static time_t time_t_max;
14986 static time_t time_t_min;
14988 /* Values we'll use to set the TZ environment variable. */
14989 static char *tz_strings[] = {
14990 (char *) 0, "TZ=GMT0", "TZ=JST-9",
14991 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
14993 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
14995 /* Fail if mktime fails to convert a date in the spring-forward gap.
14996 Based on a problem report from Andreas Jaeger. */
14997 static void
14998 spring_forward_gap ()
15000 /* glibc (up to about 1998-10-07) failed this test. */
15001 struct tm tm;
15003 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
15004 instead of "TZ=America/Vancouver" in order to detect the bug even
15005 on systems that don't support the Olson extension, or don't have the
15006 full zoneinfo tables installed. */
15007 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
15009 tm.tm_year = 98;
15010 tm.tm_mon = 3;
15011 tm.tm_mday = 5;
15012 tm.tm_hour = 2;
15013 tm.tm_min = 0;
15014 tm.tm_sec = 0;
15015 tm.tm_isdst = -1;
15016 if (mktime (&tm) == (time_t)-1)
15017 exit (1);
15020 static void
15021 mktime_test1 (now)
15022 time_t now;
15024 struct tm *lt;
15025 if ((lt = localtime (&now)) && mktime (lt) != now)
15026 exit (1);
15029 static void
15030 mktime_test (now)
15031 time_t now;
15033 mktime_test1 (now);
15034 mktime_test1 ((time_t) (time_t_max - now));
15035 mktime_test1 ((time_t) (time_t_min + now));
15038 static void
15039 irix_6_4_bug ()
15041 /* Based on code from Ariel Faigon. */
15042 struct tm tm;
15043 tm.tm_year = 96;
15044 tm.tm_mon = 3;
15045 tm.tm_mday = 0;
15046 tm.tm_hour = 0;
15047 tm.tm_min = 0;
15048 tm.tm_sec = 0;
15049 tm.tm_isdst = -1;
15050 mktime (&tm);
15051 if (tm.tm_mon != 2 || tm.tm_mday != 31)
15052 exit (1);
15055 static void
15056 bigtime_test (j)
15057 int j;
15059 struct tm tm;
15060 time_t now;
15061 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
15062 now = mktime (&tm);
15063 if (now != (time_t) -1)
15065 struct tm *lt = localtime (&now);
15066 if (! (lt
15067 && lt->tm_year == tm.tm_year
15068 && lt->tm_mon == tm.tm_mon
15069 && lt->tm_mday == tm.tm_mday
15070 && lt->tm_hour == tm.tm_hour
15071 && lt->tm_min == tm.tm_min
15072 && lt->tm_sec == tm.tm_sec
15073 && lt->tm_yday == tm.tm_yday
15074 && lt->tm_wday == tm.tm_wday
15075 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
15076 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
15077 exit (1);
15082 main ()
15084 time_t t, delta;
15085 int i, j;
15087 /* This test makes some buggy mktime implementations loop.
15088 Give up after 60 seconds; a mktime slower than that
15089 isn't worth using anyway. */
15090 alarm (60);
15092 for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
15093 continue;
15094 time_t_max--;
15095 if ((time_t) -1 < 0)
15096 for (time_t_min = -1; (time_t) (time_t_min * 2) < 0; time_t_min *= 2)
15097 continue;
15098 delta = time_t_max / 997; /* a suitable prime number */
15099 for (i = 0; i < N_STRINGS; i++)
15101 if (tz_strings[i])
15102 putenv (tz_strings[i]);
15104 for (t = 0; t <= time_t_max - delta; t += delta)
15105 mktime_test (t);
15106 mktime_test ((time_t) 1);
15107 mktime_test ((time_t) (60 * 60));
15108 mktime_test ((time_t) (60 * 60 * 24));
15110 for (j = 1; 0 < j; j *= 2)
15111 bigtime_test (j);
15112 bigtime_test (j - 1);
15114 irix_6_4_bug ();
15115 spring_forward_gap ();
15116 exit (0);
15118 _ACEOF
15119 rm -f conftest$ac_exeext
15120 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15121 (eval $ac_link) 2>&5
15122 ac_status=$?
15123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15124 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15126 (eval $ac_try) 2>&5
15127 ac_status=$?
15128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15129 (exit $ac_status); }; }; then
15130 ac_cv_func_working_mktime=yes
15131 else
15132 echo "$as_me: program exited with status $ac_status" >&5
15133 echo "$as_me: failed program was:" >&5
15134 sed 's/^/| /' conftest.$ac_ext >&5
15136 ( exit $ac_status )
15137 ac_cv_func_working_mktime=no
15139 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15142 echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
15143 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6
15144 if test $ac_cv_func_working_mktime = no; then
15145 case $LIBOBJS in
15146 "mktime.$ac_objext" | \
15147 *" mktime.$ac_objext" | \
15148 "mktime.$ac_objext "* | \
15149 *" mktime.$ac_objext "* ) ;;
15150 *) LIBOBJS="$LIBOBJS mktime.$ac_objext" ;;
15151 esac
15155 if test "$ac_cv_func_working_mktime" = no; then
15157 cat >>confdefs.h <<\_ACEOF
15158 #define BROKEN_MKTIME 1
15159 _ACEOF
15163 ac_have_func=no # yes means we've found a way to get the load average.
15165 # Make sure getloadavg.c is where it belongs, at configure-time.
15166 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" ||
15167 { { echo "$as_me:$LINENO: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&5
15168 echo "$as_me: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&2;}
15169 { (exit 1); exit 1; }; }
15171 ac_save_LIBS=$LIBS
15173 # Check for getloadavg, but be sure not to touch the cache variable.
15174 (echo "$as_me:$LINENO: checking for getloadavg" >&5
15175 echo $ECHO_N "checking for getloadavg... $ECHO_C" >&6
15176 if test "${ac_cv_func_getloadavg+set}" = set; then
15177 echo $ECHO_N "(cached) $ECHO_C" >&6
15178 else
15179 cat >conftest.$ac_ext <<_ACEOF
15180 /* confdefs.h. */
15181 _ACEOF
15182 cat confdefs.h >>conftest.$ac_ext
15183 cat >>conftest.$ac_ext <<_ACEOF
15184 /* end confdefs.h. */
15185 /* Define getloadavg to an innocuous variant, in case <limits.h> declares getloadavg.
15186 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15187 #define getloadavg innocuous_getloadavg
15189 /* System header to define __stub macros and hopefully few prototypes,
15190 which can conflict with char getloadavg (); below.
15191 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15192 <limits.h> exists even on freestanding compilers. */
15194 #ifdef __STDC__
15195 # include <limits.h>
15196 #else
15197 # include <assert.h>
15198 #endif
15200 #undef getloadavg
15202 /* Override any gcc2 internal prototype to avoid an error. */
15203 #ifdef __cplusplus
15204 extern "C"
15206 #endif
15207 /* We use char because int might match the return type of a gcc2
15208 builtin and then its argument prototype would still apply. */
15209 char getloadavg ();
15210 /* The GNU C library defines this for functions which it implements
15211 to always fail with ENOSYS. Some functions are actually named
15212 something starting with __ and the normal name is an alias. */
15213 #if defined (__stub_getloadavg) || defined (__stub___getloadavg)
15214 choke me
15215 #else
15216 char (*f) () = getloadavg;
15217 #endif
15218 #ifdef __cplusplus
15220 #endif
15223 main ()
15225 return f != getloadavg;
15227 return 0;
15229 _ACEOF
15230 rm -f conftest.$ac_objext conftest$ac_exeext
15231 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15232 (eval $ac_link) 2>conftest.er1
15233 ac_status=$?
15234 grep -v '^ *+' conftest.er1 >conftest.err
15235 rm -f conftest.er1
15236 cat conftest.err >&5
15237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15238 (exit $ac_status); } &&
15239 { ac_try='test -z "$ac_c_werror_flag"
15240 || test ! -s conftest.err'
15241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15242 (eval $ac_try) 2>&5
15243 ac_status=$?
15244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15245 (exit $ac_status); }; } &&
15246 { ac_try='test -s conftest$ac_exeext'
15247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15248 (eval $ac_try) 2>&5
15249 ac_status=$?
15250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15251 (exit $ac_status); }; }; then
15252 ac_cv_func_getloadavg=yes
15253 else
15254 echo "$as_me: failed program was:" >&5
15255 sed 's/^/| /' conftest.$ac_ext >&5
15257 ac_cv_func_getloadavg=no
15259 rm -f conftest.err conftest.$ac_objext \
15260 conftest$ac_exeext conftest.$ac_ext
15262 echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg" >&5
15263 echo "${ECHO_T}$ac_cv_func_getloadavg" >&6
15264 if test $ac_cv_func_getloadavg = yes; then
15265 exit 0
15266 else
15267 exit 1
15269 ) && ac_have_func=yes
15271 # On HPUX9, an unprivileged user can get load averages through this function.
15273 for ac_func in pstat_getdynamic
15275 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15276 echo "$as_me:$LINENO: checking for $ac_func" >&5
15277 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15278 if eval "test \"\${$as_ac_var+set}\" = set"; then
15279 echo $ECHO_N "(cached) $ECHO_C" >&6
15280 else
15281 cat >conftest.$ac_ext <<_ACEOF
15282 /* confdefs.h. */
15283 _ACEOF
15284 cat confdefs.h >>conftest.$ac_ext
15285 cat >>conftest.$ac_ext <<_ACEOF
15286 /* end confdefs.h. */
15287 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15288 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15289 #define $ac_func innocuous_$ac_func
15291 /* System header to define __stub macros and hopefully few prototypes,
15292 which can conflict with char $ac_func (); below.
15293 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15294 <limits.h> exists even on freestanding compilers. */
15296 #ifdef __STDC__
15297 # include <limits.h>
15298 #else
15299 # include <assert.h>
15300 #endif
15302 #undef $ac_func
15304 /* Override any gcc2 internal prototype to avoid an error. */
15305 #ifdef __cplusplus
15306 extern "C"
15308 #endif
15309 /* We use char because int might match the return type of a gcc2
15310 builtin and then its argument prototype would still apply. */
15311 char $ac_func ();
15312 /* The GNU C library defines this for functions which it implements
15313 to always fail with ENOSYS. Some functions are actually named
15314 something starting with __ and the normal name is an alias. */
15315 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15316 choke me
15317 #else
15318 char (*f) () = $ac_func;
15319 #endif
15320 #ifdef __cplusplus
15322 #endif
15325 main ()
15327 return f != $ac_func;
15329 return 0;
15331 _ACEOF
15332 rm -f conftest.$ac_objext conftest$ac_exeext
15333 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15334 (eval $ac_link) 2>conftest.er1
15335 ac_status=$?
15336 grep -v '^ *+' conftest.er1 >conftest.err
15337 rm -f conftest.er1
15338 cat conftest.err >&5
15339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15340 (exit $ac_status); } &&
15341 { ac_try='test -z "$ac_c_werror_flag"
15342 || test ! -s conftest.err'
15343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15344 (eval $ac_try) 2>&5
15345 ac_status=$?
15346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15347 (exit $ac_status); }; } &&
15348 { ac_try='test -s conftest$ac_exeext'
15349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15350 (eval $ac_try) 2>&5
15351 ac_status=$?
15352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15353 (exit $ac_status); }; }; then
15354 eval "$as_ac_var=yes"
15355 else
15356 echo "$as_me: failed program was:" >&5
15357 sed 's/^/| /' conftest.$ac_ext >&5
15359 eval "$as_ac_var=no"
15361 rm -f conftest.err conftest.$ac_objext \
15362 conftest$ac_exeext conftest.$ac_ext
15364 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15365 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15366 if test `eval echo '${'$as_ac_var'}'` = yes; then
15367 cat >>confdefs.h <<_ACEOF
15368 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15369 _ACEOF
15372 done
15375 # Solaris has libkstat which does not require root.
15377 echo "$as_me:$LINENO: checking for kstat_open in -lkstat" >&5
15378 echo $ECHO_N "checking for kstat_open in -lkstat... $ECHO_C" >&6
15379 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
15380 echo $ECHO_N "(cached) $ECHO_C" >&6
15381 else
15382 ac_check_lib_save_LIBS=$LIBS
15383 LIBS="-lkstat $LIBS"
15384 cat >conftest.$ac_ext <<_ACEOF
15385 /* confdefs.h. */
15386 _ACEOF
15387 cat confdefs.h >>conftest.$ac_ext
15388 cat >>conftest.$ac_ext <<_ACEOF
15389 /* end confdefs.h. */
15391 /* Override any gcc2 internal prototype to avoid an error. */
15392 #ifdef __cplusplus
15393 extern "C"
15394 #endif
15395 /* We use char because int might match the return type of a gcc2
15396 builtin and then its argument prototype would still apply. */
15397 char kstat_open ();
15399 main ()
15401 kstat_open ();
15403 return 0;
15405 _ACEOF
15406 rm -f conftest.$ac_objext conftest$ac_exeext
15407 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15408 (eval $ac_link) 2>conftest.er1
15409 ac_status=$?
15410 grep -v '^ *+' conftest.er1 >conftest.err
15411 rm -f conftest.er1
15412 cat conftest.err >&5
15413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15414 (exit $ac_status); } &&
15415 { ac_try='test -z "$ac_c_werror_flag"
15416 || test ! -s conftest.err'
15417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15418 (eval $ac_try) 2>&5
15419 ac_status=$?
15420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15421 (exit $ac_status); }; } &&
15422 { ac_try='test -s conftest$ac_exeext'
15423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15424 (eval $ac_try) 2>&5
15425 ac_status=$?
15426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15427 (exit $ac_status); }; }; then
15428 ac_cv_lib_kstat_kstat_open=yes
15429 else
15430 echo "$as_me: failed program was:" >&5
15431 sed 's/^/| /' conftest.$ac_ext >&5
15433 ac_cv_lib_kstat_kstat_open=no
15435 rm -f conftest.err conftest.$ac_objext \
15436 conftest$ac_exeext conftest.$ac_ext
15437 LIBS=$ac_check_lib_save_LIBS
15439 echo "$as_me:$LINENO: result: $ac_cv_lib_kstat_kstat_open" >&5
15440 echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6
15441 if test $ac_cv_lib_kstat_kstat_open = yes; then
15442 cat >>confdefs.h <<_ACEOF
15443 #define HAVE_LIBKSTAT 1
15444 _ACEOF
15446 LIBS="-lkstat $LIBS"
15450 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes
15452 # Some systems with -lutil have (and need) -lkvm as well, some do not.
15453 # On Solaris, -lkvm requires nlist from -lelf, so check that first
15454 # to get the right answer into the cache.
15455 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
15456 if test $ac_have_func = no; then
15457 echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
15458 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
15459 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
15460 echo $ECHO_N "(cached) $ECHO_C" >&6
15461 else
15462 ac_check_lib_save_LIBS=$LIBS
15463 LIBS="-lelf $LIBS"
15464 cat >conftest.$ac_ext <<_ACEOF
15465 /* confdefs.h. */
15466 _ACEOF
15467 cat confdefs.h >>conftest.$ac_ext
15468 cat >>conftest.$ac_ext <<_ACEOF
15469 /* end confdefs.h. */
15471 /* Override any gcc2 internal prototype to avoid an error. */
15472 #ifdef __cplusplus
15473 extern "C"
15474 #endif
15475 /* We use char because int might match the return type of a gcc2
15476 builtin and then its argument prototype would still apply. */
15477 char elf_begin ();
15479 main ()
15481 elf_begin ();
15483 return 0;
15485 _ACEOF
15486 rm -f conftest.$ac_objext conftest$ac_exeext
15487 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15488 (eval $ac_link) 2>conftest.er1
15489 ac_status=$?
15490 grep -v '^ *+' conftest.er1 >conftest.err
15491 rm -f conftest.er1
15492 cat conftest.err >&5
15493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15494 (exit $ac_status); } &&
15495 { ac_try='test -z "$ac_c_werror_flag"
15496 || test ! -s conftest.err'
15497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15498 (eval $ac_try) 2>&5
15499 ac_status=$?
15500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15501 (exit $ac_status); }; } &&
15502 { ac_try='test -s conftest$ac_exeext'
15503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15504 (eval $ac_try) 2>&5
15505 ac_status=$?
15506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15507 (exit $ac_status); }; }; then
15508 ac_cv_lib_elf_elf_begin=yes
15509 else
15510 echo "$as_me: failed program was:" >&5
15511 sed 's/^/| /' conftest.$ac_ext >&5
15513 ac_cv_lib_elf_elf_begin=no
15515 rm -f conftest.err conftest.$ac_objext \
15516 conftest$ac_exeext conftest.$ac_ext
15517 LIBS=$ac_check_lib_save_LIBS
15519 echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
15520 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
15521 if test $ac_cv_lib_elf_elf_begin = yes; then
15522 LIBS="-lelf $LIBS"
15526 if test $ac_have_func = no; then
15527 echo "$as_me:$LINENO: checking for kvm_open in -lkvm" >&5
15528 echo $ECHO_N "checking for kvm_open in -lkvm... $ECHO_C" >&6
15529 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
15530 echo $ECHO_N "(cached) $ECHO_C" >&6
15531 else
15532 ac_check_lib_save_LIBS=$LIBS
15533 LIBS="-lkvm $LIBS"
15534 cat >conftest.$ac_ext <<_ACEOF
15535 /* confdefs.h. */
15536 _ACEOF
15537 cat confdefs.h >>conftest.$ac_ext
15538 cat >>conftest.$ac_ext <<_ACEOF
15539 /* end confdefs.h. */
15541 /* Override any gcc2 internal prototype to avoid an error. */
15542 #ifdef __cplusplus
15543 extern "C"
15544 #endif
15545 /* We use char because int might match the return type of a gcc2
15546 builtin and then its argument prototype would still apply. */
15547 char kvm_open ();
15549 main ()
15551 kvm_open ();
15553 return 0;
15555 _ACEOF
15556 rm -f conftest.$ac_objext conftest$ac_exeext
15557 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15558 (eval $ac_link) 2>conftest.er1
15559 ac_status=$?
15560 grep -v '^ *+' conftest.er1 >conftest.err
15561 rm -f conftest.er1
15562 cat conftest.err >&5
15563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15564 (exit $ac_status); } &&
15565 { ac_try='test -z "$ac_c_werror_flag"
15566 || test ! -s conftest.err'
15567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15568 (eval $ac_try) 2>&5
15569 ac_status=$?
15570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15571 (exit $ac_status); }; } &&
15572 { ac_try='test -s conftest$ac_exeext'
15573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15574 (eval $ac_try) 2>&5
15575 ac_status=$?
15576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15577 (exit $ac_status); }; }; then
15578 ac_cv_lib_kvm_kvm_open=yes
15579 else
15580 echo "$as_me: failed program was:" >&5
15581 sed 's/^/| /' conftest.$ac_ext >&5
15583 ac_cv_lib_kvm_kvm_open=no
15585 rm -f conftest.err conftest.$ac_objext \
15586 conftest$ac_exeext conftest.$ac_ext
15587 LIBS=$ac_check_lib_save_LIBS
15589 echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_kvm_open" >&5
15590 echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6
15591 if test $ac_cv_lib_kvm_kvm_open = yes; then
15592 LIBS="-lkvm $LIBS"
15595 # Check for the 4.4BSD definition of getloadavg.
15596 echo "$as_me:$LINENO: checking for getloadavg in -lutil" >&5
15597 echo $ECHO_N "checking for getloadavg in -lutil... $ECHO_C" >&6
15598 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
15599 echo $ECHO_N "(cached) $ECHO_C" >&6
15600 else
15601 ac_check_lib_save_LIBS=$LIBS
15602 LIBS="-lutil $LIBS"
15603 cat >conftest.$ac_ext <<_ACEOF
15604 /* confdefs.h. */
15605 _ACEOF
15606 cat confdefs.h >>conftest.$ac_ext
15607 cat >>conftest.$ac_ext <<_ACEOF
15608 /* end confdefs.h. */
15610 /* Override any gcc2 internal prototype to avoid an error. */
15611 #ifdef __cplusplus
15612 extern "C"
15613 #endif
15614 /* We use char because int might match the return type of a gcc2
15615 builtin and then its argument prototype would still apply. */
15616 char getloadavg ();
15618 main ()
15620 getloadavg ();
15622 return 0;
15624 _ACEOF
15625 rm -f conftest.$ac_objext conftest$ac_exeext
15626 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15627 (eval $ac_link) 2>conftest.er1
15628 ac_status=$?
15629 grep -v '^ *+' conftest.er1 >conftest.err
15630 rm -f conftest.er1
15631 cat conftest.err >&5
15632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15633 (exit $ac_status); } &&
15634 { ac_try='test -z "$ac_c_werror_flag"
15635 || test ! -s conftest.err'
15636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15637 (eval $ac_try) 2>&5
15638 ac_status=$?
15639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15640 (exit $ac_status); }; } &&
15641 { ac_try='test -s conftest$ac_exeext'
15642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15643 (eval $ac_try) 2>&5
15644 ac_status=$?
15645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15646 (exit $ac_status); }; }; then
15647 ac_cv_lib_util_getloadavg=yes
15648 else
15649 echo "$as_me: failed program was:" >&5
15650 sed 's/^/| /' conftest.$ac_ext >&5
15652 ac_cv_lib_util_getloadavg=no
15654 rm -f conftest.err conftest.$ac_objext \
15655 conftest$ac_exeext conftest.$ac_ext
15656 LIBS=$ac_check_lib_save_LIBS
15658 echo "$as_me:$LINENO: result: $ac_cv_lib_util_getloadavg" >&5
15659 echo "${ECHO_T}$ac_cv_lib_util_getloadavg" >&6
15660 if test $ac_cv_lib_util_getloadavg = yes; then
15661 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
15666 if test $ac_have_func = no; then
15667 # There is a commonly available library for RS/6000 AIX.
15668 # Since it is not a standard part of AIX, it might be installed locally.
15669 ac_getloadavg_LIBS=$LIBS
15670 LIBS="-L/usr/local/lib $LIBS"
15671 echo "$as_me:$LINENO: checking for getloadavg in -lgetloadavg" >&5
15672 echo $ECHO_N "checking for getloadavg in -lgetloadavg... $ECHO_C" >&6
15673 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
15674 echo $ECHO_N "(cached) $ECHO_C" >&6
15675 else
15676 ac_check_lib_save_LIBS=$LIBS
15677 LIBS="-lgetloadavg $LIBS"
15678 cat >conftest.$ac_ext <<_ACEOF
15679 /* confdefs.h. */
15680 _ACEOF
15681 cat confdefs.h >>conftest.$ac_ext
15682 cat >>conftest.$ac_ext <<_ACEOF
15683 /* end confdefs.h. */
15685 /* Override any gcc2 internal prototype to avoid an error. */
15686 #ifdef __cplusplus
15687 extern "C"
15688 #endif
15689 /* We use char because int might match the return type of a gcc2
15690 builtin and then its argument prototype would still apply. */
15691 char getloadavg ();
15693 main ()
15695 getloadavg ();
15697 return 0;
15699 _ACEOF
15700 rm -f conftest.$ac_objext conftest$ac_exeext
15701 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15702 (eval $ac_link) 2>conftest.er1
15703 ac_status=$?
15704 grep -v '^ *+' conftest.er1 >conftest.err
15705 rm -f conftest.er1
15706 cat conftest.err >&5
15707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15708 (exit $ac_status); } &&
15709 { ac_try='test -z "$ac_c_werror_flag"
15710 || test ! -s conftest.err'
15711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15712 (eval $ac_try) 2>&5
15713 ac_status=$?
15714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15715 (exit $ac_status); }; } &&
15716 { ac_try='test -s conftest$ac_exeext'
15717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15718 (eval $ac_try) 2>&5
15719 ac_status=$?
15720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15721 (exit $ac_status); }; }; then
15722 ac_cv_lib_getloadavg_getloadavg=yes
15723 else
15724 echo "$as_me: failed program was:" >&5
15725 sed 's/^/| /' conftest.$ac_ext >&5
15727 ac_cv_lib_getloadavg_getloadavg=no
15729 rm -f conftest.err conftest.$ac_objext \
15730 conftest$ac_exeext conftest.$ac_ext
15731 LIBS=$ac_check_lib_save_LIBS
15733 echo "$as_me:$LINENO: result: $ac_cv_lib_getloadavg_getloadavg" >&5
15734 echo "${ECHO_T}$ac_cv_lib_getloadavg_getloadavg" >&6
15735 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
15736 LIBS="-lgetloadavg $LIBS"
15737 else
15738 LIBS=$ac_getloadavg_LIBS
15743 # Make sure it is really in the library, if we think we found it,
15744 # otherwise set up the replacement function.
15746 for ac_func in getloadavg
15748 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15749 echo "$as_me:$LINENO: checking for $ac_func" >&5
15750 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15751 if eval "test \"\${$as_ac_var+set}\" = set"; then
15752 echo $ECHO_N "(cached) $ECHO_C" >&6
15753 else
15754 cat >conftest.$ac_ext <<_ACEOF
15755 /* confdefs.h. */
15756 _ACEOF
15757 cat confdefs.h >>conftest.$ac_ext
15758 cat >>conftest.$ac_ext <<_ACEOF
15759 /* end confdefs.h. */
15760 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15761 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15762 #define $ac_func innocuous_$ac_func
15764 /* System header to define __stub macros and hopefully few prototypes,
15765 which can conflict with char $ac_func (); below.
15766 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15767 <limits.h> exists even on freestanding compilers. */
15769 #ifdef __STDC__
15770 # include <limits.h>
15771 #else
15772 # include <assert.h>
15773 #endif
15775 #undef $ac_func
15777 /* Override any gcc2 internal prototype to avoid an error. */
15778 #ifdef __cplusplus
15779 extern "C"
15781 #endif
15782 /* We use char because int might match the return type of a gcc2
15783 builtin and then its argument prototype would still apply. */
15784 char $ac_func ();
15785 /* The GNU C library defines this for functions which it implements
15786 to always fail with ENOSYS. Some functions are actually named
15787 something starting with __ and the normal name is an alias. */
15788 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15789 choke me
15790 #else
15791 char (*f) () = $ac_func;
15792 #endif
15793 #ifdef __cplusplus
15795 #endif
15798 main ()
15800 return f != $ac_func;
15802 return 0;
15804 _ACEOF
15805 rm -f conftest.$ac_objext conftest$ac_exeext
15806 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15807 (eval $ac_link) 2>conftest.er1
15808 ac_status=$?
15809 grep -v '^ *+' conftest.er1 >conftest.err
15810 rm -f conftest.er1
15811 cat conftest.err >&5
15812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15813 (exit $ac_status); } &&
15814 { ac_try='test -z "$ac_c_werror_flag"
15815 || test ! -s conftest.err'
15816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15817 (eval $ac_try) 2>&5
15818 ac_status=$?
15819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15820 (exit $ac_status); }; } &&
15821 { ac_try='test -s conftest$ac_exeext'
15822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15823 (eval $ac_try) 2>&5
15824 ac_status=$?
15825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15826 (exit $ac_status); }; }; then
15827 eval "$as_ac_var=yes"
15828 else
15829 echo "$as_me: failed program was:" >&5
15830 sed 's/^/| /' conftest.$ac_ext >&5
15832 eval "$as_ac_var=no"
15834 rm -f conftest.err conftest.$ac_objext \
15835 conftest$ac_exeext conftest.$ac_ext
15837 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15838 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15839 if test `eval echo '${'$as_ac_var'}'` = yes; then
15840 cat >>confdefs.h <<_ACEOF
15841 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15842 _ACEOF
15844 else
15845 case $LIBOBJS in
15846 "getloadavg.$ac_objext" | \
15847 *" getloadavg.$ac_objext" | \
15848 "getloadavg.$ac_objext "* | \
15849 *" getloadavg.$ac_objext "* ) ;;
15850 *) LIBOBJS="$LIBOBJS getloadavg.$ac_objext" ;;
15851 esac
15854 cat >>confdefs.h <<\_ACEOF
15855 #define C_GETLOADAVG 1
15856 _ACEOF
15858 # Figure out what our getloadavg.c needs.
15859 ac_have_func=no
15860 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
15861 echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
15862 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
15863 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
15864 echo $ECHO_N "(cached) $ECHO_C" >&6
15866 echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
15867 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
15868 else
15869 # Is the header compilable?
15870 echo "$as_me:$LINENO: checking sys/dg_sys_info.h usability" >&5
15871 echo $ECHO_N "checking sys/dg_sys_info.h usability... $ECHO_C" >&6
15872 cat >conftest.$ac_ext <<_ACEOF
15873 /* confdefs.h. */
15874 _ACEOF
15875 cat confdefs.h >>conftest.$ac_ext
15876 cat >>conftest.$ac_ext <<_ACEOF
15877 /* end confdefs.h. */
15878 $ac_includes_default
15879 #include <sys/dg_sys_info.h>
15880 _ACEOF
15881 rm -f conftest.$ac_objext
15882 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15883 (eval $ac_compile) 2>conftest.er1
15884 ac_status=$?
15885 grep -v '^ *+' conftest.er1 >conftest.err
15886 rm -f conftest.er1
15887 cat conftest.err >&5
15888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15889 (exit $ac_status); } &&
15890 { ac_try='test -z "$ac_c_werror_flag"
15891 || test ! -s conftest.err'
15892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15893 (eval $ac_try) 2>&5
15894 ac_status=$?
15895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15896 (exit $ac_status); }; } &&
15897 { ac_try='test -s conftest.$ac_objext'
15898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15899 (eval $ac_try) 2>&5
15900 ac_status=$?
15901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15902 (exit $ac_status); }; }; then
15903 ac_header_compiler=yes
15904 else
15905 echo "$as_me: failed program was:" >&5
15906 sed 's/^/| /' conftest.$ac_ext >&5
15908 ac_header_compiler=no
15910 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15911 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15912 echo "${ECHO_T}$ac_header_compiler" >&6
15914 # Is the header present?
15915 echo "$as_me:$LINENO: checking sys/dg_sys_info.h presence" >&5
15916 echo $ECHO_N "checking sys/dg_sys_info.h presence... $ECHO_C" >&6
15917 cat >conftest.$ac_ext <<_ACEOF
15918 /* confdefs.h. */
15919 _ACEOF
15920 cat confdefs.h >>conftest.$ac_ext
15921 cat >>conftest.$ac_ext <<_ACEOF
15922 /* end confdefs.h. */
15923 #include <sys/dg_sys_info.h>
15924 _ACEOF
15925 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15926 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15927 ac_status=$?
15928 grep -v '^ *+' conftest.er1 >conftest.err
15929 rm -f conftest.er1
15930 cat conftest.err >&5
15931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15932 (exit $ac_status); } >/dev/null; then
15933 if test -s conftest.err; then
15934 ac_cpp_err=$ac_c_preproc_warn_flag
15935 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15936 else
15937 ac_cpp_err=
15939 else
15940 ac_cpp_err=yes
15942 if test -z "$ac_cpp_err"; then
15943 ac_header_preproc=yes
15944 else
15945 echo "$as_me: failed program was:" >&5
15946 sed 's/^/| /' conftest.$ac_ext >&5
15948 ac_header_preproc=no
15950 rm -f conftest.err conftest.$ac_ext
15951 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15952 echo "${ECHO_T}$ac_header_preproc" >&6
15954 # So? What about this header?
15955 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15956 yes:no: )
15957 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&5
15958 echo "$as_me: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15959 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&5
15960 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&2;}
15961 ac_header_preproc=yes
15963 no:yes:* )
15964 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&5
15965 echo "$as_me: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&2;}
15966 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&5
15967 echo "$as_me: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&2;}
15968 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&5
15969 echo "$as_me: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&2;}
15970 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&5
15971 echo "$as_me: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&2;}
15972 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
15973 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;}
15974 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&5
15975 echo "$as_me: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&2;}
15977 cat <<\_ASBOX
15978 ## ------------------------------------------ ##
15979 ## Report this to the AC_PACKAGE_NAME lists. ##
15980 ## ------------------------------------------ ##
15981 _ASBOX
15983 sed "s/^/$as_me: WARNING: /" >&2
15985 esac
15986 echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
15987 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
15988 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
15989 echo $ECHO_N "(cached) $ECHO_C" >&6
15990 else
15991 ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc
15993 echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
15994 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
15997 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
15998 ac_have_func=yes
16000 cat >>confdefs.h <<\_ACEOF
16001 #define DGUX 1
16002 _ACEOF
16005 echo "$as_me:$LINENO: checking for dg_sys_info in -ldgc" >&5
16006 echo $ECHO_N "checking for dg_sys_info in -ldgc... $ECHO_C" >&6
16007 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
16008 echo $ECHO_N "(cached) $ECHO_C" >&6
16009 else
16010 ac_check_lib_save_LIBS=$LIBS
16011 LIBS="-ldgc $LIBS"
16012 cat >conftest.$ac_ext <<_ACEOF
16013 /* confdefs.h. */
16014 _ACEOF
16015 cat confdefs.h >>conftest.$ac_ext
16016 cat >>conftest.$ac_ext <<_ACEOF
16017 /* end confdefs.h. */
16019 /* Override any gcc2 internal prototype to avoid an error. */
16020 #ifdef __cplusplus
16021 extern "C"
16022 #endif
16023 /* We use char because int might match the return type of a gcc2
16024 builtin and then its argument prototype would still apply. */
16025 char dg_sys_info ();
16027 main ()
16029 dg_sys_info ();
16031 return 0;
16033 _ACEOF
16034 rm -f conftest.$ac_objext conftest$ac_exeext
16035 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16036 (eval $ac_link) 2>conftest.er1
16037 ac_status=$?
16038 grep -v '^ *+' conftest.er1 >conftest.err
16039 rm -f conftest.er1
16040 cat conftest.err >&5
16041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16042 (exit $ac_status); } &&
16043 { ac_try='test -z "$ac_c_werror_flag"
16044 || test ! -s conftest.err'
16045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16046 (eval $ac_try) 2>&5
16047 ac_status=$?
16048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16049 (exit $ac_status); }; } &&
16050 { ac_try='test -s conftest$ac_exeext'
16051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16052 (eval $ac_try) 2>&5
16053 ac_status=$?
16054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16055 (exit $ac_status); }; }; then
16056 ac_cv_lib_dgc_dg_sys_info=yes
16057 else
16058 echo "$as_me: failed program was:" >&5
16059 sed 's/^/| /' conftest.$ac_ext >&5
16061 ac_cv_lib_dgc_dg_sys_info=no
16063 rm -f conftest.err conftest.$ac_objext \
16064 conftest$ac_exeext conftest.$ac_ext
16065 LIBS=$ac_check_lib_save_LIBS
16067 echo "$as_me:$LINENO: result: $ac_cv_lib_dgc_dg_sys_info" >&5
16068 echo "${ECHO_T}$ac_cv_lib_dgc_dg_sys_info" >&6
16069 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
16070 cat >>confdefs.h <<_ACEOF
16071 #define HAVE_LIBDGC 1
16072 _ACEOF
16074 LIBS="-ldgc $LIBS"
16082 if test "${ac_cv_header_locale_h+set}" = set; then
16083 echo "$as_me:$LINENO: checking for locale.h" >&5
16084 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
16085 if test "${ac_cv_header_locale_h+set}" = set; then
16086 echo $ECHO_N "(cached) $ECHO_C" >&6
16088 echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
16089 echo "${ECHO_T}$ac_cv_header_locale_h" >&6
16090 else
16091 # Is the header compilable?
16092 echo "$as_me:$LINENO: checking locale.h usability" >&5
16093 echo $ECHO_N "checking locale.h usability... $ECHO_C" >&6
16094 cat >conftest.$ac_ext <<_ACEOF
16095 /* confdefs.h. */
16096 _ACEOF
16097 cat confdefs.h >>conftest.$ac_ext
16098 cat >>conftest.$ac_ext <<_ACEOF
16099 /* end confdefs.h. */
16100 $ac_includes_default
16101 #include <locale.h>
16102 _ACEOF
16103 rm -f conftest.$ac_objext
16104 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16105 (eval $ac_compile) 2>conftest.er1
16106 ac_status=$?
16107 grep -v '^ *+' conftest.er1 >conftest.err
16108 rm -f conftest.er1
16109 cat conftest.err >&5
16110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16111 (exit $ac_status); } &&
16112 { ac_try='test -z "$ac_c_werror_flag"
16113 || test ! -s conftest.err'
16114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16115 (eval $ac_try) 2>&5
16116 ac_status=$?
16117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16118 (exit $ac_status); }; } &&
16119 { ac_try='test -s conftest.$ac_objext'
16120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16121 (eval $ac_try) 2>&5
16122 ac_status=$?
16123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16124 (exit $ac_status); }; }; then
16125 ac_header_compiler=yes
16126 else
16127 echo "$as_me: failed program was:" >&5
16128 sed 's/^/| /' conftest.$ac_ext >&5
16130 ac_header_compiler=no
16132 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16133 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16134 echo "${ECHO_T}$ac_header_compiler" >&6
16136 # Is the header present?
16137 echo "$as_me:$LINENO: checking locale.h presence" >&5
16138 echo $ECHO_N "checking locale.h presence... $ECHO_C" >&6
16139 cat >conftest.$ac_ext <<_ACEOF
16140 /* confdefs.h. */
16141 _ACEOF
16142 cat confdefs.h >>conftest.$ac_ext
16143 cat >>conftest.$ac_ext <<_ACEOF
16144 /* end confdefs.h. */
16145 #include <locale.h>
16146 _ACEOF
16147 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16148 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16149 ac_status=$?
16150 grep -v '^ *+' conftest.er1 >conftest.err
16151 rm -f conftest.er1
16152 cat conftest.err >&5
16153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16154 (exit $ac_status); } >/dev/null; then
16155 if test -s conftest.err; then
16156 ac_cpp_err=$ac_c_preproc_warn_flag
16157 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16158 else
16159 ac_cpp_err=
16161 else
16162 ac_cpp_err=yes
16164 if test -z "$ac_cpp_err"; then
16165 ac_header_preproc=yes
16166 else
16167 echo "$as_me: failed program was:" >&5
16168 sed 's/^/| /' conftest.$ac_ext >&5
16170 ac_header_preproc=no
16172 rm -f conftest.err conftest.$ac_ext
16173 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16174 echo "${ECHO_T}$ac_header_preproc" >&6
16176 # So? What about this header?
16177 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16178 yes:no: )
16179 { echo "$as_me:$LINENO: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&5
16180 echo "$as_me: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16181 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the compiler's result" >&5
16182 echo "$as_me: WARNING: locale.h: proceeding with the compiler's result" >&2;}
16183 ac_header_preproc=yes
16185 no:yes:* )
16186 { echo "$as_me:$LINENO: WARNING: locale.h: present but cannot be compiled" >&5
16187 echo "$as_me: WARNING: locale.h: present but cannot be compiled" >&2;}
16188 { echo "$as_me:$LINENO: WARNING: locale.h: check for missing prerequisite headers?" >&5
16189 echo "$as_me: WARNING: locale.h: check for missing prerequisite headers?" >&2;}
16190 { echo "$as_me:$LINENO: WARNING: locale.h: see the Autoconf documentation" >&5
16191 echo "$as_me: WARNING: locale.h: see the Autoconf documentation" >&2;}
16192 { echo "$as_me:$LINENO: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&5
16193 echo "$as_me: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&2;}
16194 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
16195 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;}
16196 { echo "$as_me:$LINENO: WARNING: locale.h: in the future, the compiler will take precedence" >&5
16197 echo "$as_me: WARNING: locale.h: in the future, the compiler will take precedence" >&2;}
16199 cat <<\_ASBOX
16200 ## ------------------------------------------ ##
16201 ## Report this to the AC_PACKAGE_NAME lists. ##
16202 ## ------------------------------------------ ##
16203 _ASBOX
16205 sed "s/^/$as_me: WARNING: /" >&2
16207 esac
16208 echo "$as_me:$LINENO: checking for locale.h" >&5
16209 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
16210 if test "${ac_cv_header_locale_h+set}" = set; then
16211 echo $ECHO_N "(cached) $ECHO_C" >&6
16212 else
16213 ac_cv_header_locale_h=$ac_header_preproc
16215 echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
16216 echo "${ECHO_T}$ac_cv_header_locale_h" >&6
16222 for ac_func in setlocale
16224 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16225 echo "$as_me:$LINENO: checking for $ac_func" >&5
16226 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16227 if eval "test \"\${$as_ac_var+set}\" = set"; then
16228 echo $ECHO_N "(cached) $ECHO_C" >&6
16229 else
16230 cat >conftest.$ac_ext <<_ACEOF
16231 /* confdefs.h. */
16232 _ACEOF
16233 cat confdefs.h >>conftest.$ac_ext
16234 cat >>conftest.$ac_ext <<_ACEOF
16235 /* end confdefs.h. */
16236 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16237 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16238 #define $ac_func innocuous_$ac_func
16240 /* System header to define __stub macros and hopefully few prototypes,
16241 which can conflict with char $ac_func (); below.
16242 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16243 <limits.h> exists even on freestanding compilers. */
16245 #ifdef __STDC__
16246 # include <limits.h>
16247 #else
16248 # include <assert.h>
16249 #endif
16251 #undef $ac_func
16253 /* Override any gcc2 internal prototype to avoid an error. */
16254 #ifdef __cplusplus
16255 extern "C"
16257 #endif
16258 /* We use char because int might match the return type of a gcc2
16259 builtin and then its argument prototype would still apply. */
16260 char $ac_func ();
16261 /* The GNU C library defines this for functions which it implements
16262 to always fail with ENOSYS. Some functions are actually named
16263 something starting with __ and the normal name is an alias. */
16264 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16265 choke me
16266 #else
16267 char (*f) () = $ac_func;
16268 #endif
16269 #ifdef __cplusplus
16271 #endif
16274 main ()
16276 return f != $ac_func;
16278 return 0;
16280 _ACEOF
16281 rm -f conftest.$ac_objext conftest$ac_exeext
16282 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16283 (eval $ac_link) 2>conftest.er1
16284 ac_status=$?
16285 grep -v '^ *+' conftest.er1 >conftest.err
16286 rm -f conftest.er1
16287 cat conftest.err >&5
16288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16289 (exit $ac_status); } &&
16290 { ac_try='test -z "$ac_c_werror_flag"
16291 || test ! -s conftest.err'
16292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16293 (eval $ac_try) 2>&5
16294 ac_status=$?
16295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16296 (exit $ac_status); }; } &&
16297 { ac_try='test -s conftest$ac_exeext'
16298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16299 (eval $ac_try) 2>&5
16300 ac_status=$?
16301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16302 (exit $ac_status); }; }; then
16303 eval "$as_ac_var=yes"
16304 else
16305 echo "$as_me: failed program was:" >&5
16306 sed 's/^/| /' conftest.$ac_ext >&5
16308 eval "$as_ac_var=no"
16310 rm -f conftest.err conftest.$ac_objext \
16311 conftest$ac_exeext conftest.$ac_ext
16313 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16314 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16315 if test `eval echo '${'$as_ac_var'}'` = yes; then
16316 cat >>confdefs.h <<_ACEOF
16317 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16318 _ACEOF
16321 done
16324 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
16325 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
16326 # Irix 4.0.5F has the header but not the library.
16327 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
16328 ac_have_func=yes
16330 cat >>confdefs.h <<\_ACEOF
16331 #define SVR4 1
16332 _ACEOF
16336 if test $ac_have_func = no; then
16337 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
16338 echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
16339 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6
16340 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
16341 echo $ECHO_N "(cached) $ECHO_C" >&6
16343 echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
16344 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6
16345 else
16346 # Is the header compilable?
16347 echo "$as_me:$LINENO: checking inq_stats/cpustats.h usability" >&5
16348 echo $ECHO_N "checking inq_stats/cpustats.h usability... $ECHO_C" >&6
16349 cat >conftest.$ac_ext <<_ACEOF
16350 /* confdefs.h. */
16351 _ACEOF
16352 cat confdefs.h >>conftest.$ac_ext
16353 cat >>conftest.$ac_ext <<_ACEOF
16354 /* end confdefs.h. */
16355 $ac_includes_default
16356 #include <inq_stats/cpustats.h>
16357 _ACEOF
16358 rm -f conftest.$ac_objext
16359 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16360 (eval $ac_compile) 2>conftest.er1
16361 ac_status=$?
16362 grep -v '^ *+' conftest.er1 >conftest.err
16363 rm -f conftest.er1
16364 cat conftest.err >&5
16365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16366 (exit $ac_status); } &&
16367 { ac_try='test -z "$ac_c_werror_flag"
16368 || test ! -s conftest.err'
16369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16370 (eval $ac_try) 2>&5
16371 ac_status=$?
16372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16373 (exit $ac_status); }; } &&
16374 { ac_try='test -s conftest.$ac_objext'
16375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16376 (eval $ac_try) 2>&5
16377 ac_status=$?
16378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16379 (exit $ac_status); }; }; then
16380 ac_header_compiler=yes
16381 else
16382 echo "$as_me: failed program was:" >&5
16383 sed 's/^/| /' conftest.$ac_ext >&5
16385 ac_header_compiler=no
16387 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16388 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16389 echo "${ECHO_T}$ac_header_compiler" >&6
16391 # Is the header present?
16392 echo "$as_me:$LINENO: checking inq_stats/cpustats.h presence" >&5
16393 echo $ECHO_N "checking inq_stats/cpustats.h presence... $ECHO_C" >&6
16394 cat >conftest.$ac_ext <<_ACEOF
16395 /* confdefs.h. */
16396 _ACEOF
16397 cat confdefs.h >>conftest.$ac_ext
16398 cat >>conftest.$ac_ext <<_ACEOF
16399 /* end confdefs.h. */
16400 #include <inq_stats/cpustats.h>
16401 _ACEOF
16402 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16403 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16404 ac_status=$?
16405 grep -v '^ *+' conftest.er1 >conftest.err
16406 rm -f conftest.er1
16407 cat conftest.err >&5
16408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16409 (exit $ac_status); } >/dev/null; then
16410 if test -s conftest.err; then
16411 ac_cpp_err=$ac_c_preproc_warn_flag
16412 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16413 else
16414 ac_cpp_err=
16416 else
16417 ac_cpp_err=yes
16419 if test -z "$ac_cpp_err"; then
16420 ac_header_preproc=yes
16421 else
16422 echo "$as_me: failed program was:" >&5
16423 sed 's/^/| /' conftest.$ac_ext >&5
16425 ac_header_preproc=no
16427 rm -f conftest.err conftest.$ac_ext
16428 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16429 echo "${ECHO_T}$ac_header_preproc" >&6
16431 # So? What about this header?
16432 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16433 yes:no: )
16434 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
16435 echo "$as_me: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16436 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&5
16437 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&2;}
16438 ac_header_preproc=yes
16440 no:yes:* )
16441 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&5
16442 echo "$as_me: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&2;}
16443 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&5
16444 echo "$as_me: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&2;}
16445 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&5
16446 echo "$as_me: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&2;}
16447 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
16448 echo "$as_me: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
16449 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
16450 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;}
16451 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&5
16452 echo "$as_me: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&2;}
16454 cat <<\_ASBOX
16455 ## ------------------------------------------ ##
16456 ## Report this to the AC_PACKAGE_NAME lists. ##
16457 ## ------------------------------------------ ##
16458 _ASBOX
16460 sed "s/^/$as_me: WARNING: /" >&2
16462 esac
16463 echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
16464 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6
16465 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
16466 echo $ECHO_N "(cached) $ECHO_C" >&6
16467 else
16468 ac_cv_header_inq_stats_cpustats_h=$ac_header_preproc
16470 echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
16471 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6
16474 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
16475 ac_have_func=yes
16477 cat >>confdefs.h <<\_ACEOF
16478 #define UMAX 1
16479 _ACEOF
16482 cat >>confdefs.h <<\_ACEOF
16483 #define UMAX4_3 1
16484 _ACEOF
16491 if test $ac_have_func = no; then
16492 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
16493 echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
16494 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6
16495 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
16496 echo $ECHO_N "(cached) $ECHO_C" >&6
16498 echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
16499 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6
16500 else
16501 # Is the header compilable?
16502 echo "$as_me:$LINENO: checking sys/cpustats.h usability" >&5
16503 echo $ECHO_N "checking sys/cpustats.h usability... $ECHO_C" >&6
16504 cat >conftest.$ac_ext <<_ACEOF
16505 /* confdefs.h. */
16506 _ACEOF
16507 cat confdefs.h >>conftest.$ac_ext
16508 cat >>conftest.$ac_ext <<_ACEOF
16509 /* end confdefs.h. */
16510 $ac_includes_default
16511 #include <sys/cpustats.h>
16512 _ACEOF
16513 rm -f conftest.$ac_objext
16514 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16515 (eval $ac_compile) 2>conftest.er1
16516 ac_status=$?
16517 grep -v '^ *+' conftest.er1 >conftest.err
16518 rm -f conftest.er1
16519 cat conftest.err >&5
16520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16521 (exit $ac_status); } &&
16522 { ac_try='test -z "$ac_c_werror_flag"
16523 || test ! -s conftest.err'
16524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16525 (eval $ac_try) 2>&5
16526 ac_status=$?
16527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16528 (exit $ac_status); }; } &&
16529 { ac_try='test -s conftest.$ac_objext'
16530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16531 (eval $ac_try) 2>&5
16532 ac_status=$?
16533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16534 (exit $ac_status); }; }; then
16535 ac_header_compiler=yes
16536 else
16537 echo "$as_me: failed program was:" >&5
16538 sed 's/^/| /' conftest.$ac_ext >&5
16540 ac_header_compiler=no
16542 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16543 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16544 echo "${ECHO_T}$ac_header_compiler" >&6
16546 # Is the header present?
16547 echo "$as_me:$LINENO: checking sys/cpustats.h presence" >&5
16548 echo $ECHO_N "checking sys/cpustats.h presence... $ECHO_C" >&6
16549 cat >conftest.$ac_ext <<_ACEOF
16550 /* confdefs.h. */
16551 _ACEOF
16552 cat confdefs.h >>conftest.$ac_ext
16553 cat >>conftest.$ac_ext <<_ACEOF
16554 /* end confdefs.h. */
16555 #include <sys/cpustats.h>
16556 _ACEOF
16557 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16558 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16559 ac_status=$?
16560 grep -v '^ *+' conftest.er1 >conftest.err
16561 rm -f conftest.er1
16562 cat conftest.err >&5
16563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16564 (exit $ac_status); } >/dev/null; then
16565 if test -s conftest.err; then
16566 ac_cpp_err=$ac_c_preproc_warn_flag
16567 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16568 else
16569 ac_cpp_err=
16571 else
16572 ac_cpp_err=yes
16574 if test -z "$ac_cpp_err"; then
16575 ac_header_preproc=yes
16576 else
16577 echo "$as_me: failed program was:" >&5
16578 sed 's/^/| /' conftest.$ac_ext >&5
16580 ac_header_preproc=no
16582 rm -f conftest.err conftest.$ac_ext
16583 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16584 echo "${ECHO_T}$ac_header_preproc" >&6
16586 # So? What about this header?
16587 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16588 yes:no: )
16589 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
16590 echo "$as_me: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16591 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&5
16592 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&2;}
16593 ac_header_preproc=yes
16595 no:yes:* )
16596 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: present but cannot be compiled" >&5
16597 echo "$as_me: WARNING: sys/cpustats.h: present but cannot be compiled" >&2;}
16598 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&5
16599 echo "$as_me: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&2;}
16600 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: see the Autoconf documentation" >&5
16601 echo "$as_me: WARNING: sys/cpustats.h: see the Autoconf documentation" >&2;}
16602 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
16603 echo "$as_me: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
16604 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
16605 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;}
16606 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&5
16607 echo "$as_me: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&2;}
16609 cat <<\_ASBOX
16610 ## ------------------------------------------ ##
16611 ## Report this to the AC_PACKAGE_NAME lists. ##
16612 ## ------------------------------------------ ##
16613 _ASBOX
16615 sed "s/^/$as_me: WARNING: /" >&2
16617 esac
16618 echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
16619 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6
16620 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
16621 echo $ECHO_N "(cached) $ECHO_C" >&6
16622 else
16623 ac_cv_header_sys_cpustats_h=$ac_header_preproc
16625 echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
16626 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6
16629 if test $ac_cv_header_sys_cpustats_h = yes; then
16630 ac_have_func=yes; cat >>confdefs.h <<\_ACEOF
16631 #define UMAX 1
16632 _ACEOF
16639 if test $ac_have_func = no; then
16641 for ac_header in mach/mach.h
16643 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16644 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16645 echo "$as_me:$LINENO: checking for $ac_header" >&5
16646 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16647 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16648 echo $ECHO_N "(cached) $ECHO_C" >&6
16650 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16651 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16652 else
16653 # Is the header compilable?
16654 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16655 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16656 cat >conftest.$ac_ext <<_ACEOF
16657 /* confdefs.h. */
16658 _ACEOF
16659 cat confdefs.h >>conftest.$ac_ext
16660 cat >>conftest.$ac_ext <<_ACEOF
16661 /* end confdefs.h. */
16662 $ac_includes_default
16663 #include <$ac_header>
16664 _ACEOF
16665 rm -f conftest.$ac_objext
16666 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16667 (eval $ac_compile) 2>conftest.er1
16668 ac_status=$?
16669 grep -v '^ *+' conftest.er1 >conftest.err
16670 rm -f conftest.er1
16671 cat conftest.err >&5
16672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16673 (exit $ac_status); } &&
16674 { ac_try='test -z "$ac_c_werror_flag"
16675 || test ! -s conftest.err'
16676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16677 (eval $ac_try) 2>&5
16678 ac_status=$?
16679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16680 (exit $ac_status); }; } &&
16681 { ac_try='test -s conftest.$ac_objext'
16682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16683 (eval $ac_try) 2>&5
16684 ac_status=$?
16685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16686 (exit $ac_status); }; }; then
16687 ac_header_compiler=yes
16688 else
16689 echo "$as_me: failed program was:" >&5
16690 sed 's/^/| /' conftest.$ac_ext >&5
16692 ac_header_compiler=no
16694 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16695 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16696 echo "${ECHO_T}$ac_header_compiler" >&6
16698 # Is the header present?
16699 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16700 echo $ECHO_N "checking $ac_header presence... $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 #include <$ac_header>
16708 _ACEOF
16709 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16710 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16711 ac_status=$?
16712 grep -v '^ *+' conftest.er1 >conftest.err
16713 rm -f conftest.er1
16714 cat conftest.err >&5
16715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16716 (exit $ac_status); } >/dev/null; then
16717 if test -s conftest.err; then
16718 ac_cpp_err=$ac_c_preproc_warn_flag
16719 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16720 else
16721 ac_cpp_err=
16723 else
16724 ac_cpp_err=yes
16726 if test -z "$ac_cpp_err"; then
16727 ac_header_preproc=yes
16728 else
16729 echo "$as_me: failed program was:" >&5
16730 sed 's/^/| /' conftest.$ac_ext >&5
16732 ac_header_preproc=no
16734 rm -f conftest.err conftest.$ac_ext
16735 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16736 echo "${ECHO_T}$ac_header_preproc" >&6
16738 # So? What about this header?
16739 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16740 yes:no: )
16741 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16742 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16743 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16744 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16745 ac_header_preproc=yes
16747 no:yes:* )
16748 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16749 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16750 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16751 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16752 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16753 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16754 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16755 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16756 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16757 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16758 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16759 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16761 cat <<\_ASBOX
16762 ## ------------------------------------------ ##
16763 ## Report this to the AC_PACKAGE_NAME lists. ##
16764 ## ------------------------------------------ ##
16765 _ASBOX
16767 sed "s/^/$as_me: WARNING: /" >&2
16769 esac
16770 echo "$as_me:$LINENO: checking for $ac_header" >&5
16771 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16772 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16773 echo $ECHO_N "(cached) $ECHO_C" >&6
16774 else
16775 eval "$as_ac_Header=\$ac_header_preproc"
16777 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16778 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16781 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16782 cat >>confdefs.h <<_ACEOF
16783 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16784 _ACEOF
16788 done
16793 for ac_header in nlist.h
16795 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16796 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16797 echo "$as_me:$LINENO: checking for $ac_header" >&5
16798 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16799 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16800 echo $ECHO_N "(cached) $ECHO_C" >&6
16802 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16803 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16804 else
16805 # Is the header compilable?
16806 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16807 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16808 cat >conftest.$ac_ext <<_ACEOF
16809 /* confdefs.h. */
16810 _ACEOF
16811 cat confdefs.h >>conftest.$ac_ext
16812 cat >>conftest.$ac_ext <<_ACEOF
16813 /* end confdefs.h. */
16814 $ac_includes_default
16815 #include <$ac_header>
16816 _ACEOF
16817 rm -f conftest.$ac_objext
16818 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16819 (eval $ac_compile) 2>conftest.er1
16820 ac_status=$?
16821 grep -v '^ *+' conftest.er1 >conftest.err
16822 rm -f conftest.er1
16823 cat conftest.err >&5
16824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16825 (exit $ac_status); } &&
16826 { ac_try='test -z "$ac_c_werror_flag"
16827 || test ! -s conftest.err'
16828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16829 (eval $ac_try) 2>&5
16830 ac_status=$?
16831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16832 (exit $ac_status); }; } &&
16833 { ac_try='test -s conftest.$ac_objext'
16834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16835 (eval $ac_try) 2>&5
16836 ac_status=$?
16837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16838 (exit $ac_status); }; }; then
16839 ac_header_compiler=yes
16840 else
16841 echo "$as_me: failed program was:" >&5
16842 sed 's/^/| /' conftest.$ac_ext >&5
16844 ac_header_compiler=no
16846 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16847 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16848 echo "${ECHO_T}$ac_header_compiler" >&6
16850 # Is the header present?
16851 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16852 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16853 cat >conftest.$ac_ext <<_ACEOF
16854 /* confdefs.h. */
16855 _ACEOF
16856 cat confdefs.h >>conftest.$ac_ext
16857 cat >>conftest.$ac_ext <<_ACEOF
16858 /* end confdefs.h. */
16859 #include <$ac_header>
16860 _ACEOF
16861 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16862 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16863 ac_status=$?
16864 grep -v '^ *+' conftest.er1 >conftest.err
16865 rm -f conftest.er1
16866 cat conftest.err >&5
16867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16868 (exit $ac_status); } >/dev/null; then
16869 if test -s conftest.err; then
16870 ac_cpp_err=$ac_c_preproc_warn_flag
16871 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16872 else
16873 ac_cpp_err=
16875 else
16876 ac_cpp_err=yes
16878 if test -z "$ac_cpp_err"; then
16879 ac_header_preproc=yes
16880 else
16881 echo "$as_me: failed program was:" >&5
16882 sed 's/^/| /' conftest.$ac_ext >&5
16884 ac_header_preproc=no
16886 rm -f conftest.err conftest.$ac_ext
16887 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16888 echo "${ECHO_T}$ac_header_preproc" >&6
16890 # So? What about this header?
16891 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16892 yes:no: )
16893 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16894 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16895 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16896 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16897 ac_header_preproc=yes
16899 no:yes:* )
16900 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16901 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16902 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16903 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16904 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16905 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16906 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16907 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16908 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16909 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16910 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16911 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16913 cat <<\_ASBOX
16914 ## ------------------------------------------ ##
16915 ## Report this to the AC_PACKAGE_NAME lists. ##
16916 ## ------------------------------------------ ##
16917 _ASBOX
16919 sed "s/^/$as_me: WARNING: /" >&2
16921 esac
16922 echo "$as_me:$LINENO: checking for $ac_header" >&5
16923 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16924 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16925 echo $ECHO_N "(cached) $ECHO_C" >&6
16926 else
16927 eval "$as_ac_Header=\$ac_header_preproc"
16929 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16930 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16933 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16934 cat >>confdefs.h <<_ACEOF
16935 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16936 _ACEOF
16937 echo "$as_me:$LINENO: checking for struct nlist.n_un.n_name" >&5
16938 echo $ECHO_N "checking for struct nlist.n_un.n_name... $ECHO_C" >&6
16939 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
16940 echo $ECHO_N "(cached) $ECHO_C" >&6
16941 else
16942 cat >conftest.$ac_ext <<_ACEOF
16943 /* confdefs.h. */
16944 _ACEOF
16945 cat confdefs.h >>conftest.$ac_ext
16946 cat >>conftest.$ac_ext <<_ACEOF
16947 /* end confdefs.h. */
16948 #include <nlist.h>
16951 main ()
16953 static struct nlist ac_aggr;
16954 if (ac_aggr.n_un.n_name)
16955 return 0;
16957 return 0;
16959 _ACEOF
16960 rm -f conftest.$ac_objext
16961 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16962 (eval $ac_compile) 2>conftest.er1
16963 ac_status=$?
16964 grep -v '^ *+' conftest.er1 >conftest.err
16965 rm -f conftest.er1
16966 cat conftest.err >&5
16967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16968 (exit $ac_status); } &&
16969 { ac_try='test -z "$ac_c_werror_flag"
16970 || test ! -s conftest.err'
16971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16972 (eval $ac_try) 2>&5
16973 ac_status=$?
16974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16975 (exit $ac_status); }; } &&
16976 { ac_try='test -s conftest.$ac_objext'
16977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16978 (eval $ac_try) 2>&5
16979 ac_status=$?
16980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16981 (exit $ac_status); }; }; then
16982 ac_cv_member_struct_nlist_n_un_n_name=yes
16983 else
16984 echo "$as_me: failed program was:" >&5
16985 sed 's/^/| /' conftest.$ac_ext >&5
16987 cat >conftest.$ac_ext <<_ACEOF
16988 /* confdefs.h. */
16989 _ACEOF
16990 cat confdefs.h >>conftest.$ac_ext
16991 cat >>conftest.$ac_ext <<_ACEOF
16992 /* end confdefs.h. */
16993 #include <nlist.h>
16996 main ()
16998 static struct nlist ac_aggr;
16999 if (sizeof ac_aggr.n_un.n_name)
17000 return 0;
17002 return 0;
17004 _ACEOF
17005 rm -f conftest.$ac_objext
17006 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17007 (eval $ac_compile) 2>conftest.er1
17008 ac_status=$?
17009 grep -v '^ *+' conftest.er1 >conftest.err
17010 rm -f conftest.er1
17011 cat conftest.err >&5
17012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17013 (exit $ac_status); } &&
17014 { ac_try='test -z "$ac_c_werror_flag"
17015 || test ! -s conftest.err'
17016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17017 (eval $ac_try) 2>&5
17018 ac_status=$?
17019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17020 (exit $ac_status); }; } &&
17021 { ac_try='test -s conftest.$ac_objext'
17022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17023 (eval $ac_try) 2>&5
17024 ac_status=$?
17025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17026 (exit $ac_status); }; }; then
17027 ac_cv_member_struct_nlist_n_un_n_name=yes
17028 else
17029 echo "$as_me: failed program was:" >&5
17030 sed 's/^/| /' conftest.$ac_ext >&5
17032 ac_cv_member_struct_nlist_n_un_n_name=no
17034 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17036 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17038 echo "$as_me:$LINENO: result: $ac_cv_member_struct_nlist_n_un_n_name" >&5
17039 echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6
17040 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
17042 cat >>confdefs.h <<_ACEOF
17043 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
17044 _ACEOF
17047 cat >>confdefs.h <<\_ACEOF
17048 #define NLIST_NAME_UNION 1
17049 _ACEOF
17056 done
17059 done
17062 # Some definitions of getloadavg require that the program be installed setgid.
17063 echo "$as_me:$LINENO: checking whether getloadavg requires setgid" >&5
17064 echo $ECHO_N "checking whether getloadavg requires setgid... $ECHO_C" >&6
17065 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
17066 echo $ECHO_N "(cached) $ECHO_C" >&6
17067 else
17068 cat >conftest.$ac_ext <<_ACEOF
17069 /* confdefs.h. */
17070 _ACEOF
17071 cat confdefs.h >>conftest.$ac_ext
17072 cat >>conftest.$ac_ext <<_ACEOF
17073 /* end confdefs.h. */
17074 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c"
17075 #ifdef LDAV_PRIVILEGED
17076 Yowza Am I SETGID yet
17077 #endif
17078 _ACEOF
17079 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17080 $EGREP "Yowza Am I SETGID yet" >/dev/null 2>&1; then
17081 ac_cv_func_getloadavg_setgid=yes
17082 else
17083 ac_cv_func_getloadavg_setgid=no
17085 rm -f conftest*
17088 echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg_setgid" >&5
17089 echo "${ECHO_T}$ac_cv_func_getloadavg_setgid" >&6
17090 if test $ac_cv_func_getloadavg_setgid = yes; then
17091 NEED_SETGID=true
17093 cat >>confdefs.h <<\_ACEOF
17094 #define GETLOADAVG_PRIVILEGED 1
17095 _ACEOF
17097 else
17098 NEED_SETGID=false
17101 if test $ac_cv_func_getloadavg_setgid = yes; then
17102 echo "$as_me:$LINENO: checking group of /dev/kmem" >&5
17103 echo $ECHO_N "checking group of /dev/kmem... $ECHO_C" >&6
17104 if test "${ac_cv_group_kmem+set}" = set; then
17105 echo $ECHO_N "(cached) $ECHO_C" >&6
17106 else
17107 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
17108 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
17109 # If we got an error (system does not support symlinks), try without -L.
17110 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
17111 ac_cv_group_kmem=`echo $ac_ls_output \
17112 | sed -ne 's/[ ][ ]*/ /g;
17113 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
17114 / /s/.* //;p;'`
17117 echo "$as_me:$LINENO: result: $ac_cv_group_kmem" >&5
17118 echo "${ECHO_T}$ac_cv_group_kmem" >&6
17119 KMEM_GROUP=$ac_cv_group_kmem
17121 if test "x$ac_save_LIBS" = x; then
17122 GETLOADAVG_LIBS=$LIBS
17123 else
17124 GETLOADAVG_LIBS=`echo "$LIBS" | sed "s!$ac_save_LIBS!!"`
17126 LIBS=$ac_save_LIBS
17130 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
17131 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
17132 if test "${ac_cv_sys_largefile_source+set}" = set; then
17133 echo $ECHO_N "(cached) $ECHO_C" >&6
17134 else
17135 while :; do
17136 ac_cv_sys_largefile_source=no
17137 cat >conftest.$ac_ext <<_ACEOF
17138 /* confdefs.h. */
17139 _ACEOF
17140 cat confdefs.h >>conftest.$ac_ext
17141 cat >>conftest.$ac_ext <<_ACEOF
17142 /* end confdefs.h. */
17143 #include <stdio.h>
17145 main ()
17147 return !fseeko;
17149 return 0;
17151 _ACEOF
17152 rm -f conftest.$ac_objext
17153 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17154 (eval $ac_compile) 2>conftest.er1
17155 ac_status=$?
17156 grep -v '^ *+' conftest.er1 >conftest.err
17157 rm -f conftest.er1
17158 cat conftest.err >&5
17159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17160 (exit $ac_status); } &&
17161 { ac_try='test -z "$ac_c_werror_flag"
17162 || test ! -s conftest.err'
17163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17164 (eval $ac_try) 2>&5
17165 ac_status=$?
17166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17167 (exit $ac_status); }; } &&
17168 { ac_try='test -s conftest.$ac_objext'
17169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17170 (eval $ac_try) 2>&5
17171 ac_status=$?
17172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17173 (exit $ac_status); }; }; then
17174 break
17175 else
17176 echo "$as_me: failed program was:" >&5
17177 sed 's/^/| /' conftest.$ac_ext >&5
17180 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17181 cat >conftest.$ac_ext <<_ACEOF
17182 /* confdefs.h. */
17183 _ACEOF
17184 cat confdefs.h >>conftest.$ac_ext
17185 cat >>conftest.$ac_ext <<_ACEOF
17186 /* end confdefs.h. */
17187 #define _LARGEFILE_SOURCE 1
17188 #include <stdio.h>
17190 main ()
17192 return !fseeko;
17194 return 0;
17196 _ACEOF
17197 rm -f conftest.$ac_objext
17198 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17199 (eval $ac_compile) 2>conftest.er1
17200 ac_status=$?
17201 grep -v '^ *+' conftest.er1 >conftest.err
17202 rm -f conftest.er1
17203 cat conftest.err >&5
17204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17205 (exit $ac_status); } &&
17206 { ac_try='test -z "$ac_c_werror_flag"
17207 || test ! -s conftest.err'
17208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17209 (eval $ac_try) 2>&5
17210 ac_status=$?
17211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17212 (exit $ac_status); }; } &&
17213 { ac_try='test -s conftest.$ac_objext'
17214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17215 (eval $ac_try) 2>&5
17216 ac_status=$?
17217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17218 (exit $ac_status); }; }; then
17219 ac_cv_sys_largefile_source=1; break
17220 else
17221 echo "$as_me: failed program was:" >&5
17222 sed 's/^/| /' conftest.$ac_ext >&5
17225 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17226 break
17227 done
17229 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
17230 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
17231 if test "$ac_cv_sys_largefile_source" != no; then
17233 cat >>confdefs.h <<_ACEOF
17234 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
17235 _ACEOF
17238 rm -f conftest*
17240 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
17241 # in glibc 2.1.3, but that breaks too many other things.
17242 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
17243 echo "$as_me:$LINENO: checking for fseeko" >&5
17244 echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
17245 if test "${ac_cv_func_fseeko+set}" = set; then
17246 echo $ECHO_N "(cached) $ECHO_C" >&6
17247 else
17248 cat >conftest.$ac_ext <<_ACEOF
17249 /* confdefs.h. */
17250 _ACEOF
17251 cat confdefs.h >>conftest.$ac_ext
17252 cat >>conftest.$ac_ext <<_ACEOF
17253 /* end confdefs.h. */
17254 #include <stdio.h>
17256 main ()
17258 return fseeko && fseeko (stdin, 0, 0);
17260 return 0;
17262 _ACEOF
17263 rm -f conftest.$ac_objext conftest$ac_exeext
17264 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17265 (eval $ac_link) 2>conftest.er1
17266 ac_status=$?
17267 grep -v '^ *+' conftest.er1 >conftest.err
17268 rm -f conftest.er1
17269 cat conftest.err >&5
17270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17271 (exit $ac_status); } &&
17272 { ac_try='test -z "$ac_c_werror_flag"
17273 || test ! -s conftest.err'
17274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17275 (eval $ac_try) 2>&5
17276 ac_status=$?
17277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17278 (exit $ac_status); }; } &&
17279 { ac_try='test -s conftest$ac_exeext'
17280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17281 (eval $ac_try) 2>&5
17282 ac_status=$?
17283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17284 (exit $ac_status); }; }; then
17285 ac_cv_func_fseeko=yes
17286 else
17287 echo "$as_me: failed program was:" >&5
17288 sed 's/^/| /' conftest.$ac_ext >&5
17290 ac_cv_func_fseeko=no
17292 rm -f conftest.err conftest.$ac_objext \
17293 conftest$ac_exeext conftest.$ac_ext
17295 echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5
17296 echo "${ECHO_T}$ac_cv_func_fseeko" >&6
17297 if test $ac_cv_func_fseeko = yes; then
17299 cat >>confdefs.h <<\_ACEOF
17300 #define HAVE_FSEEKO 1
17301 _ACEOF
17306 # Configure getopt.
17307 # getopt.m4 serial 10
17309 # The getopt module assume you want GNU getopt, with getopt_long etc,
17310 # rather than vanilla POSIX getopt. This means your your code should
17311 # always include <getopt.h> for the getopt prototypes.
17323 # Prerequisites of lib/getopt*.
17328 GETOPT_H=
17330 for ac_header in getopt.h
17332 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17333 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17334 echo "$as_me:$LINENO: checking for $ac_header" >&5
17335 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17336 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17337 echo $ECHO_N "(cached) $ECHO_C" >&6
17339 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17340 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17341 else
17342 # Is the header compilable?
17343 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17344 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17345 cat >conftest.$ac_ext <<_ACEOF
17346 /* confdefs.h. */
17347 _ACEOF
17348 cat confdefs.h >>conftest.$ac_ext
17349 cat >>conftest.$ac_ext <<_ACEOF
17350 /* end confdefs.h. */
17351 $ac_includes_default
17352 #include <$ac_header>
17353 _ACEOF
17354 rm -f conftest.$ac_objext
17355 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17356 (eval $ac_compile) 2>conftest.er1
17357 ac_status=$?
17358 grep -v '^ *+' conftest.er1 >conftest.err
17359 rm -f conftest.er1
17360 cat conftest.err >&5
17361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17362 (exit $ac_status); } &&
17363 { ac_try='test -z "$ac_c_werror_flag"
17364 || test ! -s conftest.err'
17365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17366 (eval $ac_try) 2>&5
17367 ac_status=$?
17368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17369 (exit $ac_status); }; } &&
17370 { ac_try='test -s conftest.$ac_objext'
17371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17372 (eval $ac_try) 2>&5
17373 ac_status=$?
17374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17375 (exit $ac_status); }; }; then
17376 ac_header_compiler=yes
17377 else
17378 echo "$as_me: failed program was:" >&5
17379 sed 's/^/| /' conftest.$ac_ext >&5
17381 ac_header_compiler=no
17383 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17384 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17385 echo "${ECHO_T}$ac_header_compiler" >&6
17387 # Is the header present?
17388 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17389 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17390 cat >conftest.$ac_ext <<_ACEOF
17391 /* confdefs.h. */
17392 _ACEOF
17393 cat confdefs.h >>conftest.$ac_ext
17394 cat >>conftest.$ac_ext <<_ACEOF
17395 /* end confdefs.h. */
17396 #include <$ac_header>
17397 _ACEOF
17398 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17399 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17400 ac_status=$?
17401 grep -v '^ *+' conftest.er1 >conftest.err
17402 rm -f conftest.er1
17403 cat conftest.err >&5
17404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17405 (exit $ac_status); } >/dev/null; then
17406 if test -s conftest.err; then
17407 ac_cpp_err=$ac_c_preproc_warn_flag
17408 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17409 else
17410 ac_cpp_err=
17412 else
17413 ac_cpp_err=yes
17415 if test -z "$ac_cpp_err"; then
17416 ac_header_preproc=yes
17417 else
17418 echo "$as_me: failed program was:" >&5
17419 sed 's/^/| /' conftest.$ac_ext >&5
17421 ac_header_preproc=no
17423 rm -f conftest.err conftest.$ac_ext
17424 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17425 echo "${ECHO_T}$ac_header_preproc" >&6
17427 # So? What about this header?
17428 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17429 yes:no: )
17430 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17431 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17432 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17433 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17434 ac_header_preproc=yes
17436 no:yes:* )
17437 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17438 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17439 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17440 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17441 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17442 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17443 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17444 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17445 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17446 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17447 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17448 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17450 cat <<\_ASBOX
17451 ## ------------------------------------------ ##
17452 ## Report this to the AC_PACKAGE_NAME lists. ##
17453 ## ------------------------------------------ ##
17454 _ASBOX
17456 sed "s/^/$as_me: WARNING: /" >&2
17458 esac
17459 echo "$as_me:$LINENO: checking for $ac_header" >&5
17460 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17461 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17462 echo $ECHO_N "(cached) $ECHO_C" >&6
17463 else
17464 eval "$as_ac_Header=\$ac_header_preproc"
17466 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17467 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17470 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17471 cat >>confdefs.h <<_ACEOF
17472 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17473 _ACEOF
17475 else
17476 GETOPT_H=getopt.h
17479 done
17481 if test -z "$GETOPT_H"; then
17483 for ac_func in getopt_long_only
17485 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17486 echo "$as_me:$LINENO: checking for $ac_func" >&5
17487 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17488 if eval "test \"\${$as_ac_var+set}\" = set"; then
17489 echo $ECHO_N "(cached) $ECHO_C" >&6
17490 else
17491 cat >conftest.$ac_ext <<_ACEOF
17492 /* confdefs.h. */
17493 _ACEOF
17494 cat confdefs.h >>conftest.$ac_ext
17495 cat >>conftest.$ac_ext <<_ACEOF
17496 /* end confdefs.h. */
17497 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17498 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17499 #define $ac_func innocuous_$ac_func
17501 /* System header to define __stub macros and hopefully few prototypes,
17502 which can conflict with char $ac_func (); below.
17503 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17504 <limits.h> exists even on freestanding compilers. */
17506 #ifdef __STDC__
17507 # include <limits.h>
17508 #else
17509 # include <assert.h>
17510 #endif
17512 #undef $ac_func
17514 /* Override any gcc2 internal prototype to avoid an error. */
17515 #ifdef __cplusplus
17516 extern "C"
17518 #endif
17519 /* We use char because int might match the return type of a gcc2
17520 builtin and then its argument prototype would still apply. */
17521 char $ac_func ();
17522 /* The GNU C library defines this for functions which it implements
17523 to always fail with ENOSYS. Some functions are actually named
17524 something starting with __ and the normal name is an alias. */
17525 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17526 choke me
17527 #else
17528 char (*f) () = $ac_func;
17529 #endif
17530 #ifdef __cplusplus
17532 #endif
17535 main ()
17537 return f != $ac_func;
17539 return 0;
17541 _ACEOF
17542 rm -f conftest.$ac_objext conftest$ac_exeext
17543 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17544 (eval $ac_link) 2>conftest.er1
17545 ac_status=$?
17546 grep -v '^ *+' conftest.er1 >conftest.err
17547 rm -f conftest.er1
17548 cat conftest.err >&5
17549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17550 (exit $ac_status); } &&
17551 { ac_try='test -z "$ac_c_werror_flag"
17552 || test ! -s conftest.err'
17553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17554 (eval $ac_try) 2>&5
17555 ac_status=$?
17556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17557 (exit $ac_status); }; } &&
17558 { ac_try='test -s conftest$ac_exeext'
17559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17560 (eval $ac_try) 2>&5
17561 ac_status=$?
17562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17563 (exit $ac_status); }; }; then
17564 eval "$as_ac_var=yes"
17565 else
17566 echo "$as_me: failed program was:" >&5
17567 sed 's/^/| /' conftest.$ac_ext >&5
17569 eval "$as_ac_var=no"
17571 rm -f conftest.err conftest.$ac_objext \
17572 conftest$ac_exeext conftest.$ac_ext
17574 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17575 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17576 if test `eval echo '${'$as_ac_var'}'` = yes; then
17577 cat >>confdefs.h <<_ACEOF
17578 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17579 _ACEOF
17581 else
17582 GETOPT_H=getopt.h
17584 done
17588 if test -z "$GETOPT_H"; then
17589 echo "$as_me:$LINENO: checking whether optreset is declared" >&5
17590 echo $ECHO_N "checking whether optreset is declared... $ECHO_C" >&6
17591 if test "${ac_cv_have_decl_optreset+set}" = set; then
17592 echo $ECHO_N "(cached) $ECHO_C" >&6
17593 else
17594 cat >conftest.$ac_ext <<_ACEOF
17595 /* confdefs.h. */
17596 _ACEOF
17597 cat confdefs.h >>conftest.$ac_ext
17598 cat >>conftest.$ac_ext <<_ACEOF
17599 /* end confdefs.h. */
17600 #include <getopt.h>
17603 main ()
17605 #ifndef optreset
17606 char *p = (char *) optreset;
17607 #endif
17610 return 0;
17612 _ACEOF
17613 rm -f conftest.$ac_objext
17614 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17615 (eval $ac_compile) 2>conftest.er1
17616 ac_status=$?
17617 grep -v '^ *+' conftest.er1 >conftest.err
17618 rm -f conftest.er1
17619 cat conftest.err >&5
17620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17621 (exit $ac_status); } &&
17622 { ac_try='test -z "$ac_c_werror_flag"
17623 || test ! -s conftest.err'
17624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17625 (eval $ac_try) 2>&5
17626 ac_status=$?
17627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17628 (exit $ac_status); }; } &&
17629 { ac_try='test -s conftest.$ac_objext'
17630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17631 (eval $ac_try) 2>&5
17632 ac_status=$?
17633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17634 (exit $ac_status); }; }; then
17635 ac_cv_have_decl_optreset=yes
17636 else
17637 echo "$as_me: failed program was:" >&5
17638 sed 's/^/| /' conftest.$ac_ext >&5
17640 ac_cv_have_decl_optreset=no
17642 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17644 echo "$as_me:$LINENO: result: $ac_cv_have_decl_optreset" >&5
17645 echo "${ECHO_T}$ac_cv_have_decl_optreset" >&6
17646 if test $ac_cv_have_decl_optreset = yes; then
17647 GETOPT_H=getopt.h
17652 if test -z "$GETOPT_H"; then
17653 echo "$as_me:$LINENO: checking for working GNU getopt function" >&5
17654 echo $ECHO_N "checking for working GNU getopt function... $ECHO_C" >&6
17655 if test "${gl_cv_func_gnu_getopt+set}" = set; then
17656 echo $ECHO_N "(cached) $ECHO_C" >&6
17657 else
17658 if test "$cross_compiling" = yes; then
17659 echo "$as_me:$LINENO: checking whether getopt_clip is declared" >&5
17660 echo $ECHO_N "checking whether getopt_clip is declared... $ECHO_C" >&6
17661 if test "${ac_cv_have_decl_getopt_clip+set}" = set; then
17662 echo $ECHO_N "(cached) $ECHO_C" >&6
17663 else
17664 cat >conftest.$ac_ext <<_ACEOF
17665 /* confdefs.h. */
17666 _ACEOF
17667 cat confdefs.h >>conftest.$ac_ext
17668 cat >>conftest.$ac_ext <<_ACEOF
17669 /* end confdefs.h. */
17670 #include <getopt.h>
17673 main ()
17675 #ifndef getopt_clip
17676 char *p = (char *) getopt_clip;
17677 #endif
17680 return 0;
17682 _ACEOF
17683 rm -f conftest.$ac_objext
17684 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17685 (eval $ac_compile) 2>conftest.er1
17686 ac_status=$?
17687 grep -v '^ *+' conftest.er1 >conftest.err
17688 rm -f conftest.er1
17689 cat conftest.err >&5
17690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17691 (exit $ac_status); } &&
17692 { ac_try='test -z "$ac_c_werror_flag"
17693 || test ! -s conftest.err'
17694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17695 (eval $ac_try) 2>&5
17696 ac_status=$?
17697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17698 (exit $ac_status); }; } &&
17699 { ac_try='test -s conftest.$ac_objext'
17700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17701 (eval $ac_try) 2>&5
17702 ac_status=$?
17703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17704 (exit $ac_status); }; }; then
17705 ac_cv_have_decl_getopt_clip=yes
17706 else
17707 echo "$as_me: failed program was:" >&5
17708 sed 's/^/| /' conftest.$ac_ext >&5
17710 ac_cv_have_decl_getopt_clip=no
17712 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17714 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getopt_clip" >&5
17715 echo "${ECHO_T}$ac_cv_have_decl_getopt_clip" >&6
17716 if test $ac_cv_have_decl_getopt_clip = yes; then
17717 gl_cv_func_gnu_getopt=no
17718 else
17719 gl_cv_func_gnu_getopt=yes
17722 else
17723 cat >conftest.$ac_ext <<_ACEOF
17724 /* confdefs.h. */
17725 _ACEOF
17726 cat confdefs.h >>conftest.$ac_ext
17727 cat >>conftest.$ac_ext <<_ACEOF
17728 /* end confdefs.h. */
17729 #include <getopt.h>
17731 main ()
17734 char *myargv[3];
17735 myargv[0] = "conftest";
17736 myargv[1] = "-+";
17737 myargv[2] = 0;
17738 return getopt (2, myargv, "+a") != '?';
17741 return 0;
17743 _ACEOF
17744 rm -f conftest$ac_exeext
17745 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17746 (eval $ac_link) 2>&5
17747 ac_status=$?
17748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17749 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17751 (eval $ac_try) 2>&5
17752 ac_status=$?
17753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17754 (exit $ac_status); }; }; then
17755 gl_cv_func_gnu_getopt=yes
17756 else
17757 echo "$as_me: program exited with status $ac_status" >&5
17758 echo "$as_me: failed program was:" >&5
17759 sed 's/^/| /' conftest.$ac_ext >&5
17761 ( exit $ac_status )
17762 gl_cv_func_gnu_getopt=no
17764 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17767 echo "$as_me:$LINENO: result: $gl_cv_func_gnu_getopt" >&5
17768 echo "${ECHO_T}$gl_cv_func_gnu_getopt" >&6
17769 if test "$gl_cv_func_gnu_getopt" = "no"; then
17770 GETOPT_H=getopt.h
17776 if test -n "$GETOPT_H"; then
17779 GETOPT_H=getopt.h
17781 cat >>confdefs.h <<\_ACEOF
17782 #define __GETOPT_PREFIX rpl_
17783 _ACEOF
17788 GETOPTOBJS='getopt.o getopt1.o'
17795 echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5
17796 echo $ECHO_N "checking whether getpgrp requires zero arguments... $ECHO_C" >&6
17797 if test "${ac_cv_func_getpgrp_void+set}" = set; then
17798 echo $ECHO_N "(cached) $ECHO_C" >&6
17799 else
17800 # Use it with a single arg.
17801 cat >conftest.$ac_ext <<_ACEOF
17802 /* confdefs.h. */
17803 _ACEOF
17804 cat confdefs.h >>conftest.$ac_ext
17805 cat >>conftest.$ac_ext <<_ACEOF
17806 /* end confdefs.h. */
17807 $ac_includes_default
17809 main ()
17811 getpgrp (0);
17813 return 0;
17815 _ACEOF
17816 rm -f conftest.$ac_objext
17817 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17818 (eval $ac_compile) 2>conftest.er1
17819 ac_status=$?
17820 grep -v '^ *+' conftest.er1 >conftest.err
17821 rm -f conftest.er1
17822 cat conftest.err >&5
17823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17824 (exit $ac_status); } &&
17825 { ac_try='test -z "$ac_c_werror_flag"
17826 || test ! -s conftest.err'
17827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17828 (eval $ac_try) 2>&5
17829 ac_status=$?
17830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17831 (exit $ac_status); }; } &&
17832 { ac_try='test -s conftest.$ac_objext'
17833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17834 (eval $ac_try) 2>&5
17835 ac_status=$?
17836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17837 (exit $ac_status); }; }; then
17838 ac_cv_func_getpgrp_void=no
17839 else
17840 echo "$as_me: failed program was:" >&5
17841 sed 's/^/| /' conftest.$ac_ext >&5
17843 ac_cv_func_getpgrp_void=yes
17845 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17848 echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5
17849 echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6
17850 if test $ac_cv_func_getpgrp_void = yes; then
17852 cat >>confdefs.h <<\_ACEOF
17853 #define GETPGRP_VOID 1
17854 _ACEOF
17860 for ac_func in strftime
17862 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17863 echo "$as_me:$LINENO: checking for $ac_func" >&5
17864 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17865 if eval "test \"\${$as_ac_var+set}\" = set"; then
17866 echo $ECHO_N "(cached) $ECHO_C" >&6
17867 else
17868 cat >conftest.$ac_ext <<_ACEOF
17869 /* confdefs.h. */
17870 _ACEOF
17871 cat confdefs.h >>conftest.$ac_ext
17872 cat >>conftest.$ac_ext <<_ACEOF
17873 /* end confdefs.h. */
17874 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17875 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17876 #define $ac_func innocuous_$ac_func
17878 /* System header to define __stub macros and hopefully few prototypes,
17879 which can conflict with char $ac_func (); below.
17880 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17881 <limits.h> exists even on freestanding compilers. */
17883 #ifdef __STDC__
17884 # include <limits.h>
17885 #else
17886 # include <assert.h>
17887 #endif
17889 #undef $ac_func
17891 /* Override any gcc2 internal prototype to avoid an error. */
17892 #ifdef __cplusplus
17893 extern "C"
17895 #endif
17896 /* We use char because int might match the return type of a gcc2
17897 builtin and then its argument prototype would still apply. */
17898 char $ac_func ();
17899 /* The GNU C library defines this for functions which it implements
17900 to always fail with ENOSYS. Some functions are actually named
17901 something starting with __ and the normal name is an alias. */
17902 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17903 choke me
17904 #else
17905 char (*f) () = $ac_func;
17906 #endif
17907 #ifdef __cplusplus
17909 #endif
17912 main ()
17914 return f != $ac_func;
17916 return 0;
17918 _ACEOF
17919 rm -f conftest.$ac_objext conftest$ac_exeext
17920 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17921 (eval $ac_link) 2>conftest.er1
17922 ac_status=$?
17923 grep -v '^ *+' conftest.er1 >conftest.err
17924 rm -f conftest.er1
17925 cat conftest.err >&5
17926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17927 (exit $ac_status); } &&
17928 { ac_try='test -z "$ac_c_werror_flag"
17929 || test ! -s conftest.err'
17930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17931 (eval $ac_try) 2>&5
17932 ac_status=$?
17933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17934 (exit $ac_status); }; } &&
17935 { ac_try='test -s conftest$ac_exeext'
17936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17937 (eval $ac_try) 2>&5
17938 ac_status=$?
17939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17940 (exit $ac_status); }; }; then
17941 eval "$as_ac_var=yes"
17942 else
17943 echo "$as_me: failed program was:" >&5
17944 sed 's/^/| /' conftest.$ac_ext >&5
17946 eval "$as_ac_var=no"
17948 rm -f conftest.err conftest.$ac_objext \
17949 conftest$ac_exeext conftest.$ac_ext
17951 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17952 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17953 if test `eval echo '${'$as_ac_var'}'` = yes; then
17954 cat >>confdefs.h <<_ACEOF
17955 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17956 _ACEOF
17958 else
17959 # strftime is in -lintl on SCO UNIX.
17960 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
17961 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
17962 if test "${ac_cv_lib_intl_strftime+set}" = set; then
17963 echo $ECHO_N "(cached) $ECHO_C" >&6
17964 else
17965 ac_check_lib_save_LIBS=$LIBS
17966 LIBS="-lintl $LIBS"
17967 cat >conftest.$ac_ext <<_ACEOF
17968 /* confdefs.h. */
17969 _ACEOF
17970 cat confdefs.h >>conftest.$ac_ext
17971 cat >>conftest.$ac_ext <<_ACEOF
17972 /* end confdefs.h. */
17974 /* Override any gcc2 internal prototype to avoid an error. */
17975 #ifdef __cplusplus
17976 extern "C"
17977 #endif
17978 /* We use char because int might match the return type of a gcc2
17979 builtin and then its argument prototype would still apply. */
17980 char strftime ();
17982 main ()
17984 strftime ();
17986 return 0;
17988 _ACEOF
17989 rm -f conftest.$ac_objext conftest$ac_exeext
17990 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17991 (eval $ac_link) 2>conftest.er1
17992 ac_status=$?
17993 grep -v '^ *+' conftest.er1 >conftest.err
17994 rm -f conftest.er1
17995 cat conftest.err >&5
17996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17997 (exit $ac_status); } &&
17998 { ac_try='test -z "$ac_c_werror_flag"
17999 || test ! -s conftest.err'
18000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18001 (eval $ac_try) 2>&5
18002 ac_status=$?
18003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18004 (exit $ac_status); }; } &&
18005 { ac_try='test -s conftest$ac_exeext'
18006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18007 (eval $ac_try) 2>&5
18008 ac_status=$?
18009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18010 (exit $ac_status); }; }; then
18011 ac_cv_lib_intl_strftime=yes
18012 else
18013 echo "$as_me: failed program was:" >&5
18014 sed 's/^/| /' conftest.$ac_ext >&5
18016 ac_cv_lib_intl_strftime=no
18018 rm -f conftest.err conftest.$ac_objext \
18019 conftest$ac_exeext conftest.$ac_ext
18020 LIBS=$ac_check_lib_save_LIBS
18022 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
18023 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
18024 if test $ac_cv_lib_intl_strftime = yes; then
18025 cat >>confdefs.h <<\_ACEOF
18026 #define HAVE_STRFTIME 1
18027 _ACEOF
18029 LIBS="-lintl $LIBS"
18033 done
18036 # UNIX98 PTYs.
18038 for ac_func in grantpt
18040 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18041 echo "$as_me:$LINENO: checking for $ac_func" >&5
18042 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18043 if eval "test \"\${$as_ac_var+set}\" = set"; then
18044 echo $ECHO_N "(cached) $ECHO_C" >&6
18045 else
18046 cat >conftest.$ac_ext <<_ACEOF
18047 /* confdefs.h. */
18048 _ACEOF
18049 cat confdefs.h >>conftest.$ac_ext
18050 cat >>conftest.$ac_ext <<_ACEOF
18051 /* end confdefs.h. */
18052 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18053 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18054 #define $ac_func innocuous_$ac_func
18056 /* System header to define __stub macros and hopefully few prototypes,
18057 which can conflict with char $ac_func (); below.
18058 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18059 <limits.h> exists even on freestanding compilers. */
18061 #ifdef __STDC__
18062 # include <limits.h>
18063 #else
18064 # include <assert.h>
18065 #endif
18067 #undef $ac_func
18069 /* Override any gcc2 internal prototype to avoid an error. */
18070 #ifdef __cplusplus
18071 extern "C"
18073 #endif
18074 /* We use char because int might match the return type of a gcc2
18075 builtin and then its argument prototype would still apply. */
18076 char $ac_func ();
18077 /* The GNU C library defines this for functions which it implements
18078 to always fail with ENOSYS. Some functions are actually named
18079 something starting with __ and the normal name is an alias. */
18080 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18081 choke me
18082 #else
18083 char (*f) () = $ac_func;
18084 #endif
18085 #ifdef __cplusplus
18087 #endif
18090 main ()
18092 return f != $ac_func;
18094 return 0;
18096 _ACEOF
18097 rm -f conftest.$ac_objext conftest$ac_exeext
18098 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18099 (eval $ac_link) 2>conftest.er1
18100 ac_status=$?
18101 grep -v '^ *+' conftest.er1 >conftest.err
18102 rm -f conftest.er1
18103 cat conftest.err >&5
18104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18105 (exit $ac_status); } &&
18106 { ac_try='test -z "$ac_c_werror_flag"
18107 || test ! -s conftest.err'
18108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18109 (eval $ac_try) 2>&5
18110 ac_status=$?
18111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18112 (exit $ac_status); }; } &&
18113 { ac_try='test -s conftest$ac_exeext'
18114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18115 (eval $ac_try) 2>&5
18116 ac_status=$?
18117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18118 (exit $ac_status); }; }; then
18119 eval "$as_ac_var=yes"
18120 else
18121 echo "$as_me: failed program was:" >&5
18122 sed 's/^/| /' conftest.$ac_ext >&5
18124 eval "$as_ac_var=no"
18126 rm -f conftest.err conftest.$ac_objext \
18127 conftest$ac_exeext conftest.$ac_ext
18129 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18130 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18131 if test `eval echo '${'$as_ac_var'}'` = yes; then
18132 cat >>confdefs.h <<_ACEOF
18133 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18134 _ACEOF
18137 done
18140 # PTY-related GNU extensions.
18142 for ac_func in getpt
18144 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18145 echo "$as_me:$LINENO: checking for $ac_func" >&5
18146 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18147 if eval "test \"\${$as_ac_var+set}\" = set"; then
18148 echo $ECHO_N "(cached) $ECHO_C" >&6
18149 else
18150 cat >conftest.$ac_ext <<_ACEOF
18151 /* confdefs.h. */
18152 _ACEOF
18153 cat confdefs.h >>conftest.$ac_ext
18154 cat >>conftest.$ac_ext <<_ACEOF
18155 /* end confdefs.h. */
18156 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18157 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18158 #define $ac_func innocuous_$ac_func
18160 /* System header to define __stub macros and hopefully few prototypes,
18161 which can conflict with char $ac_func (); below.
18162 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18163 <limits.h> exists even on freestanding compilers. */
18165 #ifdef __STDC__
18166 # include <limits.h>
18167 #else
18168 # include <assert.h>
18169 #endif
18171 #undef $ac_func
18173 /* Override any gcc2 internal prototype to avoid an error. */
18174 #ifdef __cplusplus
18175 extern "C"
18177 #endif
18178 /* We use char because int might match the return type of a gcc2
18179 builtin and then its argument prototype would still apply. */
18180 char $ac_func ();
18181 /* The GNU C library defines this for functions which it implements
18182 to always fail with ENOSYS. Some functions are actually named
18183 something starting with __ and the normal name is an alias. */
18184 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18185 choke me
18186 #else
18187 char (*f) () = $ac_func;
18188 #endif
18189 #ifdef __cplusplus
18191 #endif
18194 main ()
18196 return f != $ac_func;
18198 return 0;
18200 _ACEOF
18201 rm -f conftest.$ac_objext conftest$ac_exeext
18202 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18203 (eval $ac_link) 2>conftest.er1
18204 ac_status=$?
18205 grep -v '^ *+' conftest.er1 >conftest.err
18206 rm -f conftest.er1
18207 cat conftest.err >&5
18208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18209 (exit $ac_status); } &&
18210 { ac_try='test -z "$ac_c_werror_flag"
18211 || test ! -s conftest.err'
18212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18213 (eval $ac_try) 2>&5
18214 ac_status=$?
18215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18216 (exit $ac_status); }; } &&
18217 { ac_try='test -s conftest$ac_exeext'
18218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18219 (eval $ac_try) 2>&5
18220 ac_status=$?
18221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18222 (exit $ac_status); }; }; then
18223 eval "$as_ac_var=yes"
18224 else
18225 echo "$as_me: failed program was:" >&5
18226 sed 's/^/| /' conftest.$ac_ext >&5
18228 eval "$as_ac_var=no"
18230 rm -f conftest.err conftest.$ac_objext \
18231 conftest$ac_exeext conftest.$ac_ext
18233 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18234 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18235 if test `eval echo '${'$as_ac_var'}'` = yes; then
18236 cat >>confdefs.h <<_ACEOF
18237 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18238 _ACEOF
18241 done
18244 # Check this now, so that we will NOT find the above functions in ncurses.
18245 # That is because we have not set up to link ncurses in lib-src.
18246 # It's better to believe a function is not available
18247 # than to expect to find it in ncurses.
18249 echo "$as_me:$LINENO: checking for tparm in -lncurses" >&5
18250 echo $ECHO_N "checking for tparm in -lncurses... $ECHO_C" >&6
18251 if test "${ac_cv_lib_ncurses_tparm+set}" = set; then
18252 echo $ECHO_N "(cached) $ECHO_C" >&6
18253 else
18254 ac_check_lib_save_LIBS=$LIBS
18255 LIBS="-lncurses $LIBS"
18256 cat >conftest.$ac_ext <<_ACEOF
18257 /* confdefs.h. */
18258 _ACEOF
18259 cat confdefs.h >>conftest.$ac_ext
18260 cat >>conftest.$ac_ext <<_ACEOF
18261 /* end confdefs.h. */
18263 /* Override any gcc2 internal prototype to avoid an error. */
18264 #ifdef __cplusplus
18265 extern "C"
18266 #endif
18267 /* We use char because int might match the return type of a gcc2
18268 builtin and then its argument prototype would still apply. */
18269 char tparm ();
18271 main ()
18273 tparm ();
18275 return 0;
18277 _ACEOF
18278 rm -f conftest.$ac_objext conftest$ac_exeext
18279 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18280 (eval $ac_link) 2>conftest.er1
18281 ac_status=$?
18282 grep -v '^ *+' conftest.er1 >conftest.err
18283 rm -f conftest.er1
18284 cat conftest.err >&5
18285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18286 (exit $ac_status); } &&
18287 { ac_try='test -z "$ac_c_werror_flag"
18288 || test ! -s conftest.err'
18289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18290 (eval $ac_try) 2>&5
18291 ac_status=$?
18292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18293 (exit $ac_status); }; } &&
18294 { ac_try='test -s conftest$ac_exeext'
18295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18296 (eval $ac_try) 2>&5
18297 ac_status=$?
18298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18299 (exit $ac_status); }; }; then
18300 ac_cv_lib_ncurses_tparm=yes
18301 else
18302 echo "$as_me: failed program was:" >&5
18303 sed 's/^/| /' conftest.$ac_ext >&5
18305 ac_cv_lib_ncurses_tparm=no
18307 rm -f conftest.err conftest.$ac_objext \
18308 conftest$ac_exeext conftest.$ac_ext
18309 LIBS=$ac_check_lib_save_LIBS
18311 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tparm" >&5
18312 echo "${ECHO_T}$ac_cv_lib_ncurses_tparm" >&6
18313 if test $ac_cv_lib_ncurses_tparm = yes; then
18314 cat >>confdefs.h <<_ACEOF
18315 #define HAVE_LIBNCURSES 1
18316 _ACEOF
18318 LIBS="-lncurses $LIBS"
18323 # Do we need the Hesiod library to provide the support routines?
18324 if test "$with_hesiod" = yes ; then
18325 # Don't set $LIBS here -- see comments above.
18326 resolv=no
18327 echo "$as_me:$LINENO: checking for res_send" >&5
18328 echo $ECHO_N "checking for res_send... $ECHO_C" >&6
18329 if test "${ac_cv_func_res_send+set}" = set; then
18330 echo $ECHO_N "(cached) $ECHO_C" >&6
18331 else
18332 cat >conftest.$ac_ext <<_ACEOF
18333 /* confdefs.h. */
18334 _ACEOF
18335 cat confdefs.h >>conftest.$ac_ext
18336 cat >>conftest.$ac_ext <<_ACEOF
18337 /* end confdefs.h. */
18338 /* Define res_send to an innocuous variant, in case <limits.h> declares res_send.
18339 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18340 #define res_send innocuous_res_send
18342 /* System header to define __stub macros and hopefully few prototypes,
18343 which can conflict with char res_send (); below.
18344 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18345 <limits.h> exists even on freestanding compilers. */
18347 #ifdef __STDC__
18348 # include <limits.h>
18349 #else
18350 # include <assert.h>
18351 #endif
18353 #undef res_send
18355 /* Override any gcc2 internal prototype to avoid an error. */
18356 #ifdef __cplusplus
18357 extern "C"
18359 #endif
18360 /* We use char because int might match the return type of a gcc2
18361 builtin and then its argument prototype would still apply. */
18362 char res_send ();
18363 /* The GNU C library defines this for functions which it implements
18364 to always fail with ENOSYS. Some functions are actually named
18365 something starting with __ and the normal name is an alias. */
18366 #if defined (__stub_res_send) || defined (__stub___res_send)
18367 choke me
18368 #else
18369 char (*f) () = res_send;
18370 #endif
18371 #ifdef __cplusplus
18373 #endif
18376 main ()
18378 return f != res_send;
18380 return 0;
18382 _ACEOF
18383 rm -f conftest.$ac_objext conftest$ac_exeext
18384 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18385 (eval $ac_link) 2>conftest.er1
18386 ac_status=$?
18387 grep -v '^ *+' conftest.er1 >conftest.err
18388 rm -f conftest.er1
18389 cat conftest.err >&5
18390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18391 (exit $ac_status); } &&
18392 { ac_try='test -z "$ac_c_werror_flag"
18393 || test ! -s conftest.err'
18394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18395 (eval $ac_try) 2>&5
18396 ac_status=$?
18397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18398 (exit $ac_status); }; } &&
18399 { ac_try='test -s conftest$ac_exeext'
18400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18401 (eval $ac_try) 2>&5
18402 ac_status=$?
18403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18404 (exit $ac_status); }; }; then
18405 ac_cv_func_res_send=yes
18406 else
18407 echo "$as_me: failed program was:" >&5
18408 sed 's/^/| /' conftest.$ac_ext >&5
18410 ac_cv_func_res_send=no
18412 rm -f conftest.err conftest.$ac_objext \
18413 conftest$ac_exeext conftest.$ac_ext
18415 echo "$as_me:$LINENO: result: $ac_cv_func_res_send" >&5
18416 echo "${ECHO_T}$ac_cv_func_res_send" >&6
18417 if test $ac_cv_func_res_send = yes; then
18419 else
18420 echo "$as_me:$LINENO: checking for __res_send" >&5
18421 echo $ECHO_N "checking for __res_send... $ECHO_C" >&6
18422 if test "${ac_cv_func___res_send+set}" = set; then
18423 echo $ECHO_N "(cached) $ECHO_C" >&6
18424 else
18425 cat >conftest.$ac_ext <<_ACEOF
18426 /* confdefs.h. */
18427 _ACEOF
18428 cat confdefs.h >>conftest.$ac_ext
18429 cat >>conftest.$ac_ext <<_ACEOF
18430 /* end confdefs.h. */
18431 /* Define __res_send to an innocuous variant, in case <limits.h> declares __res_send.
18432 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18433 #define __res_send innocuous___res_send
18435 /* System header to define __stub macros and hopefully few prototypes,
18436 which can conflict with char __res_send (); below.
18437 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18438 <limits.h> exists even on freestanding compilers. */
18440 #ifdef __STDC__
18441 # include <limits.h>
18442 #else
18443 # include <assert.h>
18444 #endif
18446 #undef __res_send
18448 /* Override any gcc2 internal prototype to avoid an error. */
18449 #ifdef __cplusplus
18450 extern "C"
18452 #endif
18453 /* We use char because int might match the return type of a gcc2
18454 builtin and then its argument prototype would still apply. */
18455 char __res_send ();
18456 /* The GNU C library defines this for functions which it implements
18457 to always fail with ENOSYS. Some functions are actually named
18458 something starting with __ and the normal name is an alias. */
18459 #if defined (__stub___res_send) || defined (__stub_____res_send)
18460 choke me
18461 #else
18462 char (*f) () = __res_send;
18463 #endif
18464 #ifdef __cplusplus
18466 #endif
18469 main ()
18471 return f != __res_send;
18473 return 0;
18475 _ACEOF
18476 rm -f conftest.$ac_objext conftest$ac_exeext
18477 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18478 (eval $ac_link) 2>conftest.er1
18479 ac_status=$?
18480 grep -v '^ *+' conftest.er1 >conftest.err
18481 rm -f conftest.er1
18482 cat conftest.err >&5
18483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18484 (exit $ac_status); } &&
18485 { ac_try='test -z "$ac_c_werror_flag"
18486 || test ! -s conftest.err'
18487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18488 (eval $ac_try) 2>&5
18489 ac_status=$?
18490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18491 (exit $ac_status); }; } &&
18492 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
18498 ac_cv_func___res_send=yes
18499 else
18500 echo "$as_me: failed program was:" >&5
18501 sed 's/^/| /' conftest.$ac_ext >&5
18503 ac_cv_func___res_send=no
18505 rm -f conftest.err conftest.$ac_objext \
18506 conftest$ac_exeext conftest.$ac_ext
18508 echo "$as_me:$LINENO: result: $ac_cv_func___res_send" >&5
18509 echo "${ECHO_T}$ac_cv_func___res_send" >&6
18510 if test $ac_cv_func___res_send = yes; then
18512 else
18513 echo "$as_me:$LINENO: checking for res_send in -lresolv" >&5
18514 echo $ECHO_N "checking for res_send in -lresolv... $ECHO_C" >&6
18515 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
18516 echo $ECHO_N "(cached) $ECHO_C" >&6
18517 else
18518 ac_check_lib_save_LIBS=$LIBS
18519 LIBS="-lresolv $LIBS"
18520 cat >conftest.$ac_ext <<_ACEOF
18521 /* confdefs.h. */
18522 _ACEOF
18523 cat confdefs.h >>conftest.$ac_ext
18524 cat >>conftest.$ac_ext <<_ACEOF
18525 /* end confdefs.h. */
18527 /* Override any gcc2 internal prototype to avoid an error. */
18528 #ifdef __cplusplus
18529 extern "C"
18530 #endif
18531 /* We use char because int might match the return type of a gcc2
18532 builtin and then its argument prototype would still apply. */
18533 char res_send ();
18535 main ()
18537 res_send ();
18539 return 0;
18541 _ACEOF
18542 rm -f conftest.$ac_objext conftest$ac_exeext
18543 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18544 (eval $ac_link) 2>conftest.er1
18545 ac_status=$?
18546 grep -v '^ *+' conftest.er1 >conftest.err
18547 rm -f conftest.er1
18548 cat conftest.err >&5
18549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18550 (exit $ac_status); } &&
18551 { ac_try='test -z "$ac_c_werror_flag"
18552 || test ! -s conftest.err'
18553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18554 (eval $ac_try) 2>&5
18555 ac_status=$?
18556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18557 (exit $ac_status); }; } &&
18558 { ac_try='test -s conftest$ac_exeext'
18559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18560 (eval $ac_try) 2>&5
18561 ac_status=$?
18562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18563 (exit $ac_status); }; }; then
18564 ac_cv_lib_resolv_res_send=yes
18565 else
18566 echo "$as_me: failed program was:" >&5
18567 sed 's/^/| /' conftest.$ac_ext >&5
18569 ac_cv_lib_resolv_res_send=no
18571 rm -f conftest.err conftest.$ac_objext \
18572 conftest$ac_exeext conftest.$ac_ext
18573 LIBS=$ac_check_lib_save_LIBS
18575 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_send" >&5
18576 echo "${ECHO_T}$ac_cv_lib_resolv_res_send" >&6
18577 if test $ac_cv_lib_resolv_res_send = yes; then
18578 resolv=yes
18579 else
18580 echo "$as_me:$LINENO: checking for __res_send in -lresolv" >&5
18581 echo $ECHO_N "checking for __res_send in -lresolv... $ECHO_C" >&6
18582 if test "${ac_cv_lib_resolv___res_send+set}" = set; then
18583 echo $ECHO_N "(cached) $ECHO_C" >&6
18584 else
18585 ac_check_lib_save_LIBS=$LIBS
18586 LIBS="-lresolv $LIBS"
18587 cat >conftest.$ac_ext <<_ACEOF
18588 /* confdefs.h. */
18589 _ACEOF
18590 cat confdefs.h >>conftest.$ac_ext
18591 cat >>conftest.$ac_ext <<_ACEOF
18592 /* end confdefs.h. */
18594 /* Override any gcc2 internal prototype to avoid an error. */
18595 #ifdef __cplusplus
18596 extern "C"
18597 #endif
18598 /* We use char because int might match the return type of a gcc2
18599 builtin and then its argument prototype would still apply. */
18600 char __res_send ();
18602 main ()
18604 __res_send ();
18606 return 0;
18608 _ACEOF
18609 rm -f conftest.$ac_objext conftest$ac_exeext
18610 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18611 (eval $ac_link) 2>conftest.er1
18612 ac_status=$?
18613 grep -v '^ *+' conftest.er1 >conftest.err
18614 rm -f conftest.er1
18615 cat conftest.err >&5
18616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18617 (exit $ac_status); } &&
18618 { ac_try='test -z "$ac_c_werror_flag"
18619 || test ! -s conftest.err'
18620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18621 (eval $ac_try) 2>&5
18622 ac_status=$?
18623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18624 (exit $ac_status); }; } &&
18625 { ac_try='test -s conftest$ac_exeext'
18626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18627 (eval $ac_try) 2>&5
18628 ac_status=$?
18629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18630 (exit $ac_status); }; }; then
18631 ac_cv_lib_resolv___res_send=yes
18632 else
18633 echo "$as_me: failed program was:" >&5
18634 sed 's/^/| /' conftest.$ac_ext >&5
18636 ac_cv_lib_resolv___res_send=no
18638 rm -f conftest.err conftest.$ac_objext \
18639 conftest$ac_exeext conftest.$ac_ext
18640 LIBS=$ac_check_lib_save_LIBS
18642 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv___res_send" >&5
18643 echo "${ECHO_T}$ac_cv_lib_resolv___res_send" >&6
18644 if test $ac_cv_lib_resolv___res_send = yes; then
18645 resolv=yes
18654 if test "$resolv" = yes ; then
18655 RESOLVLIB=-lresolv
18657 cat >>confdefs.h <<\_ACEOF
18658 #define HAVE_LIBRESOLV 1
18659 _ACEOF
18661 else
18662 RESOLVLIB=
18664 echo "$as_me:$LINENO: checking for hes_getmailhost" >&5
18665 echo $ECHO_N "checking for hes_getmailhost... $ECHO_C" >&6
18666 if test "${ac_cv_func_hes_getmailhost+set}" = set; then
18667 echo $ECHO_N "(cached) $ECHO_C" >&6
18668 else
18669 cat >conftest.$ac_ext <<_ACEOF
18670 /* confdefs.h. */
18671 _ACEOF
18672 cat confdefs.h >>conftest.$ac_ext
18673 cat >>conftest.$ac_ext <<_ACEOF
18674 /* end confdefs.h. */
18675 /* Define hes_getmailhost to an innocuous variant, in case <limits.h> declares hes_getmailhost.
18676 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18677 #define hes_getmailhost innocuous_hes_getmailhost
18679 /* System header to define __stub macros and hopefully few prototypes,
18680 which can conflict with char hes_getmailhost (); below.
18681 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18682 <limits.h> exists even on freestanding compilers. */
18684 #ifdef __STDC__
18685 # include <limits.h>
18686 #else
18687 # include <assert.h>
18688 #endif
18690 #undef hes_getmailhost
18692 /* Override any gcc2 internal prototype to avoid an error. */
18693 #ifdef __cplusplus
18694 extern "C"
18696 #endif
18697 /* We use char because int might match the return type of a gcc2
18698 builtin and then its argument prototype would still apply. */
18699 char hes_getmailhost ();
18700 /* The GNU C library defines this for functions which it implements
18701 to always fail with ENOSYS. Some functions are actually named
18702 something starting with __ and the normal name is an alias. */
18703 #if defined (__stub_hes_getmailhost) || defined (__stub___hes_getmailhost)
18704 choke me
18705 #else
18706 char (*f) () = hes_getmailhost;
18707 #endif
18708 #ifdef __cplusplus
18710 #endif
18713 main ()
18715 return f != hes_getmailhost;
18717 return 0;
18719 _ACEOF
18720 rm -f conftest.$ac_objext conftest$ac_exeext
18721 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18722 (eval $ac_link) 2>conftest.er1
18723 ac_status=$?
18724 grep -v '^ *+' conftest.er1 >conftest.err
18725 rm -f conftest.er1
18726 cat conftest.err >&5
18727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18728 (exit $ac_status); } &&
18729 { ac_try='test -z "$ac_c_werror_flag"
18730 || test ! -s conftest.err'
18731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18732 (eval $ac_try) 2>&5
18733 ac_status=$?
18734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18735 (exit $ac_status); }; } &&
18736 { ac_try='test -s conftest$ac_exeext'
18737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18738 (eval $ac_try) 2>&5
18739 ac_status=$?
18740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18741 (exit $ac_status); }; }; then
18742 ac_cv_func_hes_getmailhost=yes
18743 else
18744 echo "$as_me: failed program was:" >&5
18745 sed 's/^/| /' conftest.$ac_ext >&5
18747 ac_cv_func_hes_getmailhost=no
18749 rm -f conftest.err conftest.$ac_objext \
18750 conftest$ac_exeext conftest.$ac_ext
18752 echo "$as_me:$LINENO: result: $ac_cv_func_hes_getmailhost" >&5
18753 echo "${ECHO_T}$ac_cv_func_hes_getmailhost" >&6
18754 if test $ac_cv_func_hes_getmailhost = yes; then
18756 else
18757 echo "$as_me:$LINENO: checking for hes_getmailhost in -lhesiod" >&5
18758 echo $ECHO_N "checking for hes_getmailhost in -lhesiod... $ECHO_C" >&6
18759 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
18760 echo $ECHO_N "(cached) $ECHO_C" >&6
18761 else
18762 ac_check_lib_save_LIBS=$LIBS
18763 LIBS="-lhesiod $RESOLVLIB $LIBS"
18764 cat >conftest.$ac_ext <<_ACEOF
18765 /* confdefs.h. */
18766 _ACEOF
18767 cat confdefs.h >>conftest.$ac_ext
18768 cat >>conftest.$ac_ext <<_ACEOF
18769 /* end confdefs.h. */
18771 /* Override any gcc2 internal prototype to avoid an error. */
18772 #ifdef __cplusplus
18773 extern "C"
18774 #endif
18775 /* We use char because int might match the return type of a gcc2
18776 builtin and then its argument prototype would still apply. */
18777 char hes_getmailhost ();
18779 main ()
18781 hes_getmailhost ();
18783 return 0;
18785 _ACEOF
18786 rm -f conftest.$ac_objext conftest$ac_exeext
18787 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18788 (eval $ac_link) 2>conftest.er1
18789 ac_status=$?
18790 grep -v '^ *+' conftest.er1 >conftest.err
18791 rm -f conftest.er1
18792 cat conftest.err >&5
18793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18794 (exit $ac_status); } &&
18795 { ac_try='test -z "$ac_c_werror_flag"
18796 || test ! -s conftest.err'
18797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18798 (eval $ac_try) 2>&5
18799 ac_status=$?
18800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18801 (exit $ac_status); }; } &&
18802 { ac_try='test -s conftest$ac_exeext'
18803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18804 (eval $ac_try) 2>&5
18805 ac_status=$?
18806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18807 (exit $ac_status); }; }; then
18808 ac_cv_lib_hesiod_hes_getmailhost=yes
18809 else
18810 echo "$as_me: failed program was:" >&5
18811 sed 's/^/| /' conftest.$ac_ext >&5
18813 ac_cv_lib_hesiod_hes_getmailhost=no
18815 rm -f conftest.err conftest.$ac_objext \
18816 conftest$ac_exeext conftest.$ac_ext
18817 LIBS=$ac_check_lib_save_LIBS
18819 echo "$as_me:$LINENO: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
18820 echo "${ECHO_T}$ac_cv_lib_hesiod_hes_getmailhost" >&6
18821 if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then
18823 cat >>confdefs.h <<\_ACEOF
18824 #define HAVE_LIBHESIOD 1
18825 _ACEOF
18827 else
18835 # These tell us which Kerberos-related libraries to use.
18836 if test "${with_kerberos+set}" = set; then
18838 echo "$as_me:$LINENO: checking for com_err in -lcom_err" >&5
18839 echo $ECHO_N "checking for com_err in -lcom_err... $ECHO_C" >&6
18840 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
18841 echo $ECHO_N "(cached) $ECHO_C" >&6
18842 else
18843 ac_check_lib_save_LIBS=$LIBS
18844 LIBS="-lcom_err $LIBS"
18845 cat >conftest.$ac_ext <<_ACEOF
18846 /* confdefs.h. */
18847 _ACEOF
18848 cat confdefs.h >>conftest.$ac_ext
18849 cat >>conftest.$ac_ext <<_ACEOF
18850 /* end confdefs.h. */
18852 /* Override any gcc2 internal prototype to avoid an error. */
18853 #ifdef __cplusplus
18854 extern "C"
18855 #endif
18856 /* We use char because int might match the return type of a gcc2
18857 builtin and then its argument prototype would still apply. */
18858 char com_err ();
18860 main ()
18862 com_err ();
18864 return 0;
18866 _ACEOF
18867 rm -f conftest.$ac_objext conftest$ac_exeext
18868 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18869 (eval $ac_link) 2>conftest.er1
18870 ac_status=$?
18871 grep -v '^ *+' conftest.er1 >conftest.err
18872 rm -f conftest.er1
18873 cat conftest.err >&5
18874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18875 (exit $ac_status); } &&
18876 { ac_try='test -z "$ac_c_werror_flag"
18877 || test ! -s conftest.err'
18878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18879 (eval $ac_try) 2>&5
18880 ac_status=$?
18881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18882 (exit $ac_status); }; } &&
18883 { ac_try='test -s conftest$ac_exeext'
18884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18885 (eval $ac_try) 2>&5
18886 ac_status=$?
18887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18888 (exit $ac_status); }; }; then
18889 ac_cv_lib_com_err_com_err=yes
18890 else
18891 echo "$as_me: failed program was:" >&5
18892 sed 's/^/| /' conftest.$ac_ext >&5
18894 ac_cv_lib_com_err_com_err=no
18896 rm -f conftest.err conftest.$ac_objext \
18897 conftest$ac_exeext conftest.$ac_ext
18898 LIBS=$ac_check_lib_save_LIBS
18900 echo "$as_me:$LINENO: result: $ac_cv_lib_com_err_com_err" >&5
18901 echo "${ECHO_T}$ac_cv_lib_com_err_com_err" >&6
18902 if test $ac_cv_lib_com_err_com_err = yes; then
18903 cat >>confdefs.h <<_ACEOF
18904 #define HAVE_LIBCOM_ERR 1
18905 _ACEOF
18907 LIBS="-lcom_err $LIBS"
18912 echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
18913 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lk5crypto... $ECHO_C" >&6
18914 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
18915 echo $ECHO_N "(cached) $ECHO_C" >&6
18916 else
18917 ac_check_lib_save_LIBS=$LIBS
18918 LIBS="-lk5crypto $LIBS"
18919 cat >conftest.$ac_ext <<_ACEOF
18920 /* confdefs.h. */
18921 _ACEOF
18922 cat confdefs.h >>conftest.$ac_ext
18923 cat >>conftest.$ac_ext <<_ACEOF
18924 /* end confdefs.h. */
18926 /* Override any gcc2 internal prototype to avoid an error. */
18927 #ifdef __cplusplus
18928 extern "C"
18929 #endif
18930 /* We use char because int might match the return type of a gcc2
18931 builtin and then its argument prototype would still apply. */
18932 char mit_des_cbc_encrypt ();
18934 main ()
18936 mit_des_cbc_encrypt ();
18938 return 0;
18940 _ACEOF
18941 rm -f conftest.$ac_objext conftest$ac_exeext
18942 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18943 (eval $ac_link) 2>conftest.er1
18944 ac_status=$?
18945 grep -v '^ *+' conftest.er1 >conftest.err
18946 rm -f conftest.er1
18947 cat conftest.err >&5
18948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18949 (exit $ac_status); } &&
18950 { ac_try='test -z "$ac_c_werror_flag"
18951 || test ! -s conftest.err'
18952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18953 (eval $ac_try) 2>&5
18954 ac_status=$?
18955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18956 (exit $ac_status); }; } &&
18957 { ac_try='test -s conftest$ac_exeext'
18958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18959 (eval $ac_try) 2>&5
18960 ac_status=$?
18961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18962 (exit $ac_status); }; }; then
18963 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
18964 else
18965 echo "$as_me: failed program was:" >&5
18966 sed 's/^/| /' conftest.$ac_ext >&5
18968 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
18970 rm -f conftest.err conftest.$ac_objext \
18971 conftest$ac_exeext conftest.$ac_ext
18972 LIBS=$ac_check_lib_save_LIBS
18974 echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
18975 echo "${ECHO_T}$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6
18976 if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then
18977 cat >>confdefs.h <<_ACEOF
18978 #define HAVE_LIBK5CRYPTO 1
18979 _ACEOF
18981 LIBS="-lk5crypto $LIBS"
18986 echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lcrypto" >&5
18987 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lcrypto... $ECHO_C" >&6
18988 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
18989 echo $ECHO_N "(cached) $ECHO_C" >&6
18990 else
18991 ac_check_lib_save_LIBS=$LIBS
18992 LIBS="-lcrypto $LIBS"
18993 cat >conftest.$ac_ext <<_ACEOF
18994 /* confdefs.h. */
18995 _ACEOF
18996 cat confdefs.h >>conftest.$ac_ext
18997 cat >>conftest.$ac_ext <<_ACEOF
18998 /* end confdefs.h. */
19000 /* Override any gcc2 internal prototype to avoid an error. */
19001 #ifdef __cplusplus
19002 extern "C"
19003 #endif
19004 /* We use char because int might match the return type of a gcc2
19005 builtin and then its argument prototype would still apply. */
19006 char mit_des_cbc_encrypt ();
19008 main ()
19010 mit_des_cbc_encrypt ();
19012 return 0;
19014 _ACEOF
19015 rm -f conftest.$ac_objext conftest$ac_exeext
19016 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19017 (eval $ac_link) 2>conftest.er1
19018 ac_status=$?
19019 grep -v '^ *+' conftest.er1 >conftest.err
19020 rm -f conftest.er1
19021 cat conftest.err >&5
19022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19023 (exit $ac_status); } &&
19024 { ac_try='test -z "$ac_c_werror_flag"
19025 || test ! -s conftest.err'
19026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19027 (eval $ac_try) 2>&5
19028 ac_status=$?
19029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19030 (exit $ac_status); }; } &&
19031 { ac_try='test -s conftest$ac_exeext'
19032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19033 (eval $ac_try) 2>&5
19034 ac_status=$?
19035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19036 (exit $ac_status); }; }; then
19037 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
19038 else
19039 echo "$as_me: failed program was:" >&5
19040 sed 's/^/| /' conftest.$ac_ext >&5
19042 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
19044 rm -f conftest.err conftest.$ac_objext \
19045 conftest$ac_exeext conftest.$ac_ext
19046 LIBS=$ac_check_lib_save_LIBS
19048 echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
19049 echo "${ECHO_T}$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6
19050 if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then
19051 cat >>confdefs.h <<_ACEOF
19052 #define HAVE_LIBCRYPTO 1
19053 _ACEOF
19055 LIBS="-lcrypto $LIBS"
19060 echo "$as_me:$LINENO: checking for krb5_init_context in -lkrb5" >&5
19061 echo $ECHO_N "checking for krb5_init_context in -lkrb5... $ECHO_C" >&6
19062 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
19063 echo $ECHO_N "(cached) $ECHO_C" >&6
19064 else
19065 ac_check_lib_save_LIBS=$LIBS
19066 LIBS="-lkrb5 $LIBS"
19067 cat >conftest.$ac_ext <<_ACEOF
19068 /* confdefs.h. */
19069 _ACEOF
19070 cat confdefs.h >>conftest.$ac_ext
19071 cat >>conftest.$ac_ext <<_ACEOF
19072 /* end confdefs.h. */
19074 /* Override any gcc2 internal prototype to avoid an error. */
19075 #ifdef __cplusplus
19076 extern "C"
19077 #endif
19078 /* We use char because int might match the return type of a gcc2
19079 builtin and then its argument prototype would still apply. */
19080 char krb5_init_context ();
19082 main ()
19084 krb5_init_context ();
19086 return 0;
19088 _ACEOF
19089 rm -f conftest.$ac_objext conftest$ac_exeext
19090 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19091 (eval $ac_link) 2>conftest.er1
19092 ac_status=$?
19093 grep -v '^ *+' conftest.er1 >conftest.err
19094 rm -f conftest.er1
19095 cat conftest.err >&5
19096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19097 (exit $ac_status); } &&
19098 { ac_try='test -z "$ac_c_werror_flag"
19099 || test ! -s conftest.err'
19100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19101 (eval $ac_try) 2>&5
19102 ac_status=$?
19103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19104 (exit $ac_status); }; } &&
19105 { ac_try='test -s conftest$ac_exeext'
19106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19107 (eval $ac_try) 2>&5
19108 ac_status=$?
19109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19110 (exit $ac_status); }; }; then
19111 ac_cv_lib_krb5_krb5_init_context=yes
19112 else
19113 echo "$as_me: failed program was:" >&5
19114 sed 's/^/| /' conftest.$ac_ext >&5
19116 ac_cv_lib_krb5_krb5_init_context=no
19118 rm -f conftest.err conftest.$ac_objext \
19119 conftest$ac_exeext conftest.$ac_ext
19120 LIBS=$ac_check_lib_save_LIBS
19122 echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_krb5_init_context" >&5
19123 echo "${ECHO_T}$ac_cv_lib_krb5_krb5_init_context" >&6
19124 if test $ac_cv_lib_krb5_krb5_init_context = yes; then
19125 cat >>confdefs.h <<_ACEOF
19126 #define HAVE_LIBKRB5 1
19127 _ACEOF
19129 LIBS="-lkrb5 $LIBS"
19133 if test "${with_kerberos5+set}" != set; then
19135 echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes425" >&5
19136 echo $ECHO_N "checking for des_cbc_encrypt in -ldes425... $ECHO_C" >&6
19137 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
19138 echo $ECHO_N "(cached) $ECHO_C" >&6
19139 else
19140 ac_check_lib_save_LIBS=$LIBS
19141 LIBS="-ldes425 $LIBS"
19142 cat >conftest.$ac_ext <<_ACEOF
19143 /* confdefs.h. */
19144 _ACEOF
19145 cat confdefs.h >>conftest.$ac_ext
19146 cat >>conftest.$ac_ext <<_ACEOF
19147 /* end confdefs.h. */
19149 /* Override any gcc2 internal prototype to avoid an error. */
19150 #ifdef __cplusplus
19151 extern "C"
19152 #endif
19153 /* We use char because int might match the return type of a gcc2
19154 builtin and then its argument prototype would still apply. */
19155 char des_cbc_encrypt ();
19157 main ()
19159 des_cbc_encrypt ();
19161 return 0;
19163 _ACEOF
19164 rm -f conftest.$ac_objext conftest$ac_exeext
19165 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19166 (eval $ac_link) 2>conftest.er1
19167 ac_status=$?
19168 grep -v '^ *+' conftest.er1 >conftest.err
19169 rm -f conftest.er1
19170 cat conftest.err >&5
19171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19172 (exit $ac_status); } &&
19173 { ac_try='test -z "$ac_c_werror_flag"
19174 || test ! -s conftest.err'
19175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19176 (eval $ac_try) 2>&5
19177 ac_status=$?
19178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19179 (exit $ac_status); }; } &&
19180 { ac_try='test -s conftest$ac_exeext'
19181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19182 (eval $ac_try) 2>&5
19183 ac_status=$?
19184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19185 (exit $ac_status); }; }; then
19186 ac_cv_lib_des425_des_cbc_encrypt=yes
19187 else
19188 echo "$as_me: failed program was:" >&5
19189 sed 's/^/| /' conftest.$ac_ext >&5
19191 ac_cv_lib_des425_des_cbc_encrypt=no
19193 rm -f conftest.err conftest.$ac_objext \
19194 conftest$ac_exeext conftest.$ac_ext
19195 LIBS=$ac_check_lib_save_LIBS
19197 echo "$as_me:$LINENO: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
19198 echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6
19199 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
19200 cat >>confdefs.h <<_ACEOF
19201 #define HAVE_LIBDES425 1
19202 _ACEOF
19204 LIBS="-ldes425 $LIBS"
19206 else
19208 echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes" >&5
19209 echo $ECHO_N "checking for des_cbc_encrypt in -ldes... $ECHO_C" >&6
19210 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
19211 echo $ECHO_N "(cached) $ECHO_C" >&6
19212 else
19213 ac_check_lib_save_LIBS=$LIBS
19214 LIBS="-ldes $LIBS"
19215 cat >conftest.$ac_ext <<_ACEOF
19216 /* confdefs.h. */
19217 _ACEOF
19218 cat confdefs.h >>conftest.$ac_ext
19219 cat >>conftest.$ac_ext <<_ACEOF
19220 /* end confdefs.h. */
19222 /* Override any gcc2 internal prototype to avoid an error. */
19223 #ifdef __cplusplus
19224 extern "C"
19225 #endif
19226 /* We use char because int might match the return type of a gcc2
19227 builtin and then its argument prototype would still apply. */
19228 char des_cbc_encrypt ();
19230 main ()
19232 des_cbc_encrypt ();
19234 return 0;
19236 _ACEOF
19237 rm -f conftest.$ac_objext conftest$ac_exeext
19238 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19239 (eval $ac_link) 2>conftest.er1
19240 ac_status=$?
19241 grep -v '^ *+' conftest.er1 >conftest.err
19242 rm -f conftest.er1
19243 cat conftest.err >&5
19244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19245 (exit $ac_status); } &&
19246 { ac_try='test -z "$ac_c_werror_flag"
19247 || test ! -s conftest.err'
19248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19249 (eval $ac_try) 2>&5
19250 ac_status=$?
19251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19252 (exit $ac_status); }; } &&
19253 { ac_try='test -s conftest$ac_exeext'
19254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19255 (eval $ac_try) 2>&5
19256 ac_status=$?
19257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19258 (exit $ac_status); }; }; then
19259 ac_cv_lib_des_des_cbc_encrypt=yes
19260 else
19261 echo "$as_me: failed program was:" >&5
19262 sed 's/^/| /' conftest.$ac_ext >&5
19264 ac_cv_lib_des_des_cbc_encrypt=no
19266 rm -f conftest.err conftest.$ac_objext \
19267 conftest$ac_exeext conftest.$ac_ext
19268 LIBS=$ac_check_lib_save_LIBS
19270 echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
19271 echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6
19272 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
19273 cat >>confdefs.h <<_ACEOF
19274 #define HAVE_LIBDES 1
19275 _ACEOF
19277 LIBS="-ldes $LIBS"
19284 echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb4" >&5
19285 echo $ECHO_N "checking for krb_get_cred in -lkrb4... $ECHO_C" >&6
19286 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
19287 echo $ECHO_N "(cached) $ECHO_C" >&6
19288 else
19289 ac_check_lib_save_LIBS=$LIBS
19290 LIBS="-lkrb4 $LIBS"
19291 cat >conftest.$ac_ext <<_ACEOF
19292 /* confdefs.h. */
19293 _ACEOF
19294 cat confdefs.h >>conftest.$ac_ext
19295 cat >>conftest.$ac_ext <<_ACEOF
19296 /* end confdefs.h. */
19298 /* Override any gcc2 internal prototype to avoid an error. */
19299 #ifdef __cplusplus
19300 extern "C"
19301 #endif
19302 /* We use char because int might match the return type of a gcc2
19303 builtin and then its argument prototype would still apply. */
19304 char krb_get_cred ();
19306 main ()
19308 krb_get_cred ();
19310 return 0;
19312 _ACEOF
19313 rm -f conftest.$ac_objext conftest$ac_exeext
19314 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19315 (eval $ac_link) 2>conftest.er1
19316 ac_status=$?
19317 grep -v '^ *+' conftest.er1 >conftest.err
19318 rm -f conftest.er1
19319 cat conftest.err >&5
19320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19321 (exit $ac_status); } &&
19322 { ac_try='test -z "$ac_c_werror_flag"
19323 || test ! -s conftest.err'
19324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19325 (eval $ac_try) 2>&5
19326 ac_status=$?
19327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19328 (exit $ac_status); }; } &&
19329 { ac_try='test -s conftest$ac_exeext'
19330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19331 (eval $ac_try) 2>&5
19332 ac_status=$?
19333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19334 (exit $ac_status); }; }; then
19335 ac_cv_lib_krb4_krb_get_cred=yes
19336 else
19337 echo "$as_me: failed program was:" >&5
19338 sed 's/^/| /' conftest.$ac_ext >&5
19340 ac_cv_lib_krb4_krb_get_cred=no
19342 rm -f conftest.err conftest.$ac_objext \
19343 conftest$ac_exeext conftest.$ac_ext
19344 LIBS=$ac_check_lib_save_LIBS
19346 echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_krb_get_cred" >&5
19347 echo "${ECHO_T}$ac_cv_lib_krb4_krb_get_cred" >&6
19348 if test $ac_cv_lib_krb4_krb_get_cred = yes; then
19349 cat >>confdefs.h <<_ACEOF
19350 #define HAVE_LIBKRB4 1
19351 _ACEOF
19353 LIBS="-lkrb4 $LIBS"
19355 else
19357 echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb" >&5
19358 echo $ECHO_N "checking for krb_get_cred in -lkrb... $ECHO_C" >&6
19359 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
19360 echo $ECHO_N "(cached) $ECHO_C" >&6
19361 else
19362 ac_check_lib_save_LIBS=$LIBS
19363 LIBS="-lkrb $LIBS"
19364 cat >conftest.$ac_ext <<_ACEOF
19365 /* confdefs.h. */
19366 _ACEOF
19367 cat confdefs.h >>conftest.$ac_ext
19368 cat >>conftest.$ac_ext <<_ACEOF
19369 /* end confdefs.h. */
19371 /* Override any gcc2 internal prototype to avoid an error. */
19372 #ifdef __cplusplus
19373 extern "C"
19374 #endif
19375 /* We use char because int might match the return type of a gcc2
19376 builtin and then its argument prototype would still apply. */
19377 char krb_get_cred ();
19379 main ()
19381 krb_get_cred ();
19383 return 0;
19385 _ACEOF
19386 rm -f conftest.$ac_objext conftest$ac_exeext
19387 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19388 (eval $ac_link) 2>conftest.er1
19389 ac_status=$?
19390 grep -v '^ *+' conftest.er1 >conftest.err
19391 rm -f conftest.er1
19392 cat conftest.err >&5
19393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19394 (exit $ac_status); } &&
19395 { ac_try='test -z "$ac_c_werror_flag"
19396 || test ! -s conftest.err'
19397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19398 (eval $ac_try) 2>&5
19399 ac_status=$?
19400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19401 (exit $ac_status); }; } &&
19402 { ac_try='test -s conftest$ac_exeext'
19403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19404 (eval $ac_try) 2>&5
19405 ac_status=$?
19406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19407 (exit $ac_status); }; }; then
19408 ac_cv_lib_krb_krb_get_cred=yes
19409 else
19410 echo "$as_me: failed program was:" >&5
19411 sed 's/^/| /' conftest.$ac_ext >&5
19413 ac_cv_lib_krb_krb_get_cred=no
19415 rm -f conftest.err conftest.$ac_objext \
19416 conftest$ac_exeext conftest.$ac_ext
19417 LIBS=$ac_check_lib_save_LIBS
19419 echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_get_cred" >&5
19420 echo "${ECHO_T}$ac_cv_lib_krb_krb_get_cred" >&6
19421 if test $ac_cv_lib_krb_krb_get_cred = yes; then
19422 cat >>confdefs.h <<_ACEOF
19423 #define HAVE_LIBKRB 1
19424 _ACEOF
19426 LIBS="-lkrb $LIBS"
19434 if test "${with_kerberos5+set}" = set; then
19436 for ac_header in krb5.h
19438 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19439 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19440 echo "$as_me:$LINENO: checking for $ac_header" >&5
19441 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19442 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19443 echo $ECHO_N "(cached) $ECHO_C" >&6
19445 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19446 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19447 else
19448 # Is the header compilable?
19449 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19450 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19451 cat >conftest.$ac_ext <<_ACEOF
19452 /* confdefs.h. */
19453 _ACEOF
19454 cat confdefs.h >>conftest.$ac_ext
19455 cat >>conftest.$ac_ext <<_ACEOF
19456 /* end confdefs.h. */
19457 $ac_includes_default
19458 #include <$ac_header>
19459 _ACEOF
19460 rm -f conftest.$ac_objext
19461 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19462 (eval $ac_compile) 2>conftest.er1
19463 ac_status=$?
19464 grep -v '^ *+' conftest.er1 >conftest.err
19465 rm -f conftest.er1
19466 cat conftest.err >&5
19467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19468 (exit $ac_status); } &&
19469 { ac_try='test -z "$ac_c_werror_flag"
19470 || test ! -s conftest.err'
19471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19472 (eval $ac_try) 2>&5
19473 ac_status=$?
19474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19475 (exit $ac_status); }; } &&
19476 { ac_try='test -s conftest.$ac_objext'
19477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19478 (eval $ac_try) 2>&5
19479 ac_status=$?
19480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19481 (exit $ac_status); }; }; then
19482 ac_header_compiler=yes
19483 else
19484 echo "$as_me: failed program was:" >&5
19485 sed 's/^/| /' conftest.$ac_ext >&5
19487 ac_header_compiler=no
19489 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19490 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19491 echo "${ECHO_T}$ac_header_compiler" >&6
19493 # Is the header present?
19494 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19495 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19496 cat >conftest.$ac_ext <<_ACEOF
19497 /* confdefs.h. */
19498 _ACEOF
19499 cat confdefs.h >>conftest.$ac_ext
19500 cat >>conftest.$ac_ext <<_ACEOF
19501 /* end confdefs.h. */
19502 #include <$ac_header>
19503 _ACEOF
19504 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19505 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19506 ac_status=$?
19507 grep -v '^ *+' conftest.er1 >conftest.err
19508 rm -f conftest.er1
19509 cat conftest.err >&5
19510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19511 (exit $ac_status); } >/dev/null; then
19512 if test -s conftest.err; then
19513 ac_cpp_err=$ac_c_preproc_warn_flag
19514 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19515 else
19516 ac_cpp_err=
19518 else
19519 ac_cpp_err=yes
19521 if test -z "$ac_cpp_err"; then
19522 ac_header_preproc=yes
19523 else
19524 echo "$as_me: failed program was:" >&5
19525 sed 's/^/| /' conftest.$ac_ext >&5
19527 ac_header_preproc=no
19529 rm -f conftest.err conftest.$ac_ext
19530 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19531 echo "${ECHO_T}$ac_header_preproc" >&6
19533 # So? What about this header?
19534 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19535 yes:no: )
19536 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19537 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19538 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19539 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19540 ac_header_preproc=yes
19542 no:yes:* )
19543 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19544 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19545 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19546 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19547 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19548 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19549 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19550 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19551 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19552 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19553 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19554 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19556 cat <<\_ASBOX
19557 ## ------------------------------------------ ##
19558 ## Report this to the AC_PACKAGE_NAME lists. ##
19559 ## ------------------------------------------ ##
19560 _ASBOX
19562 sed "s/^/$as_me: WARNING: /" >&2
19564 esac
19565 echo "$as_me:$LINENO: checking for $ac_header" >&5
19566 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19567 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19568 echo $ECHO_N "(cached) $ECHO_C" >&6
19569 else
19570 eval "$as_ac_Header=\$ac_header_preproc"
19572 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19573 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19576 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19577 cat >>confdefs.h <<_ACEOF
19578 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19579 _ACEOF
19583 done
19585 else
19587 for ac_header in des.h
19589 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19590 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19591 echo "$as_me:$LINENO: checking for $ac_header" >&5
19592 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19593 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19594 echo $ECHO_N "(cached) $ECHO_C" >&6
19596 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19597 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19598 else
19599 # Is the header compilable?
19600 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19601 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19602 cat >conftest.$ac_ext <<_ACEOF
19603 /* confdefs.h. */
19604 _ACEOF
19605 cat confdefs.h >>conftest.$ac_ext
19606 cat >>conftest.$ac_ext <<_ACEOF
19607 /* end confdefs.h. */
19608 $ac_includes_default
19609 #include <$ac_header>
19610 _ACEOF
19611 rm -f conftest.$ac_objext
19612 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19613 (eval $ac_compile) 2>conftest.er1
19614 ac_status=$?
19615 grep -v '^ *+' conftest.er1 >conftest.err
19616 rm -f conftest.er1
19617 cat conftest.err >&5
19618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19619 (exit $ac_status); } &&
19620 { ac_try='test -z "$ac_c_werror_flag"
19621 || test ! -s conftest.err'
19622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19623 (eval $ac_try) 2>&5
19624 ac_status=$?
19625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19626 (exit $ac_status); }; } &&
19627 { ac_try='test -s conftest.$ac_objext'
19628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19629 (eval $ac_try) 2>&5
19630 ac_status=$?
19631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19632 (exit $ac_status); }; }; then
19633 ac_header_compiler=yes
19634 else
19635 echo "$as_me: failed program was:" >&5
19636 sed 's/^/| /' conftest.$ac_ext >&5
19638 ac_header_compiler=no
19640 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19641 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19642 echo "${ECHO_T}$ac_header_compiler" >&6
19644 # Is the header present?
19645 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19646 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19647 cat >conftest.$ac_ext <<_ACEOF
19648 /* confdefs.h. */
19649 _ACEOF
19650 cat confdefs.h >>conftest.$ac_ext
19651 cat >>conftest.$ac_ext <<_ACEOF
19652 /* end confdefs.h. */
19653 #include <$ac_header>
19654 _ACEOF
19655 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19656 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19657 ac_status=$?
19658 grep -v '^ *+' conftest.er1 >conftest.err
19659 rm -f conftest.er1
19660 cat conftest.err >&5
19661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19662 (exit $ac_status); } >/dev/null; then
19663 if test -s conftest.err; then
19664 ac_cpp_err=$ac_c_preproc_warn_flag
19665 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19666 else
19667 ac_cpp_err=
19669 else
19670 ac_cpp_err=yes
19672 if test -z "$ac_cpp_err"; then
19673 ac_header_preproc=yes
19674 else
19675 echo "$as_me: failed program was:" >&5
19676 sed 's/^/| /' conftest.$ac_ext >&5
19678 ac_header_preproc=no
19680 rm -f conftest.err conftest.$ac_ext
19681 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19682 echo "${ECHO_T}$ac_header_preproc" >&6
19684 # So? What about this header?
19685 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19686 yes:no: )
19687 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19688 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19689 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19690 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19691 ac_header_preproc=yes
19693 no:yes:* )
19694 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19695 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19696 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19697 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19698 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19699 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19700 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19701 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19702 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19703 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19704 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19705 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19707 cat <<\_ASBOX
19708 ## ------------------------------------------ ##
19709 ## Report this to the AC_PACKAGE_NAME lists. ##
19710 ## ------------------------------------------ ##
19711 _ASBOX
19713 sed "s/^/$as_me: WARNING: /" >&2
19715 esac
19716 echo "$as_me:$LINENO: checking for $ac_header" >&5
19717 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19718 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19719 echo $ECHO_N "(cached) $ECHO_C" >&6
19720 else
19721 eval "$as_ac_Header=\$ac_header_preproc"
19723 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19724 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19727 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19728 cat >>confdefs.h <<_ACEOF
19729 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19730 _ACEOF
19732 else
19734 for ac_header in kerberosIV/des.h
19736 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19737 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19738 echo "$as_me:$LINENO: checking for $ac_header" >&5
19739 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19740 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19741 echo $ECHO_N "(cached) $ECHO_C" >&6
19743 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19744 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19745 else
19746 # Is the header compilable?
19747 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19748 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19749 cat >conftest.$ac_ext <<_ACEOF
19750 /* confdefs.h. */
19751 _ACEOF
19752 cat confdefs.h >>conftest.$ac_ext
19753 cat >>conftest.$ac_ext <<_ACEOF
19754 /* end confdefs.h. */
19755 $ac_includes_default
19756 #include <$ac_header>
19757 _ACEOF
19758 rm -f conftest.$ac_objext
19759 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19760 (eval $ac_compile) 2>conftest.er1
19761 ac_status=$?
19762 grep -v '^ *+' conftest.er1 >conftest.err
19763 rm -f conftest.er1
19764 cat conftest.err >&5
19765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19766 (exit $ac_status); } &&
19767 { ac_try='test -z "$ac_c_werror_flag"
19768 || test ! -s conftest.err'
19769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19770 (eval $ac_try) 2>&5
19771 ac_status=$?
19772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19773 (exit $ac_status); }; } &&
19774 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
19780 ac_header_compiler=yes
19781 else
19782 echo "$as_me: failed program was:" >&5
19783 sed 's/^/| /' conftest.$ac_ext >&5
19785 ac_header_compiler=no
19787 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19788 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19789 echo "${ECHO_T}$ac_header_compiler" >&6
19791 # Is the header present?
19792 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19793 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19794 cat >conftest.$ac_ext <<_ACEOF
19795 /* confdefs.h. */
19796 _ACEOF
19797 cat confdefs.h >>conftest.$ac_ext
19798 cat >>conftest.$ac_ext <<_ACEOF
19799 /* end confdefs.h. */
19800 #include <$ac_header>
19801 _ACEOF
19802 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19803 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19804 ac_status=$?
19805 grep -v '^ *+' conftest.er1 >conftest.err
19806 rm -f conftest.er1
19807 cat conftest.err >&5
19808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19809 (exit $ac_status); } >/dev/null; then
19810 if test -s conftest.err; then
19811 ac_cpp_err=$ac_c_preproc_warn_flag
19812 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19813 else
19814 ac_cpp_err=
19816 else
19817 ac_cpp_err=yes
19819 if test -z "$ac_cpp_err"; then
19820 ac_header_preproc=yes
19821 else
19822 echo "$as_me: failed program was:" >&5
19823 sed 's/^/| /' conftest.$ac_ext >&5
19825 ac_header_preproc=no
19827 rm -f conftest.err conftest.$ac_ext
19828 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19829 echo "${ECHO_T}$ac_header_preproc" >&6
19831 # So? What about this header?
19832 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19833 yes:no: )
19834 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19835 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19836 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19837 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19838 ac_header_preproc=yes
19840 no:yes:* )
19841 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19842 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19843 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19844 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19845 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19846 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19847 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19848 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19849 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19850 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19851 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19852 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19854 cat <<\_ASBOX
19855 ## ------------------------------------------ ##
19856 ## Report this to the AC_PACKAGE_NAME lists. ##
19857 ## ------------------------------------------ ##
19858 _ASBOX
19860 sed "s/^/$as_me: WARNING: /" >&2
19862 esac
19863 echo "$as_me:$LINENO: checking for $ac_header" >&5
19864 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19865 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19866 echo $ECHO_N "(cached) $ECHO_C" >&6
19867 else
19868 eval "$as_ac_Header=\$ac_header_preproc"
19870 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19871 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19874 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19875 cat >>confdefs.h <<_ACEOF
19876 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19877 _ACEOF
19879 else
19881 for ac_header in kerberos/des.h
19883 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19884 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19885 echo "$as_me:$LINENO: checking for $ac_header" >&5
19886 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19887 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19888 echo $ECHO_N "(cached) $ECHO_C" >&6
19890 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19891 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19892 else
19893 # Is the header compilable?
19894 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19895 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19896 cat >conftest.$ac_ext <<_ACEOF
19897 /* confdefs.h. */
19898 _ACEOF
19899 cat confdefs.h >>conftest.$ac_ext
19900 cat >>conftest.$ac_ext <<_ACEOF
19901 /* end confdefs.h. */
19902 $ac_includes_default
19903 #include <$ac_header>
19904 _ACEOF
19905 rm -f conftest.$ac_objext
19906 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19907 (eval $ac_compile) 2>conftest.er1
19908 ac_status=$?
19909 grep -v '^ *+' conftest.er1 >conftest.err
19910 rm -f conftest.er1
19911 cat conftest.err >&5
19912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19913 (exit $ac_status); } &&
19914 { ac_try='test -z "$ac_c_werror_flag"
19915 || test ! -s conftest.err'
19916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19917 (eval $ac_try) 2>&5
19918 ac_status=$?
19919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19920 (exit $ac_status); }; } &&
19921 { ac_try='test -s conftest.$ac_objext'
19922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19923 (eval $ac_try) 2>&5
19924 ac_status=$?
19925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19926 (exit $ac_status); }; }; then
19927 ac_header_compiler=yes
19928 else
19929 echo "$as_me: failed program was:" >&5
19930 sed 's/^/| /' conftest.$ac_ext >&5
19932 ac_header_compiler=no
19934 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19935 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19936 echo "${ECHO_T}$ac_header_compiler" >&6
19938 # Is the header present?
19939 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19940 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19941 cat >conftest.$ac_ext <<_ACEOF
19942 /* confdefs.h. */
19943 _ACEOF
19944 cat confdefs.h >>conftest.$ac_ext
19945 cat >>conftest.$ac_ext <<_ACEOF
19946 /* end confdefs.h. */
19947 #include <$ac_header>
19948 _ACEOF
19949 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19950 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19951 ac_status=$?
19952 grep -v '^ *+' conftest.er1 >conftest.err
19953 rm -f conftest.er1
19954 cat conftest.err >&5
19955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19956 (exit $ac_status); } >/dev/null; then
19957 if test -s conftest.err; then
19958 ac_cpp_err=$ac_c_preproc_warn_flag
19959 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19960 else
19961 ac_cpp_err=
19963 else
19964 ac_cpp_err=yes
19966 if test -z "$ac_cpp_err"; then
19967 ac_header_preproc=yes
19968 else
19969 echo "$as_me: failed program was:" >&5
19970 sed 's/^/| /' conftest.$ac_ext >&5
19972 ac_header_preproc=no
19974 rm -f conftest.err conftest.$ac_ext
19975 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19976 echo "${ECHO_T}$ac_header_preproc" >&6
19978 # So? What about this header?
19979 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19980 yes:no: )
19981 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19982 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19983 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19984 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19985 ac_header_preproc=yes
19987 no:yes:* )
19988 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19989 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19990 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19991 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19992 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19993 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19994 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19995 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19996 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19997 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19998 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19999 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20001 cat <<\_ASBOX
20002 ## ------------------------------------------ ##
20003 ## Report this to the AC_PACKAGE_NAME lists. ##
20004 ## ------------------------------------------ ##
20005 _ASBOX
20007 sed "s/^/$as_me: WARNING: /" >&2
20009 esac
20010 echo "$as_me:$LINENO: checking for $ac_header" >&5
20011 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20012 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20013 echo $ECHO_N "(cached) $ECHO_C" >&6
20014 else
20015 eval "$as_ac_Header=\$ac_header_preproc"
20017 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20018 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20021 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20022 cat >>confdefs.h <<_ACEOF
20023 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20024 _ACEOF
20028 done
20032 done
20036 done
20039 for ac_header in krb.h
20041 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20042 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20043 echo "$as_me:$LINENO: checking for $ac_header" >&5
20044 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20045 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20046 echo $ECHO_N "(cached) $ECHO_C" >&6
20048 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20049 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20050 else
20051 # Is the header compilable?
20052 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20053 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20054 cat >conftest.$ac_ext <<_ACEOF
20055 /* confdefs.h. */
20056 _ACEOF
20057 cat confdefs.h >>conftest.$ac_ext
20058 cat >>conftest.$ac_ext <<_ACEOF
20059 /* end confdefs.h. */
20060 $ac_includes_default
20061 #include <$ac_header>
20062 _ACEOF
20063 rm -f conftest.$ac_objext
20064 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20065 (eval $ac_compile) 2>conftest.er1
20066 ac_status=$?
20067 grep -v '^ *+' conftest.er1 >conftest.err
20068 rm -f conftest.er1
20069 cat conftest.err >&5
20070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20071 (exit $ac_status); } &&
20072 { ac_try='test -z "$ac_c_werror_flag"
20073 || test ! -s conftest.err'
20074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20075 (eval $ac_try) 2>&5
20076 ac_status=$?
20077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20078 (exit $ac_status); }; } &&
20079 { ac_try='test -s conftest.$ac_objext'
20080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20081 (eval $ac_try) 2>&5
20082 ac_status=$?
20083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20084 (exit $ac_status); }; }; then
20085 ac_header_compiler=yes
20086 else
20087 echo "$as_me: failed program was:" >&5
20088 sed 's/^/| /' conftest.$ac_ext >&5
20090 ac_header_compiler=no
20092 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20093 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20094 echo "${ECHO_T}$ac_header_compiler" >&6
20096 # Is the header present?
20097 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20098 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20099 cat >conftest.$ac_ext <<_ACEOF
20100 /* confdefs.h. */
20101 _ACEOF
20102 cat confdefs.h >>conftest.$ac_ext
20103 cat >>conftest.$ac_ext <<_ACEOF
20104 /* end confdefs.h. */
20105 #include <$ac_header>
20106 _ACEOF
20107 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20108 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20109 ac_status=$?
20110 grep -v '^ *+' conftest.er1 >conftest.err
20111 rm -f conftest.er1
20112 cat conftest.err >&5
20113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20114 (exit $ac_status); } >/dev/null; then
20115 if test -s conftest.err; then
20116 ac_cpp_err=$ac_c_preproc_warn_flag
20117 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20118 else
20119 ac_cpp_err=
20121 else
20122 ac_cpp_err=yes
20124 if test -z "$ac_cpp_err"; then
20125 ac_header_preproc=yes
20126 else
20127 echo "$as_me: failed program was:" >&5
20128 sed 's/^/| /' conftest.$ac_ext >&5
20130 ac_header_preproc=no
20132 rm -f conftest.err conftest.$ac_ext
20133 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20134 echo "${ECHO_T}$ac_header_preproc" >&6
20136 # So? What about this header?
20137 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20138 yes:no: )
20139 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20140 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20141 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20142 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20143 ac_header_preproc=yes
20145 no:yes:* )
20146 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20147 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20148 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20149 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20150 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20151 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20152 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20153 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20154 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20155 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20156 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20157 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20159 cat <<\_ASBOX
20160 ## ------------------------------------------ ##
20161 ## Report this to the AC_PACKAGE_NAME lists. ##
20162 ## ------------------------------------------ ##
20163 _ASBOX
20165 sed "s/^/$as_me: WARNING: /" >&2
20167 esac
20168 echo "$as_me:$LINENO: checking for $ac_header" >&5
20169 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20170 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20171 echo $ECHO_N "(cached) $ECHO_C" >&6
20172 else
20173 eval "$as_ac_Header=\$ac_header_preproc"
20175 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20176 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20179 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20180 cat >>confdefs.h <<_ACEOF
20181 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20182 _ACEOF
20184 else
20186 for ac_header in kerberosIV/krb.h
20188 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20189 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20190 echo "$as_me:$LINENO: checking for $ac_header" >&5
20191 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20192 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20193 echo $ECHO_N "(cached) $ECHO_C" >&6
20195 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20196 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20197 else
20198 # Is the header compilable?
20199 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20200 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20201 cat >conftest.$ac_ext <<_ACEOF
20202 /* confdefs.h. */
20203 _ACEOF
20204 cat confdefs.h >>conftest.$ac_ext
20205 cat >>conftest.$ac_ext <<_ACEOF
20206 /* end confdefs.h. */
20207 $ac_includes_default
20208 #include <$ac_header>
20209 _ACEOF
20210 rm -f conftest.$ac_objext
20211 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20212 (eval $ac_compile) 2>conftest.er1
20213 ac_status=$?
20214 grep -v '^ *+' conftest.er1 >conftest.err
20215 rm -f conftest.er1
20216 cat conftest.err >&5
20217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20218 (exit $ac_status); } &&
20219 { ac_try='test -z "$ac_c_werror_flag"
20220 || test ! -s conftest.err'
20221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20222 (eval $ac_try) 2>&5
20223 ac_status=$?
20224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20225 (exit $ac_status); }; } &&
20226 { ac_try='test -s conftest.$ac_objext'
20227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20228 (eval $ac_try) 2>&5
20229 ac_status=$?
20230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20231 (exit $ac_status); }; }; then
20232 ac_header_compiler=yes
20233 else
20234 echo "$as_me: failed program was:" >&5
20235 sed 's/^/| /' conftest.$ac_ext >&5
20237 ac_header_compiler=no
20239 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20240 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20241 echo "${ECHO_T}$ac_header_compiler" >&6
20243 # Is the header present?
20244 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20245 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20246 cat >conftest.$ac_ext <<_ACEOF
20247 /* confdefs.h. */
20248 _ACEOF
20249 cat confdefs.h >>conftest.$ac_ext
20250 cat >>conftest.$ac_ext <<_ACEOF
20251 /* end confdefs.h. */
20252 #include <$ac_header>
20253 _ACEOF
20254 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20255 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20256 ac_status=$?
20257 grep -v '^ *+' conftest.er1 >conftest.err
20258 rm -f conftest.er1
20259 cat conftest.err >&5
20260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20261 (exit $ac_status); } >/dev/null; then
20262 if test -s conftest.err; then
20263 ac_cpp_err=$ac_c_preproc_warn_flag
20264 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20265 else
20266 ac_cpp_err=
20268 else
20269 ac_cpp_err=yes
20271 if test -z "$ac_cpp_err"; then
20272 ac_header_preproc=yes
20273 else
20274 echo "$as_me: failed program was:" >&5
20275 sed 's/^/| /' conftest.$ac_ext >&5
20277 ac_header_preproc=no
20279 rm -f conftest.err conftest.$ac_ext
20280 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20281 echo "${ECHO_T}$ac_header_preproc" >&6
20283 # So? What about this header?
20284 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20285 yes:no: )
20286 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20287 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20288 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20289 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20290 ac_header_preproc=yes
20292 no:yes:* )
20293 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20294 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20295 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20296 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20297 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20298 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20299 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20300 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20301 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20302 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20303 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20304 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20306 cat <<\_ASBOX
20307 ## ------------------------------------------ ##
20308 ## Report this to the AC_PACKAGE_NAME lists. ##
20309 ## ------------------------------------------ ##
20310 _ASBOX
20312 sed "s/^/$as_me: WARNING: /" >&2
20314 esac
20315 echo "$as_me:$LINENO: checking for $ac_header" >&5
20316 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20317 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20318 echo $ECHO_N "(cached) $ECHO_C" >&6
20319 else
20320 eval "$as_ac_Header=\$ac_header_preproc"
20322 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20323 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20326 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20327 cat >>confdefs.h <<_ACEOF
20328 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20329 _ACEOF
20331 else
20333 for ac_header in kerberos/krb.h
20335 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20336 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20337 echo "$as_me:$LINENO: checking for $ac_header" >&5
20338 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20339 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20340 echo $ECHO_N "(cached) $ECHO_C" >&6
20342 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20343 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20344 else
20345 # Is the header compilable?
20346 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20347 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20348 cat >conftest.$ac_ext <<_ACEOF
20349 /* confdefs.h. */
20350 _ACEOF
20351 cat confdefs.h >>conftest.$ac_ext
20352 cat >>conftest.$ac_ext <<_ACEOF
20353 /* end confdefs.h. */
20354 $ac_includes_default
20355 #include <$ac_header>
20356 _ACEOF
20357 rm -f conftest.$ac_objext
20358 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20359 (eval $ac_compile) 2>conftest.er1
20360 ac_status=$?
20361 grep -v '^ *+' conftest.er1 >conftest.err
20362 rm -f conftest.er1
20363 cat conftest.err >&5
20364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20365 (exit $ac_status); } &&
20366 { ac_try='test -z "$ac_c_werror_flag"
20367 || test ! -s conftest.err'
20368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20369 (eval $ac_try) 2>&5
20370 ac_status=$?
20371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20372 (exit $ac_status); }; } &&
20373 { ac_try='test -s conftest.$ac_objext'
20374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20375 (eval $ac_try) 2>&5
20376 ac_status=$?
20377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20378 (exit $ac_status); }; }; then
20379 ac_header_compiler=yes
20380 else
20381 echo "$as_me: failed program was:" >&5
20382 sed 's/^/| /' conftest.$ac_ext >&5
20384 ac_header_compiler=no
20386 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20387 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20388 echo "${ECHO_T}$ac_header_compiler" >&6
20390 # Is the header present?
20391 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20392 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20393 cat >conftest.$ac_ext <<_ACEOF
20394 /* confdefs.h. */
20395 _ACEOF
20396 cat confdefs.h >>conftest.$ac_ext
20397 cat >>conftest.$ac_ext <<_ACEOF
20398 /* end confdefs.h. */
20399 #include <$ac_header>
20400 _ACEOF
20401 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20402 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20403 ac_status=$?
20404 grep -v '^ *+' conftest.er1 >conftest.err
20405 rm -f conftest.er1
20406 cat conftest.err >&5
20407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20408 (exit $ac_status); } >/dev/null; then
20409 if test -s conftest.err; then
20410 ac_cpp_err=$ac_c_preproc_warn_flag
20411 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20412 else
20413 ac_cpp_err=
20415 else
20416 ac_cpp_err=yes
20418 if test -z "$ac_cpp_err"; then
20419 ac_header_preproc=yes
20420 else
20421 echo "$as_me: failed program was:" >&5
20422 sed 's/^/| /' conftest.$ac_ext >&5
20424 ac_header_preproc=no
20426 rm -f conftest.err conftest.$ac_ext
20427 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20428 echo "${ECHO_T}$ac_header_preproc" >&6
20430 # So? What about this header?
20431 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20432 yes:no: )
20433 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20434 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20435 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20436 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20437 ac_header_preproc=yes
20439 no:yes:* )
20440 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20441 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20442 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20443 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20444 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20445 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20446 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20447 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20448 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20449 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20450 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20451 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20453 cat <<\_ASBOX
20454 ## ------------------------------------------ ##
20455 ## Report this to the AC_PACKAGE_NAME lists. ##
20456 ## ------------------------------------------ ##
20457 _ASBOX
20459 sed "s/^/$as_me: WARNING: /" >&2
20461 esac
20462 echo "$as_me:$LINENO: checking for $ac_header" >&5
20463 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20464 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20465 echo $ECHO_N "(cached) $ECHO_C" >&6
20466 else
20467 eval "$as_ac_Header=\$ac_header_preproc"
20469 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20470 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20473 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20474 cat >>confdefs.h <<_ACEOF
20475 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20476 _ACEOF
20480 done
20484 done
20488 done
20492 for ac_header in com_err.h
20494 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20495 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20496 echo "$as_me:$LINENO: checking for $ac_header" >&5
20497 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20498 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20499 echo $ECHO_N "(cached) $ECHO_C" >&6
20501 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20502 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20503 else
20504 # Is the header compilable?
20505 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20506 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20507 cat >conftest.$ac_ext <<_ACEOF
20508 /* confdefs.h. */
20509 _ACEOF
20510 cat confdefs.h >>conftest.$ac_ext
20511 cat >>conftest.$ac_ext <<_ACEOF
20512 /* end confdefs.h. */
20513 $ac_includes_default
20514 #include <$ac_header>
20515 _ACEOF
20516 rm -f conftest.$ac_objext
20517 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20518 (eval $ac_compile) 2>conftest.er1
20519 ac_status=$?
20520 grep -v '^ *+' conftest.er1 >conftest.err
20521 rm -f conftest.er1
20522 cat conftest.err >&5
20523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20524 (exit $ac_status); } &&
20525 { ac_try='test -z "$ac_c_werror_flag"
20526 || test ! -s conftest.err'
20527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20528 (eval $ac_try) 2>&5
20529 ac_status=$?
20530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20531 (exit $ac_status); }; } &&
20532 { ac_try='test -s conftest.$ac_objext'
20533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20534 (eval $ac_try) 2>&5
20535 ac_status=$?
20536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20537 (exit $ac_status); }; }; then
20538 ac_header_compiler=yes
20539 else
20540 echo "$as_me: failed program was:" >&5
20541 sed 's/^/| /' conftest.$ac_ext >&5
20543 ac_header_compiler=no
20545 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20546 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20547 echo "${ECHO_T}$ac_header_compiler" >&6
20549 # Is the header present?
20550 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20551 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20552 cat >conftest.$ac_ext <<_ACEOF
20553 /* confdefs.h. */
20554 _ACEOF
20555 cat confdefs.h >>conftest.$ac_ext
20556 cat >>conftest.$ac_ext <<_ACEOF
20557 /* end confdefs.h. */
20558 #include <$ac_header>
20559 _ACEOF
20560 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20561 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20562 ac_status=$?
20563 grep -v '^ *+' conftest.er1 >conftest.err
20564 rm -f conftest.er1
20565 cat conftest.err >&5
20566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20567 (exit $ac_status); } >/dev/null; then
20568 if test -s conftest.err; then
20569 ac_cpp_err=$ac_c_preproc_warn_flag
20570 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20571 else
20572 ac_cpp_err=
20574 else
20575 ac_cpp_err=yes
20577 if test -z "$ac_cpp_err"; then
20578 ac_header_preproc=yes
20579 else
20580 echo "$as_me: failed program was:" >&5
20581 sed 's/^/| /' conftest.$ac_ext >&5
20583 ac_header_preproc=no
20585 rm -f conftest.err conftest.$ac_ext
20586 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20587 echo "${ECHO_T}$ac_header_preproc" >&6
20589 # So? What about this header?
20590 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20591 yes:no: )
20592 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20593 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20594 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20595 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20596 ac_header_preproc=yes
20598 no:yes:* )
20599 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20600 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20601 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20602 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20603 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20604 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20605 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20606 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20607 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20608 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20609 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20610 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20612 cat <<\_ASBOX
20613 ## ------------------------------------------ ##
20614 ## Report this to the AC_PACKAGE_NAME lists. ##
20615 ## ------------------------------------------ ##
20616 _ASBOX
20618 sed "s/^/$as_me: WARNING: /" >&2
20620 esac
20621 echo "$as_me:$LINENO: checking for $ac_header" >&5
20622 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20623 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20624 echo $ECHO_N "(cached) $ECHO_C" >&6
20625 else
20626 eval "$as_ac_Header=\$ac_header_preproc"
20628 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20629 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20632 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20633 cat >>confdefs.h <<_ACEOF
20634 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20635 _ACEOF
20639 done
20643 # Solaris requires -lintl if you want strerror (which calls dgettext)
20644 # to return localized messages.
20646 echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
20647 echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6
20648 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
20649 echo $ECHO_N "(cached) $ECHO_C" >&6
20650 else
20651 ac_check_lib_save_LIBS=$LIBS
20652 LIBS="-lintl $LIBS"
20653 cat >conftest.$ac_ext <<_ACEOF
20654 /* confdefs.h. */
20655 _ACEOF
20656 cat confdefs.h >>conftest.$ac_ext
20657 cat >>conftest.$ac_ext <<_ACEOF
20658 /* end confdefs.h. */
20660 /* Override any gcc2 internal prototype to avoid an error. */
20661 #ifdef __cplusplus
20662 extern "C"
20663 #endif
20664 /* We use char because int might match the return type of a gcc2
20665 builtin and then its argument prototype would still apply. */
20666 char dgettext ();
20668 main ()
20670 dgettext ();
20672 return 0;
20674 _ACEOF
20675 rm -f conftest.$ac_objext conftest$ac_exeext
20676 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20677 (eval $ac_link) 2>conftest.er1
20678 ac_status=$?
20679 grep -v '^ *+' conftest.er1 >conftest.err
20680 rm -f conftest.er1
20681 cat conftest.err >&5
20682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20683 (exit $ac_status); } &&
20684 { ac_try='test -z "$ac_c_werror_flag"
20685 || test ! -s conftest.err'
20686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20687 (eval $ac_try) 2>&5
20688 ac_status=$?
20689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20690 (exit $ac_status); }; } &&
20691 { ac_try='test -s conftest$ac_exeext'
20692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20693 (eval $ac_try) 2>&5
20694 ac_status=$?
20695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20696 (exit $ac_status); }; }; then
20697 ac_cv_lib_intl_dgettext=yes
20698 else
20699 echo "$as_me: failed program was:" >&5
20700 sed 's/^/| /' conftest.$ac_ext >&5
20702 ac_cv_lib_intl_dgettext=no
20704 rm -f conftest.err conftest.$ac_objext \
20705 conftest$ac_exeext conftest.$ac_ext
20706 LIBS=$ac_check_lib_save_LIBS
20708 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
20709 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6
20710 if test $ac_cv_lib_intl_dgettext = yes; then
20711 cat >>confdefs.h <<_ACEOF
20712 #define HAVE_LIBINTL 1
20713 _ACEOF
20715 LIBS="-lintl $LIBS"
20720 echo "$as_me:$LINENO: checking whether localtime caches TZ" >&5
20721 echo $ECHO_N "checking whether localtime caches TZ... $ECHO_C" >&6
20722 if test "${emacs_cv_localtime_cache+set}" = set; then
20723 echo $ECHO_N "(cached) $ECHO_C" >&6
20724 else
20725 if test x$ac_cv_func_tzset = xyes; then
20726 if test "$cross_compiling" = yes; then
20727 # If we have tzset, assume the worst when cross-compiling.
20728 emacs_cv_localtime_cache=yes
20729 else
20730 cat >conftest.$ac_ext <<_ACEOF
20731 /* confdefs.h. */
20732 _ACEOF
20733 cat confdefs.h >>conftest.$ac_ext
20734 cat >>conftest.$ac_ext <<_ACEOF
20735 /* end confdefs.h. */
20736 #include <time.h>
20737 extern char **environ;
20738 unset_TZ ()
20740 char **from, **to;
20741 for (to = from = environ; (*to = *from); from++)
20742 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
20743 to++;
20745 char TZ_GMT0[] = "TZ=GMT0";
20746 char TZ_PST8[] = "TZ=PST8";
20747 main()
20749 time_t now = time ((time_t *) 0);
20750 int hour_GMT0, hour_unset;
20751 if (putenv (TZ_GMT0) != 0)
20752 exit (1);
20753 hour_GMT0 = localtime (&now)->tm_hour;
20754 unset_TZ ();
20755 hour_unset = localtime (&now)->tm_hour;
20756 if (putenv (TZ_PST8) != 0)
20757 exit (1);
20758 if (localtime (&now)->tm_hour == hour_GMT0)
20759 exit (1);
20760 unset_TZ ();
20761 if (localtime (&now)->tm_hour != hour_unset)
20762 exit (1);
20763 exit (0);
20765 _ACEOF
20766 rm -f conftest$ac_exeext
20767 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20768 (eval $ac_link) 2>&5
20769 ac_status=$?
20770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20771 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20773 (eval $ac_try) 2>&5
20774 ac_status=$?
20775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20776 (exit $ac_status); }; }; then
20777 emacs_cv_localtime_cache=no
20778 else
20779 echo "$as_me: program exited with status $ac_status" >&5
20780 echo "$as_me: failed program was:" >&5
20781 sed 's/^/| /' conftest.$ac_ext >&5
20783 ( exit $ac_status )
20784 emacs_cv_localtime_cache=yes
20786 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20788 else
20789 # If we lack tzset, report that localtime does not cache TZ,
20790 # since we can't invalidate the cache if we don't have tzset.
20791 emacs_cv_localtime_cache=no
20794 echo "$as_me:$LINENO: result: $emacs_cv_localtime_cache" >&5
20795 echo "${ECHO_T}$emacs_cv_localtime_cache" >&6
20796 if test $emacs_cv_localtime_cache = yes; then
20798 cat >>confdefs.h <<\_ACEOF
20799 #define LOCALTIME_CACHE 1
20800 _ACEOF
20804 if test "x$HAVE_TIMEVAL" = xyes; then
20806 for ac_func in gettimeofday
20808 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20809 echo "$as_me:$LINENO: checking for $ac_func" >&5
20810 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20811 if eval "test \"\${$as_ac_var+set}\" = set"; then
20812 echo $ECHO_N "(cached) $ECHO_C" >&6
20813 else
20814 cat >conftest.$ac_ext <<_ACEOF
20815 /* confdefs.h. */
20816 _ACEOF
20817 cat confdefs.h >>conftest.$ac_ext
20818 cat >>conftest.$ac_ext <<_ACEOF
20819 /* end confdefs.h. */
20820 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20821 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20822 #define $ac_func innocuous_$ac_func
20824 /* System header to define __stub macros and hopefully few prototypes,
20825 which can conflict with char $ac_func (); below.
20826 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20827 <limits.h> exists even on freestanding compilers. */
20829 #ifdef __STDC__
20830 # include <limits.h>
20831 #else
20832 # include <assert.h>
20833 #endif
20835 #undef $ac_func
20837 /* Override any gcc2 internal prototype to avoid an error. */
20838 #ifdef __cplusplus
20839 extern "C"
20841 #endif
20842 /* We use char because int might match the return type of a gcc2
20843 builtin and then its argument prototype would still apply. */
20844 char $ac_func ();
20845 /* The GNU C library defines this for functions which it implements
20846 to always fail with ENOSYS. Some functions are actually named
20847 something starting with __ and the normal name is an alias. */
20848 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20849 choke me
20850 #else
20851 char (*f) () = $ac_func;
20852 #endif
20853 #ifdef __cplusplus
20855 #endif
20858 main ()
20860 return f != $ac_func;
20862 return 0;
20864 _ACEOF
20865 rm -f conftest.$ac_objext conftest$ac_exeext
20866 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20867 (eval $ac_link) 2>conftest.er1
20868 ac_status=$?
20869 grep -v '^ *+' conftest.er1 >conftest.err
20870 rm -f conftest.er1
20871 cat conftest.err >&5
20872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20873 (exit $ac_status); } &&
20874 { ac_try='test -z "$ac_c_werror_flag"
20875 || test ! -s conftest.err'
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); }; } &&
20881 { ac_try='test -s conftest$ac_exeext'
20882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20883 (eval $ac_try) 2>&5
20884 ac_status=$?
20885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20886 (exit $ac_status); }; }; then
20887 eval "$as_ac_var=yes"
20888 else
20889 echo "$as_me: failed program was:" >&5
20890 sed 's/^/| /' conftest.$ac_ext >&5
20892 eval "$as_ac_var=no"
20894 rm -f conftest.err conftest.$ac_objext \
20895 conftest$ac_exeext conftest.$ac_ext
20897 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20898 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20899 if test `eval echo '${'$as_ac_var'}'` = yes; then
20900 cat >>confdefs.h <<_ACEOF
20901 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20902 _ACEOF
20905 done
20907 if test $ac_cv_func_gettimeofday = yes; then
20908 echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments" >&5
20909 echo $ECHO_N "checking whether gettimeofday can accept two arguments... $ECHO_C" >&6
20910 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
20911 echo $ECHO_N "(cached) $ECHO_C" >&6
20912 else
20913 cat >conftest.$ac_ext <<_ACEOF
20914 /* confdefs.h. */
20915 _ACEOF
20916 cat confdefs.h >>conftest.$ac_ext
20917 cat >>conftest.$ac_ext <<_ACEOF
20918 /* end confdefs.h. */
20920 #ifdef TIME_WITH_SYS_TIME
20921 #include <sys/time.h>
20922 #include <time.h>
20923 #else
20924 #ifdef HAVE_SYS_TIME_H
20925 #include <sys/time.h>
20926 #else
20927 #include <time.h>
20928 #endif
20929 #endif
20931 main ()
20933 struct timeval time;
20934 gettimeofday (&time, 0);
20936 return 0;
20938 _ACEOF
20939 rm -f conftest.$ac_objext
20940 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20941 (eval $ac_compile) 2>conftest.er1
20942 ac_status=$?
20943 grep -v '^ *+' conftest.er1 >conftest.err
20944 rm -f conftest.er1
20945 cat conftest.err >&5
20946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20947 (exit $ac_status); } &&
20948 { ac_try='test -z "$ac_c_werror_flag"
20949 || test ! -s conftest.err'
20950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20951 (eval $ac_try) 2>&5
20952 ac_status=$?
20953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20954 (exit $ac_status); }; } &&
20955 { ac_try='test -s conftest.$ac_objext'
20956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20957 (eval $ac_try) 2>&5
20958 ac_status=$?
20959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20960 (exit $ac_status); }; }; then
20961 emacs_cv_gettimeofday_two_arguments=yes
20962 else
20963 echo "$as_me: failed program was:" >&5
20964 sed 's/^/| /' conftest.$ac_ext >&5
20966 emacs_cv_gettimeofday_two_arguments=no
20968 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20970 echo "$as_me:$LINENO: result: $emacs_cv_gettimeofday_two_arguments" >&5
20971 echo "${ECHO_T}$emacs_cv_gettimeofday_two_arguments" >&6
20972 if test $emacs_cv_gettimeofday_two_arguments = no; then
20974 cat >>confdefs.h <<\_ACEOF
20975 #define GETTIMEOFDAY_ONE_ARGUMENT 1
20976 _ACEOF
20982 # This defines (or not) HAVE_TZNAME and HAVE_TM_ZONE.
20983 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
20984 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
20985 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
20986 echo $ECHO_N "(cached) $ECHO_C" >&6
20987 else
20988 cat >conftest.$ac_ext <<_ACEOF
20989 /* confdefs.h. */
20990 _ACEOF
20991 cat confdefs.h >>conftest.$ac_ext
20992 cat >>conftest.$ac_ext <<_ACEOF
20993 /* end confdefs.h. */
20994 #include <sys/types.h>
20995 #include <$ac_cv_struct_tm>
20999 main ()
21001 static struct tm ac_aggr;
21002 if (ac_aggr.tm_zone)
21003 return 0;
21005 return 0;
21007 _ACEOF
21008 rm -f conftest.$ac_objext
21009 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21010 (eval $ac_compile) 2>conftest.er1
21011 ac_status=$?
21012 grep -v '^ *+' conftest.er1 >conftest.err
21013 rm -f conftest.er1
21014 cat conftest.err >&5
21015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21016 (exit $ac_status); } &&
21017 { ac_try='test -z "$ac_c_werror_flag"
21018 || test ! -s conftest.err'
21019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21020 (eval $ac_try) 2>&5
21021 ac_status=$?
21022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21023 (exit $ac_status); }; } &&
21024 { ac_try='test -s conftest.$ac_objext'
21025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21026 (eval $ac_try) 2>&5
21027 ac_status=$?
21028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21029 (exit $ac_status); }; }; then
21030 ac_cv_member_struct_tm_tm_zone=yes
21031 else
21032 echo "$as_me: failed program was:" >&5
21033 sed 's/^/| /' conftest.$ac_ext >&5
21035 cat >conftest.$ac_ext <<_ACEOF
21036 /* confdefs.h. */
21037 _ACEOF
21038 cat confdefs.h >>conftest.$ac_ext
21039 cat >>conftest.$ac_ext <<_ACEOF
21040 /* end confdefs.h. */
21041 #include <sys/types.h>
21042 #include <$ac_cv_struct_tm>
21046 main ()
21048 static struct tm ac_aggr;
21049 if (sizeof ac_aggr.tm_zone)
21050 return 0;
21052 return 0;
21054 _ACEOF
21055 rm -f conftest.$ac_objext
21056 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21057 (eval $ac_compile) 2>conftest.er1
21058 ac_status=$?
21059 grep -v '^ *+' conftest.er1 >conftest.err
21060 rm -f conftest.er1
21061 cat conftest.err >&5
21062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21063 (exit $ac_status); } &&
21064 { ac_try='test -z "$ac_c_werror_flag"
21065 || test ! -s conftest.err'
21066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21067 (eval $ac_try) 2>&5
21068 ac_status=$?
21069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21070 (exit $ac_status); }; } &&
21071 { ac_try='test -s conftest.$ac_objext'
21072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21073 (eval $ac_try) 2>&5
21074 ac_status=$?
21075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21076 (exit $ac_status); }; }; then
21077 ac_cv_member_struct_tm_tm_zone=yes
21078 else
21079 echo "$as_me: failed program was:" >&5
21080 sed 's/^/| /' conftest.$ac_ext >&5
21082 ac_cv_member_struct_tm_tm_zone=no
21084 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21086 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21088 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
21089 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
21090 if test $ac_cv_member_struct_tm_tm_zone = yes; then
21092 cat >>confdefs.h <<_ACEOF
21093 #define HAVE_STRUCT_TM_TM_ZONE 1
21094 _ACEOF
21099 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
21101 cat >>confdefs.h <<\_ACEOF
21102 #define HAVE_TM_ZONE 1
21103 _ACEOF
21105 else
21106 echo "$as_me:$LINENO: checking for tzname" >&5
21107 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
21108 if test "${ac_cv_var_tzname+set}" = set; then
21109 echo $ECHO_N "(cached) $ECHO_C" >&6
21110 else
21111 cat >conftest.$ac_ext <<_ACEOF
21112 /* confdefs.h. */
21113 _ACEOF
21114 cat confdefs.h >>conftest.$ac_ext
21115 cat >>conftest.$ac_ext <<_ACEOF
21116 /* end confdefs.h. */
21117 #include <time.h>
21118 #ifndef tzname /* For SGI. */
21119 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
21120 #endif
21123 main ()
21125 atoi(*tzname);
21127 return 0;
21129 _ACEOF
21130 rm -f conftest.$ac_objext conftest$ac_exeext
21131 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21132 (eval $ac_link) 2>conftest.er1
21133 ac_status=$?
21134 grep -v '^ *+' conftest.er1 >conftest.err
21135 rm -f conftest.er1
21136 cat conftest.err >&5
21137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21138 (exit $ac_status); } &&
21139 { ac_try='test -z "$ac_c_werror_flag"
21140 || test ! -s conftest.err'
21141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21142 (eval $ac_try) 2>&5
21143 ac_status=$?
21144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21145 (exit $ac_status); }; } &&
21146 { ac_try='test -s conftest$ac_exeext'
21147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21148 (eval $ac_try) 2>&5
21149 ac_status=$?
21150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21151 (exit $ac_status); }; }; then
21152 ac_cv_var_tzname=yes
21153 else
21154 echo "$as_me: failed program was:" >&5
21155 sed 's/^/| /' conftest.$ac_ext >&5
21157 ac_cv_var_tzname=no
21159 rm -f conftest.err conftest.$ac_objext \
21160 conftest$ac_exeext conftest.$ac_ext
21162 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
21163 echo "${ECHO_T}$ac_cv_var_tzname" >&6
21164 if test $ac_cv_var_tzname = yes; then
21166 cat >>confdefs.h <<\_ACEOF
21167 #define HAVE_TZNAME 1
21168 _ACEOF
21174 if test "$ac_cv_func_gettimeofday" = yes; then
21175 echo "$as_me:$LINENO: checking for struct timezone" >&5
21176 echo $ECHO_N "checking for struct timezone... $ECHO_C" >&6
21177 if test "${emacs_cv_struct_timezone+set}" = set; then
21178 echo $ECHO_N "(cached) $ECHO_C" >&6
21179 else
21180 cat >conftest.$ac_ext <<_ACEOF
21181 /* confdefs.h. */
21182 _ACEOF
21183 cat confdefs.h >>conftest.$ac_ext
21184 cat >>conftest.$ac_ext <<_ACEOF
21185 /* end confdefs.h. */
21186 #include <sys/time.h>
21188 main ()
21190 struct timezone tz;
21192 return 0;
21194 _ACEOF
21195 rm -f conftest.$ac_objext
21196 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21197 (eval $ac_compile) 2>conftest.er1
21198 ac_status=$?
21199 grep -v '^ *+' conftest.er1 >conftest.err
21200 rm -f conftest.er1
21201 cat conftest.err >&5
21202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21203 (exit $ac_status); } &&
21204 { ac_try='test -z "$ac_c_werror_flag"
21205 || test ! -s conftest.err'
21206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21207 (eval $ac_try) 2>&5
21208 ac_status=$?
21209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21210 (exit $ac_status); }; } &&
21211 { ac_try='test -s conftest.$ac_objext'
21212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21213 (eval $ac_try) 2>&5
21214 ac_status=$?
21215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21216 (exit $ac_status); }; }; then
21217 if test "$cross_compiling" = yes; then
21218 emacs_cv_struct_timezone=yes
21219 else
21220 cat >conftest.$ac_ext <<_ACEOF
21221 /* confdefs.h. */
21222 _ACEOF
21223 cat confdefs.h >>conftest.$ac_ext
21224 cat >>conftest.$ac_ext <<_ACEOF
21225 /* end confdefs.h. */
21227 #ifdef TIME_WITH_SYS_TIME
21228 #include <sys/time.h>
21229 #include <time.h>
21230 #else
21231 #ifdef HAVE_SYS_TIME_H
21232 #include <sys/time.h>
21233 #else
21234 #include <time.h>
21235 #endif
21236 #endif
21237 main () {
21238 struct timeval time;
21239 struct timezone dummy;
21240 exit (gettimeofday (&time, &dummy));
21242 _ACEOF
21243 rm -f conftest$ac_exeext
21244 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21245 (eval $ac_link) 2>&5
21246 ac_status=$?
21247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21248 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21250 (eval $ac_try) 2>&5
21251 ac_status=$?
21252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21253 (exit $ac_status); }; }; then
21254 emacs_cv_struct_timezone=yes
21255 else
21256 echo "$as_me: program exited with status $ac_status" >&5
21257 echo "$as_me: failed program was:" >&5
21258 sed 's/^/| /' conftest.$ac_ext >&5
21260 ( exit $ac_status )
21261 emacs_cv_struct_timezone=no
21263 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21265 else
21266 echo "$as_me: failed program was:" >&5
21267 sed 's/^/| /' conftest.$ac_ext >&5
21269 emacs_cv_struct_timezone=no
21271 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21273 echo "$as_me:$LINENO: result: $emacs_cv_struct_timezone" >&5
21274 echo "${ECHO_T}$emacs_cv_struct_timezone" >&6
21277 ok_so_far=yes
21278 echo "$as_me:$LINENO: checking for socket" >&5
21279 echo $ECHO_N "checking for socket... $ECHO_C" >&6
21280 if test "${ac_cv_func_socket+set}" = set; then
21281 echo $ECHO_N "(cached) $ECHO_C" >&6
21282 else
21283 cat >conftest.$ac_ext <<_ACEOF
21284 /* confdefs.h. */
21285 _ACEOF
21286 cat confdefs.h >>conftest.$ac_ext
21287 cat >>conftest.$ac_ext <<_ACEOF
21288 /* end confdefs.h. */
21289 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
21290 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21291 #define socket innocuous_socket
21293 /* System header to define __stub macros and hopefully few prototypes,
21294 which can conflict with char socket (); below.
21295 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21296 <limits.h> exists even on freestanding compilers. */
21298 #ifdef __STDC__
21299 # include <limits.h>
21300 #else
21301 # include <assert.h>
21302 #endif
21304 #undef socket
21306 /* Override any gcc2 internal prototype to avoid an error. */
21307 #ifdef __cplusplus
21308 extern "C"
21310 #endif
21311 /* We use char because int might match the return type of a gcc2
21312 builtin and then its argument prototype would still apply. */
21313 char socket ();
21314 /* The GNU C library defines this for functions which it implements
21315 to always fail with ENOSYS. Some functions are actually named
21316 something starting with __ and the normal name is an alias. */
21317 #if defined (__stub_socket) || defined (__stub___socket)
21318 choke me
21319 #else
21320 char (*f) () = socket;
21321 #endif
21322 #ifdef __cplusplus
21324 #endif
21327 main ()
21329 return f != socket;
21331 return 0;
21333 _ACEOF
21334 rm -f conftest.$ac_objext conftest$ac_exeext
21335 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21336 (eval $ac_link) 2>conftest.er1
21337 ac_status=$?
21338 grep -v '^ *+' conftest.er1 >conftest.err
21339 rm -f conftest.er1
21340 cat conftest.err >&5
21341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21342 (exit $ac_status); } &&
21343 { ac_try='test -z "$ac_c_werror_flag"
21344 || test ! -s conftest.err'
21345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21346 (eval $ac_try) 2>&5
21347 ac_status=$?
21348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21349 (exit $ac_status); }; } &&
21350 { ac_try='test -s conftest$ac_exeext'
21351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21352 (eval $ac_try) 2>&5
21353 ac_status=$?
21354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21355 (exit $ac_status); }; }; then
21356 ac_cv_func_socket=yes
21357 else
21358 echo "$as_me: failed program was:" >&5
21359 sed 's/^/| /' conftest.$ac_ext >&5
21361 ac_cv_func_socket=no
21363 rm -f conftest.err conftest.$ac_objext \
21364 conftest$ac_exeext conftest.$ac_ext
21366 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
21367 echo "${ECHO_T}$ac_cv_func_socket" >&6
21368 if test $ac_cv_func_socket = yes; then
21370 else
21371 ok_so_far=no
21374 if test $ok_so_far = yes; then
21375 if test "${ac_cv_header_netinet_in_h+set}" = set; then
21376 echo "$as_me:$LINENO: checking for netinet/in.h" >&5
21377 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6
21378 if test "${ac_cv_header_netinet_in_h+set}" = set; then
21379 echo $ECHO_N "(cached) $ECHO_C" >&6
21381 echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
21382 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6
21383 else
21384 # Is the header compilable?
21385 echo "$as_me:$LINENO: checking netinet/in.h usability" >&5
21386 echo $ECHO_N "checking netinet/in.h usability... $ECHO_C" >&6
21387 cat >conftest.$ac_ext <<_ACEOF
21388 /* confdefs.h. */
21389 _ACEOF
21390 cat confdefs.h >>conftest.$ac_ext
21391 cat >>conftest.$ac_ext <<_ACEOF
21392 /* end confdefs.h. */
21393 $ac_includes_default
21394 #include <netinet/in.h>
21395 _ACEOF
21396 rm -f conftest.$ac_objext
21397 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21398 (eval $ac_compile) 2>conftest.er1
21399 ac_status=$?
21400 grep -v '^ *+' conftest.er1 >conftest.err
21401 rm -f conftest.er1
21402 cat conftest.err >&5
21403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21404 (exit $ac_status); } &&
21405 { ac_try='test -z "$ac_c_werror_flag"
21406 || test ! -s conftest.err'
21407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21408 (eval $ac_try) 2>&5
21409 ac_status=$?
21410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21411 (exit $ac_status); }; } &&
21412 { ac_try='test -s conftest.$ac_objext'
21413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21414 (eval $ac_try) 2>&5
21415 ac_status=$?
21416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21417 (exit $ac_status); }; }; then
21418 ac_header_compiler=yes
21419 else
21420 echo "$as_me: failed program was:" >&5
21421 sed 's/^/| /' conftest.$ac_ext >&5
21423 ac_header_compiler=no
21425 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21426 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21427 echo "${ECHO_T}$ac_header_compiler" >&6
21429 # Is the header present?
21430 echo "$as_me:$LINENO: checking netinet/in.h presence" >&5
21431 echo $ECHO_N "checking netinet/in.h presence... $ECHO_C" >&6
21432 cat >conftest.$ac_ext <<_ACEOF
21433 /* confdefs.h. */
21434 _ACEOF
21435 cat confdefs.h >>conftest.$ac_ext
21436 cat >>conftest.$ac_ext <<_ACEOF
21437 /* end confdefs.h. */
21438 #include <netinet/in.h>
21439 _ACEOF
21440 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21441 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21442 ac_status=$?
21443 grep -v '^ *+' conftest.er1 >conftest.err
21444 rm -f conftest.er1
21445 cat conftest.err >&5
21446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21447 (exit $ac_status); } >/dev/null; then
21448 if test -s conftest.err; then
21449 ac_cpp_err=$ac_c_preproc_warn_flag
21450 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21451 else
21452 ac_cpp_err=
21454 else
21455 ac_cpp_err=yes
21457 if test -z "$ac_cpp_err"; then
21458 ac_header_preproc=yes
21459 else
21460 echo "$as_me: failed program was:" >&5
21461 sed 's/^/| /' conftest.$ac_ext >&5
21463 ac_header_preproc=no
21465 rm -f conftest.err conftest.$ac_ext
21466 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21467 echo "${ECHO_T}$ac_header_preproc" >&6
21469 # So? What about this header?
21470 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21471 yes:no: )
21472 { echo "$as_me:$LINENO: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&5
21473 echo "$as_me: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21474 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the compiler's result" >&5
21475 echo "$as_me: WARNING: netinet/in.h: proceeding with the compiler's result" >&2;}
21476 ac_header_preproc=yes
21478 no:yes:* )
21479 { echo "$as_me:$LINENO: WARNING: netinet/in.h: present but cannot be compiled" >&5
21480 echo "$as_me: WARNING: netinet/in.h: present but cannot be compiled" >&2;}
21481 { echo "$as_me:$LINENO: WARNING: netinet/in.h: check for missing prerequisite headers?" >&5
21482 echo "$as_me: WARNING: netinet/in.h: check for missing prerequisite headers?" >&2;}
21483 { echo "$as_me:$LINENO: WARNING: netinet/in.h: see the Autoconf documentation" >&5
21484 echo "$as_me: WARNING: netinet/in.h: see the Autoconf documentation" >&2;}
21485 { echo "$as_me:$LINENO: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&5
21486 echo "$as_me: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&2;}
21487 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5
21488 echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;}
21489 { echo "$as_me:$LINENO: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&5
21490 echo "$as_me: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&2;}
21492 cat <<\_ASBOX
21493 ## ------------------------------------------ ##
21494 ## Report this to the AC_PACKAGE_NAME lists. ##
21495 ## ------------------------------------------ ##
21496 _ASBOX
21498 sed "s/^/$as_me: WARNING: /" >&2
21500 esac
21501 echo "$as_me:$LINENO: checking for netinet/in.h" >&5
21502 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6
21503 if test "${ac_cv_header_netinet_in_h+set}" = set; then
21504 echo $ECHO_N "(cached) $ECHO_C" >&6
21505 else
21506 ac_cv_header_netinet_in_h=$ac_header_preproc
21508 echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
21509 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6
21512 if test $ac_cv_header_netinet_in_h = yes; then
21514 else
21515 ok_so_far=no
21520 if test $ok_so_far = yes; then
21521 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
21522 echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
21523 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6
21524 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
21525 echo $ECHO_N "(cached) $ECHO_C" >&6
21527 echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
21528 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6
21529 else
21530 # Is the header compilable?
21531 echo "$as_me:$LINENO: checking arpa/inet.h usability" >&5
21532 echo $ECHO_N "checking arpa/inet.h usability... $ECHO_C" >&6
21533 cat >conftest.$ac_ext <<_ACEOF
21534 /* confdefs.h. */
21535 _ACEOF
21536 cat confdefs.h >>conftest.$ac_ext
21537 cat >>conftest.$ac_ext <<_ACEOF
21538 /* end confdefs.h. */
21539 $ac_includes_default
21540 #include <arpa/inet.h>
21541 _ACEOF
21542 rm -f conftest.$ac_objext
21543 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21544 (eval $ac_compile) 2>conftest.er1
21545 ac_status=$?
21546 grep -v '^ *+' conftest.er1 >conftest.err
21547 rm -f conftest.er1
21548 cat conftest.err >&5
21549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21550 (exit $ac_status); } &&
21551 { ac_try='test -z "$ac_c_werror_flag"
21552 || test ! -s conftest.err'
21553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21554 (eval $ac_try) 2>&5
21555 ac_status=$?
21556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21557 (exit $ac_status); }; } &&
21558 { ac_try='test -s conftest.$ac_objext'
21559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21560 (eval $ac_try) 2>&5
21561 ac_status=$?
21562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21563 (exit $ac_status); }; }; then
21564 ac_header_compiler=yes
21565 else
21566 echo "$as_me: failed program was:" >&5
21567 sed 's/^/| /' conftest.$ac_ext >&5
21569 ac_header_compiler=no
21571 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21572 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21573 echo "${ECHO_T}$ac_header_compiler" >&6
21575 # Is the header present?
21576 echo "$as_me:$LINENO: checking arpa/inet.h presence" >&5
21577 echo $ECHO_N "checking arpa/inet.h presence... $ECHO_C" >&6
21578 cat >conftest.$ac_ext <<_ACEOF
21579 /* confdefs.h. */
21580 _ACEOF
21581 cat confdefs.h >>conftest.$ac_ext
21582 cat >>conftest.$ac_ext <<_ACEOF
21583 /* end confdefs.h. */
21584 #include <arpa/inet.h>
21585 _ACEOF
21586 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21587 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21588 ac_status=$?
21589 grep -v '^ *+' conftest.er1 >conftest.err
21590 rm -f conftest.er1
21591 cat conftest.err >&5
21592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21593 (exit $ac_status); } >/dev/null; then
21594 if test -s conftest.err; then
21595 ac_cpp_err=$ac_c_preproc_warn_flag
21596 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21597 else
21598 ac_cpp_err=
21600 else
21601 ac_cpp_err=yes
21603 if test -z "$ac_cpp_err"; then
21604 ac_header_preproc=yes
21605 else
21606 echo "$as_me: failed program was:" >&5
21607 sed 's/^/| /' conftest.$ac_ext >&5
21609 ac_header_preproc=no
21611 rm -f conftest.err conftest.$ac_ext
21612 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21613 echo "${ECHO_T}$ac_header_preproc" >&6
21615 # So? What about this header?
21616 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21617 yes:no: )
21618 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&5
21619 echo "$as_me: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21620 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the compiler's result" >&5
21621 echo "$as_me: WARNING: arpa/inet.h: proceeding with the compiler's result" >&2;}
21622 ac_header_preproc=yes
21624 no:yes:* )
21625 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: present but cannot be compiled" >&5
21626 echo "$as_me: WARNING: arpa/inet.h: present but cannot be compiled" >&2;}
21627 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&5
21628 echo "$as_me: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&2;}
21629 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: see the Autoconf documentation" >&5
21630 echo "$as_me: WARNING: arpa/inet.h: see the Autoconf documentation" >&2;}
21631 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&5
21632 echo "$as_me: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&2;}
21633 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5
21634 echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;}
21635 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&5
21636 echo "$as_me: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&2;}
21638 cat <<\_ASBOX
21639 ## ------------------------------------------ ##
21640 ## Report this to the AC_PACKAGE_NAME lists. ##
21641 ## ------------------------------------------ ##
21642 _ASBOX
21644 sed "s/^/$as_me: WARNING: /" >&2
21646 esac
21647 echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
21648 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6
21649 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
21650 echo $ECHO_N "(cached) $ECHO_C" >&6
21651 else
21652 ac_cv_header_arpa_inet_h=$ac_header_preproc
21654 echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
21655 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6
21658 if test $ac_cv_header_arpa_inet_h = yes; then
21660 else
21661 ok_so_far=no
21666 if test $ok_so_far = yes; then
21668 cat >>confdefs.h <<\_ACEOF
21669 #define HAVE_INET_SOCKETS 1
21670 _ACEOF
21675 for ac_header in sys/ioctl.h
21677 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21678 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21679 echo "$as_me:$LINENO: checking for $ac_header" >&5
21680 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21681 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21682 echo $ECHO_N "(cached) $ECHO_C" >&6
21684 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21685 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21686 else
21687 # Is the header compilable?
21688 echo "$as_me:$LINENO: checking $ac_header usability" >&5
21689 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21690 cat >conftest.$ac_ext <<_ACEOF
21691 /* confdefs.h. */
21692 _ACEOF
21693 cat confdefs.h >>conftest.$ac_ext
21694 cat >>conftest.$ac_ext <<_ACEOF
21695 /* end confdefs.h. */
21696 $ac_includes_default
21697 #include <$ac_header>
21698 _ACEOF
21699 rm -f conftest.$ac_objext
21700 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21701 (eval $ac_compile) 2>conftest.er1
21702 ac_status=$?
21703 grep -v '^ *+' conftest.er1 >conftest.err
21704 rm -f conftest.er1
21705 cat conftest.err >&5
21706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21707 (exit $ac_status); } &&
21708 { ac_try='test -z "$ac_c_werror_flag"
21709 || test ! -s conftest.err'
21710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21711 (eval $ac_try) 2>&5
21712 ac_status=$?
21713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21714 (exit $ac_status); }; } &&
21715 { ac_try='test -s conftest.$ac_objext'
21716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21717 (eval $ac_try) 2>&5
21718 ac_status=$?
21719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21720 (exit $ac_status); }; }; then
21721 ac_header_compiler=yes
21722 else
21723 echo "$as_me: failed program was:" >&5
21724 sed 's/^/| /' conftest.$ac_ext >&5
21726 ac_header_compiler=no
21728 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21729 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21730 echo "${ECHO_T}$ac_header_compiler" >&6
21732 # Is the header present?
21733 echo "$as_me:$LINENO: checking $ac_header presence" >&5
21734 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21735 cat >conftest.$ac_ext <<_ACEOF
21736 /* confdefs.h. */
21737 _ACEOF
21738 cat confdefs.h >>conftest.$ac_ext
21739 cat >>conftest.$ac_ext <<_ACEOF
21740 /* end confdefs.h. */
21741 #include <$ac_header>
21742 _ACEOF
21743 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21744 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21745 ac_status=$?
21746 grep -v '^ *+' conftest.er1 >conftest.err
21747 rm -f conftest.er1
21748 cat conftest.err >&5
21749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21750 (exit $ac_status); } >/dev/null; then
21751 if test -s conftest.err; then
21752 ac_cpp_err=$ac_c_preproc_warn_flag
21753 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21754 else
21755 ac_cpp_err=
21757 else
21758 ac_cpp_err=yes
21760 if test -z "$ac_cpp_err"; then
21761 ac_header_preproc=yes
21762 else
21763 echo "$as_me: failed program was:" >&5
21764 sed 's/^/| /' conftest.$ac_ext >&5
21766 ac_header_preproc=no
21768 rm -f conftest.err conftest.$ac_ext
21769 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21770 echo "${ECHO_T}$ac_header_preproc" >&6
21772 # So? What about this header?
21773 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21774 yes:no: )
21775 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21776 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21777 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21778 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21779 ac_header_preproc=yes
21781 no:yes:* )
21782 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21783 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21784 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21785 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21786 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21787 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21788 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21789 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21790 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21791 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21792 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21793 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21795 cat <<\_ASBOX
21796 ## ------------------------------------------ ##
21797 ## Report this to the AC_PACKAGE_NAME lists. ##
21798 ## ------------------------------------------ ##
21799 _ASBOX
21801 sed "s/^/$as_me: WARNING: /" >&2
21803 esac
21804 echo "$as_me:$LINENO: checking for $ac_header" >&5
21805 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21806 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21807 echo $ECHO_N "(cached) $ECHO_C" >&6
21808 else
21809 eval "$as_ac_Header=\$ac_header_preproc"
21811 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21812 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21815 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21816 cat >>confdefs.h <<_ACEOF
21817 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21818 _ACEOF
21822 done
21825 if test -f /usr/lpp/X11/bin/smt.exp; then
21827 cat >>confdefs.h <<\_ACEOF
21828 #define HAVE_AIX_SMT_EXP 1
21829 _ACEOF
21833 echo "$as_me:$LINENO: checking whether system supports dynamic ptys" >&5
21834 echo $ECHO_N "checking whether system supports dynamic ptys... $ECHO_C" >&6
21835 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
21836 echo "$as_me:$LINENO: result: yes" >&5
21837 echo "${ECHO_T}yes" >&6
21839 cat >>confdefs.h <<\_ACEOF
21840 #define HAVE_DEV_PTMX 1
21841 _ACEOF
21843 else
21844 echo "$as_me:$LINENO: result: no" >&5
21845 echo "${ECHO_T}no" >&6
21848 echo "$as_me:$LINENO: checking for pid_t" >&5
21849 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
21850 if test "${ac_cv_type_pid_t+set}" = set; then
21851 echo $ECHO_N "(cached) $ECHO_C" >&6
21852 else
21853 cat >conftest.$ac_ext <<_ACEOF
21854 /* confdefs.h. */
21855 _ACEOF
21856 cat confdefs.h >>conftest.$ac_ext
21857 cat >>conftest.$ac_ext <<_ACEOF
21858 /* end confdefs.h. */
21859 $ac_includes_default
21861 main ()
21863 if ((pid_t *) 0)
21864 return 0;
21865 if (sizeof (pid_t))
21866 return 0;
21868 return 0;
21870 _ACEOF
21871 rm -f conftest.$ac_objext
21872 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21873 (eval $ac_compile) 2>conftest.er1
21874 ac_status=$?
21875 grep -v '^ *+' conftest.er1 >conftest.err
21876 rm -f conftest.er1
21877 cat conftest.err >&5
21878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21879 (exit $ac_status); } &&
21880 { ac_try='test -z "$ac_c_werror_flag"
21881 || test ! -s conftest.err'
21882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21883 (eval $ac_try) 2>&5
21884 ac_status=$?
21885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21886 (exit $ac_status); }; } &&
21887 { ac_try='test -s conftest.$ac_objext'
21888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21889 (eval $ac_try) 2>&5
21890 ac_status=$?
21891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21892 (exit $ac_status); }; }; then
21893 ac_cv_type_pid_t=yes
21894 else
21895 echo "$as_me: failed program was:" >&5
21896 sed 's/^/| /' conftest.$ac_ext >&5
21898 ac_cv_type_pid_t=no
21900 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21902 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
21903 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
21904 if test $ac_cv_type_pid_t = yes; then
21906 else
21908 cat >>confdefs.h <<_ACEOF
21909 #define pid_t int
21910 _ACEOF
21916 for ac_header in unistd.h vfork.h
21918 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21919 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21920 echo "$as_me:$LINENO: checking for $ac_header" >&5
21921 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21922 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21923 echo $ECHO_N "(cached) $ECHO_C" >&6
21925 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21926 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21927 else
21928 # Is the header compilable?
21929 echo "$as_me:$LINENO: checking $ac_header usability" >&5
21930 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21931 cat >conftest.$ac_ext <<_ACEOF
21932 /* confdefs.h. */
21933 _ACEOF
21934 cat confdefs.h >>conftest.$ac_ext
21935 cat >>conftest.$ac_ext <<_ACEOF
21936 /* end confdefs.h. */
21937 $ac_includes_default
21938 #include <$ac_header>
21939 _ACEOF
21940 rm -f conftest.$ac_objext
21941 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21942 (eval $ac_compile) 2>conftest.er1
21943 ac_status=$?
21944 grep -v '^ *+' conftest.er1 >conftest.err
21945 rm -f conftest.er1
21946 cat conftest.err >&5
21947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21948 (exit $ac_status); } &&
21949 { ac_try='test -z "$ac_c_werror_flag"
21950 || test ! -s conftest.err'
21951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21952 (eval $ac_try) 2>&5
21953 ac_status=$?
21954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21955 (exit $ac_status); }; } &&
21956 { ac_try='test -s conftest.$ac_objext'
21957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21958 (eval $ac_try) 2>&5
21959 ac_status=$?
21960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21961 (exit $ac_status); }; }; then
21962 ac_header_compiler=yes
21963 else
21964 echo "$as_me: failed program was:" >&5
21965 sed 's/^/| /' conftest.$ac_ext >&5
21967 ac_header_compiler=no
21969 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21970 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21971 echo "${ECHO_T}$ac_header_compiler" >&6
21973 # Is the header present?
21974 echo "$as_me:$LINENO: checking $ac_header presence" >&5
21975 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21976 cat >conftest.$ac_ext <<_ACEOF
21977 /* confdefs.h. */
21978 _ACEOF
21979 cat confdefs.h >>conftest.$ac_ext
21980 cat >>conftest.$ac_ext <<_ACEOF
21981 /* end confdefs.h. */
21982 #include <$ac_header>
21983 _ACEOF
21984 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21985 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21986 ac_status=$?
21987 grep -v '^ *+' conftest.er1 >conftest.err
21988 rm -f conftest.er1
21989 cat conftest.err >&5
21990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21991 (exit $ac_status); } >/dev/null; then
21992 if test -s conftest.err; then
21993 ac_cpp_err=$ac_c_preproc_warn_flag
21994 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21995 else
21996 ac_cpp_err=
21998 else
21999 ac_cpp_err=yes
22001 if test -z "$ac_cpp_err"; then
22002 ac_header_preproc=yes
22003 else
22004 echo "$as_me: failed program was:" >&5
22005 sed 's/^/| /' conftest.$ac_ext >&5
22007 ac_header_preproc=no
22009 rm -f conftest.err conftest.$ac_ext
22010 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22011 echo "${ECHO_T}$ac_header_preproc" >&6
22013 # So? What about this header?
22014 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22015 yes:no: )
22016 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22017 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22018 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22019 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22020 ac_header_preproc=yes
22022 no:yes:* )
22023 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22024 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22025 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22026 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22027 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22028 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22029 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22030 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22031 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22032 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22033 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22034 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22036 cat <<\_ASBOX
22037 ## ------------------------------------------ ##
22038 ## Report this to the AC_PACKAGE_NAME lists. ##
22039 ## ------------------------------------------ ##
22040 _ASBOX
22042 sed "s/^/$as_me: WARNING: /" >&2
22044 esac
22045 echo "$as_me:$LINENO: checking for $ac_header" >&5
22046 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22047 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22048 echo $ECHO_N "(cached) $ECHO_C" >&6
22049 else
22050 eval "$as_ac_Header=\$ac_header_preproc"
22052 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22053 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22056 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22057 cat >>confdefs.h <<_ACEOF
22058 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22059 _ACEOF
22063 done
22067 for ac_func in fork vfork
22069 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22070 echo "$as_me:$LINENO: checking for $ac_func" >&5
22071 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22072 if eval "test \"\${$as_ac_var+set}\" = set"; then
22073 echo $ECHO_N "(cached) $ECHO_C" >&6
22074 else
22075 cat >conftest.$ac_ext <<_ACEOF
22076 /* confdefs.h. */
22077 _ACEOF
22078 cat confdefs.h >>conftest.$ac_ext
22079 cat >>conftest.$ac_ext <<_ACEOF
22080 /* end confdefs.h. */
22081 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22082 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22083 #define $ac_func innocuous_$ac_func
22085 /* System header to define __stub macros and hopefully few prototypes,
22086 which can conflict with char $ac_func (); below.
22087 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22088 <limits.h> exists even on freestanding compilers. */
22090 #ifdef __STDC__
22091 # include <limits.h>
22092 #else
22093 # include <assert.h>
22094 #endif
22096 #undef $ac_func
22098 /* Override any gcc2 internal prototype to avoid an error. */
22099 #ifdef __cplusplus
22100 extern "C"
22102 #endif
22103 /* We use char because int might match the return type of a gcc2
22104 builtin and then its argument prototype would still apply. */
22105 char $ac_func ();
22106 /* The GNU C library defines this for functions which it implements
22107 to always fail with ENOSYS. Some functions are actually named
22108 something starting with __ and the normal name is an alias. */
22109 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22110 choke me
22111 #else
22112 char (*f) () = $ac_func;
22113 #endif
22114 #ifdef __cplusplus
22116 #endif
22119 main ()
22121 return f != $ac_func;
22123 return 0;
22125 _ACEOF
22126 rm -f conftest.$ac_objext conftest$ac_exeext
22127 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22128 (eval $ac_link) 2>conftest.er1
22129 ac_status=$?
22130 grep -v '^ *+' conftest.er1 >conftest.err
22131 rm -f conftest.er1
22132 cat conftest.err >&5
22133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22134 (exit $ac_status); } &&
22135 { ac_try='test -z "$ac_c_werror_flag"
22136 || test ! -s conftest.err'
22137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22138 (eval $ac_try) 2>&5
22139 ac_status=$?
22140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22141 (exit $ac_status); }; } &&
22142 { ac_try='test -s conftest$ac_exeext'
22143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22144 (eval $ac_try) 2>&5
22145 ac_status=$?
22146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22147 (exit $ac_status); }; }; then
22148 eval "$as_ac_var=yes"
22149 else
22150 echo "$as_me: failed program was:" >&5
22151 sed 's/^/| /' conftest.$ac_ext >&5
22153 eval "$as_ac_var=no"
22155 rm -f conftest.err conftest.$ac_objext \
22156 conftest$ac_exeext conftest.$ac_ext
22158 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22159 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22160 if test `eval echo '${'$as_ac_var'}'` = yes; then
22161 cat >>confdefs.h <<_ACEOF
22162 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22163 _ACEOF
22166 done
22168 if test "x$ac_cv_func_fork" = xyes; then
22169 echo "$as_me:$LINENO: checking for working fork" >&5
22170 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
22171 if test "${ac_cv_func_fork_works+set}" = set; then
22172 echo $ECHO_N "(cached) $ECHO_C" >&6
22173 else
22174 if test "$cross_compiling" = yes; then
22175 ac_cv_func_fork_works=cross
22176 else
22177 cat >conftest.$ac_ext <<_ACEOF
22178 /* By Ruediger Kuhlmann. */
22179 #include <sys/types.h>
22180 #if HAVE_UNISTD_H
22181 # include <unistd.h>
22182 #endif
22183 /* Some systems only have a dummy stub for fork() */
22184 int main ()
22186 if (fork() < 0)
22187 exit (1);
22188 exit (0);
22190 _ACEOF
22191 rm -f conftest$ac_exeext
22192 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22193 (eval $ac_link) 2>&5
22194 ac_status=$?
22195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22196 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22198 (eval $ac_try) 2>&5
22199 ac_status=$?
22200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22201 (exit $ac_status); }; }; then
22202 ac_cv_func_fork_works=yes
22203 else
22204 echo "$as_me: program exited with status $ac_status" >&5
22205 echo "$as_me: failed program was:" >&5
22206 sed 's/^/| /' conftest.$ac_ext >&5
22208 ( exit $ac_status )
22209 ac_cv_func_fork_works=no
22211 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22214 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
22215 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
22217 else
22218 ac_cv_func_fork_works=$ac_cv_func_fork
22220 if test "x$ac_cv_func_fork_works" = xcross; then
22221 case $host in
22222 *-*-amigaos* | *-*-msdosdjgpp*)
22223 # Override, as these systems have only a dummy fork() stub
22224 ac_cv_func_fork_works=no
22227 ac_cv_func_fork_works=yes
22229 esac
22230 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
22231 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
22233 ac_cv_func_vfork_works=$ac_cv_func_vfork
22234 if test "x$ac_cv_func_vfork" = xyes; then
22235 echo "$as_me:$LINENO: checking for working vfork" >&5
22236 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
22237 if test "${ac_cv_func_vfork_works+set}" = set; then
22238 echo $ECHO_N "(cached) $ECHO_C" >&6
22239 else
22240 if test "$cross_compiling" = yes; then
22241 ac_cv_func_vfork_works=cross
22242 else
22243 cat >conftest.$ac_ext <<_ACEOF
22244 /* confdefs.h. */
22245 _ACEOF
22246 cat confdefs.h >>conftest.$ac_ext
22247 cat >>conftest.$ac_ext <<_ACEOF
22248 /* end confdefs.h. */
22249 /* Thanks to Paul Eggert for this test. */
22250 #include <stdio.h>
22251 #include <stdlib.h>
22252 #include <sys/types.h>
22253 #include <sys/stat.h>
22254 #include <sys/wait.h>
22255 #if HAVE_UNISTD_H
22256 # include <unistd.h>
22257 #endif
22258 #if HAVE_VFORK_H
22259 # include <vfork.h>
22260 #endif
22261 /* On some sparc systems, changes by the child to local and incoming
22262 argument registers are propagated back to the parent. The compiler
22263 is told about this with #include <vfork.h>, but some compilers
22264 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
22265 static variable whose address is put into a register that is
22266 clobbered by the vfork. */
22267 static void
22268 #ifdef __cplusplus
22269 sparc_address_test (int arg)
22270 # else
22271 sparc_address_test (arg) int arg;
22272 #endif
22274 static pid_t child;
22275 if (!child) {
22276 child = vfork ();
22277 if (child < 0) {
22278 perror ("vfork");
22279 _exit(2);
22281 if (!child) {
22282 arg = getpid();
22283 write(-1, "", 0);
22284 _exit (arg);
22290 main ()
22292 pid_t parent = getpid ();
22293 pid_t child;
22295 sparc_address_test (0);
22297 child = vfork ();
22299 if (child == 0) {
22300 /* Here is another test for sparc vfork register problems. This
22301 test uses lots of local variables, at least as many local
22302 variables as main has allocated so far including compiler
22303 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
22304 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
22305 reuse the register of parent for one of the local variables,
22306 since it will think that parent can't possibly be used any more
22307 in this routine. Assigning to the local variable will thus
22308 munge parent in the parent process. */
22309 pid_t
22310 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
22311 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
22312 /* Convince the compiler that p..p7 are live; otherwise, it might
22313 use the same hardware register for all 8 local variables. */
22314 if (p != p1 || p != p2 || p != p3 || p != p4
22315 || p != p5 || p != p6 || p != p7)
22316 _exit(1);
22318 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
22319 from child file descriptors. If the child closes a descriptor
22320 before it execs or exits, this munges the parent's descriptor
22321 as well. Test for this by closing stdout in the child. */
22322 _exit(close(fileno(stdout)) != 0);
22323 } else {
22324 int status;
22325 struct stat st;
22327 while (wait(&status) != child)
22329 exit(
22330 /* Was there some problem with vforking? */
22331 child < 0
22333 /* Did the child fail? (This shouldn't happen.) */
22334 || status
22336 /* Did the vfork/compiler bug occur? */
22337 || parent != getpid()
22339 /* Did the file descriptor bug occur? */
22340 || fstat(fileno(stdout), &st) != 0
22344 _ACEOF
22345 rm -f conftest$ac_exeext
22346 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22347 (eval $ac_link) 2>&5
22348 ac_status=$?
22349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22350 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22352 (eval $ac_try) 2>&5
22353 ac_status=$?
22354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22355 (exit $ac_status); }; }; then
22356 ac_cv_func_vfork_works=yes
22357 else
22358 echo "$as_me: program exited with status $ac_status" >&5
22359 echo "$as_me: failed program was:" >&5
22360 sed 's/^/| /' conftest.$ac_ext >&5
22362 ( exit $ac_status )
22363 ac_cv_func_vfork_works=no
22365 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22368 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
22369 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
22372 if test "x$ac_cv_func_fork_works" = xcross; then
22373 ac_cv_func_vfork_works=$ac_cv_func_vfork
22374 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
22375 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
22378 if test "x$ac_cv_func_vfork_works" = xyes; then
22380 cat >>confdefs.h <<\_ACEOF
22381 #define HAVE_WORKING_VFORK 1
22382 _ACEOF
22384 else
22386 cat >>confdefs.h <<\_ACEOF
22387 #define vfork fork
22388 _ACEOF
22391 if test "x$ac_cv_func_fork_works" = xyes; then
22393 cat >>confdefs.h <<\_ACEOF
22394 #define HAVE_WORKING_FORK 1
22395 _ACEOF
22400 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
22401 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
22402 if test "${emacs_cv_langinfo_codeset+set}" = set; then
22403 echo $ECHO_N "(cached) $ECHO_C" >&6
22404 else
22405 cat >conftest.$ac_ext <<_ACEOF
22406 /* confdefs.h. */
22407 _ACEOF
22408 cat confdefs.h >>conftest.$ac_ext
22409 cat >>conftest.$ac_ext <<_ACEOF
22410 /* end confdefs.h. */
22411 #include <langinfo.h>
22413 main ()
22415 char* cs = nl_langinfo(CODESET);
22417 return 0;
22419 _ACEOF
22420 rm -f conftest.$ac_objext conftest$ac_exeext
22421 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22422 (eval $ac_link) 2>conftest.er1
22423 ac_status=$?
22424 grep -v '^ *+' conftest.er1 >conftest.err
22425 rm -f conftest.er1
22426 cat conftest.err >&5
22427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22428 (exit $ac_status); } &&
22429 { ac_try='test -z "$ac_c_werror_flag"
22430 || test ! -s conftest.err'
22431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22432 (eval $ac_try) 2>&5
22433 ac_status=$?
22434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22435 (exit $ac_status); }; } &&
22436 { ac_try='test -s conftest$ac_exeext'
22437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22438 (eval $ac_try) 2>&5
22439 ac_status=$?
22440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22441 (exit $ac_status); }; }; then
22442 emacs_cv_langinfo_codeset=yes
22443 else
22444 echo "$as_me: failed program was:" >&5
22445 sed 's/^/| /' conftest.$ac_ext >&5
22447 emacs_cv_langinfo_codeset=no
22449 rm -f conftest.err conftest.$ac_objext \
22450 conftest$ac_exeext conftest.$ac_ext
22453 echo "$as_me:$LINENO: result: $emacs_cv_langinfo_codeset" >&5
22454 echo "${ECHO_T}$emacs_cv_langinfo_codeset" >&6
22455 if test $emacs_cv_langinfo_codeset = yes; then
22457 cat >>confdefs.h <<\_ACEOF
22458 #define HAVE_LANGINFO_CODESET 1
22459 _ACEOF
22463 echo "$as_me:$LINENO: checking for size_t" >&5
22464 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
22465 if test "${ac_cv_type_size_t+set}" = set; then
22466 echo $ECHO_N "(cached) $ECHO_C" >&6
22467 else
22468 cat >conftest.$ac_ext <<_ACEOF
22469 /* confdefs.h. */
22470 _ACEOF
22471 cat confdefs.h >>conftest.$ac_ext
22472 cat >>conftest.$ac_ext <<_ACEOF
22473 /* end confdefs.h. */
22474 $ac_includes_default
22476 main ()
22478 if ((size_t *) 0)
22479 return 0;
22480 if (sizeof (size_t))
22481 return 0;
22483 return 0;
22485 _ACEOF
22486 rm -f conftest.$ac_objext
22487 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22488 (eval $ac_compile) 2>conftest.er1
22489 ac_status=$?
22490 grep -v '^ *+' conftest.er1 >conftest.err
22491 rm -f conftest.er1
22492 cat conftest.err >&5
22493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22494 (exit $ac_status); } &&
22495 { ac_try='test -z "$ac_c_werror_flag"
22496 || test ! -s conftest.err'
22497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22498 (eval $ac_try) 2>&5
22499 ac_status=$?
22500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22501 (exit $ac_status); }; } &&
22502 { ac_try='test -s conftest.$ac_objext'
22503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22504 (eval $ac_try) 2>&5
22505 ac_status=$?
22506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22507 (exit $ac_status); }; }; then
22508 ac_cv_type_size_t=yes
22509 else
22510 echo "$as_me: failed program was:" >&5
22511 sed 's/^/| /' conftest.$ac_ext >&5
22513 ac_cv_type_size_t=no
22515 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22517 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
22518 echo "${ECHO_T}$ac_cv_type_size_t" >&6
22519 if test $ac_cv_type_size_t = yes; then
22521 cat >>confdefs.h <<_ACEOF
22522 #define HAVE_SIZE_T 1
22523 _ACEOF
22529 echo "$as_me:$LINENO: checking for mbstate_t" >&5
22530 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
22531 if test "${ac_cv_type_mbstate_t+set}" = set; then
22532 echo $ECHO_N "(cached) $ECHO_C" >&6
22533 else
22534 cat >conftest.$ac_ext <<_ACEOF
22535 /* confdefs.h. */
22536 _ACEOF
22537 cat confdefs.h >>conftest.$ac_ext
22538 cat >>conftest.$ac_ext <<_ACEOF
22539 /* end confdefs.h. */
22540 $ac_includes_default
22541 # include <wchar.h>
22543 main ()
22545 mbstate_t x; return sizeof x;
22547 return 0;
22549 _ACEOF
22550 rm -f conftest.$ac_objext
22551 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22552 (eval $ac_compile) 2>conftest.er1
22553 ac_status=$?
22554 grep -v '^ *+' conftest.er1 >conftest.err
22555 rm -f conftest.er1
22556 cat conftest.err >&5
22557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22558 (exit $ac_status); } &&
22559 { ac_try='test -z "$ac_c_werror_flag"
22560 || test ! -s conftest.err'
22561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22562 (eval $ac_try) 2>&5
22563 ac_status=$?
22564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22565 (exit $ac_status); }; } &&
22566 { ac_try='test -s conftest.$ac_objext'
22567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22568 (eval $ac_try) 2>&5
22569 ac_status=$?
22570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22571 (exit $ac_status); }; }; then
22572 ac_cv_type_mbstate_t=yes
22573 else
22574 echo "$as_me: failed program was:" >&5
22575 sed 's/^/| /' conftest.$ac_ext >&5
22577 ac_cv_type_mbstate_t=no
22579 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22581 echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
22582 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6
22583 if test $ac_cv_type_mbstate_t = yes; then
22585 cat >>confdefs.h <<\_ACEOF
22586 #define HAVE_MBSTATE_T 1
22587 _ACEOF
22589 else
22591 cat >>confdefs.h <<\_ACEOF
22592 #define mbstate_t int
22593 _ACEOF
22597 echo "$as_me:$LINENO: checking for C restrict keyword" >&5
22598 echo $ECHO_N "checking for C restrict keyword... $ECHO_C" >&6
22599 if test "${emacs_cv_c_restrict+set}" = set; then
22600 echo $ECHO_N "(cached) $ECHO_C" >&6
22601 else
22602 cat >conftest.$ac_ext <<_ACEOF
22603 /* confdefs.h. */
22604 _ACEOF
22605 cat confdefs.h >>conftest.$ac_ext
22606 cat >>conftest.$ac_ext <<_ACEOF
22607 /* end confdefs.h. */
22608 void fred (int *restrict x);
22610 main ()
22614 return 0;
22616 _ACEOF
22617 rm -f conftest.$ac_objext
22618 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22619 (eval $ac_compile) 2>conftest.er1
22620 ac_status=$?
22621 grep -v '^ *+' conftest.er1 >conftest.err
22622 rm -f conftest.er1
22623 cat conftest.err >&5
22624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22625 (exit $ac_status); } &&
22626 { ac_try='test -z "$ac_c_werror_flag"
22627 || test ! -s conftest.err'
22628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22629 (eval $ac_try) 2>&5
22630 ac_status=$?
22631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22632 (exit $ac_status); }; } &&
22633 { ac_try='test -s conftest.$ac_objext'
22634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22635 (eval $ac_try) 2>&5
22636 ac_status=$?
22637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22638 (exit $ac_status); }; }; then
22639 emacs_cv_c_restrict=yes
22640 else
22641 echo "$as_me: failed program was:" >&5
22642 sed 's/^/| /' conftest.$ac_ext >&5
22644 cat >conftest.$ac_ext <<_ACEOF
22645 /* confdefs.h. */
22646 _ACEOF
22647 cat confdefs.h >>conftest.$ac_ext
22648 cat >>conftest.$ac_ext <<_ACEOF
22649 /* end confdefs.h. */
22650 void fred (int *__restrict x);
22652 main ()
22656 return 0;
22658 _ACEOF
22659 rm -f conftest.$ac_objext
22660 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22661 (eval $ac_compile) 2>conftest.er1
22662 ac_status=$?
22663 grep -v '^ *+' conftest.er1 >conftest.err
22664 rm -f conftest.er1
22665 cat conftest.err >&5
22666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22667 (exit $ac_status); } &&
22668 { ac_try='test -z "$ac_c_werror_flag"
22669 || test ! -s conftest.err'
22670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22671 (eval $ac_try) 2>&5
22672 ac_status=$?
22673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22674 (exit $ac_status); }; } &&
22675 { ac_try='test -s conftest.$ac_objext'
22676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22677 (eval $ac_try) 2>&5
22678 ac_status=$?
22679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22680 (exit $ac_status); }; }; then
22681 emacs_cv_c_restrict=__restrict
22682 else
22683 echo "$as_me: failed program was:" >&5
22684 sed 's/^/| /' conftest.$ac_ext >&5
22686 emacs_cv_c_restrict=no
22688 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22690 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22692 echo "$as_me:$LINENO: result: $emacs_cv_c_restrict" >&5
22693 echo "${ECHO_T}$emacs_cv_c_restrict" >&6
22694 case "$emacs_cv_c_restrict" in
22695 yes) emacs_restrict=restrict;;
22696 no) emacs_restrict="";;
22697 *) emacs_restrict="$emacs_cv_c_restrict";;
22698 esac
22699 if test "$emacs_restrict" != __restrict; then
22701 cat >>confdefs.h <<_ACEOF
22702 #define __restrict $emacs_restrict
22703 _ACEOF
22707 echo "$as_me:$LINENO: checking for C restricted array declarations" >&5
22708 echo $ECHO_N "checking for C restricted array declarations... $ECHO_C" >&6
22709 if test "${emacs_cv_c_restrict_arr+set}" = set; then
22710 echo $ECHO_N "(cached) $ECHO_C" >&6
22711 else
22712 cat >conftest.$ac_ext <<_ACEOF
22713 /* confdefs.h. */
22714 _ACEOF
22715 cat confdefs.h >>conftest.$ac_ext
22716 cat >>conftest.$ac_ext <<_ACEOF
22717 /* end confdefs.h. */
22718 void fred (int x[__restrict]);
22720 main ()
22724 return 0;
22726 _ACEOF
22727 rm -f conftest.$ac_objext
22728 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22729 (eval $ac_compile) 2>conftest.er1
22730 ac_status=$?
22731 grep -v '^ *+' conftest.er1 >conftest.err
22732 rm -f conftest.er1
22733 cat conftest.err >&5
22734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22735 (exit $ac_status); } &&
22736 { ac_try='test -z "$ac_c_werror_flag"
22737 || test ! -s conftest.err'
22738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22739 (eval $ac_try) 2>&5
22740 ac_status=$?
22741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22742 (exit $ac_status); }; } &&
22743 { ac_try='test -s conftest.$ac_objext'
22744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22745 (eval $ac_try) 2>&5
22746 ac_status=$?
22747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22748 (exit $ac_status); }; }; then
22749 emacs_cv_c_restrict_arr=yes
22750 else
22751 echo "$as_me: failed program was:" >&5
22752 sed 's/^/| /' conftest.$ac_ext >&5
22754 emacs_cv_c_restrict_arr=no
22756 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22758 echo "$as_me:$LINENO: result: $emacs_cv_c_restrict_arr" >&5
22759 echo "${ECHO_T}$emacs_cv_c_restrict_arr" >&6
22760 if test "$emacs_cv_c_restrict_arr" = yes; then
22762 cat >>confdefs.h <<\_ACEOF
22763 #define __restrict_arr __restrict
22764 _ACEOF
22770 # Set up the CFLAGS for real compilation, so we can substitute it.
22771 CFLAGS="$REAL_CFLAGS"
22772 CPPFLAGS="$REAL_CPPFLAGS"
22774 #### Find out which version of Emacs this is.
22775 version=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
22776 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`
22777 if test x"${version}" = x; then
22778 { { echo "$as_me:$LINENO: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&5
22779 echo "$as_me: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&2;}
22780 { (exit 1); exit 1; }; }
22783 ### Specify what sort of things we'll be editing into Makefile and config.h.
22784 ### Use configuration here uncanonicalized to avoid exceeding size limits.
22820 cat >>confdefs.h <<_ACEOF
22821 #define EMACS_CONFIGURATION "${canonical}"
22822 _ACEOF
22825 cat >>confdefs.h <<_ACEOF
22826 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
22827 _ACEOF
22830 cat >>confdefs.h <<_ACEOF
22831 #define config_machfile "${machfile}"
22832 _ACEOF
22835 cat >>confdefs.h <<_ACEOF
22836 #define config_opsysfile "${opsysfile}"
22837 _ACEOF
22840 cat >>confdefs.h <<_ACEOF
22841 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
22842 _ACEOF
22845 cat >>confdefs.h <<_ACEOF
22846 #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX}
22847 _ACEOF
22850 cat >>confdefs.h <<_ACEOF
22851 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
22852 _ACEOF
22855 cat >>confdefs.h <<_ACEOF
22856 #define UNEXEC_SRC ${UNEXEC_SRC}
22857 _ACEOF
22860 if test "${HAVE_X_WINDOWS}" = "yes" ; then
22862 cat >>confdefs.h <<\_ACEOF
22863 #define HAVE_X_WINDOWS 1
22864 _ACEOF
22867 if test "${USE_X_TOOLKIT}" != "none" ; then
22869 cat >>confdefs.h <<\_ACEOF
22870 #define USE_X_TOOLKIT 1
22871 _ACEOF
22874 if test "${HAVE_X11}" = "yes" ; then
22876 cat >>confdefs.h <<\_ACEOF
22877 #define HAVE_X11 1
22878 _ACEOF
22881 if test "${HAVE_XFREE386}" = "yes" ; then
22883 cat >>confdefs.h <<\_ACEOF
22884 #define HAVE_XFREE386 1
22885 _ACEOF
22888 if test "${HAVE_MENUS}" = "yes" ; then
22890 cat >>confdefs.h <<\_ACEOF
22891 #define HAVE_MENUS 1
22892 _ACEOF
22895 if test "${GNU_MALLOC}" = "yes" ; then
22897 cat >>confdefs.h <<\_ACEOF
22898 #define GNU_MALLOC 1
22899 _ACEOF
22902 if test "${REL_ALLOC}" = "yes" ; then
22904 cat >>confdefs.h <<\_ACEOF
22905 #define REL_ALLOC 1
22906 _ACEOF
22914 #### Report on what we decided to do.
22915 #### Report GTK as a toolkit, even if it doesn't use Xt.
22916 #### It makes printing result more understandable as using GTK sets
22917 #### toolkit_scroll_bars to yes by default.
22918 if test "${HAVE_GTK}" = "yes"; then
22919 USE_X_TOOLKIT=GTK
22922 echo "
22923 Configured for \`${canonical}'.
22925 Where should the build process find the source code? ${srcdir}
22926 What operating system and machine description files should Emacs use?
22927 \`${opsysfile}' and \`${machfile}'
22928 What compiler should emacs be built with? ${CC} ${CFLAGS}
22929 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
22930 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
22931 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
22932 What window system should Emacs use? ${window_system}
22933 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
22935 if test -n "${x_includes}"; then
22936 echo " Where do we find X Windows header files? ${x_includes}"
22937 else
22938 echo " Where do we find X Windows header files? Standard dirs"
22940 if test -n "${x_libraries}"; then
22941 echo " Where do we find X Windows libraries? ${x_libraries}"
22942 else
22943 echo " Where do we find X Windows libraries? Standard dirs"
22946 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
22947 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
22948 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
22949 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
22950 echo " Does Emacs use -lungif? ${HAVE_GIF}"
22951 echo " Does Emacs use -lpng? ${HAVE_PNG}"
22952 echo " Does Emacs use X toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
22953 echo
22955 if test $USE_XASSERTS = yes; then
22956 echo " Compiling with asserts turned on."
22957 CPPFLAGS="$CPPFLAGS -DXASSERTS=1"
22958 echo
22963 # Remove any trailing slashes in these variables.
22964 test "${prefix}" != NONE &&
22965 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
22966 test "${exec_prefix}" != NONE &&
22967 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
22969 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
22970 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
22971 ## from Makefile.c can correctly provide the arg `-traditional' to the
22972 ## C preprocessor.
22974 cat >conftest.$ac_ext <<_ACEOF
22975 /* confdefs.h. */
22976 _ACEOF
22977 cat confdefs.h >>conftest.$ac_ext
22978 cat >>conftest.$ac_ext <<_ACEOF
22979 /* end confdefs.h. */
22980 yes..yes
22981 _ACEOF
22982 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22983 $EGREP "yes..yes" >/dev/null 2>&1; then
22984 CPP_NEED_TRADITIONAL=no
22985 else
22986 CPP_NEED_TRADITIONAL=yes
22988 rm -f conftest*
22991 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"
22992 ac_config_commands="$ac_config_commands default"
22993 cat >confcache <<\_ACEOF
22994 # This file is a shell script that caches the results of configure
22995 # tests run on this system so they can be shared between configure
22996 # scripts and configure runs, see configure's option --config-cache.
22997 # It is not useful on other systems. If it contains results you don't
22998 # want to keep, you may remove or edit it.
23000 # config.status only pays attention to the cache file if you give it
23001 # the --recheck option to rerun configure.
23003 # `ac_cv_env_foo' variables (set or unset) will be overridden when
23004 # loading this file, other *unset* `ac_cv_foo' will be assigned the
23005 # following values.
23007 _ACEOF
23009 # The following way of writing the cache mishandles newlines in values,
23010 # but we know of no workaround that is simple, portable, and efficient.
23011 # So, don't put newlines in cache variables' values.
23012 # Ultrix sh set writes to stderr and can't be redirected directly,
23013 # and sets the high bit in the cache file unless we assign to the vars.
23015 (set) 2>&1 |
23016 case `(ac_space=' '; set | grep ac_space) 2>&1` in
23017 *ac_space=\ *)
23018 # `set' does not quote correctly, so add quotes (double-quote
23019 # substitution turns \\\\ into \\, and sed turns \\ into \).
23020 sed -n \
23021 "s/'/'\\\\''/g;
23022 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
23025 # `set' quotes correctly as required by POSIX, so do not add quotes.
23026 sed -n \
23027 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
23029 esac;
23031 sed '
23032 t clear
23033 : clear
23034 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
23035 t end
23036 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
23037 : end' >>confcache
23038 if diff $cache_file confcache >/dev/null 2>&1; then :; else
23039 if test -w $cache_file; then
23040 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
23041 cat confcache >$cache_file
23042 else
23043 echo "not updating unwritable cache $cache_file"
23046 rm -f confcache
23048 test "x$prefix" = xNONE && prefix=$ac_default_prefix
23049 # Let make expand exec_prefix.
23050 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
23052 # VPATH may cause trouble with some makes, so we remove $(srcdir),
23053 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
23054 # trailing colons and then remove the whole line if VPATH becomes empty
23055 # (actually we leave an empty line to preserve line numbers).
23056 if test "x$srcdir" = x.; then
23057 ac_vpsub='/^[ ]*VPATH[ ]*=/{
23058 s/:*\$(srcdir):*/:/;
23059 s/:*\${srcdir}:*/:/;
23060 s/:*@srcdir@:*/:/;
23061 s/^\([^=]*=[ ]*\):*/\1/;
23062 s/:*$//;
23063 s/^[^=]*=[ ]*$//;
23067 DEFS=-DHAVE_CONFIG_H
23069 ac_libobjs=
23070 ac_ltlibobjs=
23071 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
23072 # 1. Remove the extension, and $U if already installed.
23073 ac_i=`echo "$ac_i" |
23074 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
23075 # 2. Add them.
23076 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
23077 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
23078 done
23079 LIBOBJS=$ac_libobjs
23081 LTLIBOBJS=$ac_ltlibobjs
23085 : ${CONFIG_STATUS=./config.status}
23086 ac_clean_files_save=$ac_clean_files
23087 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
23088 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
23089 echo "$as_me: creating $CONFIG_STATUS" >&6;}
23090 cat >$CONFIG_STATUS <<_ACEOF
23091 #! $SHELL
23092 # Generated by $as_me.
23093 # Run this file to recreate the current configuration.
23094 # Compiler output produced by configure, useful for debugging
23095 # configure, is in config.log if it exists.
23097 debug=false
23098 ac_cs_recheck=false
23099 ac_cs_silent=false
23100 SHELL=\${CONFIG_SHELL-$SHELL}
23101 _ACEOF
23103 cat >>$CONFIG_STATUS <<\_ACEOF
23104 ## --------------------- ##
23105 ## M4sh Initialization. ##
23106 ## --------------------- ##
23108 # Be Bourne compatible
23109 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
23110 emulate sh
23111 NULLCMD=:
23112 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
23113 # is contrary to our usage. Disable this feature.
23114 alias -g '${1+"$@"}'='"$@"'
23115 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
23116 set -o posix
23118 DUALCASE=1; export DUALCASE # for MKS sh
23120 # Support unset when possible.
23121 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
23122 as_unset=unset
23123 else
23124 as_unset=false
23128 # Work around bugs in pre-3.0 UWIN ksh.
23129 $as_unset ENV MAIL MAILPATH
23130 PS1='$ '
23131 PS2='> '
23132 PS4='+ '
23134 # NLS nuisances.
23135 for as_var in \
23136 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
23137 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
23138 LC_TELEPHONE LC_TIME
23140 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
23141 eval $as_var=C; export $as_var
23142 else
23143 $as_unset $as_var
23145 done
23147 # Required to use basename.
23148 if expr a : '\(a\)' >/dev/null 2>&1; then
23149 as_expr=expr
23150 else
23151 as_expr=false
23154 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
23155 as_basename=basename
23156 else
23157 as_basename=false
23161 # Name of the executable.
23162 as_me=`$as_basename "$0" ||
23163 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23164 X"$0" : 'X\(//\)$' \| \
23165 X"$0" : 'X\(/\)$' \| \
23166 . : '\(.\)' 2>/dev/null ||
23167 echo X/"$0" |
23168 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
23169 /^X\/\(\/\/\)$/{ s//\1/; q; }
23170 /^X\/\(\/\).*/{ s//\1/; q; }
23171 s/.*/./; q'`
23174 # PATH needs CR, and LINENO needs CR and PATH.
23175 # Avoid depending upon Character Ranges.
23176 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
23177 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23178 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
23179 as_cr_digits='0123456789'
23180 as_cr_alnum=$as_cr_Letters$as_cr_digits
23182 # The user is always right.
23183 if test "${PATH_SEPARATOR+set}" != set; then
23184 echo "#! /bin/sh" >conf$$.sh
23185 echo "exit 0" >>conf$$.sh
23186 chmod +x conf$$.sh
23187 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
23188 PATH_SEPARATOR=';'
23189 else
23190 PATH_SEPARATOR=:
23192 rm -f conf$$.sh
23196 as_lineno_1=$LINENO
23197 as_lineno_2=$LINENO
23198 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
23199 test "x$as_lineno_1" != "x$as_lineno_2" &&
23200 test "x$as_lineno_3" = "x$as_lineno_2" || {
23201 # Find who we are. Look in the path if we contain no path at all
23202 # relative or not.
23203 case $0 in
23204 *[\\/]* ) as_myself=$0 ;;
23205 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23206 for as_dir in $PATH
23208 IFS=$as_save_IFS
23209 test -z "$as_dir" && as_dir=.
23210 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
23211 done
23214 esac
23215 # We did not find ourselves, most probably we were run as `sh COMMAND'
23216 # in which case we are not to be found in the path.
23217 if test "x$as_myself" = x; then
23218 as_myself=$0
23220 if test ! -f "$as_myself"; then
23221 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
23222 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
23223 { (exit 1); exit 1; }; }
23225 case $CONFIG_SHELL in
23227 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23228 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
23230 IFS=$as_save_IFS
23231 test -z "$as_dir" && as_dir=.
23232 for as_base in sh bash ksh sh5; do
23233 case $as_dir in
23235 if ("$as_dir/$as_base" -c '
23236 as_lineno_1=$LINENO
23237 as_lineno_2=$LINENO
23238 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
23239 test "x$as_lineno_1" != "x$as_lineno_2" &&
23240 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
23241 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
23242 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
23243 CONFIG_SHELL=$as_dir/$as_base
23244 export CONFIG_SHELL
23245 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
23246 fi;;
23247 esac
23248 done
23249 done
23251 esac
23253 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
23254 # uniformly replaced by the line number. The first 'sed' inserts a
23255 # line-number line before each line; the second 'sed' does the real
23256 # work. The second script uses 'N' to pair each line-number line
23257 # with the numbered line, and appends trailing '-' during
23258 # substitution so that $LINENO is not a special case at line end.
23259 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
23260 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
23261 sed '=' <$as_myself |
23262 sed '
23264 s,$,-,
23265 : loop
23266 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
23267 t loop
23268 s,-$,,
23269 s,^['$as_cr_digits']*\n,,
23270 ' >$as_me.lineno &&
23271 chmod +x $as_me.lineno ||
23272 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
23273 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
23274 { (exit 1); exit 1; }; }
23276 # Don't try to exec as it changes $[0], causing all sort of problems
23277 # (the dirname of $[0] is not the place where we might find the
23278 # original and so on. Autoconf is especially sensible to this).
23279 . ./$as_me.lineno
23280 # Exit status is that of the last command.
23281 exit
23285 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
23286 *c*,-n*) ECHO_N= ECHO_C='
23287 ' ECHO_T=' ' ;;
23288 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
23289 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
23290 esac
23292 if expr a : '\(a\)' >/dev/null 2>&1; then
23293 as_expr=expr
23294 else
23295 as_expr=false
23298 rm -f conf$$ conf$$.exe conf$$.file
23299 echo >conf$$.file
23300 if ln -s conf$$.file conf$$ 2>/dev/null; then
23301 # We could just check for DJGPP; but this test a) works b) is more generic
23302 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
23303 if test -f conf$$.exe; then
23304 # Don't use ln at all; we don't have any links
23305 as_ln_s='cp -p'
23306 else
23307 as_ln_s='ln -s'
23309 elif ln conf$$.file conf$$ 2>/dev/null; then
23310 as_ln_s=ln
23311 else
23312 as_ln_s='cp -p'
23314 rm -f conf$$ conf$$.exe conf$$.file
23316 if mkdir -p . 2>/dev/null; then
23317 as_mkdir_p=:
23318 else
23319 test -d ./-p && rmdir ./-p
23320 as_mkdir_p=false
23323 as_executable_p="test -f"
23325 # Sed expression to map a string onto a valid CPP name.
23326 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
23328 # Sed expression to map a string onto a valid variable name.
23329 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
23332 # IFS
23333 # We need space, tab and new line, in precisely that order.
23334 as_nl='
23336 IFS=" $as_nl"
23338 # CDPATH.
23339 $as_unset CDPATH
23341 exec 6>&1
23343 # Open the log real soon, to keep \$[0] and so on meaningful, and to
23344 # report actual input values of CONFIG_FILES etc. instead of their
23345 # values after options handling. Logging --version etc. is OK.
23346 exec 5>>config.log
23348 echo
23349 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23350 ## Running $as_me. ##
23351 _ASBOX
23352 } >&5
23353 cat >&5 <<_CSEOF
23355 This file was extended by $as_me, which was
23356 generated by GNU Autoconf 2.59. Invocation command line was
23358 CONFIG_FILES = $CONFIG_FILES
23359 CONFIG_HEADERS = $CONFIG_HEADERS
23360 CONFIG_LINKS = $CONFIG_LINKS
23361 CONFIG_COMMANDS = $CONFIG_COMMANDS
23362 $ $0 $@
23364 _CSEOF
23365 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
23366 echo >&5
23367 _ACEOF
23369 # Files that config.status was made for.
23370 if test -n "$ac_config_files"; then
23371 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
23374 if test -n "$ac_config_headers"; then
23375 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
23378 if test -n "$ac_config_links"; then
23379 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
23382 if test -n "$ac_config_commands"; then
23383 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
23386 cat >>$CONFIG_STATUS <<\_ACEOF
23388 ac_cs_usage="\
23389 \`$as_me' instantiates files from templates according to the
23390 current configuration.
23392 Usage: $0 [OPTIONS] [FILE]...
23394 -h, --help print this help, then exit
23395 -V, --version print version number, then exit
23396 -q, --quiet do not print progress messages
23397 -d, --debug don't remove temporary files
23398 --recheck update $as_me by reconfiguring in the same conditions
23399 --file=FILE[:TEMPLATE]
23400 instantiate the configuration file FILE
23401 --header=FILE[:TEMPLATE]
23402 instantiate the configuration header FILE
23404 Configuration files:
23405 $config_files
23407 Configuration headers:
23408 $config_headers
23410 Configuration commands:
23411 $config_commands
23413 Report bugs to <bug-autoconf@gnu.org>."
23414 _ACEOF
23416 cat >>$CONFIG_STATUS <<_ACEOF
23417 ac_cs_version="\\
23418 config.status
23419 configured by $0, generated by GNU Autoconf 2.59,
23420 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
23422 Copyright (C) 2003 Free Software Foundation, Inc.
23423 This config.status script is free software; the Free Software Foundation
23424 gives unlimited permission to copy, distribute and modify it."
23425 srcdir=$srcdir
23426 INSTALL="$INSTALL"
23427 _ACEOF
23429 cat >>$CONFIG_STATUS <<\_ACEOF
23430 # If no file are specified by the user, then we need to provide default
23431 # value. By we need to know if files were specified by the user.
23432 ac_need_defaults=:
23433 while test $# != 0
23435 case $1 in
23436 --*=*)
23437 ac_option=`expr "x$1" : 'x\([^=]*\)='`
23438 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
23439 ac_shift=:
23442 ac_option=$1
23443 ac_optarg=$2
23444 ac_shift=shift
23446 *) # This is not an option, so the user has probably given explicit
23447 # arguments.
23448 ac_option=$1
23449 ac_need_defaults=false;;
23450 esac
23452 case $ac_option in
23453 # Handling of the options.
23454 _ACEOF
23455 cat >>$CONFIG_STATUS <<\_ACEOF
23456 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23457 ac_cs_recheck=: ;;
23458 --version | --vers* | -V )
23459 echo "$ac_cs_version"; exit 0 ;;
23460 --he | --h)
23461 # Conflict between --help and --header
23462 { { echo "$as_me:$LINENO: error: ambiguous option: $1
23463 Try \`$0 --help' for more information." >&5
23464 echo "$as_me: error: ambiguous option: $1
23465 Try \`$0 --help' for more information." >&2;}
23466 { (exit 1); exit 1; }; };;
23467 --help | --hel | -h )
23468 echo "$ac_cs_usage"; exit 0 ;;
23469 --debug | --d* | -d )
23470 debug=: ;;
23471 --file | --fil | --fi | --f )
23472 $ac_shift
23473 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
23474 ac_need_defaults=false;;
23475 --header | --heade | --head | --hea )
23476 $ac_shift
23477 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
23478 ac_need_defaults=false;;
23479 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
23480 | -silent | --silent | --silen | --sile | --sil | --si | --s)
23481 ac_cs_silent=: ;;
23483 # This is an error.
23484 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
23485 Try \`$0 --help' for more information." >&5
23486 echo "$as_me: error: unrecognized option: $1
23487 Try \`$0 --help' for more information." >&2;}
23488 { (exit 1); exit 1; }; } ;;
23490 *) ac_config_targets="$ac_config_targets $1" ;;
23492 esac
23493 shift
23494 done
23496 ac_configure_extra_args=
23498 if $ac_cs_silent; then
23499 exec 6>/dev/null
23500 ac_configure_extra_args="$ac_configure_extra_args --silent"
23503 _ACEOF
23504 cat >>$CONFIG_STATUS <<_ACEOF
23505 if \$ac_cs_recheck; then
23506 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
23507 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23510 _ACEOF
23512 cat >>$CONFIG_STATUS <<_ACEOF
23514 # INIT-COMMANDS section.
23517 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS"
23519 _ACEOF
23523 cat >>$CONFIG_STATUS <<\_ACEOF
23524 for ac_config_target in $ac_config_targets
23526 case "$ac_config_target" in
23527 # Handling of arguments.
23528 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
23529 "lib-src/Makefile.c" ) CONFIG_FILES="$CONFIG_FILES lib-src/Makefile.c:lib-src/Makefile.in" ;;
23530 "oldXMenu/Makefile" ) CONFIG_FILES="$CONFIG_FILES oldXMenu/Makefile" ;;
23531 "man/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
23532 "lwlib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lwlib/Makefile" ;;
23533 "src/Makefile.c" ) CONFIG_FILES="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;;
23534 "lisp/Makefile" ) CONFIG_FILES="$CONFIG_FILES lisp/Makefile" ;;
23535 "lispref/Makefile" ) CONFIG_FILES="$CONFIG_FILES lispref/Makefile" ;;
23536 "lispintro/Makefile" ) CONFIG_FILES="$CONFIG_FILES lispintro/Makefile" ;;
23537 "leim/Makefile" ) CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;;
23538 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
23539 "src/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:src/config.in" ;;
23540 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
23541 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
23542 { (exit 1); exit 1; }; };;
23543 esac
23544 done
23546 # If the user did not use the arguments to specify the items to instantiate,
23547 # then the envvar interface is used. Set only those that are not.
23548 # We use the long form for the default assignment because of an extremely
23549 # bizarre bug on SunOS 4.1.3.
23550 if $ac_need_defaults; then
23551 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23552 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
23553 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
23556 # Have a temporary directory for convenience. Make it in the build tree
23557 # simply because there is no reason to put it here, and in addition,
23558 # creating and moving files from /tmp can sometimes cause problems.
23559 # Create a temporary directory, and hook for its removal unless debugging.
23560 $debug ||
23562 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
23563 trap '{ (exit 1); exit 1; }' 1 2 13 15
23566 # Create a (secure) tmp directory for tmp files.
23569 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
23570 test -n "$tmp" && test -d "$tmp"
23571 } ||
23573 tmp=./confstat$$-$RANDOM
23574 (umask 077 && mkdir $tmp)
23575 } ||
23577 echo "$me: cannot create a temporary directory in ." >&2
23578 { (exit 1); exit 1; }
23581 _ACEOF
23583 cat >>$CONFIG_STATUS <<_ACEOF
23586 # CONFIG_FILES section.
23589 # No need to generate the scripts if there are no CONFIG_FILES.
23590 # This happens for instance when ./config.status config.h
23591 if test -n "\$CONFIG_FILES"; then
23592 # Protect against being on the right side of a sed subst in config.status.
23593 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
23594 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
23595 s,@SHELL@,$SHELL,;t t
23596 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
23597 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
23598 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
23599 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
23600 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
23601 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
23602 s,@exec_prefix@,$exec_prefix,;t t
23603 s,@prefix@,$prefix,;t t
23604 s,@program_transform_name@,$program_transform_name,;t t
23605 s,@bindir@,$bindir,;t t
23606 s,@sbindir@,$sbindir,;t t
23607 s,@libexecdir@,$libexecdir,;t t
23608 s,@datadir@,$datadir,;t t
23609 s,@sysconfdir@,$sysconfdir,;t t
23610 s,@sharedstatedir@,$sharedstatedir,;t t
23611 s,@localstatedir@,$localstatedir,;t t
23612 s,@libdir@,$libdir,;t t
23613 s,@includedir@,$includedir,;t t
23614 s,@oldincludedir@,$oldincludedir,;t t
23615 s,@infodir@,$infodir,;t t
23616 s,@mandir@,$mandir,;t t
23617 s,@build_alias@,$build_alias,;t t
23618 s,@host_alias@,$host_alias,;t t
23619 s,@target_alias@,$target_alias,;t t
23620 s,@DEFS@,$DEFS,;t t
23621 s,@ECHO_C@,$ECHO_C,;t t
23622 s,@ECHO_N@,$ECHO_N,;t t
23623 s,@ECHO_T@,$ECHO_T,;t t
23624 s,@LIBS@,$LIBS,;t t
23625 s,@MAINT@,$MAINT,;t t
23626 s,@build@,$build,;t t
23627 s,@build_cpu@,$build_cpu,;t t
23628 s,@build_vendor@,$build_vendor,;t t
23629 s,@build_os@,$build_os,;t t
23630 s,@host@,$host,;t t
23631 s,@host_cpu@,$host_cpu,;t t
23632 s,@host_vendor@,$host_vendor,;t t
23633 s,@host_os@,$host_os,;t t
23634 s,@CC@,$CC,;t t
23635 s,@CFLAGS@,$CFLAGS,;t t
23636 s,@LDFLAGS@,$LDFLAGS,;t t
23637 s,@CPPFLAGS@,$CPPFLAGS,;t t
23638 s,@ac_ct_CC@,$ac_ct_CC,;t t
23639 s,@EXEEXT@,$EXEEXT,;t t
23640 s,@OBJEXT@,$OBJEXT,;t t
23641 s,@CPP@,$CPP,;t t
23642 s,@EGREP@,$EGREP,;t t
23643 s,@LN_S@,$LN_S,;t t
23644 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
23645 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
23646 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
23647 s,@RANLIB@,$RANLIB,;t t
23648 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
23649 s,@INSTALL_INFO@,$INSTALL_INFO,;t t
23650 s,@GZIP_PROG@,$GZIP_PROG,;t t
23651 s,@LIBSOUND@,$LIBSOUND,;t t
23652 s,@SET_MAKE@,$SET_MAKE,;t t
23653 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
23654 s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
23655 s,@GTK_LIBS@,$GTK_LIBS,;t t
23656 s,@ALLOCA@,$ALLOCA,;t t
23657 s,@liblockfile@,$liblockfile,;t t
23658 s,@LIBOBJS@,$LIBOBJS,;t t
23659 s,@NEED_SETGID@,$NEED_SETGID,;t t
23660 s,@KMEM_GROUP@,$KMEM_GROUP,;t t
23661 s,@GETLOADAVG_LIBS@,$GETLOADAVG_LIBS,;t t
23662 s,@GETOPT_H@,$GETOPT_H,;t t
23663 s,@GETOPTOBJS@,$GETOPTOBJS,;t t
23664 s,@version@,$version,;t t
23665 s,@configuration@,$configuration,;t t
23666 s,@canonical@,$canonical,;t t
23667 s,@srcdir@,$srcdir,;t t
23668 s,@lispdir@,$lispdir,;t t
23669 s,@locallisppath@,$locallisppath,;t t
23670 s,@lisppath@,$lisppath,;t t
23671 s,@x_default_search_path@,$x_default_search_path,;t t
23672 s,@etcdir@,$etcdir,;t t
23673 s,@archlibdir@,$archlibdir,;t t
23674 s,@docdir@,$docdir,;t t
23675 s,@bitmapdir@,$bitmapdir,;t t
23676 s,@gamedir@,$gamedir,;t t
23677 s,@gameuser@,$gameuser,;t t
23678 s,@c_switch_system@,$c_switch_system,;t t
23679 s,@c_switch_machine@,$c_switch_machine,;t t
23680 s,@LD_SWITCH_X_SITE@,$LD_SWITCH_X_SITE,;t t
23681 s,@LD_SWITCH_X_SITE_AUX@,$LD_SWITCH_X_SITE_AUX,;t t
23682 s,@C_SWITCH_X_SITE@,$C_SWITCH_X_SITE,;t t
23683 s,@X_TOOLKIT_TYPE@,$X_TOOLKIT_TYPE,;t t
23684 s,@machfile@,$machfile,;t t
23685 s,@opsysfile@,$opsysfile,;t t
23686 s,@carbon_appdir@,$carbon_appdir,;t t
23687 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
23688 CEOF
23690 _ACEOF
23692 cat >>$CONFIG_STATUS <<\_ACEOF
23693 # Split the substitutions into bite-sized pieces for seds with
23694 # small command number limits, like on Digital OSF/1 and HP-UX.
23695 ac_max_sed_lines=48
23696 ac_sed_frag=1 # Number of current file.
23697 ac_beg=1 # First line for current file.
23698 ac_end=$ac_max_sed_lines # Line after last line for current file.
23699 ac_more_lines=:
23700 ac_sed_cmds=
23701 while $ac_more_lines; do
23702 if test $ac_beg -gt 1; then
23703 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
23704 else
23705 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
23707 if test ! -s $tmp/subs.frag; then
23708 ac_more_lines=false
23709 else
23710 # The purpose of the label and of the branching condition is to
23711 # speed up the sed processing (if there are no `@' at all, there
23712 # is no need to browse any of the substitutions).
23713 # These are the two extra sed commands mentioned above.
23714 (echo ':t
23715 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
23716 if test -z "$ac_sed_cmds"; then
23717 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
23718 else
23719 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
23721 ac_sed_frag=`expr $ac_sed_frag + 1`
23722 ac_beg=$ac_end
23723 ac_end=`expr $ac_end + $ac_max_sed_lines`
23725 done
23726 if test -z "$ac_sed_cmds"; then
23727 ac_sed_cmds=cat
23729 fi # test -n "$CONFIG_FILES"
23731 _ACEOF
23732 cat >>$CONFIG_STATUS <<\_ACEOF
23733 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
23734 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23735 case $ac_file in
23736 - | *:- | *:-:* ) # input from stdin
23737 cat >$tmp/stdin
23738 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23739 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23740 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23741 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23742 * ) ac_file_in=$ac_file.in ;;
23743 esac
23745 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
23746 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
23747 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23748 X"$ac_file" : 'X\(//\)[^/]' \| \
23749 X"$ac_file" : 'X\(//\)$' \| \
23750 X"$ac_file" : 'X\(/\)' \| \
23751 . : '\(.\)' 2>/dev/null ||
23752 echo X"$ac_file" |
23753 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23754 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23755 /^X\(\/\/\)$/{ s//\1/; q; }
23756 /^X\(\/\).*/{ s//\1/; q; }
23757 s/.*/./; q'`
23758 { if $as_mkdir_p; then
23759 mkdir -p "$ac_dir"
23760 else
23761 as_dir="$ac_dir"
23762 as_dirs=
23763 while test ! -d "$as_dir"; do
23764 as_dirs="$as_dir $as_dirs"
23765 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23766 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23767 X"$as_dir" : 'X\(//\)[^/]' \| \
23768 X"$as_dir" : 'X\(//\)$' \| \
23769 X"$as_dir" : 'X\(/\)' \| \
23770 . : '\(.\)' 2>/dev/null ||
23771 echo X"$as_dir" |
23772 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23773 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23774 /^X\(\/\/\)$/{ s//\1/; q; }
23775 /^X\(\/\).*/{ s//\1/; q; }
23776 s/.*/./; q'`
23777 done
23778 test ! -n "$as_dirs" || mkdir $as_dirs
23779 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23780 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23781 { (exit 1); exit 1; }; }; }
23783 ac_builddir=.
23785 if test "$ac_dir" != .; then
23786 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23787 # A "../" for each directory in $ac_dir_suffix.
23788 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23789 else
23790 ac_dir_suffix= ac_top_builddir=
23793 case $srcdir in
23794 .) # No --srcdir option. We are building in place.
23795 ac_srcdir=.
23796 if test -z "$ac_top_builddir"; then
23797 ac_top_srcdir=.
23798 else
23799 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23800 fi ;;
23801 [\\/]* | ?:[\\/]* ) # Absolute path.
23802 ac_srcdir=$srcdir$ac_dir_suffix;
23803 ac_top_srcdir=$srcdir ;;
23804 *) # Relative path.
23805 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23806 ac_top_srcdir=$ac_top_builddir$srcdir ;;
23807 esac
23809 # Do not use `cd foo && pwd` to compute absolute paths, because
23810 # the directories may not exist.
23811 case `pwd` in
23812 .) ac_abs_builddir="$ac_dir";;
23814 case "$ac_dir" in
23815 .) ac_abs_builddir=`pwd`;;
23816 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
23817 *) ac_abs_builddir=`pwd`/"$ac_dir";;
23818 esac;;
23819 esac
23820 case $ac_abs_builddir in
23821 .) ac_abs_top_builddir=${ac_top_builddir}.;;
23823 case ${ac_top_builddir}. in
23824 .) ac_abs_top_builddir=$ac_abs_builddir;;
23825 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
23826 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
23827 esac;;
23828 esac
23829 case $ac_abs_builddir in
23830 .) ac_abs_srcdir=$ac_srcdir;;
23832 case $ac_srcdir in
23833 .) ac_abs_srcdir=$ac_abs_builddir;;
23834 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
23835 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
23836 esac;;
23837 esac
23838 case $ac_abs_builddir in
23839 .) ac_abs_top_srcdir=$ac_top_srcdir;;
23841 case $ac_top_srcdir in
23842 .) ac_abs_top_srcdir=$ac_abs_builddir;;
23843 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
23844 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
23845 esac;;
23846 esac
23849 case $INSTALL in
23850 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
23851 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
23852 esac
23854 if test x"$ac_file" != x-; then
23855 { echo "$as_me:$LINENO: creating $ac_file" >&5
23856 echo "$as_me: creating $ac_file" >&6;}
23857 rm -f "$ac_file"
23859 # Let's still pretend it is `configure' which instantiates (i.e., don't
23860 # use $as_me), people would be surprised to read:
23861 # /* config.h. Generated by config.status. */
23862 if test x"$ac_file" = x-; then
23863 configure_input=
23864 else
23865 configure_input="$ac_file. "
23867 configure_input=$configure_input"Generated from `echo $ac_file_in |
23868 sed 's,.*/,,'` by configure."
23870 # First look for the input files in the build tree, otherwise in the
23871 # src tree.
23872 ac_file_inputs=`IFS=:
23873 for f in $ac_file_in; do
23874 case $f in
23875 -) echo $tmp/stdin ;;
23876 [\\/$]*)
23877 # Absolute (can't be DOS-style, as IFS=:)
23878 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23879 echo "$as_me: error: cannot find input file: $f" >&2;}
23880 { (exit 1); exit 1; }; }
23881 echo "$f";;
23882 *) # Relative
23883 if test -f "$f"; then
23884 # Build tree
23885 echo "$f"
23886 elif test -f "$srcdir/$f"; then
23887 # Source tree
23888 echo "$srcdir/$f"
23889 else
23890 # /dev/null tree
23891 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23892 echo "$as_me: error: cannot find input file: $f" >&2;}
23893 { (exit 1); exit 1; }; }
23894 fi;;
23895 esac
23896 done` || { (exit 1); exit 1; }
23897 _ACEOF
23898 cat >>$CONFIG_STATUS <<_ACEOF
23899 sed "$ac_vpsub
23900 $extrasub
23901 _ACEOF
23902 cat >>$CONFIG_STATUS <<\_ACEOF
23904 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23905 s,@configure_input@,$configure_input,;t t
23906 s,@srcdir@,$ac_srcdir,;t t
23907 s,@abs_srcdir@,$ac_abs_srcdir,;t t
23908 s,@top_srcdir@,$ac_top_srcdir,;t t
23909 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
23910 s,@builddir@,$ac_builddir,;t t
23911 s,@abs_builddir@,$ac_abs_builddir,;t t
23912 s,@top_builddir@,$ac_top_builddir,;t t
23913 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
23914 s,@INSTALL@,$ac_INSTALL,;t t
23915 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
23916 rm -f $tmp/stdin
23917 if test x"$ac_file" != x-; then
23918 mv $tmp/out $ac_file
23919 else
23920 cat $tmp/out
23921 rm -f $tmp/out
23924 done
23925 _ACEOF
23926 cat >>$CONFIG_STATUS <<\_ACEOF
23929 # CONFIG_HEADER section.
23932 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
23933 # NAME is the cpp macro being defined and VALUE is the value it is being given.
23935 # ac_d sets the value in "#define NAME VALUE" lines.
23936 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
23937 ac_dB='[ ].*$,\1#\2'
23938 ac_dC=' '
23939 ac_dD=',;t'
23940 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
23941 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
23942 ac_uB='$,\1#\2define\3'
23943 ac_uC=' '
23944 ac_uD=',;t'
23946 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
23947 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23948 case $ac_file in
23949 - | *:- | *:-:* ) # input from stdin
23950 cat >$tmp/stdin
23951 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23952 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23953 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23954 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23955 * ) ac_file_in=$ac_file.in ;;
23956 esac
23958 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
23959 echo "$as_me: creating $ac_file" >&6;}
23961 # First look for the input files in the build tree, otherwise in the
23962 # src tree.
23963 ac_file_inputs=`IFS=:
23964 for f in $ac_file_in; do
23965 case $f in
23966 -) echo $tmp/stdin ;;
23967 [\\/$]*)
23968 # Absolute (can't be DOS-style, as IFS=:)
23969 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23970 echo "$as_me: error: cannot find input file: $f" >&2;}
23971 { (exit 1); exit 1; }; }
23972 # Do quote $f, to prevent DOS paths from being IFS'd.
23973 echo "$f";;
23974 *) # Relative
23975 if test -f "$f"; then
23976 # Build tree
23977 echo "$f"
23978 elif test -f "$srcdir/$f"; then
23979 # Source tree
23980 echo "$srcdir/$f"
23981 else
23982 # /dev/null tree
23983 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23984 echo "$as_me: error: cannot find input file: $f" >&2;}
23985 { (exit 1); exit 1; }; }
23986 fi;;
23987 esac
23988 done` || { (exit 1); exit 1; }
23989 # Remove the trailing spaces.
23990 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
23992 _ACEOF
23994 # Transform confdefs.h into two sed scripts, `conftest.defines' and
23995 # `conftest.undefs', that substitutes the proper values into
23996 # config.h.in to produce config.h. The first handles `#define'
23997 # templates, and the second `#undef' templates.
23998 # And first: Protect against being on the right side of a sed subst in
23999 # config.status. Protect against being in an unquoted here document
24000 # in config.status.
24001 rm -f conftest.defines conftest.undefs
24002 # Using a here document instead of a string reduces the quoting nightmare.
24003 # Putting comments in sed scripts is not portable.
24005 # `end' is used to avoid that the second main sed command (meant for
24006 # 0-ary CPP macros) applies to n-ary macro definitions.
24007 # See the Autoconf documentation for `clear'.
24008 cat >confdef2sed.sed <<\_ACEOF
24009 s/[\\&,]/\\&/g
24010 s,[\\$`],\\&,g
24011 t clear
24012 : clear
24013 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
24014 t end
24015 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
24016 : end
24017 _ACEOF
24018 # If some macros were called several times there might be several times
24019 # the same #defines, which is useless. Nevertheless, we may not want to
24020 # sort them, since we want the *last* AC-DEFINE to be honored.
24021 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
24022 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
24023 rm -f confdef2sed.sed
24025 # This sed command replaces #undef with comments. This is necessary, for
24026 # example, in the case of _POSIX_SOURCE, which is predefined and required
24027 # on some systems where configure will not decide to define it.
24028 cat >>conftest.undefs <<\_ACEOF
24029 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
24030 _ACEOF
24032 # Break up conftest.defines because some shells have a limit on the size
24033 # of here documents, and old seds have small limits too (100 cmds).
24034 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
24035 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
24036 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
24037 echo ' :' >>$CONFIG_STATUS
24038 rm -f conftest.tail
24039 while grep . conftest.defines >/dev/null
24041 # Write a limited-size here document to $tmp/defines.sed.
24042 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
24043 # Speed up: don't consider the non `#define' lines.
24044 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
24045 # Work around the forget-to-reset-the-flag bug.
24046 echo 't clr' >>$CONFIG_STATUS
24047 echo ': clr' >>$CONFIG_STATUS
24048 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
24049 echo 'CEOF
24050 sed -f $tmp/defines.sed $tmp/in >$tmp/out
24051 rm -f $tmp/in
24052 mv $tmp/out $tmp/in
24053 ' >>$CONFIG_STATUS
24054 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
24055 rm -f conftest.defines
24056 mv conftest.tail conftest.defines
24057 done
24058 rm -f conftest.defines
24059 echo ' fi # grep' >>$CONFIG_STATUS
24060 echo >>$CONFIG_STATUS
24062 # Break up conftest.undefs because some shells have a limit on the size
24063 # of here documents, and old seds have small limits too (100 cmds).
24064 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
24065 rm -f conftest.tail
24066 while grep . conftest.undefs >/dev/null
24068 # Write a limited-size here document to $tmp/undefs.sed.
24069 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
24070 # Speed up: don't consider the non `#undef'
24071 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
24072 # Work around the forget-to-reset-the-flag bug.
24073 echo 't clr' >>$CONFIG_STATUS
24074 echo ': clr' >>$CONFIG_STATUS
24075 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
24076 echo 'CEOF
24077 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
24078 rm -f $tmp/in
24079 mv $tmp/out $tmp/in
24080 ' >>$CONFIG_STATUS
24081 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
24082 rm -f conftest.undefs
24083 mv conftest.tail conftest.undefs
24084 done
24085 rm -f conftest.undefs
24087 cat >>$CONFIG_STATUS <<\_ACEOF
24088 # Let's still pretend it is `configure' which instantiates (i.e., don't
24089 # use $as_me), people would be surprised to read:
24090 # /* config.h. Generated by config.status. */
24091 if test x"$ac_file" = x-; then
24092 echo "/* Generated by configure. */" >$tmp/config.h
24093 else
24094 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
24096 cat $tmp/in >>$tmp/config.h
24097 rm -f $tmp/in
24098 if test x"$ac_file" != x-; then
24099 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
24100 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
24101 echo "$as_me: $ac_file is unchanged" >&6;}
24102 else
24103 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
24104 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24105 X"$ac_file" : 'X\(//\)[^/]' \| \
24106 X"$ac_file" : 'X\(//\)$' \| \
24107 X"$ac_file" : 'X\(/\)' \| \
24108 . : '\(.\)' 2>/dev/null ||
24109 echo X"$ac_file" |
24110 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24111 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24112 /^X\(\/\/\)$/{ s//\1/; q; }
24113 /^X\(\/\).*/{ s//\1/; q; }
24114 s/.*/./; q'`
24115 { if $as_mkdir_p; then
24116 mkdir -p "$ac_dir"
24117 else
24118 as_dir="$ac_dir"
24119 as_dirs=
24120 while test ! -d "$as_dir"; do
24121 as_dirs="$as_dir $as_dirs"
24122 as_dir=`(dirname "$as_dir") 2>/dev/null ||
24123 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24124 X"$as_dir" : 'X\(//\)[^/]' \| \
24125 X"$as_dir" : 'X\(//\)$' \| \
24126 X"$as_dir" : 'X\(/\)' \| \
24127 . : '\(.\)' 2>/dev/null ||
24128 echo X"$as_dir" |
24129 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24130 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24131 /^X\(\/\/\)$/{ s//\1/; q; }
24132 /^X\(\/\).*/{ s//\1/; q; }
24133 s/.*/./; q'`
24134 done
24135 test ! -n "$as_dirs" || mkdir $as_dirs
24136 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24137 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24138 { (exit 1); exit 1; }; }; }
24140 rm -f $ac_file
24141 mv $tmp/config.h $ac_file
24143 else
24144 cat $tmp/config.h
24145 rm -f $tmp/config.h
24147 done
24148 _ACEOF
24149 cat >>$CONFIG_STATUS <<\_ACEOF
24152 # CONFIG_COMMANDS section.
24154 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
24155 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
24156 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
24157 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
24158 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24159 X"$ac_dest" : 'X\(//\)[^/]' \| \
24160 X"$ac_dest" : 'X\(//\)$' \| \
24161 X"$ac_dest" : 'X\(/\)' \| \
24162 . : '\(.\)' 2>/dev/null ||
24163 echo X"$ac_dest" |
24164 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24165 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24166 /^X\(\/\/\)$/{ s//\1/; q; }
24167 /^X\(\/\).*/{ s//\1/; q; }
24168 s/.*/./; q'`
24169 { if $as_mkdir_p; then
24170 mkdir -p "$ac_dir"
24171 else
24172 as_dir="$ac_dir"
24173 as_dirs=
24174 while test ! -d "$as_dir"; do
24175 as_dirs="$as_dir $as_dirs"
24176 as_dir=`(dirname "$as_dir") 2>/dev/null ||
24177 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24178 X"$as_dir" : 'X\(//\)[^/]' \| \
24179 X"$as_dir" : 'X\(//\)$' \| \
24180 X"$as_dir" : 'X\(/\)' \| \
24181 . : '\(.\)' 2>/dev/null ||
24182 echo X"$as_dir" |
24183 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24184 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24185 /^X\(\/\/\)$/{ s//\1/; q; }
24186 /^X\(\/\).*/{ s//\1/; q; }
24187 s/.*/./; q'`
24188 done
24189 test ! -n "$as_dirs" || mkdir $as_dirs
24190 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24191 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24192 { (exit 1); exit 1; }; }; }
24194 ac_builddir=.
24196 if test "$ac_dir" != .; then
24197 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24198 # A "../" for each directory in $ac_dir_suffix.
24199 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24200 else
24201 ac_dir_suffix= ac_top_builddir=
24204 case $srcdir in
24205 .) # No --srcdir option. We are building in place.
24206 ac_srcdir=.
24207 if test -z "$ac_top_builddir"; then
24208 ac_top_srcdir=.
24209 else
24210 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
24211 fi ;;
24212 [\\/]* | ?:[\\/]* ) # Absolute path.
24213 ac_srcdir=$srcdir$ac_dir_suffix;
24214 ac_top_srcdir=$srcdir ;;
24215 *) # Relative path.
24216 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
24217 ac_top_srcdir=$ac_top_builddir$srcdir ;;
24218 esac
24220 # Do not use `cd foo && pwd` to compute absolute paths, because
24221 # the directories may not exist.
24222 case `pwd` in
24223 .) ac_abs_builddir="$ac_dir";;
24225 case "$ac_dir" in
24226 .) ac_abs_builddir=`pwd`;;
24227 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
24228 *) ac_abs_builddir=`pwd`/"$ac_dir";;
24229 esac;;
24230 esac
24231 case $ac_abs_builddir in
24232 .) ac_abs_top_builddir=${ac_top_builddir}.;;
24234 case ${ac_top_builddir}. in
24235 .) ac_abs_top_builddir=$ac_abs_builddir;;
24236 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
24237 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
24238 esac;;
24239 esac
24240 case $ac_abs_builddir in
24241 .) ac_abs_srcdir=$ac_srcdir;;
24243 case $ac_srcdir in
24244 .) ac_abs_srcdir=$ac_abs_builddir;;
24245 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
24246 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
24247 esac;;
24248 esac
24249 case $ac_abs_builddir in
24250 .) ac_abs_top_srcdir=$ac_top_srcdir;;
24252 case $ac_top_srcdir in
24253 .) ac_abs_top_srcdir=$ac_abs_builddir;;
24254 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
24255 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
24256 esac;;
24257 esac
24260 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
24261 echo "$as_me: executing $ac_dest commands" >&6;}
24262 case $ac_dest in
24263 default )
24265 ### Make the necessary directories, if they don't exist.
24266 for dir in etc lisp ; do
24267 test -d ${dir} || mkdir ${dir}
24268 done
24270 # Build src/Makefile from ${srcdir}/src/Makefile.c
24271 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
24272 # This must be done after src/config.h is built, since we rely on that file.
24274 # Now get this: Some word that is part of the ${srcdir} directory name
24275 # or the ${configuration} value might, just might, happen to be an
24276 # identifier like `sun4' or `i386' or something, and be predefined by
24277 # the C preprocessor to some helpful value like 1, or maybe the empty
24278 # string. Needless to say consequent macro substitutions are less
24279 # than conducive to the makefile finding the correct directory.
24280 undefs="`echo $top_srcdir $configuration $canonical |
24281 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
24282 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g' \
24285 echo creating src/epaths.h
24286 ${MAKE-make} epaths-force
24288 # As of 2000-11-19, newest development versions of GNU cpp preprocess
24289 # `..' to `. .' unless invoked with -traditional
24291 if test "x$GCC" = xyes && test "x$CPP_NEED_TRADITIONAL" = xyes; then
24292 CPPFLAGS="$CPPFLAGS -traditional"
24295 echo creating lib-src/Makefile
24296 ( cd lib-src
24297 rm -f junk.c junk1.c junk2.c
24298 sed -e '/start of cpp stuff/q' \
24299 < Makefile.c > junk1.c
24300 sed -e '1,/start of cpp stuff/d'\
24301 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
24302 < Makefile.c > junk.c
24303 $CPP $undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
24304 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
24305 cat junk1.c junk2.c > Makefile.new
24306 rm -f junk.c junk1.c junk2.c
24307 chmod 444 Makefile.new
24308 mv -f Makefile.new Makefile
24311 echo creating src/Makefile
24312 ( cd src
24313 rm -f junk.c junk1.c junk2.c
24314 sed -e '/start of cpp stuff/q' \
24315 < Makefile.c > junk1.c
24316 sed -e '1,/start of cpp stuff/d'\
24317 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
24318 < Makefile.c > junk.c
24319 $CPP $undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
24320 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
24321 cat junk1.c junk2.c > Makefile.new
24322 rm -f junk.c junk1.c junk2.c
24323 chmod 444 Makefile.new
24324 mv -f Makefile.new Makefile
24327 if test ! -f src/.gdbinit && test -f $srcdir/src/.gdbinit; then
24328 echo creating src/.gdbinit
24329 echo source $srcdir/src/.gdbinit > src/.gdbinit
24332 # This is how we know whether to re-run configure in certain cases.
24333 touch src/config.stamp
24336 esac
24337 done
24338 _ACEOF
24340 cat >>$CONFIG_STATUS <<\_ACEOF
24342 { (exit 0); exit 0; }
24343 _ACEOF
24344 chmod +x $CONFIG_STATUS
24345 ac_clean_files=$ac_clean_files_save
24348 # configure is writing to config.log, and then calls config.status.
24349 # config.status does its own redirection, appending to config.log.
24350 # Unfortunately, on DOS this fails, as config.log is still kept open
24351 # by configure, so config.status won't be able to write to it; its
24352 # output is simply discarded. So we exec the FD to /dev/null,
24353 # effectively closing config.log, so it can be properly (re)opened and
24354 # appended to by config.status. When coming back to configure, we
24355 # need to make the FD available again.
24356 if test "$no_create" != yes; then
24357 ac_cs_success=:
24358 ac_config_status_args=
24359 test "$silent" = yes &&
24360 ac_config_status_args="$ac_config_status_args --quiet"
24361 exec 5>/dev/null
24362 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
24363 exec 5>>config.log
24364 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24365 # would make configure fail if this is the last instruction.
24366 $ac_cs_success || { (exit 1); exit 1; }