(assoc_no_quit): Extern it.
[emacs/old-mirror.git] / configure
blob6969f29fed43af9a1daecd3f4c328f1f6a3321b3
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 XFT_CFLAGS XFT_LIBS FREETYPE_CFLAGS FREETYPE_LIBS FONTCONFIG_CFLAGS FONTCONFIG_LIBS HAVE_LIBOTF LIBOTF_CFLAGS LIBOTF_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-font-backend compile code of font-backend support
860 --enable-asserts compile code with asserts enabled
861 --enable-maintainer-mode enable make rules and dependencies not useful
862 (and sometimes confusing) to the casual installer
863 --enable-locallisppath=PATH
864 directories Emacs should search for lisp files
865 specific to this site
866 --disable-largefile omit support for large files
868 Optional Packages:
869 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
870 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
871 --without-gcc don't use GCC to compile Emacs if GCC is found
872 --without-pop don't support POP mail retrieval with movemail
873 --with-kerberos support Kerberos-authenticated POP
874 --with-kerberos5 support Kerberos version 5 authenticated POP
875 --with-hesiod support Hesiod to get the POP server host
876 --without-sound don't compile with sound support
877 --with-x-toolkit=KIT use an X toolkit
878 (KIT = yes/lucid/athena/motif/gtk/no)
879 --with-xpm use -lXpm for displaying XPM images
880 --with-jpeg use -ljpeg for displaying JPEG images
881 --with-tiff use -ltiff for displaying TIFF images
882 --with-gif use -lungif for displaying GIF images
883 --with-png use -lpng for displaying PNG images
884 --with-freetype use -lfreetype for local fonts support
885 --with-xft use -lXft for anti aliased fonts
886 --with-gtk use GTK (same as --with-x-toolkit=gtk)
887 --with-pkg-config-prog Path to pkg-config to use for finding GTK
888 --without-toolkit-scroll-bars
889 don't use Motif or Xaw3d scroll bars
890 --without-xim don't use X11 XIM
891 --without-carbon don't use Carbon GUI on Mac OS X
892 --with-x use the X Window System
894 Some influential environment variables:
895 CC C compiler command
896 CFLAGS C compiler flags
897 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
898 nonstandard directory <lib dir>
899 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
900 headers in a nonstandard directory <include dir>
901 CPP C preprocessor
903 Use these variables to override the choices made by `configure' or to help
904 it to find libraries and programs with nonstandard names/locations.
906 _ACEOF
909 if test "$ac_init_help" = "recursive"; then
910 # If there are subdirs, report their specific --help.
911 ac_popdir=`pwd`
912 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
913 test -d $ac_dir || continue
914 ac_builddir=.
916 if test "$ac_dir" != .; then
917 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
918 # A "../" for each directory in $ac_dir_suffix.
919 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
920 else
921 ac_dir_suffix= ac_top_builddir=
924 case $srcdir in
925 .) # No --srcdir option. We are building in place.
926 ac_srcdir=.
927 if test -z "$ac_top_builddir"; then
928 ac_top_srcdir=.
929 else
930 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
931 fi ;;
932 [\\/]* | ?:[\\/]* ) # Absolute path.
933 ac_srcdir=$srcdir$ac_dir_suffix;
934 ac_top_srcdir=$srcdir ;;
935 *) # Relative path.
936 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
937 ac_top_srcdir=$ac_top_builddir$srcdir ;;
938 esac
940 # Do not use `cd foo && pwd` to compute absolute paths, because
941 # the directories may not exist.
942 case `pwd` in
943 .) ac_abs_builddir="$ac_dir";;
945 case "$ac_dir" in
946 .) ac_abs_builddir=`pwd`;;
947 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
948 *) ac_abs_builddir=`pwd`/"$ac_dir";;
949 esac;;
950 esac
951 case $ac_abs_builddir in
952 .) ac_abs_top_builddir=${ac_top_builddir}.;;
954 case ${ac_top_builddir}. in
955 .) ac_abs_top_builddir=$ac_abs_builddir;;
956 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
957 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
958 esac;;
959 esac
960 case $ac_abs_builddir in
961 .) ac_abs_srcdir=$ac_srcdir;;
963 case $ac_srcdir in
964 .) ac_abs_srcdir=$ac_abs_builddir;;
965 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
966 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
967 esac;;
968 esac
969 case $ac_abs_builddir in
970 .) ac_abs_top_srcdir=$ac_top_srcdir;;
972 case $ac_top_srcdir in
973 .) ac_abs_top_srcdir=$ac_abs_builddir;;
974 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
975 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
976 esac;;
977 esac
979 cd $ac_dir
980 # Check for guested configure; otherwise get Cygnus style configure.
981 if test -f $ac_srcdir/configure.gnu; then
982 echo
983 $SHELL $ac_srcdir/configure.gnu --help=recursive
984 elif test -f $ac_srcdir/configure; then
985 echo
986 $SHELL $ac_srcdir/configure --help=recursive
987 elif test -f $ac_srcdir/configure.ac ||
988 test -f $ac_srcdir/configure.in; then
989 echo
990 $ac_configure --help
991 else
992 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
994 cd $ac_popdir
995 done
998 test -n "$ac_init_help" && exit 0
999 if $ac_init_version; then
1000 cat <<\_ACEOF
1002 Copyright (C) 2003 Free Software Foundation, Inc.
1003 This configure script is free software; the Free Software Foundation
1004 gives unlimited permission to copy, distribute and modify it.
1005 _ACEOF
1006 exit 0
1008 exec 5>config.log
1009 cat >&5 <<_ACEOF
1010 This file contains any messages produced by compilers while
1011 running configure, to aid debugging if configure makes a mistake.
1013 It was created by $as_me, which was
1014 generated by GNU Autoconf 2.59. Invocation command line was
1016 $ $0 $@
1018 _ACEOF
1020 cat <<_ASUNAME
1021 ## --------- ##
1022 ## Platform. ##
1023 ## --------- ##
1025 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1026 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1027 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1028 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1029 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1031 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1032 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1034 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1035 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1036 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1037 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1038 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1039 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1040 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1042 _ASUNAME
1044 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1045 for as_dir in $PATH
1047 IFS=$as_save_IFS
1048 test -z "$as_dir" && as_dir=.
1049 echo "PATH: $as_dir"
1050 done
1052 } >&5
1054 cat >&5 <<_ACEOF
1057 ## ----------- ##
1058 ## Core tests. ##
1059 ## ----------- ##
1061 _ACEOF
1064 # Keep a trace of the command line.
1065 # Strip out --no-create and --no-recursion so they do not pile up.
1066 # Strip out --silent because we don't want to record it for future runs.
1067 # Also quote any args containing shell meta-characters.
1068 # Make two passes to allow for proper duplicate-argument suppression.
1069 ac_configure_args=
1070 ac_configure_args0=
1071 ac_configure_args1=
1072 ac_sep=
1073 ac_must_keep_next=false
1074 for ac_pass in 1 2
1076 for ac_arg
1078 case $ac_arg in
1079 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1080 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1081 | -silent | --silent | --silen | --sile | --sil)
1082 continue ;;
1083 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1084 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1085 esac
1086 case $ac_pass in
1087 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1089 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1090 if test $ac_must_keep_next = true; then
1091 ac_must_keep_next=false # Got value, back to normal.
1092 else
1093 case $ac_arg in
1094 *=* | --config-cache | -C | -disable-* | --disable-* \
1095 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1096 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1097 | -with-* | --with-* | -without-* | --without-* | --x)
1098 case "$ac_configure_args0 " in
1099 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1100 esac
1102 -* ) ac_must_keep_next=true ;;
1103 esac
1105 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1106 # Get rid of the leading space.
1107 ac_sep=" "
1109 esac
1110 done
1111 done
1112 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1113 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1115 # When interrupted or exit'd, cleanup temporary files, and complete
1116 # config.log. We remove comments because anyway the quotes in there
1117 # would cause problems or look ugly.
1118 # WARNING: Be sure not to use single quotes in there, as some shells,
1119 # such as our DU 5.0 friend, will then `close' the trap.
1120 trap 'exit_status=$?
1121 # Save into config.log some information that might help in debugging.
1123 echo
1125 cat <<\_ASBOX
1126 ## ---------------- ##
1127 ## Cache variables. ##
1128 ## ---------------- ##
1129 _ASBOX
1130 echo
1131 # The following way of writing the cache mishandles newlines in values,
1133 (set) 2>&1 |
1134 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1135 *ac_space=\ *)
1136 sed -n \
1137 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1138 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1141 sed -n \
1142 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1144 esac;
1146 echo
1148 cat <<\_ASBOX
1149 ## ----------------- ##
1150 ## Output variables. ##
1151 ## ----------------- ##
1152 _ASBOX
1153 echo
1154 for ac_var in $ac_subst_vars
1156 eval ac_val=$`echo $ac_var`
1157 echo "$ac_var='"'"'$ac_val'"'"'"
1158 done | sort
1159 echo
1161 if test -n "$ac_subst_files"; then
1162 cat <<\_ASBOX
1163 ## ------------- ##
1164 ## Output files. ##
1165 ## ------------- ##
1166 _ASBOX
1167 echo
1168 for ac_var in $ac_subst_files
1170 eval ac_val=$`echo $ac_var`
1171 echo "$ac_var='"'"'$ac_val'"'"'"
1172 done | sort
1173 echo
1176 if test -s confdefs.h; then
1177 cat <<\_ASBOX
1178 ## ----------- ##
1179 ## confdefs.h. ##
1180 ## ----------- ##
1181 _ASBOX
1182 echo
1183 sed "/^$/d" confdefs.h | sort
1184 echo
1186 test "$ac_signal" != 0 &&
1187 echo "$as_me: caught signal $ac_signal"
1188 echo "$as_me: exit $exit_status"
1189 } >&5
1190 rm -f core *.core &&
1191 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1192 exit $exit_status
1194 for ac_signal in 1 2 13 15; do
1195 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1196 done
1197 ac_signal=0
1199 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1200 rm -rf conftest* confdefs.h
1201 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1202 echo >confdefs.h
1204 # Predefined preprocessor variables.
1206 cat >>confdefs.h <<_ACEOF
1207 #define PACKAGE_NAME "$PACKAGE_NAME"
1208 _ACEOF
1211 cat >>confdefs.h <<_ACEOF
1212 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1213 _ACEOF
1216 cat >>confdefs.h <<_ACEOF
1217 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1218 _ACEOF
1221 cat >>confdefs.h <<_ACEOF
1222 #define PACKAGE_STRING "$PACKAGE_STRING"
1223 _ACEOF
1226 cat >>confdefs.h <<_ACEOF
1227 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1228 _ACEOF
1231 # Let the site file select an alternate cache file if it wants to.
1232 # Prefer explicitly selected file to automatically selected ones.
1233 if test -z "$CONFIG_SITE"; then
1234 if test "x$prefix" != xNONE; then
1235 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1236 else
1237 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1240 for ac_site_file in $CONFIG_SITE; do
1241 if test -r "$ac_site_file"; then
1242 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1243 echo "$as_me: loading site script $ac_site_file" >&6;}
1244 sed 's/^/| /' "$ac_site_file" >&5
1245 . "$ac_site_file"
1247 done
1249 if test -r "$cache_file"; then
1250 # Some versions of bash will fail to source /dev/null (special
1251 # files actually), so we avoid doing that.
1252 if test -f "$cache_file"; then
1253 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1254 echo "$as_me: loading cache $cache_file" >&6;}
1255 case $cache_file in
1256 [\\/]* | ?:[\\/]* ) . $cache_file;;
1257 *) . ./$cache_file;;
1258 esac
1260 else
1261 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1262 echo "$as_me: creating cache $cache_file" >&6;}
1263 >$cache_file
1266 # Check that the precious variables saved in the cache have kept the same
1267 # value.
1268 ac_cache_corrupted=false
1269 for ac_var in `(set) 2>&1 |
1270 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1271 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1272 eval ac_new_set=\$ac_env_${ac_var}_set
1273 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1274 eval ac_new_val="\$ac_env_${ac_var}_value"
1275 case $ac_old_set,$ac_new_set in
1276 set,)
1277 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1278 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1279 ac_cache_corrupted=: ;;
1280 ,set)
1281 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1282 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1283 ac_cache_corrupted=: ;;
1284 ,);;
1286 if test "x$ac_old_val" != "x$ac_new_val"; then
1287 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1288 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1289 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1290 echo "$as_me: former value: $ac_old_val" >&2;}
1291 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1292 echo "$as_me: current value: $ac_new_val" >&2;}
1293 ac_cache_corrupted=:
1294 fi;;
1295 esac
1296 # Pass precious variables to config.status.
1297 if test "$ac_new_set" = set; then
1298 case $ac_new_val in
1299 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1300 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1301 *) ac_arg=$ac_var=$ac_new_val ;;
1302 esac
1303 case " $ac_configure_args " in
1304 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1305 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1306 esac
1308 done
1309 if $ac_cache_corrupted; then
1310 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1311 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1312 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1313 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1314 { (exit 1); exit 1; }; }
1317 ac_ext=c
1318 ac_cpp='$CPP $CPPFLAGS'
1319 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1320 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1321 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1341 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
1344 test "$program_prefix" != NONE &&
1345 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1346 # Use a double $ so make ignores it.
1347 test "$program_suffix" != NONE &&
1348 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1349 # Double any \ or $. echo might interpret backslashes.
1350 # By default was `s,x,x', remove it if useless.
1351 cat <<\_ACEOF >conftest.sed
1352 s/[\\$]/&&/g;s/;s,x,x,$//
1353 _ACEOF
1354 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1355 rm conftest.sed
1358 lispdir='${datadir}/emacs/${version}/lisp'
1359 locallisppath='${datadir}/emacs/${version}/site-lisp:'\
1360 '${datadir}/emacs/site-lisp:${datadir}/emacs/${version}/leim'
1361 lisppath='${locallisppath}:${lispdir}'
1362 etcdir='${datadir}/emacs/${version}/etc'
1363 archlibdir='${libexecdir}/emacs/${version}/${configuration}'
1364 docdir='${datadir}/emacs/${version}/etc'
1365 gamedir='${localstatedir}/games/emacs'
1367 gameuser=games
1370 # Check whether --with-gcc or --without-gcc was given.
1371 if test "${with_gcc+set}" = set; then
1372 withval="$with_gcc"
1376 # Check whether --with-pop or --without-pop was given.
1377 if test "${with_pop+set}" = set; then
1378 withval="$with_pop"
1379 if test "$withval" = yes; then
1380 cat >>confdefs.h <<\_ACEOF
1381 #define MAIL_USE_POP 1
1382 _ACEOF
1384 else :
1386 else
1387 cat >>confdefs.h <<\_ACEOF
1388 #define MAIL_USE_POP 1
1389 _ACEOF
1394 # Check whether --with-kerberos or --without-kerberos was given.
1395 if test "${with_kerberos+set}" = set; then
1396 withval="$with_kerberos"
1397 cat >>confdefs.h <<\_ACEOF
1398 #define KERBEROS 1
1399 _ACEOF
1404 # Check whether --with-kerberos5 or --without-kerberos5 was given.
1405 if test "${with_kerberos5+set}" = set; then
1406 withval="$with_kerberos5"
1407 if test "${with_kerberos5+set}" = set; then
1408 if test "${with_kerberos+set}" != set; then
1409 with_kerberos=yes
1410 cat >>confdefs.h <<\_ACEOF
1411 #define KERBEROS 1
1412 _ACEOF
1417 cat >>confdefs.h <<\_ACEOF
1418 #define KERBEROS5 1
1419 _ACEOF
1423 # Check whether --with-hesiod or --without-hesiod was given.
1424 if test "${with_hesiod+set}" = set; then
1425 withval="$with_hesiod"
1427 cat >>confdefs.h <<\_ACEOF
1428 #define HESIOD 1
1429 _ACEOF
1434 # Check whether --with-sound or --without-sound was given.
1435 if test "${with_sound+set}" = set; then
1436 withval="$with_sound"
1441 # Check whether --with-x-toolkit or --without-x-toolkit was given.
1442 if test "${with_x_toolkit+set}" = set; then
1443 withval="$with_x_toolkit"
1444 case "${withval}" in
1445 y | ye | yes ) val=athena ;;
1446 n | no ) val=no ;;
1447 l | lu | luc | luci | lucid ) val=lucid ;;
1448 a | at | ath | athe | athen | athena ) val=athena ;;
1449 m | mo | mot | moti | motif ) val=motif ;;
1450 g | gt | gtk ) val=gtk ;;
1452 { { echo "$as_me:$LINENO: 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." >&5
1455 echo "$as_me: error: \`--with-x-toolkit=$withval' is invalid\;
1456 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
1457 Currently, \`yes', \`athena' and \`lucid' are synonyms." >&2;}
1458 { (exit 1); exit 1; }; }
1460 esac
1461 with_x_toolkit=$val
1465 # Check whether --with-xpm or --without-xpm was given.
1466 if test "${with_xpm+set}" = set; then
1467 withval="$with_xpm"
1471 # Check whether --with-jpeg or --without-jpeg was given.
1472 if test "${with_jpeg+set}" = set; then
1473 withval="$with_jpeg"
1477 # Check whether --with-tiff or --without-tiff was given.
1478 if test "${with_tiff+set}" = set; then
1479 withval="$with_tiff"
1483 # Check whether --with-gif or --without-gif was given.
1484 if test "${with_gif+set}" = set; then
1485 withval="$with_gif"
1489 # Check whether --with-png or --without-png was given.
1490 if test "${with_png+set}" = set; then
1491 withval="$with_png"
1495 # Check whether --with-freetype or --without-freetype was given.
1496 if test "${with_freetype+set}" = set; then
1497 withval="$with_freetype"
1501 # Check whether --with-xft or --without-xft was given.
1502 if test "${with_xft+set}" = set; then
1503 withval="$with_xft"
1507 # Check whether --with-gtk or --without-gtk was given.
1508 if test "${with_gtk+set}" = set; then
1509 withval="$with_gtk"
1513 # Check whether --with-pkg-config-prog or --without-pkg-config-prog was given.
1514 if test "${with_pkg_config_prog+set}" = set; then
1515 withval="$with_pkg_config_prog"
1519 # Check whether --with-toolkit-scroll-bars or --without-toolkit-scroll-bars was given.
1520 if test "${with_toolkit_scroll_bars+set}" = set; then
1521 withval="$with_toolkit_scroll_bars"
1525 # Check whether --with-xim or --without-xim was given.
1526 if test "${with_xim+set}" = set; then
1527 withval="$with_xim"
1531 # Check whether --with-carbon or --without-carbon was given.
1532 if test "${with_carbon+set}" = set; then
1533 withval="$with_carbon"
1536 # Check whether --enable-carbon-app or --disable-carbon-app was given.
1537 if test "${enable_carbon_app+set}" = set; then
1538 enableval="$enable_carbon_app"
1539 carbon_appdir_x=${enableval}
1542 # Check whether --enable-font-backend or --disable-font-backend was given.
1543 if test "${enable_font_backend+set}" = set; then
1544 enableval="$enable_font_backend"
1545 USE_FONT_BACKEND=$enableval
1546 else
1547 USE_FONT_BACKEND=no
1550 # Check whether --enable-asserts or --disable-asserts was given.
1551 if test "${enable_asserts+set}" = set; then
1552 enableval="$enable_asserts"
1553 USE_XASSERTS=$enableval
1554 else
1555 USE_XASSERTS=no
1558 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1559 if test "${enable_maintainer_mode+set}" = set; then
1560 enableval="$enable_maintainer_mode"
1561 USE_MAINTAINER_MODE=$enableval
1562 else
1563 USE_MAINTAINER_MODE=no
1565 if test $USE_MAINTAINER_MODE = yes; then
1566 MAINT=
1567 else
1568 MAINT=#
1572 # Check whether --enable-locallisppath or --disable-locallisppath was given.
1573 if test "${enable_locallisppath+set}" = set; then
1574 enableval="$enable_locallisppath"
1575 if test "${enableval}" = "no"; then
1576 locallisppath=
1577 elif test "${enableval}" != "yes"; then
1578 locallisppath=${enableval}
1582 #### Make srcdir absolute, if it isn't already. It's important to
1583 #### avoid running the path through pwd unnecessarily, since pwd can
1584 #### give you automounter prefixes, which can go away. We do all this
1585 #### so Emacs can find its files when run uninstalled.
1586 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
1587 unset CDPATH
1588 case "${srcdir}" in
1589 /* ) ;;
1591 ## We may be able to use the $PWD environment variable to make this
1592 ## absolute. But sometimes PWD is inaccurate.
1593 ## Note: we used to use ${PWD} at the end instead of `pwd`,
1594 ## but that tested only for a well-formed and valid PWD,
1595 ## it did not object when PWD was well-formed and valid but just wrong.
1596 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
1597 then
1598 srcdir="$PWD"
1599 else
1600 srcdir="`(cd ${srcdir}; pwd)`"
1603 * ) srcdir="`(cd ${srcdir}; pwd)`" ;;
1604 esac
1606 #### Check if the source directory already has a configured system in it.
1607 if test `pwd` != `(cd ${srcdir} && pwd)` \
1608 && test -f "${srcdir}/src/config.h" ; then
1609 { echo "$as_me:$LINENO: WARNING: The directory tree \`${srcdir}' is being used
1610 as a build directory right now; it has been configured in its own
1611 right. To configure in another directory as well, you MUST
1612 use GNU make. If you do not have GNU make, then you must
1613 now do \`make distclean' in ${srcdir},
1614 and then run $0 again." >&5
1615 echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
1616 as a build directory right now; it has been configured in its own
1617 right. To configure in another directory as well, you MUST
1618 use GNU make. If you do not have GNU make, then you must
1619 now do \`make distclean' in ${srcdir},
1620 and then run $0 again." >&2;}
1623 #### Given the configuration name, set machfile and opsysfile to the
1624 #### names of the m/*.h and s/*.h files we should use.
1626 ### Canonicalize the configuration name.
1628 ac_aux_dir=
1629 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1630 if test -f $ac_dir/install-sh; then
1631 ac_aux_dir=$ac_dir
1632 ac_install_sh="$ac_aux_dir/install-sh -c"
1633 break
1634 elif test -f $ac_dir/install.sh; then
1635 ac_aux_dir=$ac_dir
1636 ac_install_sh="$ac_aux_dir/install.sh -c"
1637 break
1638 elif test -f $ac_dir/shtool; then
1639 ac_aux_dir=$ac_dir
1640 ac_install_sh="$ac_aux_dir/shtool install -c"
1641 break
1643 done
1644 if test -z "$ac_aux_dir"; then
1645 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1646 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1647 { (exit 1); exit 1; }; }
1649 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1650 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1651 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1653 # Make sure we can run config.sub.
1654 $ac_config_sub sun4 >/dev/null 2>&1 ||
1655 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1656 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1657 { (exit 1); exit 1; }; }
1659 echo "$as_me:$LINENO: checking build system type" >&5
1660 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1661 if test "${ac_cv_build+set}" = set; then
1662 echo $ECHO_N "(cached) $ECHO_C" >&6
1663 else
1664 ac_cv_build_alias=$build_alias
1665 test -z "$ac_cv_build_alias" &&
1666 ac_cv_build_alias=`$ac_config_guess`
1667 test -z "$ac_cv_build_alias" &&
1668 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1669 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1670 { (exit 1); exit 1; }; }
1671 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1672 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1673 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1674 { (exit 1); exit 1; }; }
1677 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1678 echo "${ECHO_T}$ac_cv_build" >&6
1679 build=$ac_cv_build
1680 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1681 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1682 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1685 echo "$as_me:$LINENO: checking host system type" >&5
1686 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1687 if test "${ac_cv_host+set}" = set; then
1688 echo $ECHO_N "(cached) $ECHO_C" >&6
1689 else
1690 ac_cv_host_alias=$host_alias
1691 test -z "$ac_cv_host_alias" &&
1692 ac_cv_host_alias=$ac_cv_build_alias
1693 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1694 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1695 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1696 { (exit 1); exit 1; }; }
1699 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1700 echo "${ECHO_T}$ac_cv_host" >&6
1701 host=$ac_cv_host
1702 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1703 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1704 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1707 canonical=$host
1708 configuration=${host_alias-$host}
1712 ### If you add support for a new configuration, add code to this
1713 ### switch statement to recognize your configuration name and select
1714 ### the appropriate operating system and machine description files.
1716 ### You would hope that you could choose an m/*.h file pretty much
1717 ### based on the machine portion of the configuration name, and an s-
1718 ### file based on the operating system portion. However, it turns out
1719 ### that each m/*.h file is pretty manufacturer-specific - for
1720 ### example, apollo.h, hp9000s300.h, mega68k, news.h, and tad68k are
1721 ### all 68000 machines; mips.h, pmax.h, and news-risc are all MIPS
1722 ### machines. So we basically have to have a special case for each
1723 ### configuration name.
1725 ### As far as handling version numbers on operating systems is
1726 ### concerned, make sure things will fail in a fixable way. If
1727 ### /etc/MACHINES doesn't say anything about version numbers, be
1728 ### prepared to handle anything reasonably. If version numbers
1729 ### matter, be sure /etc/MACHINES says something about it.
1731 ### Eric Raymond says we should accept strings like "sysvr4" to mean
1732 ### "System V Release 4"; he writes, "The old convention encouraged
1733 ### confusion between `system' and `release' levels'."
1735 machine='' opsys='' unported=no
1736 case "${canonical}" in
1738 ## FreeBSD ports
1739 *-*-freebsd* )
1740 opsys=freebsd
1741 case "${canonical}" in
1742 alpha*-*-freebsd*) machine=alpha ;;
1743 i[3456]86-*-freebsd*) machine=intel386 ;;
1744 amd64-*-freebsd*|x86_64-*-freebsd*) machine=amdx86-64 ;;
1745 esac
1748 ## NetBSD ports
1749 *-*-netbsd* )
1750 opsys=netbsd
1751 if test -f /usr/lib/crti.o; then
1753 cat >>confdefs.h <<\_ACEOF
1754 #define HAVE_CRTIN
1755 _ACEOF
1759 case "${canonical}" in
1760 alpha*-*-netbsd*) machine=alpha ;;
1761 i[3456]86-*-netbsd*) machine=intel386 ;;
1762 m68k-*-netbsd*)
1763 # This is somewhat bogus.
1764 machine=hp9000s300 ;;
1765 powerpc-apple-netbsd*) machine=macppc ;;
1766 mips-*-netbsd*) machine=pmax ;;
1767 mipsel-*-netbsd*) machine=pmax ;;
1768 mipseb-*-netbsd*) machine=pmax ;;
1769 ns32k-*-netbsd*) machine=ns32000 ;;
1770 powerpc-*-netbsd*) machine=macppc ;;
1771 sparc*-*-netbsd*) machine=sparc ;;
1772 vax-*-netbsd*) machine=vax ;;
1773 arm-*-netbsd*) machine=arm ;;
1774 esac
1777 ## OpenBSD ports
1778 *-*-openbsd* )
1779 opsys=openbsd
1780 case "${canonical}" in
1781 alpha*-*-openbsd*) machine=alpha ;;
1782 i386-*-openbsd*) machine=intel386 ;;
1783 m68k-*-openbsd*) machine=hp9000s300 ;;
1784 mipsel-*-openbsd*) machine=pmax ;;
1785 ns32k-*-openbsd*) machine=ns32000 ;;
1786 sparc-*-openbsd*) machine=sparc ;;
1787 vax-*-openbsd*) machine=vax ;;
1788 esac
1791 ## LynxOS ports
1792 *-*-lynxos* )
1793 opsys=lynxos
1794 case "${canonical}" in
1795 i[3456]86-*-lynxos*) machine=intel386 ;;
1796 powerpc-*-lynxos*) machine=powerpc ;;
1797 esac
1800 ## Acorn RISCiX:
1801 arm-acorn-riscix1.1* )
1802 machine=acorn opsys=riscix1-1
1804 arm-acorn-riscix1.2* | arm-acorn-riscix )
1805 ## This name is riscix12 instead of riscix1.2
1806 ## to avoid a file name conflict on MSDOS.
1807 machine=acorn opsys=riscix12
1810 ## BSDI ports
1811 *-*-bsdi* )
1812 opsys=bsdi
1813 case "${canonical}" in
1814 i[345]86-*-bsdi*) machine=intel386 ;;
1815 sparc-*-bsdi*) machine=sparc ;;
1816 powerpc-*-bsdi*) machine=macppc ;;
1817 esac
1818 case "${canonical}" in
1819 *-*-bsd386* | *-*-bsdi1* ) opsys=bsd386 ;;
1820 *-*-bsdi2.0* ) opsys=bsdos2 ;;
1821 *-*-bsdi2* ) opsys=bsdos2-1 ;;
1822 *-*-bsdi3* ) opsys=bsdos3 ;;
1823 *-*-bsdi[45]* ) opsys=bsdos4 ;;
1824 esac
1827 ## Alliant machines
1828 ## Strictly speaking, we need the version of the alliant operating
1829 ## system to choose the right machine file, but currently the
1830 ## configuration name doesn't tell us enough to choose the right
1831 ## one; we need to give alliants their own operating system name to
1832 ## do this right. When someone cares, they can help us.
1833 fx80-alliant-* )
1834 machine=alliant4 opsys=bsd4-2
1836 i860-alliant-* )
1837 machine=alliant-2800 opsys=bsd4-3
1840 ## Alpha (DEC) machines.
1841 alpha*-dec-osf* )
1842 machine=alpha opsys=osf1
1843 # This is needed to find X11R6.1 libraries for certain tests.
1844 NON_GCC_LINK_TEST_OPTIONS=-Wl,-rpath,/usr/X11R6/lib
1845 GCC_LINK_TEST_OPTIONS=-Wl,-rpath,/usr/X11R6/lib
1846 # NON_GNU_CPP is necessary on 5.0 to avoid mangling src/Makefile
1847 # due to non-traditional preprocessing with the current compiler
1848 # defaults. OSF 4 can also have that compiler version, and there
1849 # seems always to have been a usable /usr/bin/cpp.
1850 NON_GNU_CPP=/usr/bin/cpp
1851 case "${canonical}" in
1852 alpha*-dec-osf[5-9]*)
1853 opsys=osf5-0 ;;
1854 esac
1857 alpha*-*-linux-gnu* )
1858 machine=alpha opsys=gnu-linux
1861 arm*-*-linux-gnu* )
1862 machine=arm opsys=gnu-linux
1865 ## Altos 3068
1866 m68*-altos-sysv* )
1867 machine=altos opsys=usg5-2
1870 ## Amdahl UTS
1871 580-amdahl-sysv* )
1872 machine=amdahl opsys=usg5-2-2
1875 ## Apollo, Domain/OS
1876 m68*-apollo-* )
1877 machine=apollo opsys=bsd4-3
1880 ## AT&T 3b2, 3b5, 3b15, 3b20
1881 we32k-att-sysv* )
1882 machine=att3b opsys=usg5-2-2
1885 ## AT&T 3b1 - The Mighty Unix PC!
1886 m68*-att-sysv* )
1887 machine=7300 opsys=usg5-2-2
1890 ## Bull dpx20
1891 rs6000-bull-bosx* )
1892 machine=ibmrs6000 opsys=aix3-2
1895 ## Bull dpx2
1896 m68*-bull-sysv3* )
1897 machine=dpx2 opsys=usg5-3
1900 ## Bull sps7
1901 m68*-bull-sysv2* )
1902 machine=sps7 opsys=usg5-2
1905 ## CCI 5/32, 6/32 -- see "Tahoe".
1907 ## Celerity
1908 ## I don't know what configuration name to use for this; config.sub
1909 ## doesn't seem to know anything about it. Hey, Celerity users, get
1910 ## in touch with us!
1911 celerity-celerity-bsd* )
1912 machine=celerity opsys=bsd4-2
1915 ## Clipper
1916 ## What operating systems does this chip run that Emacs has been
1917 ## tested on?
1918 clipper-* )
1919 machine=clipper
1920 ## We'll use the catch-all code at the bottom to guess the
1921 ## operating system.
1924 ## Compaq Nonstop
1925 mips-compaq-nonstopux* )
1926 machine=nonstopux opsys=nonstopux
1929 ## Convex
1930 *-convex-bsd* | *-convex-convexos* )
1931 machine=convex opsys=bsd4-3
1932 ## Prevents spurious white space in makefiles - d.m.cooke@larc.nasa.gov
1933 NON_GNU_CPP="cc -E -P"
1936 ## Cubix QBx/386
1937 i[3456]86-cubix-sysv* )
1938 machine=intel386 opsys=usg5-3
1941 ## Cydra 5
1942 cydra*-cydrome-sysv* )
1943 machine=cydra5 opsys=usg5-3
1946 ## Data General AViiON Machines
1947 ## DG changed naming conventions with the release of 5.4.4.10, they
1948 ## dropped the initial 5.4 but left the intervening R. Because of the
1949 ## R this shouldn't conflict with older versions of the OS (which I
1950 ## think were named like dgux4.*). In addition, DG new AViiONs series
1951 ## uses either Motorola M88k or Intel Pentium CPUs.
1952 m88k-dg-dguxR4.* | m88k-dg-dgux4* )
1953 machine=aviion opsys=dgux4
1955 m88k-dg-dgux5.4R3* | m88k-dg-dgux5.4.3* )
1956 ## This name is dgux5-4-3 instead of dgux5-4r3
1957 ## to avoid a file name conflict on MSDOS.
1958 machine=aviion opsys=dgux5-4-3
1960 m88k-dg-dgux5.4R2* | m88k-dg-dgux5.4.2* )
1961 machine=aviion opsys=dgux5-4r2
1963 m88k-dg-dgux* )
1964 machine=aviion opsys=dgux
1967 ## Data General AViiON Intel (x86) Machines
1968 ## Exists from 5.4.3 (current i586-dg-dguxR4.11)
1969 ## Ehud Karni, 1998-may-30, ehud@unix.simonwiesel.co.il
1970 i[345]86-dg-dguxR4* )
1971 machine=aviion-intel opsys=dgux4
1974 ## DECstations
1975 mips-dec-ultrix[0-3].* | mips-dec-ultrix4.0* | mips-dec-bsd4.2* )
1976 machine=pmax opsys=bsd4-2
1978 mips-dec-ultrix4.[12]* | mips-dec-bsd* )
1979 machine=pmax opsys=bsd4-3
1981 mips-dec-ultrix* )
1982 machine=pmax opsys=ultrix4-3
1984 mips-dec-osf* )
1985 machine=pmax opsys=osf1
1987 mips-dec-mach_bsd4.3* )
1988 machine=pmax opsys=mach-bsd4-3
1991 ## Motorola Delta machines
1992 m68k-motorola-sysv* | m68000-motorola-sysv* )
1993 machine=delta opsys=usg5-3
1994 if test -z "`type gnucc | grep 'not found'`"
1995 then
1996 if test -s /etc/167config
1997 then CC="gnucc -m68040"
1998 else CC="gnucc -m68881"
2000 else
2001 if test -z "`type gcc | grep 'not found'`"
2002 then CC=gcc
2003 else CC=cc
2007 m88k-motorola-sysv4* )
2008 # jbotte@bnr.ca says that UNIX_System_V <hostName> 4.0 R40V4.3 m88k mc88110
2009 # needs POSIX_SIGNALS and therefore needs usg5-4-2.
2010 # I hope there are not other 4.0 versions for this machine
2011 # which really need usg5-4 instead.
2012 machine=delta88k opsys=usg5-4-2
2014 m88k-motorola-sysv* | m88k-motorola-m88kbcs* )
2015 machine=delta88k opsys=usg5-3
2018 ## Dual machines
2019 m68*-dual-sysv* )
2020 machine=dual opsys=usg5-2
2022 m68*-dual-uniplus* )
2023 machine=dual opsys=unipl5-2
2026 ## Elxsi 6400
2027 elxsi-elxsi-sysv* )
2028 machine=elxsi opsys=usg5-2
2031 ## Encore machines
2032 ns16k-encore-bsd* )
2033 machine=ns16000 opsys=umax
2036 ## The GEC 63 - apparently, this port isn't really finished yet.
2037 # I'm sure we finished off the last of the machines, though. -- fx
2039 ## Gould Power Node and NP1
2040 pn-gould-bsd4.2* )
2041 machine=gould opsys=bsd4-2
2043 pn-gould-bsd4.3* )
2044 machine=gould opsys=bsd4-3
2046 np1-gould-bsd* )
2047 machine=gould-np1 opsys=bsd4-3
2050 ## Harris Night Hawk machines running CX/UX (a 5000 looks just like a 4000
2051 ## as far as Emacs is concerned).
2052 m88k-harris-cxux* )
2053 # Build needs to be different on 7.0 and later releases
2054 case "`uname -r`" in
2055 [56].[0-9] ) machine=nh4000 opsys=cxux ;;
2056 [7].[0-9] ) machine=nh4000 opsys=cxux7 ;;
2057 esac
2058 NON_GNU_CPP="/lib/cpp"
2060 ## Harris ecx or gcx running CX/UX (Series 1200, Series 3000)
2061 m68k-harris-cxux* )
2062 machine=nh3000 opsys=cxux
2064 ## Harris power pc NightHawk running Power UNIX (Series 6000)
2065 powerpc-harris-powerunix )
2066 machine=nh6000 opsys=powerunix
2067 NON_GNU_CPP="cc -Xo -E -P"
2069 ## SR2001/SR2201 running HI-UX/MPP
2070 hppa1.1-hitachi-hiuxmpp* )
2071 machine=sr2k opsys=hiuxmpp
2073 hppa1.1-hitachi-hiuxwe2* )
2074 machine=sr2k opsys=hiuxwe2
2076 ## Honeywell XPS100
2077 xps*-honeywell-sysv* )
2078 machine=xps100 opsys=usg5-2
2081 ## HP 9000 series 200 or 300
2082 m68*-hp-bsd* )
2083 machine=hp9000s300 opsys=bsd4-3
2085 ## HP/UX 7, 8, 9, and 10 are supported on these machines.
2086 m68*-hp-hpux* )
2087 case "`uname -r`" in
2088 ## Someone's system reports A.B8.05 for this.
2089 ## I wonder what other possibilities there are.
2090 *.B8.* ) machine=hp9000s300 opsys=hpux8 ;;
2091 *.08.* ) machine=hp9000s300 opsys=hpux8 ;;
2092 *.09.* ) machine=hp9000s300 opsys=hpux9 ;;
2093 *.1[0-9].* ) machine=hp9000s300 opsys=hpux9shr ;;
2094 *) machine=hp9000s300 opsys=hpux ;;
2095 esac
2098 ## HP 9000 series 700 and 800, running HP/UX
2099 hppa*-hp-hpux7* )
2100 machine=hp800 opsys=hpux
2102 hppa*-hp-hpux8* )
2103 machine=hp800 opsys=hpux8
2105 hppa*-hp-hpux9shr* )
2106 machine=hp800 opsys=hpux9shr
2108 hppa*-hp-hpux9* )
2109 machine=hp800 opsys=hpux9
2111 hppa*-hp-hpux10.2* )
2112 machine=hp800 opsys=hpux10-20
2114 hppa*-hp-hpux10* )
2115 machine=hp800 opsys=hpux10
2117 hppa*-hp-hpux1[1-9]* )
2118 machine=hp800 opsys=hpux11
2119 CFLAGS="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
2122 hppa*-*-linux-gnu* )
2123 machine=hp800 opsys=gnu-linux
2126 ## HP 9000 series 700 and 800, running HP/UX
2127 hppa*-hp-hpux* )
2128 ## Cross-compilation? Nah!
2129 case "`uname -r`" in
2130 ## Someone's system reports A.B8.05 for this.
2131 ## I wonder what other possibilities there are.
2132 *.B8.* ) machine=hp800 opsys=hpux8 ;;
2133 *.08.* ) machine=hp800 opsys=hpux8 ;;
2134 *.09.* ) machine=hp800 opsys=hpux9 ;;
2135 *) machine=hp800 opsys=hpux10 ;;
2136 esac
2138 hppa*-*-nextstep* )
2139 machine=hp800 opsys=nextstep
2142 ## Orion machines
2143 orion-orion-bsd* )
2144 machine=orion opsys=bsd4-2
2146 clipper-orion-bsd* )
2147 machine=orion105 opsys=bsd4-2
2150 ## IBM machines
2151 i[3456]86-ibm-aix1.1* )
2152 machine=ibmps2-aix opsys=usg5-2-2
2154 i[3456]86-ibm-aix1.[23]* | i[3456]86-ibm-aix* )
2155 machine=ibmps2-aix opsys=usg5-3
2157 i370-ibm-aix*)
2158 machine=ibm370aix opsys=usg5-3
2160 s390-*-linux-gnu* )
2161 machine=ibms390 opsys=gnu-linux
2163 s390x-*-linux-gnu* )
2164 machine=ibms390x opsys=gnu-linux
2166 rs6000-ibm-aix3.1* | powerpc-ibm-aix3.1* )
2167 machine=ibmrs6000 opsys=aix3-1
2169 rs6000-ibm-aix3.2.5 | powerpc-ibm-aix3.2.5 )
2170 machine=ibmrs6000 opsys=aix3-2-5
2172 rs6000-ibm-aix4.1* | powerpc-ibm-aix4.1* )
2173 machine=ibmrs6000 opsys=aix4-1
2175 rs6000-ibm-aix4.2* | powerpc-ibm-aix4.2* )
2176 machine=ibmrs6000 opsys=aix4-2
2178 rs6000-ibm-aix5* | powerpc-ibm-aix5* )
2179 machine=ibmrs6000 opsys=aix4-2
2181 rs6000-ibm-aix4.0* | powerpc-ibm-aix4.0* )
2182 machine=ibmrs6000 opsys=aix4
2184 rs6000-ibm-aix4* | powerpc-ibm-aix4* )
2185 machine=ibmrs6000 opsys=aix4-1
2187 rs6000-ibm-aix* | powerpc-ibm-aix* )
2188 machine=ibmrs6000 opsys=aix3-2
2190 romp-ibm-bsd4.3* )
2191 machine=ibmrt opsys=bsd4-3
2193 romp-ibm-bsd4.2* )
2194 machine=ibmrt opsys=bsd4-2
2196 romp-ibm-aos4.3* )
2197 machine=ibmrt opsys=bsd4-3
2199 romp-ibm-aos4.2* )
2200 machine=ibmrt opsys=bsd4-2
2202 romp-ibm-aos* )
2203 machine=ibmrt opsys=bsd4-3
2205 romp-ibm-bsd* )
2206 machine=ibmrt opsys=bsd4-3
2208 romp-ibm-aix* )
2209 machine=ibmrt-aix opsys=usg5-2-2
2212 ## Integrated Solutions `Optimum V'
2213 m68*-isi-bsd4.2* )
2214 machine=isi-ov opsys=bsd4-2
2216 m68*-isi-bsd4.3* )
2217 machine=isi-ov opsys=bsd4-3
2220 ## Intel 386 machines where we do care about the manufacturer
2221 i[3456]86-intsys-sysv* )
2222 machine=is386 opsys=usg5-2-2
2225 ## Prime EXL
2226 i[3456]86-prime-sysv* )
2227 machine=i386 opsys=usg5-3
2230 ## Sequent Symmetry running Dynix
2231 i[3456]86-sequent-bsd* )
2232 machine=symmetry opsys=bsd4-3
2235 ## Sequent Symmetry running ptx 4, which is a modified SVR4.
2236 i[3456]86-sequent-ptx4* | i[3456]86-sequent-sysv4* )
2237 machine=sequent-ptx opsys=ptx4
2238 NON_GNU_CPP=/lib/cpp
2241 ## Sequent Symmetry running DYNIX/ptx
2242 ## Use the old cpp rather than the newer ANSI one.
2243 i[3456]86-sequent-ptx* )
2244 machine=sequent-ptx opsys=ptx
2245 NON_GNU_CPP="/lib/cpp"
2248 ## ncr machine running svr4.3.
2249 i[3456]86-ncr-sysv4.3 )
2250 machine=ncr386 opsys=usg5-4-3
2253 ## Unspecified sysv on an ncr machine defaults to svr4.2.
2254 ## (Plain usg5-4 doesn't turn on POSIX signals, which we need.)
2255 i[3456]86-ncr-sysv* )
2256 machine=ncr386 opsys=usg5-4-2
2259 ## Intel Paragon OSF/1
2260 i860-intel-osf1* )
2261 machine=paragon opsys=osf1 NON_GNU_CPP=/usr/mach/lib/cpp
2264 ## Intel 860
2265 i860-*-sysv4* )
2266 machine=i860 opsys=usg5-4
2267 NON_GNU_CC="/bin/cc" # Ie, not the one in /usr/ucb/cc.
2268 NON_GNU_CPP="/usr/ccs/lib/cpp" # cc -E tokenizes macro expansion.
2271 ## Macintosh PowerPC
2272 powerpc*-*-linux-gnu* )
2273 machine=macppc opsys=gnu-linux
2276 ## Masscomp machines
2277 m68*-masscomp-rtu* )
2278 machine=masscomp opsys=rtu
2281 ## Megatest machines
2282 m68*-megatest-bsd* )
2283 machine=mega68 opsys=bsd4-2
2286 ## Workstations sold by MIPS
2287 ## This is not necessarily all workstations using the MIPS processor -
2288 ## Irises are produced by SGI, and DECstations by DEC.
2290 ## etc/MACHINES lists mips.h and mips4.h as possible machine files,
2291 ## and usg5-2-2 and bsd4-3 as possible OS files. The only guidance
2292 ## it gives for choosing between the alternatives seems to be "Use
2293 ## -machine=mips4 for RISCOS version 4; use -opsystem=bsd4-3 with
2294 ## the BSD world." I'll assume that these are instructions for
2295 ## handling two odd situations, and that every other situation
2296 ## should use mips.h and usg5-2-2, they being listed first.
2297 mips-mips-usg* )
2298 machine=mips4
2299 ## Fall through to the general code at the bottom to decide on the OS.
2301 mips-mips-riscos4* )
2302 machine=mips4 opsys=bsd4-3
2303 NON_GNU_CC="cc -systype bsd43"
2304 NON_GNU_CPP="cc -systype bsd43 -E"
2306 mips-mips-riscos5* )
2307 machine=mips4 opsys=riscos5
2308 NON_GNU_CC="cc -systype bsd43"
2309 NON_GNU_CPP="cc -systype bsd43 -E"
2311 mips-mips-bsd* )
2312 machine=mips opsys=bsd4-3
2314 mips-mips-* )
2315 machine=mips opsys=usg5-2-2
2318 ## NeXT
2319 m68*-next-* | m68k-*-nextstep* )
2320 machine=m68k opsys=nextstep
2323 ## The complete machine from National Semiconductor
2324 ns32k-ns-genix* )
2325 machine=ns32000 opsys=usg5-2
2328 ## NCR machines
2329 m68*-ncr-sysv2* | m68*-ncr-sysvr2* )
2330 machine=tower32 opsys=usg5-2-2
2332 m68*-ncr-sysv3* | m68*-ncr-sysvr3* )
2333 machine=tower32v3 opsys=usg5-3
2336 ## NEC EWS4800
2337 mips-nec-sysv4*)
2338 machine=ews4800 opsys=ux4800
2341 ## Nixdorf Targon 31
2342 m68*-nixdorf-sysv* )
2343 machine=targon31 opsys=usg5-2-2
2346 ## Nu (TI or LMI)
2347 m68*-nu-sysv* )
2348 machine=nu opsys=usg5-2
2351 ## Plexus
2352 m68*-plexus-sysv* )
2353 machine=plexus opsys=usg5-2
2356 ## Pyramid machines
2357 ## I don't really have any idea what sort of processor the Pyramid has,
2358 ## so I'm assuming it is its own architecture.
2359 pyramid-pyramid-bsd* )
2360 machine=pyramid opsys=bsd4-2
2363 ## Sequent Balance
2364 ns32k-sequent-bsd4.2* )
2365 machine=sequent opsys=bsd4-2
2367 ns32k-sequent-bsd4.3* )
2368 machine=sequent opsys=bsd4-3
2371 ## Siemens Nixdorf
2372 mips-siemens-sysv* | mips-sni-sysv*)
2373 machine=mips-siemens opsys=usg5-4
2374 NON_GNU_CC=/usr/ccs/bin/cc
2375 NON_GNU_CPP=/usr/ccs/lib/cpp
2378 ## Silicon Graphics machines
2379 ## Iris 2500 and Iris 2500 Turbo (aka the Iris 3030)
2380 m68*-sgi-iris3.5* )
2381 machine=irist opsys=iris3-5
2383 m68*-sgi-iris3.6* | m68*-sgi-iris*)
2384 machine=irist opsys=iris3-6
2386 ## Iris 4D
2387 mips-sgi-irix3* )
2388 machine=iris4d opsys=irix3-3
2390 mips-sgi-irix4* )
2391 machine=iris4d opsys=irix4-0
2393 mips-sgi-irix6.5 )
2394 machine=iris4d opsys=irix6-5
2395 # Without defining _LANGUAGE_C, things get masked out in the headers
2396 # so that, for instance, grepping for `free' in stdlib.h fails and
2397 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
2398 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
2399 NON_GCC_TEST_OPTIONS="-D_LANGUAGE_C"
2401 mips-sgi-irix6* )
2402 machine=iris4d opsys=irix6-0
2403 # It's not clear whether -D_LANGUAGE_C is necessary as it is for 6.5,
2404 # but presumably it does no harm.
2405 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
2406 # -32 probably isn't necessary in later v.6s -- anyone know which?
2407 NON_GCC_TEST_OPTIONS=-32
2409 mips-sgi-irix5.[01]* )
2410 machine=iris4d opsys=irix5-0
2412 mips-sgi-irix5* | mips-sgi-irix* )
2413 machine=iris4d opsys=irix5-2
2416 ## SONY machines
2417 m68*-sony-bsd4.2* )
2418 machine=news opsys=bsd4-2
2420 m68*-sony-bsd4.3* )
2421 machine=news opsys=bsd4-3
2423 m68*-sony-newsos3* | m68*-sony-news3*)
2424 machine=news opsys=bsd4-3
2426 mips-sony-bsd* | mips-sony-newsos4* | mips-sony-news4*)
2427 machine=news-risc opsys=bsd4-3
2429 mips-sony-newsos6* )
2430 machine=news-r6 opsys=newsos6
2432 mips-sony-news* )
2433 machine=news-risc opsys=newsos5
2436 ## Stride
2437 m68*-stride-sysv* )
2438 machine=stride opsys=usg5-2
2441 ## Suns
2442 sparc-*-linux-gnu* | sparc64-*-linux-gnu* )
2443 machine=sparc opsys=gnu-linux
2446 *-auspex-sunos* | *-sun-sunos* | *-sun-bsd* | *-sun-solaris* \
2447 | i[3456]86-*-solaris2* | i[3456]86-*-sunos5* | powerpc*-*-solaris2* \
2448 | rs6000-*-solaris2*)
2449 case "${canonical}" in
2450 m68*-sunos1* ) machine=sun1 ;;
2451 m68*-sunos2* ) machine=sun2 ;;
2452 m68* ) machine=sun3 ;;
2453 i[3456]86-sun-sunos[34]* ) machine=sun386 ;;
2454 i[3456]86-*-* ) machine=intel386 ;;
2455 powerpcle* ) machine=powerpcle ;;
2456 powerpc* | rs6000* ) machine=ibmrs6000 ;;
2457 sparc* ) machine=sparc ;;
2458 * ) unported=yes ;;
2459 esac
2460 case "${canonical}" in
2461 ## The Sun386 didn't get past 4.0.
2462 i[3456]86-*-sunos4 ) opsys=sunos4-0 ;;
2463 *-sunos4.0* ) opsys=sunos4-0 ;;
2464 *-sunos4.1.[3-9]*noshare )
2465 ## This name is sunos413 instead of sunos4-1-3
2466 ## to avoid a file name conflict on MSDOS.
2467 opsys=sunos413
2468 NON_GNU_CPP=/usr/lib/cpp
2469 NON_GCC_TEST_OPTIONS=-Bstatic
2470 GCC_TEST_OPTIONS=-static
2472 *-sunos4.1.[3-9]* | *-sunos4shr*)
2473 opsys=sunos4shr
2474 NON_GNU_CPP=/usr/lib/cpp
2476 *-sunos4* | *-sunos )
2477 opsys=sunos4-1
2478 NON_GCC_TEST_OPTIONS=-Bstatic
2479 GCC_TEST_OPTIONS=-static
2481 *-sunos5.3* | *-solaris2.3* )
2482 opsys=sol2-3
2483 NON_GNU_CPP=/usr/ccs/lib/cpp
2485 *-sunos5.4* | *-solaris2.4* )
2486 opsys=sol2-4
2487 NON_GNU_CPP=/usr/ccs/lib/cpp
2488 RANLIB="ar -ts"
2490 *-sunos5.5* | *-solaris2.5* )
2491 opsys=sol2-5
2492 NON_GNU_CPP=/usr/ccs/lib/cpp
2493 RANLIB="ar -ts"
2495 *-sunos5.6* | *-solaris2.6* )
2496 opsys=sol2-6
2497 NON_GNU_CPP=/usr/ccs/lib/cpp
2498 RANLIB="ar -ts"
2500 *-sunos5* | *-solaris* )
2501 opsys=sol2-6
2502 NON_GNU_CPP=/usr/ccs/lib/cpp
2504 * ) opsys=bsd4-2 ;;
2505 esac
2506 ## Watch out for a compiler that we know will not work.
2507 case "${canonical}" in
2508 *-solaris* | *-sunos5* )
2509 if [ "x$CC" = x/usr/ucb/cc ]; then
2510 ## /usr/ucb/cc doesn't work;
2511 ## we should find some other compiler that does work.
2512 unset CC
2515 *) ;;
2516 esac
2518 sparc-*-nextstep* )
2519 machine=sparc opsys=nextstep
2522 ## Tadpole 68k
2523 m68*-tadpole-sysv* )
2524 machine=tad68k opsys=usg5-3
2527 ## Tahoe machines
2528 tahoe-tahoe-bsd4.2* )
2529 machine=tahoe opsys=bsd4-2
2531 tahoe-tahoe-bsd4.3* )
2532 machine=tahoe opsys=bsd4-3
2535 ## Tandem Integrity S2
2536 mips-tandem-sysv* )
2537 machine=tandem-s2 opsys=usg5-3
2540 ## Tektronix XD88
2541 m88k-tektronix-sysv3* )
2542 machine=tekxd88 opsys=usg5-3
2545 ## Tektronix 16000 box (6130?)
2546 ns16k-tektronix-bsd* )
2547 machine=ns16000 opsys=bsd4-2
2549 ## Tektronix 4300
2550 ## src/m/tek4300.h hints that this is a m68k machine.
2551 m68*-tektronix-bsd* )
2552 machine=tek4300 opsys=bsd4-3
2555 ## Titan P2 or P3
2556 ## We seem to have lost the machine-description file titan.h!
2557 titan-titan-sysv* )
2558 machine=titan opsys=usg5-3
2561 ## Ustation E30 (SS5E)
2562 m68*-unisys-uniplus* )
2563 machine=ustation opsystem=unipl5-2
2566 ## Vaxen.
2567 vax-dec-* )
2568 machine=vax
2569 case "${canonical}" in
2570 *-bsd4.1* ) opsys=bsd4-1 ;;
2571 *-bsd4.2* | *-ultrix[0-3].* | *-ultrix4.0* ) opsys=bsd4-2 ;;
2572 *-bsd4.3* | *-ultrix* ) opsys=bsd4-3 ;;
2573 *-sysv[01]* | *-sysvr[01]* ) opsys=usg5-0 ;;
2574 *-sysv2* | *-sysvr2* ) opsys=usg5-2 ;;
2575 *-vms* ) opsys=vms ;;
2576 * ) unported=yes
2577 esac
2580 ## Whitechapel MG1
2581 ns16k-whitechapel-* )
2582 machine=mg1
2583 ## We don't know what sort of OS runs on these; we'll let the
2584 ## operating system guessing code below try.
2587 ## Wicat
2588 m68*-wicat-sysv* )
2589 machine=wicat opsys=usg5-2
2592 ## IA-64
2593 ia64*-*-linux* )
2594 machine=ia64 opsys=gnu-linux
2597 ## Intel 386 machines where we don't care about the manufacturer
2598 i[3456]86-*-* )
2599 machine=intel386
2600 case "${canonical}" in
2601 *-cygwin ) opsys=cygwin ;;
2602 *-darwin* ) opsys=darwin
2603 CPP="${CC-cc} -E -no-cpp-precomp"
2605 *-isc1.* | *-isc2.[01]* ) opsys=386-ix ;;
2606 *-isc2.2* ) opsys=isc2-2 ;;
2607 *-isc4.0* ) opsys=isc4-0 ;;
2608 *-isc4.* ) opsys=isc4-1
2609 GCC_TEST_OPTIONS=-posix
2610 NON_GCC_TEST_OPTIONS=-Xp
2612 *-isc* ) opsys=isc3-0 ;;
2613 *-esix5* ) opsys=esix5r4; NON_GNU_CPP=/usr/lib/cpp ;;
2614 *-esix* ) opsys=esix ;;
2615 *-xenix* ) opsys=xenix ;;
2616 *-linux-gnu* ) opsys=gnu-linux ;;
2617 *-sco3.2v4* ) opsys=sco4 ; NON_GNU_CPP=/lib/cpp ;;
2618 *-sco3.2v5* ) opsys=sco5
2619 NON_GNU_CPP=/lib/cpp
2620 # Prevent -belf from being passed to $CPP.
2621 # /lib/cpp does not accept it.
2622 OVERRIDE_CPPFLAGS=" "
2624 *-sysv4.2uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
2625 *-sysv5uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
2626 *-sysv5OpenUNIX* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
2627 *-386bsd* ) opsys=386bsd ;;
2628 *-nextstep* ) opsys=nextstep ;;
2629 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
2630 esac
2633 ## m68k Linux-based GNU system
2634 m68k-*-linux-gnu* )
2635 machine=m68k opsys=gnu-linux
2638 ## Mips Linux-based GNU system
2639 mips-*-linux-gnu* | mipsel-*-linux-gnu* )
2640 machine=mips opsys=gnu-linux
2643 ## UXP/DS
2644 sparc-fujitsu-sysv4* )
2645 machine=sparc opsys=uxpds
2646 NON_GNU_CPP=/usr/ccs/lib/cpp
2647 RANLIB="ar -ts"
2650 ## UXP/V
2651 f301-fujitsu-uxpv4.1)
2652 machine=f301 opsys=uxpv
2655 ## Darwin / Mac OS X
2656 powerpc-apple-darwin* )
2657 machine=powermac opsys=darwin
2658 # Define CPP as follows to make autoconf work correctly.
2659 CPP="${CC-cc} -E -no-cpp-precomp"
2660 # Use fink packages if available.
2661 if test -d /sw/include && test -d /sw/lib; then
2662 GCC_TEST_OPTIONS="-I/sw/include -L/sw/lib"
2663 CPP="${CPP} ${GCC_TEST_OPTIONS}"
2664 NON_GCC_TEST_OPTIONS=${GCC_TEST_OPTIONS}
2668 ## AMD x86-64 Linux-based GNU system
2669 x86_64-*-linux-gnu* )
2670 machine=amdx86-64 opsys=gnu-linux
2674 unported=yes
2676 esac
2678 ### If the code above didn't choose an operating system, just choose
2679 ### an operating system based on the configuration name. You really
2680 ### only want to use this when you have no idea what the right
2681 ### operating system is; if you know what operating systems a machine
2682 ### runs, it's cleaner to make it explicit in the case statement
2683 ### above.
2684 if test x"${opsys}" = x; then
2685 case "${canonical}" in
2686 *-gnu* ) opsys=gnu ;;
2687 *-bsd4.[01] ) opsys=bsd4-1 ;;
2688 *-bsd4.2 ) opsys=bsd4-2 ;;
2689 *-bsd4.3 ) opsys=bsd4-3 ;;
2690 *-sysv0 | *-sysvr0 ) opsys=usg5-0 ;;
2691 *-sysv2 | *-sysvr2 ) opsys=usg5-2 ;;
2692 *-sysv2.2 | *-sysvr2.2 ) opsys=usg5-2-2 ;;
2693 *-sysv3* | *-sysvr3* ) opsys=usg5-3 ;;
2694 *-sysv4.2uw* ) opsys=unixware ;;
2695 *-sysv5uw* ) opsys=unixware ;;
2696 *-sysv5OpenUNIX* ) opsys=unixware ;;
2697 *-sysv4.1* | *-sysvr4.1* )
2698 NON_GNU_CPP=/usr/lib/cpp
2699 opsys=usg5-4 ;;
2700 *-sysv4.[2-9]* | *-sysvr4.[2-9]* )
2701 if [ x$NON_GNU_CPP = x ]; then
2702 if [ -f /usr/ccs/lib/cpp ]; then
2703 NON_GNU_CPP=/usr/ccs/lib/cpp
2704 else
2705 NON_GNU_CPP=/lib/cpp
2708 opsys=usg5-4-2 ;;
2709 *-sysv4* | *-sysvr4* ) opsys=usg5-4 ;;
2711 unported=yes
2713 esac
2718 if test $unported = yes; then
2719 { { echo "$as_me:$LINENO: error: Emacs hasn't been ported to \`${canonical}' systems.
2720 Check \`etc/MACHINES' for recognized configuration names." >&5
2721 echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems.
2722 Check \`etc/MACHINES' for recognized configuration names." >&2;}
2723 { (exit 1); exit 1; }; }
2726 machfile="m/${machine}.h"
2727 opsysfile="s/${opsys}.h"
2730 #### Choose a compiler.
2731 test -n "$CC" && cc_specified=yes
2733 # Save the value of CFLAGS that the user specified.
2734 SPECIFIED_CFLAGS="$CFLAGS"
2736 case ${with_gcc} in
2737 "yes" ) CC="gcc" GCC=yes ;;
2738 "no" ) : ${CC=cc} ;;
2740 esac
2741 ac_ext=c
2742 ac_cpp='$CPP $CPPFLAGS'
2743 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2744 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2745 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2746 if test -n "$ac_tool_prefix"; then
2747 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2748 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2749 echo "$as_me:$LINENO: checking for $ac_word" >&5
2750 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2751 if test "${ac_cv_prog_CC+set}" = set; then
2752 echo $ECHO_N "(cached) $ECHO_C" >&6
2753 else
2754 if test -n "$CC"; then
2755 ac_cv_prog_CC="$CC" # Let the user override the test.
2756 else
2757 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2758 for as_dir in $PATH
2760 IFS=$as_save_IFS
2761 test -z "$as_dir" && as_dir=.
2762 for ac_exec_ext in '' $ac_executable_extensions; do
2763 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2764 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2765 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2766 break 2
2768 done
2769 done
2773 CC=$ac_cv_prog_CC
2774 if test -n "$CC"; then
2775 echo "$as_me:$LINENO: result: $CC" >&5
2776 echo "${ECHO_T}$CC" >&6
2777 else
2778 echo "$as_me:$LINENO: result: no" >&5
2779 echo "${ECHO_T}no" >&6
2783 if test -z "$ac_cv_prog_CC"; then
2784 ac_ct_CC=$CC
2785 # Extract the first word of "gcc", so it can be a program name with args.
2786 set dummy gcc; ac_word=$2
2787 echo "$as_me:$LINENO: checking for $ac_word" >&5
2788 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2789 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2790 echo $ECHO_N "(cached) $ECHO_C" >&6
2791 else
2792 if test -n "$ac_ct_CC"; then
2793 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2794 else
2795 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2796 for as_dir in $PATH
2798 IFS=$as_save_IFS
2799 test -z "$as_dir" && as_dir=.
2800 for ac_exec_ext in '' $ac_executable_extensions; do
2801 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2802 ac_cv_prog_ac_ct_CC="gcc"
2803 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2804 break 2
2806 done
2807 done
2811 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2812 if test -n "$ac_ct_CC"; then
2813 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2814 echo "${ECHO_T}$ac_ct_CC" >&6
2815 else
2816 echo "$as_me:$LINENO: result: no" >&5
2817 echo "${ECHO_T}no" >&6
2820 CC=$ac_ct_CC
2821 else
2822 CC="$ac_cv_prog_CC"
2825 if test -z "$CC"; then
2826 if test -n "$ac_tool_prefix"; then
2827 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2828 set dummy ${ac_tool_prefix}cc; ac_word=$2
2829 echo "$as_me:$LINENO: checking for $ac_word" >&5
2830 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2831 if test "${ac_cv_prog_CC+set}" = set; then
2832 echo $ECHO_N "(cached) $ECHO_C" >&6
2833 else
2834 if test -n "$CC"; then
2835 ac_cv_prog_CC="$CC" # Let the user override the test.
2836 else
2837 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2838 for as_dir in $PATH
2840 IFS=$as_save_IFS
2841 test -z "$as_dir" && as_dir=.
2842 for ac_exec_ext in '' $ac_executable_extensions; do
2843 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2844 ac_cv_prog_CC="${ac_tool_prefix}cc"
2845 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2846 break 2
2848 done
2849 done
2853 CC=$ac_cv_prog_CC
2854 if test -n "$CC"; then
2855 echo "$as_me:$LINENO: result: $CC" >&5
2856 echo "${ECHO_T}$CC" >&6
2857 else
2858 echo "$as_me:$LINENO: result: no" >&5
2859 echo "${ECHO_T}no" >&6
2863 if test -z "$ac_cv_prog_CC"; then
2864 ac_ct_CC=$CC
2865 # Extract the first word of "cc", so it can be a program name with args.
2866 set dummy cc; ac_word=$2
2867 echo "$as_me:$LINENO: checking for $ac_word" >&5
2868 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2869 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2870 echo $ECHO_N "(cached) $ECHO_C" >&6
2871 else
2872 if test -n "$ac_ct_CC"; then
2873 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2874 else
2875 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2876 for as_dir in $PATH
2878 IFS=$as_save_IFS
2879 test -z "$as_dir" && as_dir=.
2880 for ac_exec_ext in '' $ac_executable_extensions; do
2881 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2882 ac_cv_prog_ac_ct_CC="cc"
2883 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2884 break 2
2886 done
2887 done
2891 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2892 if test -n "$ac_ct_CC"; then
2893 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2894 echo "${ECHO_T}$ac_ct_CC" >&6
2895 else
2896 echo "$as_me:$LINENO: result: no" >&5
2897 echo "${ECHO_T}no" >&6
2900 CC=$ac_ct_CC
2901 else
2902 CC="$ac_cv_prog_CC"
2906 if test -z "$CC"; then
2907 # Extract the first word of "cc", so it can be a program name with args.
2908 set dummy cc; ac_word=$2
2909 echo "$as_me:$LINENO: checking for $ac_word" >&5
2910 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2911 if test "${ac_cv_prog_CC+set}" = set; then
2912 echo $ECHO_N "(cached) $ECHO_C" >&6
2913 else
2914 if test -n "$CC"; then
2915 ac_cv_prog_CC="$CC" # Let the user override the test.
2916 else
2917 ac_prog_rejected=no
2918 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2919 for as_dir in $PATH
2921 IFS=$as_save_IFS
2922 test -z "$as_dir" && as_dir=.
2923 for ac_exec_ext in '' $ac_executable_extensions; do
2924 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2925 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2926 ac_prog_rejected=yes
2927 continue
2929 ac_cv_prog_CC="cc"
2930 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2931 break 2
2933 done
2934 done
2936 if test $ac_prog_rejected = yes; then
2937 # We found a bogon in the path, so make sure we never use it.
2938 set dummy $ac_cv_prog_CC
2939 shift
2940 if test $# != 0; then
2941 # We chose a different compiler from the bogus one.
2942 # However, it has the same basename, so the bogon will be chosen
2943 # first if we set CC to just the basename; use the full file name.
2944 shift
2945 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2950 CC=$ac_cv_prog_CC
2951 if test -n "$CC"; then
2952 echo "$as_me:$LINENO: result: $CC" >&5
2953 echo "${ECHO_T}$CC" >&6
2954 else
2955 echo "$as_me:$LINENO: result: no" >&5
2956 echo "${ECHO_T}no" >&6
2960 if test -z "$CC"; then
2961 if test -n "$ac_tool_prefix"; then
2962 for ac_prog in cl
2964 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2965 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2966 echo "$as_me:$LINENO: checking for $ac_word" >&5
2967 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2968 if test "${ac_cv_prog_CC+set}" = set; then
2969 echo $ECHO_N "(cached) $ECHO_C" >&6
2970 else
2971 if test -n "$CC"; then
2972 ac_cv_prog_CC="$CC" # Let the user override the test.
2973 else
2974 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2975 for as_dir in $PATH
2977 IFS=$as_save_IFS
2978 test -z "$as_dir" && as_dir=.
2979 for ac_exec_ext in '' $ac_executable_extensions; do
2980 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2981 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2982 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2983 break 2
2985 done
2986 done
2990 CC=$ac_cv_prog_CC
2991 if test -n "$CC"; then
2992 echo "$as_me:$LINENO: result: $CC" >&5
2993 echo "${ECHO_T}$CC" >&6
2994 else
2995 echo "$as_me:$LINENO: result: no" >&5
2996 echo "${ECHO_T}no" >&6
2999 test -n "$CC" && break
3000 done
3002 if test -z "$CC"; then
3003 ac_ct_CC=$CC
3004 for ac_prog in cl
3006 # Extract the first word of "$ac_prog", so it can be a program name with args.
3007 set dummy $ac_prog; ac_word=$2
3008 echo "$as_me:$LINENO: checking for $ac_word" >&5
3009 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3010 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3011 echo $ECHO_N "(cached) $ECHO_C" >&6
3012 else
3013 if test -n "$ac_ct_CC"; then
3014 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3015 else
3016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3017 for as_dir in $PATH
3019 IFS=$as_save_IFS
3020 test -z "$as_dir" && as_dir=.
3021 for ac_exec_ext in '' $ac_executable_extensions; do
3022 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3023 ac_cv_prog_ac_ct_CC="$ac_prog"
3024 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3025 break 2
3027 done
3028 done
3032 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3033 if test -n "$ac_ct_CC"; then
3034 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3035 echo "${ECHO_T}$ac_ct_CC" >&6
3036 else
3037 echo "$as_me:$LINENO: result: no" >&5
3038 echo "${ECHO_T}no" >&6
3041 test -n "$ac_ct_CC" && break
3042 done
3044 CC=$ac_ct_CC
3050 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3051 See \`config.log' for more details." >&5
3052 echo "$as_me: error: no acceptable C compiler found in \$PATH
3053 See \`config.log' for more details." >&2;}
3054 { (exit 1); exit 1; }; }
3056 # Provide some information about the compiler.
3057 echo "$as_me:$LINENO:" \
3058 "checking for C compiler version" >&5
3059 ac_compiler=`set X $ac_compile; echo $2`
3060 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3061 (eval $ac_compiler --version </dev/null >&5) 2>&5
3062 ac_status=$?
3063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3064 (exit $ac_status); }
3065 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3066 (eval $ac_compiler -v </dev/null >&5) 2>&5
3067 ac_status=$?
3068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3069 (exit $ac_status); }
3070 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3071 (eval $ac_compiler -V </dev/null >&5) 2>&5
3072 ac_status=$?
3073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3074 (exit $ac_status); }
3076 cat >conftest.$ac_ext <<_ACEOF
3077 /* confdefs.h. */
3078 _ACEOF
3079 cat confdefs.h >>conftest.$ac_ext
3080 cat >>conftest.$ac_ext <<_ACEOF
3081 /* end confdefs.h. */
3084 main ()
3088 return 0;
3090 _ACEOF
3091 ac_clean_files_save=$ac_clean_files
3092 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3093 # Try to create an executable without -o first, disregard a.out.
3094 # It will help us diagnose broken compilers, and finding out an intuition
3095 # of exeext.
3096 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3097 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
3098 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3099 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
3100 (eval $ac_link_default) 2>&5
3101 ac_status=$?
3102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3103 (exit $ac_status); }; then
3104 # Find the output, starting from the most likely. This scheme is
3105 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
3106 # resort.
3108 # Be careful to initialize this variable, since it used to be cached.
3109 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
3110 ac_cv_exeext=
3111 # b.out is created by i960 compilers.
3112 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
3114 test -f "$ac_file" || continue
3115 case $ac_file in
3116 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
3118 conftest.$ac_ext )
3119 # This is the source file.
3121 [ab].out )
3122 # We found the default executable, but exeext='' is most
3123 # certainly right.
3124 break;;
3125 *.* )
3126 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3127 # FIXME: I believe we export ac_cv_exeext for Libtool,
3128 # but it would be cool to find out if it's true. Does anybody
3129 # maintain Libtool? --akim.
3130 export ac_cv_exeext
3131 break;;
3133 break;;
3134 esac
3135 done
3136 else
3137 echo "$as_me: failed program was:" >&5
3138 sed 's/^/| /' conftest.$ac_ext >&5
3140 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3141 See \`config.log' for more details." >&5
3142 echo "$as_me: error: C compiler cannot create executables
3143 See \`config.log' for more details." >&2;}
3144 { (exit 77); exit 77; }; }
3147 ac_exeext=$ac_cv_exeext
3148 echo "$as_me:$LINENO: result: $ac_file" >&5
3149 echo "${ECHO_T}$ac_file" >&6
3151 # Check the compiler produces executables we can run. If not, either
3152 # the compiler is broken, or we cross compile.
3153 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3154 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
3155 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3156 # If not cross compiling, check that we can run a simple program.
3157 if test "$cross_compiling" != yes; then
3158 if { ac_try='./$ac_file'
3159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3160 (eval $ac_try) 2>&5
3161 ac_status=$?
3162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3163 (exit $ac_status); }; }; then
3164 cross_compiling=no
3165 else
3166 if test "$cross_compiling" = maybe; then
3167 cross_compiling=yes
3168 else
3169 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3170 If you meant to cross compile, use \`--host'.
3171 See \`config.log' for more details." >&5
3172 echo "$as_me: error: cannot run C compiled programs.
3173 If you meant to cross compile, use \`--host'.
3174 See \`config.log' for more details." >&2;}
3175 { (exit 1); exit 1; }; }
3179 echo "$as_me:$LINENO: result: yes" >&5
3180 echo "${ECHO_T}yes" >&6
3182 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3183 ac_clean_files=$ac_clean_files_save
3184 # Check the compiler produces executables we can run. If not, either
3185 # the compiler is broken, or we cross compile.
3186 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3187 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
3188 echo "$as_me:$LINENO: result: $cross_compiling" >&5
3189 echo "${ECHO_T}$cross_compiling" >&6
3191 echo "$as_me:$LINENO: checking for suffix of executables" >&5
3192 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
3193 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3194 (eval $ac_link) 2>&5
3195 ac_status=$?
3196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3197 (exit $ac_status); }; then
3198 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3199 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3200 # work properly (i.e., refer to `conftest.exe'), while it won't with
3201 # `rm'.
3202 for ac_file in conftest.exe conftest conftest.*; do
3203 test -f "$ac_file" || continue
3204 case $ac_file in
3205 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
3206 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3207 export ac_cv_exeext
3208 break;;
3209 * ) break;;
3210 esac
3211 done
3212 else
3213 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3214 See \`config.log' for more details." >&5
3215 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3216 See \`config.log' for more details." >&2;}
3217 { (exit 1); exit 1; }; }
3220 rm -f conftest$ac_cv_exeext
3221 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3222 echo "${ECHO_T}$ac_cv_exeext" >&6
3224 rm -f conftest.$ac_ext
3225 EXEEXT=$ac_cv_exeext
3226 ac_exeext=$EXEEXT
3227 echo "$as_me:$LINENO: checking for suffix of object files" >&5
3228 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
3229 if test "${ac_cv_objext+set}" = set; then
3230 echo $ECHO_N "(cached) $ECHO_C" >&6
3231 else
3232 cat >conftest.$ac_ext <<_ACEOF
3233 /* confdefs.h. */
3234 _ACEOF
3235 cat confdefs.h >>conftest.$ac_ext
3236 cat >>conftest.$ac_ext <<_ACEOF
3237 /* end confdefs.h. */
3240 main ()
3244 return 0;
3246 _ACEOF
3247 rm -f conftest.o conftest.obj
3248 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3249 (eval $ac_compile) 2>&5
3250 ac_status=$?
3251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3252 (exit $ac_status); }; then
3253 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
3254 case $ac_file in
3255 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
3256 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3257 break;;
3258 esac
3259 done
3260 else
3261 echo "$as_me: failed program was:" >&5
3262 sed 's/^/| /' conftest.$ac_ext >&5
3264 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3265 See \`config.log' for more details." >&5
3266 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3267 See \`config.log' for more details." >&2;}
3268 { (exit 1); exit 1; }; }
3271 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3273 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3274 echo "${ECHO_T}$ac_cv_objext" >&6
3275 OBJEXT=$ac_cv_objext
3276 ac_objext=$OBJEXT
3277 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3278 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3279 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3280 echo $ECHO_N "(cached) $ECHO_C" >&6
3281 else
3282 cat >conftest.$ac_ext <<_ACEOF
3283 /* confdefs.h. */
3284 _ACEOF
3285 cat confdefs.h >>conftest.$ac_ext
3286 cat >>conftest.$ac_ext <<_ACEOF
3287 /* end confdefs.h. */
3290 main ()
3292 #ifndef __GNUC__
3293 choke me
3294 #endif
3297 return 0;
3299 _ACEOF
3300 rm -f conftest.$ac_objext
3301 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3302 (eval $ac_compile) 2>conftest.er1
3303 ac_status=$?
3304 grep -v '^ *+' conftest.er1 >conftest.err
3305 rm -f conftest.er1
3306 cat conftest.err >&5
3307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3308 (exit $ac_status); } &&
3309 { ac_try='test -z "$ac_c_werror_flag"
3310 || test ! -s conftest.err'
3311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3312 (eval $ac_try) 2>&5
3313 ac_status=$?
3314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3315 (exit $ac_status); }; } &&
3316 { ac_try='test -s conftest.$ac_objext'
3317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3318 (eval $ac_try) 2>&5
3319 ac_status=$?
3320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3321 (exit $ac_status); }; }; then
3322 ac_compiler_gnu=yes
3323 else
3324 echo "$as_me: failed program was:" >&5
3325 sed 's/^/| /' conftest.$ac_ext >&5
3327 ac_compiler_gnu=no
3329 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3330 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3333 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3334 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3335 GCC=`test $ac_compiler_gnu = yes && echo yes`
3336 ac_test_CFLAGS=${CFLAGS+set}
3337 ac_save_CFLAGS=$CFLAGS
3338 CFLAGS="-g"
3339 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3340 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3341 if test "${ac_cv_prog_cc_g+set}" = set; then
3342 echo $ECHO_N "(cached) $ECHO_C" >&6
3343 else
3344 cat >conftest.$ac_ext <<_ACEOF
3345 /* confdefs.h. */
3346 _ACEOF
3347 cat confdefs.h >>conftest.$ac_ext
3348 cat >>conftest.$ac_ext <<_ACEOF
3349 /* end confdefs.h. */
3352 main ()
3356 return 0;
3358 _ACEOF
3359 rm -f conftest.$ac_objext
3360 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3361 (eval $ac_compile) 2>conftest.er1
3362 ac_status=$?
3363 grep -v '^ *+' conftest.er1 >conftest.err
3364 rm -f conftest.er1
3365 cat conftest.err >&5
3366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3367 (exit $ac_status); } &&
3368 { ac_try='test -z "$ac_c_werror_flag"
3369 || test ! -s conftest.err'
3370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3371 (eval $ac_try) 2>&5
3372 ac_status=$?
3373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3374 (exit $ac_status); }; } &&
3375 { ac_try='test -s conftest.$ac_objext'
3376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3377 (eval $ac_try) 2>&5
3378 ac_status=$?
3379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3380 (exit $ac_status); }; }; then
3381 ac_cv_prog_cc_g=yes
3382 else
3383 echo "$as_me: failed program was:" >&5
3384 sed 's/^/| /' conftest.$ac_ext >&5
3386 ac_cv_prog_cc_g=no
3388 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3390 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3391 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3392 if test "$ac_test_CFLAGS" = set; then
3393 CFLAGS=$ac_save_CFLAGS
3394 elif test $ac_cv_prog_cc_g = yes; then
3395 if test "$GCC" = yes; then
3396 CFLAGS="-g -O2"
3397 else
3398 CFLAGS="-g"
3400 else
3401 if test "$GCC" = yes; then
3402 CFLAGS="-O2"
3403 else
3404 CFLAGS=
3407 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3408 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3409 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3410 echo $ECHO_N "(cached) $ECHO_C" >&6
3411 else
3412 ac_cv_prog_cc_stdc=no
3413 ac_save_CC=$CC
3414 cat >conftest.$ac_ext <<_ACEOF
3415 /* confdefs.h. */
3416 _ACEOF
3417 cat confdefs.h >>conftest.$ac_ext
3418 cat >>conftest.$ac_ext <<_ACEOF
3419 /* end confdefs.h. */
3420 #include <stdarg.h>
3421 #include <stdio.h>
3422 #include <sys/types.h>
3423 #include <sys/stat.h>
3424 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3425 struct buf { int x; };
3426 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3427 static char *e (p, i)
3428 char **p;
3429 int i;
3431 return p[i];
3433 static char *f (char * (*g) (char **, int), char **p, ...)
3435 char *s;
3436 va_list v;
3437 va_start (v,p);
3438 s = g (p, va_arg (v,int));
3439 va_end (v);
3440 return s;
3443 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3444 function prototypes and stuff, but not '\xHH' hex character constants.
3445 These don't provoke an error unfortunately, instead are silently treated
3446 as 'x'. The following induces an error, until -std1 is added to get
3447 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3448 array size at least. It's necessary to write '\x00'==0 to get something
3449 that's true only with -std1. */
3450 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3452 int test (int i, double x);
3453 struct s1 {int (*f) (int a);};
3454 struct s2 {int (*f) (double a);};
3455 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3456 int argc;
3457 char **argv;
3459 main ()
3461 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3463 return 0;
3465 _ACEOF
3466 # Don't try gcc -ansi; that turns off useful extensions and
3467 # breaks some systems' header files.
3468 # AIX -qlanglvl=ansi
3469 # Ultrix and OSF/1 -std1
3470 # HP-UX 10.20 and later -Ae
3471 # HP-UX older versions -Aa -D_HPUX_SOURCE
3472 # SVR4 -Xc -D__EXTENSIONS__
3473 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3475 CC="$ac_save_CC $ac_arg"
3476 rm -f conftest.$ac_objext
3477 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3478 (eval $ac_compile) 2>conftest.er1
3479 ac_status=$?
3480 grep -v '^ *+' conftest.er1 >conftest.err
3481 rm -f conftest.er1
3482 cat conftest.err >&5
3483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3484 (exit $ac_status); } &&
3485 { ac_try='test -z "$ac_c_werror_flag"
3486 || test ! -s conftest.err'
3487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3488 (eval $ac_try) 2>&5
3489 ac_status=$?
3490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3491 (exit $ac_status); }; } &&
3492 { ac_try='test -s conftest.$ac_objext'
3493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3494 (eval $ac_try) 2>&5
3495 ac_status=$?
3496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3497 (exit $ac_status); }; }; then
3498 ac_cv_prog_cc_stdc=$ac_arg
3499 break
3500 else
3501 echo "$as_me: failed program was:" >&5
3502 sed 's/^/| /' conftest.$ac_ext >&5
3505 rm -f conftest.err conftest.$ac_objext
3506 done
3507 rm -f conftest.$ac_ext conftest.$ac_objext
3508 CC=$ac_save_CC
3512 case "x$ac_cv_prog_cc_stdc" in
3513 x|xno)
3514 echo "$as_me:$LINENO: result: none needed" >&5
3515 echo "${ECHO_T}none needed" >&6 ;;
3517 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3518 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3519 CC="$CC $ac_cv_prog_cc_stdc" ;;
3520 esac
3522 # Some people use a C++ compiler to compile C. Since we use `exit',
3523 # in C++ we need to declare it. In case someone uses the same compiler
3524 # for both compiling C and C++ we need to have the C++ compiler decide
3525 # the declaration of exit, since it's the most demanding environment.
3526 cat >conftest.$ac_ext <<_ACEOF
3527 #ifndef __cplusplus
3528 choke me
3529 #endif
3530 _ACEOF
3531 rm -f conftest.$ac_objext
3532 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3533 (eval $ac_compile) 2>conftest.er1
3534 ac_status=$?
3535 grep -v '^ *+' conftest.er1 >conftest.err
3536 rm -f conftest.er1
3537 cat conftest.err >&5
3538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3539 (exit $ac_status); } &&
3540 { ac_try='test -z "$ac_c_werror_flag"
3541 || test ! -s conftest.err'
3542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3543 (eval $ac_try) 2>&5
3544 ac_status=$?
3545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3546 (exit $ac_status); }; } &&
3547 { ac_try='test -s conftest.$ac_objext'
3548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3549 (eval $ac_try) 2>&5
3550 ac_status=$?
3551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3552 (exit $ac_status); }; }; then
3553 for ac_declaration in \
3554 '' \
3555 'extern "C" void std::exit (int) throw (); using std::exit;' \
3556 'extern "C" void std::exit (int); using std::exit;' \
3557 'extern "C" void exit (int) throw ();' \
3558 'extern "C" void exit (int);' \
3559 'void exit (int);'
3561 cat >conftest.$ac_ext <<_ACEOF
3562 /* confdefs.h. */
3563 _ACEOF
3564 cat confdefs.h >>conftest.$ac_ext
3565 cat >>conftest.$ac_ext <<_ACEOF
3566 /* end confdefs.h. */
3567 $ac_declaration
3568 #include <stdlib.h>
3570 main ()
3572 exit (42);
3574 return 0;
3576 _ACEOF
3577 rm -f conftest.$ac_objext
3578 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3579 (eval $ac_compile) 2>conftest.er1
3580 ac_status=$?
3581 grep -v '^ *+' conftest.er1 >conftest.err
3582 rm -f conftest.er1
3583 cat conftest.err >&5
3584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3585 (exit $ac_status); } &&
3586 { ac_try='test -z "$ac_c_werror_flag"
3587 || test ! -s conftest.err'
3588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3589 (eval $ac_try) 2>&5
3590 ac_status=$?
3591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3592 (exit $ac_status); }; } &&
3593 { ac_try='test -s conftest.$ac_objext'
3594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3595 (eval $ac_try) 2>&5
3596 ac_status=$?
3597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3598 (exit $ac_status); }; }; then
3600 else
3601 echo "$as_me: failed program was:" >&5
3602 sed 's/^/| /' conftest.$ac_ext >&5
3604 continue
3606 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3607 cat >conftest.$ac_ext <<_ACEOF
3608 /* confdefs.h. */
3609 _ACEOF
3610 cat confdefs.h >>conftest.$ac_ext
3611 cat >>conftest.$ac_ext <<_ACEOF
3612 /* end confdefs.h. */
3613 $ac_declaration
3615 main ()
3617 exit (42);
3619 return 0;
3621 _ACEOF
3622 rm -f conftest.$ac_objext
3623 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3624 (eval $ac_compile) 2>conftest.er1
3625 ac_status=$?
3626 grep -v '^ *+' conftest.er1 >conftest.err
3627 rm -f conftest.er1
3628 cat conftest.err >&5
3629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3630 (exit $ac_status); } &&
3631 { ac_try='test -z "$ac_c_werror_flag"
3632 || test ! -s conftest.err'
3633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3634 (eval $ac_try) 2>&5
3635 ac_status=$?
3636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3637 (exit $ac_status); }; } &&
3638 { ac_try='test -s conftest.$ac_objext'
3639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3640 (eval $ac_try) 2>&5
3641 ac_status=$?
3642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3643 (exit $ac_status); }; }; then
3644 break
3645 else
3646 echo "$as_me: failed program was:" >&5
3647 sed 's/^/| /' conftest.$ac_ext >&5
3650 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3651 done
3652 rm -f conftest*
3653 if test -n "$ac_declaration"; then
3654 echo '#ifdef __cplusplus' >>confdefs.h
3655 echo $ac_declaration >>confdefs.h
3656 echo '#endif' >>confdefs.h
3659 else
3660 echo "$as_me: failed program was:" >&5
3661 sed 's/^/| /' conftest.$ac_ext >&5
3664 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3665 ac_ext=c
3666 ac_cpp='$CPP $CPPFLAGS'
3667 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3668 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3669 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3672 # On Suns, sometimes $CPP names a directory.
3673 if test -n "$CPP" && test -d "$CPP"; then
3674 CPP=
3677 #### Some systems specify a CPP to use unless we are using GCC.
3678 #### Now that we know whether we are using GCC, we can decide whether
3679 #### to use that one.
3680 if test "x$NON_GNU_CPP" != x && test x$GCC != xyes && test "x$CPP" = x
3681 then
3682 CPP="$NON_GNU_CPP"
3685 #### Some systems specify a CC to use unless we are using GCC.
3686 #### Now that we know whether we are using GCC, we can decide whether
3687 #### to use that one.
3688 if test "x$NON_GNU_CC" != x && test x$GCC != xyes &&
3689 test x$cc_specified != xyes
3690 then
3691 CC="$NON_GNU_CC"
3694 if test x$GCC = xyes && test "x$GCC_TEST_OPTIONS" != x
3695 then
3696 CC="$CC $GCC_TEST_OPTIONS"
3699 if test x$GCC = x && test "x$NON_GCC_TEST_OPTIONS" != x
3700 then
3701 CC="$CC $NON_GCC_TEST_OPTIONS"
3705 ac_ext=c
3706 ac_cpp='$CPP $CPPFLAGS'
3707 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3708 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3709 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3710 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3711 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3712 # On Suns, sometimes $CPP names a directory.
3713 if test -n "$CPP" && test -d "$CPP"; then
3714 CPP=
3716 if test -z "$CPP"; then
3717 if test "${ac_cv_prog_CPP+set}" = set; then
3718 echo $ECHO_N "(cached) $ECHO_C" >&6
3719 else
3720 # Double quotes because CPP needs to be expanded
3721 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3723 ac_preproc_ok=false
3724 for ac_c_preproc_warn_flag in '' yes
3726 # Use a header file that comes with gcc, so configuring glibc
3727 # with a fresh cross-compiler works.
3728 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3729 # <limits.h> exists even on freestanding compilers.
3730 # On the NeXT, cc -E runs the code through the compiler's parser,
3731 # not just through cpp. "Syntax error" is here to catch this case.
3732 cat >conftest.$ac_ext <<_ACEOF
3733 /* confdefs.h. */
3734 _ACEOF
3735 cat confdefs.h >>conftest.$ac_ext
3736 cat >>conftest.$ac_ext <<_ACEOF
3737 /* end confdefs.h. */
3738 #ifdef __STDC__
3739 # include <limits.h>
3740 #else
3741 # include <assert.h>
3742 #endif
3743 Syntax error
3744 _ACEOF
3745 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3746 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3747 ac_status=$?
3748 grep -v '^ *+' conftest.er1 >conftest.err
3749 rm -f conftest.er1
3750 cat conftest.err >&5
3751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3752 (exit $ac_status); } >/dev/null; then
3753 if test -s conftest.err; then
3754 ac_cpp_err=$ac_c_preproc_warn_flag
3755 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3756 else
3757 ac_cpp_err=
3759 else
3760 ac_cpp_err=yes
3762 if test -z "$ac_cpp_err"; then
3764 else
3765 echo "$as_me: failed program was:" >&5
3766 sed 's/^/| /' conftest.$ac_ext >&5
3768 # Broken: fails on valid input.
3769 continue
3771 rm -f conftest.err conftest.$ac_ext
3773 # OK, works on sane cases. Now check whether non-existent headers
3774 # can be detected and how.
3775 cat >conftest.$ac_ext <<_ACEOF
3776 /* confdefs.h. */
3777 _ACEOF
3778 cat confdefs.h >>conftest.$ac_ext
3779 cat >>conftest.$ac_ext <<_ACEOF
3780 /* end confdefs.h. */
3781 #include <ac_nonexistent.h>
3782 _ACEOF
3783 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3784 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3785 ac_status=$?
3786 grep -v '^ *+' conftest.er1 >conftest.err
3787 rm -f conftest.er1
3788 cat conftest.err >&5
3789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3790 (exit $ac_status); } >/dev/null; then
3791 if test -s conftest.err; then
3792 ac_cpp_err=$ac_c_preproc_warn_flag
3793 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3794 else
3795 ac_cpp_err=
3797 else
3798 ac_cpp_err=yes
3800 if test -z "$ac_cpp_err"; then
3801 # Broken: success on invalid input.
3802 continue
3803 else
3804 echo "$as_me: failed program was:" >&5
3805 sed 's/^/| /' conftest.$ac_ext >&5
3807 # Passes both tests.
3808 ac_preproc_ok=:
3809 break
3811 rm -f conftest.err conftest.$ac_ext
3813 done
3814 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3815 rm -f conftest.err conftest.$ac_ext
3816 if $ac_preproc_ok; then
3817 break
3820 done
3821 ac_cv_prog_CPP=$CPP
3824 CPP=$ac_cv_prog_CPP
3825 else
3826 ac_cv_prog_CPP=$CPP
3828 echo "$as_me:$LINENO: result: $CPP" >&5
3829 echo "${ECHO_T}$CPP" >&6
3830 ac_preproc_ok=false
3831 for ac_c_preproc_warn_flag in '' yes
3833 # Use a header file that comes with gcc, so configuring glibc
3834 # with a fresh cross-compiler works.
3835 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3836 # <limits.h> exists even on freestanding compilers.
3837 # On the NeXT, cc -E runs the code through the compiler's parser,
3838 # not just through cpp. "Syntax error" is here to catch this case.
3839 cat >conftest.$ac_ext <<_ACEOF
3840 /* confdefs.h. */
3841 _ACEOF
3842 cat confdefs.h >>conftest.$ac_ext
3843 cat >>conftest.$ac_ext <<_ACEOF
3844 /* end confdefs.h. */
3845 #ifdef __STDC__
3846 # include <limits.h>
3847 #else
3848 # include <assert.h>
3849 #endif
3850 Syntax error
3851 _ACEOF
3852 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3853 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3854 ac_status=$?
3855 grep -v '^ *+' conftest.er1 >conftest.err
3856 rm -f conftest.er1
3857 cat conftest.err >&5
3858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3859 (exit $ac_status); } >/dev/null; then
3860 if test -s conftest.err; then
3861 ac_cpp_err=$ac_c_preproc_warn_flag
3862 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3863 else
3864 ac_cpp_err=
3866 else
3867 ac_cpp_err=yes
3869 if test -z "$ac_cpp_err"; then
3871 else
3872 echo "$as_me: failed program was:" >&5
3873 sed 's/^/| /' conftest.$ac_ext >&5
3875 # Broken: fails on valid input.
3876 continue
3878 rm -f conftest.err conftest.$ac_ext
3880 # OK, works on sane cases. Now check whether non-existent headers
3881 # can be detected and how.
3882 cat >conftest.$ac_ext <<_ACEOF
3883 /* confdefs.h. */
3884 _ACEOF
3885 cat confdefs.h >>conftest.$ac_ext
3886 cat >>conftest.$ac_ext <<_ACEOF
3887 /* end confdefs.h. */
3888 #include <ac_nonexistent.h>
3889 _ACEOF
3890 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3891 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3892 ac_status=$?
3893 grep -v '^ *+' conftest.er1 >conftest.err
3894 rm -f conftest.er1
3895 cat conftest.err >&5
3896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3897 (exit $ac_status); } >/dev/null; then
3898 if test -s conftest.err; then
3899 ac_cpp_err=$ac_c_preproc_warn_flag
3900 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3901 else
3902 ac_cpp_err=
3904 else
3905 ac_cpp_err=yes
3907 if test -z "$ac_cpp_err"; then
3908 # Broken: success on invalid input.
3909 continue
3910 else
3911 echo "$as_me: failed program was:" >&5
3912 sed 's/^/| /' conftest.$ac_ext >&5
3914 # Passes both tests.
3915 ac_preproc_ok=:
3916 break
3918 rm -f conftest.err conftest.$ac_ext
3920 done
3921 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3922 rm -f conftest.err conftest.$ac_ext
3923 if $ac_preproc_ok; then
3925 else
3926 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3927 See \`config.log' for more details." >&5
3928 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3929 See \`config.log' for more details." >&2;}
3930 { (exit 1); exit 1; }; }
3933 ac_ext=c
3934 ac_cpp='$CPP $CPPFLAGS'
3935 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3936 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3937 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3940 echo "$as_me:$LINENO: checking for egrep" >&5
3941 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3942 if test "${ac_cv_prog_egrep+set}" = set; then
3943 echo $ECHO_N "(cached) $ECHO_C" >&6
3944 else
3945 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3946 then ac_cv_prog_egrep='grep -E'
3947 else ac_cv_prog_egrep='egrep'
3950 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3951 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3952 EGREP=$ac_cv_prog_egrep
3956 echo "$as_me:$LINENO: checking for AIX" >&5
3957 echo $ECHO_N "checking for AIX... $ECHO_C" >&6
3958 cat >conftest.$ac_ext <<_ACEOF
3959 /* confdefs.h. */
3960 _ACEOF
3961 cat confdefs.h >>conftest.$ac_ext
3962 cat >>conftest.$ac_ext <<_ACEOF
3963 /* end confdefs.h. */
3964 #ifdef _AIX
3966 #endif
3968 _ACEOF
3969 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3970 $EGREP "yes" >/dev/null 2>&1; then
3971 echo "$as_me:$LINENO: result: yes" >&5
3972 echo "${ECHO_T}yes" >&6
3973 cat >>confdefs.h <<\_ACEOF
3974 #define _ALL_SOURCE 1
3975 _ACEOF
3977 else
3978 echo "$as_me:$LINENO: result: no" >&5
3979 echo "${ECHO_T}no" >&6
3981 rm -f conftest*
3985 cat >>confdefs.h <<\_ACEOF
3986 #define _GNU_SOURCE 1
3987 _ACEOF
3991 ### Use -Wno-pointer-sign if the compiler supports it
3992 echo "$as_me:$LINENO: checking whether gcc understands -Wno-pointer-sign" >&5
3993 echo $ECHO_N "checking whether gcc understands -Wno-pointer-sign... $ECHO_C" >&6
3994 SAVE_CFLAGS="$CFLAGS"
3995 CFLAGS="$CFLAGS -Wno-pointer-sign"
3996 cat >conftest.$ac_ext <<_ACEOF
3997 /* confdefs.h. */
3998 _ACEOF
3999 cat confdefs.h >>conftest.$ac_ext
4000 cat >>conftest.$ac_ext <<_ACEOF
4001 /* end confdefs.h. */
4004 main ()
4008 return 0;
4010 _ACEOF
4011 rm -f conftest.$ac_objext
4012 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4013 (eval $ac_compile) 2>conftest.er1
4014 ac_status=$?
4015 grep -v '^ *+' conftest.er1 >conftest.err
4016 rm -f conftest.er1
4017 cat conftest.err >&5
4018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4019 (exit $ac_status); } &&
4020 { ac_try='test -z "$ac_c_werror_flag"
4021 || test ! -s conftest.err'
4022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4023 (eval $ac_try) 2>&5
4024 ac_status=$?
4025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4026 (exit $ac_status); }; } &&
4027 { ac_try='test -s conftest.$ac_objext'
4028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4029 (eval $ac_try) 2>&5
4030 ac_status=$?
4031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4032 (exit $ac_status); }; }; then
4033 has_option=yes
4034 else
4035 echo "$as_me: failed program was:" >&5
4036 sed 's/^/| /' conftest.$ac_ext >&5
4038 has_option=no
4040 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4041 if test $has_option = yes; then
4042 C_WARNINGS_SWITCH="-Wno-pointer-sign $C_WARNINGS_SWITCH"
4044 echo "$as_me:$LINENO: result: $has_option" >&5
4045 echo "${ECHO_T}$has_option" >&6
4046 CFLAGS="$SAVE_CFLAGS"
4047 unset has_option
4048 unset SAVE_CFLAGS
4050 #### Some other nice autoconf tests.
4052 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4053 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4054 LN_S=$as_ln_s
4055 if test "$LN_S" = "ln -s"; then
4056 echo "$as_me:$LINENO: result: yes" >&5
4057 echo "${ECHO_T}yes" >&6
4058 else
4059 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4060 echo "${ECHO_T}no, using $LN_S" >&6
4063 ac_ext=c
4064 ac_cpp='$CPP $CPPFLAGS'
4065 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4066 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4067 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4068 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4069 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
4070 # On Suns, sometimes $CPP names a directory.
4071 if test -n "$CPP" && test -d "$CPP"; then
4072 CPP=
4074 if test -z "$CPP"; then
4075 if test "${ac_cv_prog_CPP+set}" = set; then
4076 echo $ECHO_N "(cached) $ECHO_C" >&6
4077 else
4078 # Double quotes because CPP needs to be expanded
4079 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4081 ac_preproc_ok=false
4082 for ac_c_preproc_warn_flag in '' yes
4084 # Use a header file that comes with gcc, so configuring glibc
4085 # with a fresh cross-compiler works.
4086 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4087 # <limits.h> exists even on freestanding compilers.
4088 # On the NeXT, cc -E runs the code through the compiler's parser,
4089 # not just through cpp. "Syntax error" is here to catch this case.
4090 cat >conftest.$ac_ext <<_ACEOF
4091 /* confdefs.h. */
4092 _ACEOF
4093 cat confdefs.h >>conftest.$ac_ext
4094 cat >>conftest.$ac_ext <<_ACEOF
4095 /* end confdefs.h. */
4096 #ifdef __STDC__
4097 # include <limits.h>
4098 #else
4099 # include <assert.h>
4100 #endif
4101 Syntax error
4102 _ACEOF
4103 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4104 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4105 ac_status=$?
4106 grep -v '^ *+' conftest.er1 >conftest.err
4107 rm -f conftest.er1
4108 cat conftest.err >&5
4109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4110 (exit $ac_status); } >/dev/null; then
4111 if test -s conftest.err; then
4112 ac_cpp_err=$ac_c_preproc_warn_flag
4113 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4114 else
4115 ac_cpp_err=
4117 else
4118 ac_cpp_err=yes
4120 if test -z "$ac_cpp_err"; then
4122 else
4123 echo "$as_me: failed program was:" >&5
4124 sed 's/^/| /' conftest.$ac_ext >&5
4126 # Broken: fails on valid input.
4127 continue
4129 rm -f conftest.err conftest.$ac_ext
4131 # OK, works on sane cases. Now check whether non-existent headers
4132 # can be detected and how.
4133 cat >conftest.$ac_ext <<_ACEOF
4134 /* confdefs.h. */
4135 _ACEOF
4136 cat confdefs.h >>conftest.$ac_ext
4137 cat >>conftest.$ac_ext <<_ACEOF
4138 /* end confdefs.h. */
4139 #include <ac_nonexistent.h>
4140 _ACEOF
4141 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4142 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4143 ac_status=$?
4144 grep -v '^ *+' conftest.er1 >conftest.err
4145 rm -f conftest.er1
4146 cat conftest.err >&5
4147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4148 (exit $ac_status); } >/dev/null; then
4149 if test -s conftest.err; then
4150 ac_cpp_err=$ac_c_preproc_warn_flag
4151 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4152 else
4153 ac_cpp_err=
4155 else
4156 ac_cpp_err=yes
4158 if test -z "$ac_cpp_err"; then
4159 # Broken: success on invalid input.
4160 continue
4161 else
4162 echo "$as_me: failed program was:" >&5
4163 sed 's/^/| /' conftest.$ac_ext >&5
4165 # Passes both tests.
4166 ac_preproc_ok=:
4167 break
4169 rm -f conftest.err conftest.$ac_ext
4171 done
4172 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4173 rm -f conftest.err conftest.$ac_ext
4174 if $ac_preproc_ok; then
4175 break
4178 done
4179 ac_cv_prog_CPP=$CPP
4182 CPP=$ac_cv_prog_CPP
4183 else
4184 ac_cv_prog_CPP=$CPP
4186 echo "$as_me:$LINENO: result: $CPP" >&5
4187 echo "${ECHO_T}$CPP" >&6
4188 ac_preproc_ok=false
4189 for ac_c_preproc_warn_flag in '' yes
4191 # Use a header file that comes with gcc, so configuring glibc
4192 # with a fresh cross-compiler works.
4193 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4194 # <limits.h> exists even on freestanding compilers.
4195 # On the NeXT, cc -E runs the code through the compiler's parser,
4196 # not just through cpp. "Syntax error" is here to catch this case.
4197 cat >conftest.$ac_ext <<_ACEOF
4198 /* confdefs.h. */
4199 _ACEOF
4200 cat confdefs.h >>conftest.$ac_ext
4201 cat >>conftest.$ac_ext <<_ACEOF
4202 /* end confdefs.h. */
4203 #ifdef __STDC__
4204 # include <limits.h>
4205 #else
4206 # include <assert.h>
4207 #endif
4208 Syntax error
4209 _ACEOF
4210 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4211 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4212 ac_status=$?
4213 grep -v '^ *+' conftest.er1 >conftest.err
4214 rm -f conftest.er1
4215 cat conftest.err >&5
4216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4217 (exit $ac_status); } >/dev/null; then
4218 if test -s conftest.err; then
4219 ac_cpp_err=$ac_c_preproc_warn_flag
4220 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4221 else
4222 ac_cpp_err=
4224 else
4225 ac_cpp_err=yes
4227 if test -z "$ac_cpp_err"; then
4229 else
4230 echo "$as_me: failed program was:" >&5
4231 sed 's/^/| /' conftest.$ac_ext >&5
4233 # Broken: fails on valid input.
4234 continue
4236 rm -f conftest.err conftest.$ac_ext
4238 # OK, works on sane cases. Now check whether non-existent headers
4239 # can be detected and how.
4240 cat >conftest.$ac_ext <<_ACEOF
4241 /* confdefs.h. */
4242 _ACEOF
4243 cat confdefs.h >>conftest.$ac_ext
4244 cat >>conftest.$ac_ext <<_ACEOF
4245 /* end confdefs.h. */
4246 #include <ac_nonexistent.h>
4247 _ACEOF
4248 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4249 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4250 ac_status=$?
4251 grep -v '^ *+' conftest.er1 >conftest.err
4252 rm -f conftest.er1
4253 cat conftest.err >&5
4254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4255 (exit $ac_status); } >/dev/null; then
4256 if test -s conftest.err; then
4257 ac_cpp_err=$ac_c_preproc_warn_flag
4258 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4259 else
4260 ac_cpp_err=
4262 else
4263 ac_cpp_err=yes
4265 if test -z "$ac_cpp_err"; then
4266 # Broken: success on invalid input.
4267 continue
4268 else
4269 echo "$as_me: failed program was:" >&5
4270 sed 's/^/| /' conftest.$ac_ext >&5
4272 # Passes both tests.
4273 ac_preproc_ok=:
4274 break
4276 rm -f conftest.err conftest.$ac_ext
4278 done
4279 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4280 rm -f conftest.err conftest.$ac_ext
4281 if $ac_preproc_ok; then
4283 else
4284 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4285 See \`config.log' for more details." >&5
4286 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4287 See \`config.log' for more details." >&2;}
4288 { (exit 1); exit 1; }; }
4291 ac_ext=c
4292 ac_cpp='$CPP $CPPFLAGS'
4293 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4294 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4295 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4297 # Find a good install program. We prefer a C program (faster),
4298 # so one script is as good as another. But avoid the broken or
4299 # incompatible versions:
4300 # SysV /etc/install, /usr/sbin/install
4301 # SunOS /usr/etc/install
4302 # IRIX /sbin/install
4303 # AIX /bin/install
4304 # AmigaOS /C/install, which installs bootblocks on floppy discs
4305 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4306 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4307 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4308 # OS/2's system install, which has a completely different semantic
4309 # ./install, which can be erroneously created by make from ./install.sh.
4310 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4311 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
4312 if test -z "$INSTALL"; then
4313 if test "${ac_cv_path_install+set}" = set; then
4314 echo $ECHO_N "(cached) $ECHO_C" >&6
4315 else
4316 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4317 for as_dir in $PATH
4319 IFS=$as_save_IFS
4320 test -z "$as_dir" && as_dir=.
4321 # Account for people who put trailing slashes in PATH elements.
4322 case $as_dir/ in
4323 ./ | .// | /cC/* | \
4324 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4325 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4326 /usr/ucb/* ) ;;
4328 # OSF1 and SCO ODT 3.0 have their own names for install.
4329 # Don't use installbsd from OSF since it installs stuff as root
4330 # by default.
4331 for ac_prog in ginstall scoinst install; do
4332 for ac_exec_ext in '' $ac_executable_extensions; do
4333 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4334 if test $ac_prog = install &&
4335 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4336 # AIX install. It has an incompatible calling convention.
4338 elif test $ac_prog = install &&
4339 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4340 # program-specific install script used by HP pwplus--don't use.
4342 else
4343 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4344 break 3
4347 done
4348 done
4350 esac
4351 done
4355 if test "${ac_cv_path_install+set}" = set; then
4356 INSTALL=$ac_cv_path_install
4357 else
4358 # As a last resort, use the slow shell script. We don't cache a
4359 # path for INSTALL within a source directory, because that will
4360 # break other packages using the cache if that directory is
4361 # removed, or if the path is relative.
4362 INSTALL=$ac_install_sh
4365 echo "$as_me:$LINENO: result: $INSTALL" >&5
4366 echo "${ECHO_T}$INSTALL" >&6
4368 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4369 # It thinks the first close brace ends the variable substitution.
4370 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4372 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4374 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4376 if test "x$RANLIB" = x; then
4377 if test -n "$ac_tool_prefix"; then
4378 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4379 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4380 echo "$as_me:$LINENO: checking for $ac_word" >&5
4381 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4382 if test "${ac_cv_prog_RANLIB+set}" = set; then
4383 echo $ECHO_N "(cached) $ECHO_C" >&6
4384 else
4385 if test -n "$RANLIB"; then
4386 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4387 else
4388 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4389 for as_dir in $PATH
4391 IFS=$as_save_IFS
4392 test -z "$as_dir" && as_dir=.
4393 for ac_exec_ext in '' $ac_executable_extensions; do
4394 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4395 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4396 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4397 break 2
4399 done
4400 done
4404 RANLIB=$ac_cv_prog_RANLIB
4405 if test -n "$RANLIB"; then
4406 echo "$as_me:$LINENO: result: $RANLIB" >&5
4407 echo "${ECHO_T}$RANLIB" >&6
4408 else
4409 echo "$as_me:$LINENO: result: no" >&5
4410 echo "${ECHO_T}no" >&6
4414 if test -z "$ac_cv_prog_RANLIB"; then
4415 ac_ct_RANLIB=$RANLIB
4416 # Extract the first word of "ranlib", so it can be a program name with args.
4417 set dummy ranlib; ac_word=$2
4418 echo "$as_me:$LINENO: checking for $ac_word" >&5
4419 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4420 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4421 echo $ECHO_N "(cached) $ECHO_C" >&6
4422 else
4423 if test -n "$ac_ct_RANLIB"; then
4424 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4425 else
4426 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4427 for as_dir in $PATH
4429 IFS=$as_save_IFS
4430 test -z "$as_dir" && as_dir=.
4431 for ac_exec_ext in '' $ac_executable_extensions; do
4432 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4433 ac_cv_prog_ac_ct_RANLIB="ranlib"
4434 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4435 break 2
4437 done
4438 done
4440 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4443 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4444 if test -n "$ac_ct_RANLIB"; then
4445 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4446 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4447 else
4448 echo "$as_me:$LINENO: result: no" >&5
4449 echo "${ECHO_T}no" >&6
4452 RANLIB=$ac_ct_RANLIB
4453 else
4454 RANLIB="$ac_cv_prog_RANLIB"
4458 # Extract the first word of "install-info", so it can be a program name with args.
4459 set dummy install-info; ac_word=$2
4460 echo "$as_me:$LINENO: checking for $ac_word" >&5
4461 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4462 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
4463 echo $ECHO_N "(cached) $ECHO_C" >&6
4464 else
4465 case $INSTALL_INFO in
4466 [\\/]* | ?:[\\/]*)
4467 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
4470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4471 for as_dir in $PATH
4473 IFS=$as_save_IFS
4474 test -z "$as_dir" && as_dir=.
4475 for ac_exec_ext in '' $ac_executable_extensions; do
4476 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4477 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
4478 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4479 break 2
4481 done
4482 done
4485 esac
4487 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
4489 if test -n "$INSTALL_INFO"; then
4490 echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
4491 echo "${ECHO_T}$INSTALL_INFO" >&6
4492 else
4493 echo "$as_me:$LINENO: result: no" >&5
4494 echo "${ECHO_T}no" >&6
4497 # Extract the first word of "install-info", so it can be a program name with args.
4498 set dummy install-info; ac_word=$2
4499 echo "$as_me:$LINENO: checking for $ac_word" >&5
4500 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4501 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
4502 echo $ECHO_N "(cached) $ECHO_C" >&6
4503 else
4504 case $INSTALL_INFO in
4505 [\\/]* | ?:[\\/]*)
4506 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
4509 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4510 for as_dir in /usr/sbin
4512 IFS=$as_save_IFS
4513 test -z "$as_dir" && as_dir=.
4514 for ac_exec_ext in '' $ac_executable_extensions; do
4515 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4516 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
4517 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4518 break 2
4520 done
4521 done
4524 esac
4526 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
4528 if test -n "$INSTALL_INFO"; then
4529 echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
4530 echo "${ECHO_T}$INSTALL_INFO" >&6
4531 else
4532 echo "$as_me:$LINENO: result: no" >&5
4533 echo "${ECHO_T}no" >&6
4536 # Extract the first word of "install-info", so it can be a program name with args.
4537 set dummy install-info; ac_word=$2
4538 echo "$as_me:$LINENO: checking for $ac_word" >&5
4539 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4540 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
4541 echo $ECHO_N "(cached) $ECHO_C" >&6
4542 else
4543 case $INSTALL_INFO in
4544 [\\/]* | ?:[\\/]*)
4545 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
4548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4549 for as_dir in /sbin
4551 IFS=$as_save_IFS
4552 test -z "$as_dir" && as_dir=.
4553 for ac_exec_ext in '' $ac_executable_extensions; do
4554 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4555 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
4556 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4557 break 2
4559 done
4560 done
4562 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO=":"
4564 esac
4566 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
4568 if test -n "$INSTALL_INFO"; then
4569 echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
4570 echo "${ECHO_T}$INSTALL_INFO" >&6
4571 else
4572 echo "$as_me:$LINENO: result: no" >&5
4573 echo "${ECHO_T}no" >&6
4576 # Extract the first word of "gzip", so it can be a program name with args.
4577 set dummy gzip; ac_word=$2
4578 echo "$as_me:$LINENO: checking for $ac_word" >&5
4579 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4580 if test "${ac_cv_path_GZIP_PROG+set}" = set; then
4581 echo $ECHO_N "(cached) $ECHO_C" >&6
4582 else
4583 case $GZIP_PROG in
4584 [\\/]* | ?:[\\/]*)
4585 ac_cv_path_GZIP_PROG="$GZIP_PROG" # Let the user override the test with a path.
4588 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4589 for as_dir in $PATH
4591 IFS=$as_save_IFS
4592 test -z "$as_dir" && as_dir=.
4593 for ac_exec_ext in '' $ac_executable_extensions; do
4594 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4595 ac_cv_path_GZIP_PROG="$as_dir/$ac_word$ac_exec_ext"
4596 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4597 break 2
4599 done
4600 done
4603 esac
4605 GZIP_PROG=$ac_cv_path_GZIP_PROG
4607 if test -n "$GZIP_PROG"; then
4608 echo "$as_me:$LINENO: result: $GZIP_PROG" >&5
4609 echo "${ECHO_T}$GZIP_PROG" >&6
4610 else
4611 echo "$as_me:$LINENO: result: no" >&5
4612 echo "${ECHO_T}no" >&6
4617 if test x$GCC = xyes && test "x$GCC_LINK_TEST_OPTIONS" != x
4618 then
4619 ac_link="$ac_link $GCC_LINK_TEST_OPTIONS"
4622 if test x$GCC = x && test "x$NON_GCC_LINK_TEST_OPTIONS" != x
4623 then
4624 ac_link="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
4628 late_LDFLAGS=$LDFLAGS
4629 if test "$GCC" = yes; then
4630 LDFLAGS="$LDFLAGS -Wl,-znocombreloc"
4631 else
4632 LDFLAGS="$LDFLAGS -znocombreloc"
4635 echo "$as_me:$LINENO: checking for -znocombreloc" >&5
4636 echo $ECHO_N "checking for -znocombreloc... $ECHO_C" >&6
4637 cat >conftest.$ac_ext <<_ACEOF
4638 main(){return 0;}
4639 _ACEOF
4640 rm -f conftest.$ac_objext conftest$ac_exeext
4641 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4642 (eval $ac_link) 2>conftest.er1
4643 ac_status=$?
4644 grep -v '^ *+' conftest.er1 >conftest.err
4645 rm -f conftest.er1
4646 cat conftest.err >&5
4647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4648 (exit $ac_status); } &&
4649 { ac_try='test -z "$ac_c_werror_flag"
4650 || test ! -s conftest.err'
4651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4652 (eval $ac_try) 2>&5
4653 ac_status=$?
4654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4655 (exit $ac_status); }; } &&
4656 { ac_try='test -s conftest$ac_exeext'
4657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4658 (eval $ac_try) 2>&5
4659 ac_status=$?
4660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4661 (exit $ac_status); }; }; then
4662 echo "$as_me:$LINENO: result: yes" >&5
4663 echo "${ECHO_T}yes" >&6
4664 else
4665 echo "$as_me: failed program was:" >&5
4666 sed 's/^/| /' conftest.$ac_ext >&5
4668 LDFLAGS=$late_LDFLAGS
4669 echo "$as_me:$LINENO: result: no" >&5
4670 echo "${ECHO_T}no" >&6
4672 rm -f conftest.err conftest.$ac_objext \
4673 conftest$ac_exeext conftest.$ac_ext
4675 #### Extract some information from the operating system and machine files.
4677 { echo "$as_me:$LINENO: checking the machine- and system-dependent files to find out
4678 - which libraries the lib-src programs will want, and
4679 - whether the GNU malloc routines are usable..." >&5
4680 echo "$as_me: checking the machine- and system-dependent files to find out
4681 - which libraries the lib-src programs will want, and
4682 - whether the GNU malloc routines are usable..." >&6;}
4684 ### First figure out CFLAGS (which we use for running the compiler here)
4685 ### and REAL_CFLAGS (which we use for real compilation).
4686 ### The two are the same except on a few systems, where they are made
4687 ### different to work around various lossages. For example,
4688 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
4689 ### as implying static linking.
4691 ### If the CFLAGS env var is specified, we use that value
4692 ### instead of the default.
4694 ### It's not important that this name contain the PID; you can't run
4695 ### two configures in the same directory and have anything work
4696 ### anyway.
4697 tempcname="conftest.c"
4699 echo '
4700 #include "'${srcdir}'/src/'${opsysfile}'"
4701 #include "'${srcdir}'/src/'${machfile}'"
4702 #ifndef LIBS_MACHINE
4703 #define LIBS_MACHINE
4704 #endif
4705 #ifndef LIBS_SYSTEM
4706 #define LIBS_SYSTEM
4707 #endif
4708 #ifndef C_SWITCH_SYSTEM
4709 #define C_SWITCH_SYSTEM
4710 #endif
4711 #ifndef C_SWITCH_MACHINE
4712 #define C_SWITCH_MACHINE
4713 #endif
4714 configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM
4715 configure___ c_switch_system=C_SWITCH_SYSTEM
4716 configure___ c_switch_machine=C_SWITCH_MACHINE
4718 #ifndef LIB_X11_LIB
4719 #define LIB_X11_LIB -lX11
4720 #endif
4722 #ifndef LIBX11_MACHINE
4723 #define LIBX11_MACHINE
4724 #endif
4726 #ifndef LIBX11_SYSTEM
4727 #define LIBX11_SYSTEM
4728 #endif
4729 configure___ LIBX=LIB_X11_LIB LIBX11_MACHINE LIBX11_SYSTEM
4731 #ifdef UNEXEC
4732 configure___ unexec=UNEXEC
4733 #else
4734 configure___ unexec=unexec.o
4735 #endif
4737 #ifdef SYSTEM_MALLOC
4738 configure___ system_malloc=yes
4739 #else
4740 configure___ system_malloc=no
4741 #endif
4743 #ifdef USE_MMAP_FOR_BUFFERS
4744 configure___ use_mmap_for_buffers=yes
4745 #else
4746 configure___ use_mmap_for_buffers=no
4747 #endif
4749 #ifndef C_DEBUG_SWITCH
4750 #define C_DEBUG_SWITCH -g
4751 #endif
4753 #ifndef C_OPTIMIZE_SWITCH
4754 #ifdef __GNUC__
4755 #define C_OPTIMIZE_SWITCH -O2
4756 #else
4757 #define C_OPTIMIZE_SWITCH -O
4758 #endif
4759 #endif
4761 #ifndef C_WARNINGS_SWITCH
4762 #define C_WARNINGS_SWITCH ${C_WARNINGS_SWITCH}
4763 #endif
4765 #ifndef LD_SWITCH_MACHINE
4766 #define LD_SWITCH_MACHINE
4767 #endif
4769 #ifndef LD_SWITCH_SYSTEM
4770 #define LD_SWITCH_SYSTEM
4771 #endif
4773 #ifndef LD_SWITCH_X_SITE_AUX
4774 #define LD_SWITCH_X_SITE_AUX
4775 #endif
4777 configure___ ld_switch_system=LD_SWITCH_SYSTEM
4778 configure___ ld_switch_machine=LD_SWITCH_MACHINE
4780 #ifdef THIS_IS_CONFIGURE
4782 /* Get the CFLAGS for tests in configure. */
4783 #ifdef __GNUC__
4784 configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
4785 #else
4786 configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
4787 #endif
4789 #else /* not THIS_IS_CONFIGURE */
4791 /* Get the CFLAGS for real compilation. */
4792 #ifdef __GNUC__
4793 configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH C_WARNINGS_SWITCH '${SPECIFIED_CFLAGS}'
4794 #else
4795 configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
4796 #endif
4798 #endif /* not THIS_IS_CONFIGURE */
4799 ' > ${tempcname}
4801 # The value of CPP is a quoted variable reference, so we need to do this
4802 # to get its actual value...
4803 CPP=`eval "echo $CPP"`
4804 eval `${CPP} -Isrc ${tempcname} \
4805 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
4806 if test "x$SPECIFIED_CFLAGS" = x; then
4807 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
4808 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
4809 else
4810 REAL_CFLAGS="$CFLAGS"
4812 rm ${tempcname}
4814 ac_link="$ac_link $ld_switch_machine $ld_switch_system"
4816 ### Make sure subsequent tests use flags consistent with the build flags.
4818 if test x"${OVERRIDE_CPPFLAGS}" != x; then
4819 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
4820 else
4821 CPPFLAGS="$c_switch_system $c_switch_machine $CPPFLAGS"
4826 # Check whether --enable-largefile or --disable-largefile was given.
4827 if test "${enable_largefile+set}" = set; then
4828 enableval="$enable_largefile"
4831 if test "$enable_largefile" != no; then
4833 echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
4834 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
4835 if test "${ac_cv_sys_largefile_CC+set}" = set; then
4836 echo $ECHO_N "(cached) $ECHO_C" >&6
4837 else
4838 ac_cv_sys_largefile_CC=no
4839 if test "$GCC" != yes; then
4840 ac_save_CC=$CC
4841 while :; do
4842 # IRIX 6.2 and later do not support large files by default,
4843 # so use the C compiler's -n32 option if that helps.
4844 cat >conftest.$ac_ext <<_ACEOF
4845 /* confdefs.h. */
4846 _ACEOF
4847 cat confdefs.h >>conftest.$ac_ext
4848 cat >>conftest.$ac_ext <<_ACEOF
4849 /* end confdefs.h. */
4850 #include <sys/types.h>
4851 /* Check that off_t can represent 2**63 - 1 correctly.
4852 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4853 since some C++ compilers masquerading as C compilers
4854 incorrectly reject 9223372036854775807. */
4855 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4856 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4857 && LARGE_OFF_T % 2147483647 == 1)
4858 ? 1 : -1];
4860 main ()
4864 return 0;
4866 _ACEOF
4867 rm -f conftest.$ac_objext
4868 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4869 (eval $ac_compile) 2>conftest.er1
4870 ac_status=$?
4871 grep -v '^ *+' conftest.er1 >conftest.err
4872 rm -f conftest.er1
4873 cat conftest.err >&5
4874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4875 (exit $ac_status); } &&
4876 { ac_try='test -z "$ac_c_werror_flag"
4877 || test ! -s conftest.err'
4878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4879 (eval $ac_try) 2>&5
4880 ac_status=$?
4881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4882 (exit $ac_status); }; } &&
4883 { ac_try='test -s conftest.$ac_objext'
4884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4885 (eval $ac_try) 2>&5
4886 ac_status=$?
4887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4888 (exit $ac_status); }; }; then
4889 break
4890 else
4891 echo "$as_me: failed program was:" >&5
4892 sed 's/^/| /' conftest.$ac_ext >&5
4895 rm -f conftest.err conftest.$ac_objext
4896 CC="$CC -n32"
4897 rm -f conftest.$ac_objext
4898 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4899 (eval $ac_compile) 2>conftest.er1
4900 ac_status=$?
4901 grep -v '^ *+' conftest.er1 >conftest.err
4902 rm -f conftest.er1
4903 cat conftest.err >&5
4904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4905 (exit $ac_status); } &&
4906 { ac_try='test -z "$ac_c_werror_flag"
4907 || test ! -s conftest.err'
4908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4909 (eval $ac_try) 2>&5
4910 ac_status=$?
4911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4912 (exit $ac_status); }; } &&
4913 { ac_try='test -s conftest.$ac_objext'
4914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4915 (eval $ac_try) 2>&5
4916 ac_status=$?
4917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4918 (exit $ac_status); }; }; then
4919 ac_cv_sys_largefile_CC=' -n32'; break
4920 else
4921 echo "$as_me: failed program was:" >&5
4922 sed 's/^/| /' conftest.$ac_ext >&5
4925 rm -f conftest.err conftest.$ac_objext
4926 break
4927 done
4928 CC=$ac_save_CC
4929 rm -f conftest.$ac_ext
4932 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
4933 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
4934 if test "$ac_cv_sys_largefile_CC" != no; then
4935 CC=$CC$ac_cv_sys_largefile_CC
4938 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4939 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
4940 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
4941 echo $ECHO_N "(cached) $ECHO_C" >&6
4942 else
4943 while :; do
4944 ac_cv_sys_file_offset_bits=no
4945 cat >conftest.$ac_ext <<_ACEOF
4946 /* confdefs.h. */
4947 _ACEOF
4948 cat confdefs.h >>conftest.$ac_ext
4949 cat >>conftest.$ac_ext <<_ACEOF
4950 /* end confdefs.h. */
4951 #include <sys/types.h>
4952 /* Check that off_t can represent 2**63 - 1 correctly.
4953 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4954 since some C++ compilers masquerading as C compilers
4955 incorrectly reject 9223372036854775807. */
4956 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4957 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4958 && LARGE_OFF_T % 2147483647 == 1)
4959 ? 1 : -1];
4961 main ()
4965 return 0;
4967 _ACEOF
4968 rm -f conftest.$ac_objext
4969 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4970 (eval $ac_compile) 2>conftest.er1
4971 ac_status=$?
4972 grep -v '^ *+' conftest.er1 >conftest.err
4973 rm -f conftest.er1
4974 cat conftest.err >&5
4975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4976 (exit $ac_status); } &&
4977 { ac_try='test -z "$ac_c_werror_flag"
4978 || test ! -s conftest.err'
4979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4980 (eval $ac_try) 2>&5
4981 ac_status=$?
4982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4983 (exit $ac_status); }; } &&
4984 { ac_try='test -s conftest.$ac_objext'
4985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4986 (eval $ac_try) 2>&5
4987 ac_status=$?
4988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4989 (exit $ac_status); }; }; then
4990 break
4991 else
4992 echo "$as_me: failed program was:" >&5
4993 sed 's/^/| /' conftest.$ac_ext >&5
4996 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4997 cat >conftest.$ac_ext <<_ACEOF
4998 /* confdefs.h. */
4999 _ACEOF
5000 cat confdefs.h >>conftest.$ac_ext
5001 cat >>conftest.$ac_ext <<_ACEOF
5002 /* end confdefs.h. */
5003 #define _FILE_OFFSET_BITS 64
5004 #include <sys/types.h>
5005 /* Check that off_t can represent 2**63 - 1 correctly.
5006 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5007 since some C++ compilers masquerading as C compilers
5008 incorrectly reject 9223372036854775807. */
5009 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5010 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5011 && LARGE_OFF_T % 2147483647 == 1)
5012 ? 1 : -1];
5014 main ()
5018 return 0;
5020 _ACEOF
5021 rm -f conftest.$ac_objext
5022 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5023 (eval $ac_compile) 2>conftest.er1
5024 ac_status=$?
5025 grep -v '^ *+' conftest.er1 >conftest.err
5026 rm -f conftest.er1
5027 cat conftest.err >&5
5028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5029 (exit $ac_status); } &&
5030 { ac_try='test -z "$ac_c_werror_flag"
5031 || test ! -s conftest.err'
5032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5033 (eval $ac_try) 2>&5
5034 ac_status=$?
5035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5036 (exit $ac_status); }; } &&
5037 { ac_try='test -s conftest.$ac_objext'
5038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5039 (eval $ac_try) 2>&5
5040 ac_status=$?
5041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5042 (exit $ac_status); }; }; then
5043 ac_cv_sys_file_offset_bits=64; break
5044 else
5045 echo "$as_me: failed program was:" >&5
5046 sed 's/^/| /' conftest.$ac_ext >&5
5049 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5050 break
5051 done
5053 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
5054 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
5055 if test "$ac_cv_sys_file_offset_bits" != no; then
5057 cat >>confdefs.h <<_ACEOF
5058 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5059 _ACEOF
5062 rm -f conftest*
5063 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
5064 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
5065 if test "${ac_cv_sys_large_files+set}" = set; then
5066 echo $ECHO_N "(cached) $ECHO_C" >&6
5067 else
5068 while :; do
5069 ac_cv_sys_large_files=no
5070 cat >conftest.$ac_ext <<_ACEOF
5071 /* confdefs.h. */
5072 _ACEOF
5073 cat confdefs.h >>conftest.$ac_ext
5074 cat >>conftest.$ac_ext <<_ACEOF
5075 /* end confdefs.h. */
5076 #include <sys/types.h>
5077 /* Check that off_t can represent 2**63 - 1 correctly.
5078 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5079 since some C++ compilers masquerading as C compilers
5080 incorrectly reject 9223372036854775807. */
5081 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5082 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5083 && LARGE_OFF_T % 2147483647 == 1)
5084 ? 1 : -1];
5086 main ()
5090 return 0;
5092 _ACEOF
5093 rm -f conftest.$ac_objext
5094 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5095 (eval $ac_compile) 2>conftest.er1
5096 ac_status=$?
5097 grep -v '^ *+' conftest.er1 >conftest.err
5098 rm -f conftest.er1
5099 cat conftest.err >&5
5100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5101 (exit $ac_status); } &&
5102 { ac_try='test -z "$ac_c_werror_flag"
5103 || test ! -s conftest.err'
5104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5105 (eval $ac_try) 2>&5
5106 ac_status=$?
5107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5108 (exit $ac_status); }; } &&
5109 { ac_try='test -s conftest.$ac_objext'
5110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5111 (eval $ac_try) 2>&5
5112 ac_status=$?
5113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5114 (exit $ac_status); }; }; then
5115 break
5116 else
5117 echo "$as_me: failed program was:" >&5
5118 sed 's/^/| /' conftest.$ac_ext >&5
5121 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5122 cat >conftest.$ac_ext <<_ACEOF
5123 /* confdefs.h. */
5124 _ACEOF
5125 cat confdefs.h >>conftest.$ac_ext
5126 cat >>conftest.$ac_ext <<_ACEOF
5127 /* end confdefs.h. */
5128 #define _LARGE_FILES 1
5129 #include <sys/types.h>
5130 /* Check that off_t can represent 2**63 - 1 correctly.
5131 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5132 since some C++ compilers masquerading as C compilers
5133 incorrectly reject 9223372036854775807. */
5134 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5135 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5136 && LARGE_OFF_T % 2147483647 == 1)
5137 ? 1 : -1];
5139 main ()
5143 return 0;
5145 _ACEOF
5146 rm -f conftest.$ac_objext
5147 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5148 (eval $ac_compile) 2>conftest.er1
5149 ac_status=$?
5150 grep -v '^ *+' conftest.er1 >conftest.err
5151 rm -f conftest.er1
5152 cat conftest.err >&5
5153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5154 (exit $ac_status); } &&
5155 { ac_try='test -z "$ac_c_werror_flag"
5156 || test ! -s conftest.err'
5157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5158 (eval $ac_try) 2>&5
5159 ac_status=$?
5160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5161 (exit $ac_status); }; } &&
5162 { ac_try='test -s conftest.$ac_objext'
5163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5164 (eval $ac_try) 2>&5
5165 ac_status=$?
5166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5167 (exit $ac_status); }; }; then
5168 ac_cv_sys_large_files=1; break
5169 else
5170 echo "$as_me: failed program was:" >&5
5171 sed 's/^/| /' conftest.$ac_ext >&5
5174 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5175 break
5176 done
5178 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
5179 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
5180 if test "$ac_cv_sys_large_files" != no; then
5182 cat >>confdefs.h <<_ACEOF
5183 #define _LARGE_FILES $ac_cv_sys_large_files
5184 _ACEOF
5187 rm -f conftest*
5191 if test "${with_sound}" != "no"; then
5192 # Sound support for GNU/Linux and the free BSDs.
5193 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5194 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5195 if test "${ac_cv_header_stdc+set}" = set; then
5196 echo $ECHO_N "(cached) $ECHO_C" >&6
5197 else
5198 cat >conftest.$ac_ext <<_ACEOF
5199 /* confdefs.h. */
5200 _ACEOF
5201 cat confdefs.h >>conftest.$ac_ext
5202 cat >>conftest.$ac_ext <<_ACEOF
5203 /* end confdefs.h. */
5204 #include <stdlib.h>
5205 #include <stdarg.h>
5206 #include <string.h>
5207 #include <float.h>
5210 main ()
5214 return 0;
5216 _ACEOF
5217 rm -f conftest.$ac_objext
5218 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5219 (eval $ac_compile) 2>conftest.er1
5220 ac_status=$?
5221 grep -v '^ *+' conftest.er1 >conftest.err
5222 rm -f conftest.er1
5223 cat conftest.err >&5
5224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5225 (exit $ac_status); } &&
5226 { ac_try='test -z "$ac_c_werror_flag"
5227 || test ! -s conftest.err'
5228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5229 (eval $ac_try) 2>&5
5230 ac_status=$?
5231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5232 (exit $ac_status); }; } &&
5233 { ac_try='test -s conftest.$ac_objext'
5234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5235 (eval $ac_try) 2>&5
5236 ac_status=$?
5237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5238 (exit $ac_status); }; }; then
5239 ac_cv_header_stdc=yes
5240 else
5241 echo "$as_me: failed program was:" >&5
5242 sed 's/^/| /' conftest.$ac_ext >&5
5244 ac_cv_header_stdc=no
5246 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5248 if test $ac_cv_header_stdc = yes; then
5249 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5250 cat >conftest.$ac_ext <<_ACEOF
5251 /* confdefs.h. */
5252 _ACEOF
5253 cat confdefs.h >>conftest.$ac_ext
5254 cat >>conftest.$ac_ext <<_ACEOF
5255 /* end confdefs.h. */
5256 #include <string.h>
5258 _ACEOF
5259 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5260 $EGREP "memchr" >/dev/null 2>&1; then
5262 else
5263 ac_cv_header_stdc=no
5265 rm -f conftest*
5269 if test $ac_cv_header_stdc = yes; then
5270 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5271 cat >conftest.$ac_ext <<_ACEOF
5272 /* confdefs.h. */
5273 _ACEOF
5274 cat confdefs.h >>conftest.$ac_ext
5275 cat >>conftest.$ac_ext <<_ACEOF
5276 /* end confdefs.h. */
5277 #include <stdlib.h>
5279 _ACEOF
5280 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5281 $EGREP "free" >/dev/null 2>&1; then
5283 else
5284 ac_cv_header_stdc=no
5286 rm -f conftest*
5290 if test $ac_cv_header_stdc = yes; then
5291 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5292 if test "$cross_compiling" = yes; then
5294 else
5295 cat >conftest.$ac_ext <<_ACEOF
5296 /* confdefs.h. */
5297 _ACEOF
5298 cat confdefs.h >>conftest.$ac_ext
5299 cat >>conftest.$ac_ext <<_ACEOF
5300 /* end confdefs.h. */
5301 #include <ctype.h>
5302 #if ((' ' & 0x0FF) == 0x020)
5303 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5304 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5305 #else
5306 # define ISLOWER(c) \
5307 (('a' <= (c) && (c) <= 'i') \
5308 || ('j' <= (c) && (c) <= 'r') \
5309 || ('s' <= (c) && (c) <= 'z'))
5310 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5311 #endif
5313 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5315 main ()
5317 int i;
5318 for (i = 0; i < 256; i++)
5319 if (XOR (islower (i), ISLOWER (i))
5320 || toupper (i) != TOUPPER (i))
5321 exit(2);
5322 exit (0);
5324 _ACEOF
5325 rm -f conftest$ac_exeext
5326 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5327 (eval $ac_link) 2>&5
5328 ac_status=$?
5329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5330 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5332 (eval $ac_try) 2>&5
5333 ac_status=$?
5334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5335 (exit $ac_status); }; }; then
5337 else
5338 echo "$as_me: program exited with status $ac_status" >&5
5339 echo "$as_me: failed program was:" >&5
5340 sed 's/^/| /' conftest.$ac_ext >&5
5342 ( exit $ac_status )
5343 ac_cv_header_stdc=no
5345 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5349 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5350 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5351 if test $ac_cv_header_stdc = yes; then
5353 cat >>confdefs.h <<\_ACEOF
5354 #define STDC_HEADERS 1
5355 _ACEOF
5359 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5369 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5370 inttypes.h stdint.h unistd.h
5372 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5373 echo "$as_me:$LINENO: checking for $ac_header" >&5
5374 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5375 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5376 echo $ECHO_N "(cached) $ECHO_C" >&6
5377 else
5378 cat >conftest.$ac_ext <<_ACEOF
5379 /* confdefs.h. */
5380 _ACEOF
5381 cat confdefs.h >>conftest.$ac_ext
5382 cat >>conftest.$ac_ext <<_ACEOF
5383 /* end confdefs.h. */
5384 $ac_includes_default
5386 #include <$ac_header>
5387 _ACEOF
5388 rm -f conftest.$ac_objext
5389 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5390 (eval $ac_compile) 2>conftest.er1
5391 ac_status=$?
5392 grep -v '^ *+' conftest.er1 >conftest.err
5393 rm -f conftest.er1
5394 cat conftest.err >&5
5395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5396 (exit $ac_status); } &&
5397 { ac_try='test -z "$ac_c_werror_flag"
5398 || test ! -s conftest.err'
5399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5400 (eval $ac_try) 2>&5
5401 ac_status=$?
5402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5403 (exit $ac_status); }; } &&
5404 { ac_try='test -s conftest.$ac_objext'
5405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5406 (eval $ac_try) 2>&5
5407 ac_status=$?
5408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5409 (exit $ac_status); }; }; then
5410 eval "$as_ac_Header=yes"
5411 else
5412 echo "$as_me: failed program was:" >&5
5413 sed 's/^/| /' conftest.$ac_ext >&5
5415 eval "$as_ac_Header=no"
5417 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5419 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5420 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5421 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5422 cat >>confdefs.h <<_ACEOF
5423 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5424 _ACEOF
5428 done
5434 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
5436 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5437 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5438 echo "$as_me:$LINENO: checking for $ac_header" >&5
5439 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5440 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5441 echo $ECHO_N "(cached) $ECHO_C" >&6
5443 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5444 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5445 else
5446 # Is the header compilable?
5447 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5448 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5449 cat >conftest.$ac_ext <<_ACEOF
5450 /* confdefs.h. */
5451 _ACEOF
5452 cat confdefs.h >>conftest.$ac_ext
5453 cat >>conftest.$ac_ext <<_ACEOF
5454 /* end confdefs.h. */
5455 $ac_includes_default
5456 #include <$ac_header>
5457 _ACEOF
5458 rm -f conftest.$ac_objext
5459 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5460 (eval $ac_compile) 2>conftest.er1
5461 ac_status=$?
5462 grep -v '^ *+' conftest.er1 >conftest.err
5463 rm -f conftest.er1
5464 cat conftest.err >&5
5465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5466 (exit $ac_status); } &&
5467 { ac_try='test -z "$ac_c_werror_flag"
5468 || test ! -s conftest.err'
5469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5470 (eval $ac_try) 2>&5
5471 ac_status=$?
5472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5473 (exit $ac_status); }; } &&
5474 { ac_try='test -s conftest.$ac_objext'
5475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5476 (eval $ac_try) 2>&5
5477 ac_status=$?
5478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5479 (exit $ac_status); }; }; then
5480 ac_header_compiler=yes
5481 else
5482 echo "$as_me: failed program was:" >&5
5483 sed 's/^/| /' conftest.$ac_ext >&5
5485 ac_header_compiler=no
5487 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5488 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5489 echo "${ECHO_T}$ac_header_compiler" >&6
5491 # Is the header present?
5492 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5493 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5494 cat >conftest.$ac_ext <<_ACEOF
5495 /* confdefs.h. */
5496 _ACEOF
5497 cat confdefs.h >>conftest.$ac_ext
5498 cat >>conftest.$ac_ext <<_ACEOF
5499 /* end confdefs.h. */
5500 #include <$ac_header>
5501 _ACEOF
5502 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5503 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5504 ac_status=$?
5505 grep -v '^ *+' conftest.er1 >conftest.err
5506 rm -f conftest.er1
5507 cat conftest.err >&5
5508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5509 (exit $ac_status); } >/dev/null; then
5510 if test -s conftest.err; then
5511 ac_cpp_err=$ac_c_preproc_warn_flag
5512 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5513 else
5514 ac_cpp_err=
5516 else
5517 ac_cpp_err=yes
5519 if test -z "$ac_cpp_err"; then
5520 ac_header_preproc=yes
5521 else
5522 echo "$as_me: failed program was:" >&5
5523 sed 's/^/| /' conftest.$ac_ext >&5
5525 ac_header_preproc=no
5527 rm -f conftest.err conftest.$ac_ext
5528 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5529 echo "${ECHO_T}$ac_header_preproc" >&6
5531 # So? What about this header?
5532 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5533 yes:no: )
5534 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5535 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5536 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5537 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5538 ac_header_preproc=yes
5540 no:yes:* )
5541 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5542 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5543 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5544 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5545 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5546 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5547 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5548 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5549 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5550 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5551 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5552 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5554 cat <<\_ASBOX
5555 ## ------------------------------------------ ##
5556 ## Report this to the AC_PACKAGE_NAME lists. ##
5557 ## ------------------------------------------ ##
5558 _ASBOX
5560 sed "s/^/$as_me: WARNING: /" >&2
5562 esac
5563 echo "$as_me:$LINENO: checking for $ac_header" >&5
5564 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5565 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5566 echo $ECHO_N "(cached) $ECHO_C" >&6
5567 else
5568 eval "$as_ac_Header=\$ac_header_preproc"
5570 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5571 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5574 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5575 cat >>confdefs.h <<_ACEOF
5576 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5577 _ACEOF
5581 done
5583 # Emulation library used on NetBSD.
5584 echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
5585 echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6
5586 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
5587 echo $ECHO_N "(cached) $ECHO_C" >&6
5588 else
5589 ac_check_lib_save_LIBS=$LIBS
5590 LIBS="-lossaudio $LIBS"
5591 cat >conftest.$ac_ext <<_ACEOF
5592 /* confdefs.h. */
5593 _ACEOF
5594 cat confdefs.h >>conftest.$ac_ext
5595 cat >>conftest.$ac_ext <<_ACEOF
5596 /* end confdefs.h. */
5598 /* Override any gcc2 internal prototype to avoid an error. */
5599 #ifdef __cplusplus
5600 extern "C"
5601 #endif
5602 /* We use char because int might match the return type of a gcc2
5603 builtin and then its argument prototype would still apply. */
5604 char _oss_ioctl ();
5606 main ()
5608 _oss_ioctl ();
5610 return 0;
5612 _ACEOF
5613 rm -f conftest.$ac_objext conftest$ac_exeext
5614 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5615 (eval $ac_link) 2>conftest.er1
5616 ac_status=$?
5617 grep -v '^ *+' conftest.er1 >conftest.err
5618 rm -f conftest.er1
5619 cat conftest.err >&5
5620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5621 (exit $ac_status); } &&
5622 { ac_try='test -z "$ac_c_werror_flag"
5623 || test ! -s conftest.err'
5624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5625 (eval $ac_try) 2>&5
5626 ac_status=$?
5627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5628 (exit $ac_status); }; } &&
5629 { ac_try='test -s conftest$ac_exeext'
5630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5631 (eval $ac_try) 2>&5
5632 ac_status=$?
5633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5634 (exit $ac_status); }; }; then
5635 ac_cv_lib_ossaudio__oss_ioctl=yes
5636 else
5637 echo "$as_me: failed program was:" >&5
5638 sed 's/^/| /' conftest.$ac_ext >&5
5640 ac_cv_lib_ossaudio__oss_ioctl=no
5642 rm -f conftest.err conftest.$ac_objext \
5643 conftest$ac_exeext conftest.$ac_ext
5644 LIBS=$ac_check_lib_save_LIBS
5646 echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
5647 echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6
5648 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
5649 LIBSOUND=-lossaudio
5650 else
5651 LIBSOUND=
5682 for ac_header in sys/select.h sys/timeb.h sys/time.h unistd.h utime.h \
5683 linux/version.h sys/systeminfo.h termios.h limits.h string.h stdlib.h \
5684 termcap.h stdio_ext.h fcntl.h strings.h coff.h pty.h sys/mman.h \
5685 sys/param.h sys/vlimit.h sys/resource.h locale.h sys/_mbstate_t.h \
5686 sys/utsname.h pwd.h
5688 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5689 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5690 echo "$as_me:$LINENO: checking for $ac_header" >&5
5691 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5692 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5693 echo $ECHO_N "(cached) $ECHO_C" >&6
5695 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5696 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5697 else
5698 # Is the header compilable?
5699 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5700 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5701 cat >conftest.$ac_ext <<_ACEOF
5702 /* confdefs.h. */
5703 _ACEOF
5704 cat confdefs.h >>conftest.$ac_ext
5705 cat >>conftest.$ac_ext <<_ACEOF
5706 /* end confdefs.h. */
5707 $ac_includes_default
5708 #include <$ac_header>
5709 _ACEOF
5710 rm -f conftest.$ac_objext
5711 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5712 (eval $ac_compile) 2>conftest.er1
5713 ac_status=$?
5714 grep -v '^ *+' conftest.er1 >conftest.err
5715 rm -f conftest.er1
5716 cat conftest.err >&5
5717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5718 (exit $ac_status); } &&
5719 { ac_try='test -z "$ac_c_werror_flag"
5720 || test ! -s conftest.err'
5721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5722 (eval $ac_try) 2>&5
5723 ac_status=$?
5724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5725 (exit $ac_status); }; } &&
5726 { ac_try='test -s conftest.$ac_objext'
5727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5728 (eval $ac_try) 2>&5
5729 ac_status=$?
5730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5731 (exit $ac_status); }; }; then
5732 ac_header_compiler=yes
5733 else
5734 echo "$as_me: failed program was:" >&5
5735 sed 's/^/| /' conftest.$ac_ext >&5
5737 ac_header_compiler=no
5739 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5740 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5741 echo "${ECHO_T}$ac_header_compiler" >&6
5743 # Is the header present?
5744 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5745 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5746 cat >conftest.$ac_ext <<_ACEOF
5747 /* confdefs.h. */
5748 _ACEOF
5749 cat confdefs.h >>conftest.$ac_ext
5750 cat >>conftest.$ac_ext <<_ACEOF
5751 /* end confdefs.h. */
5752 #include <$ac_header>
5753 _ACEOF
5754 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5755 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5756 ac_status=$?
5757 grep -v '^ *+' conftest.er1 >conftest.err
5758 rm -f conftest.er1
5759 cat conftest.err >&5
5760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5761 (exit $ac_status); } >/dev/null; then
5762 if test -s conftest.err; then
5763 ac_cpp_err=$ac_c_preproc_warn_flag
5764 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5765 else
5766 ac_cpp_err=
5768 else
5769 ac_cpp_err=yes
5771 if test -z "$ac_cpp_err"; then
5772 ac_header_preproc=yes
5773 else
5774 echo "$as_me: failed program was:" >&5
5775 sed 's/^/| /' conftest.$ac_ext >&5
5777 ac_header_preproc=no
5779 rm -f conftest.err conftest.$ac_ext
5780 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5781 echo "${ECHO_T}$ac_header_preproc" >&6
5783 # So? What about this header?
5784 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5785 yes:no: )
5786 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5787 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5788 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5789 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5790 ac_header_preproc=yes
5792 no:yes:* )
5793 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5794 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5795 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5796 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5797 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5798 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5799 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5800 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5801 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5802 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5803 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5804 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5806 cat <<\_ASBOX
5807 ## ------------------------------------------ ##
5808 ## Report this to the AC_PACKAGE_NAME lists. ##
5809 ## ------------------------------------------ ##
5810 _ASBOX
5812 sed "s/^/$as_me: WARNING: /" >&2
5814 esac
5815 echo "$as_me:$LINENO: checking for $ac_header" >&5
5816 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5817 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5818 echo $ECHO_N "(cached) $ECHO_C" >&6
5819 else
5820 eval "$as_ac_Header=\$ac_header_preproc"
5822 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5823 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5826 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5827 cat >>confdefs.h <<_ACEOF
5828 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5829 _ACEOF
5833 done
5836 echo "$as_me:$LINENO: checking if personality LINUX32 can be set" >&5
5837 echo $ECHO_N "checking if personality LINUX32 can be set... $ECHO_C" >&6
5838 cat >conftest.$ac_ext <<_ACEOF
5839 /* confdefs.h. */
5840 _ACEOF
5841 cat confdefs.h >>conftest.$ac_ext
5842 cat >>conftest.$ac_ext <<_ACEOF
5843 /* end confdefs.h. */
5844 #include <sys/personality.h>
5846 main ()
5848 personality (PER_LINUX32)
5850 return 0;
5852 _ACEOF
5853 rm -f conftest.$ac_objext
5854 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5855 (eval $ac_compile) 2>conftest.er1
5856 ac_status=$?
5857 grep -v '^ *+' conftest.er1 >conftest.err
5858 rm -f conftest.er1
5859 cat conftest.err >&5
5860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5861 (exit $ac_status); } &&
5862 { ac_try='test -z "$ac_c_werror_flag"
5863 || test ! -s conftest.err'
5864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5865 (eval $ac_try) 2>&5
5866 ac_status=$?
5867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5868 (exit $ac_status); }; } &&
5869 { ac_try='test -s conftest.$ac_objext'
5870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5871 (eval $ac_try) 2>&5
5872 ac_status=$?
5873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5874 (exit $ac_status); }; }; then
5875 emacs_cv_personality_linux32=yes
5876 else
5877 echo "$as_me: failed program was:" >&5
5878 sed 's/^/| /' conftest.$ac_ext >&5
5880 emacs_cv_personality_linux32=no
5882 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5883 echo "$as_me:$LINENO: result: $emacs_cv_personality_linux32" >&5
5884 echo "${ECHO_T}$emacs_cv_personality_linux32" >&6
5886 if test $emacs_cv_personality_linux32 = yes; then
5888 cat >>confdefs.h <<\_ACEOF
5889 #define HAVE_PERSONALITY_LINUX32 1
5890 _ACEOF
5895 for ac_header in term.h
5897 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5898 echo "$as_me:$LINENO: checking for $ac_header" >&5
5899 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5900 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5901 echo $ECHO_N "(cached) $ECHO_C" >&6
5902 else
5903 cat >conftest.$ac_ext <<_ACEOF
5904 /* confdefs.h. */
5905 _ACEOF
5906 cat confdefs.h >>conftest.$ac_ext
5907 cat >>conftest.$ac_ext <<_ACEOF
5908 /* end confdefs.h. */
5909 #include <$ac_header>
5910 _ACEOF
5911 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5912 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5913 ac_status=$?
5914 grep -v '^ *+' conftest.er1 >conftest.err
5915 rm -f conftest.er1
5916 cat conftest.err >&5
5917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5918 (exit $ac_status); } >/dev/null; then
5919 if test -s conftest.err; then
5920 ac_cpp_err=$ac_c_preproc_warn_flag
5921 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5922 else
5923 ac_cpp_err=
5925 else
5926 ac_cpp_err=yes
5928 if test -z "$ac_cpp_err"; then
5929 eval "$as_ac_Header=yes"
5930 else
5931 echo "$as_me: failed program was:" >&5
5932 sed 's/^/| /' conftest.$ac_ext >&5
5934 eval "$as_ac_Header=no"
5936 rm -f conftest.err conftest.$ac_ext
5938 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5939 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5940 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5941 cat >>confdefs.h <<_ACEOF
5942 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5943 _ACEOF
5947 done
5949 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5950 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5951 if test "${ac_cv_header_stdc+set}" = set; then
5952 echo $ECHO_N "(cached) $ECHO_C" >&6
5953 else
5954 cat >conftest.$ac_ext <<_ACEOF
5955 /* confdefs.h. */
5956 _ACEOF
5957 cat confdefs.h >>conftest.$ac_ext
5958 cat >>conftest.$ac_ext <<_ACEOF
5959 /* end confdefs.h. */
5960 #include <stdlib.h>
5961 #include <stdarg.h>
5962 #include <string.h>
5963 #include <float.h>
5966 main ()
5970 return 0;
5972 _ACEOF
5973 rm -f conftest.$ac_objext
5974 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5975 (eval $ac_compile) 2>conftest.er1
5976 ac_status=$?
5977 grep -v '^ *+' conftest.er1 >conftest.err
5978 rm -f conftest.er1
5979 cat conftest.err >&5
5980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5981 (exit $ac_status); } &&
5982 { ac_try='test -z "$ac_c_werror_flag"
5983 || test ! -s conftest.err'
5984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5985 (eval $ac_try) 2>&5
5986 ac_status=$?
5987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5988 (exit $ac_status); }; } &&
5989 { ac_try='test -s conftest.$ac_objext'
5990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5991 (eval $ac_try) 2>&5
5992 ac_status=$?
5993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5994 (exit $ac_status); }; }; then
5995 ac_cv_header_stdc=yes
5996 else
5997 echo "$as_me: failed program was:" >&5
5998 sed 's/^/| /' conftest.$ac_ext >&5
6000 ac_cv_header_stdc=no
6002 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6004 if test $ac_cv_header_stdc = yes; then
6005 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6006 cat >conftest.$ac_ext <<_ACEOF
6007 /* confdefs.h. */
6008 _ACEOF
6009 cat confdefs.h >>conftest.$ac_ext
6010 cat >>conftest.$ac_ext <<_ACEOF
6011 /* end confdefs.h. */
6012 #include <string.h>
6014 _ACEOF
6015 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6016 $EGREP "memchr" >/dev/null 2>&1; then
6018 else
6019 ac_cv_header_stdc=no
6021 rm -f conftest*
6025 if test $ac_cv_header_stdc = yes; then
6026 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6027 cat >conftest.$ac_ext <<_ACEOF
6028 /* confdefs.h. */
6029 _ACEOF
6030 cat confdefs.h >>conftest.$ac_ext
6031 cat >>conftest.$ac_ext <<_ACEOF
6032 /* end confdefs.h. */
6033 #include <stdlib.h>
6035 _ACEOF
6036 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6037 $EGREP "free" >/dev/null 2>&1; then
6039 else
6040 ac_cv_header_stdc=no
6042 rm -f conftest*
6046 if test $ac_cv_header_stdc = yes; then
6047 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6048 if test "$cross_compiling" = yes; then
6050 else
6051 cat >conftest.$ac_ext <<_ACEOF
6052 /* confdefs.h. */
6053 _ACEOF
6054 cat confdefs.h >>conftest.$ac_ext
6055 cat >>conftest.$ac_ext <<_ACEOF
6056 /* end confdefs.h. */
6057 #include <ctype.h>
6058 #if ((' ' & 0x0FF) == 0x020)
6059 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6060 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6061 #else
6062 # define ISLOWER(c) \
6063 (('a' <= (c) && (c) <= 'i') \
6064 || ('j' <= (c) && (c) <= 'r') \
6065 || ('s' <= (c) && (c) <= 'z'))
6066 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6067 #endif
6069 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6071 main ()
6073 int i;
6074 for (i = 0; i < 256; i++)
6075 if (XOR (islower (i), ISLOWER (i))
6076 || toupper (i) != TOUPPER (i))
6077 exit(2);
6078 exit (0);
6080 _ACEOF
6081 rm -f conftest$ac_exeext
6082 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6083 (eval $ac_link) 2>&5
6084 ac_status=$?
6085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6086 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6088 (eval $ac_try) 2>&5
6089 ac_status=$?
6090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6091 (exit $ac_status); }; }; then
6093 else
6094 echo "$as_me: program exited with status $ac_status" >&5
6095 echo "$as_me: failed program was:" >&5
6096 sed 's/^/| /' conftest.$ac_ext >&5
6098 ( exit $ac_status )
6099 ac_cv_header_stdc=no
6101 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6105 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6106 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6107 if test $ac_cv_header_stdc = yes; then
6109 cat >>confdefs.h <<\_ACEOF
6110 #define STDC_HEADERS 1
6111 _ACEOF
6115 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
6116 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
6117 if test "${ac_cv_header_time+set}" = set; then
6118 echo $ECHO_N "(cached) $ECHO_C" >&6
6119 else
6120 cat >conftest.$ac_ext <<_ACEOF
6121 /* confdefs.h. */
6122 _ACEOF
6123 cat confdefs.h >>conftest.$ac_ext
6124 cat >>conftest.$ac_ext <<_ACEOF
6125 /* end confdefs.h. */
6126 #include <sys/types.h>
6127 #include <sys/time.h>
6128 #include <time.h>
6131 main ()
6133 if ((struct tm *) 0)
6134 return 0;
6136 return 0;
6138 _ACEOF
6139 rm -f conftest.$ac_objext
6140 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6141 (eval $ac_compile) 2>conftest.er1
6142 ac_status=$?
6143 grep -v '^ *+' conftest.er1 >conftest.err
6144 rm -f conftest.er1
6145 cat conftest.err >&5
6146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6147 (exit $ac_status); } &&
6148 { ac_try='test -z "$ac_c_werror_flag"
6149 || test ! -s conftest.err'
6150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6151 (eval $ac_try) 2>&5
6152 ac_status=$?
6153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6154 (exit $ac_status); }; } &&
6155 { ac_try='test -s conftest.$ac_objext'
6156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6157 (eval $ac_try) 2>&5
6158 ac_status=$?
6159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6160 (exit $ac_status); }; }; then
6161 ac_cv_header_time=yes
6162 else
6163 echo "$as_me: failed program was:" >&5
6164 sed 's/^/| /' conftest.$ac_ext >&5
6166 ac_cv_header_time=no
6168 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6170 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
6171 echo "${ECHO_T}$ac_cv_header_time" >&6
6172 if test $ac_cv_header_time = yes; then
6174 cat >>confdefs.h <<\_ACEOF
6175 #define TIME_WITH_SYS_TIME 1
6176 _ACEOF
6180 echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
6181 echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6
6182 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
6183 echo $ECHO_N "(cached) $ECHO_C" >&6
6184 else
6185 cat >conftest.$ac_ext <<_ACEOF
6186 /* confdefs.h. */
6187 _ACEOF
6188 cat confdefs.h >>conftest.$ac_ext
6189 cat >>conftest.$ac_ext <<_ACEOF
6190 /* end confdefs.h. */
6191 $ac_includes_default
6193 main ()
6195 #ifndef sys_siglist
6196 char *p = (char *) sys_siglist;
6197 #endif
6200 return 0;
6202 _ACEOF
6203 rm -f conftest.$ac_objext
6204 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6205 (eval $ac_compile) 2>conftest.er1
6206 ac_status=$?
6207 grep -v '^ *+' conftest.er1 >conftest.err
6208 rm -f conftest.er1
6209 cat conftest.err >&5
6210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6211 (exit $ac_status); } &&
6212 { ac_try='test -z "$ac_c_werror_flag"
6213 || test ! -s conftest.err'
6214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6215 (eval $ac_try) 2>&5
6216 ac_status=$?
6217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6218 (exit $ac_status); }; } &&
6219 { ac_try='test -s conftest.$ac_objext'
6220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6221 (eval $ac_try) 2>&5
6222 ac_status=$?
6223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6224 (exit $ac_status); }; }; then
6225 ac_cv_have_decl_sys_siglist=yes
6226 else
6227 echo "$as_me: failed program was:" >&5
6228 sed 's/^/| /' conftest.$ac_ext >&5
6230 ac_cv_have_decl_sys_siglist=no
6232 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6234 echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
6235 echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6
6236 if test $ac_cv_have_decl_sys_siglist = yes; then
6238 cat >>confdefs.h <<_ACEOF
6239 #define HAVE_DECL_SYS_SIGLIST 1
6240 _ACEOF
6243 else
6244 cat >>confdefs.h <<_ACEOF
6245 #define HAVE_DECL_SYS_SIGLIST 0
6246 _ACEOF
6252 if test $ac_cv_have_decl_sys_siglist != yes; then
6253 # For Tru64, at least:
6254 echo "$as_me:$LINENO: checking whether __sys_siglist is declared" >&5
6255 echo $ECHO_N "checking whether __sys_siglist is declared... $ECHO_C" >&6
6256 if test "${ac_cv_have_decl___sys_siglist+set}" = set; then
6257 echo $ECHO_N "(cached) $ECHO_C" >&6
6258 else
6259 cat >conftest.$ac_ext <<_ACEOF
6260 /* confdefs.h. */
6261 _ACEOF
6262 cat confdefs.h >>conftest.$ac_ext
6263 cat >>conftest.$ac_ext <<_ACEOF
6264 /* end confdefs.h. */
6265 $ac_includes_default
6267 main ()
6269 #ifndef __sys_siglist
6270 char *p = (char *) __sys_siglist;
6271 #endif
6274 return 0;
6276 _ACEOF
6277 rm -f conftest.$ac_objext
6278 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6279 (eval $ac_compile) 2>conftest.er1
6280 ac_status=$?
6281 grep -v '^ *+' conftest.er1 >conftest.err
6282 rm -f conftest.er1
6283 cat conftest.err >&5
6284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6285 (exit $ac_status); } &&
6286 { ac_try='test -z "$ac_c_werror_flag"
6287 || test ! -s conftest.err'
6288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6289 (eval $ac_try) 2>&5
6290 ac_status=$?
6291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6292 (exit $ac_status); }; } &&
6293 { ac_try='test -s conftest.$ac_objext'
6294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6295 (eval $ac_try) 2>&5
6296 ac_status=$?
6297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6298 (exit $ac_status); }; }; then
6299 ac_cv_have_decl___sys_siglist=yes
6300 else
6301 echo "$as_me: failed program was:" >&5
6302 sed 's/^/| /' conftest.$ac_ext >&5
6304 ac_cv_have_decl___sys_siglist=no
6306 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6308 echo "$as_me:$LINENO: result: $ac_cv_have_decl___sys_siglist" >&5
6309 echo "${ECHO_T}$ac_cv_have_decl___sys_siglist" >&6
6310 if test $ac_cv_have_decl___sys_siglist = yes; then
6312 cat >>confdefs.h <<_ACEOF
6313 #define HAVE_DECL___SYS_SIGLIST 1
6314 _ACEOF
6317 else
6318 cat >>confdefs.h <<_ACEOF
6319 #define HAVE_DECL___SYS_SIGLIST 0
6320 _ACEOF
6326 if test $ac_cv_have_decl___sys_siglist = yes; then
6328 cat >>confdefs.h <<\_ACEOF
6329 #define sys_siglist __sys_siglist
6330 _ACEOF
6334 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
6335 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
6336 if test "${ac_cv_header_sys_wait_h+set}" = set; then
6337 echo $ECHO_N "(cached) $ECHO_C" >&6
6338 else
6339 cat >conftest.$ac_ext <<_ACEOF
6340 /* confdefs.h. */
6341 _ACEOF
6342 cat confdefs.h >>conftest.$ac_ext
6343 cat >>conftest.$ac_ext <<_ACEOF
6344 /* end confdefs.h. */
6345 #include <sys/types.h>
6346 #include <sys/wait.h>
6347 #ifndef WEXITSTATUS
6348 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
6349 #endif
6350 #ifndef WIFEXITED
6351 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
6352 #endif
6355 main ()
6357 int s;
6358 wait (&s);
6359 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
6361 return 0;
6363 _ACEOF
6364 rm -f conftest.$ac_objext
6365 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6366 (eval $ac_compile) 2>conftest.er1
6367 ac_status=$?
6368 grep -v '^ *+' conftest.er1 >conftest.err
6369 rm -f conftest.er1
6370 cat conftest.err >&5
6371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6372 (exit $ac_status); } &&
6373 { ac_try='test -z "$ac_c_werror_flag"
6374 || test ! -s conftest.err'
6375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6376 (eval $ac_try) 2>&5
6377 ac_status=$?
6378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6379 (exit $ac_status); }; } &&
6380 { ac_try='test -s conftest.$ac_objext'
6381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6382 (eval $ac_try) 2>&5
6383 ac_status=$?
6384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6385 (exit $ac_status); }; }; then
6386 ac_cv_header_sys_wait_h=yes
6387 else
6388 echo "$as_me: failed program was:" >&5
6389 sed 's/^/| /' conftest.$ac_ext >&5
6391 ac_cv_header_sys_wait_h=no
6393 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6395 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
6396 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
6397 if test $ac_cv_header_sys_wait_h = yes; then
6399 cat >>confdefs.h <<\_ACEOF
6400 #define HAVE_SYS_WAIT_H 1
6401 _ACEOF
6406 echo "$as_me:$LINENO: checking for struct utimbuf" >&5
6407 echo $ECHO_N "checking for struct utimbuf... $ECHO_C" >&6
6408 if test "${emacs_cv_struct_utimbuf+set}" = set; then
6409 echo $ECHO_N "(cached) $ECHO_C" >&6
6410 else
6411 cat >conftest.$ac_ext <<_ACEOF
6412 /* confdefs.h. */
6413 _ACEOF
6414 cat confdefs.h >>conftest.$ac_ext
6415 cat >>conftest.$ac_ext <<_ACEOF
6416 /* end confdefs.h. */
6417 #ifdef TIME_WITH_SYS_TIME
6418 #include <sys/time.h>
6419 #include <time.h>
6420 #else
6421 #ifdef HAVE_SYS_TIME_H
6422 #include <sys/time.h>
6423 #else
6424 #include <time.h>
6425 #endif
6426 #endif
6427 #ifdef HAVE_UTIME_H
6428 #include <utime.h>
6429 #endif
6431 main ()
6433 static struct utimbuf x; x.actime = x.modtime;
6435 return 0;
6437 _ACEOF
6438 rm -f conftest.$ac_objext
6439 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6440 (eval $ac_compile) 2>conftest.er1
6441 ac_status=$?
6442 grep -v '^ *+' conftest.er1 >conftest.err
6443 rm -f conftest.er1
6444 cat conftest.err >&5
6445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6446 (exit $ac_status); } &&
6447 { ac_try='test -z "$ac_c_werror_flag"
6448 || test ! -s conftest.err'
6449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6450 (eval $ac_try) 2>&5
6451 ac_status=$?
6452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6453 (exit $ac_status); }; } &&
6454 { ac_try='test -s conftest.$ac_objext'
6455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6456 (eval $ac_try) 2>&5
6457 ac_status=$?
6458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6459 (exit $ac_status); }; }; then
6460 emacs_cv_struct_utimbuf=yes
6461 else
6462 echo "$as_me: failed program was:" >&5
6463 sed 's/^/| /' conftest.$ac_ext >&5
6465 emacs_cv_struct_utimbuf=no
6467 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6469 echo "$as_me:$LINENO: result: $emacs_cv_struct_utimbuf" >&5
6470 echo "${ECHO_T}$emacs_cv_struct_utimbuf" >&6
6471 if test $emacs_cv_struct_utimbuf = yes; then
6473 cat >>confdefs.h <<\_ACEOF
6474 #define HAVE_STRUCT_UTIMBUF 1
6475 _ACEOF
6479 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
6480 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
6481 if test "${ac_cv_type_signal+set}" = set; then
6482 echo $ECHO_N "(cached) $ECHO_C" >&6
6483 else
6484 cat >conftest.$ac_ext <<_ACEOF
6485 /* confdefs.h. */
6486 _ACEOF
6487 cat confdefs.h >>conftest.$ac_ext
6488 cat >>conftest.$ac_ext <<_ACEOF
6489 /* end confdefs.h. */
6490 #include <sys/types.h>
6491 #include <signal.h>
6492 #ifdef signal
6493 # undef signal
6494 #endif
6495 #ifdef __cplusplus
6496 extern "C" void (*signal (int, void (*)(int)))(int);
6497 #else
6498 void (*signal ()) ();
6499 #endif
6502 main ()
6504 int i;
6506 return 0;
6508 _ACEOF
6509 rm -f conftest.$ac_objext
6510 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6511 (eval $ac_compile) 2>conftest.er1
6512 ac_status=$?
6513 grep -v '^ *+' conftest.er1 >conftest.err
6514 rm -f conftest.er1
6515 cat conftest.err >&5
6516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6517 (exit $ac_status); } &&
6518 { ac_try='test -z "$ac_c_werror_flag"
6519 || test ! -s conftest.err'
6520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6521 (eval $ac_try) 2>&5
6522 ac_status=$?
6523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6524 (exit $ac_status); }; } &&
6525 { ac_try='test -s conftest.$ac_objext'
6526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6527 (eval $ac_try) 2>&5
6528 ac_status=$?
6529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6530 (exit $ac_status); }; }; then
6531 ac_cv_type_signal=void
6532 else
6533 echo "$as_me: failed program was:" >&5
6534 sed 's/^/| /' conftest.$ac_ext >&5
6536 ac_cv_type_signal=int
6538 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6540 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
6541 echo "${ECHO_T}$ac_cv_type_signal" >&6
6543 cat >>confdefs.h <<_ACEOF
6544 #define RETSIGTYPE $ac_cv_type_signal
6545 _ACEOF
6549 echo "$as_me:$LINENO: checking for speed_t" >&5
6550 echo $ECHO_N "checking for speed_t... $ECHO_C" >&6
6551 if test "${emacs_cv_speed_t+set}" = set; then
6552 echo $ECHO_N "(cached) $ECHO_C" >&6
6553 else
6554 cat >conftest.$ac_ext <<_ACEOF
6555 /* confdefs.h. */
6556 _ACEOF
6557 cat confdefs.h >>conftest.$ac_ext
6558 cat >>conftest.$ac_ext <<_ACEOF
6559 /* end confdefs.h. */
6560 #include <termios.h>
6562 main ()
6564 speed_t x = 1;
6566 return 0;
6568 _ACEOF
6569 rm -f conftest.$ac_objext
6570 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6571 (eval $ac_compile) 2>conftest.er1
6572 ac_status=$?
6573 grep -v '^ *+' conftest.er1 >conftest.err
6574 rm -f conftest.er1
6575 cat conftest.err >&5
6576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6577 (exit $ac_status); } &&
6578 { ac_try='test -z "$ac_c_werror_flag"
6579 || test ! -s conftest.err'
6580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6581 (eval $ac_try) 2>&5
6582 ac_status=$?
6583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6584 (exit $ac_status); }; } &&
6585 { ac_try='test -s conftest.$ac_objext'
6586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6587 (eval $ac_try) 2>&5
6588 ac_status=$?
6589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6590 (exit $ac_status); }; }; then
6591 emacs_cv_speed_t=yes
6592 else
6593 echo "$as_me: failed program was:" >&5
6594 sed 's/^/| /' conftest.$ac_ext >&5
6596 emacs_cv_speed_t=no
6598 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6600 echo "$as_me:$LINENO: result: $emacs_cv_speed_t" >&5
6601 echo "${ECHO_T}$emacs_cv_speed_t" >&6
6602 if test $emacs_cv_speed_t = yes; then
6604 cat >>confdefs.h <<\_ACEOF
6605 #define HAVE_SPEED_T 1
6606 _ACEOF
6610 echo "$as_me:$LINENO: checking for struct timeval" >&5
6611 echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6
6612 if test "${emacs_cv_struct_timeval+set}" = set; then
6613 echo $ECHO_N "(cached) $ECHO_C" >&6
6614 else
6615 cat >conftest.$ac_ext <<_ACEOF
6616 /* confdefs.h. */
6617 _ACEOF
6618 cat confdefs.h >>conftest.$ac_ext
6619 cat >>conftest.$ac_ext <<_ACEOF
6620 /* end confdefs.h. */
6621 #ifdef TIME_WITH_SYS_TIME
6622 #include <sys/time.h>
6623 #include <time.h>
6624 #else
6625 #ifdef HAVE_SYS_TIME_H
6626 #include <sys/time.h>
6627 #else
6628 #include <time.h>
6629 #endif
6630 #endif
6632 main ()
6634 static struct timeval x; x.tv_sec = x.tv_usec;
6636 return 0;
6638 _ACEOF
6639 rm -f conftest.$ac_objext
6640 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6641 (eval $ac_compile) 2>conftest.er1
6642 ac_status=$?
6643 grep -v '^ *+' conftest.er1 >conftest.err
6644 rm -f conftest.er1
6645 cat conftest.err >&5
6646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6647 (exit $ac_status); } &&
6648 { ac_try='test -z "$ac_c_werror_flag"
6649 || test ! -s conftest.err'
6650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6651 (eval $ac_try) 2>&5
6652 ac_status=$?
6653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6654 (exit $ac_status); }; } &&
6655 { ac_try='test -s conftest.$ac_objext'
6656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6657 (eval $ac_try) 2>&5
6658 ac_status=$?
6659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6660 (exit $ac_status); }; }; then
6661 emacs_cv_struct_timeval=yes
6662 else
6663 echo "$as_me: failed program was:" >&5
6664 sed 's/^/| /' conftest.$ac_ext >&5
6666 emacs_cv_struct_timeval=no
6668 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6670 echo "$as_me:$LINENO: result: $emacs_cv_struct_timeval" >&5
6671 echo "${ECHO_T}$emacs_cv_struct_timeval" >&6
6672 HAVE_TIMEVAL=$emacs_cv_struct_timeval
6673 if test $emacs_cv_struct_timeval = yes; then
6675 cat >>confdefs.h <<\_ACEOF
6676 #define HAVE_TIMEVAL 1
6677 _ACEOF
6681 echo "$as_me:$LINENO: checking for struct exception" >&5
6682 echo $ECHO_N "checking for struct exception... $ECHO_C" >&6
6683 if test "${emacs_cv_struct_exception+set}" = set; then
6684 echo $ECHO_N "(cached) $ECHO_C" >&6
6685 else
6686 cat >conftest.$ac_ext <<_ACEOF
6687 /* confdefs.h. */
6688 _ACEOF
6689 cat confdefs.h >>conftest.$ac_ext
6690 cat >>conftest.$ac_ext <<_ACEOF
6691 /* end confdefs.h. */
6692 #include <math.h>
6694 main ()
6696 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
6698 return 0;
6700 _ACEOF
6701 rm -f conftest.$ac_objext
6702 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6703 (eval $ac_compile) 2>conftest.er1
6704 ac_status=$?
6705 grep -v '^ *+' conftest.er1 >conftest.err
6706 rm -f conftest.er1
6707 cat conftest.err >&5
6708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6709 (exit $ac_status); } &&
6710 { ac_try='test -z "$ac_c_werror_flag"
6711 || test ! -s conftest.err'
6712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6713 (eval $ac_try) 2>&5
6714 ac_status=$?
6715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6716 (exit $ac_status); }; } &&
6717 { ac_try='test -s conftest.$ac_objext'
6718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6719 (eval $ac_try) 2>&5
6720 ac_status=$?
6721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6722 (exit $ac_status); }; }; then
6723 emacs_cv_struct_exception=yes
6724 else
6725 echo "$as_me: failed program was:" >&5
6726 sed 's/^/| /' conftest.$ac_ext >&5
6728 emacs_cv_struct_exception=no
6730 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6732 echo "$as_me:$LINENO: result: $emacs_cv_struct_exception" >&5
6733 echo "${ECHO_T}$emacs_cv_struct_exception" >&6
6734 HAVE_EXCEPTION=$emacs_cv_struct_exception
6735 if test $emacs_cv_struct_exception != yes; then
6737 cat >>confdefs.h <<\_ACEOF
6738 #define NO_MATHERR 1
6739 _ACEOF
6744 for ac_header in sys/socket.h
6746 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6747 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6748 echo "$as_me:$LINENO: checking for $ac_header" >&5
6749 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6750 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6751 echo $ECHO_N "(cached) $ECHO_C" >&6
6753 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6754 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6755 else
6756 # Is the header compilable?
6757 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6758 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6759 cat >conftest.$ac_ext <<_ACEOF
6760 /* confdefs.h. */
6761 _ACEOF
6762 cat confdefs.h >>conftest.$ac_ext
6763 cat >>conftest.$ac_ext <<_ACEOF
6764 /* end confdefs.h. */
6765 $ac_includes_default
6766 #include <$ac_header>
6767 _ACEOF
6768 rm -f conftest.$ac_objext
6769 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6770 (eval $ac_compile) 2>conftest.er1
6771 ac_status=$?
6772 grep -v '^ *+' conftest.er1 >conftest.err
6773 rm -f conftest.er1
6774 cat conftest.err >&5
6775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6776 (exit $ac_status); } &&
6777 { ac_try='test -z "$ac_c_werror_flag"
6778 || test ! -s conftest.err'
6779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6780 (eval $ac_try) 2>&5
6781 ac_status=$?
6782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6783 (exit $ac_status); }; } &&
6784 { ac_try='test -s conftest.$ac_objext'
6785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6786 (eval $ac_try) 2>&5
6787 ac_status=$?
6788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6789 (exit $ac_status); }; }; then
6790 ac_header_compiler=yes
6791 else
6792 echo "$as_me: failed program was:" >&5
6793 sed 's/^/| /' conftest.$ac_ext >&5
6795 ac_header_compiler=no
6797 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6798 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6799 echo "${ECHO_T}$ac_header_compiler" >&6
6801 # Is the header present?
6802 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6803 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6804 cat >conftest.$ac_ext <<_ACEOF
6805 /* confdefs.h. */
6806 _ACEOF
6807 cat confdefs.h >>conftest.$ac_ext
6808 cat >>conftest.$ac_ext <<_ACEOF
6809 /* end confdefs.h. */
6810 #include <$ac_header>
6811 _ACEOF
6812 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6813 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6814 ac_status=$?
6815 grep -v '^ *+' conftest.er1 >conftest.err
6816 rm -f conftest.er1
6817 cat conftest.err >&5
6818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6819 (exit $ac_status); } >/dev/null; then
6820 if test -s conftest.err; then
6821 ac_cpp_err=$ac_c_preproc_warn_flag
6822 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6823 else
6824 ac_cpp_err=
6826 else
6827 ac_cpp_err=yes
6829 if test -z "$ac_cpp_err"; then
6830 ac_header_preproc=yes
6831 else
6832 echo "$as_me: failed program was:" >&5
6833 sed 's/^/| /' conftest.$ac_ext >&5
6835 ac_header_preproc=no
6837 rm -f conftest.err conftest.$ac_ext
6838 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6839 echo "${ECHO_T}$ac_header_preproc" >&6
6841 # So? What about this header?
6842 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6843 yes:no: )
6844 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6845 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6846 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6847 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6848 ac_header_preproc=yes
6850 no:yes:* )
6851 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6852 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6853 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6854 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6855 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6856 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6857 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6858 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6859 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6860 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6861 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6862 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6864 cat <<\_ASBOX
6865 ## ------------------------------------------ ##
6866 ## Report this to the AC_PACKAGE_NAME lists. ##
6867 ## ------------------------------------------ ##
6868 _ASBOX
6870 sed "s/^/$as_me: WARNING: /" >&2
6872 esac
6873 echo "$as_me:$LINENO: checking for $ac_header" >&5
6874 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6875 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6876 echo $ECHO_N "(cached) $ECHO_C" >&6
6877 else
6878 eval "$as_ac_Header=\$ac_header_preproc"
6880 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6881 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6884 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6885 cat >>confdefs.h <<_ACEOF
6886 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6887 _ACEOF
6891 done
6894 for ac_header in net/if.h
6896 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6897 echo "$as_me:$LINENO: checking for $ac_header" >&5
6898 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6899 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6900 echo $ECHO_N "(cached) $ECHO_C" >&6
6901 else
6902 cat >conftest.$ac_ext <<_ACEOF
6903 /* confdefs.h. */
6904 _ACEOF
6905 cat confdefs.h >>conftest.$ac_ext
6906 cat >>conftest.$ac_ext <<_ACEOF
6907 /* end confdefs.h. */
6908 $ac_includes_default
6909 #if HAVE_SYS_SOCKET_H
6910 #include <sys/socket.h>
6911 #endif
6913 #include <$ac_header>
6914 _ACEOF
6915 rm -f conftest.$ac_objext
6916 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6917 (eval $ac_compile) 2>conftest.er1
6918 ac_status=$?
6919 grep -v '^ *+' conftest.er1 >conftest.err
6920 rm -f conftest.er1
6921 cat conftest.err >&5
6922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6923 (exit $ac_status); } &&
6924 { ac_try='test -z "$ac_c_werror_flag"
6925 || test ! -s conftest.err'
6926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6927 (eval $ac_try) 2>&5
6928 ac_status=$?
6929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6930 (exit $ac_status); }; } &&
6931 { ac_try='test -s conftest.$ac_objext'
6932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6933 (eval $ac_try) 2>&5
6934 ac_status=$?
6935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6936 (exit $ac_status); }; }; then
6937 eval "$as_ac_Header=yes"
6938 else
6939 echo "$as_me: failed program was:" >&5
6940 sed 's/^/| /' conftest.$ac_ext >&5
6942 eval "$as_ac_Header=no"
6944 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6946 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6947 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6948 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6949 cat >>confdefs.h <<_ACEOF
6950 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6951 _ACEOF
6955 done
6958 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
6959 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
6960 if test "${ac_cv_struct_tm+set}" = set; then
6961 echo $ECHO_N "(cached) $ECHO_C" >&6
6962 else
6963 cat >conftest.$ac_ext <<_ACEOF
6964 /* confdefs.h. */
6965 _ACEOF
6966 cat confdefs.h >>conftest.$ac_ext
6967 cat >>conftest.$ac_ext <<_ACEOF
6968 /* end confdefs.h. */
6969 #include <sys/types.h>
6970 #include <time.h>
6973 main ()
6975 struct tm *tp; tp->tm_sec;
6977 return 0;
6979 _ACEOF
6980 rm -f conftest.$ac_objext
6981 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6982 (eval $ac_compile) 2>conftest.er1
6983 ac_status=$?
6984 grep -v '^ *+' conftest.er1 >conftest.err
6985 rm -f conftest.er1
6986 cat conftest.err >&5
6987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6988 (exit $ac_status); } &&
6989 { ac_try='test -z "$ac_c_werror_flag"
6990 || test ! -s conftest.err'
6991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6992 (eval $ac_try) 2>&5
6993 ac_status=$?
6994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6995 (exit $ac_status); }; } &&
6996 { ac_try='test -s conftest.$ac_objext'
6997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6998 (eval $ac_try) 2>&5
6999 ac_status=$?
7000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7001 (exit $ac_status); }; }; then
7002 ac_cv_struct_tm=time.h
7003 else
7004 echo "$as_me: failed program was:" >&5
7005 sed 's/^/| /' conftest.$ac_ext >&5
7007 ac_cv_struct_tm=sys/time.h
7009 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7011 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
7012 echo "${ECHO_T}$ac_cv_struct_tm" >&6
7013 if test $ac_cv_struct_tm = sys/time.h; then
7015 cat >>confdefs.h <<\_ACEOF
7016 #define TM_IN_SYS_TIME 1
7017 _ACEOF
7021 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
7022 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
7023 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
7024 echo $ECHO_N "(cached) $ECHO_C" >&6
7025 else
7026 cat >conftest.$ac_ext <<_ACEOF
7027 /* confdefs.h. */
7028 _ACEOF
7029 cat confdefs.h >>conftest.$ac_ext
7030 cat >>conftest.$ac_ext <<_ACEOF
7031 /* end confdefs.h. */
7032 #include <sys/types.h>
7033 #include <$ac_cv_struct_tm>
7037 main ()
7039 static struct tm ac_aggr;
7040 if (ac_aggr.tm_zone)
7041 return 0;
7043 return 0;
7045 _ACEOF
7046 rm -f conftest.$ac_objext
7047 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7048 (eval $ac_compile) 2>conftest.er1
7049 ac_status=$?
7050 grep -v '^ *+' conftest.er1 >conftest.err
7051 rm -f conftest.er1
7052 cat conftest.err >&5
7053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7054 (exit $ac_status); } &&
7055 { ac_try='test -z "$ac_c_werror_flag"
7056 || test ! -s conftest.err'
7057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7058 (eval $ac_try) 2>&5
7059 ac_status=$?
7060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7061 (exit $ac_status); }; } &&
7062 { ac_try='test -s conftest.$ac_objext'
7063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7064 (eval $ac_try) 2>&5
7065 ac_status=$?
7066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7067 (exit $ac_status); }; }; then
7068 ac_cv_member_struct_tm_tm_zone=yes
7069 else
7070 echo "$as_me: failed program was:" >&5
7071 sed 's/^/| /' conftest.$ac_ext >&5
7073 cat >conftest.$ac_ext <<_ACEOF
7074 /* confdefs.h. */
7075 _ACEOF
7076 cat confdefs.h >>conftest.$ac_ext
7077 cat >>conftest.$ac_ext <<_ACEOF
7078 /* end confdefs.h. */
7079 #include <sys/types.h>
7080 #include <$ac_cv_struct_tm>
7084 main ()
7086 static struct tm ac_aggr;
7087 if (sizeof ac_aggr.tm_zone)
7088 return 0;
7090 return 0;
7092 _ACEOF
7093 rm -f conftest.$ac_objext
7094 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7095 (eval $ac_compile) 2>conftest.er1
7096 ac_status=$?
7097 grep -v '^ *+' conftest.er1 >conftest.err
7098 rm -f conftest.er1
7099 cat conftest.err >&5
7100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7101 (exit $ac_status); } &&
7102 { ac_try='test -z "$ac_c_werror_flag"
7103 || test ! -s conftest.err'
7104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7105 (eval $ac_try) 2>&5
7106 ac_status=$?
7107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7108 (exit $ac_status); }; } &&
7109 { ac_try='test -s conftest.$ac_objext'
7110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7111 (eval $ac_try) 2>&5
7112 ac_status=$?
7113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7114 (exit $ac_status); }; }; then
7115 ac_cv_member_struct_tm_tm_zone=yes
7116 else
7117 echo "$as_me: failed program was:" >&5
7118 sed 's/^/| /' conftest.$ac_ext >&5
7120 ac_cv_member_struct_tm_tm_zone=no
7122 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7124 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7126 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
7127 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
7128 if test $ac_cv_member_struct_tm_tm_zone = yes; then
7130 cat >>confdefs.h <<_ACEOF
7131 #define HAVE_STRUCT_TM_TM_ZONE 1
7132 _ACEOF
7137 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
7139 cat >>confdefs.h <<\_ACEOF
7140 #define HAVE_TM_ZONE 1
7141 _ACEOF
7143 else
7144 echo "$as_me:$LINENO: checking for tzname" >&5
7145 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
7146 if test "${ac_cv_var_tzname+set}" = set; then
7147 echo $ECHO_N "(cached) $ECHO_C" >&6
7148 else
7149 cat >conftest.$ac_ext <<_ACEOF
7150 /* confdefs.h. */
7151 _ACEOF
7152 cat confdefs.h >>conftest.$ac_ext
7153 cat >>conftest.$ac_ext <<_ACEOF
7154 /* end confdefs.h. */
7155 #include <time.h>
7156 #ifndef tzname /* For SGI. */
7157 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
7158 #endif
7161 main ()
7163 atoi(*tzname);
7165 return 0;
7167 _ACEOF
7168 rm -f conftest.$ac_objext conftest$ac_exeext
7169 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7170 (eval $ac_link) 2>conftest.er1
7171 ac_status=$?
7172 grep -v '^ *+' conftest.er1 >conftest.err
7173 rm -f conftest.er1
7174 cat conftest.err >&5
7175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7176 (exit $ac_status); } &&
7177 { ac_try='test -z "$ac_c_werror_flag"
7178 || test ! -s conftest.err'
7179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7180 (eval $ac_try) 2>&5
7181 ac_status=$?
7182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7183 (exit $ac_status); }; } &&
7184 { ac_try='test -s conftest$ac_exeext'
7185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7186 (eval $ac_try) 2>&5
7187 ac_status=$?
7188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7189 (exit $ac_status); }; }; then
7190 ac_cv_var_tzname=yes
7191 else
7192 echo "$as_me: failed program was:" >&5
7193 sed 's/^/| /' conftest.$ac_ext >&5
7195 ac_cv_var_tzname=no
7197 rm -f conftest.err conftest.$ac_objext \
7198 conftest$ac_exeext conftest.$ac_ext
7200 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
7201 echo "${ECHO_T}$ac_cv_var_tzname" >&6
7202 if test $ac_cv_var_tzname = yes; then
7204 cat >>confdefs.h <<\_ACEOF
7205 #define HAVE_TZNAME 1
7206 _ACEOF
7211 echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
7212 echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6
7213 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
7214 echo $ECHO_N "(cached) $ECHO_C" >&6
7215 else
7216 cat >conftest.$ac_ext <<_ACEOF
7217 /* confdefs.h. */
7218 _ACEOF
7219 cat confdefs.h >>conftest.$ac_ext
7220 cat >>conftest.$ac_ext <<_ACEOF
7221 /* end confdefs.h. */
7222 #include <time.h>
7225 main ()
7227 static struct tm ac_aggr;
7228 if (ac_aggr.tm_gmtoff)
7229 return 0;
7231 return 0;
7233 _ACEOF
7234 rm -f conftest.$ac_objext
7235 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7236 (eval $ac_compile) 2>conftest.er1
7237 ac_status=$?
7238 grep -v '^ *+' conftest.er1 >conftest.err
7239 rm -f conftest.er1
7240 cat conftest.err >&5
7241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7242 (exit $ac_status); } &&
7243 { ac_try='test -z "$ac_c_werror_flag"
7244 || test ! -s conftest.err'
7245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7246 (eval $ac_try) 2>&5
7247 ac_status=$?
7248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7249 (exit $ac_status); }; } &&
7250 { ac_try='test -s conftest.$ac_objext'
7251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7252 (eval $ac_try) 2>&5
7253 ac_status=$?
7254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7255 (exit $ac_status); }; }; then
7256 ac_cv_member_struct_tm_tm_gmtoff=yes
7257 else
7258 echo "$as_me: failed program was:" >&5
7259 sed 's/^/| /' conftest.$ac_ext >&5
7261 cat >conftest.$ac_ext <<_ACEOF
7262 /* confdefs.h. */
7263 _ACEOF
7264 cat confdefs.h >>conftest.$ac_ext
7265 cat >>conftest.$ac_ext <<_ACEOF
7266 /* end confdefs.h. */
7267 #include <time.h>
7270 main ()
7272 static struct tm ac_aggr;
7273 if (sizeof ac_aggr.tm_gmtoff)
7274 return 0;
7276 return 0;
7278 _ACEOF
7279 rm -f conftest.$ac_objext
7280 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7281 (eval $ac_compile) 2>conftest.er1
7282 ac_status=$?
7283 grep -v '^ *+' conftest.er1 >conftest.err
7284 rm -f conftest.er1
7285 cat conftest.err >&5
7286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7287 (exit $ac_status); } &&
7288 { ac_try='test -z "$ac_c_werror_flag"
7289 || test ! -s conftest.err'
7290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7291 (eval $ac_try) 2>&5
7292 ac_status=$?
7293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7294 (exit $ac_status); }; } &&
7295 { ac_try='test -s conftest.$ac_objext'
7296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7297 (eval $ac_try) 2>&5
7298 ac_status=$?
7299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7300 (exit $ac_status); }; }; then
7301 ac_cv_member_struct_tm_tm_gmtoff=yes
7302 else
7303 echo "$as_me: failed program was:" >&5
7304 sed 's/^/| /' conftest.$ac_ext >&5
7306 ac_cv_member_struct_tm_tm_gmtoff=no
7308 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7310 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7312 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
7313 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6
7314 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
7316 cat >>confdefs.h <<\_ACEOF
7317 #define HAVE_TM_GMTOFF 1
7318 _ACEOF
7322 echo "$as_me:$LINENO: checking for struct ifreq.ifr_flags" >&5
7323 echo $ECHO_N "checking for struct ifreq.ifr_flags... $ECHO_C" >&6
7324 if test "${ac_cv_member_struct_ifreq_ifr_flags+set}" = set; then
7325 echo $ECHO_N "(cached) $ECHO_C" >&6
7326 else
7327 cat >conftest.$ac_ext <<_ACEOF
7328 /* confdefs.h. */
7329 _ACEOF
7330 cat confdefs.h >>conftest.$ac_ext
7331 cat >>conftest.$ac_ext <<_ACEOF
7332 /* end confdefs.h. */
7333 $ac_includes_default
7334 #if HAVE_SYS_SOCKET_H
7335 #include <sys/socket.h>
7336 #endif
7337 #if HAVE_NET_IF_H
7338 #include <net/if.h>
7339 #endif
7342 main ()
7344 static struct ifreq ac_aggr;
7345 if (ac_aggr.ifr_flags)
7346 return 0;
7348 return 0;
7350 _ACEOF
7351 rm -f conftest.$ac_objext
7352 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7353 (eval $ac_compile) 2>conftest.er1
7354 ac_status=$?
7355 grep -v '^ *+' conftest.er1 >conftest.err
7356 rm -f conftest.er1
7357 cat conftest.err >&5
7358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7359 (exit $ac_status); } &&
7360 { ac_try='test -z "$ac_c_werror_flag"
7361 || test ! -s conftest.err'
7362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7363 (eval $ac_try) 2>&5
7364 ac_status=$?
7365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7366 (exit $ac_status); }; } &&
7367 { ac_try='test -s conftest.$ac_objext'
7368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7369 (eval $ac_try) 2>&5
7370 ac_status=$?
7371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7372 (exit $ac_status); }; }; then
7373 ac_cv_member_struct_ifreq_ifr_flags=yes
7374 else
7375 echo "$as_me: failed program was:" >&5
7376 sed 's/^/| /' conftest.$ac_ext >&5
7378 cat >conftest.$ac_ext <<_ACEOF
7379 /* confdefs.h. */
7380 _ACEOF
7381 cat confdefs.h >>conftest.$ac_ext
7382 cat >>conftest.$ac_ext <<_ACEOF
7383 /* end confdefs.h. */
7384 $ac_includes_default
7385 #if HAVE_SYS_SOCKET_H
7386 #include <sys/socket.h>
7387 #endif
7388 #if HAVE_NET_IF_H
7389 #include <net/if.h>
7390 #endif
7393 main ()
7395 static struct ifreq ac_aggr;
7396 if (sizeof ac_aggr.ifr_flags)
7397 return 0;
7399 return 0;
7401 _ACEOF
7402 rm -f conftest.$ac_objext
7403 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7404 (eval $ac_compile) 2>conftest.er1
7405 ac_status=$?
7406 grep -v '^ *+' conftest.er1 >conftest.err
7407 rm -f conftest.er1
7408 cat conftest.err >&5
7409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7410 (exit $ac_status); } &&
7411 { ac_try='test -z "$ac_c_werror_flag"
7412 || test ! -s conftest.err'
7413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7414 (eval $ac_try) 2>&5
7415 ac_status=$?
7416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7417 (exit $ac_status); }; } &&
7418 { ac_try='test -s conftest.$ac_objext'
7419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7420 (eval $ac_try) 2>&5
7421 ac_status=$?
7422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7423 (exit $ac_status); }; }; then
7424 ac_cv_member_struct_ifreq_ifr_flags=yes
7425 else
7426 echo "$as_me: failed program was:" >&5
7427 sed 's/^/| /' conftest.$ac_ext >&5
7429 ac_cv_member_struct_ifreq_ifr_flags=no
7431 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7433 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7435 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_flags" >&5
7436 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_flags" >&6
7437 if test $ac_cv_member_struct_ifreq_ifr_flags = yes; then
7439 cat >>confdefs.h <<_ACEOF
7440 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
7441 _ACEOF
7445 echo "$as_me:$LINENO: checking for struct ifreq.ifr_hwaddr" >&5
7446 echo $ECHO_N "checking for struct ifreq.ifr_hwaddr... $ECHO_C" >&6
7447 if test "${ac_cv_member_struct_ifreq_ifr_hwaddr+set}" = set; then
7448 echo $ECHO_N "(cached) $ECHO_C" >&6
7449 else
7450 cat >conftest.$ac_ext <<_ACEOF
7451 /* confdefs.h. */
7452 _ACEOF
7453 cat confdefs.h >>conftest.$ac_ext
7454 cat >>conftest.$ac_ext <<_ACEOF
7455 /* end confdefs.h. */
7456 $ac_includes_default
7457 #if HAVE_SYS_SOCKET_H
7458 #include <sys/socket.h>
7459 #endif
7460 #if HAVE_NET_IF_H
7461 #include <net/if.h>
7462 #endif
7465 main ()
7467 static struct ifreq ac_aggr;
7468 if (ac_aggr.ifr_hwaddr)
7469 return 0;
7471 return 0;
7473 _ACEOF
7474 rm -f conftest.$ac_objext
7475 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7476 (eval $ac_compile) 2>conftest.er1
7477 ac_status=$?
7478 grep -v '^ *+' conftest.er1 >conftest.err
7479 rm -f conftest.er1
7480 cat conftest.err >&5
7481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7482 (exit $ac_status); } &&
7483 { ac_try='test -z "$ac_c_werror_flag"
7484 || test ! -s conftest.err'
7485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7486 (eval $ac_try) 2>&5
7487 ac_status=$?
7488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7489 (exit $ac_status); }; } &&
7490 { ac_try='test -s conftest.$ac_objext'
7491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7492 (eval $ac_try) 2>&5
7493 ac_status=$?
7494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7495 (exit $ac_status); }; }; then
7496 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
7497 else
7498 echo "$as_me: failed program was:" >&5
7499 sed 's/^/| /' conftest.$ac_ext >&5
7501 cat >conftest.$ac_ext <<_ACEOF
7502 /* confdefs.h. */
7503 _ACEOF
7504 cat confdefs.h >>conftest.$ac_ext
7505 cat >>conftest.$ac_ext <<_ACEOF
7506 /* end confdefs.h. */
7507 $ac_includes_default
7508 #if HAVE_SYS_SOCKET_H
7509 #include <sys/socket.h>
7510 #endif
7511 #if HAVE_NET_IF_H
7512 #include <net/if.h>
7513 #endif
7516 main ()
7518 static struct ifreq ac_aggr;
7519 if (sizeof ac_aggr.ifr_hwaddr)
7520 return 0;
7522 return 0;
7524 _ACEOF
7525 rm -f conftest.$ac_objext
7526 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7527 (eval $ac_compile) 2>conftest.er1
7528 ac_status=$?
7529 grep -v '^ *+' conftest.er1 >conftest.err
7530 rm -f conftest.er1
7531 cat conftest.err >&5
7532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7533 (exit $ac_status); } &&
7534 { ac_try='test -z "$ac_c_werror_flag"
7535 || test ! -s conftest.err'
7536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7537 (eval $ac_try) 2>&5
7538 ac_status=$?
7539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7540 (exit $ac_status); }; } &&
7541 { ac_try='test -s conftest.$ac_objext'
7542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7543 (eval $ac_try) 2>&5
7544 ac_status=$?
7545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7546 (exit $ac_status); }; }; then
7547 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
7548 else
7549 echo "$as_me: failed program was:" >&5
7550 sed 's/^/| /' conftest.$ac_ext >&5
7552 ac_cv_member_struct_ifreq_ifr_hwaddr=no
7554 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7556 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7558 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_hwaddr" >&5
7559 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_hwaddr" >&6
7560 if test $ac_cv_member_struct_ifreq_ifr_hwaddr = yes; then
7562 cat >>confdefs.h <<_ACEOF
7563 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
7564 _ACEOF
7568 echo "$as_me:$LINENO: checking for struct ifreq.ifr_netmask" >&5
7569 echo $ECHO_N "checking for struct ifreq.ifr_netmask... $ECHO_C" >&6
7570 if test "${ac_cv_member_struct_ifreq_ifr_netmask+set}" = set; then
7571 echo $ECHO_N "(cached) $ECHO_C" >&6
7572 else
7573 cat >conftest.$ac_ext <<_ACEOF
7574 /* confdefs.h. */
7575 _ACEOF
7576 cat confdefs.h >>conftest.$ac_ext
7577 cat >>conftest.$ac_ext <<_ACEOF
7578 /* end confdefs.h. */
7579 $ac_includes_default
7580 #if HAVE_SYS_SOCKET_H
7581 #include <sys/socket.h>
7582 #endif
7583 #if HAVE_NET_IF_H
7584 #include <net/if.h>
7585 #endif
7588 main ()
7590 static struct ifreq ac_aggr;
7591 if (ac_aggr.ifr_netmask)
7592 return 0;
7594 return 0;
7596 _ACEOF
7597 rm -f conftest.$ac_objext
7598 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7599 (eval $ac_compile) 2>conftest.er1
7600 ac_status=$?
7601 grep -v '^ *+' conftest.er1 >conftest.err
7602 rm -f conftest.er1
7603 cat conftest.err >&5
7604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7605 (exit $ac_status); } &&
7606 { ac_try='test -z "$ac_c_werror_flag"
7607 || test ! -s conftest.err'
7608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7609 (eval $ac_try) 2>&5
7610 ac_status=$?
7611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7612 (exit $ac_status); }; } &&
7613 { ac_try='test -s conftest.$ac_objext'
7614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7615 (eval $ac_try) 2>&5
7616 ac_status=$?
7617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7618 (exit $ac_status); }; }; then
7619 ac_cv_member_struct_ifreq_ifr_netmask=yes
7620 else
7621 echo "$as_me: failed program was:" >&5
7622 sed 's/^/| /' conftest.$ac_ext >&5
7624 cat >conftest.$ac_ext <<_ACEOF
7625 /* confdefs.h. */
7626 _ACEOF
7627 cat confdefs.h >>conftest.$ac_ext
7628 cat >>conftest.$ac_ext <<_ACEOF
7629 /* end confdefs.h. */
7630 $ac_includes_default
7631 #if HAVE_SYS_SOCKET_H
7632 #include <sys/socket.h>
7633 #endif
7634 #if HAVE_NET_IF_H
7635 #include <net/if.h>
7636 #endif
7639 main ()
7641 static struct ifreq ac_aggr;
7642 if (sizeof ac_aggr.ifr_netmask)
7643 return 0;
7645 return 0;
7647 _ACEOF
7648 rm -f conftest.$ac_objext
7649 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7650 (eval $ac_compile) 2>conftest.er1
7651 ac_status=$?
7652 grep -v '^ *+' conftest.er1 >conftest.err
7653 rm -f conftest.er1
7654 cat conftest.err >&5
7655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7656 (exit $ac_status); } &&
7657 { ac_try='test -z "$ac_c_werror_flag"
7658 || test ! -s conftest.err'
7659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7660 (eval $ac_try) 2>&5
7661 ac_status=$?
7662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7663 (exit $ac_status); }; } &&
7664 { ac_try='test -s conftest.$ac_objext'
7665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7666 (eval $ac_try) 2>&5
7667 ac_status=$?
7668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7669 (exit $ac_status); }; }; then
7670 ac_cv_member_struct_ifreq_ifr_netmask=yes
7671 else
7672 echo "$as_me: failed program was:" >&5
7673 sed 's/^/| /' conftest.$ac_ext >&5
7675 ac_cv_member_struct_ifreq_ifr_netmask=no
7677 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7679 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7681 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_netmask" >&5
7682 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_netmask" >&6
7683 if test $ac_cv_member_struct_ifreq_ifr_netmask = yes; then
7685 cat >>confdefs.h <<_ACEOF
7686 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
7687 _ACEOF
7691 echo "$as_me:$LINENO: checking for struct ifreq.ifr_broadaddr" >&5
7692 echo $ECHO_N "checking for struct ifreq.ifr_broadaddr... $ECHO_C" >&6
7693 if test "${ac_cv_member_struct_ifreq_ifr_broadaddr+set}" = set; then
7694 echo $ECHO_N "(cached) $ECHO_C" >&6
7695 else
7696 cat >conftest.$ac_ext <<_ACEOF
7697 /* confdefs.h. */
7698 _ACEOF
7699 cat confdefs.h >>conftest.$ac_ext
7700 cat >>conftest.$ac_ext <<_ACEOF
7701 /* end confdefs.h. */
7702 $ac_includes_default
7703 #if HAVE_SYS_SOCKET_H
7704 #include <sys/socket.h>
7705 #endif
7706 #if HAVE_NET_IF_H
7707 #include <net/if.h>
7708 #endif
7711 main ()
7713 static struct ifreq ac_aggr;
7714 if (ac_aggr.ifr_broadaddr)
7715 return 0;
7717 return 0;
7719 _ACEOF
7720 rm -f conftest.$ac_objext
7721 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7722 (eval $ac_compile) 2>conftest.er1
7723 ac_status=$?
7724 grep -v '^ *+' conftest.er1 >conftest.err
7725 rm -f conftest.er1
7726 cat conftest.err >&5
7727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7728 (exit $ac_status); } &&
7729 { ac_try='test -z "$ac_c_werror_flag"
7730 || test ! -s conftest.err'
7731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7732 (eval $ac_try) 2>&5
7733 ac_status=$?
7734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7735 (exit $ac_status); }; } &&
7736 { ac_try='test -s conftest.$ac_objext'
7737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7738 (eval $ac_try) 2>&5
7739 ac_status=$?
7740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7741 (exit $ac_status); }; }; then
7742 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
7743 else
7744 echo "$as_me: failed program was:" >&5
7745 sed 's/^/| /' conftest.$ac_ext >&5
7747 cat >conftest.$ac_ext <<_ACEOF
7748 /* confdefs.h. */
7749 _ACEOF
7750 cat confdefs.h >>conftest.$ac_ext
7751 cat >>conftest.$ac_ext <<_ACEOF
7752 /* end confdefs.h. */
7753 $ac_includes_default
7754 #if HAVE_SYS_SOCKET_H
7755 #include <sys/socket.h>
7756 #endif
7757 #if HAVE_NET_IF_H
7758 #include <net/if.h>
7759 #endif
7762 main ()
7764 static struct ifreq ac_aggr;
7765 if (sizeof ac_aggr.ifr_broadaddr)
7766 return 0;
7768 return 0;
7770 _ACEOF
7771 rm -f conftest.$ac_objext
7772 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7773 (eval $ac_compile) 2>conftest.er1
7774 ac_status=$?
7775 grep -v '^ *+' conftest.er1 >conftest.err
7776 rm -f conftest.er1
7777 cat conftest.err >&5
7778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7779 (exit $ac_status); } &&
7780 { ac_try='test -z "$ac_c_werror_flag"
7781 || test ! -s conftest.err'
7782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7783 (eval $ac_try) 2>&5
7784 ac_status=$?
7785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7786 (exit $ac_status); }; } &&
7787 { ac_try='test -s conftest.$ac_objext'
7788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7789 (eval $ac_try) 2>&5
7790 ac_status=$?
7791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7792 (exit $ac_status); }; }; then
7793 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
7794 else
7795 echo "$as_me: failed program was:" >&5
7796 sed 's/^/| /' conftest.$ac_ext >&5
7798 ac_cv_member_struct_ifreq_ifr_broadaddr=no
7800 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7802 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7804 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_broadaddr" >&5
7805 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_broadaddr" >&6
7806 if test $ac_cv_member_struct_ifreq_ifr_broadaddr = yes; then
7808 cat >>confdefs.h <<_ACEOF
7809 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
7810 _ACEOF
7814 echo "$as_me:$LINENO: checking for struct ifreq.ifr_addr" >&5
7815 echo $ECHO_N "checking for struct ifreq.ifr_addr... $ECHO_C" >&6
7816 if test "${ac_cv_member_struct_ifreq_ifr_addr+set}" = set; then
7817 echo $ECHO_N "(cached) $ECHO_C" >&6
7818 else
7819 cat >conftest.$ac_ext <<_ACEOF
7820 /* confdefs.h. */
7821 _ACEOF
7822 cat confdefs.h >>conftest.$ac_ext
7823 cat >>conftest.$ac_ext <<_ACEOF
7824 /* end confdefs.h. */
7825 $ac_includes_default
7826 #if HAVE_SYS_SOCKET_H
7827 #include <sys/socket.h>
7828 #endif
7829 #if HAVE_NET_IF_H
7830 #include <net/if.h>
7831 #endif
7834 main ()
7836 static struct ifreq ac_aggr;
7837 if (ac_aggr.ifr_addr)
7838 return 0;
7840 return 0;
7842 _ACEOF
7843 rm -f conftest.$ac_objext
7844 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7845 (eval $ac_compile) 2>conftest.er1
7846 ac_status=$?
7847 grep -v '^ *+' conftest.er1 >conftest.err
7848 rm -f conftest.er1
7849 cat conftest.err >&5
7850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7851 (exit $ac_status); } &&
7852 { ac_try='test -z "$ac_c_werror_flag"
7853 || test ! -s conftest.err'
7854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7855 (eval $ac_try) 2>&5
7856 ac_status=$?
7857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7858 (exit $ac_status); }; } &&
7859 { ac_try='test -s conftest.$ac_objext'
7860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7861 (eval $ac_try) 2>&5
7862 ac_status=$?
7863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7864 (exit $ac_status); }; }; then
7865 ac_cv_member_struct_ifreq_ifr_addr=yes
7866 else
7867 echo "$as_me: failed program was:" >&5
7868 sed 's/^/| /' conftest.$ac_ext >&5
7870 cat >conftest.$ac_ext <<_ACEOF
7871 /* confdefs.h. */
7872 _ACEOF
7873 cat confdefs.h >>conftest.$ac_ext
7874 cat >>conftest.$ac_ext <<_ACEOF
7875 /* end confdefs.h. */
7876 $ac_includes_default
7877 #if HAVE_SYS_SOCKET_H
7878 #include <sys/socket.h>
7879 #endif
7880 #if HAVE_NET_IF_H
7881 #include <net/if.h>
7882 #endif
7885 main ()
7887 static struct ifreq ac_aggr;
7888 if (sizeof ac_aggr.ifr_addr)
7889 return 0;
7891 return 0;
7893 _ACEOF
7894 rm -f conftest.$ac_objext
7895 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7896 (eval $ac_compile) 2>conftest.er1
7897 ac_status=$?
7898 grep -v '^ *+' conftest.er1 >conftest.err
7899 rm -f conftest.er1
7900 cat conftest.err >&5
7901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7902 (exit $ac_status); } &&
7903 { ac_try='test -z "$ac_c_werror_flag"
7904 || test ! -s conftest.err'
7905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7906 (eval $ac_try) 2>&5
7907 ac_status=$?
7908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7909 (exit $ac_status); }; } &&
7910 { ac_try='test -s conftest.$ac_objext'
7911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7912 (eval $ac_try) 2>&5
7913 ac_status=$?
7914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7915 (exit $ac_status); }; }; then
7916 ac_cv_member_struct_ifreq_ifr_addr=yes
7917 else
7918 echo "$as_me: failed program was:" >&5
7919 sed 's/^/| /' conftest.$ac_ext >&5
7921 ac_cv_member_struct_ifreq_ifr_addr=no
7923 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7925 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7927 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_addr" >&5
7928 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_addr" >&6
7929 if test $ac_cv_member_struct_ifreq_ifr_addr = yes; then
7931 cat >>confdefs.h <<_ACEOF
7932 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
7933 _ACEOF
7940 echo "$as_me:$LINENO: checking for function prototypes" >&5
7941 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
7942 if test "$ac_cv_prog_cc_stdc" != no; then
7943 echo "$as_me:$LINENO: result: yes" >&5
7944 echo "${ECHO_T}yes" >&6
7946 cat >>confdefs.h <<\_ACEOF
7947 #define PROTOTYPES 1
7948 _ACEOF
7951 cat >>confdefs.h <<\_ACEOF
7952 #define __PROTOTYPES 1
7953 _ACEOF
7955 else
7956 echo "$as_me:$LINENO: result: no" >&5
7957 echo "${ECHO_T}no" >&6
7960 echo "$as_me:$LINENO: checking for working volatile" >&5
7961 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
7962 if test "${ac_cv_c_volatile+set}" = set; then
7963 echo $ECHO_N "(cached) $ECHO_C" >&6
7964 else
7965 cat >conftest.$ac_ext <<_ACEOF
7966 /* confdefs.h. */
7967 _ACEOF
7968 cat confdefs.h >>conftest.$ac_ext
7969 cat >>conftest.$ac_ext <<_ACEOF
7970 /* end confdefs.h. */
7973 main ()
7976 volatile int x;
7977 int * volatile y;
7979 return 0;
7981 _ACEOF
7982 rm -f conftest.$ac_objext
7983 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7984 (eval $ac_compile) 2>conftest.er1
7985 ac_status=$?
7986 grep -v '^ *+' conftest.er1 >conftest.err
7987 rm -f conftest.er1
7988 cat conftest.err >&5
7989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7990 (exit $ac_status); } &&
7991 { ac_try='test -z "$ac_c_werror_flag"
7992 || test ! -s conftest.err'
7993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7994 (eval $ac_try) 2>&5
7995 ac_status=$?
7996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7997 (exit $ac_status); }; } &&
7998 { ac_try='test -s conftest.$ac_objext'
7999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8000 (eval $ac_try) 2>&5
8001 ac_status=$?
8002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8003 (exit $ac_status); }; }; then
8004 ac_cv_c_volatile=yes
8005 else
8006 echo "$as_me: failed program was:" >&5
8007 sed 's/^/| /' conftest.$ac_ext >&5
8009 ac_cv_c_volatile=no
8011 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8013 echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
8014 echo "${ECHO_T}$ac_cv_c_volatile" >&6
8015 if test $ac_cv_c_volatile = no; then
8017 cat >>confdefs.h <<\_ACEOF
8018 #define volatile
8019 _ACEOF
8023 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8024 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
8025 if test "${ac_cv_c_const+set}" = set; then
8026 echo $ECHO_N "(cached) $ECHO_C" >&6
8027 else
8028 cat >conftest.$ac_ext <<_ACEOF
8029 /* confdefs.h. */
8030 _ACEOF
8031 cat confdefs.h >>conftest.$ac_ext
8032 cat >>conftest.$ac_ext <<_ACEOF
8033 /* end confdefs.h. */
8036 main ()
8038 /* FIXME: Include the comments suggested by Paul. */
8039 #ifndef __cplusplus
8040 /* Ultrix mips cc rejects this. */
8041 typedef int charset[2];
8042 const charset x;
8043 /* SunOS 4.1.1 cc rejects this. */
8044 char const *const *ccp;
8045 char **p;
8046 /* NEC SVR4.0.2 mips cc rejects this. */
8047 struct point {int x, y;};
8048 static struct point const zero = {0,0};
8049 /* AIX XL C 1.02.0.0 rejects this.
8050 It does not let you subtract one const X* pointer from another in
8051 an arm of an if-expression whose if-part is not a constant
8052 expression */
8053 const char *g = "string";
8054 ccp = &g + (g ? g-g : 0);
8055 /* HPUX 7.0 cc rejects these. */
8056 ++ccp;
8057 p = (char**) ccp;
8058 ccp = (char const *const *) p;
8059 { /* SCO 3.2v4 cc rejects this. */
8060 char *t;
8061 char const *s = 0 ? (char *) 0 : (char const *) 0;
8063 *t++ = 0;
8065 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8066 int x[] = {25, 17};
8067 const int *foo = &x[0];
8068 ++foo;
8070 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8071 typedef const int *iptr;
8072 iptr p = 0;
8073 ++p;
8075 { /* AIX XL C 1.02.0.0 rejects this saying
8076 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8077 struct s { int j; const int *ap[3]; };
8078 struct s *b; b->j = 5;
8080 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8081 const int foo = 10;
8083 #endif
8086 return 0;
8088 _ACEOF
8089 rm -f conftest.$ac_objext
8090 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8091 (eval $ac_compile) 2>conftest.er1
8092 ac_status=$?
8093 grep -v '^ *+' conftest.er1 >conftest.err
8094 rm -f conftest.er1
8095 cat conftest.err >&5
8096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8097 (exit $ac_status); } &&
8098 { ac_try='test -z "$ac_c_werror_flag"
8099 || test ! -s conftest.err'
8100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8101 (eval $ac_try) 2>&5
8102 ac_status=$?
8103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8104 (exit $ac_status); }; } &&
8105 { ac_try='test -s conftest.$ac_objext'
8106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8107 (eval $ac_try) 2>&5
8108 ac_status=$?
8109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8110 (exit $ac_status); }; }; then
8111 ac_cv_c_const=yes
8112 else
8113 echo "$as_me: failed program was:" >&5
8114 sed 's/^/| /' conftest.$ac_ext >&5
8116 ac_cv_c_const=no
8118 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8120 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8121 echo "${ECHO_T}$ac_cv_c_const" >&6
8122 if test $ac_cv_c_const = no; then
8124 cat >>confdefs.h <<\_ACEOF
8125 #define const
8126 _ACEOF
8130 echo "$as_me:$LINENO: checking for void * support" >&5
8131 echo $ECHO_N "checking for void * support... $ECHO_C" >&6
8132 if test "${emacs_cv_void_star+set}" = set; then
8133 echo $ECHO_N "(cached) $ECHO_C" >&6
8134 else
8135 cat >conftest.$ac_ext <<_ACEOF
8136 /* confdefs.h. */
8137 _ACEOF
8138 cat confdefs.h >>conftest.$ac_ext
8139 cat >>conftest.$ac_ext <<_ACEOF
8140 /* end confdefs.h. */
8143 main ()
8145 void * foo;
8147 return 0;
8149 _ACEOF
8150 rm -f conftest.$ac_objext
8151 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8152 (eval $ac_compile) 2>conftest.er1
8153 ac_status=$?
8154 grep -v '^ *+' conftest.er1 >conftest.err
8155 rm -f conftest.er1
8156 cat conftest.err >&5
8157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8158 (exit $ac_status); } &&
8159 { ac_try='test -z "$ac_c_werror_flag"
8160 || test ! -s conftest.err'
8161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8162 (eval $ac_try) 2>&5
8163 ac_status=$?
8164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8165 (exit $ac_status); }; } &&
8166 { ac_try='test -s conftest.$ac_objext'
8167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8168 (eval $ac_try) 2>&5
8169 ac_status=$?
8170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8171 (exit $ac_status); }; }; then
8172 emacs_cv_void_star=yes
8173 else
8174 echo "$as_me: failed program was:" >&5
8175 sed 's/^/| /' conftest.$ac_ext >&5
8177 emacs_cv_void_star=no
8179 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8181 echo "$as_me:$LINENO: result: $emacs_cv_void_star" >&5
8182 echo "${ECHO_T}$emacs_cv_void_star" >&6
8183 if test $emacs_cv_void_star = yes; then
8184 cat >>confdefs.h <<\_ACEOF
8185 #define POINTER_TYPE void
8186 _ACEOF
8188 else
8189 cat >>confdefs.h <<\_ACEOF
8190 #define POINTER_TYPE char
8191 _ACEOF
8199 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8200 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
8201 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
8202 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
8203 echo $ECHO_N "(cached) $ECHO_C" >&6
8204 else
8205 cat >conftest.make <<\_ACEOF
8206 all:
8207 @echo 'ac_maketemp="$(MAKE)"'
8208 _ACEOF
8209 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8210 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
8211 if test -n "$ac_maketemp"; then
8212 eval ac_cv_prog_make_${ac_make}_set=yes
8213 else
8214 eval ac_cv_prog_make_${ac_make}_set=no
8216 rm -f conftest.make
8218 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
8219 echo "$as_me:$LINENO: result: yes" >&5
8220 echo "${ECHO_T}yes" >&6
8221 SET_MAKE=
8222 else
8223 echo "$as_me:$LINENO: result: no" >&5
8224 echo "${ECHO_T}no" >&6
8225 SET_MAKE="MAKE=${MAKE-make}"
8229 echo "$as_me:$LINENO: checking for long file names" >&5
8230 echo $ECHO_N "checking for long file names... $ECHO_C" >&6
8231 if test "${ac_cv_sys_long_file_names+set}" = set; then
8232 echo $ECHO_N "(cached) $ECHO_C" >&6
8233 else
8234 ac_cv_sys_long_file_names=yes
8235 # Test for long file names in all the places we know might matter:
8236 # . the current directory, where building will happen
8237 # $prefix/lib where we will be installing things
8238 # $exec_prefix/lib likewise
8239 # eval it to expand exec_prefix.
8240 # $TMPDIR if set, where it might want to write temporary files
8241 # if $TMPDIR is not set:
8242 # /tmp where it might want to write temporary files
8243 # /var/tmp likewise
8244 # /usr/tmp likewise
8245 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
8246 ac_tmpdirs=$TMPDIR
8247 else
8248 ac_tmpdirs='/tmp /var/tmp /usr/tmp'
8250 for ac_dir in . $ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
8251 test -d $ac_dir || continue
8252 test -w $ac_dir || continue # It is less confusing to not echo anything here.
8253 ac_xdir=$ac_dir/cf$$
8254 (umask 077 && mkdir $ac_xdir 2>/dev/null) || continue
8255 ac_tf1=$ac_xdir/conftest9012345
8256 ac_tf2=$ac_xdir/conftest9012346
8257 (echo 1 >$ac_tf1) 2>/dev/null
8258 (echo 2 >$ac_tf2) 2>/dev/null
8259 ac_val=`cat $ac_tf1 2>/dev/null`
8260 if test ! -f $ac_tf1 || test "$ac_val" != 1; then
8261 ac_cv_sys_long_file_names=no
8262 rm -rf $ac_xdir 2>/dev/null
8263 break
8265 rm -rf $ac_xdir 2>/dev/null
8266 done
8268 echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
8269 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6
8270 if test $ac_cv_sys_long_file_names = yes; then
8272 cat >>confdefs.h <<\_ACEOF
8273 #define HAVE_LONG_FILE_NAMES 1
8274 _ACEOF
8279 #### Choose a window system.
8281 echo "$as_me:$LINENO: checking for X" >&5
8282 echo $ECHO_N "checking for X... $ECHO_C" >&6
8285 # Check whether --with-x or --without-x was given.
8286 if test "${with_x+set}" = set; then
8287 withval="$with_x"
8290 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
8291 if test "x$with_x" = xno; then
8292 # The user explicitly disabled X.
8293 have_x=disabled
8294 else
8295 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
8296 # Both variables are already set.
8297 have_x=yes
8298 else
8299 if test "${ac_cv_have_x+set}" = set; then
8300 echo $ECHO_N "(cached) $ECHO_C" >&6
8301 else
8302 # One or both of the vars are not set, and there is no cached value.
8303 ac_x_includes=no ac_x_libraries=no
8304 rm -fr conftest.dir
8305 if mkdir conftest.dir; then
8306 cd conftest.dir
8307 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
8308 cat >Imakefile <<'_ACEOF'
8309 acfindx:
8310 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
8311 _ACEOF
8312 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
8313 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8314 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
8315 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
8316 for ac_extension in a so sl; do
8317 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
8318 test -f $ac_im_libdir/libX11.$ac_extension; then
8319 ac_im_usrlibdir=$ac_im_libdir; break
8321 done
8322 # Screen out bogus values from the imake configuration. They are
8323 # bogus both because they are the default anyway, and because
8324 # using them would break gcc on systems where it needs fixed includes.
8325 case $ac_im_incroot in
8326 /usr/include) ;;
8327 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
8328 esac
8329 case $ac_im_usrlibdir in
8330 /usr/lib | /lib) ;;
8331 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
8332 esac
8334 cd ..
8335 rm -fr conftest.dir
8338 # Standard set of common directories for X headers.
8339 # Check X11 before X11Rn because it is often a symlink to the current release.
8340 ac_x_header_dirs='
8341 /usr/X11/include
8342 /usr/X11R6/include
8343 /usr/X11R5/include
8344 /usr/X11R4/include
8346 /usr/include/X11
8347 /usr/include/X11R6
8348 /usr/include/X11R5
8349 /usr/include/X11R4
8351 /usr/local/X11/include
8352 /usr/local/X11R6/include
8353 /usr/local/X11R5/include
8354 /usr/local/X11R4/include
8356 /usr/local/include/X11
8357 /usr/local/include/X11R6
8358 /usr/local/include/X11R5
8359 /usr/local/include/X11R4
8361 /usr/X386/include
8362 /usr/x386/include
8363 /usr/XFree86/include/X11
8365 /usr/include
8366 /usr/local/include
8367 /usr/unsupported/include
8368 /usr/athena/include
8369 /usr/local/x11r5/include
8370 /usr/lpp/Xamples/include
8372 /usr/openwin/include
8373 /usr/openwin/share/include'
8375 if test "$ac_x_includes" = no; then
8376 # Guess where to find include files, by looking for Intrinsic.h.
8377 # First, try using that file with no special directory specified.
8378 cat >conftest.$ac_ext <<_ACEOF
8379 /* confdefs.h. */
8380 _ACEOF
8381 cat confdefs.h >>conftest.$ac_ext
8382 cat >>conftest.$ac_ext <<_ACEOF
8383 /* end confdefs.h. */
8384 #include <X11/Intrinsic.h>
8385 _ACEOF
8386 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8387 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8388 ac_status=$?
8389 grep -v '^ *+' conftest.er1 >conftest.err
8390 rm -f conftest.er1
8391 cat conftest.err >&5
8392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8393 (exit $ac_status); } >/dev/null; then
8394 if test -s conftest.err; then
8395 ac_cpp_err=$ac_c_preproc_warn_flag
8396 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8397 else
8398 ac_cpp_err=
8400 else
8401 ac_cpp_err=yes
8403 if test -z "$ac_cpp_err"; then
8404 # We can compile using X headers with no special include directory.
8405 ac_x_includes=
8406 else
8407 echo "$as_me: failed program was:" >&5
8408 sed 's/^/| /' conftest.$ac_ext >&5
8410 for ac_dir in $ac_x_header_dirs; do
8411 if test -r "$ac_dir/X11/Intrinsic.h"; then
8412 ac_x_includes=$ac_dir
8413 break
8415 done
8417 rm -f conftest.err conftest.$ac_ext
8418 fi # $ac_x_includes = no
8420 if test "$ac_x_libraries" = no; then
8421 # Check for the libraries.
8422 # See if we find them without any special options.
8423 # Don't add to $LIBS permanently.
8424 ac_save_LIBS=$LIBS
8425 LIBS="-lXt $LIBS"
8426 cat >conftest.$ac_ext <<_ACEOF
8427 /* confdefs.h. */
8428 _ACEOF
8429 cat confdefs.h >>conftest.$ac_ext
8430 cat >>conftest.$ac_ext <<_ACEOF
8431 /* end confdefs.h. */
8432 #include <X11/Intrinsic.h>
8434 main ()
8436 XtMalloc (0)
8438 return 0;
8440 _ACEOF
8441 rm -f conftest.$ac_objext conftest$ac_exeext
8442 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8443 (eval $ac_link) 2>conftest.er1
8444 ac_status=$?
8445 grep -v '^ *+' conftest.er1 >conftest.err
8446 rm -f conftest.er1
8447 cat conftest.err >&5
8448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8449 (exit $ac_status); } &&
8450 { ac_try='test -z "$ac_c_werror_flag"
8451 || test ! -s conftest.err'
8452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8453 (eval $ac_try) 2>&5
8454 ac_status=$?
8455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8456 (exit $ac_status); }; } &&
8457 { ac_try='test -s conftest$ac_exeext'
8458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8459 (eval $ac_try) 2>&5
8460 ac_status=$?
8461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8462 (exit $ac_status); }; }; then
8463 LIBS=$ac_save_LIBS
8464 # We can link X programs with no special library path.
8465 ac_x_libraries=
8466 else
8467 echo "$as_me: failed program was:" >&5
8468 sed 's/^/| /' conftest.$ac_ext >&5
8470 LIBS=$ac_save_LIBS
8471 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
8473 # Don't even attempt the hair of trying to link an X program!
8474 for ac_extension in a so sl; do
8475 if test -r $ac_dir/libXt.$ac_extension; then
8476 ac_x_libraries=$ac_dir
8477 break 2
8479 done
8480 done
8482 rm -f conftest.err conftest.$ac_objext \
8483 conftest$ac_exeext conftest.$ac_ext
8484 fi # $ac_x_libraries = no
8486 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
8487 # Didn't find X anywhere. Cache the known absence of X.
8488 ac_cv_have_x="have_x=no"
8489 else
8490 # Record where we found X for the cache.
8491 ac_cv_have_x="have_x=yes \
8492 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
8497 eval "$ac_cv_have_x"
8498 fi # $with_x != no
8500 if test "$have_x" != yes; then
8501 echo "$as_me:$LINENO: result: $have_x" >&5
8502 echo "${ECHO_T}$have_x" >&6
8503 no_x=yes
8504 else
8505 # If each of the values was on the command line, it overrides each guess.
8506 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
8507 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
8508 # Update the cache value to reflect the command line values.
8509 ac_cv_have_x="have_x=yes \
8510 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
8511 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
8512 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
8515 if test "$no_x" = yes; then
8516 window_system=none
8517 else
8518 window_system=x11
8521 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
8522 LD_SWITCH_X_SITE=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
8523 LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
8524 x_default_search_path=""
8525 for x_library in `echo ${x_libraries} | sed -e "s/:/ /g"`; do
8526 x_search_path="\
8527 ${x_library}/X11/%L/%T/%N%C%S:\
8528 ${x_library}/X11/%l/%T/%N%C%S:\
8529 ${x_library}/X11/%T/%N%C%S:\
8530 ${x_library}/X11/%L/%T/%N%S:\
8531 ${x_library}/X11/%l/%T/%N%S:\
8532 ${x_library}/X11/%T/%N%S"
8533 if test x"${x_default_search_path}" = x; then
8534 x_default_search_path=${x_search_path}
8535 else
8536 x_default_search_path="${x_search_path}:${x_default_search_path}"
8538 done
8540 if test "${x_includes}" != NONE && test -n "${x_includes}"; then
8541 C_SWITCH_X_SITE=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
8544 if test x"${x_includes}" = x; then
8545 bitmapdir=/usr/include/X11/bitmaps
8546 else
8547 # accumulate include directories that have X11 bitmap subdirectories
8548 bmd_acc="dummyval"
8549 for bmd in `echo ${x_includes} | sed -e "s/:/ /g"`; do
8550 if test -d "${bmd}/X11/bitmaps"; then
8551 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
8553 if test -d "${bmd}/bitmaps"; then
8554 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
8556 done
8557 if test ${bmd_acc} != "dummyval"; then
8558 bitmapdir=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
8562 HAVE_CARBON=no
8563 if test "${with_carbon}" != no; then
8564 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
8565 echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
8566 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6
8567 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
8568 echo $ECHO_N "(cached) $ECHO_C" >&6
8570 echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
8571 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6
8572 else
8573 # Is the header compilable?
8574 echo "$as_me:$LINENO: checking Carbon/Carbon.h usability" >&5
8575 echo $ECHO_N "checking Carbon/Carbon.h usability... $ECHO_C" >&6
8576 cat >conftest.$ac_ext <<_ACEOF
8577 /* confdefs.h. */
8578 _ACEOF
8579 cat confdefs.h >>conftest.$ac_ext
8580 cat >>conftest.$ac_ext <<_ACEOF
8581 /* end confdefs.h. */
8582 $ac_includes_default
8583 #include <Carbon/Carbon.h>
8584 _ACEOF
8585 rm -f conftest.$ac_objext
8586 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8587 (eval $ac_compile) 2>conftest.er1
8588 ac_status=$?
8589 grep -v '^ *+' conftest.er1 >conftest.err
8590 rm -f conftest.er1
8591 cat conftest.err >&5
8592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8593 (exit $ac_status); } &&
8594 { ac_try='test -z "$ac_c_werror_flag"
8595 || test ! -s conftest.err'
8596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8597 (eval $ac_try) 2>&5
8598 ac_status=$?
8599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8600 (exit $ac_status); }; } &&
8601 { ac_try='test -s conftest.$ac_objext'
8602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8603 (eval $ac_try) 2>&5
8604 ac_status=$?
8605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8606 (exit $ac_status); }; }; then
8607 ac_header_compiler=yes
8608 else
8609 echo "$as_me: failed program was:" >&5
8610 sed 's/^/| /' conftest.$ac_ext >&5
8612 ac_header_compiler=no
8614 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8615 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8616 echo "${ECHO_T}$ac_header_compiler" >&6
8618 # Is the header present?
8619 echo "$as_me:$LINENO: checking Carbon/Carbon.h presence" >&5
8620 echo $ECHO_N "checking Carbon/Carbon.h presence... $ECHO_C" >&6
8621 cat >conftest.$ac_ext <<_ACEOF
8622 /* confdefs.h. */
8623 _ACEOF
8624 cat confdefs.h >>conftest.$ac_ext
8625 cat >>conftest.$ac_ext <<_ACEOF
8626 /* end confdefs.h. */
8627 #include <Carbon/Carbon.h>
8628 _ACEOF
8629 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8630 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8631 ac_status=$?
8632 grep -v '^ *+' conftest.er1 >conftest.err
8633 rm -f conftest.er1
8634 cat conftest.err >&5
8635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8636 (exit $ac_status); } >/dev/null; then
8637 if test -s conftest.err; then
8638 ac_cpp_err=$ac_c_preproc_warn_flag
8639 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8640 else
8641 ac_cpp_err=
8643 else
8644 ac_cpp_err=yes
8646 if test -z "$ac_cpp_err"; then
8647 ac_header_preproc=yes
8648 else
8649 echo "$as_me: failed program was:" >&5
8650 sed 's/^/| /' conftest.$ac_ext >&5
8652 ac_header_preproc=no
8654 rm -f conftest.err conftest.$ac_ext
8655 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8656 echo "${ECHO_T}$ac_header_preproc" >&6
8658 # So? What about this header?
8659 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8660 yes:no: )
8661 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&5
8662 echo "$as_me: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8663 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&5
8664 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&2;}
8665 ac_header_preproc=yes
8667 no:yes:* )
8668 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&5
8669 echo "$as_me: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&2;}
8670 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&5
8671 echo "$as_me: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&2;}
8672 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&5
8673 echo "$as_me: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&2;}
8674 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&5
8675 echo "$as_me: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&2;}
8676 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5
8677 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;}
8678 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&5
8679 echo "$as_me: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&2;}
8681 cat <<\_ASBOX
8682 ## ------------------------------------------ ##
8683 ## Report this to the AC_PACKAGE_NAME lists. ##
8684 ## ------------------------------------------ ##
8685 _ASBOX
8687 sed "s/^/$as_me: WARNING: /" >&2
8689 esac
8690 echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
8691 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6
8692 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
8693 echo $ECHO_N "(cached) $ECHO_C" >&6
8694 else
8695 ac_cv_header_Carbon_Carbon_h=$ac_header_preproc
8697 echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
8698 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6
8701 if test $ac_cv_header_Carbon_Carbon_h = yes; then
8702 HAVE_CARBON=yes
8707 if test "${window_system}" = x11 && test "${HAVE_CARBON}" = yes; then
8708 if test "${with_carbon+set}" != set \
8709 && test "${carbon_appdir_x+set}" != set; then
8710 HAVE_CARBON=no
8713 if test "${HAVE_CARBON}" = yes; then
8714 window_system=mac
8717 case "${window_system}" in
8718 x11 )
8719 HAVE_X_WINDOWS=yes
8720 HAVE_X11=yes
8721 case "${with_x_toolkit}" in
8722 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
8723 motif ) USE_X_TOOLKIT=MOTIF ;;
8724 gtk ) with_gtk=yes
8725 USE_X_TOOLKIT=none ;;
8726 no ) USE_X_TOOLKIT=none ;;
8727 * ) USE_X_TOOLKIT=maybe ;;
8728 esac
8730 mac | none )
8731 HAVE_X_WINDOWS=no
8732 HAVE_X11=no
8733 USE_X_TOOLKIT=none
8735 esac
8737 ### If we're using X11, we should use the X menu package.
8738 HAVE_MENUS=no
8739 case ${HAVE_X11} in
8740 yes ) HAVE_MENUS=yes ;;
8741 esac
8743 if test "${opsys}" = "hpux9"; then
8744 case "${x_libraries}" in
8745 *X11R4* )
8746 opsysfile="s/hpux9-x11r4.h"
8748 esac
8751 if test "${opsys}" = "hpux9shr"; then
8752 case "${x_libraries}" in
8753 *X11R4* )
8754 opsysfile="s/hpux9shxr4.h"
8756 esac
8759 ### Compute the unexec source name from the object name.
8760 UNEXEC_SRC="`echo ${unexec} | sed 's/\.o/.c/'`"
8762 # Do the opsystem or machine files prohibit the use of the GNU malloc?
8763 # Assume not, until told otherwise.
8764 GNU_MALLOC=yes
8765 doug_lea_malloc=yes
8766 echo "$as_me:$LINENO: checking for malloc_get_state" >&5
8767 echo $ECHO_N "checking for malloc_get_state... $ECHO_C" >&6
8768 if test "${ac_cv_func_malloc_get_state+set}" = set; then
8769 echo $ECHO_N "(cached) $ECHO_C" >&6
8770 else
8771 cat >conftest.$ac_ext <<_ACEOF
8772 /* confdefs.h. */
8773 _ACEOF
8774 cat confdefs.h >>conftest.$ac_ext
8775 cat >>conftest.$ac_ext <<_ACEOF
8776 /* end confdefs.h. */
8777 /* Define malloc_get_state to an innocuous variant, in case <limits.h> declares malloc_get_state.
8778 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8779 #define malloc_get_state innocuous_malloc_get_state
8781 /* System header to define __stub macros and hopefully few prototypes,
8782 which can conflict with char malloc_get_state (); below.
8783 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8784 <limits.h> exists even on freestanding compilers. */
8786 #ifdef __STDC__
8787 # include <limits.h>
8788 #else
8789 # include <assert.h>
8790 #endif
8792 #undef malloc_get_state
8794 /* Override any gcc2 internal prototype to avoid an error. */
8795 #ifdef __cplusplus
8796 extern "C"
8798 #endif
8799 /* We use char because int might match the return type of a gcc2
8800 builtin and then its argument prototype would still apply. */
8801 char malloc_get_state ();
8802 /* The GNU C library defines this for functions which it implements
8803 to always fail with ENOSYS. Some functions are actually named
8804 something starting with __ and the normal name is an alias. */
8805 #if defined (__stub_malloc_get_state) || defined (__stub___malloc_get_state)
8806 choke me
8807 #else
8808 char (*f) () = malloc_get_state;
8809 #endif
8810 #ifdef __cplusplus
8812 #endif
8815 main ()
8817 return f != malloc_get_state;
8819 return 0;
8821 _ACEOF
8822 rm -f conftest.$ac_objext conftest$ac_exeext
8823 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8824 (eval $ac_link) 2>conftest.er1
8825 ac_status=$?
8826 grep -v '^ *+' conftest.er1 >conftest.err
8827 rm -f conftest.er1
8828 cat conftest.err >&5
8829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8830 (exit $ac_status); } &&
8831 { ac_try='test -z "$ac_c_werror_flag"
8832 || test ! -s conftest.err'
8833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8834 (eval $ac_try) 2>&5
8835 ac_status=$?
8836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8837 (exit $ac_status); }; } &&
8838 { ac_try='test -s conftest$ac_exeext'
8839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8840 (eval $ac_try) 2>&5
8841 ac_status=$?
8842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8843 (exit $ac_status); }; }; then
8844 ac_cv_func_malloc_get_state=yes
8845 else
8846 echo "$as_me: failed program was:" >&5
8847 sed 's/^/| /' conftest.$ac_ext >&5
8849 ac_cv_func_malloc_get_state=no
8851 rm -f conftest.err conftest.$ac_objext \
8852 conftest$ac_exeext conftest.$ac_ext
8854 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_get_state" >&5
8855 echo "${ECHO_T}$ac_cv_func_malloc_get_state" >&6
8856 if test $ac_cv_func_malloc_get_state = yes; then
8858 else
8859 doug_lea_malloc=no
8862 echo "$as_me:$LINENO: checking for malloc_set_state" >&5
8863 echo $ECHO_N "checking for malloc_set_state... $ECHO_C" >&6
8864 if test "${ac_cv_func_malloc_set_state+set}" = set; then
8865 echo $ECHO_N "(cached) $ECHO_C" >&6
8866 else
8867 cat >conftest.$ac_ext <<_ACEOF
8868 /* confdefs.h. */
8869 _ACEOF
8870 cat confdefs.h >>conftest.$ac_ext
8871 cat >>conftest.$ac_ext <<_ACEOF
8872 /* end confdefs.h. */
8873 /* Define malloc_set_state to an innocuous variant, in case <limits.h> declares malloc_set_state.
8874 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8875 #define malloc_set_state innocuous_malloc_set_state
8877 /* System header to define __stub macros and hopefully few prototypes,
8878 which can conflict with char malloc_set_state (); below.
8879 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8880 <limits.h> exists even on freestanding compilers. */
8882 #ifdef __STDC__
8883 # include <limits.h>
8884 #else
8885 # include <assert.h>
8886 #endif
8888 #undef malloc_set_state
8890 /* Override any gcc2 internal prototype to avoid an error. */
8891 #ifdef __cplusplus
8892 extern "C"
8894 #endif
8895 /* We use char because int might match the return type of a gcc2
8896 builtin and then its argument prototype would still apply. */
8897 char malloc_set_state ();
8898 /* The GNU C library defines this for functions which it implements
8899 to always fail with ENOSYS. Some functions are actually named
8900 something starting with __ and the normal name is an alias. */
8901 #if defined (__stub_malloc_set_state) || defined (__stub___malloc_set_state)
8902 choke me
8903 #else
8904 char (*f) () = malloc_set_state;
8905 #endif
8906 #ifdef __cplusplus
8908 #endif
8911 main ()
8913 return f != malloc_set_state;
8915 return 0;
8917 _ACEOF
8918 rm -f conftest.$ac_objext conftest$ac_exeext
8919 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8920 (eval $ac_link) 2>conftest.er1
8921 ac_status=$?
8922 grep -v '^ *+' conftest.er1 >conftest.err
8923 rm -f conftest.er1
8924 cat conftest.err >&5
8925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8926 (exit $ac_status); } &&
8927 { ac_try='test -z "$ac_c_werror_flag"
8928 || test ! -s conftest.err'
8929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8930 (eval $ac_try) 2>&5
8931 ac_status=$?
8932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8933 (exit $ac_status); }; } &&
8934 { ac_try='test -s conftest$ac_exeext'
8935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8936 (eval $ac_try) 2>&5
8937 ac_status=$?
8938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8939 (exit $ac_status); }; }; then
8940 ac_cv_func_malloc_set_state=yes
8941 else
8942 echo "$as_me: failed program was:" >&5
8943 sed 's/^/| /' conftest.$ac_ext >&5
8945 ac_cv_func_malloc_set_state=no
8947 rm -f conftest.err conftest.$ac_objext \
8948 conftest$ac_exeext conftest.$ac_ext
8950 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_set_state" >&5
8951 echo "${ECHO_T}$ac_cv_func_malloc_set_state" >&6
8952 if test $ac_cv_func_malloc_set_state = yes; then
8954 else
8955 doug_lea_malloc=no
8958 echo "$as_me:$LINENO: checking whether __after_morecore_hook exists" >&5
8959 echo $ECHO_N "checking whether __after_morecore_hook exists... $ECHO_C" >&6
8960 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then
8961 echo $ECHO_N "(cached) $ECHO_C" >&6
8962 else
8963 cat >conftest.$ac_ext <<_ACEOF
8964 /* confdefs.h. */
8965 _ACEOF
8966 cat confdefs.h >>conftest.$ac_ext
8967 cat >>conftest.$ac_ext <<_ACEOF
8968 /* end confdefs.h. */
8969 extern void (* __after_morecore_hook)();
8971 main ()
8973 __after_morecore_hook = 0
8975 return 0;
8977 _ACEOF
8978 rm -f conftest.$ac_objext conftest$ac_exeext
8979 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8980 (eval $ac_link) 2>conftest.er1
8981 ac_status=$?
8982 grep -v '^ *+' conftest.er1 >conftest.err
8983 rm -f conftest.er1
8984 cat conftest.err >&5
8985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8986 (exit $ac_status); } &&
8987 { ac_try='test -z "$ac_c_werror_flag"
8988 || test ! -s conftest.err'
8989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8990 (eval $ac_try) 2>&5
8991 ac_status=$?
8992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8993 (exit $ac_status); }; } &&
8994 { ac_try='test -s conftest$ac_exeext'
8995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8996 (eval $ac_try) 2>&5
8997 ac_status=$?
8998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8999 (exit $ac_status); }; }; then
9000 emacs_cv_var___after_morecore_hook=yes
9001 else
9002 echo "$as_me: failed program was:" >&5
9003 sed 's/^/| /' conftest.$ac_ext >&5
9005 emacs_cv_var___after_morecore_hook=no
9007 rm -f conftest.err conftest.$ac_objext \
9008 conftest$ac_exeext conftest.$ac_ext
9010 echo "$as_me:$LINENO: result: $emacs_cv_var___after_morecore_hook" >&5
9011 echo "${ECHO_T}$emacs_cv_var___after_morecore_hook" >&6
9012 if test $emacs_cv_var___after_morecore_hook = no; then
9013 doug_lea_malloc=no
9015 if test "${system_malloc}" = "yes"; then
9016 GNU_MALLOC=no
9017 GNU_MALLOC_reason="
9018 (The GNU allocators don't work with this system configuration.)"
9020 if test "$doug_lea_malloc" = "yes" ; then
9021 if test "$GNU_MALLOC" = yes ; then
9022 GNU_MALLOC_reason="
9023 (Using Doug Lea's new malloc from the GNU C Library.)"
9026 cat >>confdefs.h <<\_ACEOF
9027 #define DOUG_LEA_MALLOC 1
9028 _ACEOF
9032 if test x"${REL_ALLOC}" = x; then
9033 REL_ALLOC=${GNU_MALLOC}
9039 for ac_header in stdlib.h unistd.h
9041 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9042 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9043 echo "$as_me:$LINENO: checking for $ac_header" >&5
9044 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9045 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9046 echo $ECHO_N "(cached) $ECHO_C" >&6
9048 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9049 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9050 else
9051 # Is the header compilable?
9052 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9053 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9054 cat >conftest.$ac_ext <<_ACEOF
9055 /* confdefs.h. */
9056 _ACEOF
9057 cat confdefs.h >>conftest.$ac_ext
9058 cat >>conftest.$ac_ext <<_ACEOF
9059 /* end confdefs.h. */
9060 $ac_includes_default
9061 #include <$ac_header>
9062 _ACEOF
9063 rm -f conftest.$ac_objext
9064 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9065 (eval $ac_compile) 2>conftest.er1
9066 ac_status=$?
9067 grep -v '^ *+' conftest.er1 >conftest.err
9068 rm -f conftest.er1
9069 cat conftest.err >&5
9070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9071 (exit $ac_status); } &&
9072 { ac_try='test -z "$ac_c_werror_flag"
9073 || test ! -s conftest.err'
9074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9075 (eval $ac_try) 2>&5
9076 ac_status=$?
9077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9078 (exit $ac_status); }; } &&
9079 { ac_try='test -s conftest.$ac_objext'
9080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9081 (eval $ac_try) 2>&5
9082 ac_status=$?
9083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9084 (exit $ac_status); }; }; then
9085 ac_header_compiler=yes
9086 else
9087 echo "$as_me: failed program was:" >&5
9088 sed 's/^/| /' conftest.$ac_ext >&5
9090 ac_header_compiler=no
9092 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9093 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9094 echo "${ECHO_T}$ac_header_compiler" >&6
9096 # Is the header present?
9097 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9098 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9099 cat >conftest.$ac_ext <<_ACEOF
9100 /* confdefs.h. */
9101 _ACEOF
9102 cat confdefs.h >>conftest.$ac_ext
9103 cat >>conftest.$ac_ext <<_ACEOF
9104 /* end confdefs.h. */
9105 #include <$ac_header>
9106 _ACEOF
9107 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9108 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9109 ac_status=$?
9110 grep -v '^ *+' conftest.er1 >conftest.err
9111 rm -f conftest.er1
9112 cat conftest.err >&5
9113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9114 (exit $ac_status); } >/dev/null; then
9115 if test -s conftest.err; then
9116 ac_cpp_err=$ac_c_preproc_warn_flag
9117 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9118 else
9119 ac_cpp_err=
9121 else
9122 ac_cpp_err=yes
9124 if test -z "$ac_cpp_err"; then
9125 ac_header_preproc=yes
9126 else
9127 echo "$as_me: failed program was:" >&5
9128 sed 's/^/| /' conftest.$ac_ext >&5
9130 ac_header_preproc=no
9132 rm -f conftest.err conftest.$ac_ext
9133 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9134 echo "${ECHO_T}$ac_header_preproc" >&6
9136 # So? What about this header?
9137 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9138 yes:no: )
9139 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9140 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9141 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9142 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9143 ac_header_preproc=yes
9145 no:yes:* )
9146 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9147 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9148 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9149 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9150 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9151 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9152 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9153 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9154 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9155 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9156 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9157 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9159 cat <<\_ASBOX
9160 ## ------------------------------------------ ##
9161 ## Report this to the AC_PACKAGE_NAME lists. ##
9162 ## ------------------------------------------ ##
9163 _ASBOX
9165 sed "s/^/$as_me: WARNING: /" >&2
9167 esac
9168 echo "$as_me:$LINENO: checking for $ac_header" >&5
9169 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9170 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9171 echo $ECHO_N "(cached) $ECHO_C" >&6
9172 else
9173 eval "$as_ac_Header=\$ac_header_preproc"
9175 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9176 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9179 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9180 cat >>confdefs.h <<_ACEOF
9181 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9182 _ACEOF
9186 done
9189 for ac_func in getpagesize
9191 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9192 echo "$as_me:$LINENO: checking for $ac_func" >&5
9193 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9194 if eval "test \"\${$as_ac_var+set}\" = set"; then
9195 echo $ECHO_N "(cached) $ECHO_C" >&6
9196 else
9197 cat >conftest.$ac_ext <<_ACEOF
9198 /* confdefs.h. */
9199 _ACEOF
9200 cat confdefs.h >>conftest.$ac_ext
9201 cat >>conftest.$ac_ext <<_ACEOF
9202 /* end confdefs.h. */
9203 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9204 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9205 #define $ac_func innocuous_$ac_func
9207 /* System header to define __stub macros and hopefully few prototypes,
9208 which can conflict with char $ac_func (); below.
9209 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9210 <limits.h> exists even on freestanding compilers. */
9212 #ifdef __STDC__
9213 # include <limits.h>
9214 #else
9215 # include <assert.h>
9216 #endif
9218 #undef $ac_func
9220 /* Override any gcc2 internal prototype to avoid an error. */
9221 #ifdef __cplusplus
9222 extern "C"
9224 #endif
9225 /* We use char because int might match the return type of a gcc2
9226 builtin and then its argument prototype would still apply. */
9227 char $ac_func ();
9228 /* The GNU C library defines this for functions which it implements
9229 to always fail with ENOSYS. Some functions are actually named
9230 something starting with __ and the normal name is an alias. */
9231 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9232 choke me
9233 #else
9234 char (*f) () = $ac_func;
9235 #endif
9236 #ifdef __cplusplus
9238 #endif
9241 main ()
9243 return f != $ac_func;
9245 return 0;
9247 _ACEOF
9248 rm -f conftest.$ac_objext conftest$ac_exeext
9249 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9250 (eval $ac_link) 2>conftest.er1
9251 ac_status=$?
9252 grep -v '^ *+' conftest.er1 >conftest.err
9253 rm -f conftest.er1
9254 cat conftest.err >&5
9255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9256 (exit $ac_status); } &&
9257 { ac_try='test -z "$ac_c_werror_flag"
9258 || test ! -s conftest.err'
9259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9260 (eval $ac_try) 2>&5
9261 ac_status=$?
9262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9263 (exit $ac_status); }; } &&
9264 { ac_try='test -s conftest$ac_exeext'
9265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9266 (eval $ac_try) 2>&5
9267 ac_status=$?
9268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9269 (exit $ac_status); }; }; then
9270 eval "$as_ac_var=yes"
9271 else
9272 echo "$as_me: failed program was:" >&5
9273 sed 's/^/| /' conftest.$ac_ext >&5
9275 eval "$as_ac_var=no"
9277 rm -f conftest.err conftest.$ac_objext \
9278 conftest$ac_exeext conftest.$ac_ext
9280 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9281 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9282 if test `eval echo '${'$as_ac_var'}'` = yes; then
9283 cat >>confdefs.h <<_ACEOF
9284 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9285 _ACEOF
9288 done
9290 echo "$as_me:$LINENO: checking for working mmap" >&5
9291 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
9292 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
9293 echo $ECHO_N "(cached) $ECHO_C" >&6
9294 else
9295 if test "$cross_compiling" = yes; then
9296 ac_cv_func_mmap_fixed_mapped=no
9297 else
9298 cat >conftest.$ac_ext <<_ACEOF
9299 /* confdefs.h. */
9300 _ACEOF
9301 cat confdefs.h >>conftest.$ac_ext
9302 cat >>conftest.$ac_ext <<_ACEOF
9303 /* end confdefs.h. */
9304 $ac_includes_default
9305 /* malloc might have been renamed as rpl_malloc. */
9306 #undef malloc
9308 /* Thanks to Mike Haertel and Jim Avera for this test.
9309 Here is a matrix of mmap possibilities:
9310 mmap private not fixed
9311 mmap private fixed at somewhere currently unmapped
9312 mmap private fixed at somewhere already mapped
9313 mmap shared not fixed
9314 mmap shared fixed at somewhere currently unmapped
9315 mmap shared fixed at somewhere already mapped
9316 For private mappings, we should verify that changes cannot be read()
9317 back from the file, nor mmap's back from the file at a different
9318 address. (There have been systems where private was not correctly
9319 implemented like the infamous i386 svr4.0, and systems where the
9320 VM page cache was not coherent with the file system buffer cache
9321 like early versions of FreeBSD and possibly contemporary NetBSD.)
9322 For shared mappings, we should conversely verify that changes get
9323 propagated back to all the places they're supposed to be.
9325 Grep wants private fixed already mapped.
9326 The main things grep needs to know about mmap are:
9327 * does it exist and is it safe to write into the mmap'd area
9328 * how to use it (BSD variants) */
9330 #include <fcntl.h>
9331 #include <sys/mman.h>
9333 #if !STDC_HEADERS && !HAVE_STDLIB_H
9334 char *malloc ();
9335 #endif
9337 /* This mess was copied from the GNU getpagesize.h. */
9338 #if !HAVE_GETPAGESIZE
9339 /* Assume that all systems that can run configure have sys/param.h. */
9340 # if !HAVE_SYS_PARAM_H
9341 # define HAVE_SYS_PARAM_H 1
9342 # endif
9344 # ifdef _SC_PAGESIZE
9345 # define getpagesize() sysconf(_SC_PAGESIZE)
9346 # else /* no _SC_PAGESIZE */
9347 # if HAVE_SYS_PARAM_H
9348 # include <sys/param.h>
9349 # ifdef EXEC_PAGESIZE
9350 # define getpagesize() EXEC_PAGESIZE
9351 # else /* no EXEC_PAGESIZE */
9352 # ifdef NBPG
9353 # define getpagesize() NBPG * CLSIZE
9354 # ifndef CLSIZE
9355 # define CLSIZE 1
9356 # endif /* no CLSIZE */
9357 # else /* no NBPG */
9358 # ifdef NBPC
9359 # define getpagesize() NBPC
9360 # else /* no NBPC */
9361 # ifdef PAGESIZE
9362 # define getpagesize() PAGESIZE
9363 # endif /* PAGESIZE */
9364 # endif /* no NBPC */
9365 # endif /* no NBPG */
9366 # endif /* no EXEC_PAGESIZE */
9367 # else /* no HAVE_SYS_PARAM_H */
9368 # define getpagesize() 8192 /* punt totally */
9369 # endif /* no HAVE_SYS_PARAM_H */
9370 # endif /* no _SC_PAGESIZE */
9372 #endif /* no HAVE_GETPAGESIZE */
9375 main ()
9377 char *data, *data2, *data3;
9378 int i, pagesize;
9379 int fd;
9381 pagesize = getpagesize ();
9383 /* First, make a file with some known garbage in it. */
9384 data = (char *) malloc (pagesize);
9385 if (!data)
9386 exit (1);
9387 for (i = 0; i < pagesize; ++i)
9388 *(data + i) = rand ();
9389 umask (0);
9390 fd = creat ("conftest.mmap", 0600);
9391 if (fd < 0)
9392 exit (1);
9393 if (write (fd, data, pagesize) != pagesize)
9394 exit (1);
9395 close (fd);
9397 /* Next, try to mmap the file at a fixed address which already has
9398 something else allocated at it. If we can, also make sure that
9399 we see the same garbage. */
9400 fd = open ("conftest.mmap", O_RDWR);
9401 if (fd < 0)
9402 exit (1);
9403 data2 = (char *) malloc (2 * pagesize);
9404 if (!data2)
9405 exit (1);
9406 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
9407 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
9408 MAP_PRIVATE | MAP_FIXED, fd, 0L))
9409 exit (1);
9410 for (i = 0; i < pagesize; ++i)
9411 if (*(data + i) != *(data2 + i))
9412 exit (1);
9414 /* Finally, make sure that changes to the mapped area do not
9415 percolate back to the file as seen by read(). (This is a bug on
9416 some variants of i386 svr4.0.) */
9417 for (i = 0; i < pagesize; ++i)
9418 *(data2 + i) = *(data2 + i) + 1;
9419 data3 = (char *) malloc (pagesize);
9420 if (!data3)
9421 exit (1);
9422 if (read (fd, data3, pagesize) != pagesize)
9423 exit (1);
9424 for (i = 0; i < pagesize; ++i)
9425 if (*(data + i) != *(data3 + i))
9426 exit (1);
9427 close (fd);
9428 exit (0);
9430 _ACEOF
9431 rm -f conftest$ac_exeext
9432 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9433 (eval $ac_link) 2>&5
9434 ac_status=$?
9435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9436 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9438 (eval $ac_try) 2>&5
9439 ac_status=$?
9440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9441 (exit $ac_status); }; }; then
9442 ac_cv_func_mmap_fixed_mapped=yes
9443 else
9444 echo "$as_me: program exited with status $ac_status" >&5
9445 echo "$as_me: failed program was:" >&5
9446 sed 's/^/| /' conftest.$ac_ext >&5
9448 ( exit $ac_status )
9449 ac_cv_func_mmap_fixed_mapped=no
9451 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9454 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
9455 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
9456 if test $ac_cv_func_mmap_fixed_mapped = yes; then
9458 cat >>confdefs.h <<\_ACEOF
9459 #define HAVE_MMAP 1
9460 _ACEOF
9463 rm -f conftest.mmap
9465 if test $use_mmap_for_buffers = yes; then
9466 REL_ALLOC=no
9469 LIBS="$libsrc_libs $LIBS"
9472 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
9473 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
9474 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
9475 echo $ECHO_N "(cached) $ECHO_C" >&6
9476 else
9477 ac_check_lib_save_LIBS=$LIBS
9478 LIBS="-ldnet $LIBS"
9479 cat >conftest.$ac_ext <<_ACEOF
9480 /* confdefs.h. */
9481 _ACEOF
9482 cat confdefs.h >>conftest.$ac_ext
9483 cat >>conftest.$ac_ext <<_ACEOF
9484 /* end confdefs.h. */
9486 /* Override any gcc2 internal prototype to avoid an error. */
9487 #ifdef __cplusplus
9488 extern "C"
9489 #endif
9490 /* We use char because int might match the return type of a gcc2
9491 builtin and then its argument prototype would still apply. */
9492 char dnet_ntoa ();
9494 main ()
9496 dnet_ntoa ();
9498 return 0;
9500 _ACEOF
9501 rm -f conftest.$ac_objext conftest$ac_exeext
9502 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9503 (eval $ac_link) 2>conftest.er1
9504 ac_status=$?
9505 grep -v '^ *+' conftest.er1 >conftest.err
9506 rm -f conftest.er1
9507 cat conftest.err >&5
9508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9509 (exit $ac_status); } &&
9510 { ac_try='test -z "$ac_c_werror_flag"
9511 || test ! -s conftest.err'
9512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9513 (eval $ac_try) 2>&5
9514 ac_status=$?
9515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9516 (exit $ac_status); }; } &&
9517 { ac_try='test -s conftest$ac_exeext'
9518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9519 (eval $ac_try) 2>&5
9520 ac_status=$?
9521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9522 (exit $ac_status); }; }; then
9523 ac_cv_lib_dnet_dnet_ntoa=yes
9524 else
9525 echo "$as_me: failed program was:" >&5
9526 sed 's/^/| /' conftest.$ac_ext >&5
9528 ac_cv_lib_dnet_dnet_ntoa=no
9530 rm -f conftest.err conftest.$ac_objext \
9531 conftest$ac_exeext conftest.$ac_ext
9532 LIBS=$ac_check_lib_save_LIBS
9534 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
9535 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
9536 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
9537 cat >>confdefs.h <<_ACEOF
9538 #define HAVE_LIBDNET 1
9539 _ACEOF
9541 LIBS="-ldnet $LIBS"
9546 echo "$as_me:$LINENO: checking for main in -lXbsd" >&5
9547 echo $ECHO_N "checking for main in -lXbsd... $ECHO_C" >&6
9548 if test "${ac_cv_lib_Xbsd_main+set}" = set; then
9549 echo $ECHO_N "(cached) $ECHO_C" >&6
9550 else
9551 ac_check_lib_save_LIBS=$LIBS
9552 LIBS="-lXbsd $LIBS"
9553 cat >conftest.$ac_ext <<_ACEOF
9554 /* confdefs.h. */
9555 _ACEOF
9556 cat confdefs.h >>conftest.$ac_ext
9557 cat >>conftest.$ac_ext <<_ACEOF
9558 /* end confdefs.h. */
9562 main ()
9564 main ();
9566 return 0;
9568 _ACEOF
9569 rm -f conftest.$ac_objext conftest$ac_exeext
9570 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9571 (eval $ac_link) 2>conftest.er1
9572 ac_status=$?
9573 grep -v '^ *+' conftest.er1 >conftest.err
9574 rm -f conftest.er1
9575 cat conftest.err >&5
9576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9577 (exit $ac_status); } &&
9578 { ac_try='test -z "$ac_c_werror_flag"
9579 || test ! -s conftest.err'
9580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9581 (eval $ac_try) 2>&5
9582 ac_status=$?
9583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9584 (exit $ac_status); }; } &&
9585 { ac_try='test -s conftest$ac_exeext'
9586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9587 (eval $ac_try) 2>&5
9588 ac_status=$?
9589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9590 (exit $ac_status); }; }; then
9591 ac_cv_lib_Xbsd_main=yes
9592 else
9593 echo "$as_me: failed program was:" >&5
9594 sed 's/^/| /' conftest.$ac_ext >&5
9596 ac_cv_lib_Xbsd_main=no
9598 rm -f conftest.err conftest.$ac_objext \
9599 conftest$ac_exeext conftest.$ac_ext
9600 LIBS=$ac_check_lib_save_LIBS
9602 echo "$as_me:$LINENO: result: $ac_cv_lib_Xbsd_main" >&5
9603 echo "${ECHO_T}$ac_cv_lib_Xbsd_main" >&6
9604 if test $ac_cv_lib_Xbsd_main = yes; then
9605 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
9610 echo "$as_me:$LINENO: checking for cma_open in -lpthreads" >&5
9611 echo $ECHO_N "checking for cma_open in -lpthreads... $ECHO_C" >&6
9612 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then
9613 echo $ECHO_N "(cached) $ECHO_C" >&6
9614 else
9615 ac_check_lib_save_LIBS=$LIBS
9616 LIBS="-lpthreads $LIBS"
9617 cat >conftest.$ac_ext <<_ACEOF
9618 /* confdefs.h. */
9619 _ACEOF
9620 cat confdefs.h >>conftest.$ac_ext
9621 cat >>conftest.$ac_ext <<_ACEOF
9622 /* end confdefs.h. */
9624 /* Override any gcc2 internal prototype to avoid an error. */
9625 #ifdef __cplusplus
9626 extern "C"
9627 #endif
9628 /* We use char because int might match the return type of a gcc2
9629 builtin and then its argument prototype would still apply. */
9630 char cma_open ();
9632 main ()
9634 cma_open ();
9636 return 0;
9638 _ACEOF
9639 rm -f conftest.$ac_objext conftest$ac_exeext
9640 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9641 (eval $ac_link) 2>conftest.er1
9642 ac_status=$?
9643 grep -v '^ *+' conftest.er1 >conftest.err
9644 rm -f conftest.er1
9645 cat conftest.err >&5
9646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9647 (exit $ac_status); } &&
9648 { ac_try='test -z "$ac_c_werror_flag"
9649 || test ! -s conftest.err'
9650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9651 (eval $ac_try) 2>&5
9652 ac_status=$?
9653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9654 (exit $ac_status); }; } &&
9655 { ac_try='test -s conftest$ac_exeext'
9656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9657 (eval $ac_try) 2>&5
9658 ac_status=$?
9659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9660 (exit $ac_status); }; }; then
9661 ac_cv_lib_pthreads_cma_open=yes
9662 else
9663 echo "$as_me: failed program was:" >&5
9664 sed 's/^/| /' conftest.$ac_ext >&5
9666 ac_cv_lib_pthreads_cma_open=no
9668 rm -f conftest.err conftest.$ac_objext \
9669 conftest$ac_exeext conftest.$ac_ext
9670 LIBS=$ac_check_lib_save_LIBS
9672 echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_cma_open" >&5
9673 echo "${ECHO_T}$ac_cv_lib_pthreads_cma_open" >&6
9674 if test $ac_cv_lib_pthreads_cma_open = yes; then
9675 cat >>confdefs.h <<_ACEOF
9676 #define HAVE_LIBPTHREADS 1
9677 _ACEOF
9679 LIBS="-lpthreads $LIBS"
9684 echo "$as_me:$LINENO: checking for XFree86 in /usr/X386" >&5
9685 echo $ECHO_N "checking for XFree86 in /usr/X386... $ECHO_C" >&6
9686 if test -d /usr/X386/include; then
9687 HAVE_XFREE386=yes
9688 : ${C_SWITCH_X_SITE="-I/usr/X386/include"}
9689 else
9690 HAVE_XFREE386=no
9692 echo "$as_me:$LINENO: result: $HAVE_XFREE386" >&5
9693 echo "${ECHO_T}$HAVE_XFREE386" >&6
9696 case ${host_os} in
9697 aix*)
9698 echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
9699 echo $ECHO_N "checking for -bbigtoc option... $ECHO_C" >&6
9700 if test "${gdb_cv_bigtoc+set}" = set; then
9701 echo $ECHO_N "(cached) $ECHO_C" >&6
9702 else
9704 case $GCC in
9705 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
9706 *) gdb_cv_bigtoc=-bbigtoc ;;
9707 esac
9709 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
9710 cat >conftest.$ac_ext <<_ACEOF
9711 /* confdefs.h. */
9712 _ACEOF
9713 cat confdefs.h >>conftest.$ac_ext
9714 cat >>conftest.$ac_ext <<_ACEOF
9715 /* end confdefs.h. */
9718 main ()
9720 int i;
9722 return 0;
9724 _ACEOF
9725 rm -f conftest.$ac_objext conftest$ac_exeext
9726 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9727 (eval $ac_link) 2>conftest.er1
9728 ac_status=$?
9729 grep -v '^ *+' conftest.er1 >conftest.err
9730 rm -f conftest.er1
9731 cat conftest.err >&5
9732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9733 (exit $ac_status); } &&
9734 { ac_try='test -z "$ac_c_werror_flag"
9735 || test ! -s conftest.err'
9736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9737 (eval $ac_try) 2>&5
9738 ac_status=$?
9739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9740 (exit $ac_status); }; } &&
9741 { ac_try='test -s conftest$ac_exeext'
9742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9743 (eval $ac_try) 2>&5
9744 ac_status=$?
9745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9746 (exit $ac_status); }; }; then
9748 else
9749 echo "$as_me: failed program was:" >&5
9750 sed 's/^/| /' conftest.$ac_ext >&5
9752 gdb_cv_bigtoc=
9754 rm -f conftest.err conftest.$ac_objext \
9755 conftest$ac_exeext conftest.$ac_ext
9758 echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
9759 echo "${ECHO_T}$gdb_cv_bigtoc" >&6
9761 esac
9763 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
9764 # used for the tests that follow. We set them back to REAL_CFLAGS and
9765 # REAL_CPPFLAGS later on.
9767 REAL_CPPFLAGS="$CPPFLAGS"
9769 if test "${HAVE_X11}" = "yes"; then
9770 DEFS="$C_SWITCH_X_SITE $DEFS"
9771 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
9772 LIBS="$LIBX $LIBS"
9773 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
9774 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
9776 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
9777 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
9778 # but it's more convenient here to set LD_RUN_PATH
9779 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
9780 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
9781 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
9782 export LD_RUN_PATH
9785 if test "${opsys}" = "gnu-linux"; then
9786 echo "$as_me:$LINENO: checking whether X on GNU/Linux needs -b to link" >&5
9787 echo $ECHO_N "checking whether X on GNU/Linux needs -b to link... $ECHO_C" >&6
9788 cat >conftest.$ac_ext <<_ACEOF
9789 /* confdefs.h. */
9790 _ACEOF
9791 cat confdefs.h >>conftest.$ac_ext
9792 cat >>conftest.$ac_ext <<_ACEOF
9793 /* end confdefs.h. */
9796 main ()
9798 XOpenDisplay ("foo");
9800 return 0;
9802 _ACEOF
9803 rm -f conftest.$ac_objext conftest$ac_exeext
9804 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9805 (eval $ac_link) 2>conftest.er1
9806 ac_status=$?
9807 grep -v '^ *+' conftest.er1 >conftest.err
9808 rm -f conftest.er1
9809 cat conftest.err >&5
9810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9811 (exit $ac_status); } &&
9812 { ac_try='test -z "$ac_c_werror_flag"
9813 || test ! -s conftest.err'
9814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9815 (eval $ac_try) 2>&5
9816 ac_status=$?
9817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9818 (exit $ac_status); }; } &&
9819 { ac_try='test -s conftest$ac_exeext'
9820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9821 (eval $ac_try) 2>&5
9822 ac_status=$?
9823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9824 (exit $ac_status); }; }; then
9825 xlinux_first_failure=no
9826 else
9827 echo "$as_me: failed program was:" >&5
9828 sed 's/^/| /' conftest.$ac_ext >&5
9830 xlinux_first_failure=yes
9832 rm -f conftest.err conftest.$ac_objext \
9833 conftest$ac_exeext conftest.$ac_ext
9834 if test "${xlinux_first_failure}" = "yes"; then
9835 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE"
9836 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE"
9837 OLD_CPPFLAGS="$CPPFLAGS"
9838 OLD_LIBS="$LIBS"
9839 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout"
9840 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout"
9841 CPPFLAGS="$CPPFLAGS -b i486-linuxaout"
9842 LIBS="$LIBS -b i486-linuxaout"
9843 cat >conftest.$ac_ext <<_ACEOF
9844 /* confdefs.h. */
9845 _ACEOF
9846 cat confdefs.h >>conftest.$ac_ext
9847 cat >>conftest.$ac_ext <<_ACEOF
9848 /* end confdefs.h. */
9851 main ()
9853 XOpenDisplay ("foo");
9855 return 0;
9857 _ACEOF
9858 rm -f conftest.$ac_objext conftest$ac_exeext
9859 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9860 (eval $ac_link) 2>conftest.er1
9861 ac_status=$?
9862 grep -v '^ *+' conftest.er1 >conftest.err
9863 rm -f conftest.er1
9864 cat conftest.err >&5
9865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9866 (exit $ac_status); } &&
9867 { ac_try='test -z "$ac_c_werror_flag"
9868 || test ! -s conftest.err'
9869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9870 (eval $ac_try) 2>&5
9871 ac_status=$?
9872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9873 (exit $ac_status); }; } &&
9874 { ac_try='test -s conftest$ac_exeext'
9875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9876 (eval $ac_try) 2>&5
9877 ac_status=$?
9878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9879 (exit $ac_status); }; }; then
9880 xlinux_second_failure=no
9881 else
9882 echo "$as_me: failed program was:" >&5
9883 sed 's/^/| /' conftest.$ac_ext >&5
9885 xlinux_second_failure=yes
9887 rm -f conftest.err conftest.$ac_objext \
9888 conftest$ac_exeext conftest.$ac_ext
9889 if test "${xlinux_second_failure}" = "yes"; then
9890 # If we get the same failure with -b, there is no use adding -b.
9891 # So take it out. This plays safe.
9892 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
9893 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
9894 CPPFLAGS="$OLD_CPPFLAGS"
9895 LIBS="$OLD_LIBS"
9896 echo "$as_me:$LINENO: result: no" >&5
9897 echo "${ECHO_T}no" >&6
9898 else
9899 echo "$as_me:$LINENO: result: yes" >&5
9900 echo "${ECHO_T}yes" >&6
9902 else
9903 echo "$as_me:$LINENO: result: no" >&5
9904 echo "${ECHO_T}no" >&6
9908 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
9909 # header files included from there.
9910 echo "$as_me:$LINENO: checking for Xkb" >&5
9911 echo $ECHO_N "checking for Xkb... $ECHO_C" >&6
9912 cat >conftest.$ac_ext <<_ACEOF
9913 /* confdefs.h. */
9914 _ACEOF
9915 cat confdefs.h >>conftest.$ac_ext
9916 cat >>conftest.$ac_ext <<_ACEOF
9917 /* end confdefs.h. */
9918 #include <X11/Xlib.h>
9919 #include <X11/XKBlib.h>
9921 main ()
9923 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
9925 return 0;
9927 _ACEOF
9928 rm -f conftest.$ac_objext conftest$ac_exeext
9929 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9930 (eval $ac_link) 2>conftest.er1
9931 ac_status=$?
9932 grep -v '^ *+' conftest.er1 >conftest.err
9933 rm -f conftest.er1
9934 cat conftest.err >&5
9935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9936 (exit $ac_status); } &&
9937 { ac_try='test -z "$ac_c_werror_flag"
9938 || test ! -s conftest.err'
9939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9940 (eval $ac_try) 2>&5
9941 ac_status=$?
9942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9943 (exit $ac_status); }; } &&
9944 { ac_try='test -s conftest$ac_exeext'
9945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9946 (eval $ac_try) 2>&5
9947 ac_status=$?
9948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9949 (exit $ac_status); }; }; then
9950 emacs_xkb=yes
9951 else
9952 echo "$as_me: failed program was:" >&5
9953 sed 's/^/| /' conftest.$ac_ext >&5
9955 emacs_xkb=no
9957 rm -f conftest.err conftest.$ac_objext \
9958 conftest$ac_exeext conftest.$ac_ext
9959 echo "$as_me:$LINENO: result: $emacs_xkb" >&5
9960 echo "${ECHO_T}$emacs_xkb" >&6
9961 if test $emacs_xkb = yes; then
9963 cat >>confdefs.h <<\_ACEOF
9964 #define HAVE_XKBGETKEYBOARD 1
9965 _ACEOF
9973 for ac_func in XrmSetDatabase XScreenResourceString \
9974 XScreenNumberOfScreen XSetWMProtocols
9976 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9977 echo "$as_me:$LINENO: checking for $ac_func" >&5
9978 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9979 if eval "test \"\${$as_ac_var+set}\" = set"; then
9980 echo $ECHO_N "(cached) $ECHO_C" >&6
9981 else
9982 cat >conftest.$ac_ext <<_ACEOF
9983 /* confdefs.h. */
9984 _ACEOF
9985 cat confdefs.h >>conftest.$ac_ext
9986 cat >>conftest.$ac_ext <<_ACEOF
9987 /* end confdefs.h. */
9988 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9989 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9990 #define $ac_func innocuous_$ac_func
9992 /* System header to define __stub macros and hopefully few prototypes,
9993 which can conflict with char $ac_func (); below.
9994 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9995 <limits.h> exists even on freestanding compilers. */
9997 #ifdef __STDC__
9998 # include <limits.h>
9999 #else
10000 # include <assert.h>
10001 #endif
10003 #undef $ac_func
10005 /* Override any gcc2 internal prototype to avoid an error. */
10006 #ifdef __cplusplus
10007 extern "C"
10009 #endif
10010 /* We use char because int might match the return type of a gcc2
10011 builtin and then its argument prototype would still apply. */
10012 char $ac_func ();
10013 /* The GNU C library defines this for functions which it implements
10014 to always fail with ENOSYS. Some functions are actually named
10015 something starting with __ and the normal name is an alias. */
10016 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10017 choke me
10018 #else
10019 char (*f) () = $ac_func;
10020 #endif
10021 #ifdef __cplusplus
10023 #endif
10026 main ()
10028 return f != $ac_func;
10030 return 0;
10032 _ACEOF
10033 rm -f conftest.$ac_objext conftest$ac_exeext
10034 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10035 (eval $ac_link) 2>conftest.er1
10036 ac_status=$?
10037 grep -v '^ *+' conftest.er1 >conftest.err
10038 rm -f conftest.er1
10039 cat conftest.err >&5
10040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10041 (exit $ac_status); } &&
10042 { ac_try='test -z "$ac_c_werror_flag"
10043 || test ! -s conftest.err'
10044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10045 (eval $ac_try) 2>&5
10046 ac_status=$?
10047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10048 (exit $ac_status); }; } &&
10049 { ac_try='test -s conftest$ac_exeext'
10050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10051 (eval $ac_try) 2>&5
10052 ac_status=$?
10053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10054 (exit $ac_status); }; }; then
10055 eval "$as_ac_var=yes"
10056 else
10057 echo "$as_me: failed program was:" >&5
10058 sed 's/^/| /' conftest.$ac_ext >&5
10060 eval "$as_ac_var=no"
10062 rm -f conftest.err conftest.$ac_objext \
10063 conftest$ac_exeext conftest.$ac_ext
10065 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10066 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10067 if test `eval echo '${'$as_ac_var'}'` = yes; then
10068 cat >>confdefs.h <<_ACEOF
10069 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10070 _ACEOF
10073 done
10077 if test "${window_system}" = "x11"; then
10078 echo "$as_me:$LINENO: checking X11 version 6" >&5
10079 echo $ECHO_N "checking X11 version 6... $ECHO_C" >&6
10080 if test "${emacs_cv_x11_version_6+set}" = set; then
10081 echo $ECHO_N "(cached) $ECHO_C" >&6
10082 else
10083 cat >conftest.$ac_ext <<_ACEOF
10084 /* confdefs.h. */
10085 _ACEOF
10086 cat confdefs.h >>conftest.$ac_ext
10087 cat >>conftest.$ac_ext <<_ACEOF
10088 /* end confdefs.h. */
10089 #include <X11/Xlib.h>
10091 main ()
10093 #if XlibSpecificationRelease < 6
10094 fail;
10095 #endif
10098 return 0;
10100 _ACEOF
10101 rm -f conftest.$ac_objext conftest$ac_exeext
10102 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10103 (eval $ac_link) 2>conftest.er1
10104 ac_status=$?
10105 grep -v '^ *+' conftest.er1 >conftest.err
10106 rm -f conftest.er1
10107 cat conftest.err >&5
10108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10109 (exit $ac_status); } &&
10110 { ac_try='test -z "$ac_c_werror_flag"
10111 || test ! -s conftest.err'
10112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10113 (eval $ac_try) 2>&5
10114 ac_status=$?
10115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10116 (exit $ac_status); }; } &&
10117 { ac_try='test -s conftest$ac_exeext'
10118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10119 (eval $ac_try) 2>&5
10120 ac_status=$?
10121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10122 (exit $ac_status); }; }; then
10123 emacs_cv_x11_version_6=yes
10124 else
10125 echo "$as_me: failed program was:" >&5
10126 sed 's/^/| /' conftest.$ac_ext >&5
10128 emacs_cv_x11_version_6=no
10130 rm -f conftest.err conftest.$ac_objext \
10131 conftest$ac_exeext conftest.$ac_ext
10134 if test $emacs_cv_x11_version_6 = yes; then
10135 echo "$as_me:$LINENO: result: 6 or newer" >&5
10136 echo "${ECHO_T}6 or newer" >&6
10138 cat >>confdefs.h <<\_ACEOF
10139 #define HAVE_X11R6 1
10140 _ACEOF
10142 else
10143 echo "$as_me:$LINENO: result: before 6" >&5
10144 echo "${ECHO_T}before 6" >&6
10148 if test "${window_system}" = "x11"; then
10149 echo "$as_me:$LINENO: checking X11 version 5" >&5
10150 echo $ECHO_N "checking X11 version 5... $ECHO_C" >&6
10151 if test "${emacs_cv_x11_version_5+set}" = set; then
10152 echo $ECHO_N "(cached) $ECHO_C" >&6
10153 else
10154 cat >conftest.$ac_ext <<_ACEOF
10155 /* confdefs.h. */
10156 _ACEOF
10157 cat confdefs.h >>conftest.$ac_ext
10158 cat >>conftest.$ac_ext <<_ACEOF
10159 /* end confdefs.h. */
10160 #include <X11/Xlib.h>
10162 main ()
10164 #if XlibSpecificationRelease < 5
10165 fail;
10166 #endif
10169 return 0;
10171 _ACEOF
10172 rm -f conftest.$ac_objext conftest$ac_exeext
10173 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10174 (eval $ac_link) 2>conftest.er1
10175 ac_status=$?
10176 grep -v '^ *+' conftest.er1 >conftest.err
10177 rm -f conftest.er1
10178 cat conftest.err >&5
10179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10180 (exit $ac_status); } &&
10181 { ac_try='test -z "$ac_c_werror_flag"
10182 || test ! -s conftest.err'
10183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10184 (eval $ac_try) 2>&5
10185 ac_status=$?
10186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10187 (exit $ac_status); }; } &&
10188 { ac_try='test -s conftest$ac_exeext'
10189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10190 (eval $ac_try) 2>&5
10191 ac_status=$?
10192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10193 (exit $ac_status); }; }; then
10194 emacs_cv_x11_version_5=yes
10195 else
10196 echo "$as_me: failed program was:" >&5
10197 sed 's/^/| /' conftest.$ac_ext >&5
10199 emacs_cv_x11_version_5=no
10201 rm -f conftest.err conftest.$ac_objext \
10202 conftest$ac_exeext conftest.$ac_ext
10205 if test $emacs_cv_x11_version_5 = yes; then
10206 echo "$as_me:$LINENO: result: 5 or newer" >&5
10207 echo "${ECHO_T}5 or newer" >&6
10208 HAVE_X11R5=yes
10210 cat >>confdefs.h <<\_ACEOF
10211 #define HAVE_X11R5 1
10212 _ACEOF
10214 else
10215 HAVE_X11R5=no
10216 echo "$as_me:$LINENO: result: before 5" >&5
10217 echo "${ECHO_T}before 5" >&6
10223 HAVE_GTK=no
10224 if test "${with_gtk}" = "yes" || test "$USE_X_TOOLKIT" = "gtk"; then
10225 if test "$USE_X_TOOLKIT" != "none" && test "$USE_X_TOOLKIT" != "maybe"; then
10226 { { echo "$as_me:$LINENO: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&5
10227 echo "$as_me: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&2;}
10228 { (exit 1); exit 1; }; };
10230 GLIB_REQUIRED=2.4
10231 GTK_REQUIRED=2.4
10232 GTK_MODULES="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
10234 if test "X${with_pkg_config_prog}" != X; then
10235 PKG_CONFIG="${with_pkg_config_prog}"
10238 succeeded=no
10240 if test -z "$PKG_CONFIG"; then
10241 # Extract the first word of "pkg-config", so it can be a program name with args.
10242 set dummy pkg-config; ac_word=$2
10243 echo "$as_me:$LINENO: checking for $ac_word" >&5
10244 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10245 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
10246 echo $ECHO_N "(cached) $ECHO_C" >&6
10247 else
10248 case $PKG_CONFIG in
10249 [\\/]* | ?:[\\/]*)
10250 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10254 for as_dir in $PATH
10256 IFS=$as_save_IFS
10257 test -z "$as_dir" && as_dir=.
10258 for ac_exec_ext in '' $ac_executable_extensions; do
10259 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10260 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10261 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10262 break 2
10264 done
10265 done
10267 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10269 esac
10271 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10273 if test -n "$PKG_CONFIG"; then
10274 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
10275 echo "${ECHO_T}$PKG_CONFIG" >&6
10276 else
10277 echo "$as_me:$LINENO: result: no" >&5
10278 echo "${ECHO_T}no" >&6
10283 if test "$PKG_CONFIG" = "no" ; then
10284 echo "*** The pkg-config script could not be found. Make sure it is"
10285 echo "*** in your path, or give the full path to pkg-config with"
10286 echo "*** the PKG_CONFIG environment variable or --with-pkg-config-prog."
10287 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
10288 else
10289 PKG_CONFIG_MIN_VERSION=0.9.0
10290 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10291 echo "$as_me:$LINENO: checking for $GTK_MODULES" >&5
10292 echo $ECHO_N "checking for $GTK_MODULES... $ECHO_C" >&6
10294 if $PKG_CONFIG --exists "$GTK_MODULES" ; then
10295 echo "$as_me:$LINENO: result: yes" >&5
10296 echo "${ECHO_T}yes" >&6
10297 succeeded=yes
10299 echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
10300 echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6
10301 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"`
10302 echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
10303 echo "${ECHO_T}$GTK_CFLAGS" >&6
10305 echo "$as_me:$LINENO: checking GTK_LIBS" >&5
10306 echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6
10307 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"`
10308 echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
10309 echo "${ECHO_T}$GTK_LIBS" >&6
10310 else
10311 GTK_CFLAGS=""
10312 GTK_LIBS=""
10313 ## If we have a custom action on failure, don't print errors, but
10314 ## do set a variable so people can do so.
10315 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
10316 echo $GTK_PKG_ERRORS
10321 else
10322 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10323 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10327 if test $succeeded = yes; then
10329 else
10330 { { 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
10331 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;}
10332 { (exit 1); exit 1; }; }
10337 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS"
10338 CFLAGS="$CFLAGS $GTK_CFLAGS"
10339 LIBS="$GTK_LIBS $LIBS"
10340 HAVE_GTK=yes
10342 cat >>confdefs.h <<\_ACEOF
10343 #define HAVE_GTK 1
10344 _ACEOF
10346 USE_X_TOOLKIT=none
10348 if test "$with_toolkit_scroll_bars" != no; then
10349 with_toolkit_scroll_bars=yes
10352 HAVE_GTK_MULTIDISPLAY=no
10354 for ac_func in gdk_display_open
10356 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10357 echo "$as_me:$LINENO: checking for $ac_func" >&5
10358 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10359 if eval "test \"\${$as_ac_var+set}\" = set"; then
10360 echo $ECHO_N "(cached) $ECHO_C" >&6
10361 else
10362 cat >conftest.$ac_ext <<_ACEOF
10363 /* confdefs.h. */
10364 _ACEOF
10365 cat confdefs.h >>conftest.$ac_ext
10366 cat >>conftest.$ac_ext <<_ACEOF
10367 /* end confdefs.h. */
10368 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10369 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10370 #define $ac_func innocuous_$ac_func
10372 /* System header to define __stub macros and hopefully few prototypes,
10373 which can conflict with char $ac_func (); below.
10374 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10375 <limits.h> exists even on freestanding compilers. */
10377 #ifdef __STDC__
10378 # include <limits.h>
10379 #else
10380 # include <assert.h>
10381 #endif
10383 #undef $ac_func
10385 /* Override any gcc2 internal prototype to avoid an error. */
10386 #ifdef __cplusplus
10387 extern "C"
10389 #endif
10390 /* We use char because int might match the return type of a gcc2
10391 builtin and then its argument prototype would still apply. */
10392 char $ac_func ();
10393 /* The GNU C library defines this for functions which it implements
10394 to always fail with ENOSYS. Some functions are actually named
10395 something starting with __ and the normal name is an alias. */
10396 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10397 choke me
10398 #else
10399 char (*f) () = $ac_func;
10400 #endif
10401 #ifdef __cplusplus
10403 #endif
10406 main ()
10408 return f != $ac_func;
10410 return 0;
10412 _ACEOF
10413 rm -f conftest.$ac_objext conftest$ac_exeext
10414 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10415 (eval $ac_link) 2>conftest.er1
10416 ac_status=$?
10417 grep -v '^ *+' conftest.er1 >conftest.err
10418 rm -f conftest.er1
10419 cat conftest.err >&5
10420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10421 (exit $ac_status); } &&
10422 { ac_try='test -z "$ac_c_werror_flag"
10423 || test ! -s conftest.err'
10424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10425 (eval $ac_try) 2>&5
10426 ac_status=$?
10427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10428 (exit $ac_status); }; } &&
10429 { ac_try='test -s conftest$ac_exeext'
10430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10431 (eval $ac_try) 2>&5
10432 ac_status=$?
10433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10434 (exit $ac_status); }; }; then
10435 eval "$as_ac_var=yes"
10436 else
10437 echo "$as_me: failed program was:" >&5
10438 sed 's/^/| /' conftest.$ac_ext >&5
10440 eval "$as_ac_var=no"
10442 rm -f conftest.err conftest.$ac_objext \
10443 conftest$ac_exeext conftest.$ac_ext
10445 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10446 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10447 if test `eval echo '${'$as_ac_var'}'` = yes; then
10448 cat >>confdefs.h <<_ACEOF
10449 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10450 _ACEOF
10451 HAVE_GTK_MULTIDISPLAY=yes
10453 done
10455 if test "${HAVE_GTK_MULTIDISPLAY}" = "yes"; then
10457 cat >>confdefs.h <<\_ACEOF
10458 #define HAVE_GTK_MULTIDISPLAY 1
10459 _ACEOF
10462 HAVE_GTK_FILE_SELECTION=no
10464 for ac_func in gtk_file_selection_new
10466 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10467 echo "$as_me:$LINENO: checking for $ac_func" >&5
10468 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10469 if eval "test \"\${$as_ac_var+set}\" = set"; then
10470 echo $ECHO_N "(cached) $ECHO_C" >&6
10471 else
10472 cat >conftest.$ac_ext <<_ACEOF
10473 /* confdefs.h. */
10474 _ACEOF
10475 cat confdefs.h >>conftest.$ac_ext
10476 cat >>conftest.$ac_ext <<_ACEOF
10477 /* end confdefs.h. */
10478 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10479 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10480 #define $ac_func innocuous_$ac_func
10482 /* System header to define __stub macros and hopefully few prototypes,
10483 which can conflict with char $ac_func (); below.
10484 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10485 <limits.h> exists even on freestanding compilers. */
10487 #ifdef __STDC__
10488 # include <limits.h>
10489 #else
10490 # include <assert.h>
10491 #endif
10493 #undef $ac_func
10495 /* Override any gcc2 internal prototype to avoid an error. */
10496 #ifdef __cplusplus
10497 extern "C"
10499 #endif
10500 /* We use char because int might match the return type of a gcc2
10501 builtin and then its argument prototype would still apply. */
10502 char $ac_func ();
10503 /* The GNU C library defines this for functions which it implements
10504 to always fail with ENOSYS. Some functions are actually named
10505 something starting with __ and the normal name is an alias. */
10506 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10507 choke me
10508 #else
10509 char (*f) () = $ac_func;
10510 #endif
10511 #ifdef __cplusplus
10513 #endif
10516 main ()
10518 return f != $ac_func;
10520 return 0;
10522 _ACEOF
10523 rm -f conftest.$ac_objext conftest$ac_exeext
10524 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10525 (eval $ac_link) 2>conftest.er1
10526 ac_status=$?
10527 grep -v '^ *+' conftest.er1 >conftest.err
10528 rm -f conftest.er1
10529 cat conftest.err >&5
10530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10531 (exit $ac_status); } &&
10532 { ac_try='test -z "$ac_c_werror_flag"
10533 || test ! -s conftest.err'
10534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10535 (eval $ac_try) 2>&5
10536 ac_status=$?
10537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10538 (exit $ac_status); }; } &&
10539 { ac_try='test -s conftest$ac_exeext'
10540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10541 (eval $ac_try) 2>&5
10542 ac_status=$?
10543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10544 (exit $ac_status); }; }; then
10545 eval "$as_ac_var=yes"
10546 else
10547 echo "$as_me: failed program was:" >&5
10548 sed 's/^/| /' conftest.$ac_ext >&5
10550 eval "$as_ac_var=no"
10552 rm -f conftest.err conftest.$ac_objext \
10553 conftest$ac_exeext conftest.$ac_ext
10555 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10556 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10557 if test `eval echo '${'$as_ac_var'}'` = yes; then
10558 cat >>confdefs.h <<_ACEOF
10559 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10560 _ACEOF
10561 HAVE_GTK_FILE_SELECTION=yes
10563 done
10566 HAVE_GTK_FILE_CHOOSER=no
10568 for ac_func in gtk_file_chooser_dialog_new
10570 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10571 echo "$as_me:$LINENO: checking for $ac_func" >&5
10572 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10573 if eval "test \"\${$as_ac_var+set}\" = set"; then
10574 echo $ECHO_N "(cached) $ECHO_C" >&6
10575 else
10576 cat >conftest.$ac_ext <<_ACEOF
10577 /* confdefs.h. */
10578 _ACEOF
10579 cat confdefs.h >>conftest.$ac_ext
10580 cat >>conftest.$ac_ext <<_ACEOF
10581 /* end confdefs.h. */
10582 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10583 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10584 #define $ac_func innocuous_$ac_func
10586 /* System header to define __stub macros and hopefully few prototypes,
10587 which can conflict with char $ac_func (); below.
10588 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10589 <limits.h> exists even on freestanding compilers. */
10591 #ifdef __STDC__
10592 # include <limits.h>
10593 #else
10594 # include <assert.h>
10595 #endif
10597 #undef $ac_func
10599 /* Override any gcc2 internal prototype to avoid an error. */
10600 #ifdef __cplusplus
10601 extern "C"
10603 #endif
10604 /* We use char because int might match the return type of a gcc2
10605 builtin and then its argument prototype would still apply. */
10606 char $ac_func ();
10607 /* The GNU C library defines this for functions which it implements
10608 to always fail with ENOSYS. Some functions are actually named
10609 something starting with __ and the normal name is an alias. */
10610 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10611 choke me
10612 #else
10613 char (*f) () = $ac_func;
10614 #endif
10615 #ifdef __cplusplus
10617 #endif
10620 main ()
10622 return f != $ac_func;
10624 return 0;
10626 _ACEOF
10627 rm -f conftest.$ac_objext conftest$ac_exeext
10628 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10629 (eval $ac_link) 2>conftest.er1
10630 ac_status=$?
10631 grep -v '^ *+' conftest.er1 >conftest.err
10632 rm -f conftest.er1
10633 cat conftest.err >&5
10634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10635 (exit $ac_status); } &&
10636 { ac_try='test -z "$ac_c_werror_flag"
10637 || test ! -s conftest.err'
10638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10639 (eval $ac_try) 2>&5
10640 ac_status=$?
10641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10642 (exit $ac_status); }; } &&
10643 { ac_try='test -s conftest$ac_exeext'
10644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10645 (eval $ac_try) 2>&5
10646 ac_status=$?
10647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10648 (exit $ac_status); }; }; then
10649 eval "$as_ac_var=yes"
10650 else
10651 echo "$as_me: failed program was:" >&5
10652 sed 's/^/| /' conftest.$ac_ext >&5
10654 eval "$as_ac_var=no"
10656 rm -f conftest.err conftest.$ac_objext \
10657 conftest$ac_exeext conftest.$ac_ext
10659 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10660 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10661 if test `eval echo '${'$as_ac_var'}'` = yes; then
10662 cat >>confdefs.h <<_ACEOF
10663 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10664 _ACEOF
10665 HAVE_GTK_FILE_CHOOSER=yes
10667 done
10670 if test "$HAVE_GTK_FILE_SELECTION" = yes \
10671 && test "$HAVE_GTK_FILE_CHOOSER" = yes; then
10673 cat >>confdefs.h <<\_ACEOF
10674 #define HAVE_GTK_FILE_BOTH 1
10675 _ACEOF
10679 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
10680 HAVE_GTK_AND_PTHREAD=no
10682 for ac_header in pthread.h
10684 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10685 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10686 echo "$as_me:$LINENO: checking for $ac_header" >&5
10687 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10688 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10689 echo $ECHO_N "(cached) $ECHO_C" >&6
10691 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10692 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10693 else
10694 # Is the header compilable?
10695 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10696 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10697 cat >conftest.$ac_ext <<_ACEOF
10698 /* confdefs.h. */
10699 _ACEOF
10700 cat confdefs.h >>conftest.$ac_ext
10701 cat >>conftest.$ac_ext <<_ACEOF
10702 /* end confdefs.h. */
10703 $ac_includes_default
10704 #include <$ac_header>
10705 _ACEOF
10706 rm -f conftest.$ac_objext
10707 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10708 (eval $ac_compile) 2>conftest.er1
10709 ac_status=$?
10710 grep -v '^ *+' conftest.er1 >conftest.err
10711 rm -f conftest.er1
10712 cat conftest.err >&5
10713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10714 (exit $ac_status); } &&
10715 { ac_try='test -z "$ac_c_werror_flag"
10716 || test ! -s conftest.err'
10717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10718 (eval $ac_try) 2>&5
10719 ac_status=$?
10720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10721 (exit $ac_status); }; } &&
10722 { ac_try='test -s conftest.$ac_objext'
10723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10724 (eval $ac_try) 2>&5
10725 ac_status=$?
10726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10727 (exit $ac_status); }; }; then
10728 ac_header_compiler=yes
10729 else
10730 echo "$as_me: failed program was:" >&5
10731 sed 's/^/| /' conftest.$ac_ext >&5
10733 ac_header_compiler=no
10735 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10736 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10737 echo "${ECHO_T}$ac_header_compiler" >&6
10739 # Is the header present?
10740 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10741 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10742 cat >conftest.$ac_ext <<_ACEOF
10743 /* confdefs.h. */
10744 _ACEOF
10745 cat confdefs.h >>conftest.$ac_ext
10746 cat >>conftest.$ac_ext <<_ACEOF
10747 /* end confdefs.h. */
10748 #include <$ac_header>
10749 _ACEOF
10750 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10751 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10752 ac_status=$?
10753 grep -v '^ *+' conftest.er1 >conftest.err
10754 rm -f conftest.er1
10755 cat conftest.err >&5
10756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10757 (exit $ac_status); } >/dev/null; then
10758 if test -s conftest.err; then
10759 ac_cpp_err=$ac_c_preproc_warn_flag
10760 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10761 else
10762 ac_cpp_err=
10764 else
10765 ac_cpp_err=yes
10767 if test -z "$ac_cpp_err"; then
10768 ac_header_preproc=yes
10769 else
10770 echo "$as_me: failed program was:" >&5
10771 sed 's/^/| /' conftest.$ac_ext >&5
10773 ac_header_preproc=no
10775 rm -f conftest.err conftest.$ac_ext
10776 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10777 echo "${ECHO_T}$ac_header_preproc" >&6
10779 # So? What about this header?
10780 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10781 yes:no: )
10782 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10783 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10784 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10785 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10786 ac_header_preproc=yes
10788 no:yes:* )
10789 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10790 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10791 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10792 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10793 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10794 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10795 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10796 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10797 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10798 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10799 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10800 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10802 cat <<\_ASBOX
10803 ## ------------------------------------------ ##
10804 ## Report this to the AC_PACKAGE_NAME lists. ##
10805 ## ------------------------------------------ ##
10806 _ASBOX
10808 sed "s/^/$as_me: WARNING: /" >&2
10810 esac
10811 echo "$as_me:$LINENO: checking for $ac_header" >&5
10812 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10813 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10814 echo $ECHO_N "(cached) $ECHO_C" >&6
10815 else
10816 eval "$as_ac_Header=\$ac_header_preproc"
10818 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10819 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10822 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10823 cat >>confdefs.h <<_ACEOF
10824 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10825 _ACEOF
10829 done
10831 if test "$ac_cv_header_pthread_h"; then
10832 echo "$as_me:$LINENO: checking for pthread_self in -lpthread" >&5
10833 echo $ECHO_N "checking for pthread_self in -lpthread... $ECHO_C" >&6
10834 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then
10835 echo $ECHO_N "(cached) $ECHO_C" >&6
10836 else
10837 ac_check_lib_save_LIBS=$LIBS
10838 LIBS="-lpthread $LIBS"
10839 cat >conftest.$ac_ext <<_ACEOF
10840 /* confdefs.h. */
10841 _ACEOF
10842 cat confdefs.h >>conftest.$ac_ext
10843 cat >>conftest.$ac_ext <<_ACEOF
10844 /* end confdefs.h. */
10846 /* Override any gcc2 internal prototype to avoid an error. */
10847 #ifdef __cplusplus
10848 extern "C"
10849 #endif
10850 /* We use char because int might match the return type of a gcc2
10851 builtin and then its argument prototype would still apply. */
10852 char pthread_self ();
10854 main ()
10856 pthread_self ();
10858 return 0;
10860 _ACEOF
10861 rm -f conftest.$ac_objext conftest$ac_exeext
10862 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10863 (eval $ac_link) 2>conftest.er1
10864 ac_status=$?
10865 grep -v '^ *+' conftest.er1 >conftest.err
10866 rm -f conftest.er1
10867 cat conftest.err >&5
10868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10869 (exit $ac_status); } &&
10870 { ac_try='test -z "$ac_c_werror_flag"
10871 || test ! -s conftest.err'
10872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10873 (eval $ac_try) 2>&5
10874 ac_status=$?
10875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10876 (exit $ac_status); }; } &&
10877 { ac_try='test -s conftest$ac_exeext'
10878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10879 (eval $ac_try) 2>&5
10880 ac_status=$?
10881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10882 (exit $ac_status); }; }; then
10883 ac_cv_lib_pthread_pthread_self=yes
10884 else
10885 echo "$as_me: failed program was:" >&5
10886 sed 's/^/| /' conftest.$ac_ext >&5
10888 ac_cv_lib_pthread_pthread_self=no
10890 rm -f conftest.err conftest.$ac_objext \
10891 conftest$ac_exeext conftest.$ac_ext
10892 LIBS=$ac_check_lib_save_LIBS
10894 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_self" >&5
10895 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_self" >&6
10896 if test $ac_cv_lib_pthread_pthread_self = yes; then
10897 HAVE_GTK_AND_PTHREAD=yes
10901 if test "$HAVE_GTK_AND_PTHREAD" = yes; then
10902 GTK_LIBS="$GTK_LIBS -lpthread"
10904 cat >>confdefs.h <<\_ACEOF
10905 #define HAVE_GTK_AND_PTHREAD 1
10906 _ACEOF
10912 if test x"${USE_X_TOOLKIT}" = xmaybe; then
10913 if test x"${HAVE_X11R5}" = xyes; then
10914 echo "$as_me:$LINENO: checking X11 version 5 with Xaw" >&5
10915 echo $ECHO_N "checking X11 version 5 with Xaw... $ECHO_C" >&6
10916 if test "${emacs_cv_x11_version_5_with_xaw+set}" = set; then
10917 echo $ECHO_N "(cached) $ECHO_C" >&6
10918 else
10919 cat >conftest.$ac_ext <<_ACEOF
10920 /* confdefs.h. */
10921 _ACEOF
10922 cat confdefs.h >>conftest.$ac_ext
10923 cat >>conftest.$ac_ext <<_ACEOF
10924 /* end confdefs.h. */
10926 #include <X11/Intrinsic.h>
10927 #include <X11/Xaw/Simple.h>
10929 main ()
10933 return 0;
10935 _ACEOF
10936 rm -f conftest.$ac_objext conftest$ac_exeext
10937 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10938 (eval $ac_link) 2>conftest.er1
10939 ac_status=$?
10940 grep -v '^ *+' conftest.er1 >conftest.err
10941 rm -f conftest.er1
10942 cat conftest.err >&5
10943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10944 (exit $ac_status); } &&
10945 { ac_try='test -z "$ac_c_werror_flag"
10946 || test ! -s conftest.err'
10947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10948 (eval $ac_try) 2>&5
10949 ac_status=$?
10950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10951 (exit $ac_status); }; } &&
10952 { ac_try='test -s conftest$ac_exeext'
10953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10954 (eval $ac_try) 2>&5
10955 ac_status=$?
10956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10957 (exit $ac_status); }; }; then
10958 emacs_cv_x11_version_5_with_xaw=yes
10959 else
10960 echo "$as_me: failed program was:" >&5
10961 sed 's/^/| /' conftest.$ac_ext >&5
10963 emacs_cv_x11_version_5_with_xaw=no
10965 rm -f conftest.err conftest.$ac_objext \
10966 conftest$ac_exeext conftest.$ac_ext
10969 if test $emacs_cv_x11_version_5_with_xaw = yes; then
10970 echo "$as_me:$LINENO: result: 5 or newer, with Xaw; use toolkit by default" >&5
10971 echo "${ECHO_T}5 or newer, with Xaw; use toolkit by default" >&6
10972 USE_X_TOOLKIT=LUCID
10973 else
10974 echo "$as_me:$LINENO: result: before 5 or no Xaw; do not use toolkit by default" >&5
10975 echo "${ECHO_T}before 5 or no Xaw; do not use toolkit by default" >&6
10976 USE_X_TOOLKIT=none
10978 else
10979 USE_X_TOOLKIT=none
10983 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
10985 if test "${USE_X_TOOLKIT}" != "none"; then
10986 echo "$as_me:$LINENO: checking X11 toolkit version" >&5
10987 echo $ECHO_N "checking X11 toolkit version... $ECHO_C" >&6
10988 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then
10989 echo $ECHO_N "(cached) $ECHO_C" >&6
10990 else
10991 cat >conftest.$ac_ext <<_ACEOF
10992 /* confdefs.h. */
10993 _ACEOF
10994 cat confdefs.h >>conftest.$ac_ext
10995 cat >>conftest.$ac_ext <<_ACEOF
10996 /* end confdefs.h. */
10997 #include <X11/Intrinsic.h>
10999 main ()
11001 #if XtSpecificationRelease < 6
11002 fail;
11003 #endif
11006 return 0;
11008 _ACEOF
11009 rm -f conftest.$ac_objext conftest$ac_exeext
11010 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11011 (eval $ac_link) 2>conftest.er1
11012 ac_status=$?
11013 grep -v '^ *+' conftest.er1 >conftest.err
11014 rm -f conftest.er1
11015 cat conftest.err >&5
11016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11017 (exit $ac_status); } &&
11018 { ac_try='test -z "$ac_c_werror_flag"
11019 || test ! -s conftest.err'
11020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11021 (eval $ac_try) 2>&5
11022 ac_status=$?
11023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11024 (exit $ac_status); }; } &&
11025 { ac_try='test -s conftest$ac_exeext'
11026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11027 (eval $ac_try) 2>&5
11028 ac_status=$?
11029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11030 (exit $ac_status); }; }; then
11031 emacs_cv_x11_toolkit_version_6=yes
11032 else
11033 echo "$as_me: failed program was:" >&5
11034 sed 's/^/| /' conftest.$ac_ext >&5
11036 emacs_cv_x11_toolkit_version_6=no
11038 rm -f conftest.err conftest.$ac_objext \
11039 conftest$ac_exeext conftest.$ac_ext
11042 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
11043 if test $emacs_cv_x11_toolkit_version_6 = yes; then
11044 echo "$as_me:$LINENO: result: 6 or newer" >&5
11045 echo "${ECHO_T}6 or newer" >&6
11047 cat >>confdefs.h <<\_ACEOF
11048 #define HAVE_X11XTR6 1
11049 _ACEOF
11051 else
11052 echo "$as_me:$LINENO: result: before 6" >&5
11053 echo "${ECHO_T}before 6" >&6
11056 OLDLIBS="$LIBS"
11057 if test x$HAVE_X11XTR6 = xyes; then
11058 LIBS="-lXt -lSM -lICE $LIBS"
11059 else
11060 LIBS="-lXt $LIBS"
11063 echo "$as_me:$LINENO: checking for XmuConvertStandardSelection in -lXmu" >&5
11064 echo $ECHO_N "checking for XmuConvertStandardSelection in -lXmu... $ECHO_C" >&6
11065 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then
11066 echo $ECHO_N "(cached) $ECHO_C" >&6
11067 else
11068 ac_check_lib_save_LIBS=$LIBS
11069 LIBS="-lXmu $LIBS"
11070 cat >conftest.$ac_ext <<_ACEOF
11071 /* confdefs.h. */
11072 _ACEOF
11073 cat confdefs.h >>conftest.$ac_ext
11074 cat >>conftest.$ac_ext <<_ACEOF
11075 /* end confdefs.h. */
11077 /* Override any gcc2 internal prototype to avoid an error. */
11078 #ifdef __cplusplus
11079 extern "C"
11080 #endif
11081 /* We use char because int might match the return type of a gcc2
11082 builtin and then its argument prototype would still apply. */
11083 char XmuConvertStandardSelection ();
11085 main ()
11087 XmuConvertStandardSelection ();
11089 return 0;
11091 _ACEOF
11092 rm -f conftest.$ac_objext conftest$ac_exeext
11093 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11094 (eval $ac_link) 2>conftest.er1
11095 ac_status=$?
11096 grep -v '^ *+' conftest.er1 >conftest.err
11097 rm -f conftest.er1
11098 cat conftest.err >&5
11099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11100 (exit $ac_status); } &&
11101 { ac_try='test -z "$ac_c_werror_flag"
11102 || test ! -s conftest.err'
11103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11104 (eval $ac_try) 2>&5
11105 ac_status=$?
11106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11107 (exit $ac_status); }; } &&
11108 { ac_try='test -s conftest$ac_exeext'
11109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11110 (eval $ac_try) 2>&5
11111 ac_status=$?
11112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11113 (exit $ac_status); }; }; then
11114 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
11115 else
11116 echo "$as_me: failed program was:" >&5
11117 sed 's/^/| /' conftest.$ac_ext >&5
11119 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
11121 rm -f conftest.err conftest.$ac_objext \
11122 conftest$ac_exeext conftest.$ac_ext
11123 LIBS=$ac_check_lib_save_LIBS
11125 echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
11126 echo "${ECHO_T}$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6
11127 if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then
11128 cat >>confdefs.h <<_ACEOF
11129 #define HAVE_LIBXMU 1
11130 _ACEOF
11132 LIBS="-lXmu $LIBS"
11136 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
11139 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
11140 if test "${HAVE_X11}" = "yes"; then
11141 if test "${USE_X_TOOLKIT}" != "none"; then
11143 echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
11144 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
11145 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
11146 echo $ECHO_N "(cached) $ECHO_C" >&6
11147 else
11148 ac_check_lib_save_LIBS=$LIBS
11149 LIBS="-lXext $LIBS"
11150 cat >conftest.$ac_ext <<_ACEOF
11151 /* confdefs.h. */
11152 _ACEOF
11153 cat confdefs.h >>conftest.$ac_ext
11154 cat >>conftest.$ac_ext <<_ACEOF
11155 /* end confdefs.h. */
11157 /* Override any gcc2 internal prototype to avoid an error. */
11158 #ifdef __cplusplus
11159 extern "C"
11160 #endif
11161 /* We use char because int might match the return type of a gcc2
11162 builtin and then its argument prototype would still apply. */
11163 char XShapeQueryExtension ();
11165 main ()
11167 XShapeQueryExtension ();
11169 return 0;
11171 _ACEOF
11172 rm -f conftest.$ac_objext conftest$ac_exeext
11173 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11174 (eval $ac_link) 2>conftest.er1
11175 ac_status=$?
11176 grep -v '^ *+' conftest.er1 >conftest.err
11177 rm -f conftest.er1
11178 cat conftest.err >&5
11179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11180 (exit $ac_status); } &&
11181 { ac_try='test -z "$ac_c_werror_flag"
11182 || test ! -s conftest.err'
11183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11184 (eval $ac_try) 2>&5
11185 ac_status=$?
11186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11187 (exit $ac_status); }; } &&
11188 { ac_try='test -s conftest$ac_exeext'
11189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11190 (eval $ac_try) 2>&5
11191 ac_status=$?
11192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11193 (exit $ac_status); }; }; then
11194 ac_cv_lib_Xext_XShapeQueryExtension=yes
11195 else
11196 echo "$as_me: failed program was:" >&5
11197 sed 's/^/| /' conftest.$ac_ext >&5
11199 ac_cv_lib_Xext_XShapeQueryExtension=no
11201 rm -f conftest.err conftest.$ac_objext \
11202 conftest$ac_exeext conftest.$ac_ext
11203 LIBS=$ac_check_lib_save_LIBS
11205 echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
11206 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
11207 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
11208 cat >>confdefs.h <<_ACEOF
11209 #define HAVE_LIBXEXT 1
11210 _ACEOF
11212 LIBS="-lXext $LIBS"
11219 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
11220 echo "$as_me:$LINENO: checking for Motif version 2.1" >&5
11221 echo $ECHO_N "checking for Motif version 2.1... $ECHO_C" >&6
11222 if test "${emacs_cv_motif_version_2_1+set}" = set; then
11223 echo $ECHO_N "(cached) $ECHO_C" >&6
11224 else
11225 cat >conftest.$ac_ext <<_ACEOF
11226 /* confdefs.h. */
11227 _ACEOF
11228 cat confdefs.h >>conftest.$ac_ext
11229 cat >>conftest.$ac_ext <<_ACEOF
11230 /* end confdefs.h. */
11231 #include <Xm/Xm.h>
11233 main ()
11235 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
11236 int x = 5;
11237 #else
11238 Motif version prior to 2.1.
11239 #endif
11241 return 0;
11243 _ACEOF
11244 rm -f conftest.$ac_objext
11245 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11246 (eval $ac_compile) 2>conftest.er1
11247 ac_status=$?
11248 grep -v '^ *+' conftest.er1 >conftest.err
11249 rm -f conftest.er1
11250 cat conftest.err >&5
11251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11252 (exit $ac_status); } &&
11253 { ac_try='test -z "$ac_c_werror_flag"
11254 || test ! -s conftest.err'
11255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11256 (eval $ac_try) 2>&5
11257 ac_status=$?
11258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11259 (exit $ac_status); }; } &&
11260 { ac_try='test -s conftest.$ac_objext'
11261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11262 (eval $ac_try) 2>&5
11263 ac_status=$?
11264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11265 (exit $ac_status); }; }; then
11266 emacs_cv_motif_version_2_1=yes
11267 else
11268 echo "$as_me: failed program was:" >&5
11269 sed 's/^/| /' conftest.$ac_ext >&5
11271 emacs_cv_motif_version_2_1=no
11273 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11275 echo "$as_me:$LINENO: result: $emacs_cv_motif_version_2_1" >&5
11276 echo "${ECHO_T}$emacs_cv_motif_version_2_1" >&6
11277 HAVE_MOTIF_2_1=$emacs_cv_motif_version_2_1
11278 if test $emacs_cv_motif_version_2_1 = yes; then
11279 HAVE_LIBXP=no
11281 cat >>confdefs.h <<\_ACEOF
11282 #define HAVE_MOTIF_2_1 1
11283 _ACEOF
11285 echo "$as_me:$LINENO: checking for XpCreateContext in -lXp" >&5
11286 echo $ECHO_N "checking for XpCreateContext in -lXp... $ECHO_C" >&6
11287 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then
11288 echo $ECHO_N "(cached) $ECHO_C" >&6
11289 else
11290 ac_check_lib_save_LIBS=$LIBS
11291 LIBS="-lXp $LIBS"
11292 cat >conftest.$ac_ext <<_ACEOF
11293 /* confdefs.h. */
11294 _ACEOF
11295 cat confdefs.h >>conftest.$ac_ext
11296 cat >>conftest.$ac_ext <<_ACEOF
11297 /* end confdefs.h. */
11299 /* Override any gcc2 internal prototype to avoid an error. */
11300 #ifdef __cplusplus
11301 extern "C"
11302 #endif
11303 /* We use char because int might match the return type of a gcc2
11304 builtin and then its argument prototype would still apply. */
11305 char XpCreateContext ();
11307 main ()
11309 XpCreateContext ();
11311 return 0;
11313 _ACEOF
11314 rm -f conftest.$ac_objext conftest$ac_exeext
11315 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11316 (eval $ac_link) 2>conftest.er1
11317 ac_status=$?
11318 grep -v '^ *+' conftest.er1 >conftest.err
11319 rm -f conftest.er1
11320 cat conftest.err >&5
11321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11322 (exit $ac_status); } &&
11323 { ac_try='test -z "$ac_c_werror_flag"
11324 || test ! -s conftest.err'
11325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11326 (eval $ac_try) 2>&5
11327 ac_status=$?
11328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11329 (exit $ac_status); }; } &&
11330 { ac_try='test -s conftest$ac_exeext'
11331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11332 (eval $ac_try) 2>&5
11333 ac_status=$?
11334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11335 (exit $ac_status); }; }; then
11336 ac_cv_lib_Xp_XpCreateContext=yes
11337 else
11338 echo "$as_me: failed program was:" >&5
11339 sed 's/^/| /' conftest.$ac_ext >&5
11341 ac_cv_lib_Xp_XpCreateContext=no
11343 rm -f conftest.err conftest.$ac_objext \
11344 conftest$ac_exeext conftest.$ac_ext
11345 LIBS=$ac_check_lib_save_LIBS
11347 echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpCreateContext" >&5
11348 echo "${ECHO_T}$ac_cv_lib_Xp_XpCreateContext" >&6
11349 if test $ac_cv_lib_Xp_XpCreateContext = yes; then
11350 HAVE_LIBXP=yes
11353 if test ${HAVE_LIBXP} = yes; then
11355 cat >>confdefs.h <<\_ACEOF
11356 #define HAVE_LIBXP 1
11357 _ACEOF
11360 else
11361 echo "$as_me:$LINENO: checking for LessTif where some systems put it" >&5
11362 echo $ECHO_N "checking for LessTif where some systems put it... $ECHO_C" >&6
11363 if test "${emacs_cv_lesstif+set}" = set; then
11364 echo $ECHO_N "(cached) $ECHO_C" >&6
11365 else
11366 # We put this in CFLAGS temporarily to precede other -I options
11367 # that might be in CFLAGS temporarily.
11368 # We put this in CPPFLAGS where it precedes the other -I options.
11369 OLD_CPPFLAGS=$CPPFLAGS
11370 OLD_CFLAGS=$CFLAGS
11371 CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
11372 CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
11373 cat >conftest.$ac_ext <<_ACEOF
11374 /* confdefs.h. */
11375 _ACEOF
11376 cat confdefs.h >>conftest.$ac_ext
11377 cat >>conftest.$ac_ext <<_ACEOF
11378 /* end confdefs.h. */
11379 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
11381 main ()
11383 int x = 5;
11385 return 0;
11387 _ACEOF
11388 rm -f conftest.$ac_objext
11389 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11390 (eval $ac_compile) 2>conftest.er1
11391 ac_status=$?
11392 grep -v '^ *+' conftest.er1 >conftest.err
11393 rm -f conftest.er1
11394 cat conftest.err >&5
11395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11396 (exit $ac_status); } &&
11397 { ac_try='test -z "$ac_c_werror_flag"
11398 || test ! -s conftest.err'
11399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11400 (eval $ac_try) 2>&5
11401 ac_status=$?
11402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11403 (exit $ac_status); }; } &&
11404 { ac_try='test -s conftest.$ac_objext'
11405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11406 (eval $ac_try) 2>&5
11407 ac_status=$?
11408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11409 (exit $ac_status); }; }; then
11410 emacs_cv_lesstif=yes
11411 else
11412 echo "$as_me: failed program was:" >&5
11413 sed 's/^/| /' conftest.$ac_ext >&5
11415 emacs_cv_lesstif=no
11417 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11419 echo "$as_me:$LINENO: result: $emacs_cv_lesstif" >&5
11420 echo "${ECHO_T}$emacs_cv_lesstif" >&6
11421 if test $emacs_cv_lesstif = yes; then
11422 # Make sure this -I option remains in CPPFLAGS after it is set
11423 # back to REAL_CPPFLAGS.
11424 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
11425 # have those other -I options anyway. Ultimately, having this
11426 # directory ultimately in CPPFLAGS will be enough.
11427 REAL_CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
11428 LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
11429 else
11430 CFLAGS=$OLD_CFLAGS
11431 CPPFLAGS=$OLD_CPPFLAGS
11436 ### Is -lXaw3d available?
11437 HAVE_XAW3D=no
11438 if test "${HAVE_X11}" = "yes"; then
11439 if test "${USE_X_TOOLKIT}" != "none" && test "${with_toolkit_scroll_bars}" != "no"; then
11440 echo "$as_me:$LINENO: checking for X11/Xaw3d/Scrollbar.h" >&5
11441 echo $ECHO_N "checking for X11/Xaw3d/Scrollbar.h... $ECHO_C" >&6
11442 if test "${ac_cv_header_X11_Xaw3d_Scrollbar_h+set}" = set; then
11443 echo $ECHO_N "(cached) $ECHO_C" >&6
11444 else
11445 cat >conftest.$ac_ext <<_ACEOF
11446 /* confdefs.h. */
11447 _ACEOF
11448 cat confdefs.h >>conftest.$ac_ext
11449 cat >>conftest.$ac_ext <<_ACEOF
11450 /* end confdefs.h. */
11451 #include <X11/Xaw3d/Scrollbar.h>
11452 _ACEOF
11453 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11454 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11455 ac_status=$?
11456 grep -v '^ *+' conftest.er1 >conftest.err
11457 rm -f conftest.er1
11458 cat conftest.err >&5
11459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11460 (exit $ac_status); } >/dev/null; then
11461 if test -s conftest.err; then
11462 ac_cpp_err=$ac_c_preproc_warn_flag
11463 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11464 else
11465 ac_cpp_err=
11467 else
11468 ac_cpp_err=yes
11470 if test -z "$ac_cpp_err"; then
11471 ac_cv_header_X11_Xaw3d_Scrollbar_h=yes
11472 else
11473 echo "$as_me: failed program was:" >&5
11474 sed 's/^/| /' conftest.$ac_ext >&5
11476 ac_cv_header_X11_Xaw3d_Scrollbar_h=no
11478 rm -f conftest.err conftest.$ac_ext
11480 echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xaw3d_Scrollbar_h" >&5
11481 echo "${ECHO_T}$ac_cv_header_X11_Xaw3d_Scrollbar_h" >&6
11482 if test $ac_cv_header_X11_Xaw3d_Scrollbar_h = yes; then
11483 echo "$as_me:$LINENO: checking for XawScrollbarSetThumb in -lXaw3d" >&5
11484 echo $ECHO_N "checking for XawScrollbarSetThumb in -lXaw3d... $ECHO_C" >&6
11485 if test "${ac_cv_lib_Xaw3d_XawScrollbarSetThumb+set}" = set; then
11486 echo $ECHO_N "(cached) $ECHO_C" >&6
11487 else
11488 ac_check_lib_save_LIBS=$LIBS
11489 LIBS="-lXaw3d $LIBS"
11490 cat >conftest.$ac_ext <<_ACEOF
11491 /* confdefs.h. */
11492 _ACEOF
11493 cat confdefs.h >>conftest.$ac_ext
11494 cat >>conftest.$ac_ext <<_ACEOF
11495 /* end confdefs.h. */
11497 /* Override any gcc2 internal prototype to avoid an error. */
11498 #ifdef __cplusplus
11499 extern "C"
11500 #endif
11501 /* We use char because int might match the return type of a gcc2
11502 builtin and then its argument prototype would still apply. */
11503 char XawScrollbarSetThumb ();
11505 main ()
11507 XawScrollbarSetThumb ();
11509 return 0;
11511 _ACEOF
11512 rm -f conftest.$ac_objext conftest$ac_exeext
11513 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11514 (eval $ac_link) 2>conftest.er1
11515 ac_status=$?
11516 grep -v '^ *+' conftest.er1 >conftest.err
11517 rm -f conftest.er1
11518 cat conftest.err >&5
11519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11520 (exit $ac_status); } &&
11521 { ac_try='test -z "$ac_c_werror_flag"
11522 || test ! -s conftest.err'
11523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11524 (eval $ac_try) 2>&5
11525 ac_status=$?
11526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11527 (exit $ac_status); }; } &&
11528 { ac_try='test -s conftest$ac_exeext'
11529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11530 (eval $ac_try) 2>&5
11531 ac_status=$?
11532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11533 (exit $ac_status); }; }; then
11534 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=yes
11535 else
11536 echo "$as_me: failed program was:" >&5
11537 sed 's/^/| /' conftest.$ac_ext >&5
11539 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=no
11541 rm -f conftest.err conftest.$ac_objext \
11542 conftest$ac_exeext conftest.$ac_ext
11543 LIBS=$ac_check_lib_save_LIBS
11545 echo "$as_me:$LINENO: result: $ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&5
11546 echo "${ECHO_T}$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&6
11547 if test $ac_cv_lib_Xaw3d_XawScrollbarSetThumb = yes; then
11548 HAVE_XAW3D=yes
11554 if test "${HAVE_XAW3D}" = "yes"; then
11556 cat >>confdefs.h <<\_ACEOF
11557 #define HAVE_XAW3D 1
11558 _ACEOF
11566 USE_TOOLKIT_SCROLL_BARS=no
11567 if test "${with_toolkit_scroll_bars}" != "no"; then
11568 if test "${USE_X_TOOLKIT}" != "none"; then
11569 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
11570 cat >>confdefs.h <<\_ACEOF
11571 #define USE_TOOLKIT_SCROLL_BARS 1
11572 _ACEOF
11574 HAVE_XAW3D=no
11575 USE_TOOLKIT_SCROLL_BARS=yes
11576 elif test "${HAVE_XAW3D}" = "yes"; then
11577 cat >>confdefs.h <<\_ACEOF
11578 #define USE_TOOLKIT_SCROLL_BARS 1
11579 _ACEOF
11581 USE_TOOLKIT_SCROLL_BARS=yes
11583 elif test "${HAVE_GTK}" = "yes"; then
11584 cat >>confdefs.h <<\_ACEOF
11585 #define USE_TOOLKIT_SCROLL_BARS 1
11586 _ACEOF
11588 USE_TOOLKIT_SCROLL_BARS=yes
11589 elif test "${HAVE_CARBON}" = "yes"; then
11590 cat >>confdefs.h <<\_ACEOF
11591 #define USE_TOOLKIT_SCROLL_BARS 1
11592 _ACEOF
11594 USE_TOOLKIT_SCROLL_BARS=yes
11598 cat >conftest.$ac_ext <<_ACEOF
11599 /* confdefs.h. */
11600 _ACEOF
11601 cat confdefs.h >>conftest.$ac_ext
11602 cat >>conftest.$ac_ext <<_ACEOF
11603 /* end confdefs.h. */
11605 #include <X11/Xlib.h>
11606 #include <X11/Xresource.h>
11608 main ()
11610 XIMProc callback;
11612 return 0;
11614 _ACEOF
11615 rm -f conftest.$ac_objext
11616 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11617 (eval $ac_compile) 2>conftest.er1
11618 ac_status=$?
11619 grep -v '^ *+' conftest.er1 >conftest.err
11620 rm -f conftest.er1
11621 cat conftest.err >&5
11622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11623 (exit $ac_status); } &&
11624 { ac_try='test -z "$ac_c_werror_flag"
11625 || test ! -s conftest.err'
11626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11627 (eval $ac_try) 2>&5
11628 ac_status=$?
11629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11630 (exit $ac_status); }; } &&
11631 { ac_try='test -s conftest.$ac_objext'
11632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11633 (eval $ac_try) 2>&5
11634 ac_status=$?
11635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11636 (exit $ac_status); }; }; then
11637 HAVE_XIM=yes
11639 cat >>confdefs.h <<\_ACEOF
11640 #define HAVE_XIM 1
11641 _ACEOF
11643 else
11644 echo "$as_me: failed program was:" >&5
11645 sed 's/^/| /' conftest.$ac_ext >&5
11647 HAVE_XIM=no
11649 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11652 if test "${with_xim}" != "no"; then
11654 cat >>confdefs.h <<\_ACEOF
11655 #define USE_XIM 1
11656 _ACEOF
11661 if test "${HAVE_XIM}" != "no"; then
11662 late_CFLAGS=$CFLAGS
11663 if test "$GCC" = yes; then
11664 CFLAGS="$CFLAGS --pedantic-errors"
11666 cat >conftest.$ac_ext <<_ACEOF
11667 /* confdefs.h. */
11668 _ACEOF
11669 cat confdefs.h >>conftest.$ac_ext
11670 cat >>conftest.$ac_ext <<_ACEOF
11671 /* end confdefs.h. */
11673 #include <X11/Xlib.h>
11674 #include <X11/Xresource.h>
11676 main ()
11678 Display *display;
11679 XrmDatabase db;
11680 char *res_name;
11681 char *res_class;
11682 XIMProc callback;
11683 XPointer *client_data;
11684 #ifndef __GNUC__
11685 /* If we're not using GCC, it's probably not XFree86, and this is
11686 probably right, but we can't use something like --pedantic-errors. */
11687 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
11688 char*, XIMProc, XPointer*);
11689 #endif
11690 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
11691 client_data);
11693 return 0;
11695 _ACEOF
11696 rm -f conftest.$ac_objext
11697 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11698 (eval $ac_compile) 2>conftest.er1
11699 ac_status=$?
11700 grep -v '^ *+' conftest.er1 >conftest.err
11701 rm -f conftest.er1
11702 cat conftest.err >&5
11703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11704 (exit $ac_status); } &&
11705 { ac_try='test -z "$ac_c_werror_flag"
11706 || test ! -s conftest.err'
11707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11708 (eval $ac_try) 2>&5
11709 ac_status=$?
11710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11711 (exit $ac_status); }; } &&
11712 { ac_try='test -s conftest.$ac_objext'
11713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11714 (eval $ac_try) 2>&5
11715 ac_status=$?
11716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11717 (exit $ac_status); }; }; then
11718 emacs_cv_arg6_star=yes
11719 else
11720 echo "$as_me: failed program was:" >&5
11721 sed 's/^/| /' conftest.$ac_ext >&5
11724 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11726 if test "$emacs_cv_arg6_star" = yes; then
11727 cat >>confdefs.h <<\_ACEOF
11728 #define XRegisterIMInstantiateCallback_arg6 XPointer*
11729 _ACEOF
11731 else
11732 cat >>confdefs.h <<\_ACEOF
11733 #define XRegisterIMInstantiateCallback_arg6 XPointer
11734 _ACEOF
11737 CFLAGS=$late_CFLAGS
11740 ### For font-backend
11741 if test "${USE_FONT_BACKEND}" = "yes"; then
11744 cat >>confdefs.h <<\_ACEOF
11745 #define USE_FONT_BACKEND 1
11746 _ACEOF
11749 ### Use -lXft if available, unless `--with-freetype=no' nor `--with-xft=no'.
11750 HAVE_XFT=maybe
11751 if test "${HAVE_X11}" = "yes"; then
11752 if test "x${with_freetype}" = "xno"; then
11753 with_xft="no";
11755 if test "x${with_xft}" != "xno"; then
11757 if test "X${with_pkg_config_prog}" != X; then
11758 PKG_CONFIG="${with_pkg_config_prog}"
11762 succeeded=no
11764 if test -z "$PKG_CONFIG"; then
11765 # Extract the first word of "pkg-config", so it can be a program name with args.
11766 set dummy pkg-config; ac_word=$2
11767 echo "$as_me:$LINENO: checking for $ac_word" >&5
11768 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11769 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11770 echo $ECHO_N "(cached) $ECHO_C" >&6
11771 else
11772 case $PKG_CONFIG in
11773 [\\/]* | ?:[\\/]*)
11774 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11777 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11778 for as_dir in $PATH
11780 IFS=$as_save_IFS
11781 test -z "$as_dir" && as_dir=.
11782 for ac_exec_ext in '' $ac_executable_extensions; do
11783 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11784 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11785 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11786 break 2
11788 done
11789 done
11791 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11793 esac
11795 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11797 if test -n "$PKG_CONFIG"; then
11798 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11799 echo "${ECHO_T}$PKG_CONFIG" >&6
11800 else
11801 echo "$as_me:$LINENO: result: no" >&5
11802 echo "${ECHO_T}no" >&6
11807 if test "$PKG_CONFIG" = "no" ; then
11808 echo "*** The pkg-config script could not be found. Make sure it is"
11809 echo "*** in your path, or give the full path to pkg-config with"
11810 echo "*** the PKG_CONFIG environment variable or --with-pkg-config-prog."
11811 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
11812 else
11813 PKG_CONFIG_MIN_VERSION=0.9.0
11814 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11815 echo "$as_me:$LINENO: checking for xft >= 0.13.0" >&5
11816 echo $ECHO_N "checking for xft >= 0.13.0... $ECHO_C" >&6
11818 if $PKG_CONFIG --exists "xft >= 0.13.0" ; then
11819 echo "$as_me:$LINENO: result: yes" >&5
11820 echo "${ECHO_T}yes" >&6
11821 succeeded=yes
11823 echo "$as_me:$LINENO: checking XFT_CFLAGS" >&5
11824 echo $ECHO_N "checking XFT_CFLAGS... $ECHO_C" >&6
11825 XFT_CFLAGS=`$PKG_CONFIG --cflags "xft >= 0.13.0"`
11826 echo "$as_me:$LINENO: result: $XFT_CFLAGS" >&5
11827 echo "${ECHO_T}$XFT_CFLAGS" >&6
11829 echo "$as_me:$LINENO: checking XFT_LIBS" >&5
11830 echo $ECHO_N "checking XFT_LIBS... $ECHO_C" >&6
11831 XFT_LIBS=`$PKG_CONFIG --libs "xft >= 0.13.0"`
11832 echo "$as_me:$LINENO: result: $XFT_LIBS" >&5
11833 echo "${ECHO_T}$XFT_LIBS" >&6
11834 else
11835 XFT_CFLAGS=""
11836 XFT_LIBS=""
11837 ## If we have a custom action on failure, don't print errors, but
11838 ## do set a variable so people can do so.
11839 XFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xft >= 0.13.0"`
11845 else
11846 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11847 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11851 if test $succeeded = yes; then
11853 else
11854 HAVE_XFT=no
11857 if test "$HAVE_XFT" != no; then
11858 OLD_CPPFLAGS="$CPPFLAGS"
11859 OLD_CFLAGS="$CFLAGS"
11860 OLD_LIBS="$LIBS"
11861 CPPFLAGS="$CPPFLAGS $XFT_CFLAGS"
11862 CFLAGS="$CFLAGS $XFT_CFLAGS"
11863 LIBS="$XFT_LIBS $LIBS"
11864 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
11865 echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
11866 echo $ECHO_N "checking for X11/Xft/Xft.h... $ECHO_C" >&6
11867 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
11868 echo $ECHO_N "(cached) $ECHO_C" >&6
11870 echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
11871 echo "${ECHO_T}$ac_cv_header_X11_Xft_Xft_h" >&6
11872 else
11873 # Is the header compilable?
11874 echo "$as_me:$LINENO: checking X11/Xft/Xft.h usability" >&5
11875 echo $ECHO_N "checking X11/Xft/Xft.h usability... $ECHO_C" >&6
11876 cat >conftest.$ac_ext <<_ACEOF
11877 /* confdefs.h. */
11878 _ACEOF
11879 cat confdefs.h >>conftest.$ac_ext
11880 cat >>conftest.$ac_ext <<_ACEOF
11881 /* end confdefs.h. */
11882 $ac_includes_default
11883 #include <X11/Xft/Xft.h>
11884 _ACEOF
11885 rm -f conftest.$ac_objext
11886 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11887 (eval $ac_compile) 2>conftest.er1
11888 ac_status=$?
11889 grep -v '^ *+' conftest.er1 >conftest.err
11890 rm -f conftest.er1
11891 cat conftest.err >&5
11892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11893 (exit $ac_status); } &&
11894 { ac_try='test -z "$ac_c_werror_flag"
11895 || test ! -s conftest.err'
11896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11897 (eval $ac_try) 2>&5
11898 ac_status=$?
11899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11900 (exit $ac_status); }; } &&
11901 { ac_try='test -s conftest.$ac_objext'
11902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11903 (eval $ac_try) 2>&5
11904 ac_status=$?
11905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11906 (exit $ac_status); }; }; then
11907 ac_header_compiler=yes
11908 else
11909 echo "$as_me: failed program was:" >&5
11910 sed 's/^/| /' conftest.$ac_ext >&5
11912 ac_header_compiler=no
11914 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11915 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11916 echo "${ECHO_T}$ac_header_compiler" >&6
11918 # Is the header present?
11919 echo "$as_me:$LINENO: checking X11/Xft/Xft.h presence" >&5
11920 echo $ECHO_N "checking X11/Xft/Xft.h presence... $ECHO_C" >&6
11921 cat >conftest.$ac_ext <<_ACEOF
11922 /* confdefs.h. */
11923 _ACEOF
11924 cat confdefs.h >>conftest.$ac_ext
11925 cat >>conftest.$ac_ext <<_ACEOF
11926 /* end confdefs.h. */
11927 #include <X11/Xft/Xft.h>
11928 _ACEOF
11929 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11930 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11931 ac_status=$?
11932 grep -v '^ *+' conftest.er1 >conftest.err
11933 rm -f conftest.er1
11934 cat conftest.err >&5
11935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11936 (exit $ac_status); } >/dev/null; then
11937 if test -s conftest.err; then
11938 ac_cpp_err=$ac_c_preproc_warn_flag
11939 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11940 else
11941 ac_cpp_err=
11943 else
11944 ac_cpp_err=yes
11946 if test -z "$ac_cpp_err"; then
11947 ac_header_preproc=yes
11948 else
11949 echo "$as_me: failed program was:" >&5
11950 sed 's/^/| /' conftest.$ac_ext >&5
11952 ac_header_preproc=no
11954 rm -f conftest.err conftest.$ac_ext
11955 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11956 echo "${ECHO_T}$ac_header_preproc" >&6
11958 # So? What about this header?
11959 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11960 yes:no: )
11961 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&5
11962 echo "$as_me: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11963 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&5
11964 echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&2;}
11965 ac_header_preproc=yes
11967 no:yes:* )
11968 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&5
11969 echo "$as_me: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&2;}
11970 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&5
11971 echo "$as_me: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&2;}
11972 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&5
11973 echo "$as_me: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&2;}
11974 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&5
11975 echo "$as_me: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&2;}
11976 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&5
11977 echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&2;}
11978 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&5
11979 echo "$as_me: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&2;}
11981 cat <<\_ASBOX
11982 ## ------------------------------------------ ##
11983 ## Report this to the AC_PACKAGE_NAME lists. ##
11984 ## ------------------------------------------ ##
11985 _ASBOX
11987 sed "s/^/$as_me: WARNING: /" >&2
11989 esac
11990 echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
11991 echo $ECHO_N "checking for X11/Xft/Xft.h... $ECHO_C" >&6
11992 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
11993 echo $ECHO_N "(cached) $ECHO_C" >&6
11994 else
11995 ac_cv_header_X11_Xft_Xft_h=$ac_header_preproc
11997 echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
11998 echo "${ECHO_T}$ac_cv_header_X11_Xft_Xft_h" >&6
12001 if test $ac_cv_header_X11_Xft_Xft_h = yes; then
12002 echo "$as_me:$LINENO: checking for XftFontOpen in -lXft" >&5
12003 echo $ECHO_N "checking for XftFontOpen in -lXft... $ECHO_C" >&6
12004 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then
12005 echo $ECHO_N "(cached) $ECHO_C" >&6
12006 else
12007 ac_check_lib_save_LIBS=$LIBS
12008 LIBS="-lXft $XFT_LIBS $LIBS"
12009 cat >conftest.$ac_ext <<_ACEOF
12010 /* confdefs.h. */
12011 _ACEOF
12012 cat confdefs.h >>conftest.$ac_ext
12013 cat >>conftest.$ac_ext <<_ACEOF
12014 /* end confdefs.h. */
12016 /* Override any gcc2 internal prototype to avoid an error. */
12017 #ifdef __cplusplus
12018 extern "C"
12019 #endif
12020 /* We use char because int might match the return type of a gcc2
12021 builtin and then its argument prototype would still apply. */
12022 char XftFontOpen ();
12024 main ()
12026 XftFontOpen ();
12028 return 0;
12030 _ACEOF
12031 rm -f conftest.$ac_objext conftest$ac_exeext
12032 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12033 (eval $ac_link) 2>conftest.er1
12034 ac_status=$?
12035 grep -v '^ *+' conftest.er1 >conftest.err
12036 rm -f conftest.er1
12037 cat conftest.err >&5
12038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12039 (exit $ac_status); } &&
12040 { ac_try='test -z "$ac_c_werror_flag"
12041 || test ! -s conftest.err'
12042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12043 (eval $ac_try) 2>&5
12044 ac_status=$?
12045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12046 (exit $ac_status); }; } &&
12047 { ac_try='test -s conftest$ac_exeext'
12048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12049 (eval $ac_try) 2>&5
12050 ac_status=$?
12051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12052 (exit $ac_status); }; }; then
12053 ac_cv_lib_Xft_XftFontOpen=yes
12054 else
12055 echo "$as_me: failed program was:" >&5
12056 sed 's/^/| /' conftest.$ac_ext >&5
12058 ac_cv_lib_Xft_XftFontOpen=no
12060 rm -f conftest.err conftest.$ac_objext \
12061 conftest$ac_exeext conftest.$ac_ext
12062 LIBS=$ac_check_lib_save_LIBS
12064 echo "$as_me:$LINENO: result: $ac_cv_lib_Xft_XftFontOpen" >&5
12065 echo "${ECHO_T}$ac_cv_lib_Xft_XftFontOpen" >&6
12066 if test $ac_cv_lib_Xft_XftFontOpen = yes; then
12067 HAVE_XFT=yes
12074 if test "${HAVE_XFT}" = "yes"; then
12076 cat >>confdefs.h <<\_ACEOF
12077 #define HAVE_XFT 1
12078 _ACEOF
12081 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $XFT_CFLAGS"
12082 else
12083 CFLAGS="$OLD_CPPFLAGS"
12084 CFLAGS="$OLD_CFLAGS"
12085 LIBS="$OLD_LIBS"
12091 HAVE_FREETYPE=no
12092 ### Use -lfreetype if available, unless `--with-freetype=no'.
12093 if test "${HAVE_XFT}" = "yes"; then
12094 HAVE_FREETYPE=yes
12095 elif test "x${with_freetype}" != "xno"; then
12096 if test "X${with_pkg_config_prog}" != X; then
12097 PKG_CONFIG="${with_pkg_config_prog}"
12101 succeeded=no
12103 if test -z "$PKG_CONFIG"; then
12104 # Extract the first word of "pkg-config", so it can be a program name with args.
12105 set dummy pkg-config; ac_word=$2
12106 echo "$as_me:$LINENO: checking for $ac_word" >&5
12107 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12108 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12109 echo $ECHO_N "(cached) $ECHO_C" >&6
12110 else
12111 case $PKG_CONFIG in
12112 [\\/]* | ?:[\\/]*)
12113 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12116 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12117 for as_dir in $PATH
12119 IFS=$as_save_IFS
12120 test -z "$as_dir" && as_dir=.
12121 for ac_exec_ext in '' $ac_executable_extensions; do
12122 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12123 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12124 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12125 break 2
12127 done
12128 done
12130 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12132 esac
12134 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12136 if test -n "$PKG_CONFIG"; then
12137 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12138 echo "${ECHO_T}$PKG_CONFIG" >&6
12139 else
12140 echo "$as_me:$LINENO: result: no" >&5
12141 echo "${ECHO_T}no" >&6
12146 if test "$PKG_CONFIG" = "no" ; then
12147 echo "*** The pkg-config script could not be found. Make sure it is"
12148 echo "*** in your path, or give the full path to pkg-config with"
12149 echo "*** the PKG_CONFIG environment variable or --with-pkg-config-prog."
12150 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
12151 else
12152 PKG_CONFIG_MIN_VERSION=0.9.0
12153 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12154 echo "$as_me:$LINENO: checking for freetype2" >&5
12155 echo $ECHO_N "checking for freetype2... $ECHO_C" >&6
12157 if $PKG_CONFIG --exists "freetype2" ; then
12158 echo "$as_me:$LINENO: result: yes" >&5
12159 echo "${ECHO_T}yes" >&6
12160 succeeded=yes
12162 echo "$as_me:$LINENO: checking FREETYPE_CFLAGS" >&5
12163 echo $ECHO_N "checking FREETYPE_CFLAGS... $ECHO_C" >&6
12164 FREETYPE_CFLAGS=`$PKG_CONFIG --cflags "freetype2"`
12165 echo "$as_me:$LINENO: result: $FREETYPE_CFLAGS" >&5
12166 echo "${ECHO_T}$FREETYPE_CFLAGS" >&6
12168 echo "$as_me:$LINENO: checking FREETYPE_LIBS" >&5
12169 echo $ECHO_N "checking FREETYPE_LIBS... $ECHO_C" >&6
12170 FREETYPE_LIBS=`$PKG_CONFIG --libs "freetype2"`
12171 echo "$as_me:$LINENO: result: $FREETYPE_LIBS" >&5
12172 echo "${ECHO_T}$FREETYPE_LIBS" >&6
12173 else
12174 FREETYPE_CFLAGS=""
12175 FREETYPE_LIBS=""
12176 ## If we have a custom action on failure, don't print errors, but
12177 ## do set a variable so people can do so.
12178 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "freetype2"`
12184 else
12185 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12186 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12190 if test $succeeded = yes; then
12191 HAVE_FREETYPE=yes
12192 else
12193 HAVE_FREETYPE=no
12196 if test "${HAVE_FREETYPE}" = "yes"; then
12198 succeeded=no
12200 if test -z "$PKG_CONFIG"; then
12201 # Extract the first word of "pkg-config", so it can be a program name with args.
12202 set dummy pkg-config; ac_word=$2
12203 echo "$as_me:$LINENO: checking for $ac_word" >&5
12204 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12205 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12206 echo $ECHO_N "(cached) $ECHO_C" >&6
12207 else
12208 case $PKG_CONFIG in
12209 [\\/]* | ?:[\\/]*)
12210 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12213 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12214 for as_dir in $PATH
12216 IFS=$as_save_IFS
12217 test -z "$as_dir" && as_dir=.
12218 for ac_exec_ext in '' $ac_executable_extensions; do
12219 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12220 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12221 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12222 break 2
12224 done
12225 done
12227 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12229 esac
12231 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12233 if test -n "$PKG_CONFIG"; then
12234 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12235 echo "${ECHO_T}$PKG_CONFIG" >&6
12236 else
12237 echo "$as_me:$LINENO: result: no" >&5
12238 echo "${ECHO_T}no" >&6
12243 if test "$PKG_CONFIG" = "no" ; then
12244 echo "*** The pkg-config script could not be found. Make sure it is"
12245 echo "*** in your path, or give the full path to pkg-config with"
12246 echo "*** the PKG_CONFIG environment variable or --with-pkg-config-prog."
12247 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
12248 else
12249 PKG_CONFIG_MIN_VERSION=0.9.0
12250 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12251 echo "$as_me:$LINENO: checking for fontconfig" >&5
12252 echo $ECHO_N "checking for fontconfig... $ECHO_C" >&6
12254 if $PKG_CONFIG --exists "fontconfig" ; then
12255 echo "$as_me:$LINENO: result: yes" >&5
12256 echo "${ECHO_T}yes" >&6
12257 succeeded=yes
12259 echo "$as_me:$LINENO: checking FONTCONFIG_CFLAGS" >&5
12260 echo $ECHO_N "checking FONTCONFIG_CFLAGS... $ECHO_C" >&6
12261 FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig"`
12262 echo "$as_me:$LINENO: result: $FONTCONFIG_CFLAGS" >&5
12263 echo "${ECHO_T}$FONTCONFIG_CFLAGS" >&6
12265 echo "$as_me:$LINENO: checking FONTCONFIG_LIBS" >&5
12266 echo $ECHO_N "checking FONTCONFIG_LIBS... $ECHO_C" >&6
12267 FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig"`
12268 echo "$as_me:$LINENO: result: $FONTCONFIG_LIBS" >&5
12269 echo "${ECHO_T}$FONTCONFIG_LIBS" >&6
12270 else
12271 FONTCONFIG_CFLAGS=""
12272 FONTCONFIG_LIBS=""
12273 ## If we have a custom action on failure, don't print errors, but
12274 ## do set a variable so people can do so.
12275 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "fontconfig"`
12281 else
12282 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12283 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12287 if test $succeeded = yes; then
12288 HAVE_FC=yes
12289 else
12290 HAVE_FC=no
12293 if test "${HAVE_FC}" = "no"; then
12294 HAVE_FREETYPE=no
12298 if test "${HAVE_FREETYPE}" = "yes"; then
12300 cat >>confdefs.h <<\_ACEOF
12301 #define HAVE_FREETYPE 1
12302 _ACEOF
12304 # Extract the first word of "libotf-config", so it can be a program name with args.
12305 set dummy libotf-config; ac_word=$2
12306 echo "$as_me:$LINENO: checking for $ac_word" >&5
12307 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12308 if test "${ac_cv_prog_HAVE_LIBOTF+set}" = set; then
12309 echo $ECHO_N "(cached) $ECHO_C" >&6
12310 else
12311 if test -n "$HAVE_LIBOTF"; then
12312 ac_cv_prog_HAVE_LIBOTF="$HAVE_LIBOTF" # Let the user override the test.
12313 else
12314 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12315 for as_dir in $PATH
12317 IFS=$as_save_IFS
12318 test -z "$as_dir" && as_dir=.
12319 for ac_exec_ext in '' $ac_executable_extensions; do
12320 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12321 ac_cv_prog_HAVE_LIBOTF="yes"
12322 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12323 break 2
12325 done
12326 done
12328 test -z "$ac_cv_prog_HAVE_LIBOTF" && ac_cv_prog_HAVE_LIBOTF="no"
12331 HAVE_LIBOTF=$ac_cv_prog_HAVE_LIBOTF
12332 if test -n "$HAVE_LIBOTF"; then
12333 echo "$as_me:$LINENO: result: $HAVE_LIBOTF" >&5
12334 echo "${ECHO_T}$HAVE_LIBOTF" >&6
12335 else
12336 echo "$as_me:$LINENO: result: no" >&5
12337 echo "${ECHO_T}no" >&6
12340 if test "${HAVE_LIBOTF}" = "yes"; then
12342 cat >>confdefs.h <<\_ACEOF
12343 #define HAVE_LIBOTF 1
12344 _ACEOF
12346 LIBOTF_CFLAGS=`libotf-config --cflags`
12347 LIBOTF_LIBS=`libotf-config --libs`
12359 ### Use -lXpm if available, unless `--with-xpm=no'.
12360 HAVE_XPM=no
12361 if test "${HAVE_X11}" = "yes"; then
12362 if test "${with_xpm}" != "no"; then
12363 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
12364 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
12365 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
12366 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
12367 echo $ECHO_N "(cached) $ECHO_C" >&6
12369 echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
12370 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
12371 else
12372 # Is the header compilable?
12373 echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
12374 echo $ECHO_N "checking X11/xpm.h usability... $ECHO_C" >&6
12375 cat >conftest.$ac_ext <<_ACEOF
12376 /* confdefs.h. */
12377 _ACEOF
12378 cat confdefs.h >>conftest.$ac_ext
12379 cat >>conftest.$ac_ext <<_ACEOF
12380 /* end confdefs.h. */
12381 $ac_includes_default
12382 #include <X11/xpm.h>
12383 _ACEOF
12384 rm -f conftest.$ac_objext
12385 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12386 (eval $ac_compile) 2>conftest.er1
12387 ac_status=$?
12388 grep -v '^ *+' conftest.er1 >conftest.err
12389 rm -f conftest.er1
12390 cat conftest.err >&5
12391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12392 (exit $ac_status); } &&
12393 { ac_try='test -z "$ac_c_werror_flag"
12394 || test ! -s conftest.err'
12395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12396 (eval $ac_try) 2>&5
12397 ac_status=$?
12398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12399 (exit $ac_status); }; } &&
12400 { ac_try='test -s conftest.$ac_objext'
12401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12402 (eval $ac_try) 2>&5
12403 ac_status=$?
12404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12405 (exit $ac_status); }; }; then
12406 ac_header_compiler=yes
12407 else
12408 echo "$as_me: failed program was:" >&5
12409 sed 's/^/| /' conftest.$ac_ext >&5
12411 ac_header_compiler=no
12413 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12414 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12415 echo "${ECHO_T}$ac_header_compiler" >&6
12417 # Is the header present?
12418 echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
12419 echo $ECHO_N "checking X11/xpm.h presence... $ECHO_C" >&6
12420 cat >conftest.$ac_ext <<_ACEOF
12421 /* confdefs.h. */
12422 _ACEOF
12423 cat confdefs.h >>conftest.$ac_ext
12424 cat >>conftest.$ac_ext <<_ACEOF
12425 /* end confdefs.h. */
12426 #include <X11/xpm.h>
12427 _ACEOF
12428 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12429 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12430 ac_status=$?
12431 grep -v '^ *+' conftest.er1 >conftest.err
12432 rm -f conftest.er1
12433 cat conftest.err >&5
12434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12435 (exit $ac_status); } >/dev/null; then
12436 if test -s conftest.err; then
12437 ac_cpp_err=$ac_c_preproc_warn_flag
12438 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12439 else
12440 ac_cpp_err=
12442 else
12443 ac_cpp_err=yes
12445 if test -z "$ac_cpp_err"; then
12446 ac_header_preproc=yes
12447 else
12448 echo "$as_me: failed program was:" >&5
12449 sed 's/^/| /' conftest.$ac_ext >&5
12451 ac_header_preproc=no
12453 rm -f conftest.err conftest.$ac_ext
12454 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12455 echo "${ECHO_T}$ac_header_preproc" >&6
12457 # So? What about this header?
12458 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12459 yes:no: )
12460 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
12461 echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12462 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the compiler's result" >&5
12463 echo "$as_me: WARNING: X11/xpm.h: proceeding with the compiler's result" >&2;}
12464 ac_header_preproc=yes
12466 no:yes:* )
12467 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
12468 echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
12469 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5
12470 echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;}
12471 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: see the Autoconf documentation" >&5
12472 echo "$as_me: WARNING: X11/xpm.h: see the Autoconf documentation" >&2;}
12473 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&5
12474 echo "$as_me: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
12475 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
12476 echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
12477 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&5
12478 echo "$as_me: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&2;}
12480 cat <<\_ASBOX
12481 ## ------------------------------------------ ##
12482 ## Report this to the AC_PACKAGE_NAME lists. ##
12483 ## ------------------------------------------ ##
12484 _ASBOX
12486 sed "s/^/$as_me: WARNING: /" >&2
12488 esac
12489 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
12490 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
12491 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
12492 echo $ECHO_N "(cached) $ECHO_C" >&6
12493 else
12494 ac_cv_header_X11_xpm_h=$ac_header_preproc
12496 echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
12497 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
12500 if test $ac_cv_header_X11_xpm_h = yes; then
12501 echo "$as_me:$LINENO: checking for XpmReadFileToPixmap in -lXpm" >&5
12502 echo $ECHO_N "checking for XpmReadFileToPixmap in -lXpm... $ECHO_C" >&6
12503 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
12504 echo $ECHO_N "(cached) $ECHO_C" >&6
12505 else
12506 ac_check_lib_save_LIBS=$LIBS
12507 LIBS="-lXpm -lX11 $LIBS"
12508 cat >conftest.$ac_ext <<_ACEOF
12509 /* confdefs.h. */
12510 _ACEOF
12511 cat confdefs.h >>conftest.$ac_ext
12512 cat >>conftest.$ac_ext <<_ACEOF
12513 /* end confdefs.h. */
12515 /* Override any gcc2 internal prototype to avoid an error. */
12516 #ifdef __cplusplus
12517 extern "C"
12518 #endif
12519 /* We use char because int might match the return type of a gcc2
12520 builtin and then its argument prototype would still apply. */
12521 char XpmReadFileToPixmap ();
12523 main ()
12525 XpmReadFileToPixmap ();
12527 return 0;
12529 _ACEOF
12530 rm -f conftest.$ac_objext conftest$ac_exeext
12531 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12532 (eval $ac_link) 2>conftest.er1
12533 ac_status=$?
12534 grep -v '^ *+' conftest.er1 >conftest.err
12535 rm -f conftest.er1
12536 cat conftest.err >&5
12537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12538 (exit $ac_status); } &&
12539 { ac_try='test -z "$ac_c_werror_flag"
12540 || test ! -s conftest.err'
12541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12542 (eval $ac_try) 2>&5
12543 ac_status=$?
12544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12545 (exit $ac_status); }; } &&
12546 { ac_try='test -s conftest$ac_exeext'
12547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12548 (eval $ac_try) 2>&5
12549 ac_status=$?
12550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12551 (exit $ac_status); }; }; then
12552 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
12553 else
12554 echo "$as_me: failed program was:" >&5
12555 sed 's/^/| /' conftest.$ac_ext >&5
12557 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
12559 rm -f conftest.err conftest.$ac_objext \
12560 conftest$ac_exeext conftest.$ac_ext
12561 LIBS=$ac_check_lib_save_LIBS
12563 echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
12564 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6
12565 if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
12566 HAVE_XPM=yes
12572 if test "${HAVE_XPM}" = "yes"; then
12573 echo "$as_me:$LINENO: checking for XpmReturnAllocPixels preprocessor define" >&5
12574 echo $ECHO_N "checking for XpmReturnAllocPixels preprocessor define... $ECHO_C" >&6
12575 cat >conftest.$ac_ext <<_ACEOF
12576 /* confdefs.h. */
12577 _ACEOF
12578 cat confdefs.h >>conftest.$ac_ext
12579 cat >>conftest.$ac_ext <<_ACEOF
12580 /* end confdefs.h. */
12581 #include "X11/xpm.h"
12582 #ifndef XpmReturnAllocPixels
12583 no_return_alloc_pixels
12584 #endif
12586 _ACEOF
12587 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12588 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then
12589 HAVE_XPM=no
12590 else
12591 HAVE_XPM=yes
12593 rm -f conftest*
12596 if test "${HAVE_XPM}" = "yes"; then
12597 echo "$as_me:$LINENO: result: yes" >&5
12598 echo "${ECHO_T}yes" >&6
12599 else
12600 echo "$as_me:$LINENO: result: no" >&5
12601 echo "${ECHO_T}no" >&6
12606 if test "${HAVE_XPM}" = "yes"; then
12608 cat >>confdefs.h <<\_ACEOF
12609 #define HAVE_XPM 1
12610 _ACEOF
12615 ### Use -ljpeg if available, unless `--with-jpeg=no'.
12616 HAVE_JPEG=no
12617 if test "${HAVE_X11}" = "yes"; then
12618 if test "${with_jpeg}" != "no"; then
12619 if test "${ac_cv_header_jerror_h+set}" = set; then
12620 echo "$as_me:$LINENO: checking for jerror.h" >&5
12621 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6
12622 if test "${ac_cv_header_jerror_h+set}" = set; then
12623 echo $ECHO_N "(cached) $ECHO_C" >&6
12625 echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
12626 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6
12627 else
12628 # Is the header compilable?
12629 echo "$as_me:$LINENO: checking jerror.h usability" >&5
12630 echo $ECHO_N "checking jerror.h usability... $ECHO_C" >&6
12631 cat >conftest.$ac_ext <<_ACEOF
12632 /* confdefs.h. */
12633 _ACEOF
12634 cat confdefs.h >>conftest.$ac_ext
12635 cat >>conftest.$ac_ext <<_ACEOF
12636 /* end confdefs.h. */
12637 $ac_includes_default
12638 #include <jerror.h>
12639 _ACEOF
12640 rm -f conftest.$ac_objext
12641 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12642 (eval $ac_compile) 2>conftest.er1
12643 ac_status=$?
12644 grep -v '^ *+' conftest.er1 >conftest.err
12645 rm -f conftest.er1
12646 cat conftest.err >&5
12647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12648 (exit $ac_status); } &&
12649 { ac_try='test -z "$ac_c_werror_flag"
12650 || test ! -s conftest.err'
12651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12652 (eval $ac_try) 2>&5
12653 ac_status=$?
12654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12655 (exit $ac_status); }; } &&
12656 { ac_try='test -s conftest.$ac_objext'
12657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12658 (eval $ac_try) 2>&5
12659 ac_status=$?
12660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12661 (exit $ac_status); }; }; then
12662 ac_header_compiler=yes
12663 else
12664 echo "$as_me: failed program was:" >&5
12665 sed 's/^/| /' conftest.$ac_ext >&5
12667 ac_header_compiler=no
12669 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12670 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12671 echo "${ECHO_T}$ac_header_compiler" >&6
12673 # Is the header present?
12674 echo "$as_me:$LINENO: checking jerror.h presence" >&5
12675 echo $ECHO_N "checking jerror.h presence... $ECHO_C" >&6
12676 cat >conftest.$ac_ext <<_ACEOF
12677 /* confdefs.h. */
12678 _ACEOF
12679 cat confdefs.h >>conftest.$ac_ext
12680 cat >>conftest.$ac_ext <<_ACEOF
12681 /* end confdefs.h. */
12682 #include <jerror.h>
12683 _ACEOF
12684 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12685 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12686 ac_status=$?
12687 grep -v '^ *+' conftest.er1 >conftest.err
12688 rm -f conftest.er1
12689 cat conftest.err >&5
12690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12691 (exit $ac_status); } >/dev/null; then
12692 if test -s conftest.err; then
12693 ac_cpp_err=$ac_c_preproc_warn_flag
12694 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12695 else
12696 ac_cpp_err=
12698 else
12699 ac_cpp_err=yes
12701 if test -z "$ac_cpp_err"; then
12702 ac_header_preproc=yes
12703 else
12704 echo "$as_me: failed program was:" >&5
12705 sed 's/^/| /' conftest.$ac_ext >&5
12707 ac_header_preproc=no
12709 rm -f conftest.err conftest.$ac_ext
12710 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12711 echo "${ECHO_T}$ac_header_preproc" >&6
12713 # So? What about this header?
12714 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12715 yes:no: )
12716 { echo "$as_me:$LINENO: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&5
12717 echo "$as_me: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12718 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the compiler's result" >&5
12719 echo "$as_me: WARNING: jerror.h: proceeding with the compiler's result" >&2;}
12720 ac_header_preproc=yes
12722 no:yes:* )
12723 { echo "$as_me:$LINENO: WARNING: jerror.h: present but cannot be compiled" >&5
12724 echo "$as_me: WARNING: jerror.h: present but cannot be compiled" >&2;}
12725 { echo "$as_me:$LINENO: WARNING: jerror.h: check for missing prerequisite headers?" >&5
12726 echo "$as_me: WARNING: jerror.h: check for missing prerequisite headers?" >&2;}
12727 { echo "$as_me:$LINENO: WARNING: jerror.h: see the Autoconf documentation" >&5
12728 echo "$as_me: WARNING: jerror.h: see the Autoconf documentation" >&2;}
12729 { echo "$as_me:$LINENO: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&5
12730 echo "$as_me: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&2;}
12731 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result" >&5
12732 echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result" >&2;}
12733 { echo "$as_me:$LINENO: WARNING: jerror.h: in the future, the compiler will take precedence" >&5
12734 echo "$as_me: WARNING: jerror.h: in the future, the compiler will take precedence" >&2;}
12736 cat <<\_ASBOX
12737 ## ------------------------------------------ ##
12738 ## Report this to the AC_PACKAGE_NAME lists. ##
12739 ## ------------------------------------------ ##
12740 _ASBOX
12742 sed "s/^/$as_me: WARNING: /" >&2
12744 esac
12745 echo "$as_me:$LINENO: checking for jerror.h" >&5
12746 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6
12747 if test "${ac_cv_header_jerror_h+set}" = set; then
12748 echo $ECHO_N "(cached) $ECHO_C" >&6
12749 else
12750 ac_cv_header_jerror_h=$ac_header_preproc
12752 echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
12753 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6
12756 if test $ac_cv_header_jerror_h = yes; then
12757 echo "$as_me:$LINENO: checking for jpeg_destroy_compress in -ljpeg" >&5
12758 echo $ECHO_N "checking for jpeg_destroy_compress in -ljpeg... $ECHO_C" >&6
12759 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
12760 echo $ECHO_N "(cached) $ECHO_C" >&6
12761 else
12762 ac_check_lib_save_LIBS=$LIBS
12763 LIBS="-ljpeg $LIBS"
12764 cat >conftest.$ac_ext <<_ACEOF
12765 /* confdefs.h. */
12766 _ACEOF
12767 cat confdefs.h >>conftest.$ac_ext
12768 cat >>conftest.$ac_ext <<_ACEOF
12769 /* end confdefs.h. */
12771 /* Override any gcc2 internal prototype to avoid an error. */
12772 #ifdef __cplusplus
12773 extern "C"
12774 #endif
12775 /* We use char because int might match the return type of a gcc2
12776 builtin and then its argument prototype would still apply. */
12777 char jpeg_destroy_compress ();
12779 main ()
12781 jpeg_destroy_compress ();
12783 return 0;
12785 _ACEOF
12786 rm -f conftest.$ac_objext conftest$ac_exeext
12787 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12788 (eval $ac_link) 2>conftest.er1
12789 ac_status=$?
12790 grep -v '^ *+' conftest.er1 >conftest.err
12791 rm -f conftest.er1
12792 cat conftest.err >&5
12793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12794 (exit $ac_status); } &&
12795 { ac_try='test -z "$ac_c_werror_flag"
12796 || test ! -s conftest.err'
12797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12798 (eval $ac_try) 2>&5
12799 ac_status=$?
12800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12801 (exit $ac_status); }; } &&
12802 { ac_try='test -s conftest$ac_exeext'
12803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12804 (eval $ac_try) 2>&5
12805 ac_status=$?
12806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12807 (exit $ac_status); }; }; then
12808 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
12809 else
12810 echo "$as_me: failed program was:" >&5
12811 sed 's/^/| /' conftest.$ac_ext >&5
12813 ac_cv_lib_jpeg_jpeg_destroy_compress=no
12815 rm -f conftest.err conftest.$ac_objext \
12816 conftest$ac_exeext conftest.$ac_ext
12817 LIBS=$ac_check_lib_save_LIBS
12819 echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
12820 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6
12821 if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then
12822 HAVE_JPEG=yes
12831 if test "${HAVE_JPEG}" = "yes"; then
12832 cat >>confdefs.h <<\_ACEOF
12833 #define HAVE_JPEG 1
12834 _ACEOF
12836 cat >conftest.$ac_ext <<_ACEOF
12837 /* confdefs.h. */
12838 _ACEOF
12839 cat confdefs.h >>conftest.$ac_ext
12840 cat >>conftest.$ac_ext <<_ACEOF
12841 /* end confdefs.h. */
12842 #include <jpeglib.h>
12843 version=JPEG_LIB_VERSION
12845 _ACEOF
12846 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12847 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then
12848 cat >>confdefs.h <<\_ACEOF
12849 #define HAVE_JPEG 1
12850 _ACEOF
12852 else
12853 { echo "$as_me:$LINENO: WARNING: libjpeg found, but not version 6b or later" >&5
12854 echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
12855 HAVE_JPEG=no
12857 rm -f conftest*
12862 ### Use -lpng if available, unless `--with-png=no'.
12863 HAVE_PNG=no
12864 if test "${HAVE_X11}" = "yes"; then
12865 if test "${with_png}" != "no"; then
12866 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
12867 # in /usr/include/libpng.
12870 for ac_header in png.h libpng/png.h
12872 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12873 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12874 echo "$as_me:$LINENO: checking for $ac_header" >&5
12875 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12876 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12877 echo $ECHO_N "(cached) $ECHO_C" >&6
12879 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12880 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12881 else
12882 # Is the header compilable?
12883 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12884 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12885 cat >conftest.$ac_ext <<_ACEOF
12886 /* confdefs.h. */
12887 _ACEOF
12888 cat confdefs.h >>conftest.$ac_ext
12889 cat >>conftest.$ac_ext <<_ACEOF
12890 /* end confdefs.h. */
12891 $ac_includes_default
12892 #include <$ac_header>
12893 _ACEOF
12894 rm -f conftest.$ac_objext
12895 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12896 (eval $ac_compile) 2>conftest.er1
12897 ac_status=$?
12898 grep -v '^ *+' conftest.er1 >conftest.err
12899 rm -f conftest.er1
12900 cat conftest.err >&5
12901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12902 (exit $ac_status); } &&
12903 { ac_try='test -z "$ac_c_werror_flag"
12904 || test ! -s conftest.err'
12905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12906 (eval $ac_try) 2>&5
12907 ac_status=$?
12908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12909 (exit $ac_status); }; } &&
12910 { ac_try='test -s conftest.$ac_objext'
12911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12912 (eval $ac_try) 2>&5
12913 ac_status=$?
12914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12915 (exit $ac_status); }; }; then
12916 ac_header_compiler=yes
12917 else
12918 echo "$as_me: failed program was:" >&5
12919 sed 's/^/| /' conftest.$ac_ext >&5
12921 ac_header_compiler=no
12923 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12924 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12925 echo "${ECHO_T}$ac_header_compiler" >&6
12927 # Is the header present?
12928 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12929 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12930 cat >conftest.$ac_ext <<_ACEOF
12931 /* confdefs.h. */
12932 _ACEOF
12933 cat confdefs.h >>conftest.$ac_ext
12934 cat >>conftest.$ac_ext <<_ACEOF
12935 /* end confdefs.h. */
12936 #include <$ac_header>
12937 _ACEOF
12938 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12939 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12940 ac_status=$?
12941 grep -v '^ *+' conftest.er1 >conftest.err
12942 rm -f conftest.er1
12943 cat conftest.err >&5
12944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12945 (exit $ac_status); } >/dev/null; then
12946 if test -s conftest.err; then
12947 ac_cpp_err=$ac_c_preproc_warn_flag
12948 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12949 else
12950 ac_cpp_err=
12952 else
12953 ac_cpp_err=yes
12955 if test -z "$ac_cpp_err"; then
12956 ac_header_preproc=yes
12957 else
12958 echo "$as_me: failed program was:" >&5
12959 sed 's/^/| /' conftest.$ac_ext >&5
12961 ac_header_preproc=no
12963 rm -f conftest.err conftest.$ac_ext
12964 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12965 echo "${ECHO_T}$ac_header_preproc" >&6
12967 # So? What about this header?
12968 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12969 yes:no: )
12970 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12971 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12972 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12973 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12974 ac_header_preproc=yes
12976 no:yes:* )
12977 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12978 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12979 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12980 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12981 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12982 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12983 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12984 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12985 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12986 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12987 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12988 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12990 cat <<\_ASBOX
12991 ## ------------------------------------------ ##
12992 ## Report this to the AC_PACKAGE_NAME lists. ##
12993 ## ------------------------------------------ ##
12994 _ASBOX
12996 sed "s/^/$as_me: WARNING: /" >&2
12998 esac
12999 echo "$as_me:$LINENO: checking for $ac_header" >&5
13000 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13001 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13002 echo $ECHO_N "(cached) $ECHO_C" >&6
13003 else
13004 eval "$as_ac_Header=\$ac_header_preproc"
13006 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13007 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13010 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13011 cat >>confdefs.h <<_ACEOF
13012 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13013 _ACEOF
13017 done
13019 if test "$ac_cv_header_png_h" = yes || test "$ac_cv_header_libpng_png_h" = yes ; then
13020 echo "$as_me:$LINENO: checking for png_get_channels in -lpng" >&5
13021 echo $ECHO_N "checking for png_get_channels in -lpng... $ECHO_C" >&6
13022 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then
13023 echo $ECHO_N "(cached) $ECHO_C" >&6
13024 else
13025 ac_check_lib_save_LIBS=$LIBS
13026 LIBS="-lpng -lz -lm $LIBS"
13027 cat >conftest.$ac_ext <<_ACEOF
13028 /* confdefs.h. */
13029 _ACEOF
13030 cat confdefs.h >>conftest.$ac_ext
13031 cat >>conftest.$ac_ext <<_ACEOF
13032 /* end confdefs.h. */
13034 /* Override any gcc2 internal prototype to avoid an error. */
13035 #ifdef __cplusplus
13036 extern "C"
13037 #endif
13038 /* We use char because int might match the return type of a gcc2
13039 builtin and then its argument prototype would still apply. */
13040 char png_get_channels ();
13042 main ()
13044 png_get_channels ();
13046 return 0;
13048 _ACEOF
13049 rm -f conftest.$ac_objext conftest$ac_exeext
13050 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13051 (eval $ac_link) 2>conftest.er1
13052 ac_status=$?
13053 grep -v '^ *+' conftest.er1 >conftest.err
13054 rm -f conftest.er1
13055 cat conftest.err >&5
13056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13057 (exit $ac_status); } &&
13058 { ac_try='test -z "$ac_c_werror_flag"
13059 || test ! -s conftest.err'
13060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13061 (eval $ac_try) 2>&5
13062 ac_status=$?
13063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13064 (exit $ac_status); }; } &&
13065 { ac_try='test -s conftest$ac_exeext'
13066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13067 (eval $ac_try) 2>&5
13068 ac_status=$?
13069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13070 (exit $ac_status); }; }; then
13071 ac_cv_lib_png_png_get_channels=yes
13072 else
13073 echo "$as_me: failed program was:" >&5
13074 sed 's/^/| /' conftest.$ac_ext >&5
13076 ac_cv_lib_png_png_get_channels=no
13078 rm -f conftest.err conftest.$ac_objext \
13079 conftest$ac_exeext conftest.$ac_ext
13080 LIBS=$ac_check_lib_save_LIBS
13082 echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_get_channels" >&5
13083 echo "${ECHO_T}$ac_cv_lib_png_png_get_channels" >&6
13084 if test $ac_cv_lib_png_png_get_channels = yes; then
13085 HAVE_PNG=yes
13091 if test "${HAVE_PNG}" = "yes"; then
13093 cat >>confdefs.h <<\_ACEOF
13094 #define HAVE_PNG 1
13095 _ACEOF
13100 ### Use -ltiff if available, unless `--with-tiff=no'.
13101 HAVE_TIFF=no
13102 if test "${HAVE_X11}" = "yes"; then
13103 if test "${with_tiff}" != "no"; then
13104 if test "${ac_cv_header_tiffio_h+set}" = set; then
13105 echo "$as_me:$LINENO: checking for tiffio.h" >&5
13106 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
13107 if test "${ac_cv_header_tiffio_h+set}" = set; then
13108 echo $ECHO_N "(cached) $ECHO_C" >&6
13110 echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
13111 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
13112 else
13113 # Is the header compilable?
13114 echo "$as_me:$LINENO: checking tiffio.h usability" >&5
13115 echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6
13116 cat >conftest.$ac_ext <<_ACEOF
13117 /* confdefs.h. */
13118 _ACEOF
13119 cat confdefs.h >>conftest.$ac_ext
13120 cat >>conftest.$ac_ext <<_ACEOF
13121 /* end confdefs.h. */
13122 $ac_includes_default
13123 #include <tiffio.h>
13124 _ACEOF
13125 rm -f conftest.$ac_objext
13126 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13127 (eval $ac_compile) 2>conftest.er1
13128 ac_status=$?
13129 grep -v '^ *+' conftest.er1 >conftest.err
13130 rm -f conftest.er1
13131 cat conftest.err >&5
13132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13133 (exit $ac_status); } &&
13134 { ac_try='test -z "$ac_c_werror_flag"
13135 || test ! -s conftest.err'
13136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13137 (eval $ac_try) 2>&5
13138 ac_status=$?
13139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13140 (exit $ac_status); }; } &&
13141 { ac_try='test -s conftest.$ac_objext'
13142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13143 (eval $ac_try) 2>&5
13144 ac_status=$?
13145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13146 (exit $ac_status); }; }; then
13147 ac_header_compiler=yes
13148 else
13149 echo "$as_me: failed program was:" >&5
13150 sed 's/^/| /' conftest.$ac_ext >&5
13152 ac_header_compiler=no
13154 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13155 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13156 echo "${ECHO_T}$ac_header_compiler" >&6
13158 # Is the header present?
13159 echo "$as_me:$LINENO: checking tiffio.h presence" >&5
13160 echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6
13161 cat >conftest.$ac_ext <<_ACEOF
13162 /* confdefs.h. */
13163 _ACEOF
13164 cat confdefs.h >>conftest.$ac_ext
13165 cat >>conftest.$ac_ext <<_ACEOF
13166 /* end confdefs.h. */
13167 #include <tiffio.h>
13168 _ACEOF
13169 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13170 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13171 ac_status=$?
13172 grep -v '^ *+' conftest.er1 >conftest.err
13173 rm -f conftest.er1
13174 cat conftest.err >&5
13175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13176 (exit $ac_status); } >/dev/null; then
13177 if test -s conftest.err; then
13178 ac_cpp_err=$ac_c_preproc_warn_flag
13179 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13180 else
13181 ac_cpp_err=
13183 else
13184 ac_cpp_err=yes
13186 if test -z "$ac_cpp_err"; then
13187 ac_header_preproc=yes
13188 else
13189 echo "$as_me: failed program was:" >&5
13190 sed 's/^/| /' conftest.$ac_ext >&5
13192 ac_header_preproc=no
13194 rm -f conftest.err conftest.$ac_ext
13195 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13196 echo "${ECHO_T}$ac_header_preproc" >&6
13198 # So? What about this header?
13199 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13200 yes:no: )
13201 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
13202 echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13203 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
13204 echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
13205 ac_header_preproc=yes
13207 no:yes:* )
13208 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
13209 echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
13210 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
13211 echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
13212 { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
13213 echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
13214 { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
13215 echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
13216 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
13217 echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
13218 { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
13219 echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
13221 cat <<\_ASBOX
13222 ## ------------------------------------------ ##
13223 ## Report this to the AC_PACKAGE_NAME lists. ##
13224 ## ------------------------------------------ ##
13225 _ASBOX
13227 sed "s/^/$as_me: WARNING: /" >&2
13229 esac
13230 echo "$as_me:$LINENO: checking for tiffio.h" >&5
13231 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
13232 if test "${ac_cv_header_tiffio_h+set}" = set; then
13233 echo $ECHO_N "(cached) $ECHO_C" >&6
13234 else
13235 ac_cv_header_tiffio_h=$ac_header_preproc
13237 echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
13238 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
13241 if test $ac_cv_header_tiffio_h = yes; then
13242 tifflibs="-lz -lm"
13243 # At least one tiff package requires the jpeg library.
13244 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
13245 echo "$as_me:$LINENO: checking for TIFFGetVersion in -ltiff" >&5
13246 echo $ECHO_N "checking for TIFFGetVersion in -ltiff... $ECHO_C" >&6
13247 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
13248 echo $ECHO_N "(cached) $ECHO_C" >&6
13249 else
13250 ac_check_lib_save_LIBS=$LIBS
13251 LIBS="-ltiff $tifflibs $LIBS"
13252 cat >conftest.$ac_ext <<_ACEOF
13253 /* confdefs.h. */
13254 _ACEOF
13255 cat confdefs.h >>conftest.$ac_ext
13256 cat >>conftest.$ac_ext <<_ACEOF
13257 /* end confdefs.h. */
13259 /* Override any gcc2 internal prototype to avoid an error. */
13260 #ifdef __cplusplus
13261 extern "C"
13262 #endif
13263 /* We use char because int might match the return type of a gcc2
13264 builtin and then its argument prototype would still apply. */
13265 char TIFFGetVersion ();
13267 main ()
13269 TIFFGetVersion ();
13271 return 0;
13273 _ACEOF
13274 rm -f conftest.$ac_objext conftest$ac_exeext
13275 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13276 (eval $ac_link) 2>conftest.er1
13277 ac_status=$?
13278 grep -v '^ *+' conftest.er1 >conftest.err
13279 rm -f conftest.er1
13280 cat conftest.err >&5
13281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13282 (exit $ac_status); } &&
13283 { ac_try='test -z "$ac_c_werror_flag"
13284 || test ! -s conftest.err'
13285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13286 (eval $ac_try) 2>&5
13287 ac_status=$?
13288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13289 (exit $ac_status); }; } &&
13290 { ac_try='test -s conftest$ac_exeext'
13291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13292 (eval $ac_try) 2>&5
13293 ac_status=$?
13294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13295 (exit $ac_status); }; }; then
13296 ac_cv_lib_tiff_TIFFGetVersion=yes
13297 else
13298 echo "$as_me: failed program was:" >&5
13299 sed 's/^/| /' conftest.$ac_ext >&5
13301 ac_cv_lib_tiff_TIFFGetVersion=no
13303 rm -f conftest.err conftest.$ac_objext \
13304 conftest$ac_exeext conftest.$ac_ext
13305 LIBS=$ac_check_lib_save_LIBS
13307 echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
13308 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFGetVersion" >&6
13309 if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then
13310 HAVE_TIFF=yes
13318 if test "${HAVE_TIFF}" = "yes"; then
13320 cat >>confdefs.h <<\_ACEOF
13321 #define HAVE_TIFF 1
13322 _ACEOF
13327 ### Use -lgif if available, unless `--with-gif=no'.
13328 HAVE_GIF=no
13329 if test "${HAVE_X11}" = "yes"; then
13330 if test "${with_gif}" != "no"; then
13331 if test "${ac_cv_header_gif_lib_h+set}" = set; then
13332 echo "$as_me:$LINENO: checking for gif_lib.h" >&5
13333 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6
13334 if test "${ac_cv_header_gif_lib_h+set}" = set; then
13335 echo $ECHO_N "(cached) $ECHO_C" >&6
13337 echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
13338 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6
13339 else
13340 # Is the header compilable?
13341 echo "$as_me:$LINENO: checking gif_lib.h usability" >&5
13342 echo $ECHO_N "checking gif_lib.h usability... $ECHO_C" >&6
13343 cat >conftest.$ac_ext <<_ACEOF
13344 /* confdefs.h. */
13345 _ACEOF
13346 cat confdefs.h >>conftest.$ac_ext
13347 cat >>conftest.$ac_ext <<_ACEOF
13348 /* end confdefs.h. */
13349 $ac_includes_default
13350 #include <gif_lib.h>
13351 _ACEOF
13352 rm -f conftest.$ac_objext
13353 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13354 (eval $ac_compile) 2>conftest.er1
13355 ac_status=$?
13356 grep -v '^ *+' conftest.er1 >conftest.err
13357 rm -f conftest.er1
13358 cat conftest.err >&5
13359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13360 (exit $ac_status); } &&
13361 { ac_try='test -z "$ac_c_werror_flag"
13362 || test ! -s conftest.err'
13363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13364 (eval $ac_try) 2>&5
13365 ac_status=$?
13366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13367 (exit $ac_status); }; } &&
13368 { ac_try='test -s conftest.$ac_objext'
13369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13370 (eval $ac_try) 2>&5
13371 ac_status=$?
13372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13373 (exit $ac_status); }; }; then
13374 ac_header_compiler=yes
13375 else
13376 echo "$as_me: failed program was:" >&5
13377 sed 's/^/| /' conftest.$ac_ext >&5
13379 ac_header_compiler=no
13381 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13382 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13383 echo "${ECHO_T}$ac_header_compiler" >&6
13385 # Is the header present?
13386 echo "$as_me:$LINENO: checking gif_lib.h presence" >&5
13387 echo $ECHO_N "checking gif_lib.h presence... $ECHO_C" >&6
13388 cat >conftest.$ac_ext <<_ACEOF
13389 /* confdefs.h. */
13390 _ACEOF
13391 cat confdefs.h >>conftest.$ac_ext
13392 cat >>conftest.$ac_ext <<_ACEOF
13393 /* end confdefs.h. */
13394 #include <gif_lib.h>
13395 _ACEOF
13396 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13397 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13398 ac_status=$?
13399 grep -v '^ *+' conftest.er1 >conftest.err
13400 rm -f conftest.er1
13401 cat conftest.err >&5
13402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13403 (exit $ac_status); } >/dev/null; then
13404 if test -s conftest.err; then
13405 ac_cpp_err=$ac_c_preproc_warn_flag
13406 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13407 else
13408 ac_cpp_err=
13410 else
13411 ac_cpp_err=yes
13413 if test -z "$ac_cpp_err"; then
13414 ac_header_preproc=yes
13415 else
13416 echo "$as_me: failed program was:" >&5
13417 sed 's/^/| /' conftest.$ac_ext >&5
13419 ac_header_preproc=no
13421 rm -f conftest.err conftest.$ac_ext
13422 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13423 echo "${ECHO_T}$ac_header_preproc" >&6
13425 # So? What about this header?
13426 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13427 yes:no: )
13428 { echo "$as_me:$LINENO: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&5
13429 echo "$as_me: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13430 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the compiler's result" >&5
13431 echo "$as_me: WARNING: gif_lib.h: proceeding with the compiler's result" >&2;}
13432 ac_header_preproc=yes
13434 no:yes:* )
13435 { echo "$as_me:$LINENO: WARNING: gif_lib.h: present but cannot be compiled" >&5
13436 echo "$as_me: WARNING: gif_lib.h: present but cannot be compiled" >&2;}
13437 { echo "$as_me:$LINENO: WARNING: gif_lib.h: check for missing prerequisite headers?" >&5
13438 echo "$as_me: WARNING: gif_lib.h: check for missing prerequisite headers?" >&2;}
13439 { echo "$as_me:$LINENO: WARNING: gif_lib.h: see the Autoconf documentation" >&5
13440 echo "$as_me: WARNING: gif_lib.h: see the Autoconf documentation" >&2;}
13441 { echo "$as_me:$LINENO: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&5
13442 echo "$as_me: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&2;}
13443 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5
13444 echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;}
13445 { echo "$as_me:$LINENO: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&5
13446 echo "$as_me: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&2;}
13448 cat <<\_ASBOX
13449 ## ------------------------------------------ ##
13450 ## Report this to the AC_PACKAGE_NAME lists. ##
13451 ## ------------------------------------------ ##
13452 _ASBOX
13454 sed "s/^/$as_me: WARNING: /" >&2
13456 esac
13457 echo "$as_me:$LINENO: checking for gif_lib.h" >&5
13458 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6
13459 if test "${ac_cv_header_gif_lib_h+set}" = set; then
13460 echo $ECHO_N "(cached) $ECHO_C" >&6
13461 else
13462 ac_cv_header_gif_lib_h=$ac_header_preproc
13464 echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
13465 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6
13468 if test $ac_cv_header_gif_lib_h = yes; then
13469 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
13470 # Earlier versions can crash Emacs.
13471 echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lungif" >&5
13472 echo $ECHO_N "checking for EGifPutExtensionLast in -lungif... $ECHO_C" >&6
13473 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then
13474 echo $ECHO_N "(cached) $ECHO_C" >&6
13475 else
13476 ac_check_lib_save_LIBS=$LIBS
13477 LIBS="-lungif $LIBS"
13478 cat >conftest.$ac_ext <<_ACEOF
13479 /* confdefs.h. */
13480 _ACEOF
13481 cat confdefs.h >>conftest.$ac_ext
13482 cat >>conftest.$ac_ext <<_ACEOF
13483 /* end confdefs.h. */
13485 /* Override any gcc2 internal prototype to avoid an error. */
13486 #ifdef __cplusplus
13487 extern "C"
13488 #endif
13489 /* We use char because int might match the return type of a gcc2
13490 builtin and then its argument prototype would still apply. */
13491 char EGifPutExtensionLast ();
13493 main ()
13495 EGifPutExtensionLast ();
13497 return 0;
13499 _ACEOF
13500 rm -f conftest.$ac_objext conftest$ac_exeext
13501 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13502 (eval $ac_link) 2>conftest.er1
13503 ac_status=$?
13504 grep -v '^ *+' conftest.er1 >conftest.err
13505 rm -f conftest.er1
13506 cat conftest.err >&5
13507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13508 (exit $ac_status); } &&
13509 { ac_try='test -z "$ac_c_werror_flag"
13510 || test ! -s conftest.err'
13511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13512 (eval $ac_try) 2>&5
13513 ac_status=$?
13514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13515 (exit $ac_status); }; } &&
13516 { ac_try='test -s conftest$ac_exeext'
13517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13518 (eval $ac_try) 2>&5
13519 ac_status=$?
13520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13521 (exit $ac_status); }; }; then
13522 ac_cv_lib_ungif_EGifPutExtensionLast=yes
13523 else
13524 echo "$as_me: failed program was:" >&5
13525 sed 's/^/| /' conftest.$ac_ext >&5
13527 ac_cv_lib_ungif_EGifPutExtensionLast=no
13529 rm -f conftest.err conftest.$ac_objext \
13530 conftest$ac_exeext conftest.$ac_ext
13531 LIBS=$ac_check_lib_save_LIBS
13533 echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
13534 echo "${ECHO_T}$ac_cv_lib_ungif_EGifPutExtensionLast" >&6
13535 if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then
13536 HAVE_GIF=yes
13544 if test "${HAVE_GIF}" = "yes"; then
13546 cat >>confdefs.h <<\_ACEOF
13547 #define HAVE_GIF 1
13548 _ACEOF
13553 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
13554 echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
13555 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6
13556 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
13557 echo $ECHO_N "(cached) $ECHO_C" >&6
13559 echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
13560 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6
13561 else
13562 # Is the header compilable?
13563 echo "$as_me:$LINENO: checking malloc/malloc.h usability" >&5
13564 echo $ECHO_N "checking malloc/malloc.h usability... $ECHO_C" >&6
13565 cat >conftest.$ac_ext <<_ACEOF
13566 /* confdefs.h. */
13567 _ACEOF
13568 cat confdefs.h >>conftest.$ac_ext
13569 cat >>conftest.$ac_ext <<_ACEOF
13570 /* end confdefs.h. */
13571 $ac_includes_default
13572 #include <malloc/malloc.h>
13573 _ACEOF
13574 rm -f conftest.$ac_objext
13575 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13576 (eval $ac_compile) 2>conftest.er1
13577 ac_status=$?
13578 grep -v '^ *+' conftest.er1 >conftest.err
13579 rm -f conftest.er1
13580 cat conftest.err >&5
13581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13582 (exit $ac_status); } &&
13583 { ac_try='test -z "$ac_c_werror_flag"
13584 || test ! -s conftest.err'
13585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13586 (eval $ac_try) 2>&5
13587 ac_status=$?
13588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13589 (exit $ac_status); }; } &&
13590 { ac_try='test -s conftest.$ac_objext'
13591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13592 (eval $ac_try) 2>&5
13593 ac_status=$?
13594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13595 (exit $ac_status); }; }; then
13596 ac_header_compiler=yes
13597 else
13598 echo "$as_me: failed program was:" >&5
13599 sed 's/^/| /' conftest.$ac_ext >&5
13601 ac_header_compiler=no
13603 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13604 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13605 echo "${ECHO_T}$ac_header_compiler" >&6
13607 # Is the header present?
13608 echo "$as_me:$LINENO: checking malloc/malloc.h presence" >&5
13609 echo $ECHO_N "checking malloc/malloc.h presence... $ECHO_C" >&6
13610 cat >conftest.$ac_ext <<_ACEOF
13611 /* confdefs.h. */
13612 _ACEOF
13613 cat confdefs.h >>conftest.$ac_ext
13614 cat >>conftest.$ac_ext <<_ACEOF
13615 /* end confdefs.h. */
13616 #include <malloc/malloc.h>
13617 _ACEOF
13618 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13619 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13620 ac_status=$?
13621 grep -v '^ *+' conftest.er1 >conftest.err
13622 rm -f conftest.er1
13623 cat conftest.err >&5
13624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13625 (exit $ac_status); } >/dev/null; then
13626 if test -s conftest.err; then
13627 ac_cpp_err=$ac_c_preproc_warn_flag
13628 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13629 else
13630 ac_cpp_err=
13632 else
13633 ac_cpp_err=yes
13635 if test -z "$ac_cpp_err"; then
13636 ac_header_preproc=yes
13637 else
13638 echo "$as_me: failed program was:" >&5
13639 sed 's/^/| /' conftest.$ac_ext >&5
13641 ac_header_preproc=no
13643 rm -f conftest.err conftest.$ac_ext
13644 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13645 echo "${ECHO_T}$ac_header_preproc" >&6
13647 # So? What about this header?
13648 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13649 yes:no: )
13650 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&5
13651 echo "$as_me: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13652 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&5
13653 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&2;}
13654 ac_header_preproc=yes
13656 no:yes:* )
13657 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: present but cannot be compiled" >&5
13658 echo "$as_me: WARNING: malloc/malloc.h: present but cannot be compiled" >&2;}
13659 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&5
13660 echo "$as_me: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&2;}
13661 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: see the Autoconf documentation" >&5
13662 echo "$as_me: WARNING: malloc/malloc.h: see the Autoconf documentation" >&2;}
13663 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&5
13664 echo "$as_me: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&2;}
13665 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&5
13666 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&2;}
13667 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&5
13668 echo "$as_me: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&2;}
13670 cat <<\_ASBOX
13671 ## ------------------------------------------ ##
13672 ## Report this to the AC_PACKAGE_NAME lists. ##
13673 ## ------------------------------------------ ##
13674 _ASBOX
13676 sed "s/^/$as_me: WARNING: /" >&2
13678 esac
13679 echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
13680 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6
13681 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
13682 echo $ECHO_N "(cached) $ECHO_C" >&6
13683 else
13684 ac_cv_header_malloc_malloc_h=$ac_header_preproc
13686 echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
13687 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6
13690 if test $ac_cv_header_malloc_malloc_h = yes; then
13692 cat >>confdefs.h <<\_ACEOF
13693 #define HAVE_MALLOC_MALLOC_H 1
13694 _ACEOF
13700 ### Use Mac OS X Carbon API to implement GUI.
13701 if test "${HAVE_CARBON}" = "yes"; then
13703 cat >>confdefs.h <<\_ACEOF
13704 #define HAVE_CARBON 1
13705 _ACEOF
13707 ## Specify the install directory
13708 carbon_appdir=
13709 if test "${carbon_appdir_x}" != ""; then
13710 case ${carbon_appdir_x} in
13711 y | ye | yes) carbon_appdir=/Applications ;;
13712 * ) carbon_appdir=${carbon_appdir_x} ;;
13713 esac
13715 # We also have mouse menus.
13716 HAVE_MENUS=yes
13718 tmp_CFLAGS="$CFLAGS"
13719 CFLAGS="$CFLAGS -framework Carbon"
13720 echo "$as_me:$LINENO: checking for CancelMenuTracking" >&5
13721 echo $ECHO_N "checking for CancelMenuTracking... $ECHO_C" >&6
13722 if test "${ac_cv_func_CancelMenuTracking+set}" = set; then
13723 echo $ECHO_N "(cached) $ECHO_C" >&6
13724 else
13725 cat >conftest.$ac_ext <<_ACEOF
13726 /* confdefs.h. */
13727 _ACEOF
13728 cat confdefs.h >>conftest.$ac_ext
13729 cat >>conftest.$ac_ext <<_ACEOF
13730 /* end confdefs.h. */
13731 /* Define CancelMenuTracking to an innocuous variant, in case <limits.h> declares CancelMenuTracking.
13732 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13733 #define CancelMenuTracking innocuous_CancelMenuTracking
13735 /* System header to define __stub macros and hopefully few prototypes,
13736 which can conflict with char CancelMenuTracking (); below.
13737 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13738 <limits.h> exists even on freestanding compilers. */
13740 #ifdef __STDC__
13741 # include <limits.h>
13742 #else
13743 # include <assert.h>
13744 #endif
13746 #undef CancelMenuTracking
13748 /* Override any gcc2 internal prototype to avoid an error. */
13749 #ifdef __cplusplus
13750 extern "C"
13752 #endif
13753 /* We use char because int might match the return type of a gcc2
13754 builtin and then its argument prototype would still apply. */
13755 char CancelMenuTracking ();
13756 /* The GNU C library defines this for functions which it implements
13757 to always fail with ENOSYS. Some functions are actually named
13758 something starting with __ and the normal name is an alias. */
13759 #if defined (__stub_CancelMenuTracking) || defined (__stub___CancelMenuTracking)
13760 choke me
13761 #else
13762 char (*f) () = CancelMenuTracking;
13763 #endif
13764 #ifdef __cplusplus
13766 #endif
13769 main ()
13771 return f != CancelMenuTracking;
13773 return 0;
13775 _ACEOF
13776 rm -f conftest.$ac_objext conftest$ac_exeext
13777 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13778 (eval $ac_link) 2>conftest.er1
13779 ac_status=$?
13780 grep -v '^ *+' conftest.er1 >conftest.err
13781 rm -f conftest.er1
13782 cat conftest.err >&5
13783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13784 (exit $ac_status); } &&
13785 { ac_try='test -z "$ac_c_werror_flag"
13786 || test ! -s conftest.err'
13787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13788 (eval $ac_try) 2>&5
13789 ac_status=$?
13790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13791 (exit $ac_status); }; } &&
13792 { ac_try='test -s conftest$ac_exeext'
13793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13794 (eval $ac_try) 2>&5
13795 ac_status=$?
13796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13797 (exit $ac_status); }; }; then
13798 ac_cv_func_CancelMenuTracking=yes
13799 else
13800 echo "$as_me: failed program was:" >&5
13801 sed 's/^/| /' conftest.$ac_ext >&5
13803 ac_cv_func_CancelMenuTracking=no
13805 rm -f conftest.err conftest.$ac_objext \
13806 conftest$ac_exeext conftest.$ac_ext
13808 echo "$as_me:$LINENO: result: $ac_cv_func_CancelMenuTracking" >&5
13809 echo "${ECHO_T}$ac_cv_func_CancelMenuTracking" >&6
13810 if test $ac_cv_func_CancelMenuTracking = yes; then
13811 have_cmt=yes
13812 else
13813 have_cmt=no
13816 if test "$have_cmt" = yes; then
13818 cat >>confdefs.h <<\_ACEOF
13819 #define HAVE_CANCELMENUTRACKING 1
13820 _ACEOF
13823 CFLAGS="$tmp_CFLAGS"
13826 ### Use session management (-lSM -lICE) if available
13827 HAVE_X_SM=no
13828 if test "${HAVE_X11}" = "yes"; then
13829 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
13830 echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
13831 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6
13832 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
13833 echo $ECHO_N "(cached) $ECHO_C" >&6
13835 echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
13836 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6
13837 else
13838 # Is the header compilable?
13839 echo "$as_me:$LINENO: checking X11/SM/SMlib.h usability" >&5
13840 echo $ECHO_N "checking X11/SM/SMlib.h usability... $ECHO_C" >&6
13841 cat >conftest.$ac_ext <<_ACEOF
13842 /* confdefs.h. */
13843 _ACEOF
13844 cat confdefs.h >>conftest.$ac_ext
13845 cat >>conftest.$ac_ext <<_ACEOF
13846 /* end confdefs.h. */
13847 $ac_includes_default
13848 #include <X11/SM/SMlib.h>
13849 _ACEOF
13850 rm -f conftest.$ac_objext
13851 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13852 (eval $ac_compile) 2>conftest.er1
13853 ac_status=$?
13854 grep -v '^ *+' conftest.er1 >conftest.err
13855 rm -f conftest.er1
13856 cat conftest.err >&5
13857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13858 (exit $ac_status); } &&
13859 { ac_try='test -z "$ac_c_werror_flag"
13860 || test ! -s conftest.err'
13861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13862 (eval $ac_try) 2>&5
13863 ac_status=$?
13864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13865 (exit $ac_status); }; } &&
13866 { ac_try='test -s conftest.$ac_objext'
13867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13868 (eval $ac_try) 2>&5
13869 ac_status=$?
13870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13871 (exit $ac_status); }; }; then
13872 ac_header_compiler=yes
13873 else
13874 echo "$as_me: failed program was:" >&5
13875 sed 's/^/| /' conftest.$ac_ext >&5
13877 ac_header_compiler=no
13879 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13880 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13881 echo "${ECHO_T}$ac_header_compiler" >&6
13883 # Is the header present?
13884 echo "$as_me:$LINENO: checking X11/SM/SMlib.h presence" >&5
13885 echo $ECHO_N "checking X11/SM/SMlib.h presence... $ECHO_C" >&6
13886 cat >conftest.$ac_ext <<_ACEOF
13887 /* confdefs.h. */
13888 _ACEOF
13889 cat confdefs.h >>conftest.$ac_ext
13890 cat >>conftest.$ac_ext <<_ACEOF
13891 /* end confdefs.h. */
13892 #include <X11/SM/SMlib.h>
13893 _ACEOF
13894 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13895 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13896 ac_status=$?
13897 grep -v '^ *+' conftest.er1 >conftest.err
13898 rm -f conftest.er1
13899 cat conftest.err >&5
13900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13901 (exit $ac_status); } >/dev/null; then
13902 if test -s conftest.err; then
13903 ac_cpp_err=$ac_c_preproc_warn_flag
13904 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13905 else
13906 ac_cpp_err=
13908 else
13909 ac_cpp_err=yes
13911 if test -z "$ac_cpp_err"; then
13912 ac_header_preproc=yes
13913 else
13914 echo "$as_me: failed program was:" >&5
13915 sed 's/^/| /' conftest.$ac_ext >&5
13917 ac_header_preproc=no
13919 rm -f conftest.err conftest.$ac_ext
13920 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13921 echo "${ECHO_T}$ac_header_preproc" >&6
13923 # So? What about this header?
13924 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13925 yes:no: )
13926 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
13927 echo "$as_me: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13928 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&5
13929 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&2;}
13930 ac_header_preproc=yes
13932 no:yes:* )
13933 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&5
13934 echo "$as_me: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&2;}
13935 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&5
13936 echo "$as_me: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&2;}
13937 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&5
13938 echo "$as_me: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&2;}
13939 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&5
13940 echo "$as_me: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
13941 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
13942 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;}
13943 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&5
13944 echo "$as_me: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&2;}
13946 cat <<\_ASBOX
13947 ## ------------------------------------------ ##
13948 ## Report this to the AC_PACKAGE_NAME lists. ##
13949 ## ------------------------------------------ ##
13950 _ASBOX
13952 sed "s/^/$as_me: WARNING: /" >&2
13954 esac
13955 echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
13956 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6
13957 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
13958 echo $ECHO_N "(cached) $ECHO_C" >&6
13959 else
13960 ac_cv_header_X11_SM_SMlib_h=$ac_header_preproc
13962 echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
13963 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6
13966 if test $ac_cv_header_X11_SM_SMlib_h = yes; then
13967 echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
13968 echo $ECHO_N "checking for SmcOpenConnection in -lSM... $ECHO_C" >&6
13969 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
13970 echo $ECHO_N "(cached) $ECHO_C" >&6
13971 else
13972 ac_check_lib_save_LIBS=$LIBS
13973 LIBS="-lSM -lICE $LIBS"
13974 cat >conftest.$ac_ext <<_ACEOF
13975 /* confdefs.h. */
13976 _ACEOF
13977 cat confdefs.h >>conftest.$ac_ext
13978 cat >>conftest.$ac_ext <<_ACEOF
13979 /* end confdefs.h. */
13981 /* Override any gcc2 internal prototype to avoid an error. */
13982 #ifdef __cplusplus
13983 extern "C"
13984 #endif
13985 /* We use char because int might match the return type of a gcc2
13986 builtin and then its argument prototype would still apply. */
13987 char SmcOpenConnection ();
13989 main ()
13991 SmcOpenConnection ();
13993 return 0;
13995 _ACEOF
13996 rm -f conftest.$ac_objext conftest$ac_exeext
13997 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13998 (eval $ac_link) 2>conftest.er1
13999 ac_status=$?
14000 grep -v '^ *+' conftest.er1 >conftest.err
14001 rm -f conftest.er1
14002 cat conftest.err >&5
14003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14004 (exit $ac_status); } &&
14005 { ac_try='test -z "$ac_c_werror_flag"
14006 || test ! -s conftest.err'
14007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14008 (eval $ac_try) 2>&5
14009 ac_status=$?
14010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14011 (exit $ac_status); }; } &&
14012 { ac_try='test -s conftest$ac_exeext'
14013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14014 (eval $ac_try) 2>&5
14015 ac_status=$?
14016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14017 (exit $ac_status); }; }; then
14018 ac_cv_lib_SM_SmcOpenConnection=yes
14019 else
14020 echo "$as_me: failed program was:" >&5
14021 sed 's/^/| /' conftest.$ac_ext >&5
14023 ac_cv_lib_SM_SmcOpenConnection=no
14025 rm -f conftest.err conftest.$ac_objext \
14026 conftest$ac_exeext conftest.$ac_ext
14027 LIBS=$ac_check_lib_save_LIBS
14029 echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
14030 echo "${ECHO_T}$ac_cv_lib_SM_SmcOpenConnection" >&6
14031 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
14032 HAVE_X_SM=yes
14039 if test "${HAVE_X_SM}" = "yes"; then
14041 cat >>confdefs.h <<\_ACEOF
14042 #define HAVE_X_SM 1
14043 _ACEOF
14045 case "$LIBS" in
14046 *-lSM*) ;;
14047 *) LIBS="-lSM -lICE $LIBS" ;;
14048 esac
14052 # If netdb.h doesn't declare h_errno, we must declare it by hand.
14053 echo "$as_me:$LINENO: checking whether netdb declares h_errno" >&5
14054 echo $ECHO_N "checking whether netdb declares h_errno... $ECHO_C" >&6
14055 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then
14056 echo $ECHO_N "(cached) $ECHO_C" >&6
14057 else
14058 cat >conftest.$ac_ext <<_ACEOF
14059 /* confdefs.h. */
14060 _ACEOF
14061 cat confdefs.h >>conftest.$ac_ext
14062 cat >>conftest.$ac_ext <<_ACEOF
14063 /* end confdefs.h. */
14064 #include <netdb.h>
14066 main ()
14068 return h_errno;
14070 return 0;
14072 _ACEOF
14073 rm -f conftest.$ac_objext conftest$ac_exeext
14074 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14075 (eval $ac_link) 2>conftest.er1
14076 ac_status=$?
14077 grep -v '^ *+' conftest.er1 >conftest.err
14078 rm -f conftest.er1
14079 cat conftest.err >&5
14080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14081 (exit $ac_status); } &&
14082 { ac_try='test -z "$ac_c_werror_flag"
14083 || test ! -s conftest.err'
14084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14085 (eval $ac_try) 2>&5
14086 ac_status=$?
14087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14088 (exit $ac_status); }; } &&
14089 { ac_try='test -s conftest$ac_exeext'
14090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14091 (eval $ac_try) 2>&5
14092 ac_status=$?
14093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14094 (exit $ac_status); }; }; then
14095 emacs_cv_netdb_declares_h_errno=yes
14096 else
14097 echo "$as_me: failed program was:" >&5
14098 sed 's/^/| /' conftest.$ac_ext >&5
14100 emacs_cv_netdb_declares_h_errno=no
14102 rm -f conftest.err conftest.$ac_objext \
14103 conftest$ac_exeext conftest.$ac_ext
14105 echo "$as_me:$LINENO: result: $emacs_cv_netdb_declares_h_errno" >&5
14106 echo "${ECHO_T}$emacs_cv_netdb_declares_h_errno" >&6
14107 if test $emacs_cv_netdb_declares_h_errno = yes; then
14109 cat >>confdefs.h <<\_ACEOF
14110 #define HAVE_H_ERRNO 1
14111 _ACEOF
14115 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
14116 # for constant arguments. Useless!
14117 echo "$as_me:$LINENO: checking for working alloca.h" >&5
14118 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
14119 if test "${ac_cv_working_alloca_h+set}" = set; then
14120 echo $ECHO_N "(cached) $ECHO_C" >&6
14121 else
14122 cat >conftest.$ac_ext <<_ACEOF
14123 /* confdefs.h. */
14124 _ACEOF
14125 cat confdefs.h >>conftest.$ac_ext
14126 cat >>conftest.$ac_ext <<_ACEOF
14127 /* end confdefs.h. */
14128 #include <alloca.h>
14130 main ()
14132 char *p = (char *) alloca (2 * sizeof (int));
14134 return 0;
14136 _ACEOF
14137 rm -f conftest.$ac_objext conftest$ac_exeext
14138 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14139 (eval $ac_link) 2>conftest.er1
14140 ac_status=$?
14141 grep -v '^ *+' conftest.er1 >conftest.err
14142 rm -f conftest.er1
14143 cat conftest.err >&5
14144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14145 (exit $ac_status); } &&
14146 { ac_try='test -z "$ac_c_werror_flag"
14147 || test ! -s conftest.err'
14148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14149 (eval $ac_try) 2>&5
14150 ac_status=$?
14151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14152 (exit $ac_status); }; } &&
14153 { ac_try='test -s conftest$ac_exeext'
14154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14155 (eval $ac_try) 2>&5
14156 ac_status=$?
14157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14158 (exit $ac_status); }; }; then
14159 ac_cv_working_alloca_h=yes
14160 else
14161 echo "$as_me: failed program was:" >&5
14162 sed 's/^/| /' conftest.$ac_ext >&5
14164 ac_cv_working_alloca_h=no
14166 rm -f conftest.err conftest.$ac_objext \
14167 conftest$ac_exeext conftest.$ac_ext
14169 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
14170 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
14171 if test $ac_cv_working_alloca_h = yes; then
14173 cat >>confdefs.h <<\_ACEOF
14174 #define HAVE_ALLOCA_H 1
14175 _ACEOF
14179 echo "$as_me:$LINENO: checking for alloca" >&5
14180 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
14181 if test "${ac_cv_func_alloca_works+set}" = set; then
14182 echo $ECHO_N "(cached) $ECHO_C" >&6
14183 else
14184 cat >conftest.$ac_ext <<_ACEOF
14185 /* confdefs.h. */
14186 _ACEOF
14187 cat confdefs.h >>conftest.$ac_ext
14188 cat >>conftest.$ac_ext <<_ACEOF
14189 /* end confdefs.h. */
14190 #ifdef __GNUC__
14191 # define alloca __builtin_alloca
14192 #else
14193 # ifdef _MSC_VER
14194 # include <malloc.h>
14195 # define alloca _alloca
14196 # else
14197 # if HAVE_ALLOCA_H
14198 # include <alloca.h>
14199 # else
14200 # ifdef _AIX
14201 #pragma alloca
14202 # else
14203 # ifndef alloca /* predefined by HP cc +Olibcalls */
14204 char *alloca ();
14205 # endif
14206 # endif
14207 # endif
14208 # endif
14209 #endif
14212 main ()
14214 char *p = (char *) alloca (1);
14216 return 0;
14218 _ACEOF
14219 rm -f conftest.$ac_objext conftest$ac_exeext
14220 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14221 (eval $ac_link) 2>conftest.er1
14222 ac_status=$?
14223 grep -v '^ *+' conftest.er1 >conftest.err
14224 rm -f conftest.er1
14225 cat conftest.err >&5
14226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14227 (exit $ac_status); } &&
14228 { ac_try='test -z "$ac_c_werror_flag"
14229 || test ! -s conftest.err'
14230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14231 (eval $ac_try) 2>&5
14232 ac_status=$?
14233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14234 (exit $ac_status); }; } &&
14235 { ac_try='test -s conftest$ac_exeext'
14236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14237 (eval $ac_try) 2>&5
14238 ac_status=$?
14239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14240 (exit $ac_status); }; }; then
14241 ac_cv_func_alloca_works=yes
14242 else
14243 echo "$as_me: failed program was:" >&5
14244 sed 's/^/| /' conftest.$ac_ext >&5
14246 ac_cv_func_alloca_works=no
14248 rm -f conftest.err conftest.$ac_objext \
14249 conftest$ac_exeext conftest.$ac_ext
14251 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
14252 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
14254 if test $ac_cv_func_alloca_works = yes; then
14256 cat >>confdefs.h <<\_ACEOF
14257 #define HAVE_ALLOCA 1
14258 _ACEOF
14260 else
14261 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
14262 # that cause trouble. Some versions do not even contain alloca or
14263 # contain a buggy version. If you still want to use their alloca,
14264 # use ar to extract alloca.o from them instead of compiling alloca.c.
14266 ALLOCA=alloca.$ac_objext
14268 cat >>confdefs.h <<\_ACEOF
14269 #define C_ALLOCA 1
14270 _ACEOF
14273 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
14274 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
14275 if test "${ac_cv_os_cray+set}" = set; then
14276 echo $ECHO_N "(cached) $ECHO_C" >&6
14277 else
14278 cat >conftest.$ac_ext <<_ACEOF
14279 /* confdefs.h. */
14280 _ACEOF
14281 cat confdefs.h >>conftest.$ac_ext
14282 cat >>conftest.$ac_ext <<_ACEOF
14283 /* end confdefs.h. */
14284 #if defined(CRAY) && ! defined(CRAY2)
14285 webecray
14286 #else
14287 wenotbecray
14288 #endif
14290 _ACEOF
14291 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14292 $EGREP "webecray" >/dev/null 2>&1; then
14293 ac_cv_os_cray=yes
14294 else
14295 ac_cv_os_cray=no
14297 rm -f conftest*
14300 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
14301 echo "${ECHO_T}$ac_cv_os_cray" >&6
14302 if test $ac_cv_os_cray = yes; then
14303 for ac_func in _getb67 GETB67 getb67; do
14304 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14305 echo "$as_me:$LINENO: checking for $ac_func" >&5
14306 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14307 if eval "test \"\${$as_ac_var+set}\" = set"; then
14308 echo $ECHO_N "(cached) $ECHO_C" >&6
14309 else
14310 cat >conftest.$ac_ext <<_ACEOF
14311 /* confdefs.h. */
14312 _ACEOF
14313 cat confdefs.h >>conftest.$ac_ext
14314 cat >>conftest.$ac_ext <<_ACEOF
14315 /* end confdefs.h. */
14316 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14317 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14318 #define $ac_func innocuous_$ac_func
14320 /* System header to define __stub macros and hopefully few prototypes,
14321 which can conflict with char $ac_func (); below.
14322 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14323 <limits.h> exists even on freestanding compilers. */
14325 #ifdef __STDC__
14326 # include <limits.h>
14327 #else
14328 # include <assert.h>
14329 #endif
14331 #undef $ac_func
14333 /* Override any gcc2 internal prototype to avoid an error. */
14334 #ifdef __cplusplus
14335 extern "C"
14337 #endif
14338 /* We use char because int might match the return type of a gcc2
14339 builtin and then its argument prototype would still apply. */
14340 char $ac_func ();
14341 /* The GNU C library defines this for functions which it implements
14342 to always fail with ENOSYS. Some functions are actually named
14343 something starting with __ and the normal name is an alias. */
14344 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14345 choke me
14346 #else
14347 char (*f) () = $ac_func;
14348 #endif
14349 #ifdef __cplusplus
14351 #endif
14354 main ()
14356 return f != $ac_func;
14358 return 0;
14360 _ACEOF
14361 rm -f conftest.$ac_objext conftest$ac_exeext
14362 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14363 (eval $ac_link) 2>conftest.er1
14364 ac_status=$?
14365 grep -v '^ *+' conftest.er1 >conftest.err
14366 rm -f conftest.er1
14367 cat conftest.err >&5
14368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14369 (exit $ac_status); } &&
14370 { ac_try='test -z "$ac_c_werror_flag"
14371 || test ! -s conftest.err'
14372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14373 (eval $ac_try) 2>&5
14374 ac_status=$?
14375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14376 (exit $ac_status); }; } &&
14377 { ac_try='test -s conftest$ac_exeext'
14378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14379 (eval $ac_try) 2>&5
14380 ac_status=$?
14381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14382 (exit $ac_status); }; }; then
14383 eval "$as_ac_var=yes"
14384 else
14385 echo "$as_me: failed program was:" >&5
14386 sed 's/^/| /' conftest.$ac_ext >&5
14388 eval "$as_ac_var=no"
14390 rm -f conftest.err conftest.$ac_objext \
14391 conftest$ac_exeext conftest.$ac_ext
14393 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14394 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14395 if test `eval echo '${'$as_ac_var'}'` = yes; then
14397 cat >>confdefs.h <<_ACEOF
14398 #define CRAY_STACKSEG_END $ac_func
14399 _ACEOF
14401 break
14404 done
14407 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
14408 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
14409 if test "${ac_cv_c_stack_direction+set}" = set; then
14410 echo $ECHO_N "(cached) $ECHO_C" >&6
14411 else
14412 if test "$cross_compiling" = yes; then
14413 ac_cv_c_stack_direction=0
14414 else
14415 cat >conftest.$ac_ext <<_ACEOF
14416 /* confdefs.h. */
14417 _ACEOF
14418 cat confdefs.h >>conftest.$ac_ext
14419 cat >>conftest.$ac_ext <<_ACEOF
14420 /* end confdefs.h. */
14422 find_stack_direction ()
14424 static char *addr = 0;
14425 auto char dummy;
14426 if (addr == 0)
14428 addr = &dummy;
14429 return find_stack_direction ();
14431 else
14432 return (&dummy > addr) ? 1 : -1;
14436 main ()
14438 exit (find_stack_direction () < 0);
14440 _ACEOF
14441 rm -f conftest$ac_exeext
14442 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14443 (eval $ac_link) 2>&5
14444 ac_status=$?
14445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14446 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14448 (eval $ac_try) 2>&5
14449 ac_status=$?
14450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14451 (exit $ac_status); }; }; then
14452 ac_cv_c_stack_direction=1
14453 else
14454 echo "$as_me: program exited with status $ac_status" >&5
14455 echo "$as_me: failed program was:" >&5
14456 sed 's/^/| /' conftest.$ac_ext >&5
14458 ( exit $ac_status )
14459 ac_cv_c_stack_direction=-1
14461 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14464 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
14465 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
14467 cat >>confdefs.h <<_ACEOF
14468 #define STACK_DIRECTION $ac_cv_c_stack_direction
14469 _ACEOF
14475 # fmod, logb, and frexp are found in -lm on most systems.
14476 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
14478 echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
14479 echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6
14480 if test "${ac_cv_lib_m_sqrt+set}" = set; then
14481 echo $ECHO_N "(cached) $ECHO_C" >&6
14482 else
14483 ac_check_lib_save_LIBS=$LIBS
14484 LIBS="-lm $LIBS"
14485 cat >conftest.$ac_ext <<_ACEOF
14486 /* confdefs.h. */
14487 _ACEOF
14488 cat confdefs.h >>conftest.$ac_ext
14489 cat >>conftest.$ac_ext <<_ACEOF
14490 /* end confdefs.h. */
14492 /* Override any gcc2 internal prototype to avoid an error. */
14493 #ifdef __cplusplus
14494 extern "C"
14495 #endif
14496 /* We use char because int might match the return type of a gcc2
14497 builtin and then its argument prototype would still apply. */
14498 char sqrt ();
14500 main ()
14502 sqrt ();
14504 return 0;
14506 _ACEOF
14507 rm -f conftest.$ac_objext conftest$ac_exeext
14508 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14509 (eval $ac_link) 2>conftest.er1
14510 ac_status=$?
14511 grep -v '^ *+' conftest.er1 >conftest.err
14512 rm -f conftest.er1
14513 cat conftest.err >&5
14514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14515 (exit $ac_status); } &&
14516 { ac_try='test -z "$ac_c_werror_flag"
14517 || test ! -s conftest.err'
14518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14519 (eval $ac_try) 2>&5
14520 ac_status=$?
14521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14522 (exit $ac_status); }; } &&
14523 { ac_try='test -s conftest$ac_exeext'
14524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14525 (eval $ac_try) 2>&5
14526 ac_status=$?
14527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14528 (exit $ac_status); }; }; then
14529 ac_cv_lib_m_sqrt=yes
14530 else
14531 echo "$as_me: failed program was:" >&5
14532 sed 's/^/| /' conftest.$ac_ext >&5
14534 ac_cv_lib_m_sqrt=no
14536 rm -f conftest.err conftest.$ac_objext \
14537 conftest$ac_exeext conftest.$ac_ext
14538 LIBS=$ac_check_lib_save_LIBS
14540 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
14541 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6
14542 if test $ac_cv_lib_m_sqrt = yes; then
14543 cat >>confdefs.h <<_ACEOF
14544 #define HAVE_LIBM 1
14545 _ACEOF
14547 LIBS="-lm $LIBS"
14552 # Check for mail-locking functions in a "mail" library. Probably this should
14553 # have the same check as for liblockfile below.
14555 echo "$as_me:$LINENO: checking for maillock in -lmail" >&5
14556 echo $ECHO_N "checking for maillock in -lmail... $ECHO_C" >&6
14557 if test "${ac_cv_lib_mail_maillock+set}" = set; then
14558 echo $ECHO_N "(cached) $ECHO_C" >&6
14559 else
14560 ac_check_lib_save_LIBS=$LIBS
14561 LIBS="-lmail $LIBS"
14562 cat >conftest.$ac_ext <<_ACEOF
14563 /* confdefs.h. */
14564 _ACEOF
14565 cat confdefs.h >>conftest.$ac_ext
14566 cat >>conftest.$ac_ext <<_ACEOF
14567 /* end confdefs.h. */
14569 /* Override any gcc2 internal prototype to avoid an error. */
14570 #ifdef __cplusplus
14571 extern "C"
14572 #endif
14573 /* We use char because int might match the return type of a gcc2
14574 builtin and then its argument prototype would still apply. */
14575 char maillock ();
14577 main ()
14579 maillock ();
14581 return 0;
14583 _ACEOF
14584 rm -f conftest.$ac_objext conftest$ac_exeext
14585 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14586 (eval $ac_link) 2>conftest.er1
14587 ac_status=$?
14588 grep -v '^ *+' conftest.er1 >conftest.err
14589 rm -f conftest.er1
14590 cat conftest.err >&5
14591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14592 (exit $ac_status); } &&
14593 { ac_try='test -z "$ac_c_werror_flag"
14594 || test ! -s conftest.err'
14595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14596 (eval $ac_try) 2>&5
14597 ac_status=$?
14598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14599 (exit $ac_status); }; } &&
14600 { ac_try='test -s conftest$ac_exeext'
14601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14602 (eval $ac_try) 2>&5
14603 ac_status=$?
14604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14605 (exit $ac_status); }; }; then
14606 ac_cv_lib_mail_maillock=yes
14607 else
14608 echo "$as_me: failed program was:" >&5
14609 sed 's/^/| /' conftest.$ac_ext >&5
14611 ac_cv_lib_mail_maillock=no
14613 rm -f conftest.err conftest.$ac_objext \
14614 conftest$ac_exeext conftest.$ac_ext
14615 LIBS=$ac_check_lib_save_LIBS
14617 echo "$as_me:$LINENO: result: $ac_cv_lib_mail_maillock" >&5
14618 echo "${ECHO_T}$ac_cv_lib_mail_maillock" >&6
14619 if test $ac_cv_lib_mail_maillock = yes; then
14620 cat >>confdefs.h <<_ACEOF
14621 #define HAVE_LIBMAIL 1
14622 _ACEOF
14624 LIBS="-lmail $LIBS"
14629 echo "$as_me:$LINENO: checking for maillock in -llockfile" >&5
14630 echo $ECHO_N "checking for maillock in -llockfile... $ECHO_C" >&6
14631 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
14632 echo $ECHO_N "(cached) $ECHO_C" >&6
14633 else
14634 ac_check_lib_save_LIBS=$LIBS
14635 LIBS="-llockfile $LIBS"
14636 cat >conftest.$ac_ext <<_ACEOF
14637 /* confdefs.h. */
14638 _ACEOF
14639 cat confdefs.h >>conftest.$ac_ext
14640 cat >>conftest.$ac_ext <<_ACEOF
14641 /* end confdefs.h. */
14643 /* Override any gcc2 internal prototype to avoid an error. */
14644 #ifdef __cplusplus
14645 extern "C"
14646 #endif
14647 /* We use char because int might match the return type of a gcc2
14648 builtin and then its argument prototype would still apply. */
14649 char maillock ();
14651 main ()
14653 maillock ();
14655 return 0;
14657 _ACEOF
14658 rm -f conftest.$ac_objext conftest$ac_exeext
14659 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14660 (eval $ac_link) 2>conftest.er1
14661 ac_status=$?
14662 grep -v '^ *+' conftest.er1 >conftest.err
14663 rm -f conftest.er1
14664 cat conftest.err >&5
14665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14666 (exit $ac_status); } &&
14667 { ac_try='test -z "$ac_c_werror_flag"
14668 || test ! -s conftest.err'
14669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14670 (eval $ac_try) 2>&5
14671 ac_status=$?
14672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14673 (exit $ac_status); }; } &&
14674 { ac_try='test -s conftest$ac_exeext'
14675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14676 (eval $ac_try) 2>&5
14677 ac_status=$?
14678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14679 (exit $ac_status); }; }; then
14680 ac_cv_lib_lockfile_maillock=yes
14681 else
14682 echo "$as_me: failed program was:" >&5
14683 sed 's/^/| /' conftest.$ac_ext >&5
14685 ac_cv_lib_lockfile_maillock=no
14687 rm -f conftest.err conftest.$ac_objext \
14688 conftest$ac_exeext conftest.$ac_ext
14689 LIBS=$ac_check_lib_save_LIBS
14691 echo "$as_me:$LINENO: result: $ac_cv_lib_lockfile_maillock" >&5
14692 echo "${ECHO_T}$ac_cv_lib_lockfile_maillock" >&6
14693 if test $ac_cv_lib_lockfile_maillock = yes; then
14694 cat >>confdefs.h <<_ACEOF
14695 #define HAVE_LIBLOCKFILE 1
14696 _ACEOF
14698 LIBS="-llockfile $LIBS"
14702 # If we have the shared liblockfile, assume we must use it for mail
14703 # locking (e.g. Debian). If we couldn't link against liblockfile
14704 # (no liblockfile.a installed), ensure that we don't need to.
14705 if test "$ac_cv_lib_lockfile_maillock" = no; then
14706 # Extract the first word of "liblockfile.so", so it can be a program name with args.
14707 set dummy liblockfile.so; ac_word=$2
14708 echo "$as_me:$LINENO: checking for $ac_word" >&5
14709 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14710 if test "${ac_cv_prog_liblockfile+set}" = set; then
14711 echo $ECHO_N "(cached) $ECHO_C" >&6
14712 else
14713 if test -n "$liblockfile"; then
14714 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
14715 else
14716 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14717 as_dummy="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
14718 for as_dir in $as_dummy
14720 IFS=$as_save_IFS
14721 test -z "$as_dir" && as_dir=.
14722 for ac_exec_ext in '' $ac_executable_extensions; do
14723 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14724 ac_cv_prog_liblockfile="yes"
14725 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14726 break 2
14728 done
14729 done
14731 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no"
14734 liblockfile=$ac_cv_prog_liblockfile
14735 if test -n "$liblockfile"; then
14736 echo "$as_me:$LINENO: result: $liblockfile" >&5
14737 echo "${ECHO_T}$liblockfile" >&6
14738 else
14739 echo "$as_me:$LINENO: result: no" >&5
14740 echo "${ECHO_T}no" >&6
14743 if test $ac_cv_prog_liblockfile = yes; then
14744 { { echo "$as_me:$LINENO: error: Shared liblockfile found but can't link against it.
14745 This probably means that movemail could lose mail.
14746 There may be a \`development' package to install containing liblockfile." >&5
14747 echo "$as_me: error: Shared liblockfile found but can't link against it.
14748 This probably means that movemail could lose mail.
14749 There may be a \`development' package to install containing liblockfile." >&2;}
14750 { (exit 1); exit 1; }; }
14751 else :
14755 for ac_func in touchlock
14757 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14758 echo "$as_me:$LINENO: checking for $ac_func" >&5
14759 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14760 if eval "test \"\${$as_ac_var+set}\" = set"; then
14761 echo $ECHO_N "(cached) $ECHO_C" >&6
14762 else
14763 cat >conftest.$ac_ext <<_ACEOF
14764 /* confdefs.h. */
14765 _ACEOF
14766 cat confdefs.h >>conftest.$ac_ext
14767 cat >>conftest.$ac_ext <<_ACEOF
14768 /* end confdefs.h. */
14769 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14770 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14771 #define $ac_func innocuous_$ac_func
14773 /* System header to define __stub macros and hopefully few prototypes,
14774 which can conflict with char $ac_func (); below.
14775 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14776 <limits.h> exists even on freestanding compilers. */
14778 #ifdef __STDC__
14779 # include <limits.h>
14780 #else
14781 # include <assert.h>
14782 #endif
14784 #undef $ac_func
14786 /* Override any gcc2 internal prototype to avoid an error. */
14787 #ifdef __cplusplus
14788 extern "C"
14790 #endif
14791 /* We use char because int might match the return type of a gcc2
14792 builtin and then its argument prototype would still apply. */
14793 char $ac_func ();
14794 /* The GNU C library defines this for functions which it implements
14795 to always fail with ENOSYS. Some functions are actually named
14796 something starting with __ and the normal name is an alias. */
14797 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14798 choke me
14799 #else
14800 char (*f) () = $ac_func;
14801 #endif
14802 #ifdef __cplusplus
14804 #endif
14807 main ()
14809 return f != $ac_func;
14811 return 0;
14813 _ACEOF
14814 rm -f conftest.$ac_objext conftest$ac_exeext
14815 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14816 (eval $ac_link) 2>conftest.er1
14817 ac_status=$?
14818 grep -v '^ *+' conftest.er1 >conftest.err
14819 rm -f conftest.er1
14820 cat conftest.err >&5
14821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14822 (exit $ac_status); } &&
14823 { ac_try='test -z "$ac_c_werror_flag"
14824 || test ! -s conftest.err'
14825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14826 (eval $ac_try) 2>&5
14827 ac_status=$?
14828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14829 (exit $ac_status); }; } &&
14830 { ac_try='test -s conftest$ac_exeext'
14831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14832 (eval $ac_try) 2>&5
14833 ac_status=$?
14834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14835 (exit $ac_status); }; }; then
14836 eval "$as_ac_var=yes"
14837 else
14838 echo "$as_me: failed program was:" >&5
14839 sed 's/^/| /' conftest.$ac_ext >&5
14841 eval "$as_ac_var=no"
14843 rm -f conftest.err conftest.$ac_objext \
14844 conftest$ac_exeext conftest.$ac_ext
14846 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14847 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14848 if test `eval echo '${'$as_ac_var'}'` = yes; then
14849 cat >>confdefs.h <<_ACEOF
14850 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14851 _ACEOF
14854 done
14857 for ac_header in maillock.h
14859 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14860 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14861 echo "$as_me:$LINENO: checking for $ac_header" >&5
14862 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14863 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14864 echo $ECHO_N "(cached) $ECHO_C" >&6
14866 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14867 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14868 else
14869 # Is the header compilable?
14870 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14871 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14872 cat >conftest.$ac_ext <<_ACEOF
14873 /* confdefs.h. */
14874 _ACEOF
14875 cat confdefs.h >>conftest.$ac_ext
14876 cat >>conftest.$ac_ext <<_ACEOF
14877 /* end confdefs.h. */
14878 $ac_includes_default
14879 #include <$ac_header>
14880 _ACEOF
14881 rm -f conftest.$ac_objext
14882 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14883 (eval $ac_compile) 2>conftest.er1
14884 ac_status=$?
14885 grep -v '^ *+' conftest.er1 >conftest.err
14886 rm -f conftest.er1
14887 cat conftest.err >&5
14888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14889 (exit $ac_status); } &&
14890 { ac_try='test -z "$ac_c_werror_flag"
14891 || test ! -s conftest.err'
14892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14893 (eval $ac_try) 2>&5
14894 ac_status=$?
14895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14896 (exit $ac_status); }; } &&
14897 { ac_try='test -s conftest.$ac_objext'
14898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14899 (eval $ac_try) 2>&5
14900 ac_status=$?
14901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14902 (exit $ac_status); }; }; then
14903 ac_header_compiler=yes
14904 else
14905 echo "$as_me: failed program was:" >&5
14906 sed 's/^/| /' conftest.$ac_ext >&5
14908 ac_header_compiler=no
14910 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14911 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14912 echo "${ECHO_T}$ac_header_compiler" >&6
14914 # Is the header present?
14915 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14916 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14917 cat >conftest.$ac_ext <<_ACEOF
14918 /* confdefs.h. */
14919 _ACEOF
14920 cat confdefs.h >>conftest.$ac_ext
14921 cat >>conftest.$ac_ext <<_ACEOF
14922 /* end confdefs.h. */
14923 #include <$ac_header>
14924 _ACEOF
14925 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14926 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14927 ac_status=$?
14928 grep -v '^ *+' conftest.er1 >conftest.err
14929 rm -f conftest.er1
14930 cat conftest.err >&5
14931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14932 (exit $ac_status); } >/dev/null; then
14933 if test -s conftest.err; then
14934 ac_cpp_err=$ac_c_preproc_warn_flag
14935 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14936 else
14937 ac_cpp_err=
14939 else
14940 ac_cpp_err=yes
14942 if test -z "$ac_cpp_err"; then
14943 ac_header_preproc=yes
14944 else
14945 echo "$as_me: failed program was:" >&5
14946 sed 's/^/| /' conftest.$ac_ext >&5
14948 ac_header_preproc=no
14950 rm -f conftest.err conftest.$ac_ext
14951 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14952 echo "${ECHO_T}$ac_header_preproc" >&6
14954 # So? What about this header?
14955 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14956 yes:no: )
14957 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14958 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14959 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14960 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14961 ac_header_preproc=yes
14963 no:yes:* )
14964 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14965 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14966 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14967 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14968 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14969 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14970 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14971 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14972 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14973 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14974 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14975 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14977 cat <<\_ASBOX
14978 ## ------------------------------------------ ##
14979 ## Report this to the AC_PACKAGE_NAME lists. ##
14980 ## ------------------------------------------ ##
14981 _ASBOX
14983 sed "s/^/$as_me: WARNING: /" >&2
14985 esac
14986 echo "$as_me:$LINENO: checking for $ac_header" >&5
14987 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14988 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14989 echo $ECHO_N "(cached) $ECHO_C" >&6
14990 else
14991 eval "$as_ac_Header=\$ac_header_preproc"
14993 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14994 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14997 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14998 cat >>confdefs.h <<_ACEOF
14999 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15000 _ACEOF
15004 done
15075 for ac_func in gethostname getdomainname dup2 \
15076 rename closedir mkdir rmdir sysinfo getrusage get_current_dir_name \
15077 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime res_init setsid \
15078 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \
15079 utimes setrlimit setpgid getcwd getwd shutdown getaddrinfo \
15080 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
15081 sendto recvfrom getsockopt setsockopt getsockname getpeername \
15082 gai_strerror mkstemp getline getdelim mremap memmove fsync bzero \
15083 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign
15085 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15086 echo "$as_me:$LINENO: checking for $ac_func" >&5
15087 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15088 if eval "test \"\${$as_ac_var+set}\" = set"; then
15089 echo $ECHO_N "(cached) $ECHO_C" >&6
15090 else
15091 cat >conftest.$ac_ext <<_ACEOF
15092 /* confdefs.h. */
15093 _ACEOF
15094 cat confdefs.h >>conftest.$ac_ext
15095 cat >>conftest.$ac_ext <<_ACEOF
15096 /* end confdefs.h. */
15097 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15098 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15099 #define $ac_func innocuous_$ac_func
15101 /* System header to define __stub macros and hopefully few prototypes,
15102 which can conflict with char $ac_func (); below.
15103 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15104 <limits.h> exists even on freestanding compilers. */
15106 #ifdef __STDC__
15107 # include <limits.h>
15108 #else
15109 # include <assert.h>
15110 #endif
15112 #undef $ac_func
15114 /* Override any gcc2 internal prototype to avoid an error. */
15115 #ifdef __cplusplus
15116 extern "C"
15118 #endif
15119 /* We use char because int might match the return type of a gcc2
15120 builtin and then its argument prototype would still apply. */
15121 char $ac_func ();
15122 /* The GNU C library defines this for functions which it implements
15123 to always fail with ENOSYS. Some functions are actually named
15124 something starting with __ and the normal name is an alias. */
15125 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15126 choke me
15127 #else
15128 char (*f) () = $ac_func;
15129 #endif
15130 #ifdef __cplusplus
15132 #endif
15135 main ()
15137 return f != $ac_func;
15139 return 0;
15141 _ACEOF
15142 rm -f conftest.$ac_objext conftest$ac_exeext
15143 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15144 (eval $ac_link) 2>conftest.er1
15145 ac_status=$?
15146 grep -v '^ *+' conftest.er1 >conftest.err
15147 rm -f conftest.er1
15148 cat conftest.err >&5
15149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15150 (exit $ac_status); } &&
15151 { ac_try='test -z "$ac_c_werror_flag"
15152 || test ! -s conftest.err'
15153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15154 (eval $ac_try) 2>&5
15155 ac_status=$?
15156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15157 (exit $ac_status); }; } &&
15158 { ac_try='test -s conftest$ac_exeext'
15159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15160 (eval $ac_try) 2>&5
15161 ac_status=$?
15162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15163 (exit $ac_status); }; }; then
15164 eval "$as_ac_var=yes"
15165 else
15166 echo "$as_me: failed program was:" >&5
15167 sed 's/^/| /' conftest.$ac_ext >&5
15169 eval "$as_ac_var=no"
15171 rm -f conftest.err conftest.$ac_objext \
15172 conftest$ac_exeext conftest.$ac_ext
15174 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15175 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15176 if test `eval echo '${'$as_ac_var'}'` = yes; then
15177 cat >>confdefs.h <<_ACEOF
15178 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15179 _ACEOF
15182 done
15186 for ac_header in sys/un.h
15188 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15189 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15190 echo "$as_me:$LINENO: checking for $ac_header" >&5
15191 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15192 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15193 echo $ECHO_N "(cached) $ECHO_C" >&6
15195 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15196 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15197 else
15198 # Is the header compilable?
15199 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15200 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15201 cat >conftest.$ac_ext <<_ACEOF
15202 /* confdefs.h. */
15203 _ACEOF
15204 cat confdefs.h >>conftest.$ac_ext
15205 cat >>conftest.$ac_ext <<_ACEOF
15206 /* end confdefs.h. */
15207 $ac_includes_default
15208 #include <$ac_header>
15209 _ACEOF
15210 rm -f conftest.$ac_objext
15211 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15212 (eval $ac_compile) 2>conftest.er1
15213 ac_status=$?
15214 grep -v '^ *+' conftest.er1 >conftest.err
15215 rm -f conftest.er1
15216 cat conftest.err >&5
15217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15218 (exit $ac_status); } &&
15219 { ac_try='test -z "$ac_c_werror_flag"
15220 || test ! -s conftest.err'
15221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15222 (eval $ac_try) 2>&5
15223 ac_status=$?
15224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15225 (exit $ac_status); }; } &&
15226 { ac_try='test -s conftest.$ac_objext'
15227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15228 (eval $ac_try) 2>&5
15229 ac_status=$?
15230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15231 (exit $ac_status); }; }; then
15232 ac_header_compiler=yes
15233 else
15234 echo "$as_me: failed program was:" >&5
15235 sed 's/^/| /' conftest.$ac_ext >&5
15237 ac_header_compiler=no
15239 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15240 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15241 echo "${ECHO_T}$ac_header_compiler" >&6
15243 # Is the header present?
15244 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15245 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15246 cat >conftest.$ac_ext <<_ACEOF
15247 /* confdefs.h. */
15248 _ACEOF
15249 cat confdefs.h >>conftest.$ac_ext
15250 cat >>conftest.$ac_ext <<_ACEOF
15251 /* end confdefs.h. */
15252 #include <$ac_header>
15253 _ACEOF
15254 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15255 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15256 ac_status=$?
15257 grep -v '^ *+' conftest.er1 >conftest.err
15258 rm -f conftest.er1
15259 cat conftest.err >&5
15260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15261 (exit $ac_status); } >/dev/null; then
15262 if test -s conftest.err; then
15263 ac_cpp_err=$ac_c_preproc_warn_flag
15264 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15265 else
15266 ac_cpp_err=
15268 else
15269 ac_cpp_err=yes
15271 if test -z "$ac_cpp_err"; then
15272 ac_header_preproc=yes
15273 else
15274 echo "$as_me: failed program was:" >&5
15275 sed 's/^/| /' conftest.$ac_ext >&5
15277 ac_header_preproc=no
15279 rm -f conftest.err conftest.$ac_ext
15280 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15281 echo "${ECHO_T}$ac_header_preproc" >&6
15283 # So? What about this header?
15284 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15285 yes:no: )
15286 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15287 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15288 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15289 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15290 ac_header_preproc=yes
15292 no:yes:* )
15293 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15294 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15295 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15296 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15297 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15298 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15299 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15300 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15301 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15302 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15303 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15304 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15306 cat <<\_ASBOX
15307 ## ------------------------------------------ ##
15308 ## Report this to the AC_PACKAGE_NAME lists. ##
15309 ## ------------------------------------------ ##
15310 _ASBOX
15312 sed "s/^/$as_me: WARNING: /" >&2
15314 esac
15315 echo "$as_me:$LINENO: checking for $ac_header" >&5
15316 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15317 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15318 echo $ECHO_N "(cached) $ECHO_C" >&6
15319 else
15320 eval "$as_ac_Header=\$ac_header_preproc"
15322 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15323 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15326 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15327 cat >>confdefs.h <<_ACEOF
15328 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15329 _ACEOF
15333 done
15339 for ac_header in stdlib.h sys/time.h unistd.h
15341 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15342 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15343 echo "$as_me:$LINENO: checking for $ac_header" >&5
15344 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15345 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15346 echo $ECHO_N "(cached) $ECHO_C" >&6
15348 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15349 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15350 else
15351 # Is the header compilable?
15352 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15353 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15354 cat >conftest.$ac_ext <<_ACEOF
15355 /* confdefs.h. */
15356 _ACEOF
15357 cat confdefs.h >>conftest.$ac_ext
15358 cat >>conftest.$ac_ext <<_ACEOF
15359 /* end confdefs.h. */
15360 $ac_includes_default
15361 #include <$ac_header>
15362 _ACEOF
15363 rm -f conftest.$ac_objext
15364 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15365 (eval $ac_compile) 2>conftest.er1
15366 ac_status=$?
15367 grep -v '^ *+' conftest.er1 >conftest.err
15368 rm -f conftest.er1
15369 cat conftest.err >&5
15370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15371 (exit $ac_status); } &&
15372 { ac_try='test -z "$ac_c_werror_flag"
15373 || test ! -s conftest.err'
15374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15375 (eval $ac_try) 2>&5
15376 ac_status=$?
15377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15378 (exit $ac_status); }; } &&
15379 { ac_try='test -s conftest.$ac_objext'
15380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15381 (eval $ac_try) 2>&5
15382 ac_status=$?
15383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15384 (exit $ac_status); }; }; then
15385 ac_header_compiler=yes
15386 else
15387 echo "$as_me: failed program was:" >&5
15388 sed 's/^/| /' conftest.$ac_ext >&5
15390 ac_header_compiler=no
15392 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15393 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15394 echo "${ECHO_T}$ac_header_compiler" >&6
15396 # Is the header present?
15397 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15398 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15399 cat >conftest.$ac_ext <<_ACEOF
15400 /* confdefs.h. */
15401 _ACEOF
15402 cat confdefs.h >>conftest.$ac_ext
15403 cat >>conftest.$ac_ext <<_ACEOF
15404 /* end confdefs.h. */
15405 #include <$ac_header>
15406 _ACEOF
15407 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15408 (eval $ac_cpp conftest.$ac_ext) 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); } >/dev/null; then
15415 if test -s conftest.err; then
15416 ac_cpp_err=$ac_c_preproc_warn_flag
15417 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15418 else
15419 ac_cpp_err=
15421 else
15422 ac_cpp_err=yes
15424 if test -z "$ac_cpp_err"; then
15425 ac_header_preproc=yes
15426 else
15427 echo "$as_me: failed program was:" >&5
15428 sed 's/^/| /' conftest.$ac_ext >&5
15430 ac_header_preproc=no
15432 rm -f conftest.err conftest.$ac_ext
15433 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15434 echo "${ECHO_T}$ac_header_preproc" >&6
15436 # So? What about this header?
15437 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15438 yes:no: )
15439 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15440 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15441 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15442 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15443 ac_header_preproc=yes
15445 no:yes:* )
15446 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15447 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15448 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15449 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15450 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15451 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15452 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15453 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15454 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15455 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15456 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15457 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15459 cat <<\_ASBOX
15460 ## ------------------------------------------ ##
15461 ## Report this to the AC_PACKAGE_NAME lists. ##
15462 ## ------------------------------------------ ##
15463 _ASBOX
15465 sed "s/^/$as_me: WARNING: /" >&2
15467 esac
15468 echo "$as_me:$LINENO: checking for $ac_header" >&5
15469 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15470 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15471 echo $ECHO_N "(cached) $ECHO_C" >&6
15472 else
15473 eval "$as_ac_Header=\$ac_header_preproc"
15475 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15476 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15479 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15480 cat >>confdefs.h <<_ACEOF
15481 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15482 _ACEOF
15486 done
15489 for ac_func in alarm
15491 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15492 echo "$as_me:$LINENO: checking for $ac_func" >&5
15493 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15494 if eval "test \"\${$as_ac_var+set}\" = set"; then
15495 echo $ECHO_N "(cached) $ECHO_C" >&6
15496 else
15497 cat >conftest.$ac_ext <<_ACEOF
15498 /* confdefs.h. */
15499 _ACEOF
15500 cat confdefs.h >>conftest.$ac_ext
15501 cat >>conftest.$ac_ext <<_ACEOF
15502 /* end confdefs.h. */
15503 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15504 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15505 #define $ac_func innocuous_$ac_func
15507 /* System header to define __stub macros and hopefully few prototypes,
15508 which can conflict with char $ac_func (); below.
15509 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15510 <limits.h> exists even on freestanding compilers. */
15512 #ifdef __STDC__
15513 # include <limits.h>
15514 #else
15515 # include <assert.h>
15516 #endif
15518 #undef $ac_func
15520 /* Override any gcc2 internal prototype to avoid an error. */
15521 #ifdef __cplusplus
15522 extern "C"
15524 #endif
15525 /* We use char because int might match the return type of a gcc2
15526 builtin and then its argument prototype would still apply. */
15527 char $ac_func ();
15528 /* The GNU C library defines this for functions which it implements
15529 to always fail with ENOSYS. Some functions are actually named
15530 something starting with __ and the normal name is an alias. */
15531 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15532 choke me
15533 #else
15534 char (*f) () = $ac_func;
15535 #endif
15536 #ifdef __cplusplus
15538 #endif
15541 main ()
15543 return f != $ac_func;
15545 return 0;
15547 _ACEOF
15548 rm -f conftest.$ac_objext conftest$ac_exeext
15549 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15550 (eval $ac_link) 2>conftest.er1
15551 ac_status=$?
15552 grep -v '^ *+' conftest.er1 >conftest.err
15553 rm -f conftest.er1
15554 cat conftest.err >&5
15555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15556 (exit $ac_status); } &&
15557 { ac_try='test -z "$ac_c_werror_flag"
15558 || test ! -s conftest.err'
15559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15560 (eval $ac_try) 2>&5
15561 ac_status=$?
15562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15563 (exit $ac_status); }; } &&
15564 { ac_try='test -s conftest$ac_exeext'
15565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15566 (eval $ac_try) 2>&5
15567 ac_status=$?
15568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15569 (exit $ac_status); }; }; then
15570 eval "$as_ac_var=yes"
15571 else
15572 echo "$as_me: failed program was:" >&5
15573 sed 's/^/| /' conftest.$ac_ext >&5
15575 eval "$as_ac_var=no"
15577 rm -f conftest.err conftest.$ac_objext \
15578 conftest$ac_exeext conftest.$ac_ext
15580 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15581 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15582 if test `eval echo '${'$as_ac_var'}'` = yes; then
15583 cat >>confdefs.h <<_ACEOF
15584 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15585 _ACEOF
15588 done
15590 echo "$as_me:$LINENO: checking for working mktime" >&5
15591 echo $ECHO_N "checking for working mktime... $ECHO_C" >&6
15592 if test "${ac_cv_func_working_mktime+set}" = set; then
15593 echo $ECHO_N "(cached) $ECHO_C" >&6
15594 else
15595 if test "$cross_compiling" = yes; then
15596 ac_cv_func_working_mktime=no
15597 else
15598 cat >conftest.$ac_ext <<_ACEOF
15599 /* confdefs.h. */
15600 _ACEOF
15601 cat confdefs.h >>conftest.$ac_ext
15602 cat >>conftest.$ac_ext <<_ACEOF
15603 /* end confdefs.h. */
15604 /* Test program from Paul Eggert and Tony Leneis. */
15605 #if TIME_WITH_SYS_TIME
15606 # include <sys/time.h>
15607 # include <time.h>
15608 #else
15609 # if HAVE_SYS_TIME_H
15610 # include <sys/time.h>
15611 # else
15612 # include <time.h>
15613 # endif
15614 #endif
15616 #if HAVE_STDLIB_H
15617 # include <stdlib.h>
15618 #endif
15620 #if HAVE_UNISTD_H
15621 # include <unistd.h>
15622 #endif
15624 #if !HAVE_ALARM
15625 # define alarm(X) /* empty */
15626 #endif
15628 /* Work around redefinition to rpl_putenv by other config tests. */
15629 #undef putenv
15631 static time_t time_t_max;
15632 static time_t time_t_min;
15634 /* Values we'll use to set the TZ environment variable. */
15635 static char *tz_strings[] = {
15636 (char *) 0, "TZ=GMT0", "TZ=JST-9",
15637 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
15639 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
15641 /* Fail if mktime fails to convert a date in the spring-forward gap.
15642 Based on a problem report from Andreas Jaeger. */
15643 static void
15644 spring_forward_gap ()
15646 /* glibc (up to about 1998-10-07) failed this test. */
15647 struct tm tm;
15649 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
15650 instead of "TZ=America/Vancouver" in order to detect the bug even
15651 on systems that don't support the Olson extension, or don't have the
15652 full zoneinfo tables installed. */
15653 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
15655 tm.tm_year = 98;
15656 tm.tm_mon = 3;
15657 tm.tm_mday = 5;
15658 tm.tm_hour = 2;
15659 tm.tm_min = 0;
15660 tm.tm_sec = 0;
15661 tm.tm_isdst = -1;
15662 if (mktime (&tm) == (time_t)-1)
15663 exit (1);
15666 static void
15667 mktime_test1 (now)
15668 time_t now;
15670 struct tm *lt;
15671 if ((lt = localtime (&now)) && mktime (lt) != now)
15672 exit (1);
15675 static void
15676 mktime_test (now)
15677 time_t now;
15679 mktime_test1 (now);
15680 mktime_test1 ((time_t) (time_t_max - now));
15681 mktime_test1 ((time_t) (time_t_min + now));
15684 static void
15685 irix_6_4_bug ()
15687 /* Based on code from Ariel Faigon. */
15688 struct tm tm;
15689 tm.tm_year = 96;
15690 tm.tm_mon = 3;
15691 tm.tm_mday = 0;
15692 tm.tm_hour = 0;
15693 tm.tm_min = 0;
15694 tm.tm_sec = 0;
15695 tm.tm_isdst = -1;
15696 mktime (&tm);
15697 if (tm.tm_mon != 2 || tm.tm_mday != 31)
15698 exit (1);
15701 static void
15702 bigtime_test (j)
15703 int j;
15705 struct tm tm;
15706 time_t now;
15707 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
15708 now = mktime (&tm);
15709 if (now != (time_t) -1)
15711 struct tm *lt = localtime (&now);
15712 if (! (lt
15713 && lt->tm_year == tm.tm_year
15714 && lt->tm_mon == tm.tm_mon
15715 && lt->tm_mday == tm.tm_mday
15716 && lt->tm_hour == tm.tm_hour
15717 && lt->tm_min == tm.tm_min
15718 && lt->tm_sec == tm.tm_sec
15719 && lt->tm_yday == tm.tm_yday
15720 && lt->tm_wday == tm.tm_wday
15721 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
15722 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
15723 exit (1);
15728 main ()
15730 time_t t, delta;
15731 int i, j;
15733 /* This test makes some buggy mktime implementations loop.
15734 Give up after 60 seconds; a mktime slower than that
15735 isn't worth using anyway. */
15736 alarm (60);
15738 for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
15739 continue;
15740 time_t_max--;
15741 if ((time_t) -1 < 0)
15742 for (time_t_min = -1; (time_t) (time_t_min * 2) < 0; time_t_min *= 2)
15743 continue;
15744 delta = time_t_max / 997; /* a suitable prime number */
15745 for (i = 0; i < N_STRINGS; i++)
15747 if (tz_strings[i])
15748 putenv (tz_strings[i]);
15750 for (t = 0; t <= time_t_max - delta; t += delta)
15751 mktime_test (t);
15752 mktime_test ((time_t) 1);
15753 mktime_test ((time_t) (60 * 60));
15754 mktime_test ((time_t) (60 * 60 * 24));
15756 for (j = 1; 0 < j; j *= 2)
15757 bigtime_test (j);
15758 bigtime_test (j - 1);
15760 irix_6_4_bug ();
15761 spring_forward_gap ();
15762 exit (0);
15764 _ACEOF
15765 rm -f conftest$ac_exeext
15766 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15767 (eval $ac_link) 2>&5
15768 ac_status=$?
15769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15770 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15772 (eval $ac_try) 2>&5
15773 ac_status=$?
15774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15775 (exit $ac_status); }; }; then
15776 ac_cv_func_working_mktime=yes
15777 else
15778 echo "$as_me: program exited with status $ac_status" >&5
15779 echo "$as_me: failed program was:" >&5
15780 sed 's/^/| /' conftest.$ac_ext >&5
15782 ( exit $ac_status )
15783 ac_cv_func_working_mktime=no
15785 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15788 echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
15789 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6
15790 if test $ac_cv_func_working_mktime = no; then
15791 case $LIBOBJS in
15792 "mktime.$ac_objext" | \
15793 *" mktime.$ac_objext" | \
15794 "mktime.$ac_objext "* | \
15795 *" mktime.$ac_objext "* ) ;;
15796 *) LIBOBJS="$LIBOBJS mktime.$ac_objext" ;;
15797 esac
15801 if test "$ac_cv_func_working_mktime" = no; then
15803 cat >>confdefs.h <<\_ACEOF
15804 #define BROKEN_MKTIME 1
15805 _ACEOF
15809 ac_have_func=no # yes means we've found a way to get the load average.
15811 # Make sure getloadavg.c is where it belongs, at configure-time.
15812 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" ||
15813 { { echo "$as_me:$LINENO: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&5
15814 echo "$as_me: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&2;}
15815 { (exit 1); exit 1; }; }
15817 ac_save_LIBS=$LIBS
15819 # Check for getloadavg, but be sure not to touch the cache variable.
15820 (echo "$as_me:$LINENO: checking for getloadavg" >&5
15821 echo $ECHO_N "checking for getloadavg... $ECHO_C" >&6
15822 if test "${ac_cv_func_getloadavg+set}" = set; then
15823 echo $ECHO_N "(cached) $ECHO_C" >&6
15824 else
15825 cat >conftest.$ac_ext <<_ACEOF
15826 /* confdefs.h. */
15827 _ACEOF
15828 cat confdefs.h >>conftest.$ac_ext
15829 cat >>conftest.$ac_ext <<_ACEOF
15830 /* end confdefs.h. */
15831 /* Define getloadavg to an innocuous variant, in case <limits.h> declares getloadavg.
15832 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15833 #define getloadavg innocuous_getloadavg
15835 /* System header to define __stub macros and hopefully few prototypes,
15836 which can conflict with char getloadavg (); below.
15837 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15838 <limits.h> exists even on freestanding compilers. */
15840 #ifdef __STDC__
15841 # include <limits.h>
15842 #else
15843 # include <assert.h>
15844 #endif
15846 #undef getloadavg
15848 /* Override any gcc2 internal prototype to avoid an error. */
15849 #ifdef __cplusplus
15850 extern "C"
15852 #endif
15853 /* We use char because int might match the return type of a gcc2
15854 builtin and then its argument prototype would still apply. */
15855 char getloadavg ();
15856 /* The GNU C library defines this for functions which it implements
15857 to always fail with ENOSYS. Some functions are actually named
15858 something starting with __ and the normal name is an alias. */
15859 #if defined (__stub_getloadavg) || defined (__stub___getloadavg)
15860 choke me
15861 #else
15862 char (*f) () = getloadavg;
15863 #endif
15864 #ifdef __cplusplus
15866 #endif
15869 main ()
15871 return f != getloadavg;
15873 return 0;
15875 _ACEOF
15876 rm -f conftest.$ac_objext conftest$ac_exeext
15877 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15878 (eval $ac_link) 2>conftest.er1
15879 ac_status=$?
15880 grep -v '^ *+' conftest.er1 >conftest.err
15881 rm -f conftest.er1
15882 cat conftest.err >&5
15883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15884 (exit $ac_status); } &&
15885 { ac_try='test -z "$ac_c_werror_flag"
15886 || test ! -s conftest.err'
15887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15888 (eval $ac_try) 2>&5
15889 ac_status=$?
15890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15891 (exit $ac_status); }; } &&
15892 { ac_try='test -s conftest$ac_exeext'
15893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15894 (eval $ac_try) 2>&5
15895 ac_status=$?
15896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15897 (exit $ac_status); }; }; then
15898 ac_cv_func_getloadavg=yes
15899 else
15900 echo "$as_me: failed program was:" >&5
15901 sed 's/^/| /' conftest.$ac_ext >&5
15903 ac_cv_func_getloadavg=no
15905 rm -f conftest.err conftest.$ac_objext \
15906 conftest$ac_exeext conftest.$ac_ext
15908 echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg" >&5
15909 echo "${ECHO_T}$ac_cv_func_getloadavg" >&6
15910 if test $ac_cv_func_getloadavg = yes; then
15911 exit 0
15912 else
15913 exit 1
15915 ) && ac_have_func=yes
15917 # On HPUX9, an unprivileged user can get load averages through this function.
15919 for ac_func in pstat_getdynamic
15921 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15922 echo "$as_me:$LINENO: checking for $ac_func" >&5
15923 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15924 if eval "test \"\${$as_ac_var+set}\" = set"; then
15925 echo $ECHO_N "(cached) $ECHO_C" >&6
15926 else
15927 cat >conftest.$ac_ext <<_ACEOF
15928 /* confdefs.h. */
15929 _ACEOF
15930 cat confdefs.h >>conftest.$ac_ext
15931 cat >>conftest.$ac_ext <<_ACEOF
15932 /* end confdefs.h. */
15933 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15934 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15935 #define $ac_func innocuous_$ac_func
15937 /* System header to define __stub macros and hopefully few prototypes,
15938 which can conflict with char $ac_func (); below.
15939 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15940 <limits.h> exists even on freestanding compilers. */
15942 #ifdef __STDC__
15943 # include <limits.h>
15944 #else
15945 # include <assert.h>
15946 #endif
15948 #undef $ac_func
15950 /* Override any gcc2 internal prototype to avoid an error. */
15951 #ifdef __cplusplus
15952 extern "C"
15954 #endif
15955 /* We use char because int might match the return type of a gcc2
15956 builtin and then its argument prototype would still apply. */
15957 char $ac_func ();
15958 /* The GNU C library defines this for functions which it implements
15959 to always fail with ENOSYS. Some functions are actually named
15960 something starting with __ and the normal name is an alias. */
15961 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15962 choke me
15963 #else
15964 char (*f) () = $ac_func;
15965 #endif
15966 #ifdef __cplusplus
15968 #endif
15971 main ()
15973 return f != $ac_func;
15975 return 0;
15977 _ACEOF
15978 rm -f conftest.$ac_objext conftest$ac_exeext
15979 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15980 (eval $ac_link) 2>conftest.er1
15981 ac_status=$?
15982 grep -v '^ *+' conftest.er1 >conftest.err
15983 rm -f conftest.er1
15984 cat conftest.err >&5
15985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15986 (exit $ac_status); } &&
15987 { ac_try='test -z "$ac_c_werror_flag"
15988 || test ! -s conftest.err'
15989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15990 (eval $ac_try) 2>&5
15991 ac_status=$?
15992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15993 (exit $ac_status); }; } &&
15994 { ac_try='test -s conftest$ac_exeext'
15995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15996 (eval $ac_try) 2>&5
15997 ac_status=$?
15998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15999 (exit $ac_status); }; }; then
16000 eval "$as_ac_var=yes"
16001 else
16002 echo "$as_me: failed program was:" >&5
16003 sed 's/^/| /' conftest.$ac_ext >&5
16005 eval "$as_ac_var=no"
16007 rm -f conftest.err conftest.$ac_objext \
16008 conftest$ac_exeext conftest.$ac_ext
16010 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16011 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16012 if test `eval echo '${'$as_ac_var'}'` = yes; then
16013 cat >>confdefs.h <<_ACEOF
16014 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16015 _ACEOF
16018 done
16021 # Solaris has libkstat which does not require root.
16023 echo "$as_me:$LINENO: checking for kstat_open in -lkstat" >&5
16024 echo $ECHO_N "checking for kstat_open in -lkstat... $ECHO_C" >&6
16025 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
16026 echo $ECHO_N "(cached) $ECHO_C" >&6
16027 else
16028 ac_check_lib_save_LIBS=$LIBS
16029 LIBS="-lkstat $LIBS"
16030 cat >conftest.$ac_ext <<_ACEOF
16031 /* confdefs.h. */
16032 _ACEOF
16033 cat confdefs.h >>conftest.$ac_ext
16034 cat >>conftest.$ac_ext <<_ACEOF
16035 /* end confdefs.h. */
16037 /* Override any gcc2 internal prototype to avoid an error. */
16038 #ifdef __cplusplus
16039 extern "C"
16040 #endif
16041 /* We use char because int might match the return type of a gcc2
16042 builtin and then its argument prototype would still apply. */
16043 char kstat_open ();
16045 main ()
16047 kstat_open ();
16049 return 0;
16051 _ACEOF
16052 rm -f conftest.$ac_objext conftest$ac_exeext
16053 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16054 (eval $ac_link) 2>conftest.er1
16055 ac_status=$?
16056 grep -v '^ *+' conftest.er1 >conftest.err
16057 rm -f conftest.er1
16058 cat conftest.err >&5
16059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16060 (exit $ac_status); } &&
16061 { ac_try='test -z "$ac_c_werror_flag"
16062 || test ! -s conftest.err'
16063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16064 (eval $ac_try) 2>&5
16065 ac_status=$?
16066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16067 (exit $ac_status); }; } &&
16068 { ac_try='test -s conftest$ac_exeext'
16069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16070 (eval $ac_try) 2>&5
16071 ac_status=$?
16072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16073 (exit $ac_status); }; }; then
16074 ac_cv_lib_kstat_kstat_open=yes
16075 else
16076 echo "$as_me: failed program was:" >&5
16077 sed 's/^/| /' conftest.$ac_ext >&5
16079 ac_cv_lib_kstat_kstat_open=no
16081 rm -f conftest.err conftest.$ac_objext \
16082 conftest$ac_exeext conftest.$ac_ext
16083 LIBS=$ac_check_lib_save_LIBS
16085 echo "$as_me:$LINENO: result: $ac_cv_lib_kstat_kstat_open" >&5
16086 echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6
16087 if test $ac_cv_lib_kstat_kstat_open = yes; then
16088 cat >>confdefs.h <<_ACEOF
16089 #define HAVE_LIBKSTAT 1
16090 _ACEOF
16092 LIBS="-lkstat $LIBS"
16096 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes
16098 # Some systems with -lutil have (and need) -lkvm as well, some do not.
16099 # On Solaris, -lkvm requires nlist from -lelf, so check that first
16100 # to get the right answer into the cache.
16101 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
16102 if test $ac_have_func = no; then
16103 echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
16104 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
16105 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
16106 echo $ECHO_N "(cached) $ECHO_C" >&6
16107 else
16108 ac_check_lib_save_LIBS=$LIBS
16109 LIBS="-lelf $LIBS"
16110 cat >conftest.$ac_ext <<_ACEOF
16111 /* confdefs.h. */
16112 _ACEOF
16113 cat confdefs.h >>conftest.$ac_ext
16114 cat >>conftest.$ac_ext <<_ACEOF
16115 /* end confdefs.h. */
16117 /* Override any gcc2 internal prototype to avoid an error. */
16118 #ifdef __cplusplus
16119 extern "C"
16120 #endif
16121 /* We use char because int might match the return type of a gcc2
16122 builtin and then its argument prototype would still apply. */
16123 char elf_begin ();
16125 main ()
16127 elf_begin ();
16129 return 0;
16131 _ACEOF
16132 rm -f conftest.$ac_objext conftest$ac_exeext
16133 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16134 (eval $ac_link) 2>conftest.er1
16135 ac_status=$?
16136 grep -v '^ *+' conftest.er1 >conftest.err
16137 rm -f conftest.er1
16138 cat conftest.err >&5
16139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16140 (exit $ac_status); } &&
16141 { ac_try='test -z "$ac_c_werror_flag"
16142 || test ! -s conftest.err'
16143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16144 (eval $ac_try) 2>&5
16145 ac_status=$?
16146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16147 (exit $ac_status); }; } &&
16148 { ac_try='test -s conftest$ac_exeext'
16149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16150 (eval $ac_try) 2>&5
16151 ac_status=$?
16152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16153 (exit $ac_status); }; }; then
16154 ac_cv_lib_elf_elf_begin=yes
16155 else
16156 echo "$as_me: failed program was:" >&5
16157 sed 's/^/| /' conftest.$ac_ext >&5
16159 ac_cv_lib_elf_elf_begin=no
16161 rm -f conftest.err conftest.$ac_objext \
16162 conftest$ac_exeext conftest.$ac_ext
16163 LIBS=$ac_check_lib_save_LIBS
16165 echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
16166 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
16167 if test $ac_cv_lib_elf_elf_begin = yes; then
16168 LIBS="-lelf $LIBS"
16172 if test $ac_have_func = no; then
16173 echo "$as_me:$LINENO: checking for kvm_open in -lkvm" >&5
16174 echo $ECHO_N "checking for kvm_open in -lkvm... $ECHO_C" >&6
16175 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
16176 echo $ECHO_N "(cached) $ECHO_C" >&6
16177 else
16178 ac_check_lib_save_LIBS=$LIBS
16179 LIBS="-lkvm $LIBS"
16180 cat >conftest.$ac_ext <<_ACEOF
16181 /* confdefs.h. */
16182 _ACEOF
16183 cat confdefs.h >>conftest.$ac_ext
16184 cat >>conftest.$ac_ext <<_ACEOF
16185 /* end confdefs.h. */
16187 /* Override any gcc2 internal prototype to avoid an error. */
16188 #ifdef __cplusplus
16189 extern "C"
16190 #endif
16191 /* We use char because int might match the return type of a gcc2
16192 builtin and then its argument prototype would still apply. */
16193 char kvm_open ();
16195 main ()
16197 kvm_open ();
16199 return 0;
16201 _ACEOF
16202 rm -f conftest.$ac_objext conftest$ac_exeext
16203 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16204 (eval $ac_link) 2>conftest.er1
16205 ac_status=$?
16206 grep -v '^ *+' conftest.er1 >conftest.err
16207 rm -f conftest.er1
16208 cat conftest.err >&5
16209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16210 (exit $ac_status); } &&
16211 { ac_try='test -z "$ac_c_werror_flag"
16212 || test ! -s conftest.err'
16213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16214 (eval $ac_try) 2>&5
16215 ac_status=$?
16216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16217 (exit $ac_status); }; } &&
16218 { ac_try='test -s conftest$ac_exeext'
16219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16220 (eval $ac_try) 2>&5
16221 ac_status=$?
16222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16223 (exit $ac_status); }; }; then
16224 ac_cv_lib_kvm_kvm_open=yes
16225 else
16226 echo "$as_me: failed program was:" >&5
16227 sed 's/^/| /' conftest.$ac_ext >&5
16229 ac_cv_lib_kvm_kvm_open=no
16231 rm -f conftest.err conftest.$ac_objext \
16232 conftest$ac_exeext conftest.$ac_ext
16233 LIBS=$ac_check_lib_save_LIBS
16235 echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_kvm_open" >&5
16236 echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6
16237 if test $ac_cv_lib_kvm_kvm_open = yes; then
16238 LIBS="-lkvm $LIBS"
16241 # Check for the 4.4BSD definition of getloadavg.
16242 echo "$as_me:$LINENO: checking for getloadavg in -lutil" >&5
16243 echo $ECHO_N "checking for getloadavg in -lutil... $ECHO_C" >&6
16244 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
16245 echo $ECHO_N "(cached) $ECHO_C" >&6
16246 else
16247 ac_check_lib_save_LIBS=$LIBS
16248 LIBS="-lutil $LIBS"
16249 cat >conftest.$ac_ext <<_ACEOF
16250 /* confdefs.h. */
16251 _ACEOF
16252 cat confdefs.h >>conftest.$ac_ext
16253 cat >>conftest.$ac_ext <<_ACEOF
16254 /* end confdefs.h. */
16256 /* Override any gcc2 internal prototype to avoid an error. */
16257 #ifdef __cplusplus
16258 extern "C"
16259 #endif
16260 /* We use char because int might match the return type of a gcc2
16261 builtin and then its argument prototype would still apply. */
16262 char getloadavg ();
16264 main ()
16266 getloadavg ();
16268 return 0;
16270 _ACEOF
16271 rm -f conftest.$ac_objext conftest$ac_exeext
16272 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16273 (eval $ac_link) 2>conftest.er1
16274 ac_status=$?
16275 grep -v '^ *+' conftest.er1 >conftest.err
16276 rm -f conftest.er1
16277 cat conftest.err >&5
16278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16279 (exit $ac_status); } &&
16280 { ac_try='test -z "$ac_c_werror_flag"
16281 || test ! -s conftest.err'
16282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16283 (eval $ac_try) 2>&5
16284 ac_status=$?
16285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16286 (exit $ac_status); }; } &&
16287 { ac_try='test -s conftest$ac_exeext'
16288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16289 (eval $ac_try) 2>&5
16290 ac_status=$?
16291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16292 (exit $ac_status); }; }; then
16293 ac_cv_lib_util_getloadavg=yes
16294 else
16295 echo "$as_me: failed program was:" >&5
16296 sed 's/^/| /' conftest.$ac_ext >&5
16298 ac_cv_lib_util_getloadavg=no
16300 rm -f conftest.err conftest.$ac_objext \
16301 conftest$ac_exeext conftest.$ac_ext
16302 LIBS=$ac_check_lib_save_LIBS
16304 echo "$as_me:$LINENO: result: $ac_cv_lib_util_getloadavg" >&5
16305 echo "${ECHO_T}$ac_cv_lib_util_getloadavg" >&6
16306 if test $ac_cv_lib_util_getloadavg = yes; then
16307 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
16312 if test $ac_have_func = no; then
16313 # There is a commonly available library for RS/6000 AIX.
16314 # Since it is not a standard part of AIX, it might be installed locally.
16315 ac_getloadavg_LIBS=$LIBS
16316 LIBS="-L/usr/local/lib $LIBS"
16317 echo "$as_me:$LINENO: checking for getloadavg in -lgetloadavg" >&5
16318 echo $ECHO_N "checking for getloadavg in -lgetloadavg... $ECHO_C" >&6
16319 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
16320 echo $ECHO_N "(cached) $ECHO_C" >&6
16321 else
16322 ac_check_lib_save_LIBS=$LIBS
16323 LIBS="-lgetloadavg $LIBS"
16324 cat >conftest.$ac_ext <<_ACEOF
16325 /* confdefs.h. */
16326 _ACEOF
16327 cat confdefs.h >>conftest.$ac_ext
16328 cat >>conftest.$ac_ext <<_ACEOF
16329 /* end confdefs.h. */
16331 /* Override any gcc2 internal prototype to avoid an error. */
16332 #ifdef __cplusplus
16333 extern "C"
16334 #endif
16335 /* We use char because int might match the return type of a gcc2
16336 builtin and then its argument prototype would still apply. */
16337 char getloadavg ();
16339 main ()
16341 getloadavg ();
16343 return 0;
16345 _ACEOF
16346 rm -f conftest.$ac_objext conftest$ac_exeext
16347 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16348 (eval $ac_link) 2>conftest.er1
16349 ac_status=$?
16350 grep -v '^ *+' conftest.er1 >conftest.err
16351 rm -f conftest.er1
16352 cat conftest.err >&5
16353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16354 (exit $ac_status); } &&
16355 { ac_try='test -z "$ac_c_werror_flag"
16356 || test ! -s conftest.err'
16357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16358 (eval $ac_try) 2>&5
16359 ac_status=$?
16360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16361 (exit $ac_status); }; } &&
16362 { ac_try='test -s conftest$ac_exeext'
16363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16364 (eval $ac_try) 2>&5
16365 ac_status=$?
16366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16367 (exit $ac_status); }; }; then
16368 ac_cv_lib_getloadavg_getloadavg=yes
16369 else
16370 echo "$as_me: failed program was:" >&5
16371 sed 's/^/| /' conftest.$ac_ext >&5
16373 ac_cv_lib_getloadavg_getloadavg=no
16375 rm -f conftest.err conftest.$ac_objext \
16376 conftest$ac_exeext conftest.$ac_ext
16377 LIBS=$ac_check_lib_save_LIBS
16379 echo "$as_me:$LINENO: result: $ac_cv_lib_getloadavg_getloadavg" >&5
16380 echo "${ECHO_T}$ac_cv_lib_getloadavg_getloadavg" >&6
16381 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
16382 LIBS="-lgetloadavg $LIBS"
16383 else
16384 LIBS=$ac_getloadavg_LIBS
16389 # Make sure it is really in the library, if we think we found it,
16390 # otherwise set up the replacement function.
16392 for ac_func in getloadavg
16394 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16395 echo "$as_me:$LINENO: checking for $ac_func" >&5
16396 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16397 if eval "test \"\${$as_ac_var+set}\" = set"; then
16398 echo $ECHO_N "(cached) $ECHO_C" >&6
16399 else
16400 cat >conftest.$ac_ext <<_ACEOF
16401 /* confdefs.h. */
16402 _ACEOF
16403 cat confdefs.h >>conftest.$ac_ext
16404 cat >>conftest.$ac_ext <<_ACEOF
16405 /* end confdefs.h. */
16406 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16407 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16408 #define $ac_func innocuous_$ac_func
16410 /* System header to define __stub macros and hopefully few prototypes,
16411 which can conflict with char $ac_func (); below.
16412 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16413 <limits.h> exists even on freestanding compilers. */
16415 #ifdef __STDC__
16416 # include <limits.h>
16417 #else
16418 # include <assert.h>
16419 #endif
16421 #undef $ac_func
16423 /* Override any gcc2 internal prototype to avoid an error. */
16424 #ifdef __cplusplus
16425 extern "C"
16427 #endif
16428 /* We use char because int might match the return type of a gcc2
16429 builtin and then its argument prototype would still apply. */
16430 char $ac_func ();
16431 /* The GNU C library defines this for functions which it implements
16432 to always fail with ENOSYS. Some functions are actually named
16433 something starting with __ and the normal name is an alias. */
16434 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16435 choke me
16436 #else
16437 char (*f) () = $ac_func;
16438 #endif
16439 #ifdef __cplusplus
16441 #endif
16444 main ()
16446 return f != $ac_func;
16448 return 0;
16450 _ACEOF
16451 rm -f conftest.$ac_objext conftest$ac_exeext
16452 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16453 (eval $ac_link) 2>conftest.er1
16454 ac_status=$?
16455 grep -v '^ *+' conftest.er1 >conftest.err
16456 rm -f conftest.er1
16457 cat conftest.err >&5
16458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16459 (exit $ac_status); } &&
16460 { ac_try='test -z "$ac_c_werror_flag"
16461 || test ! -s conftest.err'
16462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16463 (eval $ac_try) 2>&5
16464 ac_status=$?
16465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16466 (exit $ac_status); }; } &&
16467 { ac_try='test -s conftest$ac_exeext'
16468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16469 (eval $ac_try) 2>&5
16470 ac_status=$?
16471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16472 (exit $ac_status); }; }; then
16473 eval "$as_ac_var=yes"
16474 else
16475 echo "$as_me: failed program was:" >&5
16476 sed 's/^/| /' conftest.$ac_ext >&5
16478 eval "$as_ac_var=no"
16480 rm -f conftest.err conftest.$ac_objext \
16481 conftest$ac_exeext conftest.$ac_ext
16483 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16484 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16485 if test `eval echo '${'$as_ac_var'}'` = yes; then
16486 cat >>confdefs.h <<_ACEOF
16487 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16488 _ACEOF
16490 else
16491 case $LIBOBJS in
16492 "getloadavg.$ac_objext" | \
16493 *" getloadavg.$ac_objext" | \
16494 "getloadavg.$ac_objext "* | \
16495 *" getloadavg.$ac_objext "* ) ;;
16496 *) LIBOBJS="$LIBOBJS getloadavg.$ac_objext" ;;
16497 esac
16500 cat >>confdefs.h <<\_ACEOF
16501 #define C_GETLOADAVG 1
16502 _ACEOF
16504 # Figure out what our getloadavg.c needs.
16505 ac_have_func=no
16506 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
16507 echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
16508 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
16509 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
16510 echo $ECHO_N "(cached) $ECHO_C" >&6
16512 echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
16513 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
16514 else
16515 # Is the header compilable?
16516 echo "$as_me:$LINENO: checking sys/dg_sys_info.h usability" >&5
16517 echo $ECHO_N "checking sys/dg_sys_info.h usability... $ECHO_C" >&6
16518 cat >conftest.$ac_ext <<_ACEOF
16519 /* confdefs.h. */
16520 _ACEOF
16521 cat confdefs.h >>conftest.$ac_ext
16522 cat >>conftest.$ac_ext <<_ACEOF
16523 /* end confdefs.h. */
16524 $ac_includes_default
16525 #include <sys/dg_sys_info.h>
16526 _ACEOF
16527 rm -f conftest.$ac_objext
16528 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16529 (eval $ac_compile) 2>conftest.er1
16530 ac_status=$?
16531 grep -v '^ *+' conftest.er1 >conftest.err
16532 rm -f conftest.er1
16533 cat conftest.err >&5
16534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16535 (exit $ac_status); } &&
16536 { ac_try='test -z "$ac_c_werror_flag"
16537 || test ! -s conftest.err'
16538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16539 (eval $ac_try) 2>&5
16540 ac_status=$?
16541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16542 (exit $ac_status); }; } &&
16543 { ac_try='test -s conftest.$ac_objext'
16544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16545 (eval $ac_try) 2>&5
16546 ac_status=$?
16547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16548 (exit $ac_status); }; }; then
16549 ac_header_compiler=yes
16550 else
16551 echo "$as_me: failed program was:" >&5
16552 sed 's/^/| /' conftest.$ac_ext >&5
16554 ac_header_compiler=no
16556 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16557 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16558 echo "${ECHO_T}$ac_header_compiler" >&6
16560 # Is the header present?
16561 echo "$as_me:$LINENO: checking sys/dg_sys_info.h presence" >&5
16562 echo $ECHO_N "checking sys/dg_sys_info.h presence... $ECHO_C" >&6
16563 cat >conftest.$ac_ext <<_ACEOF
16564 /* confdefs.h. */
16565 _ACEOF
16566 cat confdefs.h >>conftest.$ac_ext
16567 cat >>conftest.$ac_ext <<_ACEOF
16568 /* end confdefs.h. */
16569 #include <sys/dg_sys_info.h>
16570 _ACEOF
16571 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16572 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16573 ac_status=$?
16574 grep -v '^ *+' conftest.er1 >conftest.err
16575 rm -f conftest.er1
16576 cat conftest.err >&5
16577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16578 (exit $ac_status); } >/dev/null; then
16579 if test -s conftest.err; then
16580 ac_cpp_err=$ac_c_preproc_warn_flag
16581 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16582 else
16583 ac_cpp_err=
16585 else
16586 ac_cpp_err=yes
16588 if test -z "$ac_cpp_err"; then
16589 ac_header_preproc=yes
16590 else
16591 echo "$as_me: failed program was:" >&5
16592 sed 's/^/| /' conftest.$ac_ext >&5
16594 ac_header_preproc=no
16596 rm -f conftest.err conftest.$ac_ext
16597 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16598 echo "${ECHO_T}$ac_header_preproc" >&6
16600 # So? What about this header?
16601 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16602 yes:no: )
16603 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&5
16604 echo "$as_me: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16605 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&5
16606 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&2;}
16607 ac_header_preproc=yes
16609 no:yes:* )
16610 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&5
16611 echo "$as_me: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&2;}
16612 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&5
16613 echo "$as_me: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&2;}
16614 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&5
16615 echo "$as_me: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&2;}
16616 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&5
16617 echo "$as_me: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&2;}
16618 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
16619 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;}
16620 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&5
16621 echo "$as_me: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&2;}
16623 cat <<\_ASBOX
16624 ## ------------------------------------------ ##
16625 ## Report this to the AC_PACKAGE_NAME lists. ##
16626 ## ------------------------------------------ ##
16627 _ASBOX
16629 sed "s/^/$as_me: WARNING: /" >&2
16631 esac
16632 echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
16633 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
16634 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
16635 echo $ECHO_N "(cached) $ECHO_C" >&6
16636 else
16637 ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc
16639 echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
16640 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
16643 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
16644 ac_have_func=yes
16646 cat >>confdefs.h <<\_ACEOF
16647 #define DGUX 1
16648 _ACEOF
16651 echo "$as_me:$LINENO: checking for dg_sys_info in -ldgc" >&5
16652 echo $ECHO_N "checking for dg_sys_info in -ldgc... $ECHO_C" >&6
16653 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
16654 echo $ECHO_N "(cached) $ECHO_C" >&6
16655 else
16656 ac_check_lib_save_LIBS=$LIBS
16657 LIBS="-ldgc $LIBS"
16658 cat >conftest.$ac_ext <<_ACEOF
16659 /* confdefs.h. */
16660 _ACEOF
16661 cat confdefs.h >>conftest.$ac_ext
16662 cat >>conftest.$ac_ext <<_ACEOF
16663 /* end confdefs.h. */
16665 /* Override any gcc2 internal prototype to avoid an error. */
16666 #ifdef __cplusplus
16667 extern "C"
16668 #endif
16669 /* We use char because int might match the return type of a gcc2
16670 builtin and then its argument prototype would still apply. */
16671 char dg_sys_info ();
16673 main ()
16675 dg_sys_info ();
16677 return 0;
16679 _ACEOF
16680 rm -f conftest.$ac_objext conftest$ac_exeext
16681 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16682 (eval $ac_link) 2>conftest.er1
16683 ac_status=$?
16684 grep -v '^ *+' conftest.er1 >conftest.err
16685 rm -f conftest.er1
16686 cat conftest.err >&5
16687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16688 (exit $ac_status); } &&
16689 { ac_try='test -z "$ac_c_werror_flag"
16690 || test ! -s conftest.err'
16691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16692 (eval $ac_try) 2>&5
16693 ac_status=$?
16694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16695 (exit $ac_status); }; } &&
16696 { ac_try='test -s conftest$ac_exeext'
16697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16698 (eval $ac_try) 2>&5
16699 ac_status=$?
16700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16701 (exit $ac_status); }; }; then
16702 ac_cv_lib_dgc_dg_sys_info=yes
16703 else
16704 echo "$as_me: failed program was:" >&5
16705 sed 's/^/| /' conftest.$ac_ext >&5
16707 ac_cv_lib_dgc_dg_sys_info=no
16709 rm -f conftest.err conftest.$ac_objext \
16710 conftest$ac_exeext conftest.$ac_ext
16711 LIBS=$ac_check_lib_save_LIBS
16713 echo "$as_me:$LINENO: result: $ac_cv_lib_dgc_dg_sys_info" >&5
16714 echo "${ECHO_T}$ac_cv_lib_dgc_dg_sys_info" >&6
16715 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
16716 cat >>confdefs.h <<_ACEOF
16717 #define HAVE_LIBDGC 1
16718 _ACEOF
16720 LIBS="-ldgc $LIBS"
16728 if test "${ac_cv_header_locale_h+set}" = set; then
16729 echo "$as_me:$LINENO: checking for locale.h" >&5
16730 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
16731 if test "${ac_cv_header_locale_h+set}" = set; then
16732 echo $ECHO_N "(cached) $ECHO_C" >&6
16734 echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
16735 echo "${ECHO_T}$ac_cv_header_locale_h" >&6
16736 else
16737 # Is the header compilable?
16738 echo "$as_me:$LINENO: checking locale.h usability" >&5
16739 echo $ECHO_N "checking locale.h usability... $ECHO_C" >&6
16740 cat >conftest.$ac_ext <<_ACEOF
16741 /* confdefs.h. */
16742 _ACEOF
16743 cat confdefs.h >>conftest.$ac_ext
16744 cat >>conftest.$ac_ext <<_ACEOF
16745 /* end confdefs.h. */
16746 $ac_includes_default
16747 #include <locale.h>
16748 _ACEOF
16749 rm -f conftest.$ac_objext
16750 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16751 (eval $ac_compile) 2>conftest.er1
16752 ac_status=$?
16753 grep -v '^ *+' conftest.er1 >conftest.err
16754 rm -f conftest.er1
16755 cat conftest.err >&5
16756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16757 (exit $ac_status); } &&
16758 { ac_try='test -z "$ac_c_werror_flag"
16759 || test ! -s conftest.err'
16760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16761 (eval $ac_try) 2>&5
16762 ac_status=$?
16763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16764 (exit $ac_status); }; } &&
16765 { ac_try='test -s conftest.$ac_objext'
16766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16767 (eval $ac_try) 2>&5
16768 ac_status=$?
16769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16770 (exit $ac_status); }; }; then
16771 ac_header_compiler=yes
16772 else
16773 echo "$as_me: failed program was:" >&5
16774 sed 's/^/| /' conftest.$ac_ext >&5
16776 ac_header_compiler=no
16778 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16779 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16780 echo "${ECHO_T}$ac_header_compiler" >&6
16782 # Is the header present?
16783 echo "$as_me:$LINENO: checking locale.h presence" >&5
16784 echo $ECHO_N "checking locale.h presence... $ECHO_C" >&6
16785 cat >conftest.$ac_ext <<_ACEOF
16786 /* confdefs.h. */
16787 _ACEOF
16788 cat confdefs.h >>conftest.$ac_ext
16789 cat >>conftest.$ac_ext <<_ACEOF
16790 /* end confdefs.h. */
16791 #include <locale.h>
16792 _ACEOF
16793 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16794 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16795 ac_status=$?
16796 grep -v '^ *+' conftest.er1 >conftest.err
16797 rm -f conftest.er1
16798 cat conftest.err >&5
16799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16800 (exit $ac_status); } >/dev/null; then
16801 if test -s conftest.err; then
16802 ac_cpp_err=$ac_c_preproc_warn_flag
16803 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16804 else
16805 ac_cpp_err=
16807 else
16808 ac_cpp_err=yes
16810 if test -z "$ac_cpp_err"; then
16811 ac_header_preproc=yes
16812 else
16813 echo "$as_me: failed program was:" >&5
16814 sed 's/^/| /' conftest.$ac_ext >&5
16816 ac_header_preproc=no
16818 rm -f conftest.err conftest.$ac_ext
16819 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16820 echo "${ECHO_T}$ac_header_preproc" >&6
16822 # So? What about this header?
16823 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16824 yes:no: )
16825 { echo "$as_me:$LINENO: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&5
16826 echo "$as_me: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16827 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the compiler's result" >&5
16828 echo "$as_me: WARNING: locale.h: proceeding with the compiler's result" >&2;}
16829 ac_header_preproc=yes
16831 no:yes:* )
16832 { echo "$as_me:$LINENO: WARNING: locale.h: present but cannot be compiled" >&5
16833 echo "$as_me: WARNING: locale.h: present but cannot be compiled" >&2;}
16834 { echo "$as_me:$LINENO: WARNING: locale.h: check for missing prerequisite headers?" >&5
16835 echo "$as_me: WARNING: locale.h: check for missing prerequisite headers?" >&2;}
16836 { echo "$as_me:$LINENO: WARNING: locale.h: see the Autoconf documentation" >&5
16837 echo "$as_me: WARNING: locale.h: see the Autoconf documentation" >&2;}
16838 { echo "$as_me:$LINENO: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&5
16839 echo "$as_me: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&2;}
16840 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
16841 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;}
16842 { echo "$as_me:$LINENO: WARNING: locale.h: in the future, the compiler will take precedence" >&5
16843 echo "$as_me: WARNING: locale.h: in the future, the compiler will take precedence" >&2;}
16845 cat <<\_ASBOX
16846 ## ------------------------------------------ ##
16847 ## Report this to the AC_PACKAGE_NAME lists. ##
16848 ## ------------------------------------------ ##
16849 _ASBOX
16851 sed "s/^/$as_me: WARNING: /" >&2
16853 esac
16854 echo "$as_me:$LINENO: checking for locale.h" >&5
16855 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
16856 if test "${ac_cv_header_locale_h+set}" = set; then
16857 echo $ECHO_N "(cached) $ECHO_C" >&6
16858 else
16859 ac_cv_header_locale_h=$ac_header_preproc
16861 echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
16862 echo "${ECHO_T}$ac_cv_header_locale_h" >&6
16868 for ac_func in setlocale
16870 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16871 echo "$as_me:$LINENO: checking for $ac_func" >&5
16872 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16873 if eval "test \"\${$as_ac_var+set}\" = set"; then
16874 echo $ECHO_N "(cached) $ECHO_C" >&6
16875 else
16876 cat >conftest.$ac_ext <<_ACEOF
16877 /* confdefs.h. */
16878 _ACEOF
16879 cat confdefs.h >>conftest.$ac_ext
16880 cat >>conftest.$ac_ext <<_ACEOF
16881 /* end confdefs.h. */
16882 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16883 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16884 #define $ac_func innocuous_$ac_func
16886 /* System header to define __stub macros and hopefully few prototypes,
16887 which can conflict with char $ac_func (); below.
16888 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16889 <limits.h> exists even on freestanding compilers. */
16891 #ifdef __STDC__
16892 # include <limits.h>
16893 #else
16894 # include <assert.h>
16895 #endif
16897 #undef $ac_func
16899 /* Override any gcc2 internal prototype to avoid an error. */
16900 #ifdef __cplusplus
16901 extern "C"
16903 #endif
16904 /* We use char because int might match the return type of a gcc2
16905 builtin and then its argument prototype would still apply. */
16906 char $ac_func ();
16907 /* The GNU C library defines this for functions which it implements
16908 to always fail with ENOSYS. Some functions are actually named
16909 something starting with __ and the normal name is an alias. */
16910 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16911 choke me
16912 #else
16913 char (*f) () = $ac_func;
16914 #endif
16915 #ifdef __cplusplus
16917 #endif
16920 main ()
16922 return f != $ac_func;
16924 return 0;
16926 _ACEOF
16927 rm -f conftest.$ac_objext conftest$ac_exeext
16928 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16929 (eval $ac_link) 2>conftest.er1
16930 ac_status=$?
16931 grep -v '^ *+' conftest.er1 >conftest.err
16932 rm -f conftest.er1
16933 cat conftest.err >&5
16934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16935 (exit $ac_status); } &&
16936 { ac_try='test -z "$ac_c_werror_flag"
16937 || test ! -s conftest.err'
16938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16939 (eval $ac_try) 2>&5
16940 ac_status=$?
16941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16942 (exit $ac_status); }; } &&
16943 { ac_try='test -s conftest$ac_exeext'
16944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16945 (eval $ac_try) 2>&5
16946 ac_status=$?
16947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16948 (exit $ac_status); }; }; then
16949 eval "$as_ac_var=yes"
16950 else
16951 echo "$as_me: failed program was:" >&5
16952 sed 's/^/| /' conftest.$ac_ext >&5
16954 eval "$as_ac_var=no"
16956 rm -f conftest.err conftest.$ac_objext \
16957 conftest$ac_exeext conftest.$ac_ext
16959 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16960 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16961 if test `eval echo '${'$as_ac_var'}'` = yes; then
16962 cat >>confdefs.h <<_ACEOF
16963 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16964 _ACEOF
16967 done
16970 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
16971 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
16972 # Irix 4.0.5F has the header but not the library.
16973 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
16974 ac_have_func=yes
16976 cat >>confdefs.h <<\_ACEOF
16977 #define SVR4 1
16978 _ACEOF
16982 if test $ac_have_func = no; then
16983 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
16984 echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
16985 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6
16986 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
16987 echo $ECHO_N "(cached) $ECHO_C" >&6
16989 echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
16990 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6
16991 else
16992 # Is the header compilable?
16993 echo "$as_me:$LINENO: checking inq_stats/cpustats.h usability" >&5
16994 echo $ECHO_N "checking inq_stats/cpustats.h usability... $ECHO_C" >&6
16995 cat >conftest.$ac_ext <<_ACEOF
16996 /* confdefs.h. */
16997 _ACEOF
16998 cat confdefs.h >>conftest.$ac_ext
16999 cat >>conftest.$ac_ext <<_ACEOF
17000 /* end confdefs.h. */
17001 $ac_includes_default
17002 #include <inq_stats/cpustats.h>
17003 _ACEOF
17004 rm -f conftest.$ac_objext
17005 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17006 (eval $ac_compile) 2>conftest.er1
17007 ac_status=$?
17008 grep -v '^ *+' conftest.er1 >conftest.err
17009 rm -f conftest.er1
17010 cat conftest.err >&5
17011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17012 (exit $ac_status); } &&
17013 { ac_try='test -z "$ac_c_werror_flag"
17014 || test ! -s conftest.err'
17015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17016 (eval $ac_try) 2>&5
17017 ac_status=$?
17018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17019 (exit $ac_status); }; } &&
17020 { ac_try='test -s conftest.$ac_objext'
17021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17022 (eval $ac_try) 2>&5
17023 ac_status=$?
17024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17025 (exit $ac_status); }; }; then
17026 ac_header_compiler=yes
17027 else
17028 echo "$as_me: failed program was:" >&5
17029 sed 's/^/| /' conftest.$ac_ext >&5
17031 ac_header_compiler=no
17033 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17034 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17035 echo "${ECHO_T}$ac_header_compiler" >&6
17037 # Is the header present?
17038 echo "$as_me:$LINENO: checking inq_stats/cpustats.h presence" >&5
17039 echo $ECHO_N "checking inq_stats/cpustats.h presence... $ECHO_C" >&6
17040 cat >conftest.$ac_ext <<_ACEOF
17041 /* confdefs.h. */
17042 _ACEOF
17043 cat confdefs.h >>conftest.$ac_ext
17044 cat >>conftest.$ac_ext <<_ACEOF
17045 /* end confdefs.h. */
17046 #include <inq_stats/cpustats.h>
17047 _ACEOF
17048 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17049 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17050 ac_status=$?
17051 grep -v '^ *+' conftest.er1 >conftest.err
17052 rm -f conftest.er1
17053 cat conftest.err >&5
17054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17055 (exit $ac_status); } >/dev/null; then
17056 if test -s conftest.err; then
17057 ac_cpp_err=$ac_c_preproc_warn_flag
17058 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17059 else
17060 ac_cpp_err=
17062 else
17063 ac_cpp_err=yes
17065 if test -z "$ac_cpp_err"; then
17066 ac_header_preproc=yes
17067 else
17068 echo "$as_me: failed program was:" >&5
17069 sed 's/^/| /' conftest.$ac_ext >&5
17071 ac_header_preproc=no
17073 rm -f conftest.err conftest.$ac_ext
17074 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17075 echo "${ECHO_T}$ac_header_preproc" >&6
17077 # So? What about this header?
17078 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17079 yes:no: )
17080 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
17081 echo "$as_me: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17082 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&5
17083 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&2;}
17084 ac_header_preproc=yes
17086 no:yes:* )
17087 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&5
17088 echo "$as_me: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&2;}
17089 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&5
17090 echo "$as_me: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&2;}
17091 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&5
17092 echo "$as_me: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&2;}
17093 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
17094 echo "$as_me: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
17095 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
17096 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;}
17097 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&5
17098 echo "$as_me: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&2;}
17100 cat <<\_ASBOX
17101 ## ------------------------------------------ ##
17102 ## Report this to the AC_PACKAGE_NAME lists. ##
17103 ## ------------------------------------------ ##
17104 _ASBOX
17106 sed "s/^/$as_me: WARNING: /" >&2
17108 esac
17109 echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
17110 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6
17111 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
17112 echo $ECHO_N "(cached) $ECHO_C" >&6
17113 else
17114 ac_cv_header_inq_stats_cpustats_h=$ac_header_preproc
17116 echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
17117 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6
17120 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
17121 ac_have_func=yes
17123 cat >>confdefs.h <<\_ACEOF
17124 #define UMAX 1
17125 _ACEOF
17128 cat >>confdefs.h <<\_ACEOF
17129 #define UMAX4_3 1
17130 _ACEOF
17137 if test $ac_have_func = no; then
17138 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
17139 echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
17140 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6
17141 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
17142 echo $ECHO_N "(cached) $ECHO_C" >&6
17144 echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
17145 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6
17146 else
17147 # Is the header compilable?
17148 echo "$as_me:$LINENO: checking sys/cpustats.h usability" >&5
17149 echo $ECHO_N "checking sys/cpustats.h usability... $ECHO_C" >&6
17150 cat >conftest.$ac_ext <<_ACEOF
17151 /* confdefs.h. */
17152 _ACEOF
17153 cat confdefs.h >>conftest.$ac_ext
17154 cat >>conftest.$ac_ext <<_ACEOF
17155 /* end confdefs.h. */
17156 $ac_includes_default
17157 #include <sys/cpustats.h>
17158 _ACEOF
17159 rm -f conftest.$ac_objext
17160 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17161 (eval $ac_compile) 2>conftest.er1
17162 ac_status=$?
17163 grep -v '^ *+' conftest.er1 >conftest.err
17164 rm -f conftest.er1
17165 cat conftest.err >&5
17166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17167 (exit $ac_status); } &&
17168 { ac_try='test -z "$ac_c_werror_flag"
17169 || test ! -s conftest.err'
17170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17171 (eval $ac_try) 2>&5
17172 ac_status=$?
17173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17174 (exit $ac_status); }; } &&
17175 { ac_try='test -s conftest.$ac_objext'
17176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17177 (eval $ac_try) 2>&5
17178 ac_status=$?
17179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17180 (exit $ac_status); }; }; then
17181 ac_header_compiler=yes
17182 else
17183 echo "$as_me: failed program was:" >&5
17184 sed 's/^/| /' conftest.$ac_ext >&5
17186 ac_header_compiler=no
17188 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17189 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17190 echo "${ECHO_T}$ac_header_compiler" >&6
17192 # Is the header present?
17193 echo "$as_me:$LINENO: checking sys/cpustats.h presence" >&5
17194 echo $ECHO_N "checking sys/cpustats.h presence... $ECHO_C" >&6
17195 cat >conftest.$ac_ext <<_ACEOF
17196 /* confdefs.h. */
17197 _ACEOF
17198 cat confdefs.h >>conftest.$ac_ext
17199 cat >>conftest.$ac_ext <<_ACEOF
17200 /* end confdefs.h. */
17201 #include <sys/cpustats.h>
17202 _ACEOF
17203 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17204 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17205 ac_status=$?
17206 grep -v '^ *+' conftest.er1 >conftest.err
17207 rm -f conftest.er1
17208 cat conftest.err >&5
17209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17210 (exit $ac_status); } >/dev/null; then
17211 if test -s conftest.err; then
17212 ac_cpp_err=$ac_c_preproc_warn_flag
17213 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17214 else
17215 ac_cpp_err=
17217 else
17218 ac_cpp_err=yes
17220 if test -z "$ac_cpp_err"; then
17221 ac_header_preproc=yes
17222 else
17223 echo "$as_me: failed program was:" >&5
17224 sed 's/^/| /' conftest.$ac_ext >&5
17226 ac_header_preproc=no
17228 rm -f conftest.err conftest.$ac_ext
17229 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17230 echo "${ECHO_T}$ac_header_preproc" >&6
17232 # So? What about this header?
17233 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17234 yes:no: )
17235 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
17236 echo "$as_me: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17237 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&5
17238 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&2;}
17239 ac_header_preproc=yes
17241 no:yes:* )
17242 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: present but cannot be compiled" >&5
17243 echo "$as_me: WARNING: sys/cpustats.h: present but cannot be compiled" >&2;}
17244 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&5
17245 echo "$as_me: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&2;}
17246 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: see the Autoconf documentation" >&5
17247 echo "$as_me: WARNING: sys/cpustats.h: see the Autoconf documentation" >&2;}
17248 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
17249 echo "$as_me: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
17250 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
17251 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;}
17252 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&5
17253 echo "$as_me: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&2;}
17255 cat <<\_ASBOX
17256 ## ------------------------------------------ ##
17257 ## Report this to the AC_PACKAGE_NAME lists. ##
17258 ## ------------------------------------------ ##
17259 _ASBOX
17261 sed "s/^/$as_me: WARNING: /" >&2
17263 esac
17264 echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
17265 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6
17266 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
17267 echo $ECHO_N "(cached) $ECHO_C" >&6
17268 else
17269 ac_cv_header_sys_cpustats_h=$ac_header_preproc
17271 echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
17272 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6
17275 if test $ac_cv_header_sys_cpustats_h = yes; then
17276 ac_have_func=yes; cat >>confdefs.h <<\_ACEOF
17277 #define UMAX 1
17278 _ACEOF
17285 if test $ac_have_func = no; then
17287 for ac_header in mach/mach.h
17289 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17290 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17291 echo "$as_me:$LINENO: checking for $ac_header" >&5
17292 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17293 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17294 echo $ECHO_N "(cached) $ECHO_C" >&6
17296 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17297 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17298 else
17299 # Is the header compilable?
17300 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17301 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17302 cat >conftest.$ac_ext <<_ACEOF
17303 /* confdefs.h. */
17304 _ACEOF
17305 cat confdefs.h >>conftest.$ac_ext
17306 cat >>conftest.$ac_ext <<_ACEOF
17307 /* end confdefs.h. */
17308 $ac_includes_default
17309 #include <$ac_header>
17310 _ACEOF
17311 rm -f conftest.$ac_objext
17312 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17313 (eval $ac_compile) 2>conftest.er1
17314 ac_status=$?
17315 grep -v '^ *+' conftest.er1 >conftest.err
17316 rm -f conftest.er1
17317 cat conftest.err >&5
17318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17319 (exit $ac_status); } &&
17320 { ac_try='test -z "$ac_c_werror_flag"
17321 || test ! -s conftest.err'
17322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17323 (eval $ac_try) 2>&5
17324 ac_status=$?
17325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17326 (exit $ac_status); }; } &&
17327 { ac_try='test -s conftest.$ac_objext'
17328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17329 (eval $ac_try) 2>&5
17330 ac_status=$?
17331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17332 (exit $ac_status); }; }; then
17333 ac_header_compiler=yes
17334 else
17335 echo "$as_me: failed program was:" >&5
17336 sed 's/^/| /' conftest.$ac_ext >&5
17338 ac_header_compiler=no
17340 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17341 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17342 echo "${ECHO_T}$ac_header_compiler" >&6
17344 # Is the header present?
17345 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17346 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17347 cat >conftest.$ac_ext <<_ACEOF
17348 /* confdefs.h. */
17349 _ACEOF
17350 cat confdefs.h >>conftest.$ac_ext
17351 cat >>conftest.$ac_ext <<_ACEOF
17352 /* end confdefs.h. */
17353 #include <$ac_header>
17354 _ACEOF
17355 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17356 (eval $ac_cpp conftest.$ac_ext) 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); } >/dev/null; then
17363 if test -s conftest.err; then
17364 ac_cpp_err=$ac_c_preproc_warn_flag
17365 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17366 else
17367 ac_cpp_err=
17369 else
17370 ac_cpp_err=yes
17372 if test -z "$ac_cpp_err"; then
17373 ac_header_preproc=yes
17374 else
17375 echo "$as_me: failed program was:" >&5
17376 sed 's/^/| /' conftest.$ac_ext >&5
17378 ac_header_preproc=no
17380 rm -f conftest.err conftest.$ac_ext
17381 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17382 echo "${ECHO_T}$ac_header_preproc" >&6
17384 # So? What about this header?
17385 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17386 yes:no: )
17387 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17388 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17389 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17390 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17391 ac_header_preproc=yes
17393 no:yes:* )
17394 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17395 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17396 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17397 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17398 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17399 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17400 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17401 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17402 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17403 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17404 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17405 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17407 cat <<\_ASBOX
17408 ## ------------------------------------------ ##
17409 ## Report this to the AC_PACKAGE_NAME lists. ##
17410 ## ------------------------------------------ ##
17411 _ASBOX
17413 sed "s/^/$as_me: WARNING: /" >&2
17415 esac
17416 echo "$as_me:$LINENO: checking for $ac_header" >&5
17417 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17418 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17419 echo $ECHO_N "(cached) $ECHO_C" >&6
17420 else
17421 eval "$as_ac_Header=\$ac_header_preproc"
17423 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17424 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17427 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17428 cat >>confdefs.h <<_ACEOF
17429 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17430 _ACEOF
17434 done
17439 for ac_header in nlist.h
17441 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17442 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17443 echo "$as_me:$LINENO: checking for $ac_header" >&5
17444 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17445 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17446 echo $ECHO_N "(cached) $ECHO_C" >&6
17448 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17449 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17450 else
17451 # Is the header compilable?
17452 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17453 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17454 cat >conftest.$ac_ext <<_ACEOF
17455 /* confdefs.h. */
17456 _ACEOF
17457 cat confdefs.h >>conftest.$ac_ext
17458 cat >>conftest.$ac_ext <<_ACEOF
17459 /* end confdefs.h. */
17460 $ac_includes_default
17461 #include <$ac_header>
17462 _ACEOF
17463 rm -f conftest.$ac_objext
17464 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17465 (eval $ac_compile) 2>conftest.er1
17466 ac_status=$?
17467 grep -v '^ *+' conftest.er1 >conftest.err
17468 rm -f conftest.er1
17469 cat conftest.err >&5
17470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17471 (exit $ac_status); } &&
17472 { ac_try='test -z "$ac_c_werror_flag"
17473 || test ! -s conftest.err'
17474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17475 (eval $ac_try) 2>&5
17476 ac_status=$?
17477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17478 (exit $ac_status); }; } &&
17479 { ac_try='test -s conftest.$ac_objext'
17480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17481 (eval $ac_try) 2>&5
17482 ac_status=$?
17483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17484 (exit $ac_status); }; }; then
17485 ac_header_compiler=yes
17486 else
17487 echo "$as_me: failed program was:" >&5
17488 sed 's/^/| /' conftest.$ac_ext >&5
17490 ac_header_compiler=no
17492 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17493 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17494 echo "${ECHO_T}$ac_header_compiler" >&6
17496 # Is the header present?
17497 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17498 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17499 cat >conftest.$ac_ext <<_ACEOF
17500 /* confdefs.h. */
17501 _ACEOF
17502 cat confdefs.h >>conftest.$ac_ext
17503 cat >>conftest.$ac_ext <<_ACEOF
17504 /* end confdefs.h. */
17505 #include <$ac_header>
17506 _ACEOF
17507 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17508 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17509 ac_status=$?
17510 grep -v '^ *+' conftest.er1 >conftest.err
17511 rm -f conftest.er1
17512 cat conftest.err >&5
17513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17514 (exit $ac_status); } >/dev/null; then
17515 if test -s conftest.err; then
17516 ac_cpp_err=$ac_c_preproc_warn_flag
17517 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17518 else
17519 ac_cpp_err=
17521 else
17522 ac_cpp_err=yes
17524 if test -z "$ac_cpp_err"; then
17525 ac_header_preproc=yes
17526 else
17527 echo "$as_me: failed program was:" >&5
17528 sed 's/^/| /' conftest.$ac_ext >&5
17530 ac_header_preproc=no
17532 rm -f conftest.err conftest.$ac_ext
17533 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17534 echo "${ECHO_T}$ac_header_preproc" >&6
17536 # So? What about this header?
17537 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17538 yes:no: )
17539 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17540 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17541 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17542 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17543 ac_header_preproc=yes
17545 no:yes:* )
17546 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17547 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17548 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17549 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17550 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17551 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17552 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17553 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17554 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17555 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17556 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17557 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17559 cat <<\_ASBOX
17560 ## ------------------------------------------ ##
17561 ## Report this to the AC_PACKAGE_NAME lists. ##
17562 ## ------------------------------------------ ##
17563 _ASBOX
17565 sed "s/^/$as_me: WARNING: /" >&2
17567 esac
17568 echo "$as_me:$LINENO: checking for $ac_header" >&5
17569 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17570 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17571 echo $ECHO_N "(cached) $ECHO_C" >&6
17572 else
17573 eval "$as_ac_Header=\$ac_header_preproc"
17575 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17576 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17579 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17580 cat >>confdefs.h <<_ACEOF
17581 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17582 _ACEOF
17583 echo "$as_me:$LINENO: checking for struct nlist.n_un.n_name" >&5
17584 echo $ECHO_N "checking for struct nlist.n_un.n_name... $ECHO_C" >&6
17585 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
17586 echo $ECHO_N "(cached) $ECHO_C" >&6
17587 else
17588 cat >conftest.$ac_ext <<_ACEOF
17589 /* confdefs.h. */
17590 _ACEOF
17591 cat confdefs.h >>conftest.$ac_ext
17592 cat >>conftest.$ac_ext <<_ACEOF
17593 /* end confdefs.h. */
17594 #include <nlist.h>
17597 main ()
17599 static struct nlist ac_aggr;
17600 if (ac_aggr.n_un.n_name)
17601 return 0;
17603 return 0;
17605 _ACEOF
17606 rm -f conftest.$ac_objext
17607 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17608 (eval $ac_compile) 2>conftest.er1
17609 ac_status=$?
17610 grep -v '^ *+' conftest.er1 >conftest.err
17611 rm -f conftest.er1
17612 cat conftest.err >&5
17613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17614 (exit $ac_status); } &&
17615 { ac_try='test -z "$ac_c_werror_flag"
17616 || test ! -s conftest.err'
17617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17618 (eval $ac_try) 2>&5
17619 ac_status=$?
17620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17621 (exit $ac_status); }; } &&
17622 { ac_try='test -s conftest.$ac_objext'
17623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17624 (eval $ac_try) 2>&5
17625 ac_status=$?
17626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17627 (exit $ac_status); }; }; then
17628 ac_cv_member_struct_nlist_n_un_n_name=yes
17629 else
17630 echo "$as_me: failed program was:" >&5
17631 sed 's/^/| /' conftest.$ac_ext >&5
17633 cat >conftest.$ac_ext <<_ACEOF
17634 /* confdefs.h. */
17635 _ACEOF
17636 cat confdefs.h >>conftest.$ac_ext
17637 cat >>conftest.$ac_ext <<_ACEOF
17638 /* end confdefs.h. */
17639 #include <nlist.h>
17642 main ()
17644 static struct nlist ac_aggr;
17645 if (sizeof ac_aggr.n_un.n_name)
17646 return 0;
17648 return 0;
17650 _ACEOF
17651 rm -f conftest.$ac_objext
17652 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17653 (eval $ac_compile) 2>conftest.er1
17654 ac_status=$?
17655 grep -v '^ *+' conftest.er1 >conftest.err
17656 rm -f conftest.er1
17657 cat conftest.err >&5
17658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17659 (exit $ac_status); } &&
17660 { ac_try='test -z "$ac_c_werror_flag"
17661 || test ! -s conftest.err'
17662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17663 (eval $ac_try) 2>&5
17664 ac_status=$?
17665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17666 (exit $ac_status); }; } &&
17667 { ac_try='test -s conftest.$ac_objext'
17668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17669 (eval $ac_try) 2>&5
17670 ac_status=$?
17671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17672 (exit $ac_status); }; }; then
17673 ac_cv_member_struct_nlist_n_un_n_name=yes
17674 else
17675 echo "$as_me: failed program was:" >&5
17676 sed 's/^/| /' conftest.$ac_ext >&5
17678 ac_cv_member_struct_nlist_n_un_n_name=no
17680 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17682 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17684 echo "$as_me:$LINENO: result: $ac_cv_member_struct_nlist_n_un_n_name" >&5
17685 echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6
17686 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
17688 cat >>confdefs.h <<_ACEOF
17689 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
17690 _ACEOF
17693 cat >>confdefs.h <<\_ACEOF
17694 #define NLIST_NAME_UNION 1
17695 _ACEOF
17702 done
17705 done
17708 # Some definitions of getloadavg require that the program be installed setgid.
17709 echo "$as_me:$LINENO: checking whether getloadavg requires setgid" >&5
17710 echo $ECHO_N "checking whether getloadavg requires setgid... $ECHO_C" >&6
17711 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
17712 echo $ECHO_N "(cached) $ECHO_C" >&6
17713 else
17714 cat >conftest.$ac_ext <<_ACEOF
17715 /* confdefs.h. */
17716 _ACEOF
17717 cat confdefs.h >>conftest.$ac_ext
17718 cat >>conftest.$ac_ext <<_ACEOF
17719 /* end confdefs.h. */
17720 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c"
17721 #ifdef LDAV_PRIVILEGED
17722 Yowza Am I SETGID yet
17723 #endif
17724 _ACEOF
17725 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17726 $EGREP "Yowza Am I SETGID yet" >/dev/null 2>&1; then
17727 ac_cv_func_getloadavg_setgid=yes
17728 else
17729 ac_cv_func_getloadavg_setgid=no
17731 rm -f conftest*
17734 echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg_setgid" >&5
17735 echo "${ECHO_T}$ac_cv_func_getloadavg_setgid" >&6
17736 if test $ac_cv_func_getloadavg_setgid = yes; then
17737 NEED_SETGID=true
17739 cat >>confdefs.h <<\_ACEOF
17740 #define GETLOADAVG_PRIVILEGED 1
17741 _ACEOF
17743 else
17744 NEED_SETGID=false
17747 if test $ac_cv_func_getloadavg_setgid = yes; then
17748 echo "$as_me:$LINENO: checking group of /dev/kmem" >&5
17749 echo $ECHO_N "checking group of /dev/kmem... $ECHO_C" >&6
17750 if test "${ac_cv_group_kmem+set}" = set; then
17751 echo $ECHO_N "(cached) $ECHO_C" >&6
17752 else
17753 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
17754 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
17755 # If we got an error (system does not support symlinks), try without -L.
17756 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
17757 ac_cv_group_kmem=`echo $ac_ls_output \
17758 | sed -ne 's/[ ][ ]*/ /g;
17759 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
17760 / /s/.* //;p;'`
17763 echo "$as_me:$LINENO: result: $ac_cv_group_kmem" >&5
17764 echo "${ECHO_T}$ac_cv_group_kmem" >&6
17765 KMEM_GROUP=$ac_cv_group_kmem
17767 if test "x$ac_save_LIBS" = x; then
17768 GETLOADAVG_LIBS=$LIBS
17769 else
17770 GETLOADAVG_LIBS=`echo "$LIBS" | sed "s!$ac_save_LIBS!!"`
17772 LIBS=$ac_save_LIBS
17776 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
17777 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
17778 if test "${ac_cv_sys_largefile_source+set}" = set; then
17779 echo $ECHO_N "(cached) $ECHO_C" >&6
17780 else
17781 while :; do
17782 ac_cv_sys_largefile_source=no
17783 cat >conftest.$ac_ext <<_ACEOF
17784 /* confdefs.h. */
17785 _ACEOF
17786 cat confdefs.h >>conftest.$ac_ext
17787 cat >>conftest.$ac_ext <<_ACEOF
17788 /* end confdefs.h. */
17789 #include <stdio.h>
17791 main ()
17793 return !fseeko;
17795 return 0;
17797 _ACEOF
17798 rm -f conftest.$ac_objext
17799 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17800 (eval $ac_compile) 2>conftest.er1
17801 ac_status=$?
17802 grep -v '^ *+' conftest.er1 >conftest.err
17803 rm -f conftest.er1
17804 cat conftest.err >&5
17805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17806 (exit $ac_status); } &&
17807 { ac_try='test -z "$ac_c_werror_flag"
17808 || test ! -s conftest.err'
17809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17810 (eval $ac_try) 2>&5
17811 ac_status=$?
17812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17813 (exit $ac_status); }; } &&
17814 { ac_try='test -s conftest.$ac_objext'
17815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17816 (eval $ac_try) 2>&5
17817 ac_status=$?
17818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17819 (exit $ac_status); }; }; then
17820 break
17821 else
17822 echo "$as_me: failed program was:" >&5
17823 sed 's/^/| /' conftest.$ac_ext >&5
17826 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17827 cat >conftest.$ac_ext <<_ACEOF
17828 /* confdefs.h. */
17829 _ACEOF
17830 cat confdefs.h >>conftest.$ac_ext
17831 cat >>conftest.$ac_ext <<_ACEOF
17832 /* end confdefs.h. */
17833 #define _LARGEFILE_SOURCE 1
17834 #include <stdio.h>
17836 main ()
17838 return !fseeko;
17840 return 0;
17842 _ACEOF
17843 rm -f conftest.$ac_objext
17844 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17845 (eval $ac_compile) 2>conftest.er1
17846 ac_status=$?
17847 grep -v '^ *+' conftest.er1 >conftest.err
17848 rm -f conftest.er1
17849 cat conftest.err >&5
17850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17851 (exit $ac_status); } &&
17852 { ac_try='test -z "$ac_c_werror_flag"
17853 || test ! -s conftest.err'
17854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17855 (eval $ac_try) 2>&5
17856 ac_status=$?
17857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17858 (exit $ac_status); }; } &&
17859 { ac_try='test -s conftest.$ac_objext'
17860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17861 (eval $ac_try) 2>&5
17862 ac_status=$?
17863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17864 (exit $ac_status); }; }; then
17865 ac_cv_sys_largefile_source=1; break
17866 else
17867 echo "$as_me: failed program was:" >&5
17868 sed 's/^/| /' conftest.$ac_ext >&5
17871 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17872 break
17873 done
17875 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
17876 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
17877 if test "$ac_cv_sys_largefile_source" != no; then
17879 cat >>confdefs.h <<_ACEOF
17880 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
17881 _ACEOF
17884 rm -f conftest*
17886 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
17887 # in glibc 2.1.3, but that breaks too many other things.
17888 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
17889 echo "$as_me:$LINENO: checking for fseeko" >&5
17890 echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
17891 if test "${ac_cv_func_fseeko+set}" = set; then
17892 echo $ECHO_N "(cached) $ECHO_C" >&6
17893 else
17894 cat >conftest.$ac_ext <<_ACEOF
17895 /* confdefs.h. */
17896 _ACEOF
17897 cat confdefs.h >>conftest.$ac_ext
17898 cat >>conftest.$ac_ext <<_ACEOF
17899 /* end confdefs.h. */
17900 #include <stdio.h>
17902 main ()
17904 return fseeko && fseeko (stdin, 0, 0);
17906 return 0;
17908 _ACEOF
17909 rm -f conftest.$ac_objext conftest$ac_exeext
17910 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17911 (eval $ac_link) 2>conftest.er1
17912 ac_status=$?
17913 grep -v '^ *+' conftest.er1 >conftest.err
17914 rm -f conftest.er1
17915 cat conftest.err >&5
17916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17917 (exit $ac_status); } &&
17918 { ac_try='test -z "$ac_c_werror_flag"
17919 || test ! -s conftest.err'
17920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17921 (eval $ac_try) 2>&5
17922 ac_status=$?
17923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17924 (exit $ac_status); }; } &&
17925 { ac_try='test -s conftest$ac_exeext'
17926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17927 (eval $ac_try) 2>&5
17928 ac_status=$?
17929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17930 (exit $ac_status); }; }; then
17931 ac_cv_func_fseeko=yes
17932 else
17933 echo "$as_me: failed program was:" >&5
17934 sed 's/^/| /' conftest.$ac_ext >&5
17936 ac_cv_func_fseeko=no
17938 rm -f conftest.err conftest.$ac_objext \
17939 conftest$ac_exeext conftest.$ac_ext
17941 echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5
17942 echo "${ECHO_T}$ac_cv_func_fseeko" >&6
17943 if test $ac_cv_func_fseeko = yes; then
17945 cat >>confdefs.h <<\_ACEOF
17946 #define HAVE_FSEEKO 1
17947 _ACEOF
17952 # Configure getopt.
17953 # getopt.m4 serial 10
17955 # The getopt module assume you want GNU getopt, with getopt_long etc,
17956 # rather than vanilla POSIX getopt. This means your your code should
17957 # always include <getopt.h> for the getopt prototypes.
17969 # Prerequisites of lib/getopt*.
17974 GETOPT_H=
17976 for ac_header in getopt.h
17978 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17979 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17980 echo "$as_me:$LINENO: checking for $ac_header" >&5
17981 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17982 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17983 echo $ECHO_N "(cached) $ECHO_C" >&6
17985 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17986 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17987 else
17988 # Is the header compilable?
17989 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17990 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17991 cat >conftest.$ac_ext <<_ACEOF
17992 /* confdefs.h. */
17993 _ACEOF
17994 cat confdefs.h >>conftest.$ac_ext
17995 cat >>conftest.$ac_ext <<_ACEOF
17996 /* end confdefs.h. */
17997 $ac_includes_default
17998 #include <$ac_header>
17999 _ACEOF
18000 rm -f conftest.$ac_objext
18001 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18002 (eval $ac_compile) 2>conftest.er1
18003 ac_status=$?
18004 grep -v '^ *+' conftest.er1 >conftest.err
18005 rm -f conftest.er1
18006 cat conftest.err >&5
18007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18008 (exit $ac_status); } &&
18009 { ac_try='test -z "$ac_c_werror_flag"
18010 || test ! -s conftest.err'
18011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18012 (eval $ac_try) 2>&5
18013 ac_status=$?
18014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18015 (exit $ac_status); }; } &&
18016 { ac_try='test -s conftest.$ac_objext'
18017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18018 (eval $ac_try) 2>&5
18019 ac_status=$?
18020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18021 (exit $ac_status); }; }; then
18022 ac_header_compiler=yes
18023 else
18024 echo "$as_me: failed program was:" >&5
18025 sed 's/^/| /' conftest.$ac_ext >&5
18027 ac_header_compiler=no
18029 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18030 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18031 echo "${ECHO_T}$ac_header_compiler" >&6
18033 # Is the header present?
18034 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18035 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18036 cat >conftest.$ac_ext <<_ACEOF
18037 /* confdefs.h. */
18038 _ACEOF
18039 cat confdefs.h >>conftest.$ac_ext
18040 cat >>conftest.$ac_ext <<_ACEOF
18041 /* end confdefs.h. */
18042 #include <$ac_header>
18043 _ACEOF
18044 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18045 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18046 ac_status=$?
18047 grep -v '^ *+' conftest.er1 >conftest.err
18048 rm -f conftest.er1
18049 cat conftest.err >&5
18050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18051 (exit $ac_status); } >/dev/null; then
18052 if test -s conftest.err; then
18053 ac_cpp_err=$ac_c_preproc_warn_flag
18054 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18055 else
18056 ac_cpp_err=
18058 else
18059 ac_cpp_err=yes
18061 if test -z "$ac_cpp_err"; then
18062 ac_header_preproc=yes
18063 else
18064 echo "$as_me: failed program was:" >&5
18065 sed 's/^/| /' conftest.$ac_ext >&5
18067 ac_header_preproc=no
18069 rm -f conftest.err conftest.$ac_ext
18070 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18071 echo "${ECHO_T}$ac_header_preproc" >&6
18073 # So? What about this header?
18074 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18075 yes:no: )
18076 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18077 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18078 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18079 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18080 ac_header_preproc=yes
18082 no:yes:* )
18083 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18084 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18085 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18086 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18087 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18088 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18089 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18090 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18091 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18092 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18093 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18094 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18096 cat <<\_ASBOX
18097 ## ------------------------------------------ ##
18098 ## Report this to the AC_PACKAGE_NAME lists. ##
18099 ## ------------------------------------------ ##
18100 _ASBOX
18102 sed "s/^/$as_me: WARNING: /" >&2
18104 esac
18105 echo "$as_me:$LINENO: checking for $ac_header" >&5
18106 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18107 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18108 echo $ECHO_N "(cached) $ECHO_C" >&6
18109 else
18110 eval "$as_ac_Header=\$ac_header_preproc"
18112 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18113 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18116 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18117 cat >>confdefs.h <<_ACEOF
18118 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18119 _ACEOF
18121 else
18122 GETOPT_H=getopt.h
18125 done
18127 if test -z "$GETOPT_H"; then
18129 for ac_func in getopt_long_only
18131 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18132 echo "$as_me:$LINENO: checking for $ac_func" >&5
18133 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18134 if eval "test \"\${$as_ac_var+set}\" = set"; then
18135 echo $ECHO_N "(cached) $ECHO_C" >&6
18136 else
18137 cat >conftest.$ac_ext <<_ACEOF
18138 /* confdefs.h. */
18139 _ACEOF
18140 cat confdefs.h >>conftest.$ac_ext
18141 cat >>conftest.$ac_ext <<_ACEOF
18142 /* end confdefs.h. */
18143 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18144 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18145 #define $ac_func innocuous_$ac_func
18147 /* System header to define __stub macros and hopefully few prototypes,
18148 which can conflict with char $ac_func (); below.
18149 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18150 <limits.h> exists even on freestanding compilers. */
18152 #ifdef __STDC__
18153 # include <limits.h>
18154 #else
18155 # include <assert.h>
18156 #endif
18158 #undef $ac_func
18160 /* Override any gcc2 internal prototype to avoid an error. */
18161 #ifdef __cplusplus
18162 extern "C"
18164 #endif
18165 /* We use char because int might match the return type of a gcc2
18166 builtin and then its argument prototype would still apply. */
18167 char $ac_func ();
18168 /* The GNU C library defines this for functions which it implements
18169 to always fail with ENOSYS. Some functions are actually named
18170 something starting with __ and the normal name is an alias. */
18171 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18172 choke me
18173 #else
18174 char (*f) () = $ac_func;
18175 #endif
18176 #ifdef __cplusplus
18178 #endif
18181 main ()
18183 return f != $ac_func;
18185 return 0;
18187 _ACEOF
18188 rm -f conftest.$ac_objext conftest$ac_exeext
18189 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18190 (eval $ac_link) 2>conftest.er1
18191 ac_status=$?
18192 grep -v '^ *+' conftest.er1 >conftest.err
18193 rm -f conftest.er1
18194 cat conftest.err >&5
18195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18196 (exit $ac_status); } &&
18197 { ac_try='test -z "$ac_c_werror_flag"
18198 || test ! -s conftest.err'
18199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18200 (eval $ac_try) 2>&5
18201 ac_status=$?
18202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18203 (exit $ac_status); }; } &&
18204 { ac_try='test -s conftest$ac_exeext'
18205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18206 (eval $ac_try) 2>&5
18207 ac_status=$?
18208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18209 (exit $ac_status); }; }; then
18210 eval "$as_ac_var=yes"
18211 else
18212 echo "$as_me: failed program was:" >&5
18213 sed 's/^/| /' conftest.$ac_ext >&5
18215 eval "$as_ac_var=no"
18217 rm -f conftest.err conftest.$ac_objext \
18218 conftest$ac_exeext conftest.$ac_ext
18220 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18221 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18222 if test `eval echo '${'$as_ac_var'}'` = yes; then
18223 cat >>confdefs.h <<_ACEOF
18224 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18225 _ACEOF
18227 else
18228 GETOPT_H=getopt.h
18230 done
18234 if test -z "$GETOPT_H"; then
18235 echo "$as_me:$LINENO: checking whether optreset is declared" >&5
18236 echo $ECHO_N "checking whether optreset is declared... $ECHO_C" >&6
18237 if test "${ac_cv_have_decl_optreset+set}" = set; then
18238 echo $ECHO_N "(cached) $ECHO_C" >&6
18239 else
18240 cat >conftest.$ac_ext <<_ACEOF
18241 /* confdefs.h. */
18242 _ACEOF
18243 cat confdefs.h >>conftest.$ac_ext
18244 cat >>conftest.$ac_ext <<_ACEOF
18245 /* end confdefs.h. */
18246 #include <getopt.h>
18249 main ()
18251 #ifndef optreset
18252 char *p = (char *) optreset;
18253 #endif
18256 return 0;
18258 _ACEOF
18259 rm -f conftest.$ac_objext
18260 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18261 (eval $ac_compile) 2>conftest.er1
18262 ac_status=$?
18263 grep -v '^ *+' conftest.er1 >conftest.err
18264 rm -f conftest.er1
18265 cat conftest.err >&5
18266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18267 (exit $ac_status); } &&
18268 { ac_try='test -z "$ac_c_werror_flag"
18269 || test ! -s conftest.err'
18270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18271 (eval $ac_try) 2>&5
18272 ac_status=$?
18273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18274 (exit $ac_status); }; } &&
18275 { ac_try='test -s conftest.$ac_objext'
18276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18277 (eval $ac_try) 2>&5
18278 ac_status=$?
18279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18280 (exit $ac_status); }; }; then
18281 ac_cv_have_decl_optreset=yes
18282 else
18283 echo "$as_me: failed program was:" >&5
18284 sed 's/^/| /' conftest.$ac_ext >&5
18286 ac_cv_have_decl_optreset=no
18288 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18290 echo "$as_me:$LINENO: result: $ac_cv_have_decl_optreset" >&5
18291 echo "${ECHO_T}$ac_cv_have_decl_optreset" >&6
18292 if test $ac_cv_have_decl_optreset = yes; then
18293 GETOPT_H=getopt.h
18298 if test -z "$GETOPT_H"; then
18299 echo "$as_me:$LINENO: checking for working GNU getopt function" >&5
18300 echo $ECHO_N "checking for working GNU getopt function... $ECHO_C" >&6
18301 if test "${gl_cv_func_gnu_getopt+set}" = set; then
18302 echo $ECHO_N "(cached) $ECHO_C" >&6
18303 else
18304 if test "$cross_compiling" = yes; then
18305 echo "$as_me:$LINENO: checking whether getopt_clip is declared" >&5
18306 echo $ECHO_N "checking whether getopt_clip is declared... $ECHO_C" >&6
18307 if test "${ac_cv_have_decl_getopt_clip+set}" = set; then
18308 echo $ECHO_N "(cached) $ECHO_C" >&6
18309 else
18310 cat >conftest.$ac_ext <<_ACEOF
18311 /* confdefs.h. */
18312 _ACEOF
18313 cat confdefs.h >>conftest.$ac_ext
18314 cat >>conftest.$ac_ext <<_ACEOF
18315 /* end confdefs.h. */
18316 #include <getopt.h>
18319 main ()
18321 #ifndef getopt_clip
18322 char *p = (char *) getopt_clip;
18323 #endif
18326 return 0;
18328 _ACEOF
18329 rm -f conftest.$ac_objext
18330 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18331 (eval $ac_compile) 2>conftest.er1
18332 ac_status=$?
18333 grep -v '^ *+' conftest.er1 >conftest.err
18334 rm -f conftest.er1
18335 cat conftest.err >&5
18336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18337 (exit $ac_status); } &&
18338 { ac_try='test -z "$ac_c_werror_flag"
18339 || test ! -s conftest.err'
18340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18341 (eval $ac_try) 2>&5
18342 ac_status=$?
18343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18344 (exit $ac_status); }; } &&
18345 { ac_try='test -s conftest.$ac_objext'
18346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18347 (eval $ac_try) 2>&5
18348 ac_status=$?
18349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18350 (exit $ac_status); }; }; then
18351 ac_cv_have_decl_getopt_clip=yes
18352 else
18353 echo "$as_me: failed program was:" >&5
18354 sed 's/^/| /' conftest.$ac_ext >&5
18356 ac_cv_have_decl_getopt_clip=no
18358 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18360 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getopt_clip" >&5
18361 echo "${ECHO_T}$ac_cv_have_decl_getopt_clip" >&6
18362 if test $ac_cv_have_decl_getopt_clip = yes; then
18363 gl_cv_func_gnu_getopt=no
18364 else
18365 gl_cv_func_gnu_getopt=yes
18368 else
18369 cat >conftest.$ac_ext <<_ACEOF
18370 /* confdefs.h. */
18371 _ACEOF
18372 cat confdefs.h >>conftest.$ac_ext
18373 cat >>conftest.$ac_ext <<_ACEOF
18374 /* end confdefs.h. */
18375 #include <getopt.h>
18377 main ()
18380 char *myargv[3];
18381 myargv[0] = "conftest";
18382 myargv[1] = "-+";
18383 myargv[2] = 0;
18384 return getopt (2, myargv, "+a") != '?';
18387 return 0;
18389 _ACEOF
18390 rm -f conftest$ac_exeext
18391 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18392 (eval $ac_link) 2>&5
18393 ac_status=$?
18394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18395 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18397 (eval $ac_try) 2>&5
18398 ac_status=$?
18399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18400 (exit $ac_status); }; }; then
18401 gl_cv_func_gnu_getopt=yes
18402 else
18403 echo "$as_me: program exited with status $ac_status" >&5
18404 echo "$as_me: failed program was:" >&5
18405 sed 's/^/| /' conftest.$ac_ext >&5
18407 ( exit $ac_status )
18408 gl_cv_func_gnu_getopt=no
18410 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18413 echo "$as_me:$LINENO: result: $gl_cv_func_gnu_getopt" >&5
18414 echo "${ECHO_T}$gl_cv_func_gnu_getopt" >&6
18415 if test "$gl_cv_func_gnu_getopt" = "no"; then
18416 GETOPT_H=getopt.h
18422 if test -n "$GETOPT_H"; then
18425 GETOPT_H=getopt.h
18427 cat >>confdefs.h <<\_ACEOF
18428 #define __GETOPT_PREFIX rpl_
18429 _ACEOF
18434 GETOPTOBJS='getopt.o getopt1.o'
18441 echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5
18442 echo $ECHO_N "checking whether getpgrp requires zero arguments... $ECHO_C" >&6
18443 if test "${ac_cv_func_getpgrp_void+set}" = set; then
18444 echo $ECHO_N "(cached) $ECHO_C" >&6
18445 else
18446 # Use it with a single arg.
18447 cat >conftest.$ac_ext <<_ACEOF
18448 /* confdefs.h. */
18449 _ACEOF
18450 cat confdefs.h >>conftest.$ac_ext
18451 cat >>conftest.$ac_ext <<_ACEOF
18452 /* end confdefs.h. */
18453 $ac_includes_default
18455 main ()
18457 getpgrp (0);
18459 return 0;
18461 _ACEOF
18462 rm -f conftest.$ac_objext
18463 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18464 (eval $ac_compile) 2>conftest.er1
18465 ac_status=$?
18466 grep -v '^ *+' conftest.er1 >conftest.err
18467 rm -f conftest.er1
18468 cat conftest.err >&5
18469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18470 (exit $ac_status); } &&
18471 { ac_try='test -z "$ac_c_werror_flag"
18472 || test ! -s conftest.err'
18473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18474 (eval $ac_try) 2>&5
18475 ac_status=$?
18476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18477 (exit $ac_status); }; } &&
18478 { ac_try='test -s conftest.$ac_objext'
18479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18480 (eval $ac_try) 2>&5
18481 ac_status=$?
18482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18483 (exit $ac_status); }; }; then
18484 ac_cv_func_getpgrp_void=no
18485 else
18486 echo "$as_me: failed program was:" >&5
18487 sed 's/^/| /' conftest.$ac_ext >&5
18489 ac_cv_func_getpgrp_void=yes
18491 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18494 echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5
18495 echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6
18496 if test $ac_cv_func_getpgrp_void = yes; then
18498 cat >>confdefs.h <<\_ACEOF
18499 #define GETPGRP_VOID 1
18500 _ACEOF
18506 for ac_func in strftime
18508 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18509 echo "$as_me:$LINENO: checking for $ac_func" >&5
18510 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18511 if eval "test \"\${$as_ac_var+set}\" = set"; then
18512 echo $ECHO_N "(cached) $ECHO_C" >&6
18513 else
18514 cat >conftest.$ac_ext <<_ACEOF
18515 /* confdefs.h. */
18516 _ACEOF
18517 cat confdefs.h >>conftest.$ac_ext
18518 cat >>conftest.$ac_ext <<_ACEOF
18519 /* end confdefs.h. */
18520 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18521 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18522 #define $ac_func innocuous_$ac_func
18524 /* System header to define __stub macros and hopefully few prototypes,
18525 which can conflict with char $ac_func (); below.
18526 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18527 <limits.h> exists even on freestanding compilers. */
18529 #ifdef __STDC__
18530 # include <limits.h>
18531 #else
18532 # include <assert.h>
18533 #endif
18535 #undef $ac_func
18537 /* Override any gcc2 internal prototype to avoid an error. */
18538 #ifdef __cplusplus
18539 extern "C"
18541 #endif
18542 /* We use char because int might match the return type of a gcc2
18543 builtin and then its argument prototype would still apply. */
18544 char $ac_func ();
18545 /* The GNU C library defines this for functions which it implements
18546 to always fail with ENOSYS. Some functions are actually named
18547 something starting with __ and the normal name is an alias. */
18548 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18549 choke me
18550 #else
18551 char (*f) () = $ac_func;
18552 #endif
18553 #ifdef __cplusplus
18555 #endif
18558 main ()
18560 return f != $ac_func;
18562 return 0;
18564 _ACEOF
18565 rm -f conftest.$ac_objext conftest$ac_exeext
18566 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18567 (eval $ac_link) 2>conftest.er1
18568 ac_status=$?
18569 grep -v '^ *+' conftest.er1 >conftest.err
18570 rm -f conftest.er1
18571 cat conftest.err >&5
18572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18573 (exit $ac_status); } &&
18574 { ac_try='test -z "$ac_c_werror_flag"
18575 || test ! -s conftest.err'
18576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18577 (eval $ac_try) 2>&5
18578 ac_status=$?
18579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18580 (exit $ac_status); }; } &&
18581 { ac_try='test -s conftest$ac_exeext'
18582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18583 (eval $ac_try) 2>&5
18584 ac_status=$?
18585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18586 (exit $ac_status); }; }; then
18587 eval "$as_ac_var=yes"
18588 else
18589 echo "$as_me: failed program was:" >&5
18590 sed 's/^/| /' conftest.$ac_ext >&5
18592 eval "$as_ac_var=no"
18594 rm -f conftest.err conftest.$ac_objext \
18595 conftest$ac_exeext conftest.$ac_ext
18597 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18598 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18599 if test `eval echo '${'$as_ac_var'}'` = yes; then
18600 cat >>confdefs.h <<_ACEOF
18601 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18602 _ACEOF
18604 else
18605 # strftime is in -lintl on SCO UNIX.
18606 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
18607 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
18608 if test "${ac_cv_lib_intl_strftime+set}" = set; then
18609 echo $ECHO_N "(cached) $ECHO_C" >&6
18610 else
18611 ac_check_lib_save_LIBS=$LIBS
18612 LIBS="-lintl $LIBS"
18613 cat >conftest.$ac_ext <<_ACEOF
18614 /* confdefs.h. */
18615 _ACEOF
18616 cat confdefs.h >>conftest.$ac_ext
18617 cat >>conftest.$ac_ext <<_ACEOF
18618 /* end confdefs.h. */
18620 /* Override any gcc2 internal prototype to avoid an error. */
18621 #ifdef __cplusplus
18622 extern "C"
18623 #endif
18624 /* We use char because int might match the return type of a gcc2
18625 builtin and then its argument prototype would still apply. */
18626 char strftime ();
18628 main ()
18630 strftime ();
18632 return 0;
18634 _ACEOF
18635 rm -f conftest.$ac_objext conftest$ac_exeext
18636 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18637 (eval $ac_link) 2>conftest.er1
18638 ac_status=$?
18639 grep -v '^ *+' conftest.er1 >conftest.err
18640 rm -f conftest.er1
18641 cat conftest.err >&5
18642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18643 (exit $ac_status); } &&
18644 { ac_try='test -z "$ac_c_werror_flag"
18645 || test ! -s conftest.err'
18646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18647 (eval $ac_try) 2>&5
18648 ac_status=$?
18649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18650 (exit $ac_status); }; } &&
18651 { ac_try='test -s conftest$ac_exeext'
18652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18653 (eval $ac_try) 2>&5
18654 ac_status=$?
18655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18656 (exit $ac_status); }; }; then
18657 ac_cv_lib_intl_strftime=yes
18658 else
18659 echo "$as_me: failed program was:" >&5
18660 sed 's/^/| /' conftest.$ac_ext >&5
18662 ac_cv_lib_intl_strftime=no
18664 rm -f conftest.err conftest.$ac_objext \
18665 conftest$ac_exeext conftest.$ac_ext
18666 LIBS=$ac_check_lib_save_LIBS
18668 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
18669 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
18670 if test $ac_cv_lib_intl_strftime = yes; then
18671 cat >>confdefs.h <<\_ACEOF
18672 #define HAVE_STRFTIME 1
18673 _ACEOF
18675 LIBS="-lintl $LIBS"
18679 done
18682 # UNIX98 PTYs.
18684 for ac_func in grantpt
18686 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18687 echo "$as_me:$LINENO: checking for $ac_func" >&5
18688 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18689 if eval "test \"\${$as_ac_var+set}\" = set"; then
18690 echo $ECHO_N "(cached) $ECHO_C" >&6
18691 else
18692 cat >conftest.$ac_ext <<_ACEOF
18693 /* confdefs.h. */
18694 _ACEOF
18695 cat confdefs.h >>conftest.$ac_ext
18696 cat >>conftest.$ac_ext <<_ACEOF
18697 /* end confdefs.h. */
18698 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18699 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18700 #define $ac_func innocuous_$ac_func
18702 /* System header to define __stub macros and hopefully few prototypes,
18703 which can conflict with char $ac_func (); below.
18704 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18705 <limits.h> exists even on freestanding compilers. */
18707 #ifdef __STDC__
18708 # include <limits.h>
18709 #else
18710 # include <assert.h>
18711 #endif
18713 #undef $ac_func
18715 /* Override any gcc2 internal prototype to avoid an error. */
18716 #ifdef __cplusplus
18717 extern "C"
18719 #endif
18720 /* We use char because int might match the return type of a gcc2
18721 builtin and then its argument prototype would still apply. */
18722 char $ac_func ();
18723 /* The GNU C library defines this for functions which it implements
18724 to always fail with ENOSYS. Some functions are actually named
18725 something starting with __ and the normal name is an alias. */
18726 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18727 choke me
18728 #else
18729 char (*f) () = $ac_func;
18730 #endif
18731 #ifdef __cplusplus
18733 #endif
18736 main ()
18738 return f != $ac_func;
18740 return 0;
18742 _ACEOF
18743 rm -f conftest.$ac_objext conftest$ac_exeext
18744 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18745 (eval $ac_link) 2>conftest.er1
18746 ac_status=$?
18747 grep -v '^ *+' conftest.er1 >conftest.err
18748 rm -f conftest.er1
18749 cat conftest.err >&5
18750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18751 (exit $ac_status); } &&
18752 { ac_try='test -z "$ac_c_werror_flag"
18753 || test ! -s conftest.err'
18754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18755 (eval $ac_try) 2>&5
18756 ac_status=$?
18757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18758 (exit $ac_status); }; } &&
18759 { ac_try='test -s conftest$ac_exeext'
18760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18761 (eval $ac_try) 2>&5
18762 ac_status=$?
18763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18764 (exit $ac_status); }; }; then
18765 eval "$as_ac_var=yes"
18766 else
18767 echo "$as_me: failed program was:" >&5
18768 sed 's/^/| /' conftest.$ac_ext >&5
18770 eval "$as_ac_var=no"
18772 rm -f conftest.err conftest.$ac_objext \
18773 conftest$ac_exeext conftest.$ac_ext
18775 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18776 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18777 if test `eval echo '${'$as_ac_var'}'` = yes; then
18778 cat >>confdefs.h <<_ACEOF
18779 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18780 _ACEOF
18783 done
18786 # PTY-related GNU extensions.
18788 for ac_func in getpt
18790 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18791 echo "$as_me:$LINENO: checking for $ac_func" >&5
18792 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18793 if eval "test \"\${$as_ac_var+set}\" = set"; then
18794 echo $ECHO_N "(cached) $ECHO_C" >&6
18795 else
18796 cat >conftest.$ac_ext <<_ACEOF
18797 /* confdefs.h. */
18798 _ACEOF
18799 cat confdefs.h >>conftest.$ac_ext
18800 cat >>conftest.$ac_ext <<_ACEOF
18801 /* end confdefs.h. */
18802 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18803 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18804 #define $ac_func innocuous_$ac_func
18806 /* System header to define __stub macros and hopefully few prototypes,
18807 which can conflict with char $ac_func (); below.
18808 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18809 <limits.h> exists even on freestanding compilers. */
18811 #ifdef __STDC__
18812 # include <limits.h>
18813 #else
18814 # include <assert.h>
18815 #endif
18817 #undef $ac_func
18819 /* Override any gcc2 internal prototype to avoid an error. */
18820 #ifdef __cplusplus
18821 extern "C"
18823 #endif
18824 /* We use char because int might match the return type of a gcc2
18825 builtin and then its argument prototype would still apply. */
18826 char $ac_func ();
18827 /* The GNU C library defines this for functions which it implements
18828 to always fail with ENOSYS. Some functions are actually named
18829 something starting with __ and the normal name is an alias. */
18830 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18831 choke me
18832 #else
18833 char (*f) () = $ac_func;
18834 #endif
18835 #ifdef __cplusplus
18837 #endif
18840 main ()
18842 return f != $ac_func;
18844 return 0;
18846 _ACEOF
18847 rm -f conftest.$ac_objext conftest$ac_exeext
18848 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18849 (eval $ac_link) 2>conftest.er1
18850 ac_status=$?
18851 grep -v '^ *+' conftest.er1 >conftest.err
18852 rm -f conftest.er1
18853 cat conftest.err >&5
18854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18855 (exit $ac_status); } &&
18856 { ac_try='test -z "$ac_c_werror_flag"
18857 || test ! -s conftest.err'
18858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18859 (eval $ac_try) 2>&5
18860 ac_status=$?
18861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18862 (exit $ac_status); }; } &&
18863 { ac_try='test -s conftest$ac_exeext'
18864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18865 (eval $ac_try) 2>&5
18866 ac_status=$?
18867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18868 (exit $ac_status); }; }; then
18869 eval "$as_ac_var=yes"
18870 else
18871 echo "$as_me: failed program was:" >&5
18872 sed 's/^/| /' conftest.$ac_ext >&5
18874 eval "$as_ac_var=no"
18876 rm -f conftest.err conftest.$ac_objext \
18877 conftest$ac_exeext conftest.$ac_ext
18879 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18880 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18881 if test `eval echo '${'$as_ac_var'}'` = yes; then
18882 cat >>confdefs.h <<_ACEOF
18883 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18884 _ACEOF
18887 done
18890 # Check this now, so that we will NOT find the above functions in ncurses.
18891 # That is because we have not set up to link ncurses in lib-src.
18892 # It's better to believe a function is not available
18893 # than to expect to find it in ncurses.
18895 echo "$as_me:$LINENO: checking for tparm in -lncurses" >&5
18896 echo $ECHO_N "checking for tparm in -lncurses... $ECHO_C" >&6
18897 if test "${ac_cv_lib_ncurses_tparm+set}" = set; then
18898 echo $ECHO_N "(cached) $ECHO_C" >&6
18899 else
18900 ac_check_lib_save_LIBS=$LIBS
18901 LIBS="-lncurses $LIBS"
18902 cat >conftest.$ac_ext <<_ACEOF
18903 /* confdefs.h. */
18904 _ACEOF
18905 cat confdefs.h >>conftest.$ac_ext
18906 cat >>conftest.$ac_ext <<_ACEOF
18907 /* end confdefs.h. */
18909 /* Override any gcc2 internal prototype to avoid an error. */
18910 #ifdef __cplusplus
18911 extern "C"
18912 #endif
18913 /* We use char because int might match the return type of a gcc2
18914 builtin and then its argument prototype would still apply. */
18915 char tparm ();
18917 main ()
18919 tparm ();
18921 return 0;
18923 _ACEOF
18924 rm -f conftest.$ac_objext conftest$ac_exeext
18925 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18926 (eval $ac_link) 2>conftest.er1
18927 ac_status=$?
18928 grep -v '^ *+' conftest.er1 >conftest.err
18929 rm -f conftest.er1
18930 cat conftest.err >&5
18931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18932 (exit $ac_status); } &&
18933 { ac_try='test -z "$ac_c_werror_flag"
18934 || test ! -s conftest.err'
18935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18936 (eval $ac_try) 2>&5
18937 ac_status=$?
18938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18939 (exit $ac_status); }; } &&
18940 { ac_try='test -s conftest$ac_exeext'
18941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18942 (eval $ac_try) 2>&5
18943 ac_status=$?
18944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18945 (exit $ac_status); }; }; then
18946 ac_cv_lib_ncurses_tparm=yes
18947 else
18948 echo "$as_me: failed program was:" >&5
18949 sed 's/^/| /' conftest.$ac_ext >&5
18951 ac_cv_lib_ncurses_tparm=no
18953 rm -f conftest.err conftest.$ac_objext \
18954 conftest$ac_exeext conftest.$ac_ext
18955 LIBS=$ac_check_lib_save_LIBS
18957 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tparm" >&5
18958 echo "${ECHO_T}$ac_cv_lib_ncurses_tparm" >&6
18959 if test $ac_cv_lib_ncurses_tparm = yes; then
18960 cat >>confdefs.h <<_ACEOF
18961 #define HAVE_LIBNCURSES 1
18962 _ACEOF
18964 LIBS="-lncurses $LIBS"
18969 # Do we need the Hesiod library to provide the support routines?
18970 if test "$with_hesiod" = yes ; then
18971 # Don't set $LIBS here -- see comments above.
18972 resolv=no
18973 echo "$as_me:$LINENO: checking for res_send" >&5
18974 echo $ECHO_N "checking for res_send... $ECHO_C" >&6
18975 if test "${ac_cv_func_res_send+set}" = set; then
18976 echo $ECHO_N "(cached) $ECHO_C" >&6
18977 else
18978 cat >conftest.$ac_ext <<_ACEOF
18979 /* confdefs.h. */
18980 _ACEOF
18981 cat confdefs.h >>conftest.$ac_ext
18982 cat >>conftest.$ac_ext <<_ACEOF
18983 /* end confdefs.h. */
18984 /* Define res_send to an innocuous variant, in case <limits.h> declares res_send.
18985 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18986 #define res_send innocuous_res_send
18988 /* System header to define __stub macros and hopefully few prototypes,
18989 which can conflict with char res_send (); below.
18990 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18991 <limits.h> exists even on freestanding compilers. */
18993 #ifdef __STDC__
18994 # include <limits.h>
18995 #else
18996 # include <assert.h>
18997 #endif
18999 #undef res_send
19001 /* Override any gcc2 internal prototype to avoid an error. */
19002 #ifdef __cplusplus
19003 extern "C"
19005 #endif
19006 /* We use char because int might match the return type of a gcc2
19007 builtin and then its argument prototype would still apply. */
19008 char res_send ();
19009 /* The GNU C library defines this for functions which it implements
19010 to always fail with ENOSYS. Some functions are actually named
19011 something starting with __ and the normal name is an alias. */
19012 #if defined (__stub_res_send) || defined (__stub___res_send)
19013 choke me
19014 #else
19015 char (*f) () = res_send;
19016 #endif
19017 #ifdef __cplusplus
19019 #endif
19022 main ()
19024 return f != res_send;
19026 return 0;
19028 _ACEOF
19029 rm -f conftest.$ac_objext conftest$ac_exeext
19030 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19031 (eval $ac_link) 2>conftest.er1
19032 ac_status=$?
19033 grep -v '^ *+' conftest.er1 >conftest.err
19034 rm -f conftest.er1
19035 cat conftest.err >&5
19036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19037 (exit $ac_status); } &&
19038 { ac_try='test -z "$ac_c_werror_flag"
19039 || test ! -s conftest.err'
19040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19041 (eval $ac_try) 2>&5
19042 ac_status=$?
19043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19044 (exit $ac_status); }; } &&
19045 { ac_try='test -s conftest$ac_exeext'
19046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19047 (eval $ac_try) 2>&5
19048 ac_status=$?
19049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19050 (exit $ac_status); }; }; then
19051 ac_cv_func_res_send=yes
19052 else
19053 echo "$as_me: failed program was:" >&5
19054 sed 's/^/| /' conftest.$ac_ext >&5
19056 ac_cv_func_res_send=no
19058 rm -f conftest.err conftest.$ac_objext \
19059 conftest$ac_exeext conftest.$ac_ext
19061 echo "$as_me:$LINENO: result: $ac_cv_func_res_send" >&5
19062 echo "${ECHO_T}$ac_cv_func_res_send" >&6
19063 if test $ac_cv_func_res_send = yes; then
19065 else
19066 echo "$as_me:$LINENO: checking for __res_send" >&5
19067 echo $ECHO_N "checking for __res_send... $ECHO_C" >&6
19068 if test "${ac_cv_func___res_send+set}" = set; then
19069 echo $ECHO_N "(cached) $ECHO_C" >&6
19070 else
19071 cat >conftest.$ac_ext <<_ACEOF
19072 /* confdefs.h. */
19073 _ACEOF
19074 cat confdefs.h >>conftest.$ac_ext
19075 cat >>conftest.$ac_ext <<_ACEOF
19076 /* end confdefs.h. */
19077 /* Define __res_send to an innocuous variant, in case <limits.h> declares __res_send.
19078 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19079 #define __res_send innocuous___res_send
19081 /* System header to define __stub macros and hopefully few prototypes,
19082 which can conflict with char __res_send (); below.
19083 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19084 <limits.h> exists even on freestanding compilers. */
19086 #ifdef __STDC__
19087 # include <limits.h>
19088 #else
19089 # include <assert.h>
19090 #endif
19092 #undef __res_send
19094 /* Override any gcc2 internal prototype to avoid an error. */
19095 #ifdef __cplusplus
19096 extern "C"
19098 #endif
19099 /* We use char because int might match the return type of a gcc2
19100 builtin and then its argument prototype would still apply. */
19101 char __res_send ();
19102 /* The GNU C library defines this for functions which it implements
19103 to always fail with ENOSYS. Some functions are actually named
19104 something starting with __ and the normal name is an alias. */
19105 #if defined (__stub___res_send) || defined (__stub_____res_send)
19106 choke me
19107 #else
19108 char (*f) () = __res_send;
19109 #endif
19110 #ifdef __cplusplus
19112 #endif
19115 main ()
19117 return f != __res_send;
19119 return 0;
19121 _ACEOF
19122 rm -f conftest.$ac_objext conftest$ac_exeext
19123 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19124 (eval $ac_link) 2>conftest.er1
19125 ac_status=$?
19126 grep -v '^ *+' conftest.er1 >conftest.err
19127 rm -f conftest.er1
19128 cat conftest.err >&5
19129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19130 (exit $ac_status); } &&
19131 { ac_try='test -z "$ac_c_werror_flag"
19132 || test ! -s conftest.err'
19133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19134 (eval $ac_try) 2>&5
19135 ac_status=$?
19136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19137 (exit $ac_status); }; } &&
19138 { ac_try='test -s conftest$ac_exeext'
19139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19140 (eval $ac_try) 2>&5
19141 ac_status=$?
19142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19143 (exit $ac_status); }; }; then
19144 ac_cv_func___res_send=yes
19145 else
19146 echo "$as_me: failed program was:" >&5
19147 sed 's/^/| /' conftest.$ac_ext >&5
19149 ac_cv_func___res_send=no
19151 rm -f conftest.err conftest.$ac_objext \
19152 conftest$ac_exeext conftest.$ac_ext
19154 echo "$as_me:$LINENO: result: $ac_cv_func___res_send" >&5
19155 echo "${ECHO_T}$ac_cv_func___res_send" >&6
19156 if test $ac_cv_func___res_send = yes; then
19158 else
19159 echo "$as_me:$LINENO: checking for res_send in -lresolv" >&5
19160 echo $ECHO_N "checking for res_send in -lresolv... $ECHO_C" >&6
19161 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
19162 echo $ECHO_N "(cached) $ECHO_C" >&6
19163 else
19164 ac_check_lib_save_LIBS=$LIBS
19165 LIBS="-lresolv $LIBS"
19166 cat >conftest.$ac_ext <<_ACEOF
19167 /* confdefs.h. */
19168 _ACEOF
19169 cat confdefs.h >>conftest.$ac_ext
19170 cat >>conftest.$ac_ext <<_ACEOF
19171 /* end confdefs.h. */
19173 /* Override any gcc2 internal prototype to avoid an error. */
19174 #ifdef __cplusplus
19175 extern "C"
19176 #endif
19177 /* We use char because int might match the return type of a gcc2
19178 builtin and then its argument prototype would still apply. */
19179 char res_send ();
19181 main ()
19183 res_send ();
19185 return 0;
19187 _ACEOF
19188 rm -f conftest.$ac_objext conftest$ac_exeext
19189 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19190 (eval $ac_link) 2>conftest.er1
19191 ac_status=$?
19192 grep -v '^ *+' conftest.er1 >conftest.err
19193 rm -f conftest.er1
19194 cat conftest.err >&5
19195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19196 (exit $ac_status); } &&
19197 { ac_try='test -z "$ac_c_werror_flag"
19198 || test ! -s conftest.err'
19199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19200 (eval $ac_try) 2>&5
19201 ac_status=$?
19202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19203 (exit $ac_status); }; } &&
19204 { ac_try='test -s conftest$ac_exeext'
19205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19206 (eval $ac_try) 2>&5
19207 ac_status=$?
19208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19209 (exit $ac_status); }; }; then
19210 ac_cv_lib_resolv_res_send=yes
19211 else
19212 echo "$as_me: failed program was:" >&5
19213 sed 's/^/| /' conftest.$ac_ext >&5
19215 ac_cv_lib_resolv_res_send=no
19217 rm -f conftest.err conftest.$ac_objext \
19218 conftest$ac_exeext conftest.$ac_ext
19219 LIBS=$ac_check_lib_save_LIBS
19221 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_send" >&5
19222 echo "${ECHO_T}$ac_cv_lib_resolv_res_send" >&6
19223 if test $ac_cv_lib_resolv_res_send = yes; then
19224 resolv=yes
19225 else
19226 echo "$as_me:$LINENO: checking for __res_send in -lresolv" >&5
19227 echo $ECHO_N "checking for __res_send in -lresolv... $ECHO_C" >&6
19228 if test "${ac_cv_lib_resolv___res_send+set}" = set; then
19229 echo $ECHO_N "(cached) $ECHO_C" >&6
19230 else
19231 ac_check_lib_save_LIBS=$LIBS
19232 LIBS="-lresolv $LIBS"
19233 cat >conftest.$ac_ext <<_ACEOF
19234 /* confdefs.h. */
19235 _ACEOF
19236 cat confdefs.h >>conftest.$ac_ext
19237 cat >>conftest.$ac_ext <<_ACEOF
19238 /* end confdefs.h. */
19240 /* Override any gcc2 internal prototype to avoid an error. */
19241 #ifdef __cplusplus
19242 extern "C"
19243 #endif
19244 /* We use char because int might match the return type of a gcc2
19245 builtin and then its argument prototype would still apply. */
19246 char __res_send ();
19248 main ()
19250 __res_send ();
19252 return 0;
19254 _ACEOF
19255 rm -f conftest.$ac_objext conftest$ac_exeext
19256 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19257 (eval $ac_link) 2>conftest.er1
19258 ac_status=$?
19259 grep -v '^ *+' conftest.er1 >conftest.err
19260 rm -f conftest.er1
19261 cat conftest.err >&5
19262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19263 (exit $ac_status); } &&
19264 { ac_try='test -z "$ac_c_werror_flag"
19265 || test ! -s conftest.err'
19266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19267 (eval $ac_try) 2>&5
19268 ac_status=$?
19269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19270 (exit $ac_status); }; } &&
19271 { ac_try='test -s conftest$ac_exeext'
19272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19273 (eval $ac_try) 2>&5
19274 ac_status=$?
19275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19276 (exit $ac_status); }; }; then
19277 ac_cv_lib_resolv___res_send=yes
19278 else
19279 echo "$as_me: failed program was:" >&5
19280 sed 's/^/| /' conftest.$ac_ext >&5
19282 ac_cv_lib_resolv___res_send=no
19284 rm -f conftest.err conftest.$ac_objext \
19285 conftest$ac_exeext conftest.$ac_ext
19286 LIBS=$ac_check_lib_save_LIBS
19288 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv___res_send" >&5
19289 echo "${ECHO_T}$ac_cv_lib_resolv___res_send" >&6
19290 if test $ac_cv_lib_resolv___res_send = yes; then
19291 resolv=yes
19300 if test "$resolv" = yes ; then
19301 RESOLVLIB=-lresolv
19303 cat >>confdefs.h <<\_ACEOF
19304 #define HAVE_LIBRESOLV 1
19305 _ACEOF
19307 else
19308 RESOLVLIB=
19310 echo "$as_me:$LINENO: checking for hes_getmailhost" >&5
19311 echo $ECHO_N "checking for hes_getmailhost... $ECHO_C" >&6
19312 if test "${ac_cv_func_hes_getmailhost+set}" = set; then
19313 echo $ECHO_N "(cached) $ECHO_C" >&6
19314 else
19315 cat >conftest.$ac_ext <<_ACEOF
19316 /* confdefs.h. */
19317 _ACEOF
19318 cat confdefs.h >>conftest.$ac_ext
19319 cat >>conftest.$ac_ext <<_ACEOF
19320 /* end confdefs.h. */
19321 /* Define hes_getmailhost to an innocuous variant, in case <limits.h> declares hes_getmailhost.
19322 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19323 #define hes_getmailhost innocuous_hes_getmailhost
19325 /* System header to define __stub macros and hopefully few prototypes,
19326 which can conflict with char hes_getmailhost (); below.
19327 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19328 <limits.h> exists even on freestanding compilers. */
19330 #ifdef __STDC__
19331 # include <limits.h>
19332 #else
19333 # include <assert.h>
19334 #endif
19336 #undef hes_getmailhost
19338 /* Override any gcc2 internal prototype to avoid an error. */
19339 #ifdef __cplusplus
19340 extern "C"
19342 #endif
19343 /* We use char because int might match the return type of a gcc2
19344 builtin and then its argument prototype would still apply. */
19345 char hes_getmailhost ();
19346 /* The GNU C library defines this for functions which it implements
19347 to always fail with ENOSYS. Some functions are actually named
19348 something starting with __ and the normal name is an alias. */
19349 #if defined (__stub_hes_getmailhost) || defined (__stub___hes_getmailhost)
19350 choke me
19351 #else
19352 char (*f) () = hes_getmailhost;
19353 #endif
19354 #ifdef __cplusplus
19356 #endif
19359 main ()
19361 return f != hes_getmailhost;
19363 return 0;
19365 _ACEOF
19366 rm -f conftest.$ac_objext conftest$ac_exeext
19367 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19368 (eval $ac_link) 2>conftest.er1
19369 ac_status=$?
19370 grep -v '^ *+' conftest.er1 >conftest.err
19371 rm -f conftest.er1
19372 cat conftest.err >&5
19373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19374 (exit $ac_status); } &&
19375 { ac_try='test -z "$ac_c_werror_flag"
19376 || test ! -s conftest.err'
19377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19378 (eval $ac_try) 2>&5
19379 ac_status=$?
19380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19381 (exit $ac_status); }; } &&
19382 { ac_try='test -s conftest$ac_exeext'
19383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19384 (eval $ac_try) 2>&5
19385 ac_status=$?
19386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19387 (exit $ac_status); }; }; then
19388 ac_cv_func_hes_getmailhost=yes
19389 else
19390 echo "$as_me: failed program was:" >&5
19391 sed 's/^/| /' conftest.$ac_ext >&5
19393 ac_cv_func_hes_getmailhost=no
19395 rm -f conftest.err conftest.$ac_objext \
19396 conftest$ac_exeext conftest.$ac_ext
19398 echo "$as_me:$LINENO: result: $ac_cv_func_hes_getmailhost" >&5
19399 echo "${ECHO_T}$ac_cv_func_hes_getmailhost" >&6
19400 if test $ac_cv_func_hes_getmailhost = yes; then
19402 else
19403 echo "$as_me:$LINENO: checking for hes_getmailhost in -lhesiod" >&5
19404 echo $ECHO_N "checking for hes_getmailhost in -lhesiod... $ECHO_C" >&6
19405 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
19406 echo $ECHO_N "(cached) $ECHO_C" >&6
19407 else
19408 ac_check_lib_save_LIBS=$LIBS
19409 LIBS="-lhesiod $RESOLVLIB $LIBS"
19410 cat >conftest.$ac_ext <<_ACEOF
19411 /* confdefs.h. */
19412 _ACEOF
19413 cat confdefs.h >>conftest.$ac_ext
19414 cat >>conftest.$ac_ext <<_ACEOF
19415 /* end confdefs.h. */
19417 /* Override any gcc2 internal prototype to avoid an error. */
19418 #ifdef __cplusplus
19419 extern "C"
19420 #endif
19421 /* We use char because int might match the return type of a gcc2
19422 builtin and then its argument prototype would still apply. */
19423 char hes_getmailhost ();
19425 main ()
19427 hes_getmailhost ();
19429 return 0;
19431 _ACEOF
19432 rm -f conftest.$ac_objext conftest$ac_exeext
19433 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19434 (eval $ac_link) 2>conftest.er1
19435 ac_status=$?
19436 grep -v '^ *+' conftest.er1 >conftest.err
19437 rm -f conftest.er1
19438 cat conftest.err >&5
19439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19440 (exit $ac_status); } &&
19441 { ac_try='test -z "$ac_c_werror_flag"
19442 || test ! -s conftest.err'
19443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19444 (eval $ac_try) 2>&5
19445 ac_status=$?
19446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19447 (exit $ac_status); }; } &&
19448 { ac_try='test -s conftest$ac_exeext'
19449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19450 (eval $ac_try) 2>&5
19451 ac_status=$?
19452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19453 (exit $ac_status); }; }; then
19454 ac_cv_lib_hesiod_hes_getmailhost=yes
19455 else
19456 echo "$as_me: failed program was:" >&5
19457 sed 's/^/| /' conftest.$ac_ext >&5
19459 ac_cv_lib_hesiod_hes_getmailhost=no
19461 rm -f conftest.err conftest.$ac_objext \
19462 conftest$ac_exeext conftest.$ac_ext
19463 LIBS=$ac_check_lib_save_LIBS
19465 echo "$as_me:$LINENO: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
19466 echo "${ECHO_T}$ac_cv_lib_hesiod_hes_getmailhost" >&6
19467 if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then
19469 cat >>confdefs.h <<\_ACEOF
19470 #define HAVE_LIBHESIOD 1
19471 _ACEOF
19473 else
19481 # These tell us which Kerberos-related libraries to use.
19482 if test "${with_kerberos+set}" = set; then
19484 echo "$as_me:$LINENO: checking for com_err in -lcom_err" >&5
19485 echo $ECHO_N "checking for com_err in -lcom_err... $ECHO_C" >&6
19486 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
19487 echo $ECHO_N "(cached) $ECHO_C" >&6
19488 else
19489 ac_check_lib_save_LIBS=$LIBS
19490 LIBS="-lcom_err $LIBS"
19491 cat >conftest.$ac_ext <<_ACEOF
19492 /* confdefs.h. */
19493 _ACEOF
19494 cat confdefs.h >>conftest.$ac_ext
19495 cat >>conftest.$ac_ext <<_ACEOF
19496 /* end confdefs.h. */
19498 /* Override any gcc2 internal prototype to avoid an error. */
19499 #ifdef __cplusplus
19500 extern "C"
19501 #endif
19502 /* We use char because int might match the return type of a gcc2
19503 builtin and then its argument prototype would still apply. */
19504 char com_err ();
19506 main ()
19508 com_err ();
19510 return 0;
19512 _ACEOF
19513 rm -f conftest.$ac_objext conftest$ac_exeext
19514 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19515 (eval $ac_link) 2>conftest.er1
19516 ac_status=$?
19517 grep -v '^ *+' conftest.er1 >conftest.err
19518 rm -f conftest.er1
19519 cat conftest.err >&5
19520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19521 (exit $ac_status); } &&
19522 { ac_try='test -z "$ac_c_werror_flag"
19523 || test ! -s conftest.err'
19524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19525 (eval $ac_try) 2>&5
19526 ac_status=$?
19527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19528 (exit $ac_status); }; } &&
19529 { ac_try='test -s conftest$ac_exeext'
19530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19531 (eval $ac_try) 2>&5
19532 ac_status=$?
19533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19534 (exit $ac_status); }; }; then
19535 ac_cv_lib_com_err_com_err=yes
19536 else
19537 echo "$as_me: failed program was:" >&5
19538 sed 's/^/| /' conftest.$ac_ext >&5
19540 ac_cv_lib_com_err_com_err=no
19542 rm -f conftest.err conftest.$ac_objext \
19543 conftest$ac_exeext conftest.$ac_ext
19544 LIBS=$ac_check_lib_save_LIBS
19546 echo "$as_me:$LINENO: result: $ac_cv_lib_com_err_com_err" >&5
19547 echo "${ECHO_T}$ac_cv_lib_com_err_com_err" >&6
19548 if test $ac_cv_lib_com_err_com_err = yes; then
19549 cat >>confdefs.h <<_ACEOF
19550 #define HAVE_LIBCOM_ERR 1
19551 _ACEOF
19553 LIBS="-lcom_err $LIBS"
19558 echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
19559 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lk5crypto... $ECHO_C" >&6
19560 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
19561 echo $ECHO_N "(cached) $ECHO_C" >&6
19562 else
19563 ac_check_lib_save_LIBS=$LIBS
19564 LIBS="-lk5crypto $LIBS"
19565 cat >conftest.$ac_ext <<_ACEOF
19566 /* confdefs.h. */
19567 _ACEOF
19568 cat confdefs.h >>conftest.$ac_ext
19569 cat >>conftest.$ac_ext <<_ACEOF
19570 /* end confdefs.h. */
19572 /* Override any gcc2 internal prototype to avoid an error. */
19573 #ifdef __cplusplus
19574 extern "C"
19575 #endif
19576 /* We use char because int might match the return type of a gcc2
19577 builtin and then its argument prototype would still apply. */
19578 char mit_des_cbc_encrypt ();
19580 main ()
19582 mit_des_cbc_encrypt ();
19584 return 0;
19586 _ACEOF
19587 rm -f conftest.$ac_objext conftest$ac_exeext
19588 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19589 (eval $ac_link) 2>conftest.er1
19590 ac_status=$?
19591 grep -v '^ *+' conftest.er1 >conftest.err
19592 rm -f conftest.er1
19593 cat conftest.err >&5
19594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19595 (exit $ac_status); } &&
19596 { ac_try='test -z "$ac_c_werror_flag"
19597 || test ! -s conftest.err'
19598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19599 (eval $ac_try) 2>&5
19600 ac_status=$?
19601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19602 (exit $ac_status); }; } &&
19603 { ac_try='test -s conftest$ac_exeext'
19604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19605 (eval $ac_try) 2>&5
19606 ac_status=$?
19607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19608 (exit $ac_status); }; }; then
19609 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
19610 else
19611 echo "$as_me: failed program was:" >&5
19612 sed 's/^/| /' conftest.$ac_ext >&5
19614 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
19616 rm -f conftest.err conftest.$ac_objext \
19617 conftest$ac_exeext conftest.$ac_ext
19618 LIBS=$ac_check_lib_save_LIBS
19620 echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
19621 echo "${ECHO_T}$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6
19622 if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then
19623 cat >>confdefs.h <<_ACEOF
19624 #define HAVE_LIBK5CRYPTO 1
19625 _ACEOF
19627 LIBS="-lk5crypto $LIBS"
19632 echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lcrypto" >&5
19633 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lcrypto... $ECHO_C" >&6
19634 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
19635 echo $ECHO_N "(cached) $ECHO_C" >&6
19636 else
19637 ac_check_lib_save_LIBS=$LIBS
19638 LIBS="-lcrypto $LIBS"
19639 cat >conftest.$ac_ext <<_ACEOF
19640 /* confdefs.h. */
19641 _ACEOF
19642 cat confdefs.h >>conftest.$ac_ext
19643 cat >>conftest.$ac_ext <<_ACEOF
19644 /* end confdefs.h. */
19646 /* Override any gcc2 internal prototype to avoid an error. */
19647 #ifdef __cplusplus
19648 extern "C"
19649 #endif
19650 /* We use char because int might match the return type of a gcc2
19651 builtin and then its argument prototype would still apply. */
19652 char mit_des_cbc_encrypt ();
19654 main ()
19656 mit_des_cbc_encrypt ();
19658 return 0;
19660 _ACEOF
19661 rm -f conftest.$ac_objext conftest$ac_exeext
19662 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19663 (eval $ac_link) 2>conftest.er1
19664 ac_status=$?
19665 grep -v '^ *+' conftest.er1 >conftest.err
19666 rm -f conftest.er1
19667 cat conftest.err >&5
19668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19669 (exit $ac_status); } &&
19670 { ac_try='test -z "$ac_c_werror_flag"
19671 || test ! -s conftest.err'
19672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19673 (eval $ac_try) 2>&5
19674 ac_status=$?
19675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19676 (exit $ac_status); }; } &&
19677 { ac_try='test -s conftest$ac_exeext'
19678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19679 (eval $ac_try) 2>&5
19680 ac_status=$?
19681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19682 (exit $ac_status); }; }; then
19683 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
19684 else
19685 echo "$as_me: failed program was:" >&5
19686 sed 's/^/| /' conftest.$ac_ext >&5
19688 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
19690 rm -f conftest.err conftest.$ac_objext \
19691 conftest$ac_exeext conftest.$ac_ext
19692 LIBS=$ac_check_lib_save_LIBS
19694 echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
19695 echo "${ECHO_T}$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6
19696 if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then
19697 cat >>confdefs.h <<_ACEOF
19698 #define HAVE_LIBCRYPTO 1
19699 _ACEOF
19701 LIBS="-lcrypto $LIBS"
19706 echo "$as_me:$LINENO: checking for krb5_init_context in -lkrb5" >&5
19707 echo $ECHO_N "checking for krb5_init_context in -lkrb5... $ECHO_C" >&6
19708 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
19709 echo $ECHO_N "(cached) $ECHO_C" >&6
19710 else
19711 ac_check_lib_save_LIBS=$LIBS
19712 LIBS="-lkrb5 $LIBS"
19713 cat >conftest.$ac_ext <<_ACEOF
19714 /* confdefs.h. */
19715 _ACEOF
19716 cat confdefs.h >>conftest.$ac_ext
19717 cat >>conftest.$ac_ext <<_ACEOF
19718 /* end confdefs.h. */
19720 /* Override any gcc2 internal prototype to avoid an error. */
19721 #ifdef __cplusplus
19722 extern "C"
19723 #endif
19724 /* We use char because int might match the return type of a gcc2
19725 builtin and then its argument prototype would still apply. */
19726 char krb5_init_context ();
19728 main ()
19730 krb5_init_context ();
19732 return 0;
19734 _ACEOF
19735 rm -f conftest.$ac_objext conftest$ac_exeext
19736 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19737 (eval $ac_link) 2>conftest.er1
19738 ac_status=$?
19739 grep -v '^ *+' conftest.er1 >conftest.err
19740 rm -f conftest.er1
19741 cat conftest.err >&5
19742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19743 (exit $ac_status); } &&
19744 { ac_try='test -z "$ac_c_werror_flag"
19745 || test ! -s conftest.err'
19746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19747 (eval $ac_try) 2>&5
19748 ac_status=$?
19749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19750 (exit $ac_status); }; } &&
19751 { ac_try='test -s conftest$ac_exeext'
19752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19753 (eval $ac_try) 2>&5
19754 ac_status=$?
19755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19756 (exit $ac_status); }; }; then
19757 ac_cv_lib_krb5_krb5_init_context=yes
19758 else
19759 echo "$as_me: failed program was:" >&5
19760 sed 's/^/| /' conftest.$ac_ext >&5
19762 ac_cv_lib_krb5_krb5_init_context=no
19764 rm -f conftest.err conftest.$ac_objext \
19765 conftest$ac_exeext conftest.$ac_ext
19766 LIBS=$ac_check_lib_save_LIBS
19768 echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_krb5_init_context" >&5
19769 echo "${ECHO_T}$ac_cv_lib_krb5_krb5_init_context" >&6
19770 if test $ac_cv_lib_krb5_krb5_init_context = yes; then
19771 cat >>confdefs.h <<_ACEOF
19772 #define HAVE_LIBKRB5 1
19773 _ACEOF
19775 LIBS="-lkrb5 $LIBS"
19779 if test "${with_kerberos5+set}" != set; then
19781 echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes425" >&5
19782 echo $ECHO_N "checking for des_cbc_encrypt in -ldes425... $ECHO_C" >&6
19783 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
19784 echo $ECHO_N "(cached) $ECHO_C" >&6
19785 else
19786 ac_check_lib_save_LIBS=$LIBS
19787 LIBS="-ldes425 $LIBS"
19788 cat >conftest.$ac_ext <<_ACEOF
19789 /* confdefs.h. */
19790 _ACEOF
19791 cat confdefs.h >>conftest.$ac_ext
19792 cat >>conftest.$ac_ext <<_ACEOF
19793 /* end confdefs.h. */
19795 /* Override any gcc2 internal prototype to avoid an error. */
19796 #ifdef __cplusplus
19797 extern "C"
19798 #endif
19799 /* We use char because int might match the return type of a gcc2
19800 builtin and then its argument prototype would still apply. */
19801 char des_cbc_encrypt ();
19803 main ()
19805 des_cbc_encrypt ();
19807 return 0;
19809 _ACEOF
19810 rm -f conftest.$ac_objext conftest$ac_exeext
19811 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19812 (eval $ac_link) 2>conftest.er1
19813 ac_status=$?
19814 grep -v '^ *+' conftest.er1 >conftest.err
19815 rm -f conftest.er1
19816 cat conftest.err >&5
19817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19818 (exit $ac_status); } &&
19819 { ac_try='test -z "$ac_c_werror_flag"
19820 || test ! -s conftest.err'
19821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19822 (eval $ac_try) 2>&5
19823 ac_status=$?
19824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19825 (exit $ac_status); }; } &&
19826 { ac_try='test -s conftest$ac_exeext'
19827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19828 (eval $ac_try) 2>&5
19829 ac_status=$?
19830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19831 (exit $ac_status); }; }; then
19832 ac_cv_lib_des425_des_cbc_encrypt=yes
19833 else
19834 echo "$as_me: failed program was:" >&5
19835 sed 's/^/| /' conftest.$ac_ext >&5
19837 ac_cv_lib_des425_des_cbc_encrypt=no
19839 rm -f conftest.err conftest.$ac_objext \
19840 conftest$ac_exeext conftest.$ac_ext
19841 LIBS=$ac_check_lib_save_LIBS
19843 echo "$as_me:$LINENO: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
19844 echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6
19845 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
19846 cat >>confdefs.h <<_ACEOF
19847 #define HAVE_LIBDES425 1
19848 _ACEOF
19850 LIBS="-ldes425 $LIBS"
19852 else
19854 echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes" >&5
19855 echo $ECHO_N "checking for des_cbc_encrypt in -ldes... $ECHO_C" >&6
19856 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
19857 echo $ECHO_N "(cached) $ECHO_C" >&6
19858 else
19859 ac_check_lib_save_LIBS=$LIBS
19860 LIBS="-ldes $LIBS"
19861 cat >conftest.$ac_ext <<_ACEOF
19862 /* confdefs.h. */
19863 _ACEOF
19864 cat confdefs.h >>conftest.$ac_ext
19865 cat >>conftest.$ac_ext <<_ACEOF
19866 /* end confdefs.h. */
19868 /* Override any gcc2 internal prototype to avoid an error. */
19869 #ifdef __cplusplus
19870 extern "C"
19871 #endif
19872 /* We use char because int might match the return type of a gcc2
19873 builtin and then its argument prototype would still apply. */
19874 char des_cbc_encrypt ();
19876 main ()
19878 des_cbc_encrypt ();
19880 return 0;
19882 _ACEOF
19883 rm -f conftest.$ac_objext conftest$ac_exeext
19884 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19885 (eval $ac_link) 2>conftest.er1
19886 ac_status=$?
19887 grep -v '^ *+' conftest.er1 >conftest.err
19888 rm -f conftest.er1
19889 cat conftest.err >&5
19890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19891 (exit $ac_status); } &&
19892 { ac_try='test -z "$ac_c_werror_flag"
19893 || test ! -s conftest.err'
19894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19895 (eval $ac_try) 2>&5
19896 ac_status=$?
19897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19898 (exit $ac_status); }; } &&
19899 { ac_try='test -s conftest$ac_exeext'
19900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19901 (eval $ac_try) 2>&5
19902 ac_status=$?
19903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19904 (exit $ac_status); }; }; then
19905 ac_cv_lib_des_des_cbc_encrypt=yes
19906 else
19907 echo "$as_me: failed program was:" >&5
19908 sed 's/^/| /' conftest.$ac_ext >&5
19910 ac_cv_lib_des_des_cbc_encrypt=no
19912 rm -f conftest.err conftest.$ac_objext \
19913 conftest$ac_exeext conftest.$ac_ext
19914 LIBS=$ac_check_lib_save_LIBS
19916 echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
19917 echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6
19918 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
19919 cat >>confdefs.h <<_ACEOF
19920 #define HAVE_LIBDES 1
19921 _ACEOF
19923 LIBS="-ldes $LIBS"
19930 echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb4" >&5
19931 echo $ECHO_N "checking for krb_get_cred in -lkrb4... $ECHO_C" >&6
19932 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
19933 echo $ECHO_N "(cached) $ECHO_C" >&6
19934 else
19935 ac_check_lib_save_LIBS=$LIBS
19936 LIBS="-lkrb4 $LIBS"
19937 cat >conftest.$ac_ext <<_ACEOF
19938 /* confdefs.h. */
19939 _ACEOF
19940 cat confdefs.h >>conftest.$ac_ext
19941 cat >>conftest.$ac_ext <<_ACEOF
19942 /* end confdefs.h. */
19944 /* Override any gcc2 internal prototype to avoid an error. */
19945 #ifdef __cplusplus
19946 extern "C"
19947 #endif
19948 /* We use char because int might match the return type of a gcc2
19949 builtin and then its argument prototype would still apply. */
19950 char krb_get_cred ();
19952 main ()
19954 krb_get_cred ();
19956 return 0;
19958 _ACEOF
19959 rm -f conftest.$ac_objext conftest$ac_exeext
19960 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19961 (eval $ac_link) 2>conftest.er1
19962 ac_status=$?
19963 grep -v '^ *+' conftest.er1 >conftest.err
19964 rm -f conftest.er1
19965 cat conftest.err >&5
19966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19967 (exit $ac_status); } &&
19968 { ac_try='test -z "$ac_c_werror_flag"
19969 || test ! -s conftest.err'
19970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19971 (eval $ac_try) 2>&5
19972 ac_status=$?
19973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19974 (exit $ac_status); }; } &&
19975 { ac_try='test -s conftest$ac_exeext'
19976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19977 (eval $ac_try) 2>&5
19978 ac_status=$?
19979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19980 (exit $ac_status); }; }; then
19981 ac_cv_lib_krb4_krb_get_cred=yes
19982 else
19983 echo "$as_me: failed program was:" >&5
19984 sed 's/^/| /' conftest.$ac_ext >&5
19986 ac_cv_lib_krb4_krb_get_cred=no
19988 rm -f conftest.err conftest.$ac_objext \
19989 conftest$ac_exeext conftest.$ac_ext
19990 LIBS=$ac_check_lib_save_LIBS
19992 echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_krb_get_cred" >&5
19993 echo "${ECHO_T}$ac_cv_lib_krb4_krb_get_cred" >&6
19994 if test $ac_cv_lib_krb4_krb_get_cred = yes; then
19995 cat >>confdefs.h <<_ACEOF
19996 #define HAVE_LIBKRB4 1
19997 _ACEOF
19999 LIBS="-lkrb4 $LIBS"
20001 else
20003 echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb" >&5
20004 echo $ECHO_N "checking for krb_get_cred in -lkrb... $ECHO_C" >&6
20005 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
20006 echo $ECHO_N "(cached) $ECHO_C" >&6
20007 else
20008 ac_check_lib_save_LIBS=$LIBS
20009 LIBS="-lkrb $LIBS"
20010 cat >conftest.$ac_ext <<_ACEOF
20011 /* confdefs.h. */
20012 _ACEOF
20013 cat confdefs.h >>conftest.$ac_ext
20014 cat >>conftest.$ac_ext <<_ACEOF
20015 /* end confdefs.h. */
20017 /* Override any gcc2 internal prototype to avoid an error. */
20018 #ifdef __cplusplus
20019 extern "C"
20020 #endif
20021 /* We use char because int might match the return type of a gcc2
20022 builtin and then its argument prototype would still apply. */
20023 char krb_get_cred ();
20025 main ()
20027 krb_get_cred ();
20029 return 0;
20031 _ACEOF
20032 rm -f conftest.$ac_objext conftest$ac_exeext
20033 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20034 (eval $ac_link) 2>conftest.er1
20035 ac_status=$?
20036 grep -v '^ *+' conftest.er1 >conftest.err
20037 rm -f conftest.er1
20038 cat conftest.err >&5
20039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20040 (exit $ac_status); } &&
20041 { ac_try='test -z "$ac_c_werror_flag"
20042 || test ! -s conftest.err'
20043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20044 (eval $ac_try) 2>&5
20045 ac_status=$?
20046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20047 (exit $ac_status); }; } &&
20048 { ac_try='test -s conftest$ac_exeext'
20049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20050 (eval $ac_try) 2>&5
20051 ac_status=$?
20052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20053 (exit $ac_status); }; }; then
20054 ac_cv_lib_krb_krb_get_cred=yes
20055 else
20056 echo "$as_me: failed program was:" >&5
20057 sed 's/^/| /' conftest.$ac_ext >&5
20059 ac_cv_lib_krb_krb_get_cred=no
20061 rm -f conftest.err conftest.$ac_objext \
20062 conftest$ac_exeext conftest.$ac_ext
20063 LIBS=$ac_check_lib_save_LIBS
20065 echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_get_cred" >&5
20066 echo "${ECHO_T}$ac_cv_lib_krb_krb_get_cred" >&6
20067 if test $ac_cv_lib_krb_krb_get_cred = yes; then
20068 cat >>confdefs.h <<_ACEOF
20069 #define HAVE_LIBKRB 1
20070 _ACEOF
20072 LIBS="-lkrb $LIBS"
20080 if test "${with_kerberos5+set}" = set; then
20082 for ac_header in krb5.h
20084 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20085 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20086 echo "$as_me:$LINENO: checking for $ac_header" >&5
20087 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20088 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20089 echo $ECHO_N "(cached) $ECHO_C" >&6
20091 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20092 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20093 else
20094 # Is the header compilable?
20095 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20096 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20097 cat >conftest.$ac_ext <<_ACEOF
20098 /* confdefs.h. */
20099 _ACEOF
20100 cat confdefs.h >>conftest.$ac_ext
20101 cat >>conftest.$ac_ext <<_ACEOF
20102 /* end confdefs.h. */
20103 $ac_includes_default
20104 #include <$ac_header>
20105 _ACEOF
20106 rm -f conftest.$ac_objext
20107 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20108 (eval $ac_compile) 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); } &&
20115 { ac_try='test -z "$ac_c_werror_flag"
20116 || test ! -s conftest.err'
20117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20118 (eval $ac_try) 2>&5
20119 ac_status=$?
20120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20121 (exit $ac_status); }; } &&
20122 { ac_try='test -s conftest.$ac_objext'
20123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20124 (eval $ac_try) 2>&5
20125 ac_status=$?
20126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20127 (exit $ac_status); }; }; then
20128 ac_header_compiler=yes
20129 else
20130 echo "$as_me: failed program was:" >&5
20131 sed 's/^/| /' conftest.$ac_ext >&5
20133 ac_header_compiler=no
20135 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20136 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20137 echo "${ECHO_T}$ac_header_compiler" >&6
20139 # Is the header present?
20140 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20141 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20142 cat >conftest.$ac_ext <<_ACEOF
20143 /* confdefs.h. */
20144 _ACEOF
20145 cat confdefs.h >>conftest.$ac_ext
20146 cat >>conftest.$ac_ext <<_ACEOF
20147 /* end confdefs.h. */
20148 #include <$ac_header>
20149 _ACEOF
20150 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20151 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20152 ac_status=$?
20153 grep -v '^ *+' conftest.er1 >conftest.err
20154 rm -f conftest.er1
20155 cat conftest.err >&5
20156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20157 (exit $ac_status); } >/dev/null; then
20158 if test -s conftest.err; then
20159 ac_cpp_err=$ac_c_preproc_warn_flag
20160 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20161 else
20162 ac_cpp_err=
20164 else
20165 ac_cpp_err=yes
20167 if test -z "$ac_cpp_err"; then
20168 ac_header_preproc=yes
20169 else
20170 echo "$as_me: failed program was:" >&5
20171 sed 's/^/| /' conftest.$ac_ext >&5
20173 ac_header_preproc=no
20175 rm -f conftest.err conftest.$ac_ext
20176 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20177 echo "${ECHO_T}$ac_header_preproc" >&6
20179 # So? What about this header?
20180 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20181 yes:no: )
20182 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20183 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20184 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20185 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20186 ac_header_preproc=yes
20188 no:yes:* )
20189 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20190 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20191 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20192 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20193 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20194 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20195 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20196 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20197 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20198 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20199 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20200 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20202 cat <<\_ASBOX
20203 ## ------------------------------------------ ##
20204 ## Report this to the AC_PACKAGE_NAME lists. ##
20205 ## ------------------------------------------ ##
20206 _ASBOX
20208 sed "s/^/$as_me: WARNING: /" >&2
20210 esac
20211 echo "$as_me:$LINENO: checking for $ac_header" >&5
20212 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20213 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20214 echo $ECHO_N "(cached) $ECHO_C" >&6
20215 else
20216 eval "$as_ac_Header=\$ac_header_preproc"
20218 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20219 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20222 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20223 cat >>confdefs.h <<_ACEOF
20224 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20225 _ACEOF
20229 done
20231 else
20233 for ac_header in des.h
20235 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20236 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20237 echo "$as_me:$LINENO: checking for $ac_header" >&5
20238 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20239 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20240 echo $ECHO_N "(cached) $ECHO_C" >&6
20242 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20243 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20244 else
20245 # Is the header compilable?
20246 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20247 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20248 cat >conftest.$ac_ext <<_ACEOF
20249 /* confdefs.h. */
20250 _ACEOF
20251 cat confdefs.h >>conftest.$ac_ext
20252 cat >>conftest.$ac_ext <<_ACEOF
20253 /* end confdefs.h. */
20254 $ac_includes_default
20255 #include <$ac_header>
20256 _ACEOF
20257 rm -f conftest.$ac_objext
20258 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20259 (eval $ac_compile) 2>conftest.er1
20260 ac_status=$?
20261 grep -v '^ *+' conftest.er1 >conftest.err
20262 rm -f conftest.er1
20263 cat conftest.err >&5
20264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20265 (exit $ac_status); } &&
20266 { ac_try='test -z "$ac_c_werror_flag"
20267 || test ! -s conftest.err'
20268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20269 (eval $ac_try) 2>&5
20270 ac_status=$?
20271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20272 (exit $ac_status); }; } &&
20273 { ac_try='test -s conftest.$ac_objext'
20274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20275 (eval $ac_try) 2>&5
20276 ac_status=$?
20277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20278 (exit $ac_status); }; }; then
20279 ac_header_compiler=yes
20280 else
20281 echo "$as_me: failed program was:" >&5
20282 sed 's/^/| /' conftest.$ac_ext >&5
20284 ac_header_compiler=no
20286 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20287 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20288 echo "${ECHO_T}$ac_header_compiler" >&6
20290 # Is the header present?
20291 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20292 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20293 cat >conftest.$ac_ext <<_ACEOF
20294 /* confdefs.h. */
20295 _ACEOF
20296 cat confdefs.h >>conftest.$ac_ext
20297 cat >>conftest.$ac_ext <<_ACEOF
20298 /* end confdefs.h. */
20299 #include <$ac_header>
20300 _ACEOF
20301 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20302 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20303 ac_status=$?
20304 grep -v '^ *+' conftest.er1 >conftest.err
20305 rm -f conftest.er1
20306 cat conftest.err >&5
20307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20308 (exit $ac_status); } >/dev/null; then
20309 if test -s conftest.err; then
20310 ac_cpp_err=$ac_c_preproc_warn_flag
20311 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20312 else
20313 ac_cpp_err=
20315 else
20316 ac_cpp_err=yes
20318 if test -z "$ac_cpp_err"; then
20319 ac_header_preproc=yes
20320 else
20321 echo "$as_me: failed program was:" >&5
20322 sed 's/^/| /' conftest.$ac_ext >&5
20324 ac_header_preproc=no
20326 rm -f conftest.err conftest.$ac_ext
20327 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20328 echo "${ECHO_T}$ac_header_preproc" >&6
20330 # So? What about this header?
20331 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20332 yes:no: )
20333 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20334 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20335 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20336 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20337 ac_header_preproc=yes
20339 no:yes:* )
20340 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20341 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20342 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20343 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20344 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20345 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20346 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20347 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20348 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20349 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20350 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20351 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20353 cat <<\_ASBOX
20354 ## ------------------------------------------ ##
20355 ## Report this to the AC_PACKAGE_NAME lists. ##
20356 ## ------------------------------------------ ##
20357 _ASBOX
20359 sed "s/^/$as_me: WARNING: /" >&2
20361 esac
20362 echo "$as_me:$LINENO: checking for $ac_header" >&5
20363 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20364 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20365 echo $ECHO_N "(cached) $ECHO_C" >&6
20366 else
20367 eval "$as_ac_Header=\$ac_header_preproc"
20369 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20370 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20373 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20374 cat >>confdefs.h <<_ACEOF
20375 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20376 _ACEOF
20378 else
20380 for ac_header in kerberosIV/des.h
20382 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20383 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20384 echo "$as_me:$LINENO: checking for $ac_header" >&5
20385 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20386 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20387 echo $ECHO_N "(cached) $ECHO_C" >&6
20389 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20390 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20391 else
20392 # Is the header compilable?
20393 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20394 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20395 cat >conftest.$ac_ext <<_ACEOF
20396 /* confdefs.h. */
20397 _ACEOF
20398 cat confdefs.h >>conftest.$ac_ext
20399 cat >>conftest.$ac_ext <<_ACEOF
20400 /* end confdefs.h. */
20401 $ac_includes_default
20402 #include <$ac_header>
20403 _ACEOF
20404 rm -f conftest.$ac_objext
20405 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20406 (eval $ac_compile) 2>conftest.er1
20407 ac_status=$?
20408 grep -v '^ *+' conftest.er1 >conftest.err
20409 rm -f conftest.er1
20410 cat conftest.err >&5
20411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20412 (exit $ac_status); } &&
20413 { ac_try='test -z "$ac_c_werror_flag"
20414 || test ! -s conftest.err'
20415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20416 (eval $ac_try) 2>&5
20417 ac_status=$?
20418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20419 (exit $ac_status); }; } &&
20420 { ac_try='test -s conftest.$ac_objext'
20421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20422 (eval $ac_try) 2>&5
20423 ac_status=$?
20424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20425 (exit $ac_status); }; }; then
20426 ac_header_compiler=yes
20427 else
20428 echo "$as_me: failed program was:" >&5
20429 sed 's/^/| /' conftest.$ac_ext >&5
20431 ac_header_compiler=no
20433 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20434 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20435 echo "${ECHO_T}$ac_header_compiler" >&6
20437 # Is the header present?
20438 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20439 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20440 cat >conftest.$ac_ext <<_ACEOF
20441 /* confdefs.h. */
20442 _ACEOF
20443 cat confdefs.h >>conftest.$ac_ext
20444 cat >>conftest.$ac_ext <<_ACEOF
20445 /* end confdefs.h. */
20446 #include <$ac_header>
20447 _ACEOF
20448 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20449 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20450 ac_status=$?
20451 grep -v '^ *+' conftest.er1 >conftest.err
20452 rm -f conftest.er1
20453 cat conftest.err >&5
20454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20455 (exit $ac_status); } >/dev/null; then
20456 if test -s conftest.err; then
20457 ac_cpp_err=$ac_c_preproc_warn_flag
20458 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20459 else
20460 ac_cpp_err=
20462 else
20463 ac_cpp_err=yes
20465 if test -z "$ac_cpp_err"; then
20466 ac_header_preproc=yes
20467 else
20468 echo "$as_me: failed program was:" >&5
20469 sed 's/^/| /' conftest.$ac_ext >&5
20471 ac_header_preproc=no
20473 rm -f conftest.err conftest.$ac_ext
20474 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20475 echo "${ECHO_T}$ac_header_preproc" >&6
20477 # So? What about this header?
20478 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20479 yes:no: )
20480 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20481 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20482 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20483 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20484 ac_header_preproc=yes
20486 no:yes:* )
20487 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20488 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20489 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20490 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20491 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20492 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20493 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20494 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20495 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20496 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20497 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20498 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20500 cat <<\_ASBOX
20501 ## ------------------------------------------ ##
20502 ## Report this to the AC_PACKAGE_NAME lists. ##
20503 ## ------------------------------------------ ##
20504 _ASBOX
20506 sed "s/^/$as_me: WARNING: /" >&2
20508 esac
20509 echo "$as_me:$LINENO: checking for $ac_header" >&5
20510 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20511 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20512 echo $ECHO_N "(cached) $ECHO_C" >&6
20513 else
20514 eval "$as_ac_Header=\$ac_header_preproc"
20516 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20517 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20520 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20521 cat >>confdefs.h <<_ACEOF
20522 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20523 _ACEOF
20525 else
20527 for ac_header in kerberos/des.h
20529 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20530 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20531 echo "$as_me:$LINENO: checking for $ac_header" >&5
20532 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20533 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20534 echo $ECHO_N "(cached) $ECHO_C" >&6
20536 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20537 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20538 else
20539 # Is the header compilable?
20540 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20541 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20542 cat >conftest.$ac_ext <<_ACEOF
20543 /* confdefs.h. */
20544 _ACEOF
20545 cat confdefs.h >>conftest.$ac_ext
20546 cat >>conftest.$ac_ext <<_ACEOF
20547 /* end confdefs.h. */
20548 $ac_includes_default
20549 #include <$ac_header>
20550 _ACEOF
20551 rm -f conftest.$ac_objext
20552 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20553 (eval $ac_compile) 2>conftest.er1
20554 ac_status=$?
20555 grep -v '^ *+' conftest.er1 >conftest.err
20556 rm -f conftest.er1
20557 cat conftest.err >&5
20558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20559 (exit $ac_status); } &&
20560 { ac_try='test -z "$ac_c_werror_flag"
20561 || test ! -s conftest.err'
20562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20563 (eval $ac_try) 2>&5
20564 ac_status=$?
20565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20566 (exit $ac_status); }; } &&
20567 { ac_try='test -s conftest.$ac_objext'
20568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20569 (eval $ac_try) 2>&5
20570 ac_status=$?
20571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20572 (exit $ac_status); }; }; then
20573 ac_header_compiler=yes
20574 else
20575 echo "$as_me: failed program was:" >&5
20576 sed 's/^/| /' conftest.$ac_ext >&5
20578 ac_header_compiler=no
20580 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20581 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20582 echo "${ECHO_T}$ac_header_compiler" >&6
20584 # Is the header present?
20585 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20586 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20587 cat >conftest.$ac_ext <<_ACEOF
20588 /* confdefs.h. */
20589 _ACEOF
20590 cat confdefs.h >>conftest.$ac_ext
20591 cat >>conftest.$ac_ext <<_ACEOF
20592 /* end confdefs.h. */
20593 #include <$ac_header>
20594 _ACEOF
20595 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20596 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20597 ac_status=$?
20598 grep -v '^ *+' conftest.er1 >conftest.err
20599 rm -f conftest.er1
20600 cat conftest.err >&5
20601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20602 (exit $ac_status); } >/dev/null; then
20603 if test -s conftest.err; then
20604 ac_cpp_err=$ac_c_preproc_warn_flag
20605 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20606 else
20607 ac_cpp_err=
20609 else
20610 ac_cpp_err=yes
20612 if test -z "$ac_cpp_err"; then
20613 ac_header_preproc=yes
20614 else
20615 echo "$as_me: failed program was:" >&5
20616 sed 's/^/| /' conftest.$ac_ext >&5
20618 ac_header_preproc=no
20620 rm -f conftest.err conftest.$ac_ext
20621 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20622 echo "${ECHO_T}$ac_header_preproc" >&6
20624 # So? What about this header?
20625 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20626 yes:no: )
20627 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20628 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20629 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20630 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20631 ac_header_preproc=yes
20633 no:yes:* )
20634 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20635 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20636 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20637 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20638 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20639 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20640 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20641 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20642 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20643 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20644 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20645 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20647 cat <<\_ASBOX
20648 ## ------------------------------------------ ##
20649 ## Report this to the AC_PACKAGE_NAME lists. ##
20650 ## ------------------------------------------ ##
20651 _ASBOX
20653 sed "s/^/$as_me: WARNING: /" >&2
20655 esac
20656 echo "$as_me:$LINENO: checking for $ac_header" >&5
20657 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20658 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20659 echo $ECHO_N "(cached) $ECHO_C" >&6
20660 else
20661 eval "$as_ac_Header=\$ac_header_preproc"
20663 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20664 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20667 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20668 cat >>confdefs.h <<_ACEOF
20669 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20670 _ACEOF
20674 done
20678 done
20682 done
20685 for ac_header in krb.h
20687 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20688 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20689 echo "$as_me:$LINENO: checking for $ac_header" >&5
20690 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20691 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20692 echo $ECHO_N "(cached) $ECHO_C" >&6
20694 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20695 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20696 else
20697 # Is the header compilable?
20698 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20699 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20700 cat >conftest.$ac_ext <<_ACEOF
20701 /* confdefs.h. */
20702 _ACEOF
20703 cat confdefs.h >>conftest.$ac_ext
20704 cat >>conftest.$ac_ext <<_ACEOF
20705 /* end confdefs.h. */
20706 $ac_includes_default
20707 #include <$ac_header>
20708 _ACEOF
20709 rm -f conftest.$ac_objext
20710 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20711 (eval $ac_compile) 2>conftest.er1
20712 ac_status=$?
20713 grep -v '^ *+' conftest.er1 >conftest.err
20714 rm -f conftest.er1
20715 cat conftest.err >&5
20716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20717 (exit $ac_status); } &&
20718 { ac_try='test -z "$ac_c_werror_flag"
20719 || test ! -s conftest.err'
20720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20721 (eval $ac_try) 2>&5
20722 ac_status=$?
20723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20724 (exit $ac_status); }; } &&
20725 { ac_try='test -s conftest.$ac_objext'
20726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20727 (eval $ac_try) 2>&5
20728 ac_status=$?
20729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20730 (exit $ac_status); }; }; then
20731 ac_header_compiler=yes
20732 else
20733 echo "$as_me: failed program was:" >&5
20734 sed 's/^/| /' conftest.$ac_ext >&5
20736 ac_header_compiler=no
20738 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20739 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20740 echo "${ECHO_T}$ac_header_compiler" >&6
20742 # Is the header present?
20743 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20744 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20745 cat >conftest.$ac_ext <<_ACEOF
20746 /* confdefs.h. */
20747 _ACEOF
20748 cat confdefs.h >>conftest.$ac_ext
20749 cat >>conftest.$ac_ext <<_ACEOF
20750 /* end confdefs.h. */
20751 #include <$ac_header>
20752 _ACEOF
20753 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20754 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20755 ac_status=$?
20756 grep -v '^ *+' conftest.er1 >conftest.err
20757 rm -f conftest.er1
20758 cat conftest.err >&5
20759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20760 (exit $ac_status); } >/dev/null; then
20761 if test -s conftest.err; then
20762 ac_cpp_err=$ac_c_preproc_warn_flag
20763 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20764 else
20765 ac_cpp_err=
20767 else
20768 ac_cpp_err=yes
20770 if test -z "$ac_cpp_err"; then
20771 ac_header_preproc=yes
20772 else
20773 echo "$as_me: failed program was:" >&5
20774 sed 's/^/| /' conftest.$ac_ext >&5
20776 ac_header_preproc=no
20778 rm -f conftest.err conftest.$ac_ext
20779 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20780 echo "${ECHO_T}$ac_header_preproc" >&6
20782 # So? What about this header?
20783 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20784 yes:no: )
20785 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20786 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20787 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20788 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20789 ac_header_preproc=yes
20791 no:yes:* )
20792 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20793 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20794 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20795 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20796 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20797 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20798 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20799 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20800 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20801 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20802 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20803 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20805 cat <<\_ASBOX
20806 ## ------------------------------------------ ##
20807 ## Report this to the AC_PACKAGE_NAME lists. ##
20808 ## ------------------------------------------ ##
20809 _ASBOX
20811 sed "s/^/$as_me: WARNING: /" >&2
20813 esac
20814 echo "$as_me:$LINENO: checking for $ac_header" >&5
20815 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20816 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20817 echo $ECHO_N "(cached) $ECHO_C" >&6
20818 else
20819 eval "$as_ac_Header=\$ac_header_preproc"
20821 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20822 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20825 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20826 cat >>confdefs.h <<_ACEOF
20827 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20828 _ACEOF
20830 else
20832 for ac_header in kerberosIV/krb.h
20834 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20835 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20836 echo "$as_me:$LINENO: checking for $ac_header" >&5
20837 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20838 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20839 echo $ECHO_N "(cached) $ECHO_C" >&6
20841 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20842 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20843 else
20844 # Is the header compilable?
20845 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20846 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20847 cat >conftest.$ac_ext <<_ACEOF
20848 /* confdefs.h. */
20849 _ACEOF
20850 cat confdefs.h >>conftest.$ac_ext
20851 cat >>conftest.$ac_ext <<_ACEOF
20852 /* end confdefs.h. */
20853 $ac_includes_default
20854 #include <$ac_header>
20855 _ACEOF
20856 rm -f conftest.$ac_objext
20857 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20858 (eval $ac_compile) 2>conftest.er1
20859 ac_status=$?
20860 grep -v '^ *+' conftest.er1 >conftest.err
20861 rm -f conftest.er1
20862 cat conftest.err >&5
20863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20864 (exit $ac_status); } &&
20865 { ac_try='test -z "$ac_c_werror_flag"
20866 || test ! -s conftest.err'
20867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20868 (eval $ac_try) 2>&5
20869 ac_status=$?
20870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20871 (exit $ac_status); }; } &&
20872 { ac_try='test -s conftest.$ac_objext'
20873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20874 (eval $ac_try) 2>&5
20875 ac_status=$?
20876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20877 (exit $ac_status); }; }; then
20878 ac_header_compiler=yes
20879 else
20880 echo "$as_me: failed program was:" >&5
20881 sed 's/^/| /' conftest.$ac_ext >&5
20883 ac_header_compiler=no
20885 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20886 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20887 echo "${ECHO_T}$ac_header_compiler" >&6
20889 # Is the header present?
20890 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20891 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20892 cat >conftest.$ac_ext <<_ACEOF
20893 /* confdefs.h. */
20894 _ACEOF
20895 cat confdefs.h >>conftest.$ac_ext
20896 cat >>conftest.$ac_ext <<_ACEOF
20897 /* end confdefs.h. */
20898 #include <$ac_header>
20899 _ACEOF
20900 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20901 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20902 ac_status=$?
20903 grep -v '^ *+' conftest.er1 >conftest.err
20904 rm -f conftest.er1
20905 cat conftest.err >&5
20906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20907 (exit $ac_status); } >/dev/null; then
20908 if test -s conftest.err; then
20909 ac_cpp_err=$ac_c_preproc_warn_flag
20910 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20911 else
20912 ac_cpp_err=
20914 else
20915 ac_cpp_err=yes
20917 if test -z "$ac_cpp_err"; then
20918 ac_header_preproc=yes
20919 else
20920 echo "$as_me: failed program was:" >&5
20921 sed 's/^/| /' conftest.$ac_ext >&5
20923 ac_header_preproc=no
20925 rm -f conftest.err conftest.$ac_ext
20926 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20927 echo "${ECHO_T}$ac_header_preproc" >&6
20929 # So? What about this header?
20930 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20931 yes:no: )
20932 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20933 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20934 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20935 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20936 ac_header_preproc=yes
20938 no:yes:* )
20939 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20940 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20941 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20942 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20943 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20944 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20945 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20946 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20947 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20948 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20949 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20950 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20952 cat <<\_ASBOX
20953 ## ------------------------------------------ ##
20954 ## Report this to the AC_PACKAGE_NAME lists. ##
20955 ## ------------------------------------------ ##
20956 _ASBOX
20958 sed "s/^/$as_me: WARNING: /" >&2
20960 esac
20961 echo "$as_me:$LINENO: checking for $ac_header" >&5
20962 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20963 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20964 echo $ECHO_N "(cached) $ECHO_C" >&6
20965 else
20966 eval "$as_ac_Header=\$ac_header_preproc"
20968 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20969 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20972 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20973 cat >>confdefs.h <<_ACEOF
20974 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20975 _ACEOF
20977 else
20979 for ac_header in kerberos/krb.h
20981 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20982 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20983 echo "$as_me:$LINENO: checking for $ac_header" >&5
20984 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20985 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20986 echo $ECHO_N "(cached) $ECHO_C" >&6
20988 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20989 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20990 else
20991 # Is the header compilable?
20992 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20993 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20994 cat >conftest.$ac_ext <<_ACEOF
20995 /* confdefs.h. */
20996 _ACEOF
20997 cat confdefs.h >>conftest.$ac_ext
20998 cat >>conftest.$ac_ext <<_ACEOF
20999 /* end confdefs.h. */
21000 $ac_includes_default
21001 #include <$ac_header>
21002 _ACEOF
21003 rm -f conftest.$ac_objext
21004 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21005 (eval $ac_compile) 2>conftest.er1
21006 ac_status=$?
21007 grep -v '^ *+' conftest.er1 >conftest.err
21008 rm -f conftest.er1
21009 cat conftest.err >&5
21010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21011 (exit $ac_status); } &&
21012 { ac_try='test -z "$ac_c_werror_flag"
21013 || test ! -s conftest.err'
21014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21015 (eval $ac_try) 2>&5
21016 ac_status=$?
21017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21018 (exit $ac_status); }; } &&
21019 { ac_try='test -s conftest.$ac_objext'
21020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21021 (eval $ac_try) 2>&5
21022 ac_status=$?
21023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21024 (exit $ac_status); }; }; then
21025 ac_header_compiler=yes
21026 else
21027 echo "$as_me: failed program was:" >&5
21028 sed 's/^/| /' conftest.$ac_ext >&5
21030 ac_header_compiler=no
21032 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21033 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21034 echo "${ECHO_T}$ac_header_compiler" >&6
21036 # Is the header present?
21037 echo "$as_me:$LINENO: checking $ac_header presence" >&5
21038 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21039 cat >conftest.$ac_ext <<_ACEOF
21040 /* confdefs.h. */
21041 _ACEOF
21042 cat confdefs.h >>conftest.$ac_ext
21043 cat >>conftest.$ac_ext <<_ACEOF
21044 /* end confdefs.h. */
21045 #include <$ac_header>
21046 _ACEOF
21047 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21048 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21049 ac_status=$?
21050 grep -v '^ *+' conftest.er1 >conftest.err
21051 rm -f conftest.er1
21052 cat conftest.err >&5
21053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21054 (exit $ac_status); } >/dev/null; then
21055 if test -s conftest.err; then
21056 ac_cpp_err=$ac_c_preproc_warn_flag
21057 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21058 else
21059 ac_cpp_err=
21061 else
21062 ac_cpp_err=yes
21064 if test -z "$ac_cpp_err"; then
21065 ac_header_preproc=yes
21066 else
21067 echo "$as_me: failed program was:" >&5
21068 sed 's/^/| /' conftest.$ac_ext >&5
21070 ac_header_preproc=no
21072 rm -f conftest.err conftest.$ac_ext
21073 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21074 echo "${ECHO_T}$ac_header_preproc" >&6
21076 # So? What about this header?
21077 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21078 yes:no: )
21079 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21080 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21081 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21082 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21083 ac_header_preproc=yes
21085 no:yes:* )
21086 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21087 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21088 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21089 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21090 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21091 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21092 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21093 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21094 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21095 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21096 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21097 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21099 cat <<\_ASBOX
21100 ## ------------------------------------------ ##
21101 ## Report this to the AC_PACKAGE_NAME lists. ##
21102 ## ------------------------------------------ ##
21103 _ASBOX
21105 sed "s/^/$as_me: WARNING: /" >&2
21107 esac
21108 echo "$as_me:$LINENO: checking for $ac_header" >&5
21109 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21110 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21111 echo $ECHO_N "(cached) $ECHO_C" >&6
21112 else
21113 eval "$as_ac_Header=\$ac_header_preproc"
21115 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21116 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21119 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21120 cat >>confdefs.h <<_ACEOF
21121 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21122 _ACEOF
21126 done
21130 done
21134 done
21138 for ac_header in com_err.h
21140 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21141 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21142 echo "$as_me:$LINENO: checking for $ac_header" >&5
21143 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21144 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21145 echo $ECHO_N "(cached) $ECHO_C" >&6
21147 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21148 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21149 else
21150 # Is the header compilable?
21151 echo "$as_me:$LINENO: checking $ac_header usability" >&5
21152 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21153 cat >conftest.$ac_ext <<_ACEOF
21154 /* confdefs.h. */
21155 _ACEOF
21156 cat confdefs.h >>conftest.$ac_ext
21157 cat >>conftest.$ac_ext <<_ACEOF
21158 /* end confdefs.h. */
21159 $ac_includes_default
21160 #include <$ac_header>
21161 _ACEOF
21162 rm -f conftest.$ac_objext
21163 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21164 (eval $ac_compile) 2>conftest.er1
21165 ac_status=$?
21166 grep -v '^ *+' conftest.er1 >conftest.err
21167 rm -f conftest.er1
21168 cat conftest.err >&5
21169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21170 (exit $ac_status); } &&
21171 { ac_try='test -z "$ac_c_werror_flag"
21172 || test ! -s conftest.err'
21173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21174 (eval $ac_try) 2>&5
21175 ac_status=$?
21176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21177 (exit $ac_status); }; } &&
21178 { ac_try='test -s conftest.$ac_objext'
21179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21180 (eval $ac_try) 2>&5
21181 ac_status=$?
21182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21183 (exit $ac_status); }; }; then
21184 ac_header_compiler=yes
21185 else
21186 echo "$as_me: failed program was:" >&5
21187 sed 's/^/| /' conftest.$ac_ext >&5
21189 ac_header_compiler=no
21191 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21192 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21193 echo "${ECHO_T}$ac_header_compiler" >&6
21195 # Is the header present?
21196 echo "$as_me:$LINENO: checking $ac_header presence" >&5
21197 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21198 cat >conftest.$ac_ext <<_ACEOF
21199 /* confdefs.h. */
21200 _ACEOF
21201 cat confdefs.h >>conftest.$ac_ext
21202 cat >>conftest.$ac_ext <<_ACEOF
21203 /* end confdefs.h. */
21204 #include <$ac_header>
21205 _ACEOF
21206 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21207 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21208 ac_status=$?
21209 grep -v '^ *+' conftest.er1 >conftest.err
21210 rm -f conftest.er1
21211 cat conftest.err >&5
21212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21213 (exit $ac_status); } >/dev/null; then
21214 if test -s conftest.err; then
21215 ac_cpp_err=$ac_c_preproc_warn_flag
21216 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21217 else
21218 ac_cpp_err=
21220 else
21221 ac_cpp_err=yes
21223 if test -z "$ac_cpp_err"; then
21224 ac_header_preproc=yes
21225 else
21226 echo "$as_me: failed program was:" >&5
21227 sed 's/^/| /' conftest.$ac_ext >&5
21229 ac_header_preproc=no
21231 rm -f conftest.err conftest.$ac_ext
21232 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21233 echo "${ECHO_T}$ac_header_preproc" >&6
21235 # So? What about this header?
21236 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21237 yes:no: )
21238 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21239 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21240 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21241 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21242 ac_header_preproc=yes
21244 no:yes:* )
21245 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21246 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21247 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21248 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21249 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21250 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21251 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21252 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21253 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21254 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21255 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21256 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21258 cat <<\_ASBOX
21259 ## ------------------------------------------ ##
21260 ## Report this to the AC_PACKAGE_NAME lists. ##
21261 ## ------------------------------------------ ##
21262 _ASBOX
21264 sed "s/^/$as_me: WARNING: /" >&2
21266 esac
21267 echo "$as_me:$LINENO: checking for $ac_header" >&5
21268 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21269 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21270 echo $ECHO_N "(cached) $ECHO_C" >&6
21271 else
21272 eval "$as_ac_Header=\$ac_header_preproc"
21274 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21275 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21278 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21279 cat >>confdefs.h <<_ACEOF
21280 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21281 _ACEOF
21285 done
21289 # Solaris requires -lintl if you want strerror (which calls dgettext)
21290 # to return localized messages.
21292 echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
21293 echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6
21294 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
21295 echo $ECHO_N "(cached) $ECHO_C" >&6
21296 else
21297 ac_check_lib_save_LIBS=$LIBS
21298 LIBS="-lintl $LIBS"
21299 cat >conftest.$ac_ext <<_ACEOF
21300 /* confdefs.h. */
21301 _ACEOF
21302 cat confdefs.h >>conftest.$ac_ext
21303 cat >>conftest.$ac_ext <<_ACEOF
21304 /* end confdefs.h. */
21306 /* Override any gcc2 internal prototype to avoid an error. */
21307 #ifdef __cplusplus
21308 extern "C"
21309 #endif
21310 /* We use char because int might match the return type of a gcc2
21311 builtin and then its argument prototype would still apply. */
21312 char dgettext ();
21314 main ()
21316 dgettext ();
21318 return 0;
21320 _ACEOF
21321 rm -f conftest.$ac_objext conftest$ac_exeext
21322 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21323 (eval $ac_link) 2>conftest.er1
21324 ac_status=$?
21325 grep -v '^ *+' conftest.er1 >conftest.err
21326 rm -f conftest.er1
21327 cat conftest.err >&5
21328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21329 (exit $ac_status); } &&
21330 { ac_try='test -z "$ac_c_werror_flag"
21331 || test ! -s conftest.err'
21332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21333 (eval $ac_try) 2>&5
21334 ac_status=$?
21335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21336 (exit $ac_status); }; } &&
21337 { ac_try='test -s conftest$ac_exeext'
21338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21339 (eval $ac_try) 2>&5
21340 ac_status=$?
21341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21342 (exit $ac_status); }; }; then
21343 ac_cv_lib_intl_dgettext=yes
21344 else
21345 echo "$as_me: failed program was:" >&5
21346 sed 's/^/| /' conftest.$ac_ext >&5
21348 ac_cv_lib_intl_dgettext=no
21350 rm -f conftest.err conftest.$ac_objext \
21351 conftest$ac_exeext conftest.$ac_ext
21352 LIBS=$ac_check_lib_save_LIBS
21354 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
21355 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6
21356 if test $ac_cv_lib_intl_dgettext = yes; then
21357 cat >>confdefs.h <<_ACEOF
21358 #define HAVE_LIBINTL 1
21359 _ACEOF
21361 LIBS="-lintl $LIBS"
21366 echo "$as_me:$LINENO: checking whether localtime caches TZ" >&5
21367 echo $ECHO_N "checking whether localtime caches TZ... $ECHO_C" >&6
21368 if test "${emacs_cv_localtime_cache+set}" = set; then
21369 echo $ECHO_N "(cached) $ECHO_C" >&6
21370 else
21371 if test x$ac_cv_func_tzset = xyes; then
21372 if test "$cross_compiling" = yes; then
21373 # If we have tzset, assume the worst when cross-compiling.
21374 emacs_cv_localtime_cache=yes
21375 else
21376 cat >conftest.$ac_ext <<_ACEOF
21377 /* confdefs.h. */
21378 _ACEOF
21379 cat confdefs.h >>conftest.$ac_ext
21380 cat >>conftest.$ac_ext <<_ACEOF
21381 /* end confdefs.h. */
21382 #include <time.h>
21383 extern char **environ;
21384 unset_TZ ()
21386 char **from, **to;
21387 for (to = from = environ; (*to = *from); from++)
21388 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
21389 to++;
21391 char TZ_GMT0[] = "TZ=GMT0";
21392 char TZ_PST8[] = "TZ=PST8";
21393 main()
21395 time_t now = time ((time_t *) 0);
21396 int hour_GMT0, hour_unset;
21397 if (putenv (TZ_GMT0) != 0)
21398 exit (1);
21399 hour_GMT0 = localtime (&now)->tm_hour;
21400 unset_TZ ();
21401 hour_unset = localtime (&now)->tm_hour;
21402 if (putenv (TZ_PST8) != 0)
21403 exit (1);
21404 if (localtime (&now)->tm_hour == hour_GMT0)
21405 exit (1);
21406 unset_TZ ();
21407 if (localtime (&now)->tm_hour != hour_unset)
21408 exit (1);
21409 exit (0);
21411 _ACEOF
21412 rm -f conftest$ac_exeext
21413 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21414 (eval $ac_link) 2>&5
21415 ac_status=$?
21416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21417 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21419 (eval $ac_try) 2>&5
21420 ac_status=$?
21421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21422 (exit $ac_status); }; }; then
21423 emacs_cv_localtime_cache=no
21424 else
21425 echo "$as_me: program exited with status $ac_status" >&5
21426 echo "$as_me: failed program was:" >&5
21427 sed 's/^/| /' conftest.$ac_ext >&5
21429 ( exit $ac_status )
21430 emacs_cv_localtime_cache=yes
21432 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21434 else
21435 # If we lack tzset, report that localtime does not cache TZ,
21436 # since we can't invalidate the cache if we don't have tzset.
21437 emacs_cv_localtime_cache=no
21440 echo "$as_me:$LINENO: result: $emacs_cv_localtime_cache" >&5
21441 echo "${ECHO_T}$emacs_cv_localtime_cache" >&6
21442 if test $emacs_cv_localtime_cache = yes; then
21444 cat >>confdefs.h <<\_ACEOF
21445 #define LOCALTIME_CACHE 1
21446 _ACEOF
21450 if test "x$HAVE_TIMEVAL" = xyes; then
21452 for ac_func in gettimeofday
21454 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21455 echo "$as_me:$LINENO: checking for $ac_func" >&5
21456 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21457 if eval "test \"\${$as_ac_var+set}\" = set"; then
21458 echo $ECHO_N "(cached) $ECHO_C" >&6
21459 else
21460 cat >conftest.$ac_ext <<_ACEOF
21461 /* confdefs.h. */
21462 _ACEOF
21463 cat confdefs.h >>conftest.$ac_ext
21464 cat >>conftest.$ac_ext <<_ACEOF
21465 /* end confdefs.h. */
21466 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21467 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21468 #define $ac_func innocuous_$ac_func
21470 /* System header to define __stub macros and hopefully few prototypes,
21471 which can conflict with char $ac_func (); below.
21472 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21473 <limits.h> exists even on freestanding compilers. */
21475 #ifdef __STDC__
21476 # include <limits.h>
21477 #else
21478 # include <assert.h>
21479 #endif
21481 #undef $ac_func
21483 /* Override any gcc2 internal prototype to avoid an error. */
21484 #ifdef __cplusplus
21485 extern "C"
21487 #endif
21488 /* We use char because int might match the return type of a gcc2
21489 builtin and then its argument prototype would still apply. */
21490 char $ac_func ();
21491 /* The GNU C library defines this for functions which it implements
21492 to always fail with ENOSYS. Some functions are actually named
21493 something starting with __ and the normal name is an alias. */
21494 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21495 choke me
21496 #else
21497 char (*f) () = $ac_func;
21498 #endif
21499 #ifdef __cplusplus
21501 #endif
21504 main ()
21506 return f != $ac_func;
21508 return 0;
21510 _ACEOF
21511 rm -f conftest.$ac_objext conftest$ac_exeext
21512 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21513 (eval $ac_link) 2>conftest.er1
21514 ac_status=$?
21515 grep -v '^ *+' conftest.er1 >conftest.err
21516 rm -f conftest.er1
21517 cat conftest.err >&5
21518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21519 (exit $ac_status); } &&
21520 { ac_try='test -z "$ac_c_werror_flag"
21521 || test ! -s conftest.err'
21522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21523 (eval $ac_try) 2>&5
21524 ac_status=$?
21525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21526 (exit $ac_status); }; } &&
21527 { ac_try='test -s conftest$ac_exeext'
21528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21529 (eval $ac_try) 2>&5
21530 ac_status=$?
21531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21532 (exit $ac_status); }; }; then
21533 eval "$as_ac_var=yes"
21534 else
21535 echo "$as_me: failed program was:" >&5
21536 sed 's/^/| /' conftest.$ac_ext >&5
21538 eval "$as_ac_var=no"
21540 rm -f conftest.err conftest.$ac_objext \
21541 conftest$ac_exeext conftest.$ac_ext
21543 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21544 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21545 if test `eval echo '${'$as_ac_var'}'` = yes; then
21546 cat >>confdefs.h <<_ACEOF
21547 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21548 _ACEOF
21551 done
21553 if test $ac_cv_func_gettimeofday = yes; then
21554 echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments" >&5
21555 echo $ECHO_N "checking whether gettimeofday can accept two arguments... $ECHO_C" >&6
21556 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
21557 echo $ECHO_N "(cached) $ECHO_C" >&6
21558 else
21559 cat >conftest.$ac_ext <<_ACEOF
21560 /* confdefs.h. */
21561 _ACEOF
21562 cat confdefs.h >>conftest.$ac_ext
21563 cat >>conftest.$ac_ext <<_ACEOF
21564 /* end confdefs.h. */
21566 #ifdef TIME_WITH_SYS_TIME
21567 #include <sys/time.h>
21568 #include <time.h>
21569 #else
21570 #ifdef HAVE_SYS_TIME_H
21571 #include <sys/time.h>
21572 #else
21573 #include <time.h>
21574 #endif
21575 #endif
21577 main ()
21579 struct timeval time;
21580 gettimeofday (&time, 0);
21582 return 0;
21584 _ACEOF
21585 rm -f conftest.$ac_objext
21586 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21587 (eval $ac_compile) 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); } &&
21594 { ac_try='test -z "$ac_c_werror_flag"
21595 || test ! -s conftest.err'
21596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21597 (eval $ac_try) 2>&5
21598 ac_status=$?
21599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21600 (exit $ac_status); }; } &&
21601 { ac_try='test -s conftest.$ac_objext'
21602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21603 (eval $ac_try) 2>&5
21604 ac_status=$?
21605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21606 (exit $ac_status); }; }; then
21607 emacs_cv_gettimeofday_two_arguments=yes
21608 else
21609 echo "$as_me: failed program was:" >&5
21610 sed 's/^/| /' conftest.$ac_ext >&5
21612 emacs_cv_gettimeofday_two_arguments=no
21614 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21616 echo "$as_me:$LINENO: result: $emacs_cv_gettimeofday_two_arguments" >&5
21617 echo "${ECHO_T}$emacs_cv_gettimeofday_two_arguments" >&6
21618 if test $emacs_cv_gettimeofday_two_arguments = no; then
21620 cat >>confdefs.h <<\_ACEOF
21621 #define GETTIMEOFDAY_ONE_ARGUMENT 1
21622 _ACEOF
21628 # This defines (or not) HAVE_TZNAME and HAVE_TM_ZONE.
21629 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
21630 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
21631 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
21632 echo $ECHO_N "(cached) $ECHO_C" >&6
21633 else
21634 cat >conftest.$ac_ext <<_ACEOF
21635 /* confdefs.h. */
21636 _ACEOF
21637 cat confdefs.h >>conftest.$ac_ext
21638 cat >>conftest.$ac_ext <<_ACEOF
21639 /* end confdefs.h. */
21640 #include <sys/types.h>
21641 #include <$ac_cv_struct_tm>
21645 main ()
21647 static struct tm ac_aggr;
21648 if (ac_aggr.tm_zone)
21649 return 0;
21651 return 0;
21653 _ACEOF
21654 rm -f conftest.$ac_objext
21655 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21656 (eval $ac_compile) 2>conftest.er1
21657 ac_status=$?
21658 grep -v '^ *+' conftest.er1 >conftest.err
21659 rm -f conftest.er1
21660 cat conftest.err >&5
21661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21662 (exit $ac_status); } &&
21663 { ac_try='test -z "$ac_c_werror_flag"
21664 || test ! -s conftest.err'
21665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21666 (eval $ac_try) 2>&5
21667 ac_status=$?
21668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21669 (exit $ac_status); }; } &&
21670 { ac_try='test -s conftest.$ac_objext'
21671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21672 (eval $ac_try) 2>&5
21673 ac_status=$?
21674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21675 (exit $ac_status); }; }; then
21676 ac_cv_member_struct_tm_tm_zone=yes
21677 else
21678 echo "$as_me: failed program was:" >&5
21679 sed 's/^/| /' conftest.$ac_ext >&5
21681 cat >conftest.$ac_ext <<_ACEOF
21682 /* confdefs.h. */
21683 _ACEOF
21684 cat confdefs.h >>conftest.$ac_ext
21685 cat >>conftest.$ac_ext <<_ACEOF
21686 /* end confdefs.h. */
21687 #include <sys/types.h>
21688 #include <$ac_cv_struct_tm>
21692 main ()
21694 static struct tm ac_aggr;
21695 if (sizeof ac_aggr.tm_zone)
21696 return 0;
21698 return 0;
21700 _ACEOF
21701 rm -f conftest.$ac_objext
21702 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21703 (eval $ac_compile) 2>conftest.er1
21704 ac_status=$?
21705 grep -v '^ *+' conftest.er1 >conftest.err
21706 rm -f conftest.er1
21707 cat conftest.err >&5
21708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21709 (exit $ac_status); } &&
21710 { ac_try='test -z "$ac_c_werror_flag"
21711 || test ! -s conftest.err'
21712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21713 (eval $ac_try) 2>&5
21714 ac_status=$?
21715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21716 (exit $ac_status); }; } &&
21717 { ac_try='test -s conftest.$ac_objext'
21718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21719 (eval $ac_try) 2>&5
21720 ac_status=$?
21721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21722 (exit $ac_status); }; }; then
21723 ac_cv_member_struct_tm_tm_zone=yes
21724 else
21725 echo "$as_me: failed program was:" >&5
21726 sed 's/^/| /' conftest.$ac_ext >&5
21728 ac_cv_member_struct_tm_tm_zone=no
21730 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21732 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21734 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
21735 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
21736 if test $ac_cv_member_struct_tm_tm_zone = yes; then
21738 cat >>confdefs.h <<_ACEOF
21739 #define HAVE_STRUCT_TM_TM_ZONE 1
21740 _ACEOF
21745 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
21747 cat >>confdefs.h <<\_ACEOF
21748 #define HAVE_TM_ZONE 1
21749 _ACEOF
21751 else
21752 echo "$as_me:$LINENO: checking for tzname" >&5
21753 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
21754 if test "${ac_cv_var_tzname+set}" = set; then
21755 echo $ECHO_N "(cached) $ECHO_C" >&6
21756 else
21757 cat >conftest.$ac_ext <<_ACEOF
21758 /* confdefs.h. */
21759 _ACEOF
21760 cat confdefs.h >>conftest.$ac_ext
21761 cat >>conftest.$ac_ext <<_ACEOF
21762 /* end confdefs.h. */
21763 #include <time.h>
21764 #ifndef tzname /* For SGI. */
21765 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
21766 #endif
21769 main ()
21771 atoi(*tzname);
21773 return 0;
21775 _ACEOF
21776 rm -f conftest.$ac_objext conftest$ac_exeext
21777 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21778 (eval $ac_link) 2>conftest.er1
21779 ac_status=$?
21780 grep -v '^ *+' conftest.er1 >conftest.err
21781 rm -f conftest.er1
21782 cat conftest.err >&5
21783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21784 (exit $ac_status); } &&
21785 { ac_try='test -z "$ac_c_werror_flag"
21786 || test ! -s conftest.err'
21787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21788 (eval $ac_try) 2>&5
21789 ac_status=$?
21790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21791 (exit $ac_status); }; } &&
21792 { ac_try='test -s conftest$ac_exeext'
21793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21794 (eval $ac_try) 2>&5
21795 ac_status=$?
21796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21797 (exit $ac_status); }; }; then
21798 ac_cv_var_tzname=yes
21799 else
21800 echo "$as_me: failed program was:" >&5
21801 sed 's/^/| /' conftest.$ac_ext >&5
21803 ac_cv_var_tzname=no
21805 rm -f conftest.err conftest.$ac_objext \
21806 conftest$ac_exeext conftest.$ac_ext
21808 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
21809 echo "${ECHO_T}$ac_cv_var_tzname" >&6
21810 if test $ac_cv_var_tzname = yes; then
21812 cat >>confdefs.h <<\_ACEOF
21813 #define HAVE_TZNAME 1
21814 _ACEOF
21820 if test "$ac_cv_func_gettimeofday" = yes; then
21821 echo "$as_me:$LINENO: checking for struct timezone" >&5
21822 echo $ECHO_N "checking for struct timezone... $ECHO_C" >&6
21823 if test "${emacs_cv_struct_timezone+set}" = set; then
21824 echo $ECHO_N "(cached) $ECHO_C" >&6
21825 else
21826 cat >conftest.$ac_ext <<_ACEOF
21827 /* confdefs.h. */
21828 _ACEOF
21829 cat confdefs.h >>conftest.$ac_ext
21830 cat >>conftest.$ac_ext <<_ACEOF
21831 /* end confdefs.h. */
21832 #include <sys/time.h>
21834 main ()
21836 struct timezone tz;
21838 return 0;
21840 _ACEOF
21841 rm -f conftest.$ac_objext
21842 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21843 (eval $ac_compile) 2>conftest.er1
21844 ac_status=$?
21845 grep -v '^ *+' conftest.er1 >conftest.err
21846 rm -f conftest.er1
21847 cat conftest.err >&5
21848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21849 (exit $ac_status); } &&
21850 { ac_try='test -z "$ac_c_werror_flag"
21851 || test ! -s conftest.err'
21852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21853 (eval $ac_try) 2>&5
21854 ac_status=$?
21855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21856 (exit $ac_status); }; } &&
21857 { ac_try='test -s conftest.$ac_objext'
21858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21859 (eval $ac_try) 2>&5
21860 ac_status=$?
21861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21862 (exit $ac_status); }; }; then
21863 if test "$cross_compiling" = yes; then
21864 emacs_cv_struct_timezone=yes
21865 else
21866 cat >conftest.$ac_ext <<_ACEOF
21867 /* confdefs.h. */
21868 _ACEOF
21869 cat confdefs.h >>conftest.$ac_ext
21870 cat >>conftest.$ac_ext <<_ACEOF
21871 /* end confdefs.h. */
21873 #ifdef TIME_WITH_SYS_TIME
21874 #include <sys/time.h>
21875 #include <time.h>
21876 #else
21877 #ifdef HAVE_SYS_TIME_H
21878 #include <sys/time.h>
21879 #else
21880 #include <time.h>
21881 #endif
21882 #endif
21883 main () {
21884 struct timeval time;
21885 struct timezone dummy;
21886 exit (gettimeofday (&time, &dummy));
21888 _ACEOF
21889 rm -f conftest$ac_exeext
21890 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21891 (eval $ac_link) 2>&5
21892 ac_status=$?
21893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21894 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21896 (eval $ac_try) 2>&5
21897 ac_status=$?
21898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21899 (exit $ac_status); }; }; then
21900 emacs_cv_struct_timezone=yes
21901 else
21902 echo "$as_me: program exited with status $ac_status" >&5
21903 echo "$as_me: failed program was:" >&5
21904 sed 's/^/| /' conftest.$ac_ext >&5
21906 ( exit $ac_status )
21907 emacs_cv_struct_timezone=no
21909 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21911 else
21912 echo "$as_me: failed program was:" >&5
21913 sed 's/^/| /' conftest.$ac_ext >&5
21915 emacs_cv_struct_timezone=no
21917 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21919 echo "$as_me:$LINENO: result: $emacs_cv_struct_timezone" >&5
21920 echo "${ECHO_T}$emacs_cv_struct_timezone" >&6
21923 ok_so_far=yes
21924 echo "$as_me:$LINENO: checking for socket" >&5
21925 echo $ECHO_N "checking for socket... $ECHO_C" >&6
21926 if test "${ac_cv_func_socket+set}" = set; then
21927 echo $ECHO_N "(cached) $ECHO_C" >&6
21928 else
21929 cat >conftest.$ac_ext <<_ACEOF
21930 /* confdefs.h. */
21931 _ACEOF
21932 cat confdefs.h >>conftest.$ac_ext
21933 cat >>conftest.$ac_ext <<_ACEOF
21934 /* end confdefs.h. */
21935 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
21936 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21937 #define socket innocuous_socket
21939 /* System header to define __stub macros and hopefully few prototypes,
21940 which can conflict with char socket (); below.
21941 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21942 <limits.h> exists even on freestanding compilers. */
21944 #ifdef __STDC__
21945 # include <limits.h>
21946 #else
21947 # include <assert.h>
21948 #endif
21950 #undef socket
21952 /* Override any gcc2 internal prototype to avoid an error. */
21953 #ifdef __cplusplus
21954 extern "C"
21956 #endif
21957 /* We use char because int might match the return type of a gcc2
21958 builtin and then its argument prototype would still apply. */
21959 char socket ();
21960 /* The GNU C library defines this for functions which it implements
21961 to always fail with ENOSYS. Some functions are actually named
21962 something starting with __ and the normal name is an alias. */
21963 #if defined (__stub_socket) || defined (__stub___socket)
21964 choke me
21965 #else
21966 char (*f) () = socket;
21967 #endif
21968 #ifdef __cplusplus
21970 #endif
21973 main ()
21975 return f != socket;
21977 return 0;
21979 _ACEOF
21980 rm -f conftest.$ac_objext conftest$ac_exeext
21981 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21982 (eval $ac_link) 2>conftest.er1
21983 ac_status=$?
21984 grep -v '^ *+' conftest.er1 >conftest.err
21985 rm -f conftest.er1
21986 cat conftest.err >&5
21987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21988 (exit $ac_status); } &&
21989 { ac_try='test -z "$ac_c_werror_flag"
21990 || test ! -s conftest.err'
21991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21992 (eval $ac_try) 2>&5
21993 ac_status=$?
21994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21995 (exit $ac_status); }; } &&
21996 { ac_try='test -s conftest$ac_exeext'
21997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21998 (eval $ac_try) 2>&5
21999 ac_status=$?
22000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22001 (exit $ac_status); }; }; then
22002 ac_cv_func_socket=yes
22003 else
22004 echo "$as_me: failed program was:" >&5
22005 sed 's/^/| /' conftest.$ac_ext >&5
22007 ac_cv_func_socket=no
22009 rm -f conftest.err conftest.$ac_objext \
22010 conftest$ac_exeext conftest.$ac_ext
22012 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
22013 echo "${ECHO_T}$ac_cv_func_socket" >&6
22014 if test $ac_cv_func_socket = yes; then
22016 else
22017 ok_so_far=no
22020 if test $ok_so_far = yes; then
22021 if test "${ac_cv_header_netinet_in_h+set}" = set; then
22022 echo "$as_me:$LINENO: checking for netinet/in.h" >&5
22023 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6
22024 if test "${ac_cv_header_netinet_in_h+set}" = set; then
22025 echo $ECHO_N "(cached) $ECHO_C" >&6
22027 echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
22028 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6
22029 else
22030 # Is the header compilable?
22031 echo "$as_me:$LINENO: checking netinet/in.h usability" >&5
22032 echo $ECHO_N "checking netinet/in.h usability... $ECHO_C" >&6
22033 cat >conftest.$ac_ext <<_ACEOF
22034 /* confdefs.h. */
22035 _ACEOF
22036 cat confdefs.h >>conftest.$ac_ext
22037 cat >>conftest.$ac_ext <<_ACEOF
22038 /* end confdefs.h. */
22039 $ac_includes_default
22040 #include <netinet/in.h>
22041 _ACEOF
22042 rm -f conftest.$ac_objext
22043 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22044 (eval $ac_compile) 2>conftest.er1
22045 ac_status=$?
22046 grep -v '^ *+' conftest.er1 >conftest.err
22047 rm -f conftest.er1
22048 cat conftest.err >&5
22049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22050 (exit $ac_status); } &&
22051 { ac_try='test -z "$ac_c_werror_flag"
22052 || test ! -s conftest.err'
22053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22054 (eval $ac_try) 2>&5
22055 ac_status=$?
22056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22057 (exit $ac_status); }; } &&
22058 { ac_try='test -s conftest.$ac_objext'
22059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22060 (eval $ac_try) 2>&5
22061 ac_status=$?
22062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22063 (exit $ac_status); }; }; then
22064 ac_header_compiler=yes
22065 else
22066 echo "$as_me: failed program was:" >&5
22067 sed 's/^/| /' conftest.$ac_ext >&5
22069 ac_header_compiler=no
22071 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22072 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22073 echo "${ECHO_T}$ac_header_compiler" >&6
22075 # Is the header present?
22076 echo "$as_me:$LINENO: checking netinet/in.h presence" >&5
22077 echo $ECHO_N "checking netinet/in.h presence... $ECHO_C" >&6
22078 cat >conftest.$ac_ext <<_ACEOF
22079 /* confdefs.h. */
22080 _ACEOF
22081 cat confdefs.h >>conftest.$ac_ext
22082 cat >>conftest.$ac_ext <<_ACEOF
22083 /* end confdefs.h. */
22084 #include <netinet/in.h>
22085 _ACEOF
22086 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22087 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22088 ac_status=$?
22089 grep -v '^ *+' conftest.er1 >conftest.err
22090 rm -f conftest.er1
22091 cat conftest.err >&5
22092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22093 (exit $ac_status); } >/dev/null; then
22094 if test -s conftest.err; then
22095 ac_cpp_err=$ac_c_preproc_warn_flag
22096 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22097 else
22098 ac_cpp_err=
22100 else
22101 ac_cpp_err=yes
22103 if test -z "$ac_cpp_err"; then
22104 ac_header_preproc=yes
22105 else
22106 echo "$as_me: failed program was:" >&5
22107 sed 's/^/| /' conftest.$ac_ext >&5
22109 ac_header_preproc=no
22111 rm -f conftest.err conftest.$ac_ext
22112 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22113 echo "${ECHO_T}$ac_header_preproc" >&6
22115 # So? What about this header?
22116 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22117 yes:no: )
22118 { echo "$as_me:$LINENO: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&5
22119 echo "$as_me: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22120 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the compiler's result" >&5
22121 echo "$as_me: WARNING: netinet/in.h: proceeding with the compiler's result" >&2;}
22122 ac_header_preproc=yes
22124 no:yes:* )
22125 { echo "$as_me:$LINENO: WARNING: netinet/in.h: present but cannot be compiled" >&5
22126 echo "$as_me: WARNING: netinet/in.h: present but cannot be compiled" >&2;}
22127 { echo "$as_me:$LINENO: WARNING: netinet/in.h: check for missing prerequisite headers?" >&5
22128 echo "$as_me: WARNING: netinet/in.h: check for missing prerequisite headers?" >&2;}
22129 { echo "$as_me:$LINENO: WARNING: netinet/in.h: see the Autoconf documentation" >&5
22130 echo "$as_me: WARNING: netinet/in.h: see the Autoconf documentation" >&2;}
22131 { echo "$as_me:$LINENO: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&5
22132 echo "$as_me: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&2;}
22133 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5
22134 echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;}
22135 { echo "$as_me:$LINENO: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&5
22136 echo "$as_me: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&2;}
22138 cat <<\_ASBOX
22139 ## ------------------------------------------ ##
22140 ## Report this to the AC_PACKAGE_NAME lists. ##
22141 ## ------------------------------------------ ##
22142 _ASBOX
22144 sed "s/^/$as_me: WARNING: /" >&2
22146 esac
22147 echo "$as_me:$LINENO: checking for netinet/in.h" >&5
22148 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6
22149 if test "${ac_cv_header_netinet_in_h+set}" = set; then
22150 echo $ECHO_N "(cached) $ECHO_C" >&6
22151 else
22152 ac_cv_header_netinet_in_h=$ac_header_preproc
22154 echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
22155 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6
22158 if test $ac_cv_header_netinet_in_h = yes; then
22160 else
22161 ok_so_far=no
22166 if test $ok_so_far = yes; then
22167 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
22168 echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
22169 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6
22170 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
22171 echo $ECHO_N "(cached) $ECHO_C" >&6
22173 echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
22174 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6
22175 else
22176 # Is the header compilable?
22177 echo "$as_me:$LINENO: checking arpa/inet.h usability" >&5
22178 echo $ECHO_N "checking arpa/inet.h usability... $ECHO_C" >&6
22179 cat >conftest.$ac_ext <<_ACEOF
22180 /* confdefs.h. */
22181 _ACEOF
22182 cat confdefs.h >>conftest.$ac_ext
22183 cat >>conftest.$ac_ext <<_ACEOF
22184 /* end confdefs.h. */
22185 $ac_includes_default
22186 #include <arpa/inet.h>
22187 _ACEOF
22188 rm -f conftest.$ac_objext
22189 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22190 (eval $ac_compile) 2>conftest.er1
22191 ac_status=$?
22192 grep -v '^ *+' conftest.er1 >conftest.err
22193 rm -f conftest.er1
22194 cat conftest.err >&5
22195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22196 (exit $ac_status); } &&
22197 { ac_try='test -z "$ac_c_werror_flag"
22198 || test ! -s conftest.err'
22199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22200 (eval $ac_try) 2>&5
22201 ac_status=$?
22202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22203 (exit $ac_status); }; } &&
22204 { ac_try='test -s conftest.$ac_objext'
22205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22206 (eval $ac_try) 2>&5
22207 ac_status=$?
22208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22209 (exit $ac_status); }; }; then
22210 ac_header_compiler=yes
22211 else
22212 echo "$as_me: failed program was:" >&5
22213 sed 's/^/| /' conftest.$ac_ext >&5
22215 ac_header_compiler=no
22217 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22218 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22219 echo "${ECHO_T}$ac_header_compiler" >&6
22221 # Is the header present?
22222 echo "$as_me:$LINENO: checking arpa/inet.h presence" >&5
22223 echo $ECHO_N "checking arpa/inet.h presence... $ECHO_C" >&6
22224 cat >conftest.$ac_ext <<_ACEOF
22225 /* confdefs.h. */
22226 _ACEOF
22227 cat confdefs.h >>conftest.$ac_ext
22228 cat >>conftest.$ac_ext <<_ACEOF
22229 /* end confdefs.h. */
22230 #include <arpa/inet.h>
22231 _ACEOF
22232 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22233 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22234 ac_status=$?
22235 grep -v '^ *+' conftest.er1 >conftest.err
22236 rm -f conftest.er1
22237 cat conftest.err >&5
22238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22239 (exit $ac_status); } >/dev/null; then
22240 if test -s conftest.err; then
22241 ac_cpp_err=$ac_c_preproc_warn_flag
22242 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22243 else
22244 ac_cpp_err=
22246 else
22247 ac_cpp_err=yes
22249 if test -z "$ac_cpp_err"; then
22250 ac_header_preproc=yes
22251 else
22252 echo "$as_me: failed program was:" >&5
22253 sed 's/^/| /' conftest.$ac_ext >&5
22255 ac_header_preproc=no
22257 rm -f conftest.err conftest.$ac_ext
22258 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22259 echo "${ECHO_T}$ac_header_preproc" >&6
22261 # So? What about this header?
22262 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22263 yes:no: )
22264 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&5
22265 echo "$as_me: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22266 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the compiler's result" >&5
22267 echo "$as_me: WARNING: arpa/inet.h: proceeding with the compiler's result" >&2;}
22268 ac_header_preproc=yes
22270 no:yes:* )
22271 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: present but cannot be compiled" >&5
22272 echo "$as_me: WARNING: arpa/inet.h: present but cannot be compiled" >&2;}
22273 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&5
22274 echo "$as_me: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&2;}
22275 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: see the Autoconf documentation" >&5
22276 echo "$as_me: WARNING: arpa/inet.h: see the Autoconf documentation" >&2;}
22277 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&5
22278 echo "$as_me: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&2;}
22279 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5
22280 echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;}
22281 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&5
22282 echo "$as_me: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&2;}
22284 cat <<\_ASBOX
22285 ## ------------------------------------------ ##
22286 ## Report this to the AC_PACKAGE_NAME lists. ##
22287 ## ------------------------------------------ ##
22288 _ASBOX
22290 sed "s/^/$as_me: WARNING: /" >&2
22292 esac
22293 echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
22294 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6
22295 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
22296 echo $ECHO_N "(cached) $ECHO_C" >&6
22297 else
22298 ac_cv_header_arpa_inet_h=$ac_header_preproc
22300 echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
22301 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6
22304 if test $ac_cv_header_arpa_inet_h = yes; then
22306 else
22307 ok_so_far=no
22312 if test $ok_so_far = yes; then
22314 cat >>confdefs.h <<\_ACEOF
22315 #define HAVE_INET_SOCKETS 1
22316 _ACEOF
22321 for ac_header in sys/ioctl.h
22323 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22324 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22325 echo "$as_me:$LINENO: checking for $ac_header" >&5
22326 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22327 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22328 echo $ECHO_N "(cached) $ECHO_C" >&6
22330 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22331 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22332 else
22333 # Is the header compilable?
22334 echo "$as_me:$LINENO: checking $ac_header usability" >&5
22335 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
22336 cat >conftest.$ac_ext <<_ACEOF
22337 /* confdefs.h. */
22338 _ACEOF
22339 cat confdefs.h >>conftest.$ac_ext
22340 cat >>conftest.$ac_ext <<_ACEOF
22341 /* end confdefs.h. */
22342 $ac_includes_default
22343 #include <$ac_header>
22344 _ACEOF
22345 rm -f conftest.$ac_objext
22346 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22347 (eval $ac_compile) 2>conftest.er1
22348 ac_status=$?
22349 grep -v '^ *+' conftest.er1 >conftest.err
22350 rm -f conftest.er1
22351 cat conftest.err >&5
22352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22353 (exit $ac_status); } &&
22354 { ac_try='test -z "$ac_c_werror_flag"
22355 || test ! -s conftest.err'
22356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22357 (eval $ac_try) 2>&5
22358 ac_status=$?
22359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22360 (exit $ac_status); }; } &&
22361 { ac_try='test -s conftest.$ac_objext'
22362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22363 (eval $ac_try) 2>&5
22364 ac_status=$?
22365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22366 (exit $ac_status); }; }; then
22367 ac_header_compiler=yes
22368 else
22369 echo "$as_me: failed program was:" >&5
22370 sed 's/^/| /' conftest.$ac_ext >&5
22372 ac_header_compiler=no
22374 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22375 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22376 echo "${ECHO_T}$ac_header_compiler" >&6
22378 # Is the header present?
22379 echo "$as_me:$LINENO: checking $ac_header presence" >&5
22380 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
22381 cat >conftest.$ac_ext <<_ACEOF
22382 /* confdefs.h. */
22383 _ACEOF
22384 cat confdefs.h >>conftest.$ac_ext
22385 cat >>conftest.$ac_ext <<_ACEOF
22386 /* end confdefs.h. */
22387 #include <$ac_header>
22388 _ACEOF
22389 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22390 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22391 ac_status=$?
22392 grep -v '^ *+' conftest.er1 >conftest.err
22393 rm -f conftest.er1
22394 cat conftest.err >&5
22395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22396 (exit $ac_status); } >/dev/null; then
22397 if test -s conftest.err; then
22398 ac_cpp_err=$ac_c_preproc_warn_flag
22399 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22400 else
22401 ac_cpp_err=
22403 else
22404 ac_cpp_err=yes
22406 if test -z "$ac_cpp_err"; then
22407 ac_header_preproc=yes
22408 else
22409 echo "$as_me: failed program was:" >&5
22410 sed 's/^/| /' conftest.$ac_ext >&5
22412 ac_header_preproc=no
22414 rm -f conftest.err conftest.$ac_ext
22415 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22416 echo "${ECHO_T}$ac_header_preproc" >&6
22418 # So? What about this header?
22419 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22420 yes:no: )
22421 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22422 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22423 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22424 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22425 ac_header_preproc=yes
22427 no:yes:* )
22428 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22429 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22430 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22431 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22432 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22433 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22434 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22435 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22436 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22437 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22438 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22439 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22441 cat <<\_ASBOX
22442 ## ------------------------------------------ ##
22443 ## Report this to the AC_PACKAGE_NAME lists. ##
22444 ## ------------------------------------------ ##
22445 _ASBOX
22447 sed "s/^/$as_me: WARNING: /" >&2
22449 esac
22450 echo "$as_me:$LINENO: checking for $ac_header" >&5
22451 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22452 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22453 echo $ECHO_N "(cached) $ECHO_C" >&6
22454 else
22455 eval "$as_ac_Header=\$ac_header_preproc"
22457 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22458 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22461 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22462 cat >>confdefs.h <<_ACEOF
22463 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22464 _ACEOF
22468 done
22471 if test -f /usr/lpp/X11/bin/smt.exp; then
22473 cat >>confdefs.h <<\_ACEOF
22474 #define HAVE_AIX_SMT_EXP 1
22475 _ACEOF
22479 echo "$as_me:$LINENO: checking whether system supports dynamic ptys" >&5
22480 echo $ECHO_N "checking whether system supports dynamic ptys... $ECHO_C" >&6
22481 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
22482 echo "$as_me:$LINENO: result: yes" >&5
22483 echo "${ECHO_T}yes" >&6
22485 cat >>confdefs.h <<\_ACEOF
22486 #define HAVE_DEV_PTMX 1
22487 _ACEOF
22489 else
22490 echo "$as_me:$LINENO: result: no" >&5
22491 echo "${ECHO_T}no" >&6
22494 echo "$as_me:$LINENO: checking for pid_t" >&5
22495 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
22496 if test "${ac_cv_type_pid_t+set}" = set; then
22497 echo $ECHO_N "(cached) $ECHO_C" >&6
22498 else
22499 cat >conftest.$ac_ext <<_ACEOF
22500 /* confdefs.h. */
22501 _ACEOF
22502 cat confdefs.h >>conftest.$ac_ext
22503 cat >>conftest.$ac_ext <<_ACEOF
22504 /* end confdefs.h. */
22505 $ac_includes_default
22507 main ()
22509 if ((pid_t *) 0)
22510 return 0;
22511 if (sizeof (pid_t))
22512 return 0;
22514 return 0;
22516 _ACEOF
22517 rm -f conftest.$ac_objext
22518 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22519 (eval $ac_compile) 2>conftest.er1
22520 ac_status=$?
22521 grep -v '^ *+' conftest.er1 >conftest.err
22522 rm -f conftest.er1
22523 cat conftest.err >&5
22524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22525 (exit $ac_status); } &&
22526 { ac_try='test -z "$ac_c_werror_flag"
22527 || test ! -s conftest.err'
22528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22529 (eval $ac_try) 2>&5
22530 ac_status=$?
22531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22532 (exit $ac_status); }; } &&
22533 { ac_try='test -s conftest.$ac_objext'
22534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22535 (eval $ac_try) 2>&5
22536 ac_status=$?
22537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22538 (exit $ac_status); }; }; then
22539 ac_cv_type_pid_t=yes
22540 else
22541 echo "$as_me: failed program was:" >&5
22542 sed 's/^/| /' conftest.$ac_ext >&5
22544 ac_cv_type_pid_t=no
22546 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22548 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
22549 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
22550 if test $ac_cv_type_pid_t = yes; then
22552 else
22554 cat >>confdefs.h <<_ACEOF
22555 #define pid_t int
22556 _ACEOF
22562 for ac_header in unistd.h vfork.h
22564 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22565 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22566 echo "$as_me:$LINENO: checking for $ac_header" >&5
22567 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22568 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22569 echo $ECHO_N "(cached) $ECHO_C" >&6
22571 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22572 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22573 else
22574 # Is the header compilable?
22575 echo "$as_me:$LINENO: checking $ac_header usability" >&5
22576 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
22577 cat >conftest.$ac_ext <<_ACEOF
22578 /* confdefs.h. */
22579 _ACEOF
22580 cat confdefs.h >>conftest.$ac_ext
22581 cat >>conftest.$ac_ext <<_ACEOF
22582 /* end confdefs.h. */
22583 $ac_includes_default
22584 #include <$ac_header>
22585 _ACEOF
22586 rm -f conftest.$ac_objext
22587 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22588 (eval $ac_compile) 2>conftest.er1
22589 ac_status=$?
22590 grep -v '^ *+' conftest.er1 >conftest.err
22591 rm -f conftest.er1
22592 cat conftest.err >&5
22593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22594 (exit $ac_status); } &&
22595 { ac_try='test -z "$ac_c_werror_flag"
22596 || test ! -s conftest.err'
22597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22598 (eval $ac_try) 2>&5
22599 ac_status=$?
22600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22601 (exit $ac_status); }; } &&
22602 { ac_try='test -s conftest.$ac_objext'
22603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22604 (eval $ac_try) 2>&5
22605 ac_status=$?
22606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22607 (exit $ac_status); }; }; then
22608 ac_header_compiler=yes
22609 else
22610 echo "$as_me: failed program was:" >&5
22611 sed 's/^/| /' conftest.$ac_ext >&5
22613 ac_header_compiler=no
22615 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22616 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22617 echo "${ECHO_T}$ac_header_compiler" >&6
22619 # Is the header present?
22620 echo "$as_me:$LINENO: checking $ac_header presence" >&5
22621 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
22622 cat >conftest.$ac_ext <<_ACEOF
22623 /* confdefs.h. */
22624 _ACEOF
22625 cat confdefs.h >>conftest.$ac_ext
22626 cat >>conftest.$ac_ext <<_ACEOF
22627 /* end confdefs.h. */
22628 #include <$ac_header>
22629 _ACEOF
22630 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22631 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22632 ac_status=$?
22633 grep -v '^ *+' conftest.er1 >conftest.err
22634 rm -f conftest.er1
22635 cat conftest.err >&5
22636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22637 (exit $ac_status); } >/dev/null; then
22638 if test -s conftest.err; then
22639 ac_cpp_err=$ac_c_preproc_warn_flag
22640 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22641 else
22642 ac_cpp_err=
22644 else
22645 ac_cpp_err=yes
22647 if test -z "$ac_cpp_err"; then
22648 ac_header_preproc=yes
22649 else
22650 echo "$as_me: failed program was:" >&5
22651 sed 's/^/| /' conftest.$ac_ext >&5
22653 ac_header_preproc=no
22655 rm -f conftest.err conftest.$ac_ext
22656 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22657 echo "${ECHO_T}$ac_header_preproc" >&6
22659 # So? What about this header?
22660 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22661 yes:no: )
22662 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22663 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22664 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22665 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22666 ac_header_preproc=yes
22668 no:yes:* )
22669 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22670 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22671 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22672 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22673 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22674 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22675 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22676 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22677 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22678 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22679 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22680 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22682 cat <<\_ASBOX
22683 ## ------------------------------------------ ##
22684 ## Report this to the AC_PACKAGE_NAME lists. ##
22685 ## ------------------------------------------ ##
22686 _ASBOX
22688 sed "s/^/$as_me: WARNING: /" >&2
22690 esac
22691 echo "$as_me:$LINENO: checking for $ac_header" >&5
22692 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22693 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22694 echo $ECHO_N "(cached) $ECHO_C" >&6
22695 else
22696 eval "$as_ac_Header=\$ac_header_preproc"
22698 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22699 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22702 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22703 cat >>confdefs.h <<_ACEOF
22704 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22705 _ACEOF
22709 done
22713 for ac_func in fork vfork
22715 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22716 echo "$as_me:$LINENO: checking for $ac_func" >&5
22717 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22718 if eval "test \"\${$as_ac_var+set}\" = set"; then
22719 echo $ECHO_N "(cached) $ECHO_C" >&6
22720 else
22721 cat >conftest.$ac_ext <<_ACEOF
22722 /* confdefs.h. */
22723 _ACEOF
22724 cat confdefs.h >>conftest.$ac_ext
22725 cat >>conftest.$ac_ext <<_ACEOF
22726 /* end confdefs.h. */
22727 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22728 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22729 #define $ac_func innocuous_$ac_func
22731 /* System header to define __stub macros and hopefully few prototypes,
22732 which can conflict with char $ac_func (); below.
22733 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22734 <limits.h> exists even on freestanding compilers. */
22736 #ifdef __STDC__
22737 # include <limits.h>
22738 #else
22739 # include <assert.h>
22740 #endif
22742 #undef $ac_func
22744 /* Override any gcc2 internal prototype to avoid an error. */
22745 #ifdef __cplusplus
22746 extern "C"
22748 #endif
22749 /* We use char because int might match the return type of a gcc2
22750 builtin and then its argument prototype would still apply. */
22751 char $ac_func ();
22752 /* The GNU C library defines this for functions which it implements
22753 to always fail with ENOSYS. Some functions are actually named
22754 something starting with __ and the normal name is an alias. */
22755 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22756 choke me
22757 #else
22758 char (*f) () = $ac_func;
22759 #endif
22760 #ifdef __cplusplus
22762 #endif
22765 main ()
22767 return f != $ac_func;
22769 return 0;
22771 _ACEOF
22772 rm -f conftest.$ac_objext conftest$ac_exeext
22773 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22774 (eval $ac_link) 2>conftest.er1
22775 ac_status=$?
22776 grep -v '^ *+' conftest.er1 >conftest.err
22777 rm -f conftest.er1
22778 cat conftest.err >&5
22779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22780 (exit $ac_status); } &&
22781 { ac_try='test -z "$ac_c_werror_flag"
22782 || test ! -s conftest.err'
22783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22784 (eval $ac_try) 2>&5
22785 ac_status=$?
22786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22787 (exit $ac_status); }; } &&
22788 { ac_try='test -s conftest$ac_exeext'
22789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22790 (eval $ac_try) 2>&5
22791 ac_status=$?
22792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22793 (exit $ac_status); }; }; then
22794 eval "$as_ac_var=yes"
22795 else
22796 echo "$as_me: failed program was:" >&5
22797 sed 's/^/| /' conftest.$ac_ext >&5
22799 eval "$as_ac_var=no"
22801 rm -f conftest.err conftest.$ac_objext \
22802 conftest$ac_exeext conftest.$ac_ext
22804 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22805 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22806 if test `eval echo '${'$as_ac_var'}'` = yes; then
22807 cat >>confdefs.h <<_ACEOF
22808 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22809 _ACEOF
22812 done
22814 if test "x$ac_cv_func_fork" = xyes; then
22815 echo "$as_me:$LINENO: checking for working fork" >&5
22816 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
22817 if test "${ac_cv_func_fork_works+set}" = set; then
22818 echo $ECHO_N "(cached) $ECHO_C" >&6
22819 else
22820 if test "$cross_compiling" = yes; then
22821 ac_cv_func_fork_works=cross
22822 else
22823 cat >conftest.$ac_ext <<_ACEOF
22824 /* By Ruediger Kuhlmann. */
22825 #include <sys/types.h>
22826 #if HAVE_UNISTD_H
22827 # include <unistd.h>
22828 #endif
22829 /* Some systems only have a dummy stub for fork() */
22830 int main ()
22832 if (fork() < 0)
22833 exit (1);
22834 exit (0);
22836 _ACEOF
22837 rm -f conftest$ac_exeext
22838 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22839 (eval $ac_link) 2>&5
22840 ac_status=$?
22841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22842 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22844 (eval $ac_try) 2>&5
22845 ac_status=$?
22846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22847 (exit $ac_status); }; }; then
22848 ac_cv_func_fork_works=yes
22849 else
22850 echo "$as_me: program exited with status $ac_status" >&5
22851 echo "$as_me: failed program was:" >&5
22852 sed 's/^/| /' conftest.$ac_ext >&5
22854 ( exit $ac_status )
22855 ac_cv_func_fork_works=no
22857 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22860 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
22861 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
22863 else
22864 ac_cv_func_fork_works=$ac_cv_func_fork
22866 if test "x$ac_cv_func_fork_works" = xcross; then
22867 case $host in
22868 *-*-amigaos* | *-*-msdosdjgpp*)
22869 # Override, as these systems have only a dummy fork() stub
22870 ac_cv_func_fork_works=no
22873 ac_cv_func_fork_works=yes
22875 esac
22876 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
22877 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
22879 ac_cv_func_vfork_works=$ac_cv_func_vfork
22880 if test "x$ac_cv_func_vfork" = xyes; then
22881 echo "$as_me:$LINENO: checking for working vfork" >&5
22882 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
22883 if test "${ac_cv_func_vfork_works+set}" = set; then
22884 echo $ECHO_N "(cached) $ECHO_C" >&6
22885 else
22886 if test "$cross_compiling" = yes; then
22887 ac_cv_func_vfork_works=cross
22888 else
22889 cat >conftest.$ac_ext <<_ACEOF
22890 /* confdefs.h. */
22891 _ACEOF
22892 cat confdefs.h >>conftest.$ac_ext
22893 cat >>conftest.$ac_ext <<_ACEOF
22894 /* end confdefs.h. */
22895 /* Thanks to Paul Eggert for this test. */
22896 #include <stdio.h>
22897 #include <stdlib.h>
22898 #include <sys/types.h>
22899 #include <sys/stat.h>
22900 #include <sys/wait.h>
22901 #if HAVE_UNISTD_H
22902 # include <unistd.h>
22903 #endif
22904 #if HAVE_VFORK_H
22905 # include <vfork.h>
22906 #endif
22907 /* On some sparc systems, changes by the child to local and incoming
22908 argument registers are propagated back to the parent. The compiler
22909 is told about this with #include <vfork.h>, but some compilers
22910 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
22911 static variable whose address is put into a register that is
22912 clobbered by the vfork. */
22913 static void
22914 #ifdef __cplusplus
22915 sparc_address_test (int arg)
22916 # else
22917 sparc_address_test (arg) int arg;
22918 #endif
22920 static pid_t child;
22921 if (!child) {
22922 child = vfork ();
22923 if (child < 0) {
22924 perror ("vfork");
22925 _exit(2);
22927 if (!child) {
22928 arg = getpid();
22929 write(-1, "", 0);
22930 _exit (arg);
22936 main ()
22938 pid_t parent = getpid ();
22939 pid_t child;
22941 sparc_address_test (0);
22943 child = vfork ();
22945 if (child == 0) {
22946 /* Here is another test for sparc vfork register problems. This
22947 test uses lots of local variables, at least as many local
22948 variables as main has allocated so far including compiler
22949 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
22950 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
22951 reuse the register of parent for one of the local variables,
22952 since it will think that parent can't possibly be used any more
22953 in this routine. Assigning to the local variable will thus
22954 munge parent in the parent process. */
22955 pid_t
22956 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
22957 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
22958 /* Convince the compiler that p..p7 are live; otherwise, it might
22959 use the same hardware register for all 8 local variables. */
22960 if (p != p1 || p != p2 || p != p3 || p != p4
22961 || p != p5 || p != p6 || p != p7)
22962 _exit(1);
22964 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
22965 from child file descriptors. If the child closes a descriptor
22966 before it execs or exits, this munges the parent's descriptor
22967 as well. Test for this by closing stdout in the child. */
22968 _exit(close(fileno(stdout)) != 0);
22969 } else {
22970 int status;
22971 struct stat st;
22973 while (wait(&status) != child)
22975 exit(
22976 /* Was there some problem with vforking? */
22977 child < 0
22979 /* Did the child fail? (This shouldn't happen.) */
22980 || status
22982 /* Did the vfork/compiler bug occur? */
22983 || parent != getpid()
22985 /* Did the file descriptor bug occur? */
22986 || fstat(fileno(stdout), &st) != 0
22990 _ACEOF
22991 rm -f conftest$ac_exeext
22992 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22993 (eval $ac_link) 2>&5
22994 ac_status=$?
22995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22996 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22998 (eval $ac_try) 2>&5
22999 ac_status=$?
23000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23001 (exit $ac_status); }; }; then
23002 ac_cv_func_vfork_works=yes
23003 else
23004 echo "$as_me: program exited with status $ac_status" >&5
23005 echo "$as_me: failed program was:" >&5
23006 sed 's/^/| /' conftest.$ac_ext >&5
23008 ( exit $ac_status )
23009 ac_cv_func_vfork_works=no
23011 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23014 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
23015 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
23018 if test "x$ac_cv_func_fork_works" = xcross; then
23019 ac_cv_func_vfork_works=$ac_cv_func_vfork
23020 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
23021 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
23024 if test "x$ac_cv_func_vfork_works" = xyes; then
23026 cat >>confdefs.h <<\_ACEOF
23027 #define HAVE_WORKING_VFORK 1
23028 _ACEOF
23030 else
23032 cat >>confdefs.h <<\_ACEOF
23033 #define vfork fork
23034 _ACEOF
23037 if test "x$ac_cv_func_fork_works" = xyes; then
23039 cat >>confdefs.h <<\_ACEOF
23040 #define HAVE_WORKING_FORK 1
23041 _ACEOF
23046 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
23047 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
23048 if test "${emacs_cv_langinfo_codeset+set}" = set; then
23049 echo $ECHO_N "(cached) $ECHO_C" >&6
23050 else
23051 cat >conftest.$ac_ext <<_ACEOF
23052 /* confdefs.h. */
23053 _ACEOF
23054 cat confdefs.h >>conftest.$ac_ext
23055 cat >>conftest.$ac_ext <<_ACEOF
23056 /* end confdefs.h. */
23057 #include <langinfo.h>
23059 main ()
23061 char* cs = nl_langinfo(CODESET);
23063 return 0;
23065 _ACEOF
23066 rm -f conftest.$ac_objext conftest$ac_exeext
23067 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23068 (eval $ac_link) 2>conftest.er1
23069 ac_status=$?
23070 grep -v '^ *+' conftest.er1 >conftest.err
23071 rm -f conftest.er1
23072 cat conftest.err >&5
23073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23074 (exit $ac_status); } &&
23075 { ac_try='test -z "$ac_c_werror_flag"
23076 || test ! -s conftest.err'
23077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23078 (eval $ac_try) 2>&5
23079 ac_status=$?
23080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23081 (exit $ac_status); }; } &&
23082 { ac_try='test -s conftest$ac_exeext'
23083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23084 (eval $ac_try) 2>&5
23085 ac_status=$?
23086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23087 (exit $ac_status); }; }; then
23088 emacs_cv_langinfo_codeset=yes
23089 else
23090 echo "$as_me: failed program was:" >&5
23091 sed 's/^/| /' conftest.$ac_ext >&5
23093 emacs_cv_langinfo_codeset=no
23095 rm -f conftest.err conftest.$ac_objext \
23096 conftest$ac_exeext conftest.$ac_ext
23099 echo "$as_me:$LINENO: result: $emacs_cv_langinfo_codeset" >&5
23100 echo "${ECHO_T}$emacs_cv_langinfo_codeset" >&6
23101 if test $emacs_cv_langinfo_codeset = yes; then
23103 cat >>confdefs.h <<\_ACEOF
23104 #define HAVE_LANGINFO_CODESET 1
23105 _ACEOF
23109 echo "$as_me:$LINENO: checking for size_t" >&5
23110 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
23111 if test "${ac_cv_type_size_t+set}" = set; then
23112 echo $ECHO_N "(cached) $ECHO_C" >&6
23113 else
23114 cat >conftest.$ac_ext <<_ACEOF
23115 /* confdefs.h. */
23116 _ACEOF
23117 cat confdefs.h >>conftest.$ac_ext
23118 cat >>conftest.$ac_ext <<_ACEOF
23119 /* end confdefs.h. */
23120 $ac_includes_default
23122 main ()
23124 if ((size_t *) 0)
23125 return 0;
23126 if (sizeof (size_t))
23127 return 0;
23129 return 0;
23131 _ACEOF
23132 rm -f conftest.$ac_objext
23133 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23134 (eval $ac_compile) 2>conftest.er1
23135 ac_status=$?
23136 grep -v '^ *+' conftest.er1 >conftest.err
23137 rm -f conftest.er1
23138 cat conftest.err >&5
23139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23140 (exit $ac_status); } &&
23141 { ac_try='test -z "$ac_c_werror_flag"
23142 || test ! -s conftest.err'
23143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23144 (eval $ac_try) 2>&5
23145 ac_status=$?
23146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23147 (exit $ac_status); }; } &&
23148 { ac_try='test -s conftest.$ac_objext'
23149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23150 (eval $ac_try) 2>&5
23151 ac_status=$?
23152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23153 (exit $ac_status); }; }; then
23154 ac_cv_type_size_t=yes
23155 else
23156 echo "$as_me: failed program was:" >&5
23157 sed 's/^/| /' conftest.$ac_ext >&5
23159 ac_cv_type_size_t=no
23161 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23163 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
23164 echo "${ECHO_T}$ac_cv_type_size_t" >&6
23165 if test $ac_cv_type_size_t = yes; then
23167 cat >>confdefs.h <<_ACEOF
23168 #define HAVE_SIZE_T 1
23169 _ACEOF
23175 echo "$as_me:$LINENO: checking for mbstate_t" >&5
23176 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
23177 if test "${ac_cv_type_mbstate_t+set}" = set; then
23178 echo $ECHO_N "(cached) $ECHO_C" >&6
23179 else
23180 cat >conftest.$ac_ext <<_ACEOF
23181 /* confdefs.h. */
23182 _ACEOF
23183 cat confdefs.h >>conftest.$ac_ext
23184 cat >>conftest.$ac_ext <<_ACEOF
23185 /* end confdefs.h. */
23186 $ac_includes_default
23187 # include <wchar.h>
23189 main ()
23191 mbstate_t x; return sizeof x;
23193 return 0;
23195 _ACEOF
23196 rm -f conftest.$ac_objext
23197 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23198 (eval $ac_compile) 2>conftest.er1
23199 ac_status=$?
23200 grep -v '^ *+' conftest.er1 >conftest.err
23201 rm -f conftest.er1
23202 cat conftest.err >&5
23203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23204 (exit $ac_status); } &&
23205 { ac_try='test -z "$ac_c_werror_flag"
23206 || test ! -s conftest.err'
23207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23208 (eval $ac_try) 2>&5
23209 ac_status=$?
23210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23211 (exit $ac_status); }; } &&
23212 { ac_try='test -s conftest.$ac_objext'
23213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23214 (eval $ac_try) 2>&5
23215 ac_status=$?
23216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23217 (exit $ac_status); }; }; then
23218 ac_cv_type_mbstate_t=yes
23219 else
23220 echo "$as_me: failed program was:" >&5
23221 sed 's/^/| /' conftest.$ac_ext >&5
23223 ac_cv_type_mbstate_t=no
23225 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23227 echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
23228 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6
23229 if test $ac_cv_type_mbstate_t = yes; then
23231 cat >>confdefs.h <<\_ACEOF
23232 #define HAVE_MBSTATE_T 1
23233 _ACEOF
23235 else
23237 cat >>confdefs.h <<\_ACEOF
23238 #define mbstate_t int
23239 _ACEOF
23243 echo "$as_me:$LINENO: checking for C restrict keyword" >&5
23244 echo $ECHO_N "checking for C restrict keyword... $ECHO_C" >&6
23245 if test "${emacs_cv_c_restrict+set}" = set; then
23246 echo $ECHO_N "(cached) $ECHO_C" >&6
23247 else
23248 cat >conftest.$ac_ext <<_ACEOF
23249 /* confdefs.h. */
23250 _ACEOF
23251 cat confdefs.h >>conftest.$ac_ext
23252 cat >>conftest.$ac_ext <<_ACEOF
23253 /* end confdefs.h. */
23254 void fred (int *restrict x);
23256 main ()
23260 return 0;
23262 _ACEOF
23263 rm -f conftest.$ac_objext
23264 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23265 (eval $ac_compile) 2>conftest.er1
23266 ac_status=$?
23267 grep -v '^ *+' conftest.er1 >conftest.err
23268 rm -f conftest.er1
23269 cat conftest.err >&5
23270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23271 (exit $ac_status); } &&
23272 { ac_try='test -z "$ac_c_werror_flag"
23273 || test ! -s conftest.err'
23274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23275 (eval $ac_try) 2>&5
23276 ac_status=$?
23277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23278 (exit $ac_status); }; } &&
23279 { ac_try='test -s conftest.$ac_objext'
23280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23281 (eval $ac_try) 2>&5
23282 ac_status=$?
23283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23284 (exit $ac_status); }; }; then
23285 emacs_cv_c_restrict=yes
23286 else
23287 echo "$as_me: failed program was:" >&5
23288 sed 's/^/| /' conftest.$ac_ext >&5
23290 cat >conftest.$ac_ext <<_ACEOF
23291 /* confdefs.h. */
23292 _ACEOF
23293 cat confdefs.h >>conftest.$ac_ext
23294 cat >>conftest.$ac_ext <<_ACEOF
23295 /* end confdefs.h. */
23296 void fred (int *__restrict x);
23298 main ()
23302 return 0;
23304 _ACEOF
23305 rm -f conftest.$ac_objext
23306 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23307 (eval $ac_compile) 2>conftest.er1
23308 ac_status=$?
23309 grep -v '^ *+' conftest.er1 >conftest.err
23310 rm -f conftest.er1
23311 cat conftest.err >&5
23312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23313 (exit $ac_status); } &&
23314 { ac_try='test -z "$ac_c_werror_flag"
23315 || test ! -s conftest.err'
23316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23317 (eval $ac_try) 2>&5
23318 ac_status=$?
23319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23320 (exit $ac_status); }; } &&
23321 { ac_try='test -s conftest.$ac_objext'
23322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23323 (eval $ac_try) 2>&5
23324 ac_status=$?
23325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23326 (exit $ac_status); }; }; then
23327 emacs_cv_c_restrict=__restrict
23328 else
23329 echo "$as_me: failed program was:" >&5
23330 sed 's/^/| /' conftest.$ac_ext >&5
23332 emacs_cv_c_restrict=no
23334 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23336 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23338 echo "$as_me:$LINENO: result: $emacs_cv_c_restrict" >&5
23339 echo "${ECHO_T}$emacs_cv_c_restrict" >&6
23340 case "$emacs_cv_c_restrict" in
23341 yes) emacs_restrict=restrict;;
23342 no) emacs_restrict="";;
23343 *) emacs_restrict="$emacs_cv_c_restrict";;
23344 esac
23345 if test "$emacs_restrict" != __restrict; then
23347 cat >>confdefs.h <<_ACEOF
23348 #define __restrict $emacs_restrict
23349 _ACEOF
23353 echo "$as_me:$LINENO: checking for C restricted array declarations" >&5
23354 echo $ECHO_N "checking for C restricted array declarations... $ECHO_C" >&6
23355 if test "${emacs_cv_c_restrict_arr+set}" = set; then
23356 echo $ECHO_N "(cached) $ECHO_C" >&6
23357 else
23358 cat >conftest.$ac_ext <<_ACEOF
23359 /* confdefs.h. */
23360 _ACEOF
23361 cat confdefs.h >>conftest.$ac_ext
23362 cat >>conftest.$ac_ext <<_ACEOF
23363 /* end confdefs.h. */
23364 void fred (int x[__restrict]);
23366 main ()
23370 return 0;
23372 _ACEOF
23373 rm -f conftest.$ac_objext
23374 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23375 (eval $ac_compile) 2>conftest.er1
23376 ac_status=$?
23377 grep -v '^ *+' conftest.er1 >conftest.err
23378 rm -f conftest.er1
23379 cat conftest.err >&5
23380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23381 (exit $ac_status); } &&
23382 { ac_try='test -z "$ac_c_werror_flag"
23383 || test ! -s conftest.err'
23384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23385 (eval $ac_try) 2>&5
23386 ac_status=$?
23387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23388 (exit $ac_status); }; } &&
23389 { ac_try='test -s conftest.$ac_objext'
23390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23391 (eval $ac_try) 2>&5
23392 ac_status=$?
23393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23394 (exit $ac_status); }; }; then
23395 emacs_cv_c_restrict_arr=yes
23396 else
23397 echo "$as_me: failed program was:" >&5
23398 sed 's/^/| /' conftest.$ac_ext >&5
23400 emacs_cv_c_restrict_arr=no
23402 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23404 echo "$as_me:$LINENO: result: $emacs_cv_c_restrict_arr" >&5
23405 echo "${ECHO_T}$emacs_cv_c_restrict_arr" >&6
23406 if test "$emacs_cv_c_restrict_arr" = yes; then
23408 cat >>confdefs.h <<\_ACEOF
23409 #define __restrict_arr __restrict
23410 _ACEOF
23416 # Set up the CFLAGS for real compilation, so we can substitute it.
23417 CFLAGS="$REAL_CFLAGS"
23418 CPPFLAGS="$REAL_CPPFLAGS"
23420 #### Find out which version of Emacs this is.
23421 version=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
23422 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`
23423 if test x"${version}" = x; then
23424 { { echo "$as_me:$LINENO: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&5
23425 echo "$as_me: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&2;}
23426 { (exit 1); exit 1; }; }
23429 ### Specify what sort of things we'll be editing into Makefile and config.h.
23430 ### Use configuration here uncanonicalized to avoid exceeding size limits.
23466 cat >>confdefs.h <<_ACEOF
23467 #define EMACS_CONFIGURATION "${canonical}"
23468 _ACEOF
23471 cat >>confdefs.h <<_ACEOF
23472 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
23473 _ACEOF
23476 cat >>confdefs.h <<_ACEOF
23477 #define config_machfile "${machfile}"
23478 _ACEOF
23481 cat >>confdefs.h <<_ACEOF
23482 #define config_opsysfile "${opsysfile}"
23483 _ACEOF
23486 cat >>confdefs.h <<_ACEOF
23487 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
23488 _ACEOF
23491 cat >>confdefs.h <<_ACEOF
23492 #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX}
23493 _ACEOF
23496 cat >>confdefs.h <<_ACEOF
23497 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
23498 _ACEOF
23501 cat >>confdefs.h <<_ACEOF
23502 #define UNEXEC_SRC ${UNEXEC_SRC}
23503 _ACEOF
23506 if test "${HAVE_X_WINDOWS}" = "yes" ; then
23508 cat >>confdefs.h <<\_ACEOF
23509 #define HAVE_X_WINDOWS 1
23510 _ACEOF
23513 if test "${USE_X_TOOLKIT}" != "none" ; then
23515 cat >>confdefs.h <<\_ACEOF
23516 #define USE_X_TOOLKIT 1
23517 _ACEOF
23520 if test "${HAVE_X11}" = "yes" ; then
23522 cat >>confdefs.h <<\_ACEOF
23523 #define HAVE_X11 1
23524 _ACEOF
23527 if test "${HAVE_XFREE386}" = "yes" ; then
23529 cat >>confdefs.h <<\_ACEOF
23530 #define HAVE_XFREE386 1
23531 _ACEOF
23534 if test "${HAVE_MENUS}" = "yes" ; then
23536 cat >>confdefs.h <<\_ACEOF
23537 #define HAVE_MENUS 1
23538 _ACEOF
23541 if test "${GNU_MALLOC}" = "yes" ; then
23543 cat >>confdefs.h <<\_ACEOF
23544 #define GNU_MALLOC 1
23545 _ACEOF
23548 if test "${REL_ALLOC}" = "yes" ; then
23550 cat >>confdefs.h <<\_ACEOF
23551 #define REL_ALLOC 1
23552 _ACEOF
23560 #### Report on what we decided to do.
23561 #### Report GTK as a toolkit, even if it doesn't use Xt.
23562 #### It makes printing result more understandable as using GTK sets
23563 #### toolkit_scroll_bars to yes by default.
23564 if test "${HAVE_GTK}" = "yes"; then
23565 USE_X_TOOLKIT=GTK
23568 echo "
23569 Configured for \`${canonical}'.
23571 Where should the build process find the source code? ${srcdir}
23572 What operating system and machine description files should Emacs use?
23573 \`${opsysfile}' and \`${machfile}'
23574 What compiler should emacs be built with? ${CC} ${CFLAGS}
23575 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
23576 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
23577 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
23578 What window system should Emacs use? ${window_system}
23579 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
23581 if test -n "${x_includes}"; then
23582 echo " Where do we find X Windows header files? ${x_includes}"
23583 else
23584 echo " Where do we find X Windows header files? Standard dirs"
23586 if test -n "${x_libraries}"; then
23587 echo " Where do we find X Windows libraries? ${x_libraries}"
23588 else
23589 echo " Where do we find X Windows libraries? Standard dirs"
23592 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
23593 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
23594 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
23595 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
23596 echo " Does Emacs use -lungif? ${HAVE_GIF}"
23597 echo " Does Emacs use -lpng? ${HAVE_PNG}"
23598 echo " Does Emacs use X toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
23599 echo
23601 if test $USE_XASSERTS = yes; then
23602 echo " Compiling with asserts turned on."
23603 CPPFLAGS="$CPPFLAGS -DXASSERTS=1"
23604 echo
23609 # Remove any trailing slashes in these variables.
23610 test "${prefix}" != NONE &&
23611 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
23612 test "${exec_prefix}" != NONE &&
23613 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
23615 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
23616 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
23617 ## from Makefile.c can correctly provide the arg `-traditional' to the
23618 ## C preprocessor.
23620 cat >conftest.$ac_ext <<_ACEOF
23621 /* confdefs.h. */
23622 _ACEOF
23623 cat confdefs.h >>conftest.$ac_ext
23624 cat >>conftest.$ac_ext <<_ACEOF
23625 /* end confdefs.h. */
23626 yes..yes
23627 _ACEOF
23628 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23629 $EGREP "yes..yes" >/dev/null 2>&1; then
23630 CPP_NEED_TRADITIONAL=no
23631 else
23632 CPP_NEED_TRADITIONAL=yes
23634 rm -f conftest*
23637 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"
23638 ac_config_commands="$ac_config_commands default"
23639 cat >confcache <<\_ACEOF
23640 # This file is a shell script that caches the results of configure
23641 # tests run on this system so they can be shared between configure
23642 # scripts and configure runs, see configure's option --config-cache.
23643 # It is not useful on other systems. If it contains results you don't
23644 # want to keep, you may remove or edit it.
23646 # config.status only pays attention to the cache file if you give it
23647 # the --recheck option to rerun configure.
23649 # `ac_cv_env_foo' variables (set or unset) will be overridden when
23650 # loading this file, other *unset* `ac_cv_foo' will be assigned the
23651 # following values.
23653 _ACEOF
23655 # The following way of writing the cache mishandles newlines in values,
23656 # but we know of no workaround that is simple, portable, and efficient.
23657 # So, don't put newlines in cache variables' values.
23658 # Ultrix sh set writes to stderr and can't be redirected directly,
23659 # and sets the high bit in the cache file unless we assign to the vars.
23661 (set) 2>&1 |
23662 case `(ac_space=' '; set | grep ac_space) 2>&1` in
23663 *ac_space=\ *)
23664 # `set' does not quote correctly, so add quotes (double-quote
23665 # substitution turns \\\\ into \\, and sed turns \\ into \).
23666 sed -n \
23667 "s/'/'\\\\''/g;
23668 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
23671 # `set' quotes correctly as required by POSIX, so do not add quotes.
23672 sed -n \
23673 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
23675 esac;
23677 sed '
23678 t clear
23679 : clear
23680 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
23681 t end
23682 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
23683 : end' >>confcache
23684 if diff $cache_file confcache >/dev/null 2>&1; then :; else
23685 if test -w $cache_file; then
23686 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
23687 cat confcache >$cache_file
23688 else
23689 echo "not updating unwritable cache $cache_file"
23692 rm -f confcache
23694 test "x$prefix" = xNONE && prefix=$ac_default_prefix
23695 # Let make expand exec_prefix.
23696 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
23698 # VPATH may cause trouble with some makes, so we remove $(srcdir),
23699 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
23700 # trailing colons and then remove the whole line if VPATH becomes empty
23701 # (actually we leave an empty line to preserve line numbers).
23702 if test "x$srcdir" = x.; then
23703 ac_vpsub='/^[ ]*VPATH[ ]*=/{
23704 s/:*\$(srcdir):*/:/;
23705 s/:*\${srcdir}:*/:/;
23706 s/:*@srcdir@:*/:/;
23707 s/^\([^=]*=[ ]*\):*/\1/;
23708 s/:*$//;
23709 s/^[^=]*=[ ]*$//;
23713 DEFS=-DHAVE_CONFIG_H
23715 ac_libobjs=
23716 ac_ltlibobjs=
23717 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
23718 # 1. Remove the extension, and $U if already installed.
23719 ac_i=`echo "$ac_i" |
23720 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
23721 # 2. Add them.
23722 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
23723 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
23724 done
23725 LIBOBJS=$ac_libobjs
23727 LTLIBOBJS=$ac_ltlibobjs
23731 : ${CONFIG_STATUS=./config.status}
23732 ac_clean_files_save=$ac_clean_files
23733 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
23734 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
23735 echo "$as_me: creating $CONFIG_STATUS" >&6;}
23736 cat >$CONFIG_STATUS <<_ACEOF
23737 #! $SHELL
23738 # Generated by $as_me.
23739 # Run this file to recreate the current configuration.
23740 # Compiler output produced by configure, useful for debugging
23741 # configure, is in config.log if it exists.
23743 debug=false
23744 ac_cs_recheck=false
23745 ac_cs_silent=false
23746 SHELL=\${CONFIG_SHELL-$SHELL}
23747 _ACEOF
23749 cat >>$CONFIG_STATUS <<\_ACEOF
23750 ## --------------------- ##
23751 ## M4sh Initialization. ##
23752 ## --------------------- ##
23754 # Be Bourne compatible
23755 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
23756 emulate sh
23757 NULLCMD=:
23758 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
23759 # is contrary to our usage. Disable this feature.
23760 alias -g '${1+"$@"}'='"$@"'
23761 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
23762 set -o posix
23764 DUALCASE=1; export DUALCASE # for MKS sh
23766 # Support unset when possible.
23767 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
23768 as_unset=unset
23769 else
23770 as_unset=false
23774 # Work around bugs in pre-3.0 UWIN ksh.
23775 $as_unset ENV MAIL MAILPATH
23776 PS1='$ '
23777 PS2='> '
23778 PS4='+ '
23780 # NLS nuisances.
23781 for as_var in \
23782 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
23783 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
23784 LC_TELEPHONE LC_TIME
23786 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
23787 eval $as_var=C; export $as_var
23788 else
23789 $as_unset $as_var
23791 done
23793 # Required to use basename.
23794 if expr a : '\(a\)' >/dev/null 2>&1; then
23795 as_expr=expr
23796 else
23797 as_expr=false
23800 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
23801 as_basename=basename
23802 else
23803 as_basename=false
23807 # Name of the executable.
23808 as_me=`$as_basename "$0" ||
23809 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23810 X"$0" : 'X\(//\)$' \| \
23811 X"$0" : 'X\(/\)$' \| \
23812 . : '\(.\)' 2>/dev/null ||
23813 echo X/"$0" |
23814 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
23815 /^X\/\(\/\/\)$/{ s//\1/; q; }
23816 /^X\/\(\/\).*/{ s//\1/; q; }
23817 s/.*/./; q'`
23820 # PATH needs CR, and LINENO needs CR and PATH.
23821 # Avoid depending upon Character Ranges.
23822 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
23823 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23824 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
23825 as_cr_digits='0123456789'
23826 as_cr_alnum=$as_cr_Letters$as_cr_digits
23828 # The user is always right.
23829 if test "${PATH_SEPARATOR+set}" != set; then
23830 echo "#! /bin/sh" >conf$$.sh
23831 echo "exit 0" >>conf$$.sh
23832 chmod +x conf$$.sh
23833 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
23834 PATH_SEPARATOR=';'
23835 else
23836 PATH_SEPARATOR=:
23838 rm -f conf$$.sh
23842 as_lineno_1=$LINENO
23843 as_lineno_2=$LINENO
23844 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
23845 test "x$as_lineno_1" != "x$as_lineno_2" &&
23846 test "x$as_lineno_3" = "x$as_lineno_2" || {
23847 # Find who we are. Look in the path if we contain no path at all
23848 # relative or not.
23849 case $0 in
23850 *[\\/]* ) as_myself=$0 ;;
23851 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23852 for as_dir in $PATH
23854 IFS=$as_save_IFS
23855 test -z "$as_dir" && as_dir=.
23856 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
23857 done
23860 esac
23861 # We did not find ourselves, most probably we were run as `sh COMMAND'
23862 # in which case we are not to be found in the path.
23863 if test "x$as_myself" = x; then
23864 as_myself=$0
23866 if test ! -f "$as_myself"; then
23867 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
23868 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
23869 { (exit 1); exit 1; }; }
23871 case $CONFIG_SHELL in
23873 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23874 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
23876 IFS=$as_save_IFS
23877 test -z "$as_dir" && as_dir=.
23878 for as_base in sh bash ksh sh5; do
23879 case $as_dir in
23881 if ("$as_dir/$as_base" -c '
23882 as_lineno_1=$LINENO
23883 as_lineno_2=$LINENO
23884 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
23885 test "x$as_lineno_1" != "x$as_lineno_2" &&
23886 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
23887 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
23888 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
23889 CONFIG_SHELL=$as_dir/$as_base
23890 export CONFIG_SHELL
23891 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
23892 fi;;
23893 esac
23894 done
23895 done
23897 esac
23899 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
23900 # uniformly replaced by the line number. The first 'sed' inserts a
23901 # line-number line before each line; the second 'sed' does the real
23902 # work. The second script uses 'N' to pair each line-number line
23903 # with the numbered line, and appends trailing '-' during
23904 # substitution so that $LINENO is not a special case at line end.
23905 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
23906 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
23907 sed '=' <$as_myself |
23908 sed '
23910 s,$,-,
23911 : loop
23912 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
23913 t loop
23914 s,-$,,
23915 s,^['$as_cr_digits']*\n,,
23916 ' >$as_me.lineno &&
23917 chmod +x $as_me.lineno ||
23918 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
23919 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
23920 { (exit 1); exit 1; }; }
23922 # Don't try to exec as it changes $[0], causing all sort of problems
23923 # (the dirname of $[0] is not the place where we might find the
23924 # original and so on. Autoconf is especially sensible to this).
23925 . ./$as_me.lineno
23926 # Exit status is that of the last command.
23927 exit
23931 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
23932 *c*,-n*) ECHO_N= ECHO_C='
23933 ' ECHO_T=' ' ;;
23934 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
23935 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
23936 esac
23938 if expr a : '\(a\)' >/dev/null 2>&1; then
23939 as_expr=expr
23940 else
23941 as_expr=false
23944 rm -f conf$$ conf$$.exe conf$$.file
23945 echo >conf$$.file
23946 if ln -s conf$$.file conf$$ 2>/dev/null; then
23947 # We could just check for DJGPP; but this test a) works b) is more generic
23948 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
23949 if test -f conf$$.exe; then
23950 # Don't use ln at all; we don't have any links
23951 as_ln_s='cp -p'
23952 else
23953 as_ln_s='ln -s'
23955 elif ln conf$$.file conf$$ 2>/dev/null; then
23956 as_ln_s=ln
23957 else
23958 as_ln_s='cp -p'
23960 rm -f conf$$ conf$$.exe conf$$.file
23962 if mkdir -p . 2>/dev/null; then
23963 as_mkdir_p=:
23964 else
23965 test -d ./-p && rmdir ./-p
23966 as_mkdir_p=false
23969 as_executable_p="test -f"
23971 # Sed expression to map a string onto a valid CPP name.
23972 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
23974 # Sed expression to map a string onto a valid variable name.
23975 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
23978 # IFS
23979 # We need space, tab and new line, in precisely that order.
23980 as_nl='
23982 IFS=" $as_nl"
23984 # CDPATH.
23985 $as_unset CDPATH
23987 exec 6>&1
23989 # Open the log real soon, to keep \$[0] and so on meaningful, and to
23990 # report actual input values of CONFIG_FILES etc. instead of their
23991 # values after options handling. Logging --version etc. is OK.
23992 exec 5>>config.log
23994 echo
23995 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23996 ## Running $as_me. ##
23997 _ASBOX
23998 } >&5
23999 cat >&5 <<_CSEOF
24001 This file was extended by $as_me, which was
24002 generated by GNU Autoconf 2.59. Invocation command line was
24004 CONFIG_FILES = $CONFIG_FILES
24005 CONFIG_HEADERS = $CONFIG_HEADERS
24006 CONFIG_LINKS = $CONFIG_LINKS
24007 CONFIG_COMMANDS = $CONFIG_COMMANDS
24008 $ $0 $@
24010 _CSEOF
24011 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
24012 echo >&5
24013 _ACEOF
24015 # Files that config.status was made for.
24016 if test -n "$ac_config_files"; then
24017 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
24020 if test -n "$ac_config_headers"; then
24021 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
24024 if test -n "$ac_config_links"; then
24025 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
24028 if test -n "$ac_config_commands"; then
24029 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
24032 cat >>$CONFIG_STATUS <<\_ACEOF
24034 ac_cs_usage="\
24035 \`$as_me' instantiates files from templates according to the
24036 current configuration.
24038 Usage: $0 [OPTIONS] [FILE]...
24040 -h, --help print this help, then exit
24041 -V, --version print version number, then exit
24042 -q, --quiet do not print progress messages
24043 -d, --debug don't remove temporary files
24044 --recheck update $as_me by reconfiguring in the same conditions
24045 --file=FILE[:TEMPLATE]
24046 instantiate the configuration file FILE
24047 --header=FILE[:TEMPLATE]
24048 instantiate the configuration header FILE
24050 Configuration files:
24051 $config_files
24053 Configuration headers:
24054 $config_headers
24056 Configuration commands:
24057 $config_commands
24059 Report bugs to <bug-autoconf@gnu.org>."
24060 _ACEOF
24062 cat >>$CONFIG_STATUS <<_ACEOF
24063 ac_cs_version="\\
24064 config.status
24065 configured by $0, generated by GNU Autoconf 2.59,
24066 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
24068 Copyright (C) 2003 Free Software Foundation, Inc.
24069 This config.status script is free software; the Free Software Foundation
24070 gives unlimited permission to copy, distribute and modify it."
24071 srcdir=$srcdir
24072 INSTALL="$INSTALL"
24073 _ACEOF
24075 cat >>$CONFIG_STATUS <<\_ACEOF
24076 # If no file are specified by the user, then we need to provide default
24077 # value. By we need to know if files were specified by the user.
24078 ac_need_defaults=:
24079 while test $# != 0
24081 case $1 in
24082 --*=*)
24083 ac_option=`expr "x$1" : 'x\([^=]*\)='`
24084 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
24085 ac_shift=:
24088 ac_option=$1
24089 ac_optarg=$2
24090 ac_shift=shift
24092 *) # This is not an option, so the user has probably given explicit
24093 # arguments.
24094 ac_option=$1
24095 ac_need_defaults=false;;
24096 esac
24098 case $ac_option in
24099 # Handling of the options.
24100 _ACEOF
24101 cat >>$CONFIG_STATUS <<\_ACEOF
24102 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
24103 ac_cs_recheck=: ;;
24104 --version | --vers* | -V )
24105 echo "$ac_cs_version"; exit 0 ;;
24106 --he | --h)
24107 # Conflict between --help and --header
24108 { { echo "$as_me:$LINENO: error: ambiguous option: $1
24109 Try \`$0 --help' for more information." >&5
24110 echo "$as_me: error: ambiguous option: $1
24111 Try \`$0 --help' for more information." >&2;}
24112 { (exit 1); exit 1; }; };;
24113 --help | --hel | -h )
24114 echo "$ac_cs_usage"; exit 0 ;;
24115 --debug | --d* | -d )
24116 debug=: ;;
24117 --file | --fil | --fi | --f )
24118 $ac_shift
24119 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
24120 ac_need_defaults=false;;
24121 --header | --heade | --head | --hea )
24122 $ac_shift
24123 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
24124 ac_need_defaults=false;;
24125 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
24126 | -silent | --silent | --silen | --sile | --sil | --si | --s)
24127 ac_cs_silent=: ;;
24129 # This is an error.
24130 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
24131 Try \`$0 --help' for more information." >&5
24132 echo "$as_me: error: unrecognized option: $1
24133 Try \`$0 --help' for more information." >&2;}
24134 { (exit 1); exit 1; }; } ;;
24136 *) ac_config_targets="$ac_config_targets $1" ;;
24138 esac
24139 shift
24140 done
24142 ac_configure_extra_args=
24144 if $ac_cs_silent; then
24145 exec 6>/dev/null
24146 ac_configure_extra_args="$ac_configure_extra_args --silent"
24149 _ACEOF
24150 cat >>$CONFIG_STATUS <<_ACEOF
24151 if \$ac_cs_recheck; then
24152 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
24153 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
24156 _ACEOF
24158 cat >>$CONFIG_STATUS <<_ACEOF
24160 # INIT-COMMANDS section.
24163 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS"
24165 _ACEOF
24169 cat >>$CONFIG_STATUS <<\_ACEOF
24170 for ac_config_target in $ac_config_targets
24172 case "$ac_config_target" in
24173 # Handling of arguments.
24174 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
24175 "lib-src/Makefile.c" ) CONFIG_FILES="$CONFIG_FILES lib-src/Makefile.c:lib-src/Makefile.in" ;;
24176 "oldXMenu/Makefile" ) CONFIG_FILES="$CONFIG_FILES oldXMenu/Makefile" ;;
24177 "man/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
24178 "lwlib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lwlib/Makefile" ;;
24179 "src/Makefile.c" ) CONFIG_FILES="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;;
24180 "lisp/Makefile" ) CONFIG_FILES="$CONFIG_FILES lisp/Makefile" ;;
24181 "lispref/Makefile" ) CONFIG_FILES="$CONFIG_FILES lispref/Makefile" ;;
24182 "lispintro/Makefile" ) CONFIG_FILES="$CONFIG_FILES lispintro/Makefile" ;;
24183 "leim/Makefile" ) CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;;
24184 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
24185 "src/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:src/config.in" ;;
24186 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
24187 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
24188 { (exit 1); exit 1; }; };;
24189 esac
24190 done
24192 # If the user did not use the arguments to specify the items to instantiate,
24193 # then the envvar interface is used. Set only those that are not.
24194 # We use the long form for the default assignment because of an extremely
24195 # bizarre bug on SunOS 4.1.3.
24196 if $ac_need_defaults; then
24197 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
24198 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
24199 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
24202 # Have a temporary directory for convenience. Make it in the build tree
24203 # simply because there is no reason to put it here, and in addition,
24204 # creating and moving files from /tmp can sometimes cause problems.
24205 # Create a temporary directory, and hook for its removal unless debugging.
24206 $debug ||
24208 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
24209 trap '{ (exit 1); exit 1; }' 1 2 13 15
24212 # Create a (secure) tmp directory for tmp files.
24215 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
24216 test -n "$tmp" && test -d "$tmp"
24217 } ||
24219 tmp=./confstat$$-$RANDOM
24220 (umask 077 && mkdir $tmp)
24221 } ||
24223 echo "$me: cannot create a temporary directory in ." >&2
24224 { (exit 1); exit 1; }
24227 _ACEOF
24229 cat >>$CONFIG_STATUS <<_ACEOF
24232 # CONFIG_FILES section.
24235 # No need to generate the scripts if there are no CONFIG_FILES.
24236 # This happens for instance when ./config.status config.h
24237 if test -n "\$CONFIG_FILES"; then
24238 # Protect against being on the right side of a sed subst in config.status.
24239 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
24240 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
24241 s,@SHELL@,$SHELL,;t t
24242 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
24243 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
24244 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
24245 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
24246 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
24247 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
24248 s,@exec_prefix@,$exec_prefix,;t t
24249 s,@prefix@,$prefix,;t t
24250 s,@program_transform_name@,$program_transform_name,;t t
24251 s,@bindir@,$bindir,;t t
24252 s,@sbindir@,$sbindir,;t t
24253 s,@libexecdir@,$libexecdir,;t t
24254 s,@datadir@,$datadir,;t t
24255 s,@sysconfdir@,$sysconfdir,;t t
24256 s,@sharedstatedir@,$sharedstatedir,;t t
24257 s,@localstatedir@,$localstatedir,;t t
24258 s,@libdir@,$libdir,;t t
24259 s,@includedir@,$includedir,;t t
24260 s,@oldincludedir@,$oldincludedir,;t t
24261 s,@infodir@,$infodir,;t t
24262 s,@mandir@,$mandir,;t t
24263 s,@build_alias@,$build_alias,;t t
24264 s,@host_alias@,$host_alias,;t t
24265 s,@target_alias@,$target_alias,;t t
24266 s,@DEFS@,$DEFS,;t t
24267 s,@ECHO_C@,$ECHO_C,;t t
24268 s,@ECHO_N@,$ECHO_N,;t t
24269 s,@ECHO_T@,$ECHO_T,;t t
24270 s,@LIBS@,$LIBS,;t t
24271 s,@MAINT@,$MAINT,;t t
24272 s,@build@,$build,;t t
24273 s,@build_cpu@,$build_cpu,;t t
24274 s,@build_vendor@,$build_vendor,;t t
24275 s,@build_os@,$build_os,;t t
24276 s,@host@,$host,;t t
24277 s,@host_cpu@,$host_cpu,;t t
24278 s,@host_vendor@,$host_vendor,;t t
24279 s,@host_os@,$host_os,;t t
24280 s,@CC@,$CC,;t t
24281 s,@CFLAGS@,$CFLAGS,;t t
24282 s,@LDFLAGS@,$LDFLAGS,;t t
24283 s,@CPPFLAGS@,$CPPFLAGS,;t t
24284 s,@ac_ct_CC@,$ac_ct_CC,;t t
24285 s,@EXEEXT@,$EXEEXT,;t t
24286 s,@OBJEXT@,$OBJEXT,;t t
24287 s,@CPP@,$CPP,;t t
24288 s,@EGREP@,$EGREP,;t t
24289 s,@LN_S@,$LN_S,;t t
24290 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
24291 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
24292 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
24293 s,@RANLIB@,$RANLIB,;t t
24294 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
24295 s,@INSTALL_INFO@,$INSTALL_INFO,;t t
24296 s,@GZIP_PROG@,$GZIP_PROG,;t t
24297 s,@LIBSOUND@,$LIBSOUND,;t t
24298 s,@SET_MAKE@,$SET_MAKE,;t t
24299 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
24300 s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
24301 s,@GTK_LIBS@,$GTK_LIBS,;t t
24302 s,@XFT_CFLAGS@,$XFT_CFLAGS,;t t
24303 s,@XFT_LIBS@,$XFT_LIBS,;t t
24304 s,@FREETYPE_CFLAGS@,$FREETYPE_CFLAGS,;t t
24305 s,@FREETYPE_LIBS@,$FREETYPE_LIBS,;t t
24306 s,@FONTCONFIG_CFLAGS@,$FONTCONFIG_CFLAGS,;t t
24307 s,@FONTCONFIG_LIBS@,$FONTCONFIG_LIBS,;t t
24308 s,@HAVE_LIBOTF@,$HAVE_LIBOTF,;t t
24309 s,@LIBOTF_CFLAGS@,$LIBOTF_CFLAGS,;t t
24310 s,@LIBOTF_LIBS@,$LIBOTF_LIBS,;t t
24311 s,@ALLOCA@,$ALLOCA,;t t
24312 s,@liblockfile@,$liblockfile,;t t
24313 s,@LIBOBJS@,$LIBOBJS,;t t
24314 s,@NEED_SETGID@,$NEED_SETGID,;t t
24315 s,@KMEM_GROUP@,$KMEM_GROUP,;t t
24316 s,@GETLOADAVG_LIBS@,$GETLOADAVG_LIBS,;t t
24317 s,@GETOPT_H@,$GETOPT_H,;t t
24318 s,@GETOPTOBJS@,$GETOPTOBJS,;t t
24319 s,@version@,$version,;t t
24320 s,@configuration@,$configuration,;t t
24321 s,@canonical@,$canonical,;t t
24322 s,@srcdir@,$srcdir,;t t
24323 s,@lispdir@,$lispdir,;t t
24324 s,@locallisppath@,$locallisppath,;t t
24325 s,@lisppath@,$lisppath,;t t
24326 s,@x_default_search_path@,$x_default_search_path,;t t
24327 s,@etcdir@,$etcdir,;t t
24328 s,@archlibdir@,$archlibdir,;t t
24329 s,@docdir@,$docdir,;t t
24330 s,@bitmapdir@,$bitmapdir,;t t
24331 s,@gamedir@,$gamedir,;t t
24332 s,@gameuser@,$gameuser,;t t
24333 s,@c_switch_system@,$c_switch_system,;t t
24334 s,@c_switch_machine@,$c_switch_machine,;t t
24335 s,@LD_SWITCH_X_SITE@,$LD_SWITCH_X_SITE,;t t
24336 s,@LD_SWITCH_X_SITE_AUX@,$LD_SWITCH_X_SITE_AUX,;t t
24337 s,@C_SWITCH_X_SITE@,$C_SWITCH_X_SITE,;t t
24338 s,@X_TOOLKIT_TYPE@,$X_TOOLKIT_TYPE,;t t
24339 s,@machfile@,$machfile,;t t
24340 s,@opsysfile@,$opsysfile,;t t
24341 s,@carbon_appdir@,$carbon_appdir,;t t
24342 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
24343 CEOF
24345 _ACEOF
24347 cat >>$CONFIG_STATUS <<\_ACEOF
24348 # Split the substitutions into bite-sized pieces for seds with
24349 # small command number limits, like on Digital OSF/1 and HP-UX.
24350 ac_max_sed_lines=48
24351 ac_sed_frag=1 # Number of current file.
24352 ac_beg=1 # First line for current file.
24353 ac_end=$ac_max_sed_lines # Line after last line for current file.
24354 ac_more_lines=:
24355 ac_sed_cmds=
24356 while $ac_more_lines; do
24357 if test $ac_beg -gt 1; then
24358 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
24359 else
24360 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
24362 if test ! -s $tmp/subs.frag; then
24363 ac_more_lines=false
24364 else
24365 # The purpose of the label and of the branching condition is to
24366 # speed up the sed processing (if there are no `@' at all, there
24367 # is no need to browse any of the substitutions).
24368 # These are the two extra sed commands mentioned above.
24369 (echo ':t
24370 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
24371 if test -z "$ac_sed_cmds"; then
24372 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
24373 else
24374 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
24376 ac_sed_frag=`expr $ac_sed_frag + 1`
24377 ac_beg=$ac_end
24378 ac_end=`expr $ac_end + $ac_max_sed_lines`
24380 done
24381 if test -z "$ac_sed_cmds"; then
24382 ac_sed_cmds=cat
24384 fi # test -n "$CONFIG_FILES"
24386 _ACEOF
24387 cat >>$CONFIG_STATUS <<\_ACEOF
24388 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
24389 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24390 case $ac_file in
24391 - | *:- | *:-:* ) # input from stdin
24392 cat >$tmp/stdin
24393 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24394 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24395 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24396 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24397 * ) ac_file_in=$ac_file.in ;;
24398 esac
24400 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
24401 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
24402 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24403 X"$ac_file" : 'X\(//\)[^/]' \| \
24404 X"$ac_file" : 'X\(//\)$' \| \
24405 X"$ac_file" : 'X\(/\)' \| \
24406 . : '\(.\)' 2>/dev/null ||
24407 echo X"$ac_file" |
24408 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24409 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24410 /^X\(\/\/\)$/{ s//\1/; q; }
24411 /^X\(\/\).*/{ s//\1/; q; }
24412 s/.*/./; q'`
24413 { if $as_mkdir_p; then
24414 mkdir -p "$ac_dir"
24415 else
24416 as_dir="$ac_dir"
24417 as_dirs=
24418 while test ! -d "$as_dir"; do
24419 as_dirs="$as_dir $as_dirs"
24420 as_dir=`(dirname "$as_dir") 2>/dev/null ||
24421 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24422 X"$as_dir" : 'X\(//\)[^/]' \| \
24423 X"$as_dir" : 'X\(//\)$' \| \
24424 X"$as_dir" : 'X\(/\)' \| \
24425 . : '\(.\)' 2>/dev/null ||
24426 echo X"$as_dir" |
24427 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24428 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24429 /^X\(\/\/\)$/{ s//\1/; q; }
24430 /^X\(\/\).*/{ s//\1/; q; }
24431 s/.*/./; q'`
24432 done
24433 test ! -n "$as_dirs" || mkdir $as_dirs
24434 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24435 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24436 { (exit 1); exit 1; }; }; }
24438 ac_builddir=.
24440 if test "$ac_dir" != .; then
24441 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24442 # A "../" for each directory in $ac_dir_suffix.
24443 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24444 else
24445 ac_dir_suffix= ac_top_builddir=
24448 case $srcdir in
24449 .) # No --srcdir option. We are building in place.
24450 ac_srcdir=.
24451 if test -z "$ac_top_builddir"; then
24452 ac_top_srcdir=.
24453 else
24454 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
24455 fi ;;
24456 [\\/]* | ?:[\\/]* ) # Absolute path.
24457 ac_srcdir=$srcdir$ac_dir_suffix;
24458 ac_top_srcdir=$srcdir ;;
24459 *) # Relative path.
24460 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
24461 ac_top_srcdir=$ac_top_builddir$srcdir ;;
24462 esac
24464 # Do not use `cd foo && pwd` to compute absolute paths, because
24465 # the directories may not exist.
24466 case `pwd` in
24467 .) ac_abs_builddir="$ac_dir";;
24469 case "$ac_dir" in
24470 .) ac_abs_builddir=`pwd`;;
24471 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
24472 *) ac_abs_builddir=`pwd`/"$ac_dir";;
24473 esac;;
24474 esac
24475 case $ac_abs_builddir in
24476 .) ac_abs_top_builddir=${ac_top_builddir}.;;
24478 case ${ac_top_builddir}. in
24479 .) ac_abs_top_builddir=$ac_abs_builddir;;
24480 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
24481 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
24482 esac;;
24483 esac
24484 case $ac_abs_builddir in
24485 .) ac_abs_srcdir=$ac_srcdir;;
24487 case $ac_srcdir in
24488 .) ac_abs_srcdir=$ac_abs_builddir;;
24489 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
24490 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
24491 esac;;
24492 esac
24493 case $ac_abs_builddir in
24494 .) ac_abs_top_srcdir=$ac_top_srcdir;;
24496 case $ac_top_srcdir in
24497 .) ac_abs_top_srcdir=$ac_abs_builddir;;
24498 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
24499 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
24500 esac;;
24501 esac
24504 case $INSTALL in
24505 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
24506 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
24507 esac
24509 if test x"$ac_file" != x-; then
24510 { echo "$as_me:$LINENO: creating $ac_file" >&5
24511 echo "$as_me: creating $ac_file" >&6;}
24512 rm -f "$ac_file"
24514 # Let's still pretend it is `configure' which instantiates (i.e., don't
24515 # use $as_me), people would be surprised to read:
24516 # /* config.h. Generated by config.status. */
24517 if test x"$ac_file" = x-; then
24518 configure_input=
24519 else
24520 configure_input="$ac_file. "
24522 configure_input=$configure_input"Generated from `echo $ac_file_in |
24523 sed 's,.*/,,'` by configure."
24525 # First look for the input files in the build tree, otherwise in the
24526 # src tree.
24527 ac_file_inputs=`IFS=:
24528 for f in $ac_file_in; do
24529 case $f in
24530 -) echo $tmp/stdin ;;
24531 [\\/$]*)
24532 # Absolute (can't be DOS-style, as IFS=:)
24533 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24534 echo "$as_me: error: cannot find input file: $f" >&2;}
24535 { (exit 1); exit 1; }; }
24536 echo "$f";;
24537 *) # Relative
24538 if test -f "$f"; then
24539 # Build tree
24540 echo "$f"
24541 elif test -f "$srcdir/$f"; then
24542 # Source tree
24543 echo "$srcdir/$f"
24544 else
24545 # /dev/null tree
24546 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24547 echo "$as_me: error: cannot find input file: $f" >&2;}
24548 { (exit 1); exit 1; }; }
24549 fi;;
24550 esac
24551 done` || { (exit 1); exit 1; }
24552 _ACEOF
24553 cat >>$CONFIG_STATUS <<_ACEOF
24554 sed "$ac_vpsub
24555 $extrasub
24556 _ACEOF
24557 cat >>$CONFIG_STATUS <<\_ACEOF
24559 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24560 s,@configure_input@,$configure_input,;t t
24561 s,@srcdir@,$ac_srcdir,;t t
24562 s,@abs_srcdir@,$ac_abs_srcdir,;t t
24563 s,@top_srcdir@,$ac_top_srcdir,;t t
24564 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
24565 s,@builddir@,$ac_builddir,;t t
24566 s,@abs_builddir@,$ac_abs_builddir,;t t
24567 s,@top_builddir@,$ac_top_builddir,;t t
24568 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
24569 s,@INSTALL@,$ac_INSTALL,;t t
24570 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
24571 rm -f $tmp/stdin
24572 if test x"$ac_file" != x-; then
24573 mv $tmp/out $ac_file
24574 else
24575 cat $tmp/out
24576 rm -f $tmp/out
24579 done
24580 _ACEOF
24581 cat >>$CONFIG_STATUS <<\_ACEOF
24584 # CONFIG_HEADER section.
24587 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
24588 # NAME is the cpp macro being defined and VALUE is the value it is being given.
24590 # ac_d sets the value in "#define NAME VALUE" lines.
24591 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
24592 ac_dB='[ ].*$,\1#\2'
24593 ac_dC=' '
24594 ac_dD=',;t'
24595 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
24596 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
24597 ac_uB='$,\1#\2define\3'
24598 ac_uC=' '
24599 ac_uD=',;t'
24601 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
24602 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24603 case $ac_file in
24604 - | *:- | *:-:* ) # input from stdin
24605 cat >$tmp/stdin
24606 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24607 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24608 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24609 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24610 * ) ac_file_in=$ac_file.in ;;
24611 esac
24613 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
24614 echo "$as_me: creating $ac_file" >&6;}
24616 # First look for the input files in the build tree, otherwise in the
24617 # src tree.
24618 ac_file_inputs=`IFS=:
24619 for f in $ac_file_in; do
24620 case $f in
24621 -) echo $tmp/stdin ;;
24622 [\\/$]*)
24623 # Absolute (can't be DOS-style, as IFS=:)
24624 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24625 echo "$as_me: error: cannot find input file: $f" >&2;}
24626 { (exit 1); exit 1; }; }
24627 # Do quote $f, to prevent DOS paths from being IFS'd.
24628 echo "$f";;
24629 *) # Relative
24630 if test -f "$f"; then
24631 # Build tree
24632 echo "$f"
24633 elif test -f "$srcdir/$f"; then
24634 # Source tree
24635 echo "$srcdir/$f"
24636 else
24637 # /dev/null tree
24638 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24639 echo "$as_me: error: cannot find input file: $f" >&2;}
24640 { (exit 1); exit 1; }; }
24641 fi;;
24642 esac
24643 done` || { (exit 1); exit 1; }
24644 # Remove the trailing spaces.
24645 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
24647 _ACEOF
24649 # Transform confdefs.h into two sed scripts, `conftest.defines' and
24650 # `conftest.undefs', that substitutes the proper values into
24651 # config.h.in to produce config.h. The first handles `#define'
24652 # templates, and the second `#undef' templates.
24653 # And first: Protect against being on the right side of a sed subst in
24654 # config.status. Protect against being in an unquoted here document
24655 # in config.status.
24656 rm -f conftest.defines conftest.undefs
24657 # Using a here document instead of a string reduces the quoting nightmare.
24658 # Putting comments in sed scripts is not portable.
24660 # `end' is used to avoid that the second main sed command (meant for
24661 # 0-ary CPP macros) applies to n-ary macro definitions.
24662 # See the Autoconf documentation for `clear'.
24663 cat >confdef2sed.sed <<\_ACEOF
24664 s/[\\&,]/\\&/g
24665 s,[\\$`],\\&,g
24666 t clear
24667 : clear
24668 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
24669 t end
24670 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
24671 : end
24672 _ACEOF
24673 # If some macros were called several times there might be several times
24674 # the same #defines, which is useless. Nevertheless, we may not want to
24675 # sort them, since we want the *last* AC-DEFINE to be honored.
24676 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
24677 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
24678 rm -f confdef2sed.sed
24680 # This sed command replaces #undef with comments. This is necessary, for
24681 # example, in the case of _POSIX_SOURCE, which is predefined and required
24682 # on some systems where configure will not decide to define it.
24683 cat >>conftest.undefs <<\_ACEOF
24684 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
24685 _ACEOF
24687 # Break up conftest.defines because some shells have a limit on the size
24688 # of here documents, and old seds have small limits too (100 cmds).
24689 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
24690 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
24691 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
24692 echo ' :' >>$CONFIG_STATUS
24693 rm -f conftest.tail
24694 while grep . conftest.defines >/dev/null
24696 # Write a limited-size here document to $tmp/defines.sed.
24697 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
24698 # Speed up: don't consider the non `#define' lines.
24699 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
24700 # Work around the forget-to-reset-the-flag bug.
24701 echo 't clr' >>$CONFIG_STATUS
24702 echo ': clr' >>$CONFIG_STATUS
24703 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
24704 echo 'CEOF
24705 sed -f $tmp/defines.sed $tmp/in >$tmp/out
24706 rm -f $tmp/in
24707 mv $tmp/out $tmp/in
24708 ' >>$CONFIG_STATUS
24709 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
24710 rm -f conftest.defines
24711 mv conftest.tail conftest.defines
24712 done
24713 rm -f conftest.defines
24714 echo ' fi # grep' >>$CONFIG_STATUS
24715 echo >>$CONFIG_STATUS
24717 # Break up conftest.undefs because some shells have a limit on the size
24718 # of here documents, and old seds have small limits too (100 cmds).
24719 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
24720 rm -f conftest.tail
24721 while grep . conftest.undefs >/dev/null
24723 # Write a limited-size here document to $tmp/undefs.sed.
24724 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
24725 # Speed up: don't consider the non `#undef'
24726 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
24727 # Work around the forget-to-reset-the-flag bug.
24728 echo 't clr' >>$CONFIG_STATUS
24729 echo ': clr' >>$CONFIG_STATUS
24730 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
24731 echo 'CEOF
24732 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
24733 rm -f $tmp/in
24734 mv $tmp/out $tmp/in
24735 ' >>$CONFIG_STATUS
24736 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
24737 rm -f conftest.undefs
24738 mv conftest.tail conftest.undefs
24739 done
24740 rm -f conftest.undefs
24742 cat >>$CONFIG_STATUS <<\_ACEOF
24743 # Let's still pretend it is `configure' which instantiates (i.e., don't
24744 # use $as_me), people would be surprised to read:
24745 # /* config.h. Generated by config.status. */
24746 if test x"$ac_file" = x-; then
24747 echo "/* Generated by configure. */" >$tmp/config.h
24748 else
24749 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
24751 cat $tmp/in >>$tmp/config.h
24752 rm -f $tmp/in
24753 if test x"$ac_file" != x-; then
24754 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
24755 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
24756 echo "$as_me: $ac_file is unchanged" >&6;}
24757 else
24758 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
24759 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24760 X"$ac_file" : 'X\(//\)[^/]' \| \
24761 X"$ac_file" : 'X\(//\)$' \| \
24762 X"$ac_file" : 'X\(/\)' \| \
24763 . : '\(.\)' 2>/dev/null ||
24764 echo X"$ac_file" |
24765 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24766 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24767 /^X\(\/\/\)$/{ s//\1/; q; }
24768 /^X\(\/\).*/{ s//\1/; q; }
24769 s/.*/./; q'`
24770 { if $as_mkdir_p; then
24771 mkdir -p "$ac_dir"
24772 else
24773 as_dir="$ac_dir"
24774 as_dirs=
24775 while test ! -d "$as_dir"; do
24776 as_dirs="$as_dir $as_dirs"
24777 as_dir=`(dirname "$as_dir") 2>/dev/null ||
24778 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24779 X"$as_dir" : 'X\(//\)[^/]' \| \
24780 X"$as_dir" : 'X\(//\)$' \| \
24781 X"$as_dir" : 'X\(/\)' \| \
24782 . : '\(.\)' 2>/dev/null ||
24783 echo X"$as_dir" |
24784 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24785 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24786 /^X\(\/\/\)$/{ s//\1/; q; }
24787 /^X\(\/\).*/{ s//\1/; q; }
24788 s/.*/./; q'`
24789 done
24790 test ! -n "$as_dirs" || mkdir $as_dirs
24791 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24792 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24793 { (exit 1); exit 1; }; }; }
24795 rm -f $ac_file
24796 mv $tmp/config.h $ac_file
24798 else
24799 cat $tmp/config.h
24800 rm -f $tmp/config.h
24802 done
24803 _ACEOF
24804 cat >>$CONFIG_STATUS <<\_ACEOF
24807 # CONFIG_COMMANDS section.
24809 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
24810 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
24811 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
24812 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
24813 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24814 X"$ac_dest" : 'X\(//\)[^/]' \| \
24815 X"$ac_dest" : 'X\(//\)$' \| \
24816 X"$ac_dest" : 'X\(/\)' \| \
24817 . : '\(.\)' 2>/dev/null ||
24818 echo X"$ac_dest" |
24819 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24820 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24821 /^X\(\/\/\)$/{ s//\1/; q; }
24822 /^X\(\/\).*/{ s//\1/; q; }
24823 s/.*/./; q'`
24824 { if $as_mkdir_p; then
24825 mkdir -p "$ac_dir"
24826 else
24827 as_dir="$ac_dir"
24828 as_dirs=
24829 while test ! -d "$as_dir"; do
24830 as_dirs="$as_dir $as_dirs"
24831 as_dir=`(dirname "$as_dir") 2>/dev/null ||
24832 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24833 X"$as_dir" : 'X\(//\)[^/]' \| \
24834 X"$as_dir" : 'X\(//\)$' \| \
24835 X"$as_dir" : 'X\(/\)' \| \
24836 . : '\(.\)' 2>/dev/null ||
24837 echo X"$as_dir" |
24838 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24839 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24840 /^X\(\/\/\)$/{ s//\1/; q; }
24841 /^X\(\/\).*/{ s//\1/; q; }
24842 s/.*/./; q'`
24843 done
24844 test ! -n "$as_dirs" || mkdir $as_dirs
24845 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24846 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24847 { (exit 1); exit 1; }; }; }
24849 ac_builddir=.
24851 if test "$ac_dir" != .; then
24852 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24853 # A "../" for each directory in $ac_dir_suffix.
24854 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24855 else
24856 ac_dir_suffix= ac_top_builddir=
24859 case $srcdir in
24860 .) # No --srcdir option. We are building in place.
24861 ac_srcdir=.
24862 if test -z "$ac_top_builddir"; then
24863 ac_top_srcdir=.
24864 else
24865 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
24866 fi ;;
24867 [\\/]* | ?:[\\/]* ) # Absolute path.
24868 ac_srcdir=$srcdir$ac_dir_suffix;
24869 ac_top_srcdir=$srcdir ;;
24870 *) # Relative path.
24871 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
24872 ac_top_srcdir=$ac_top_builddir$srcdir ;;
24873 esac
24875 # Do not use `cd foo && pwd` to compute absolute paths, because
24876 # the directories may not exist.
24877 case `pwd` in
24878 .) ac_abs_builddir="$ac_dir";;
24880 case "$ac_dir" in
24881 .) ac_abs_builddir=`pwd`;;
24882 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
24883 *) ac_abs_builddir=`pwd`/"$ac_dir";;
24884 esac;;
24885 esac
24886 case $ac_abs_builddir in
24887 .) ac_abs_top_builddir=${ac_top_builddir}.;;
24889 case ${ac_top_builddir}. in
24890 .) ac_abs_top_builddir=$ac_abs_builddir;;
24891 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
24892 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
24893 esac;;
24894 esac
24895 case $ac_abs_builddir in
24896 .) ac_abs_srcdir=$ac_srcdir;;
24898 case $ac_srcdir in
24899 .) ac_abs_srcdir=$ac_abs_builddir;;
24900 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
24901 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
24902 esac;;
24903 esac
24904 case $ac_abs_builddir in
24905 .) ac_abs_top_srcdir=$ac_top_srcdir;;
24907 case $ac_top_srcdir in
24908 .) ac_abs_top_srcdir=$ac_abs_builddir;;
24909 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
24910 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
24911 esac;;
24912 esac
24915 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
24916 echo "$as_me: executing $ac_dest commands" >&6;}
24917 case $ac_dest in
24918 default )
24920 ### Make the necessary directories, if they don't exist.
24921 for dir in etc lisp ; do
24922 test -d ${dir} || mkdir ${dir}
24923 done
24925 # Build src/Makefile from ${srcdir}/src/Makefile.c
24926 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
24927 # This must be done after src/config.h is built, since we rely on that file.
24929 # Now get this: Some word that is part of the ${srcdir} directory name
24930 # or the ${configuration} value might, just might, happen to be an
24931 # identifier like `sun4' or `i386' or something, and be predefined by
24932 # the C preprocessor to some helpful value like 1, or maybe the empty
24933 # string. Needless to say consequent macro substitutions are less
24934 # than conducive to the makefile finding the correct directory.
24935 undefs="`echo $top_srcdir $configuration $canonical |
24936 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
24937 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g' \
24940 echo creating src/epaths.h
24941 ${MAKE-make} epaths-force
24943 # As of 2000-11-19, newest development versions of GNU cpp preprocess
24944 # `..' to `. .' unless invoked with -traditional
24946 if test "x$GCC" = xyes && test "x$CPP_NEED_TRADITIONAL" = xyes; then
24947 CPPFLAGS="$CPPFLAGS -traditional"
24950 echo creating lib-src/Makefile
24951 ( cd lib-src
24952 rm -f junk.c junk1.c junk2.c
24953 sed -e '/start of cpp stuff/q' \
24954 < Makefile.c > junk1.c
24955 sed -e '1,/start of cpp stuff/d'\
24956 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
24957 < Makefile.c > junk.c
24958 $CPP $undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
24959 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
24960 cat junk1.c junk2.c > Makefile.new
24961 rm -f junk.c junk1.c junk2.c
24962 chmod 444 Makefile.new
24963 mv -f Makefile.new Makefile
24966 echo creating src/Makefile
24967 ( cd src
24968 rm -f junk.c junk1.c junk2.c
24969 sed -e '/start of cpp stuff/q' \
24970 < Makefile.c > junk1.c
24971 sed -e '1,/start of cpp stuff/d'\
24972 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
24973 < Makefile.c > junk.c
24974 if test -f ${srcdir}/admin/unidata/UnicodeData.txt; then
24975 CPPFLAGS="$CPPFLAGS -DHAVE_UNIDATA"
24977 $CPP $undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
24978 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
24979 cat junk1.c junk2.c > Makefile.new
24980 rm -f junk.c junk1.c junk2.c
24981 chmod 444 Makefile.new
24982 mv -f Makefile.new Makefile
24985 if test ! -f src/.gdbinit && test -f $srcdir/src/.gdbinit; then
24986 echo creating src/.gdbinit
24987 echo source $srcdir/src/.gdbinit > src/.gdbinit
24990 # This is how we know whether to re-run configure in certain cases.
24991 touch src/config.stamp
24994 esac
24995 done
24996 _ACEOF
24998 cat >>$CONFIG_STATUS <<\_ACEOF
25000 { (exit 0); exit 0; }
25001 _ACEOF
25002 chmod +x $CONFIG_STATUS
25003 ac_clean_files=$ac_clean_files_save
25006 # configure is writing to config.log, and then calls config.status.
25007 # config.status does its own redirection, appending to config.log.
25008 # Unfortunately, on DOS this fails, as config.log is still kept open
25009 # by configure, so config.status won't be able to write to it; its
25010 # output is simply discarded. So we exec the FD to /dev/null,
25011 # effectively closing config.log, so it can be properly (re)opened and
25012 # appended to by config.status. When coming back to configure, we
25013 # need to make the FD available again.
25014 if test "$no_create" != yes; then
25015 ac_cs_success=:
25016 ac_config_status_args=
25017 test "$silent" = yes &&
25018 ac_config_status_args="$ac_config_status_args --quiet"
25019 exec 5>/dev/null
25020 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
25021 exec 5>>config.log
25022 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
25023 # would make configure fail if this is the last instruction.
25024 $ac_cs_success || { (exit 1); exit 1; }