Fix time-travelling copyright years.
[emacs.git] / configure
blob7483969ac7e542c8bc11b02faefdc8b0cdad510e
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization. ##
10 ## --------------------- ##
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14 emulate sh
15 NULLCMD=:
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20 set -o posix
22 DUALCASE=1; export DUALCASE # for MKS sh
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26 as_unset=unset
27 else
28 as_unset=false
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
38 # NLS nuisances.
39 for as_var in \
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42 LC_TELEPHONE LC_TIME
44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
46 else
47 $as_unset $as_var
49 done
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
53 as_expr=expr
54 else
55 as_expr=false
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59 as_basename=basename
60 else
61 as_basename=false
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
71 echo X/"$0" |
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
75 s/.*/./; q'`
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
90 chmod +x conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92 PATH_SEPARATOR=';'
93 else
94 PATH_SEPARATOR=:
96 rm -f conf$$.sh
100 as_lineno_1=$LINENO
101 as_lineno_2=$LINENO
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
106 # relative or not.
107 case $0 in
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110 for as_dir in $PATH
112 IFS=$as_save_IFS
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115 done
118 esac
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
122 as_myself=$0
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
128 case $CONFIG_SHELL in
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
133 IFS=$as_save_IFS
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
136 case $as_dir in
138 if ("$as_dir/$as_base" -c '
139 as_lineno_1=$LINENO
140 as_lineno_2=$LINENO
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
147 export CONFIG_SHELL
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149 fi;;
150 esac
151 done
152 done
154 esac
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
165 sed '
167 s,$,-,
168 : loop
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170 t loop
171 s,-$,,
172 s,^['$as_cr_digits']*\n,,
173 ' >$as_me.lineno &&
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
181 . ./$as_me.lineno
182 # Exit status is that of the last command.
183 exit
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
189 ' ECHO_T=' ' ;;
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
192 esac
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195 as_expr=expr
196 else
197 as_expr=false
200 rm -f conf$$ conf$$.exe conf$$.file
201 echo >conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
207 as_ln_s='cp -p'
208 else
209 as_ln_s='ln -s'
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213 else
214 as_ln_s='cp -p'
216 rm -f conf$$ conf$$.exe conf$$.file
218 if mkdir -p . 2>/dev/null; then
219 as_mkdir_p=:
220 else
221 test -d ./-p && rmdir ./-p
222 as_mkdir_p=false
225 as_executable_p="test -f"
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
234 # IFS
235 # We need space, tab and new line, in precisely that order.
236 as_nl='
238 IFS=" $as_nl"
240 # CDPATH.
241 $as_unset CDPATH
244 # Name of the host.
245 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246 # so uname gets run too.
247 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
249 exec 6>&1
252 # Initializations.
254 ac_default_prefix=/usr/local
255 ac_config_libobj_dir=.
256 cross_compiling=no
257 subdirs=
258 MFLAGS=
259 MAKEFLAGS=
260 SHELL=${CONFIG_SHELL-/bin/sh}
262 # Maximum number of lines to put in a shell here document.
263 # This variable seems obsolete. It should probably be removed, and
264 # only ac_max_sed_lines should be used.
265 : ${ac_max_here_lines=38}
267 # Identity of this package.
268 PACKAGE_NAME=
269 PACKAGE_TARNAME=
270 PACKAGE_VERSION=
271 PACKAGE_STRING=
272 PACKAGE_BUGREPORT=
274 ac_unique_file="src/lisp.h"
275 ac_config_libobj_dir=src
276 # Factoring default headers for most tests.
277 ac_includes_default="\
278 #include <stdio.h>
279 #if HAVE_SYS_TYPES_H
280 # include <sys/types.h>
281 #endif
282 #if HAVE_SYS_STAT_H
283 # include <sys/stat.h>
284 #endif
285 #if STDC_HEADERS
286 # include <stdlib.h>
287 # include <stddef.h>
288 #else
289 # if HAVE_STDLIB_H
290 # include <stdlib.h>
291 # endif
292 #endif
293 #if HAVE_STRING_H
294 # if !STDC_HEADERS && HAVE_MEMORY_H
295 # include <memory.h>
296 # endif
297 # include <string.h>
298 #endif
299 #if HAVE_STRINGS_H
300 # include <strings.h>
301 #endif
302 #if HAVE_INTTYPES_H
303 # include <inttypes.h>
304 #else
305 # if HAVE_STDINT_H
306 # include <stdint.h>
307 # endif
308 #endif
309 #if HAVE_UNISTD_H
310 # include <unistd.h>
311 #endif"
313 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS MAINT build build_cpu build_vendor build_os host host_cpu host_vendor host_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP EGREP LN_S INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA RANLIB ac_ct_RANLIB INSTALL_INFO GZIP_PROG LIBSOUND PKG_CONFIG ALSA_CFLAGS ALSA_LIBS CFLAGS_SOUND SET_MAKE GTK_CFLAGS GTK_LIBS ALLOCA liblockfile LIBOBJS NEED_SETGID KMEM_GROUP GETLOADAVG_LIBS GETOPT_H GETOPTOBJS version configuration canonical srcdir lispdir locallisppath lisppath x_default_search_path etcdir archlibdir docdir bitmapdir gamedir gameuser c_switch_system c_switch_machine LD_SWITCH_X_SITE LD_SWITCH_X_SITE_AUX C_SWITCH_X_SITE X_TOOLKIT_TYPE machfile opsysfile carbon_appdir LTLIBOBJS'
314 ac_subst_files=''
316 # Initialize some variables set by options.
317 ac_init_help=
318 ac_init_version=false
319 # The variables have the same names as the options, with
320 # dashes changed to underlines.
321 cache_file=/dev/null
322 exec_prefix=NONE
323 no_create=
324 no_recursion=
325 prefix=NONE
326 program_prefix=NONE
327 program_suffix=NONE
328 program_transform_name=s,x,x,
329 silent=
330 site=
331 srcdir=
332 verbose=
333 x_includes=NONE
334 x_libraries=NONE
336 # Installation directory options.
337 # These are left unexpanded so users can "make install exec_prefix=/foo"
338 # and all the variables that are supposed to be based on exec_prefix
339 # by default will actually change.
340 # Use braces instead of parens because sh, perl, etc. also accept them.
341 bindir='${exec_prefix}/bin'
342 sbindir='${exec_prefix}/sbin'
343 libexecdir='${exec_prefix}/libexec'
344 datadir='${prefix}/share'
345 sysconfdir='${prefix}/etc'
346 sharedstatedir='${prefix}/com'
347 localstatedir='${prefix}/var'
348 libdir='${exec_prefix}/lib'
349 includedir='${prefix}/include'
350 oldincludedir='/usr/include'
351 infodir='${prefix}/info'
352 mandir='${prefix}/man'
354 ac_prev=
355 for ac_option
357 # If the previous option needs an argument, assign it.
358 if test -n "$ac_prev"; then
359 eval "$ac_prev=\$ac_option"
360 ac_prev=
361 continue
364 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
366 # Accept the important Cygnus configure options, so we can diagnose typos.
368 case $ac_option in
370 -bindir | --bindir | --bindi | --bind | --bin | --bi)
371 ac_prev=bindir ;;
372 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
373 bindir=$ac_optarg ;;
375 -build | --build | --buil | --bui | --bu)
376 ac_prev=build_alias ;;
377 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
378 build_alias=$ac_optarg ;;
380 -cache-file | --cache-file | --cache-fil | --cache-fi \
381 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
382 ac_prev=cache_file ;;
383 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
384 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
385 cache_file=$ac_optarg ;;
387 --config-cache | -C)
388 cache_file=config.cache ;;
390 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
391 ac_prev=datadir ;;
392 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
393 | --da=*)
394 datadir=$ac_optarg ;;
396 -disable-* | --disable-*)
397 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
398 # Reject names that are not valid shell variable names.
399 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
400 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
401 { (exit 1); exit 1; }; }
402 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
403 eval "enable_$ac_feature=no" ;;
405 -enable-* | --enable-*)
406 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
407 # Reject names that are not valid shell variable names.
408 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
409 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
410 { (exit 1); exit 1; }; }
411 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
412 case $ac_option in
413 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
414 *) ac_optarg=yes ;;
415 esac
416 eval "enable_$ac_feature='$ac_optarg'" ;;
418 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
419 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
420 | --exec | --exe | --ex)
421 ac_prev=exec_prefix ;;
422 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
423 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
424 | --exec=* | --exe=* | --ex=*)
425 exec_prefix=$ac_optarg ;;
427 -gas | --gas | --ga | --g)
428 # Obsolete; use --with-gas.
429 with_gas=yes ;;
431 -help | --help | --hel | --he | -h)
432 ac_init_help=long ;;
433 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
434 ac_init_help=recursive ;;
435 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
436 ac_init_help=short ;;
438 -host | --host | --hos | --ho)
439 ac_prev=host_alias ;;
440 -host=* | --host=* | --hos=* | --ho=*)
441 host_alias=$ac_optarg ;;
443 -includedir | --includedir | --includedi | --included | --include \
444 | --includ | --inclu | --incl | --inc)
445 ac_prev=includedir ;;
446 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
447 | --includ=* | --inclu=* | --incl=* | --inc=*)
448 includedir=$ac_optarg ;;
450 -infodir | --infodir | --infodi | --infod | --info | --inf)
451 ac_prev=infodir ;;
452 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
453 infodir=$ac_optarg ;;
455 -libdir | --libdir | --libdi | --libd)
456 ac_prev=libdir ;;
457 -libdir=* | --libdir=* | --libdi=* | --libd=*)
458 libdir=$ac_optarg ;;
460 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
461 | --libexe | --libex | --libe)
462 ac_prev=libexecdir ;;
463 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
464 | --libexe=* | --libex=* | --libe=*)
465 libexecdir=$ac_optarg ;;
467 -localstatedir | --localstatedir | --localstatedi | --localstated \
468 | --localstate | --localstat | --localsta | --localst \
469 | --locals | --local | --loca | --loc | --lo)
470 ac_prev=localstatedir ;;
471 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
472 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
473 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
474 localstatedir=$ac_optarg ;;
476 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
477 ac_prev=mandir ;;
478 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
479 mandir=$ac_optarg ;;
481 -nfp | --nfp | --nf)
482 # Obsolete; use --without-fp.
483 with_fp=no ;;
485 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
486 | --no-cr | --no-c | -n)
487 no_create=yes ;;
489 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
490 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
491 no_recursion=yes ;;
493 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
494 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
495 | --oldin | --oldi | --old | --ol | --o)
496 ac_prev=oldincludedir ;;
497 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
498 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
499 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
500 oldincludedir=$ac_optarg ;;
502 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
503 ac_prev=prefix ;;
504 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
505 prefix=$ac_optarg ;;
507 -program-prefix | --program-prefix | --program-prefi | --program-pref \
508 | --program-pre | --program-pr | --program-p)
509 ac_prev=program_prefix ;;
510 -program-prefix=* | --program-prefix=* | --program-prefi=* \
511 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
512 program_prefix=$ac_optarg ;;
514 -program-suffix | --program-suffix | --program-suffi | --program-suff \
515 | --program-suf | --program-su | --program-s)
516 ac_prev=program_suffix ;;
517 -program-suffix=* | --program-suffix=* | --program-suffi=* \
518 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
519 program_suffix=$ac_optarg ;;
521 -program-transform-name | --program-transform-name \
522 | --program-transform-nam | --program-transform-na \
523 | --program-transform-n | --program-transform- \
524 | --program-transform | --program-transfor \
525 | --program-transfo | --program-transf \
526 | --program-trans | --program-tran \
527 | --progr-tra | --program-tr | --program-t)
528 ac_prev=program_transform_name ;;
529 -program-transform-name=* | --program-transform-name=* \
530 | --program-transform-nam=* | --program-transform-na=* \
531 | --program-transform-n=* | --program-transform-=* \
532 | --program-transform=* | --program-transfor=* \
533 | --program-transfo=* | --program-transf=* \
534 | --program-trans=* | --program-tran=* \
535 | --progr-tra=* | --program-tr=* | --program-t=*)
536 program_transform_name=$ac_optarg ;;
538 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
539 | -silent | --silent | --silen | --sile | --sil)
540 silent=yes ;;
542 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
543 ac_prev=sbindir ;;
544 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
545 | --sbi=* | --sb=*)
546 sbindir=$ac_optarg ;;
548 -sharedstatedir | --sharedstatedir | --sharedstatedi \
549 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
550 | --sharedst | --shareds | --shared | --share | --shar \
551 | --sha | --sh)
552 ac_prev=sharedstatedir ;;
553 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
554 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
555 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
556 | --sha=* | --sh=*)
557 sharedstatedir=$ac_optarg ;;
559 -site | --site | --sit)
560 ac_prev=site ;;
561 -site=* | --site=* | --sit=*)
562 site=$ac_optarg ;;
564 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
565 ac_prev=srcdir ;;
566 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
567 srcdir=$ac_optarg ;;
569 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
570 | --syscon | --sysco | --sysc | --sys | --sy)
571 ac_prev=sysconfdir ;;
572 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
573 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
574 sysconfdir=$ac_optarg ;;
576 -target | --target | --targe | --targ | --tar | --ta | --t)
577 ac_prev=target_alias ;;
578 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
579 target_alias=$ac_optarg ;;
581 -v | -verbose | --verbose | --verbos | --verbo | --verb)
582 verbose=yes ;;
584 -version | --version | --versio | --versi | --vers | -V)
585 ac_init_version=: ;;
587 -with-* | --with-*)
588 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
589 # Reject names that are not valid shell variable names.
590 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
591 { echo "$as_me: error: invalid package name: $ac_package" >&2
592 { (exit 1); exit 1; }; }
593 ac_package=`echo $ac_package| sed 's/-/_/g'`
594 case $ac_option in
595 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
596 *) ac_optarg=yes ;;
597 esac
598 eval "with_$ac_package='$ac_optarg'" ;;
600 -without-* | --without-*)
601 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
602 # Reject names that are not valid shell variable names.
603 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
604 { echo "$as_me: error: invalid package name: $ac_package" >&2
605 { (exit 1); exit 1; }; }
606 ac_package=`echo $ac_package | sed 's/-/_/g'`
607 eval "with_$ac_package=no" ;;
609 --x)
610 # Obsolete; use --with-x.
611 with_x=yes ;;
613 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
614 | --x-incl | --x-inc | --x-in | --x-i)
615 ac_prev=x_includes ;;
616 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
617 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
618 x_includes=$ac_optarg ;;
620 -x-libraries | --x-libraries | --x-librarie | --x-librari \
621 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
622 ac_prev=x_libraries ;;
623 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
624 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
625 x_libraries=$ac_optarg ;;
627 -*) { echo "$as_me: error: unrecognized option: $ac_option
628 Try \`$0 --help' for more information." >&2
629 { (exit 1); exit 1; }; }
632 *=*)
633 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
634 # Reject names that are not valid shell variable names.
635 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
636 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
637 { (exit 1); exit 1; }; }
638 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
639 eval "$ac_envvar='$ac_optarg'"
640 export $ac_envvar ;;
643 # FIXME: should be removed in autoconf 3.0.
644 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
645 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
646 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
647 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
650 esac
651 done
653 if test -n "$ac_prev"; then
654 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
655 { echo "$as_me: error: missing argument to $ac_option" >&2
656 { (exit 1); exit 1; }; }
659 # Be sure to have absolute paths.
660 for ac_var in exec_prefix prefix
662 eval ac_val=$`echo $ac_var`
663 case $ac_val in
664 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
665 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
666 { (exit 1); exit 1; }; };;
667 esac
668 done
670 # Be sure to have absolute paths.
671 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
672 localstatedir libdir includedir oldincludedir infodir mandir
674 eval ac_val=$`echo $ac_var`
675 case $ac_val in
676 [\\/$]* | ?:[\\/]* ) ;;
677 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
678 { (exit 1); exit 1; }; };;
679 esac
680 done
682 # There might be people who depend on the old broken behavior: `$host'
683 # used to hold the argument of --host etc.
684 # FIXME: To remove some day.
685 build=$build_alias
686 host=$host_alias
687 target=$target_alias
689 # FIXME: To remove some day.
690 if test "x$host_alias" != x; then
691 if test "x$build_alias" = x; then
692 cross_compiling=maybe
693 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
694 If a cross compiler is detected then cross compile mode will be used." >&2
695 elif test "x$build_alias" != "x$host_alias"; then
696 cross_compiling=yes
700 ac_tool_prefix=
701 test -n "$host_alias" && ac_tool_prefix=$host_alias-
703 test "$silent" = yes && exec 6>/dev/null
706 # Find the source files, if location was not specified.
707 if test -z "$srcdir"; then
708 ac_srcdir_defaulted=yes
709 # Try the directory containing this script, then its parent.
710 ac_confdir=`(dirname "$0") 2>/dev/null ||
711 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
712 X"$0" : 'X\(//\)[^/]' \| \
713 X"$0" : 'X\(//\)$' \| \
714 X"$0" : 'X\(/\)' \| \
715 . : '\(.\)' 2>/dev/null ||
716 echo X"$0" |
717 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
718 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
719 /^X\(\/\/\)$/{ s//\1/; q; }
720 /^X\(\/\).*/{ s//\1/; q; }
721 s/.*/./; q'`
722 srcdir=$ac_confdir
723 if test ! -r $srcdir/$ac_unique_file; then
724 srcdir=..
726 else
727 ac_srcdir_defaulted=no
729 if test ! -r $srcdir/$ac_unique_file; then
730 if test "$ac_srcdir_defaulted" = yes; then
731 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
732 { (exit 1); exit 1; }; }
733 else
734 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
735 { (exit 1); exit 1; }; }
738 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
739 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
740 { (exit 1); exit 1; }; }
741 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
742 ac_env_build_alias_set=${build_alias+set}
743 ac_env_build_alias_value=$build_alias
744 ac_cv_env_build_alias_set=${build_alias+set}
745 ac_cv_env_build_alias_value=$build_alias
746 ac_env_host_alias_set=${host_alias+set}
747 ac_env_host_alias_value=$host_alias
748 ac_cv_env_host_alias_set=${host_alias+set}
749 ac_cv_env_host_alias_value=$host_alias
750 ac_env_target_alias_set=${target_alias+set}
751 ac_env_target_alias_value=$target_alias
752 ac_cv_env_target_alias_set=${target_alias+set}
753 ac_cv_env_target_alias_value=$target_alias
754 ac_env_CC_set=${CC+set}
755 ac_env_CC_value=$CC
756 ac_cv_env_CC_set=${CC+set}
757 ac_cv_env_CC_value=$CC
758 ac_env_CFLAGS_set=${CFLAGS+set}
759 ac_env_CFLAGS_value=$CFLAGS
760 ac_cv_env_CFLAGS_set=${CFLAGS+set}
761 ac_cv_env_CFLAGS_value=$CFLAGS
762 ac_env_LDFLAGS_set=${LDFLAGS+set}
763 ac_env_LDFLAGS_value=$LDFLAGS
764 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
765 ac_cv_env_LDFLAGS_value=$LDFLAGS
766 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
767 ac_env_CPPFLAGS_value=$CPPFLAGS
768 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
769 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
770 ac_env_CPP_set=${CPP+set}
771 ac_env_CPP_value=$CPP
772 ac_cv_env_CPP_set=${CPP+set}
773 ac_cv_env_CPP_value=$CPP
776 # Report the --help message.
778 if test "$ac_init_help" = "long"; then
779 # Omit some internal or obsolete options to make the list less imposing.
780 # This message is too long to be a string in the A/UX 3.1 sh.
781 cat <<_ACEOF
782 \`configure' configures this package to adapt to many kinds of systems.
784 Usage: $0 [OPTION]... [VAR=VALUE]...
786 To assign environment variables (e.g., CC, CFLAGS...), specify them as
787 VAR=VALUE. See below for descriptions of some of the useful variables.
789 Defaults for the options are specified in brackets.
791 Configuration:
792 -h, --help display this help and exit
793 --help=short display options specific to this package
794 --help=recursive display the short help of all the included packages
795 -V, --version display version information and exit
796 -q, --quiet, --silent do not print \`checking...' messages
797 --cache-file=FILE cache test results in FILE [disabled]
798 -C, --config-cache alias for \`--cache-file=config.cache'
799 -n, --no-create do not create output files
800 --srcdir=DIR find the sources in DIR [configure dir or \`..']
802 _ACEOF
804 cat <<_ACEOF
805 Installation directories:
806 --prefix=PREFIX install architecture-independent files in PREFIX
807 [$ac_default_prefix]
808 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
809 [PREFIX]
811 By default, \`make install' will install all the files in
812 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
813 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
814 for instance \`--prefix=\$HOME'.
816 For better control, use the options below.
818 Fine tuning of the installation directories:
819 --bindir=DIR user executables [EPREFIX/bin]
820 --sbindir=DIR system admin executables [EPREFIX/sbin]
821 --libexecdir=DIR program executables [EPREFIX/libexec]
822 --datadir=DIR read-only architecture-independent data [PREFIX/share]
823 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
824 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
825 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
826 --libdir=DIR object code libraries [EPREFIX/lib]
827 --includedir=DIR C header files [PREFIX/include]
828 --oldincludedir=DIR C header files for non-gcc [/usr/include]
829 --infodir=DIR info documentation [PREFIX/info]
830 --mandir=DIR man documentation [PREFIX/man]
831 _ACEOF
833 cat <<\_ACEOF
835 Program names:
836 --program-prefix=PREFIX prepend PREFIX to installed program names
837 --program-suffix=SUFFIX append SUFFIX to installed program names
838 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
840 X features:
841 --x-includes=DIR X include files are in DIR
842 --x-libraries=DIR X library files are in DIR
844 System types:
845 --build=BUILD configure for building on BUILD [guessed]
846 --host=HOST cross-compile to build programs to run on HOST [BUILD]
847 _ACEOF
850 if test -n "$ac_init_help"; then
852 cat <<\_ACEOF
854 Optional Features:
855 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
856 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
857 --enable-carbon-app[=DIR] [DIR=/Application]
858 specify install directory for Emacs.app on Mac OS X
859 --enable-asserts compile code with asserts enabled
860 --enable-maintainer-mode enable make rules and dependencies not useful
861 (and sometimes confusing) to the casual installer
862 --enable-locallisppath=PATH
863 directories Emacs should search for lisp files
864 specific to this site
865 --disable-largefile omit support for large files
867 Optional Packages:
868 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
869 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
870 --without-gcc don't use GCC to compile Emacs if GCC is found
871 --without-pop don't support POP mail retrieval with movemail
872 --with-kerberos support Kerberos-authenticated POP
873 --with-kerberos5 support Kerberos version 5 authenticated POP
874 --with-hesiod support Hesiod to get the POP server host
875 --without-sound don't compile with sound support
876 --with-x-toolkit=KIT use an X toolkit
877 (KIT = yes/lucid/athena/motif/gtk/no)
878 --with-xpm use -lXpm for displaying XPM images
879 --with-jpeg use -ljpeg for displaying JPEG images
880 --with-tiff use -ltiff for displaying TIFF images
881 --with-gif use -lungif for displaying GIF images
882 --with-png use -lpng for displaying PNG images
883 --with-gtk use GTK (same as --with-x-toolkit=gtk)
884 --with-pkg-config-prog Path to pkg-config to use for finding GTK
885 --without-toolkit-scroll-bars
886 don't use Motif or Xaw3d scroll bars
887 --without-xim don't use X11 XIM
888 --without-carbon don't use Carbon GUI on Mac OS X
889 --with-x use the X Window System
891 Some influential environment variables:
892 CC C compiler command
893 CFLAGS C compiler flags
894 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
895 nonstandard directory <lib dir>
896 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
897 headers in a nonstandard directory <include dir>
898 CPP C preprocessor
900 Use these variables to override the choices made by `configure' or to help
901 it to find libraries and programs with nonstandard names/locations.
903 _ACEOF
906 if test "$ac_init_help" = "recursive"; then
907 # If there are subdirs, report their specific --help.
908 ac_popdir=`pwd`
909 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
910 test -d $ac_dir || continue
911 ac_builddir=.
913 if test "$ac_dir" != .; then
914 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
915 # A "../" for each directory in $ac_dir_suffix.
916 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
917 else
918 ac_dir_suffix= ac_top_builddir=
921 case $srcdir in
922 .) # No --srcdir option. We are building in place.
923 ac_srcdir=.
924 if test -z "$ac_top_builddir"; then
925 ac_top_srcdir=.
926 else
927 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
928 fi ;;
929 [\\/]* | ?:[\\/]* ) # Absolute path.
930 ac_srcdir=$srcdir$ac_dir_suffix;
931 ac_top_srcdir=$srcdir ;;
932 *) # Relative path.
933 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
934 ac_top_srcdir=$ac_top_builddir$srcdir ;;
935 esac
937 # Do not use `cd foo && pwd` to compute absolute paths, because
938 # the directories may not exist.
939 case `pwd` in
940 .) ac_abs_builddir="$ac_dir";;
942 case "$ac_dir" in
943 .) ac_abs_builddir=`pwd`;;
944 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
945 *) ac_abs_builddir=`pwd`/"$ac_dir";;
946 esac;;
947 esac
948 case $ac_abs_builddir in
949 .) ac_abs_top_builddir=${ac_top_builddir}.;;
951 case ${ac_top_builddir}. in
952 .) ac_abs_top_builddir=$ac_abs_builddir;;
953 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
954 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
955 esac;;
956 esac
957 case $ac_abs_builddir in
958 .) ac_abs_srcdir=$ac_srcdir;;
960 case $ac_srcdir in
961 .) ac_abs_srcdir=$ac_abs_builddir;;
962 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
963 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
964 esac;;
965 esac
966 case $ac_abs_builddir in
967 .) ac_abs_top_srcdir=$ac_top_srcdir;;
969 case $ac_top_srcdir in
970 .) ac_abs_top_srcdir=$ac_abs_builddir;;
971 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
972 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
973 esac;;
974 esac
976 cd $ac_dir
977 # Check for guested configure; otherwise get Cygnus style configure.
978 if test -f $ac_srcdir/configure.gnu; then
979 echo
980 $SHELL $ac_srcdir/configure.gnu --help=recursive
981 elif test -f $ac_srcdir/configure; then
982 echo
983 $SHELL $ac_srcdir/configure --help=recursive
984 elif test -f $ac_srcdir/configure.ac ||
985 test -f $ac_srcdir/configure.in; then
986 echo
987 $ac_configure --help
988 else
989 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
991 cd "$ac_popdir"
992 done
995 test -n "$ac_init_help" && exit 0
996 if $ac_init_version; then
997 cat <<\_ACEOF
999 Copyright (C) 2003 Free Software Foundation, Inc.
1000 This configure script is free software; the Free Software Foundation
1001 gives unlimited permission to copy, distribute and modify it.
1002 _ACEOF
1003 exit 0
1005 exec 5>config.log
1006 cat >&5 <<_ACEOF
1007 This file contains any messages produced by compilers while
1008 running configure, to aid debugging if configure makes a mistake.
1010 It was created by $as_me, which was
1011 generated by GNU Autoconf 2.59. Invocation command line was
1013 $ $0 $@
1015 _ACEOF
1017 cat <<_ASUNAME
1018 ## --------- ##
1019 ## Platform. ##
1020 ## --------- ##
1022 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1023 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1024 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1025 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1026 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1028 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1029 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1031 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1032 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1033 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1034 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1035 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1036 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1037 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1039 _ASUNAME
1041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1042 for as_dir in $PATH
1044 IFS=$as_save_IFS
1045 test -z "$as_dir" && as_dir=.
1046 echo "PATH: $as_dir"
1047 done
1049 } >&5
1051 cat >&5 <<_ACEOF
1054 ## ----------- ##
1055 ## Core tests. ##
1056 ## ----------- ##
1058 _ACEOF
1061 # Keep a trace of the command line.
1062 # Strip out --no-create and --no-recursion so they do not pile up.
1063 # Strip out --silent because we don't want to record it for future runs.
1064 # Also quote any args containing shell meta-characters.
1065 # Make two passes to allow for proper duplicate-argument suppression.
1066 ac_configure_args=
1067 ac_configure_args0=
1068 ac_configure_args1=
1069 ac_sep=
1070 ac_must_keep_next=false
1071 for ac_pass in 1 2
1073 for ac_arg
1075 case $ac_arg in
1076 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1077 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1078 | -silent | --silent | --silen | --sile | --sil)
1079 continue ;;
1080 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1081 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1082 esac
1083 case $ac_pass in
1084 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1086 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1087 if test $ac_must_keep_next = true; then
1088 ac_must_keep_next=false # Got value, back to normal.
1089 else
1090 case $ac_arg in
1091 *=* | --config-cache | -C | -disable-* | --disable-* \
1092 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1093 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1094 | -with-* | --with-* | -without-* | --without-* | --x)
1095 case "$ac_configure_args0 " in
1096 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1097 esac
1099 -* ) ac_must_keep_next=true ;;
1100 esac
1102 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1103 # Get rid of the leading space.
1104 ac_sep=" "
1106 esac
1107 done
1108 done
1109 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1110 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1112 # When interrupted or exit'd, cleanup temporary files, and complete
1113 # config.log. We remove comments because anyway the quotes in there
1114 # would cause problems or look ugly.
1115 # WARNING: Be sure not to use single quotes in there, as some shells,
1116 # such as our DU 5.0 friend, will then `close' the trap.
1117 trap 'exit_status=$?
1118 # Save into config.log some information that might help in debugging.
1120 echo
1122 cat <<\_ASBOX
1123 ## ---------------- ##
1124 ## Cache variables. ##
1125 ## ---------------- ##
1126 _ASBOX
1127 echo
1128 # The following way of writing the cache mishandles newlines in values,
1130 (set) 2>&1 |
1131 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1132 *ac_space=\ *)
1133 sed -n \
1134 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1135 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1138 sed -n \
1139 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1141 esac;
1143 echo
1145 cat <<\_ASBOX
1146 ## ----------------- ##
1147 ## Output variables. ##
1148 ## ----------------- ##
1149 _ASBOX
1150 echo
1151 for ac_var in $ac_subst_vars
1153 eval ac_val=$`echo $ac_var`
1154 echo "$ac_var='"'"'$ac_val'"'"'"
1155 done | sort
1156 echo
1158 if test -n "$ac_subst_files"; then
1159 cat <<\_ASBOX
1160 ## ------------- ##
1161 ## Output files. ##
1162 ## ------------- ##
1163 _ASBOX
1164 echo
1165 for ac_var in $ac_subst_files
1167 eval ac_val=$`echo $ac_var`
1168 echo "$ac_var='"'"'$ac_val'"'"'"
1169 done | sort
1170 echo
1173 if test -s confdefs.h; then
1174 cat <<\_ASBOX
1175 ## ----------- ##
1176 ## confdefs.h. ##
1177 ## ----------- ##
1178 _ASBOX
1179 echo
1180 sed "/^$/d" confdefs.h | sort
1181 echo
1183 test "$ac_signal" != 0 &&
1184 echo "$as_me: caught signal $ac_signal"
1185 echo "$as_me: exit $exit_status"
1186 } >&5
1187 rm -f core *.core &&
1188 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1189 exit $exit_status
1191 for ac_signal in 1 2 13 15; do
1192 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1193 done
1194 ac_signal=0
1196 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1197 rm -rf conftest* confdefs.h
1198 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1199 echo >confdefs.h
1201 # Predefined preprocessor variables.
1203 cat >>confdefs.h <<_ACEOF
1204 #define PACKAGE_NAME "$PACKAGE_NAME"
1205 _ACEOF
1208 cat >>confdefs.h <<_ACEOF
1209 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1210 _ACEOF
1213 cat >>confdefs.h <<_ACEOF
1214 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1215 _ACEOF
1218 cat >>confdefs.h <<_ACEOF
1219 #define PACKAGE_STRING "$PACKAGE_STRING"
1220 _ACEOF
1223 cat >>confdefs.h <<_ACEOF
1224 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1225 _ACEOF
1228 # Let the site file select an alternate cache file if it wants to.
1229 # Prefer explicitly selected file to automatically selected ones.
1230 if test -z "$CONFIG_SITE"; then
1231 if test "x$prefix" != xNONE; then
1232 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1233 else
1234 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1237 for ac_site_file in $CONFIG_SITE; do
1238 if test -r "$ac_site_file"; then
1239 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1240 echo "$as_me: loading site script $ac_site_file" >&6;}
1241 sed 's/^/| /' "$ac_site_file" >&5
1242 . "$ac_site_file"
1244 done
1246 if test -r "$cache_file"; then
1247 # Some versions of bash will fail to source /dev/null (special
1248 # files actually), so we avoid doing that.
1249 if test -f "$cache_file"; then
1250 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1251 echo "$as_me: loading cache $cache_file" >&6;}
1252 case $cache_file in
1253 [\\/]* | ?:[\\/]* ) . $cache_file;;
1254 *) . ./$cache_file;;
1255 esac
1257 else
1258 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1259 echo "$as_me: creating cache $cache_file" >&6;}
1260 >$cache_file
1263 # Check that the precious variables saved in the cache have kept the same
1264 # value.
1265 ac_cache_corrupted=false
1266 for ac_var in `(set) 2>&1 |
1267 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1268 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1269 eval ac_new_set=\$ac_env_${ac_var}_set
1270 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1271 eval ac_new_val="\$ac_env_${ac_var}_value"
1272 case $ac_old_set,$ac_new_set in
1273 set,)
1274 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1275 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1276 ac_cache_corrupted=: ;;
1277 ,set)
1278 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1279 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1280 ac_cache_corrupted=: ;;
1281 ,);;
1283 if test "x$ac_old_val" != "x$ac_new_val"; then
1284 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1285 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1286 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1287 echo "$as_me: former value: $ac_old_val" >&2;}
1288 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1289 echo "$as_me: current value: $ac_new_val" >&2;}
1290 ac_cache_corrupted=:
1291 fi;;
1292 esac
1293 # Pass precious variables to config.status.
1294 if test "$ac_new_set" = set; then
1295 case $ac_new_val in
1296 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1297 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1298 *) ac_arg=$ac_var=$ac_new_val ;;
1299 esac
1300 case " $ac_configure_args " in
1301 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1302 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1303 esac
1305 done
1306 if $ac_cache_corrupted; then
1307 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1308 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1309 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1310 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1311 { (exit 1); exit 1; }; }
1314 ac_ext=c
1315 ac_cpp='$CPP $CPPFLAGS'
1316 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1317 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1318 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1338 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
1341 test "$program_prefix" != NONE &&
1342 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1343 # Use a double $ so make ignores it.
1344 test "$program_suffix" != NONE &&
1345 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1346 # Double any \ or $. echo might interpret backslashes.
1347 # By default was `s,x,x', remove it if useless.
1348 cat <<\_ACEOF >conftest.sed
1349 s/[\\$]/&&/g;s/;s,x,x,$//
1350 _ACEOF
1351 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1352 rm conftest.sed
1355 lispdir='${datadir}/emacs/${version}/lisp'
1356 locallisppath='${datadir}/emacs/${version}/site-lisp:'\
1357 '${datadir}/emacs/site-lisp'
1358 lisppath='${locallisppath}:${lispdir}:${datadir}/emacs/${version}/leim'
1359 etcdir='${datadir}/emacs/${version}/etc'
1360 archlibdir='${libexecdir}/emacs/${version}/${configuration}'
1361 docdir='${datadir}/emacs/${version}/etc'
1362 gamedir='${localstatedir}/games/emacs'
1364 gameuser=games
1367 # Check whether --with-gcc or --without-gcc was given.
1368 if test "${with_gcc+set}" = set; then
1369 withval="$with_gcc"
1373 # Check whether --with-pop or --without-pop was given.
1374 if test "${with_pop+set}" = set; then
1375 withval="$with_pop"
1376 if test "$withval" = yes; then
1377 cat >>confdefs.h <<\_ACEOF
1378 #define MAIL_USE_POP 1
1379 _ACEOF
1381 else :
1383 else
1384 cat >>confdefs.h <<\_ACEOF
1385 #define MAIL_USE_POP 1
1386 _ACEOF
1391 # Check whether --with-kerberos or --without-kerberos was given.
1392 if test "${with_kerberos+set}" = set; then
1393 withval="$with_kerberos"
1394 cat >>confdefs.h <<\_ACEOF
1395 #define KERBEROS 1
1396 _ACEOF
1401 # Check whether --with-kerberos5 or --without-kerberos5 was given.
1402 if test "${with_kerberos5+set}" = set; then
1403 withval="$with_kerberos5"
1404 if test "${with_kerberos5+set}" = set; then
1405 if test "${with_kerberos+set}" != set; then
1406 with_kerberos=yes
1407 cat >>confdefs.h <<\_ACEOF
1408 #define KERBEROS 1
1409 _ACEOF
1414 cat >>confdefs.h <<\_ACEOF
1415 #define KERBEROS5 1
1416 _ACEOF
1420 # Check whether --with-hesiod or --without-hesiod was given.
1421 if test "${with_hesiod+set}" = set; then
1422 withval="$with_hesiod"
1424 cat >>confdefs.h <<\_ACEOF
1425 #define HESIOD 1
1426 _ACEOF
1431 # Check whether --with-sound or --without-sound was given.
1432 if test "${with_sound+set}" = set; then
1433 withval="$with_sound"
1438 # Check whether --with-x-toolkit or --without-x-toolkit was given.
1439 if test "${with_x_toolkit+set}" = set; then
1440 withval="$with_x_toolkit"
1441 case "${withval}" in
1442 y | ye | yes ) val=athena ;;
1443 n | no ) val=no ;;
1444 l | lu | luc | luci | lucid ) val=lucid ;;
1445 a | at | ath | athe | athen | athena ) val=athena ;;
1446 m | mo | mot | moti | motif ) val=motif ;;
1447 g | gt | gtk ) val=gtk ;;
1449 { { echo "$as_me:$LINENO: error: \`--with-x-toolkit=$withval' is invalid\;
1450 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
1451 Currently, \`yes', \`athena' and \`lucid' are synonyms." >&5
1452 echo "$as_me: error: \`--with-x-toolkit=$withval' is invalid\;
1453 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
1454 Currently, \`yes', \`athena' and \`lucid' are synonyms." >&2;}
1455 { (exit 1); exit 1; }; }
1457 esac
1458 with_x_toolkit=$val
1462 # Check whether --with-xpm or --without-xpm was given.
1463 if test "${with_xpm+set}" = set; then
1464 withval="$with_xpm"
1468 # Check whether --with-jpeg or --without-jpeg was given.
1469 if test "${with_jpeg+set}" = set; then
1470 withval="$with_jpeg"
1474 # Check whether --with-tiff or --without-tiff was given.
1475 if test "${with_tiff+set}" = set; then
1476 withval="$with_tiff"
1480 # Check whether --with-gif or --without-gif was given.
1481 if test "${with_gif+set}" = set; then
1482 withval="$with_gif"
1486 # Check whether --with-png or --without-png was given.
1487 if test "${with_png+set}" = set; then
1488 withval="$with_png"
1492 # Check whether --with-gtk or --without-gtk was given.
1493 if test "${with_gtk+set}" = set; then
1494 withval="$with_gtk"
1498 # Check whether --with-pkg-config-prog or --without-pkg-config-prog was given.
1499 if test "${with_pkg_config_prog+set}" = set; then
1500 withval="$with_pkg_config_prog"
1504 # Check whether --with-toolkit-scroll-bars or --without-toolkit-scroll-bars was given.
1505 if test "${with_toolkit_scroll_bars+set}" = set; then
1506 withval="$with_toolkit_scroll_bars"
1510 # Check whether --with-xim or --without-xim was given.
1511 if test "${with_xim+set}" = set; then
1512 withval="$with_xim"
1516 # Check whether --with-carbon or --without-carbon was given.
1517 if test "${with_carbon+set}" = set; then
1518 withval="$with_carbon"
1521 # Check whether --enable-carbon-app or --disable-carbon-app was given.
1522 if test "${enable_carbon_app+set}" = set; then
1523 enableval="$enable_carbon_app"
1524 carbon_appdir_x=${enableval}
1527 # Check whether --enable-asserts or --disable-asserts was given.
1528 if test "${enable_asserts+set}" = set; then
1529 enableval="$enable_asserts"
1530 USE_XASSERTS=$enableval
1531 else
1532 USE_XASSERTS=no
1535 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1536 if test "${enable_maintainer_mode+set}" = set; then
1537 enableval="$enable_maintainer_mode"
1538 USE_MAINTAINER_MODE=$enableval
1539 else
1540 USE_MAINTAINER_MODE=no
1542 if test $USE_MAINTAINER_MODE = yes; then
1543 MAINT=
1544 else
1545 MAINT=#
1549 # Check whether --enable-locallisppath or --disable-locallisppath was given.
1550 if test "${enable_locallisppath+set}" = set; then
1551 enableval="$enable_locallisppath"
1552 if test "${enableval}" = "no"; then
1553 locallisppath=
1554 elif test "${enableval}" != "yes"; then
1555 locallisppath=${enableval}
1559 #### Make srcdir absolute, if it isn't already. It's important to
1560 #### avoid running the path through pwd unnecessarily, since pwd can
1561 #### give you automounter prefixes, which can go away. We do all this
1562 #### so Emacs can find its files when run uninstalled.
1563 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
1564 unset CDPATH
1565 case "${srcdir}" in
1566 /* ) ;;
1568 ## We may be able to use the $PWD environment variable to make this
1569 ## absolute. But sometimes PWD is inaccurate.
1570 ## Note: we used to use ${PWD} at the end instead of `pwd`,
1571 ## but that tested only for a well-formed and valid PWD,
1572 ## it did not object when PWD was well-formed and valid but just wrong.
1573 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
1574 then
1575 srcdir="$PWD"
1576 else
1577 srcdir="`(cd ${srcdir}; pwd)`"
1580 * ) srcdir="`(cd ${srcdir}; pwd)`" ;;
1581 esac
1583 #### Check if the source directory already has a configured system in it.
1584 if test `pwd` != `(cd ${srcdir} && pwd)` \
1585 && test -f "${srcdir}/src/config.h" ; then
1586 { echo "$as_me:$LINENO: WARNING: The directory tree \`${srcdir}' is being used
1587 as a build directory right now; it has been configured in its own
1588 right. To configure in another directory as well, you MUST
1589 use GNU make. If you do not have GNU make, then you must
1590 now do \`make distclean' in ${srcdir},
1591 and then run $0 again." >&5
1592 echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
1593 as a build directory right now; it has been configured in its own
1594 right. To configure in another directory as well, you MUST
1595 use GNU make. If you do not have GNU make, then you must
1596 now do \`make distclean' in ${srcdir},
1597 and then run $0 again." >&2;}
1600 #### Given the configuration name, set machfile and opsysfile to the
1601 #### names of the m/*.h and s/*.h files we should use.
1603 ### Canonicalize the configuration name.
1605 ac_aux_dir=
1606 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1607 if test -f $ac_dir/install-sh; then
1608 ac_aux_dir=$ac_dir
1609 ac_install_sh="$ac_aux_dir/install-sh -c"
1610 break
1611 elif test -f $ac_dir/install.sh; then
1612 ac_aux_dir=$ac_dir
1613 ac_install_sh="$ac_aux_dir/install.sh -c"
1614 break
1615 elif test -f $ac_dir/shtool; then
1616 ac_aux_dir=$ac_dir
1617 ac_install_sh="$ac_aux_dir/shtool install -c"
1618 break
1620 done
1621 if test -z "$ac_aux_dir"; then
1622 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1623 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1624 { (exit 1); exit 1; }; }
1626 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1627 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1628 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1630 # Make sure we can run config.sub.
1631 $ac_config_sub sun4 >/dev/null 2>&1 ||
1632 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1633 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1634 { (exit 1); exit 1; }; }
1636 echo "$as_me:$LINENO: checking build system type" >&5
1637 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1638 if test "${ac_cv_build+set}" = set; then
1639 echo $ECHO_N "(cached) $ECHO_C" >&6
1640 else
1641 ac_cv_build_alias=$build_alias
1642 test -z "$ac_cv_build_alias" &&
1643 ac_cv_build_alias=`$ac_config_guess`
1644 test -z "$ac_cv_build_alias" &&
1645 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1646 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1647 { (exit 1); exit 1; }; }
1648 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1649 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1650 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1651 { (exit 1); exit 1; }; }
1654 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1655 echo "${ECHO_T}$ac_cv_build" >&6
1656 build=$ac_cv_build
1657 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1658 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1659 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1662 echo "$as_me:$LINENO: checking host system type" >&5
1663 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1664 if test "${ac_cv_host+set}" = set; then
1665 echo $ECHO_N "(cached) $ECHO_C" >&6
1666 else
1667 ac_cv_host_alias=$host_alias
1668 test -z "$ac_cv_host_alias" &&
1669 ac_cv_host_alias=$ac_cv_build_alias
1670 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1671 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1672 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1673 { (exit 1); exit 1; }; }
1676 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1677 echo "${ECHO_T}$ac_cv_host" >&6
1678 host=$ac_cv_host
1679 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1680 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1681 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1684 canonical=$host
1685 configuration=${host_alias-$host}
1689 ### If you add support for a new configuration, add code to this
1690 ### switch statement to recognize your configuration name and select
1691 ### the appropriate operating system and machine description files.
1693 ### You would hope that you could choose an m/*.h file pretty much
1694 ### based on the machine portion of the configuration name, and an s-
1695 ### file based on the operating system portion. However, it turns out
1696 ### that each m/*.h file is pretty manufacturer-specific - for
1697 ### example, apollo.h, hp9000s300.h, mega68k, news.h, and tad68k are
1698 ### all 68000 machines; mips.h, pmax.h, and news-risc are all MIPS
1699 ### machines. So we basically have to have a special case for each
1700 ### configuration name.
1702 ### As far as handling version numbers on operating systems is
1703 ### concerned, make sure things will fail in a fixable way. If
1704 ### /etc/MACHINES doesn't say anything about version numbers, be
1705 ### prepared to handle anything reasonably. If version numbers
1706 ### matter, be sure /etc/MACHINES says something about it.
1708 ### Eric Raymond says we should accept strings like "sysvr4" to mean
1709 ### "System V Release 4"; he writes, "The old convention encouraged
1710 ### confusion between `system' and `release' levels'."
1712 machine='' opsys='' unported=no
1713 case "${canonical}" in
1715 ## FreeBSD ports
1716 *-*-freebsd* )
1717 opsys=freebsd
1718 case "${canonical}" in
1719 alpha*-*-freebsd*) machine=alpha ;;
1720 ia64-*-freebsd*) machine=ia64 ;;
1721 sparc64-*-freebsd*) machine=sparc ;;
1722 powerpc-*-freebsd*) machine=macppc ;;
1723 i[3456]86-*-freebsd*) machine=intel386 ;;
1724 amd64-*-freebsd*|x86_64-*-freebsd*) machine=amdx86-64 ;;
1725 esac
1728 ## NetBSD ports
1729 *-*-netbsd* )
1730 opsys=netbsd
1731 if test -f /usr/lib/crti.o; then
1733 cat >>confdefs.h <<\_ACEOF
1734 #define HAVE_CRTIN
1735 _ACEOF
1739 case "${canonical}" in
1740 alpha*-*-netbsd*) machine=alpha ;;
1741 i[3456]86-*-netbsd*) machine=intel386 ;;
1742 m68k-*-netbsd*)
1743 # This is somewhat bogus.
1744 machine=hp9000s300 ;;
1745 powerpc-apple-netbsd*) machine=macppc ;;
1746 mips-*-netbsd*) machine=pmax ;;
1747 mipsel-*-netbsd*) machine=pmax ;;
1748 mipseb-*-netbsd*) machine=pmax ;;
1749 ns32k-*-netbsd*) machine=ns32000 ;;
1750 powerpc-*-netbsd*) machine=macppc ;;
1751 sparc*-*-netbsd*) machine=sparc ;;
1752 vax-*-netbsd*) machine=vax ;;
1753 arm-*-netbsd*) machine=arm ;;
1754 esac
1757 ## OpenBSD ports
1758 *-*-openbsd* )
1759 opsys=openbsd
1760 case "${canonical}" in
1761 alpha*-*-openbsd*) machine=alpha ;;
1762 i386-*-openbsd*) machine=intel386 ;;
1763 x86_64-*-openbsd*) machine=amdx86-64 ;;
1764 m68k-*-openbsd*) machine=hp9000s300 ;;
1765 mipsel-*-openbsd*) machine=pmax ;;
1766 ns32k-*-openbsd*) machine=ns32000 ;;
1767 sparc-*-openbsd*) machine=sparc ;;
1768 vax-*-openbsd*) machine=vax ;;
1769 esac
1772 ## LynxOS ports
1773 *-*-lynxos* )
1774 opsys=lynxos
1775 case "${canonical}" in
1776 i[3456]86-*-lynxos*) machine=intel386 ;;
1777 powerpc-*-lynxos*) machine=powerpc ;;
1778 esac
1781 ## Acorn RISCiX:
1782 arm-acorn-riscix1.1* )
1783 machine=acorn opsys=riscix1-1
1785 arm-acorn-riscix1.2* | arm-acorn-riscix )
1786 ## This name is riscix12 instead of riscix1.2
1787 ## to avoid a file name conflict on MSDOS.
1788 machine=acorn opsys=riscix12
1791 ## BSDI ports
1792 *-*-bsdi* )
1793 opsys=bsdi
1794 case "${canonical}" in
1795 i[345]86-*-bsdi*) machine=intel386 ;;
1796 sparc-*-bsdi*) machine=sparc ;;
1797 powerpc-*-bsdi*) machine=macppc ;;
1798 esac
1799 case "${canonical}" in
1800 *-*-bsd386* | *-*-bsdi1* ) opsys=bsd386 ;;
1801 *-*-bsdi2.0* ) opsys=bsdos2 ;;
1802 *-*-bsdi2* ) opsys=bsdos2-1 ;;
1803 *-*-bsdi3* ) opsys=bsdos3 ;;
1804 *-*-bsdi[45]* ) opsys=bsdos4 ;;
1805 esac
1808 ## Alliant machines
1809 ## Strictly speaking, we need the version of the alliant operating
1810 ## system to choose the right machine file, but currently the
1811 ## configuration name doesn't tell us enough to choose the right
1812 ## one; we need to give alliants their own operating system name to
1813 ## do this right. When someone cares, they can help us.
1814 fx80-alliant-* )
1815 machine=alliant4 opsys=bsd4-2
1817 i860-alliant-* )
1818 machine=alliant-2800 opsys=bsd4-3
1821 ## Alpha (DEC) machines.
1822 alpha*-dec-osf* )
1823 machine=alpha opsys=osf1
1824 # This is needed to find X11R6.1 libraries for certain tests.
1825 NON_GCC_LINK_TEST_OPTIONS=-Wl,-rpath,/usr/X11R6/lib
1826 GCC_LINK_TEST_OPTIONS=-Wl,-rpath,/usr/X11R6/lib
1827 # NON_GNU_CPP is necessary on 5.0 to avoid mangling src/Makefile
1828 # due to non-traditional preprocessing with the current compiler
1829 # defaults. OSF 4 can also have that compiler version, and there
1830 # seems always to have been a usable /usr/bin/cpp.
1831 NON_GNU_CPP=/usr/bin/cpp
1832 case "${canonical}" in
1833 alpha*-dec-osf[5-9]*)
1834 opsys=osf5-0 ;;
1835 esac
1838 alpha*-*-linux-gnu* )
1839 machine=alpha opsys=gnu-linux
1842 arm*-*-linux-gnu* )
1843 machine=arm opsys=gnu-linux
1846 ## Altos 3068
1847 m68*-altos-sysv* )
1848 machine=altos opsys=usg5-2
1851 ## Amdahl UTS
1852 580-amdahl-sysv* )
1853 machine=amdahl opsys=usg5-2-2
1856 ## Apollo, Domain/OS
1857 m68*-apollo-* )
1858 machine=apollo opsys=bsd4-3
1861 ## AT&T 3b2, 3b5, 3b15, 3b20
1862 we32k-att-sysv* )
1863 machine=att3b opsys=usg5-2-2
1866 ## AT&T 3b1 - The Mighty Unix PC!
1867 m68*-att-sysv* )
1868 machine=7300 opsys=usg5-2-2
1871 ## Bull dpx20
1872 rs6000-bull-bosx* )
1873 machine=ibmrs6000 opsys=aix3-2
1876 ## Bull dpx2
1877 m68*-bull-sysv3* )
1878 machine=dpx2 opsys=usg5-3
1881 ## Bull sps7
1882 m68*-bull-sysv2* )
1883 machine=sps7 opsys=usg5-2
1886 ## CCI 5/32, 6/32 -- see "Tahoe".
1888 ## Celerity
1889 ## I don't know what configuration name to use for this; config.sub
1890 ## doesn't seem to know anything about it. Hey, Celerity users, get
1891 ## in touch with us!
1892 celerity-celerity-bsd* )
1893 machine=celerity opsys=bsd4-2
1896 ## Clipper
1897 ## What operating systems does this chip run that Emacs has been
1898 ## tested on?
1899 clipper-* )
1900 machine=clipper
1901 ## We'll use the catch-all code at the bottom to guess the
1902 ## operating system.
1905 ## Compaq Nonstop
1906 mips-compaq-nonstopux* )
1907 machine=nonstopux opsys=nonstopux
1910 ## Convex
1911 *-convex-bsd* | *-convex-convexos* )
1912 machine=convex opsys=bsd4-3
1913 ## Prevents spurious white space in makefiles - d.m.cooke@larc.nasa.gov
1914 NON_GNU_CPP="cc -E -P"
1917 ## Cubix QBx/386
1918 i[3456]86-cubix-sysv* )
1919 machine=intel386 opsys=usg5-3
1922 ## Cydra 5
1923 cydra*-cydrome-sysv* )
1924 machine=cydra5 opsys=usg5-3
1927 ## Data General AViiON Machines
1928 ## DG changed naming conventions with the release of 5.4.4.10, they
1929 ## dropped the initial 5.4 but left the intervening R. Because of the
1930 ## R this shouldn't conflict with older versions of the OS (which I
1931 ## think were named like dgux4.*). In addition, DG new AViiONs series
1932 ## uses either Motorola M88k or Intel Pentium CPUs.
1933 m88k-dg-dguxR4.* | m88k-dg-dgux4* )
1934 machine=aviion opsys=dgux4
1936 m88k-dg-dgux5.4R3* | m88k-dg-dgux5.4.3* )
1937 ## This name is dgux5-4-3 instead of dgux5-4r3
1938 ## to avoid a file name conflict on MSDOS.
1939 machine=aviion opsys=dgux5-4-3
1941 m88k-dg-dgux5.4R2* | m88k-dg-dgux5.4.2* )
1942 machine=aviion opsys=dgux5-4r2
1944 m88k-dg-dgux* )
1945 machine=aviion opsys=dgux
1948 ## Data General AViiON Intel (x86) Machines
1949 ## Exists from 5.4.3 (current i586-dg-dguxR4.11)
1950 ## Ehud Karni, 1998-may-30, ehud@unix.simonwiesel.co.il
1951 i[345]86-dg-dguxR4* )
1952 machine=aviion-intel opsys=dgux4
1955 ## DECstations
1956 mips-dec-ultrix[0-3].* | mips-dec-ultrix4.0* | mips-dec-bsd4.2* )
1957 machine=pmax opsys=bsd4-2
1959 mips-dec-ultrix4.[12]* | mips-dec-bsd* )
1960 machine=pmax opsys=bsd4-3
1962 mips-dec-ultrix* )
1963 machine=pmax opsys=ultrix4-3
1965 mips-dec-osf* )
1966 machine=pmax opsys=osf1
1968 mips-dec-mach_bsd4.3* )
1969 machine=pmax opsys=mach-bsd4-3
1972 ## Motorola Delta machines
1973 m68k-motorola-sysv* | m68000-motorola-sysv* )
1974 machine=delta opsys=usg5-3
1975 if test -z "`type gnucc | grep 'not found'`"
1976 then
1977 if test -s /etc/167config
1978 then CC="gnucc -m68040"
1979 else CC="gnucc -m68881"
1981 else
1982 if test -z "`type gcc | grep 'not found'`"
1983 then CC=gcc
1984 else CC=cc
1988 m88k-motorola-sysv4* )
1989 # jbotte@bnr.ca says that UNIX_System_V <hostName> 4.0 R40V4.3 m88k mc88110
1990 # needs POSIX_SIGNALS and therefore needs usg5-4-2.
1991 # I hope there are not other 4.0 versions for this machine
1992 # which really need usg5-4 instead.
1993 machine=delta88k opsys=usg5-4-2
1995 m88k-motorola-sysv* | m88k-motorola-m88kbcs* )
1996 machine=delta88k opsys=usg5-3
1999 ## Dual machines
2000 m68*-dual-sysv* )
2001 machine=dual opsys=usg5-2
2003 m68*-dual-uniplus* )
2004 machine=dual opsys=unipl5-2
2007 ## Elxsi 6400
2008 elxsi-elxsi-sysv* )
2009 machine=elxsi opsys=usg5-2
2012 ## Encore machines
2013 ns16k-encore-bsd* )
2014 machine=ns16000 opsys=umax
2017 ## The GEC 63 - apparently, this port isn't really finished yet.
2018 # I'm sure we finished off the last of the machines, though. -- fx
2020 ## Gould Power Node and NP1
2021 pn-gould-bsd4.2* )
2022 machine=gould opsys=bsd4-2
2024 pn-gould-bsd4.3* )
2025 machine=gould opsys=bsd4-3
2027 np1-gould-bsd* )
2028 machine=gould-np1 opsys=bsd4-3
2031 ## Harris Night Hawk machines running CX/UX (a 5000 looks just like a 4000
2032 ## as far as Emacs is concerned).
2033 m88k-harris-cxux* )
2034 # Build needs to be different on 7.0 and later releases
2035 case "`uname -r`" in
2036 [56].[0-9] ) machine=nh4000 opsys=cxux ;;
2037 [7].[0-9] ) machine=nh4000 opsys=cxux7 ;;
2038 esac
2039 NON_GNU_CPP="/lib/cpp"
2041 ## Harris ecx or gcx running CX/UX (Series 1200, Series 3000)
2042 m68k-harris-cxux* )
2043 machine=nh3000 opsys=cxux
2045 ## Harris power pc NightHawk running Power UNIX (Series 6000)
2046 powerpc-harris-powerunix )
2047 machine=nh6000 opsys=powerunix
2048 NON_GNU_CPP="cc -Xo -E -P"
2050 ## SR2001/SR2201 running HI-UX/MPP
2051 hppa1.1-hitachi-hiuxmpp* )
2052 machine=sr2k opsys=hiuxmpp
2054 hppa1.1-hitachi-hiuxwe2* )
2055 machine=sr2k opsys=hiuxwe2
2057 ## Honeywell XPS100
2058 xps*-honeywell-sysv* )
2059 machine=xps100 opsys=usg5-2
2062 ## HP 9000 series 200 or 300
2063 m68*-hp-bsd* )
2064 machine=hp9000s300 opsys=bsd4-3
2066 ## HP/UX 7, 8, 9, and 10 are supported on these machines.
2067 m68*-hp-hpux* )
2068 case "`uname -r`" in
2069 ## Someone's system reports A.B8.05 for this.
2070 ## I wonder what other possibilities there are.
2071 *.B8.* ) machine=hp9000s300 opsys=hpux8 ;;
2072 *.08.* ) machine=hp9000s300 opsys=hpux8 ;;
2073 *.09.* ) machine=hp9000s300 opsys=hpux9 ;;
2074 *.1[0-9].* ) machine=hp9000s300 opsys=hpux9shr ;;
2075 *) machine=hp9000s300 opsys=hpux ;;
2076 esac
2079 ## HP 9000 series 700 and 800, running HP/UX
2080 hppa*-hp-hpux7* )
2081 machine=hp800 opsys=hpux
2083 hppa*-hp-hpux8* )
2084 machine=hp800 opsys=hpux8
2086 hppa*-hp-hpux9shr* )
2087 machine=hp800 opsys=hpux9shr
2089 hppa*-hp-hpux9* )
2090 machine=hp800 opsys=hpux9
2092 hppa*-hp-hpux10.2* )
2093 machine=hp800 opsys=hpux10-20
2095 hppa*-hp-hpux10* )
2096 machine=hp800 opsys=hpux10
2098 hppa*-hp-hpux1[1-9]* )
2099 machine=hp800 opsys=hpux11
2100 CFLAGS="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
2103 hppa*-*-linux-gnu* )
2104 machine=hp800 opsys=gnu-linux
2107 ## HP 9000 series 700 and 800, running HP/UX
2108 hppa*-hp-hpux* )
2109 ## Cross-compilation? Nah!
2110 case "`uname -r`" in
2111 ## Someone's system reports A.B8.05 for this.
2112 ## I wonder what other possibilities there are.
2113 *.B8.* ) machine=hp800 opsys=hpux8 ;;
2114 *.08.* ) machine=hp800 opsys=hpux8 ;;
2115 *.09.* ) machine=hp800 opsys=hpux9 ;;
2116 *) machine=hp800 opsys=hpux10 ;;
2117 esac
2119 hppa*-*-nextstep* )
2120 machine=hp800 opsys=nextstep
2123 ## Orion machines
2124 orion-orion-bsd* )
2125 machine=orion opsys=bsd4-2
2127 clipper-orion-bsd* )
2128 machine=orion105 opsys=bsd4-2
2131 ## IBM machines
2132 i[3456]86-ibm-aix1.1* )
2133 machine=ibmps2-aix opsys=usg5-2-2
2135 i[3456]86-ibm-aix1.[23]* | i[3456]86-ibm-aix* )
2136 machine=ibmps2-aix opsys=usg5-3
2138 i370-ibm-aix*)
2139 machine=ibm370aix opsys=usg5-3
2141 s390-*-linux-gnu* )
2142 machine=ibms390 opsys=gnu-linux
2144 s390x-*-linux-gnu* )
2145 machine=ibms390x opsys=gnu-linux
2147 rs6000-ibm-aix3.1* | powerpc-ibm-aix3.1* )
2148 machine=ibmrs6000 opsys=aix3-1
2150 rs6000-ibm-aix3.2.5 | powerpc-ibm-aix3.2.5 )
2151 machine=ibmrs6000 opsys=aix3-2-5
2153 rs6000-ibm-aix4.1* | powerpc-ibm-aix4.1* )
2154 machine=ibmrs6000 opsys=aix4-1
2156 rs6000-ibm-aix4.2* | powerpc-ibm-aix4.2* )
2157 machine=ibmrs6000 opsys=aix4-2
2159 rs6000-ibm-aix5* | powerpc-ibm-aix5* )
2160 machine=ibmrs6000 opsys=aix4-2
2162 rs6000-ibm-aix4.0* | powerpc-ibm-aix4.0* )
2163 machine=ibmrs6000 opsys=aix4
2165 rs6000-ibm-aix4* | powerpc-ibm-aix4* )
2166 machine=ibmrs6000 opsys=aix4-1
2168 rs6000-ibm-aix* | powerpc-ibm-aix* )
2169 machine=ibmrs6000 opsys=aix3-2
2171 romp-ibm-bsd4.3* )
2172 machine=ibmrt opsys=bsd4-3
2174 romp-ibm-bsd4.2* )
2175 machine=ibmrt opsys=bsd4-2
2177 romp-ibm-aos4.3* )
2178 machine=ibmrt opsys=bsd4-3
2180 romp-ibm-aos4.2* )
2181 machine=ibmrt opsys=bsd4-2
2183 romp-ibm-aos* )
2184 machine=ibmrt opsys=bsd4-3
2186 romp-ibm-bsd* )
2187 machine=ibmrt opsys=bsd4-3
2189 romp-ibm-aix* )
2190 machine=ibmrt-aix opsys=usg5-2-2
2193 ## Integrated Solutions `Optimum V'
2194 m68*-isi-bsd4.2* )
2195 machine=isi-ov opsys=bsd4-2
2197 m68*-isi-bsd4.3* )
2198 machine=isi-ov opsys=bsd4-3
2201 ## Intel 386 machines where we do care about the manufacturer
2202 i[3456]86-intsys-sysv* )
2203 machine=is386 opsys=usg5-2-2
2206 ## Prime EXL
2207 i[3456]86-prime-sysv* )
2208 machine=i386 opsys=usg5-3
2211 ## Sequent Symmetry running Dynix
2212 i[3456]86-sequent-bsd* )
2213 machine=symmetry opsys=bsd4-3
2216 ## Sequent Symmetry running ptx 4, which is a modified SVR4.
2217 i[3456]86-sequent-ptx4* | i[3456]86-sequent-sysv4* )
2218 machine=sequent-ptx opsys=ptx4
2219 NON_GNU_CPP=/lib/cpp
2222 ## Sequent Symmetry running DYNIX/ptx
2223 ## Use the old cpp rather than the newer ANSI one.
2224 i[3456]86-sequent-ptx* )
2225 machine=sequent-ptx opsys=ptx
2226 NON_GNU_CPP="/lib/cpp"
2229 ## ncr machine running svr4.3.
2230 i[3456]86-ncr-sysv4.3 )
2231 machine=ncr386 opsys=usg5-4-3
2234 ## Unspecified sysv on an ncr machine defaults to svr4.2.
2235 ## (Plain usg5-4 doesn't turn on POSIX signals, which we need.)
2236 i[3456]86-ncr-sysv* )
2237 machine=ncr386 opsys=usg5-4-2
2240 ## Intel Paragon OSF/1
2241 i860-intel-osf1* )
2242 machine=paragon opsys=osf1 NON_GNU_CPP=/usr/mach/lib/cpp
2245 ## Intel 860
2246 i860-*-sysv4* )
2247 machine=i860 opsys=usg5-4
2248 NON_GNU_CC="/bin/cc" # Ie, not the one in /usr/ucb/cc.
2249 NON_GNU_CPP="/usr/ccs/lib/cpp" # cc -E tokenizes macro expansion.
2252 ## Macintosh PowerPC
2253 powerpc*-*-linux-gnu* )
2254 machine=macppc opsys=gnu-linux
2257 ## Masscomp machines
2258 m68*-masscomp-rtu* )
2259 machine=masscomp opsys=rtu
2262 ## Megatest machines
2263 m68*-megatest-bsd* )
2264 machine=mega68 opsys=bsd4-2
2267 ## Workstations sold by MIPS
2268 ## This is not necessarily all workstations using the MIPS processor -
2269 ## Irises are produced by SGI, and DECstations by DEC.
2271 ## etc/MACHINES lists mips.h and mips4.h as possible machine files,
2272 ## and usg5-2-2 and bsd4-3 as possible OS files. The only guidance
2273 ## it gives for choosing between the alternatives seems to be "Use
2274 ## -machine=mips4 for RISCOS version 4; use -opsystem=bsd4-3 with
2275 ## the BSD world." I'll assume that these are instructions for
2276 ## handling two odd situations, and that every other situation
2277 ## should use mips.h and usg5-2-2, they being listed first.
2278 mips-mips-usg* )
2279 machine=mips4
2280 ## Fall through to the general code at the bottom to decide on the OS.
2282 mips-mips-riscos4* )
2283 machine=mips4 opsys=bsd4-3
2284 NON_GNU_CC="cc -systype bsd43"
2285 NON_GNU_CPP="cc -systype bsd43 -E"
2287 mips-mips-riscos5* )
2288 machine=mips4 opsys=riscos5
2289 NON_GNU_CC="cc -systype bsd43"
2290 NON_GNU_CPP="cc -systype bsd43 -E"
2292 mips-mips-bsd* )
2293 machine=mips opsys=bsd4-3
2295 mips-mips-* )
2296 machine=mips opsys=usg5-2-2
2299 ## NeXT
2300 m68*-next-* | m68k-*-nextstep* )
2301 machine=m68k opsys=nextstep
2304 ## The complete machine from National Semiconductor
2305 ns32k-ns-genix* )
2306 machine=ns32000 opsys=usg5-2
2309 ## NCR machines
2310 m68*-ncr-sysv2* | m68*-ncr-sysvr2* )
2311 machine=tower32 opsys=usg5-2-2
2313 m68*-ncr-sysv3* | m68*-ncr-sysvr3* )
2314 machine=tower32v3 opsys=usg5-3
2317 ## NEC EWS4800
2318 mips-nec-sysv4*)
2319 machine=ews4800 opsys=ux4800
2322 ## Nixdorf Targon 31
2323 m68*-nixdorf-sysv* )
2324 machine=targon31 opsys=usg5-2-2
2327 ## Nu (TI or LMI)
2328 m68*-nu-sysv* )
2329 machine=nu opsys=usg5-2
2332 ## Plexus
2333 m68*-plexus-sysv* )
2334 machine=plexus opsys=usg5-2
2337 ## Pyramid machines
2338 ## I don't really have any idea what sort of processor the Pyramid has,
2339 ## so I'm assuming it is its own architecture.
2340 pyramid-pyramid-bsd* )
2341 machine=pyramid opsys=bsd4-2
2344 ## Sequent Balance
2345 ns32k-sequent-bsd4.2* )
2346 machine=sequent opsys=bsd4-2
2348 ns32k-sequent-bsd4.3* )
2349 machine=sequent opsys=bsd4-3
2352 ## Siemens Nixdorf
2353 mips-siemens-sysv* | mips-sni-sysv*)
2354 machine=mips-siemens opsys=usg5-4
2355 NON_GNU_CC=/usr/ccs/bin/cc
2356 NON_GNU_CPP=/usr/ccs/lib/cpp
2359 ## Silicon Graphics machines
2360 ## Iris 2500 and Iris 2500 Turbo (aka the Iris 3030)
2361 m68*-sgi-iris3.5* )
2362 machine=irist opsys=iris3-5
2364 m68*-sgi-iris3.6* | m68*-sgi-iris*)
2365 machine=irist opsys=iris3-6
2367 ## Iris 4D
2368 mips-sgi-irix3* )
2369 machine=iris4d opsys=irix3-3
2371 mips-sgi-irix4* )
2372 machine=iris4d opsys=irix4-0
2374 mips-sgi-irix6.5 )
2375 machine=iris4d opsys=irix6-5
2376 # Without defining _LANGUAGE_C, things get masked out in the headers
2377 # so that, for instance, grepping for `free' in stdlib.h fails and
2378 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
2379 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
2380 NON_GCC_TEST_OPTIONS="-D_LANGUAGE_C"
2382 mips-sgi-irix6* )
2383 machine=iris4d opsys=irix6-0
2384 # It's not clear whether -D_LANGUAGE_C is necessary as it is for 6.5,
2385 # but presumably it does no harm.
2386 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
2387 # -32 probably isn't necessary in later v.6s -- anyone know which?
2388 NON_GCC_TEST_OPTIONS=-32
2390 mips-sgi-irix5.[01]* )
2391 machine=iris4d opsys=irix5-0
2393 mips-sgi-irix5* | mips-sgi-irix* )
2394 machine=iris4d opsys=irix5-2
2397 ## SONY machines
2398 m68*-sony-bsd4.2* )
2399 machine=news opsys=bsd4-2
2401 m68*-sony-bsd4.3* )
2402 machine=news opsys=bsd4-3
2404 m68*-sony-newsos3* | m68*-sony-news3*)
2405 machine=news opsys=bsd4-3
2407 mips-sony-bsd* | mips-sony-newsos4* | mips-sony-news4*)
2408 machine=news-risc opsys=bsd4-3
2410 mips-sony-newsos6* )
2411 machine=news-r6 opsys=newsos6
2413 mips-sony-news* )
2414 machine=news-risc opsys=newsos5
2417 ## Stride
2418 m68*-stride-sysv* )
2419 machine=stride opsys=usg5-2
2422 ## Suns
2423 sparc-*-linux-gnu* | sparc64-*-linux-gnu* )
2424 machine=sparc opsys=gnu-linux
2427 *-auspex-sunos* | *-sun-sunos* | *-sun-bsd* | *-sun-solaris* \
2428 | i[3456]86-*-solaris2* | i[3456]86-*-sunos5* | powerpc*-*-solaris2* \
2429 | rs6000-*-solaris2*)
2430 case "${canonical}" in
2431 m68*-sunos1* ) machine=sun1 ;;
2432 m68*-sunos2* ) machine=sun2 ;;
2433 m68* ) machine=sun3 ;;
2434 i[3456]86-sun-sunos[34]* ) machine=sun386 ;;
2435 i[3456]86-*-* ) machine=intel386 ;;
2436 amd64-*-*|x86_64-*-*) machine=amdx86-64 ;;
2437 powerpcle* ) machine=powerpcle ;;
2438 powerpc* | rs6000* ) machine=ibmrs6000 ;;
2439 sparc* ) machine=sparc ;;
2440 * ) unported=yes ;;
2441 esac
2442 case "${canonical}" in
2443 ## The Sun386 didn't get past 4.0.
2444 i[3456]86-*-sunos4 ) opsys=sunos4-0 ;;
2445 *-sunos4.0* ) opsys=sunos4-0 ;;
2446 *-sunos4.1.[3-9]*noshare )
2447 ## This name is sunos413 instead of sunos4-1-3
2448 ## to avoid a file name conflict on MSDOS.
2449 opsys=sunos413
2450 NON_GNU_CPP=/usr/lib/cpp
2451 NON_GCC_TEST_OPTIONS=-Bstatic
2452 GCC_TEST_OPTIONS=-static
2454 *-sunos4.1.[3-9]* | *-sunos4shr*)
2455 opsys=sunos4shr
2456 NON_GNU_CPP=/usr/lib/cpp
2458 *-sunos4* | *-sunos )
2459 opsys=sunos4-1
2460 NON_GCC_TEST_OPTIONS=-Bstatic
2461 GCC_TEST_OPTIONS=-static
2463 *-sunos5.3* | *-solaris2.3* )
2464 opsys=sol2-3
2465 NON_GNU_CPP=/usr/ccs/lib/cpp
2467 *-sunos5.4* | *-solaris2.4* )
2468 opsys=sol2-4
2469 NON_GNU_CPP=/usr/ccs/lib/cpp
2470 RANLIB="ar -ts"
2472 *-sunos5.5* | *-solaris2.5* )
2473 opsys=sol2-5
2474 NON_GNU_CPP=/usr/ccs/lib/cpp
2475 RANLIB="ar -ts"
2477 *-sunos5.6* | *-solaris2.6* )
2478 opsys=sol2-6
2479 NON_GNU_CPP=/usr/ccs/lib/cpp
2480 RANLIB="ar -ts"
2482 *-sunos5* | *-solaris* )
2483 opsys=sol2-6
2484 NON_GNU_CPP=/usr/ccs/lib/cpp
2486 * ) opsys=bsd4-2 ;;
2487 esac
2488 ## Watch out for a compiler that we know will not work.
2489 case "${canonical}" in
2490 *-solaris* | *-sunos5* )
2491 if [ "x$CC" = x/usr/ucb/cc ]; then
2492 ## /usr/ucb/cc doesn't work;
2493 ## we should find some other compiler that does work.
2494 unset CC
2497 *) ;;
2498 esac
2500 sparc-*-nextstep* )
2501 machine=sparc opsys=nextstep
2504 ## Tadpole 68k
2505 m68*-tadpole-sysv* )
2506 machine=tad68k opsys=usg5-3
2509 ## Tahoe machines
2510 tahoe-tahoe-bsd4.2* )
2511 machine=tahoe opsys=bsd4-2
2513 tahoe-tahoe-bsd4.3* )
2514 machine=tahoe opsys=bsd4-3
2517 ## Tandem Integrity S2
2518 mips-tandem-sysv* )
2519 machine=tandem-s2 opsys=usg5-3
2522 ## Tektronix XD88
2523 m88k-tektronix-sysv3* )
2524 machine=tekxd88 opsys=usg5-3
2527 ## Tektronix 16000 box (6130?)
2528 ns16k-tektronix-bsd* )
2529 machine=ns16000 opsys=bsd4-2
2531 ## Tektronix 4300
2532 ## src/m/tek4300.h hints that this is a m68k machine.
2533 m68*-tektronix-bsd* )
2534 machine=tek4300 opsys=bsd4-3
2537 ## Titan P2 or P3
2538 ## We seem to have lost the machine-description file titan.h!
2539 titan-titan-sysv* )
2540 machine=titan opsys=usg5-3
2543 ## Ustation E30 (SS5E)
2544 m68*-unisys-uniplus* )
2545 machine=ustation opsystem=unipl5-2
2548 ## Vaxen.
2549 vax-dec-* )
2550 machine=vax
2551 case "${canonical}" in
2552 *-bsd4.1* ) opsys=bsd4-1 ;;
2553 *-bsd4.2* | *-ultrix[0-3].* | *-ultrix4.0* ) opsys=bsd4-2 ;;
2554 *-bsd4.3* | *-ultrix* ) opsys=bsd4-3 ;;
2555 *-sysv[01]* | *-sysvr[01]* ) opsys=usg5-0 ;;
2556 *-sysv2* | *-sysvr2* ) opsys=usg5-2 ;;
2557 *-vms* ) opsys=vms ;;
2558 * ) unported=yes
2559 esac
2562 ## Whitechapel MG1
2563 ns16k-whitechapel-* )
2564 machine=mg1
2565 ## We don't know what sort of OS runs on these; we'll let the
2566 ## operating system guessing code below try.
2569 ## Wicat
2570 m68*-wicat-sysv* )
2571 machine=wicat opsys=usg5-2
2574 ## IA-64
2575 ia64*-*-linux* )
2576 machine=ia64 opsys=gnu-linux
2579 ## Intel 386 machines where we don't care about the manufacturer
2580 i[3456]86-*-* )
2581 machine=intel386
2582 case "${canonical}" in
2583 *-cygwin ) opsys=cygwin ;;
2584 *-darwin* ) opsys=darwin
2585 CPP="${CC-cc} -E -no-cpp-precomp"
2587 *-isc1.* | *-isc2.[01]* ) opsys=386-ix ;;
2588 *-isc2.2* ) opsys=isc2-2 ;;
2589 *-isc4.0* ) opsys=isc4-0 ;;
2590 *-isc4.* ) opsys=isc4-1
2591 GCC_TEST_OPTIONS=-posix
2592 NON_GCC_TEST_OPTIONS=-Xp
2594 *-isc* ) opsys=isc3-0 ;;
2595 *-esix5* ) opsys=esix5r4; NON_GNU_CPP=/usr/lib/cpp ;;
2596 *-esix* ) opsys=esix ;;
2597 *-xenix* ) opsys=xenix ;;
2598 *-linux-gnu* ) opsys=gnu-linux ;;
2599 *-sco3.2v4* ) opsys=sco4 ; NON_GNU_CPP=/lib/cpp ;;
2600 *-sco3.2v5* ) opsys=sco5
2601 NON_GNU_CPP=/lib/cpp
2602 # Prevent -belf from being passed to $CPP.
2603 # /lib/cpp does not accept it.
2604 OVERRIDE_CPPFLAGS=" "
2606 *-sysv4.2uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
2607 *-sysv5uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
2608 *-sysv5OpenUNIX* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
2609 *-386bsd* ) opsys=386bsd ;;
2610 *-nextstep* ) opsys=nextstep ;;
2611 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
2612 esac
2615 ## m68k Linux-based GNU system
2616 m68k-*-linux-gnu* )
2617 machine=m68k opsys=gnu-linux
2620 ## Mips Linux-based GNU system
2621 mips-*-linux-gnu* | mipsel-*-linux-gnu* )
2622 machine=mips opsys=gnu-linux
2625 ## UXP/DS
2626 sparc-fujitsu-sysv4* )
2627 machine=sparc opsys=uxpds
2628 NON_GNU_CPP=/usr/ccs/lib/cpp
2629 RANLIB="ar -ts"
2632 ## UXP/V
2633 f301-fujitsu-uxpv4.1)
2634 machine=f301 opsys=uxpv
2637 ## Darwin / Mac OS X
2638 powerpc-apple-darwin* )
2639 machine=powermac opsys=darwin
2640 # Define CPP as follows to make autoconf work correctly.
2641 CPP="${CC-cc} -E -no-cpp-precomp"
2642 # Use fink packages if available.
2643 if test -d /sw/include && test -d /sw/lib; then
2644 GCC_TEST_OPTIONS="-I/sw/include -L/sw/lib"
2645 CPP="${CPP} ${GCC_TEST_OPTIONS}"
2646 NON_GCC_TEST_OPTIONS=${GCC_TEST_OPTIONS}
2650 ## AMD x86-64 Linux-based GNU system
2651 x86_64-*-linux-gnu* )
2652 machine=amdx86-64 opsys=gnu-linux
2656 unported=yes
2658 esac
2660 ### If the code above didn't choose an operating system, just choose
2661 ### an operating system based on the configuration name. You really
2662 ### only want to use this when you have no idea what the right
2663 ### operating system is; if you know what operating systems a machine
2664 ### runs, it's cleaner to make it explicit in the case statement
2665 ### above.
2666 if test x"${opsys}" = x; then
2667 case "${canonical}" in
2668 *-gnu* ) opsys=gnu ;;
2669 *-bsd4.[01] ) opsys=bsd4-1 ;;
2670 *-bsd4.2 ) opsys=bsd4-2 ;;
2671 *-bsd4.3 ) opsys=bsd4-3 ;;
2672 *-sysv0 | *-sysvr0 ) opsys=usg5-0 ;;
2673 *-sysv2 | *-sysvr2 ) opsys=usg5-2 ;;
2674 *-sysv2.2 | *-sysvr2.2 ) opsys=usg5-2-2 ;;
2675 *-sysv3* | *-sysvr3* ) opsys=usg5-3 ;;
2676 *-sysv4.2uw* ) opsys=unixware ;;
2677 *-sysv5uw* ) opsys=unixware ;;
2678 *-sysv5OpenUNIX* ) opsys=unixware ;;
2679 *-sysv4.1* | *-sysvr4.1* )
2680 NON_GNU_CPP=/usr/lib/cpp
2681 opsys=usg5-4 ;;
2682 *-sysv4.[2-9]* | *-sysvr4.[2-9]* )
2683 if [ x$NON_GNU_CPP = x ]; then
2684 if [ -f /usr/ccs/lib/cpp ]; then
2685 NON_GNU_CPP=/usr/ccs/lib/cpp
2686 else
2687 NON_GNU_CPP=/lib/cpp
2690 opsys=usg5-4-2 ;;
2691 *-sysv4* | *-sysvr4* ) opsys=usg5-4 ;;
2693 unported=yes
2695 esac
2700 if test $unported = yes; then
2701 { { echo "$as_me:$LINENO: error: Emacs hasn't been ported to \`${canonical}' systems.
2702 Check \`etc/MACHINES' for recognized configuration names." >&5
2703 echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems.
2704 Check \`etc/MACHINES' for recognized configuration names." >&2;}
2705 { (exit 1); exit 1; }; }
2708 machfile="m/${machine}.h"
2709 opsysfile="s/${opsys}.h"
2712 #### Choose a compiler.
2713 test -n "$CC" && cc_specified=yes
2715 # Save the value of CFLAGS that the user specified.
2716 SPECIFIED_CFLAGS="$CFLAGS"
2718 case ${with_gcc} in
2719 "yes" ) CC="gcc" GCC=yes ;;
2720 "no" ) : ${CC=cc} ;;
2722 esac
2723 ac_ext=c
2724 ac_cpp='$CPP $CPPFLAGS'
2725 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2726 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2727 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2728 if test -n "$ac_tool_prefix"; then
2729 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2730 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2731 echo "$as_me:$LINENO: checking for $ac_word" >&5
2732 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2733 if test "${ac_cv_prog_CC+set}" = set; then
2734 echo $ECHO_N "(cached) $ECHO_C" >&6
2735 else
2736 if test -n "$CC"; then
2737 ac_cv_prog_CC="$CC" # Let the user override the test.
2738 else
2739 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2740 for as_dir in $PATH
2742 IFS=$as_save_IFS
2743 test -z "$as_dir" && as_dir=.
2744 for ac_exec_ext in '' $ac_executable_extensions; do
2745 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2746 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2747 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2748 break 2
2750 done
2751 done
2755 CC=$ac_cv_prog_CC
2756 if test -n "$CC"; then
2757 echo "$as_me:$LINENO: result: $CC" >&5
2758 echo "${ECHO_T}$CC" >&6
2759 else
2760 echo "$as_me:$LINENO: result: no" >&5
2761 echo "${ECHO_T}no" >&6
2765 if test -z "$ac_cv_prog_CC"; then
2766 ac_ct_CC=$CC
2767 # Extract the first word of "gcc", so it can be a program name with args.
2768 set dummy gcc; ac_word=$2
2769 echo "$as_me:$LINENO: checking for $ac_word" >&5
2770 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2771 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2772 echo $ECHO_N "(cached) $ECHO_C" >&6
2773 else
2774 if test -n "$ac_ct_CC"; then
2775 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2776 else
2777 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2778 for as_dir in $PATH
2780 IFS=$as_save_IFS
2781 test -z "$as_dir" && as_dir=.
2782 for ac_exec_ext in '' $ac_executable_extensions; do
2783 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2784 ac_cv_prog_ac_ct_CC="gcc"
2785 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2786 break 2
2788 done
2789 done
2793 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2794 if test -n "$ac_ct_CC"; then
2795 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2796 echo "${ECHO_T}$ac_ct_CC" >&6
2797 else
2798 echo "$as_me:$LINENO: result: no" >&5
2799 echo "${ECHO_T}no" >&6
2802 CC=$ac_ct_CC
2803 else
2804 CC="$ac_cv_prog_CC"
2807 if test -z "$CC"; then
2808 if test -n "$ac_tool_prefix"; then
2809 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2810 set dummy ${ac_tool_prefix}cc; ac_word=$2
2811 echo "$as_me:$LINENO: checking for $ac_word" >&5
2812 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2813 if test "${ac_cv_prog_CC+set}" = set; then
2814 echo $ECHO_N "(cached) $ECHO_C" >&6
2815 else
2816 if test -n "$CC"; then
2817 ac_cv_prog_CC="$CC" # Let the user override the test.
2818 else
2819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2820 for as_dir in $PATH
2822 IFS=$as_save_IFS
2823 test -z "$as_dir" && as_dir=.
2824 for ac_exec_ext in '' $ac_executable_extensions; do
2825 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2826 ac_cv_prog_CC="${ac_tool_prefix}cc"
2827 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2828 break 2
2830 done
2831 done
2835 CC=$ac_cv_prog_CC
2836 if test -n "$CC"; then
2837 echo "$as_me:$LINENO: result: $CC" >&5
2838 echo "${ECHO_T}$CC" >&6
2839 else
2840 echo "$as_me:$LINENO: result: no" >&5
2841 echo "${ECHO_T}no" >&6
2845 if test -z "$ac_cv_prog_CC"; then
2846 ac_ct_CC=$CC
2847 # Extract the first word of "cc", so it can be a program name with args.
2848 set dummy cc; ac_word=$2
2849 echo "$as_me:$LINENO: checking for $ac_word" >&5
2850 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2851 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2852 echo $ECHO_N "(cached) $ECHO_C" >&6
2853 else
2854 if test -n "$ac_ct_CC"; then
2855 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2856 else
2857 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2858 for as_dir in $PATH
2860 IFS=$as_save_IFS
2861 test -z "$as_dir" && as_dir=.
2862 for ac_exec_ext in '' $ac_executable_extensions; do
2863 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2864 ac_cv_prog_ac_ct_CC="cc"
2865 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2866 break 2
2868 done
2869 done
2873 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2874 if test -n "$ac_ct_CC"; then
2875 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2876 echo "${ECHO_T}$ac_ct_CC" >&6
2877 else
2878 echo "$as_me:$LINENO: result: no" >&5
2879 echo "${ECHO_T}no" >&6
2882 CC=$ac_ct_CC
2883 else
2884 CC="$ac_cv_prog_CC"
2888 if test -z "$CC"; then
2889 # Extract the first word of "cc", so it can be a program name with args.
2890 set dummy cc; ac_word=$2
2891 echo "$as_me:$LINENO: checking for $ac_word" >&5
2892 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2893 if test "${ac_cv_prog_CC+set}" = set; then
2894 echo $ECHO_N "(cached) $ECHO_C" >&6
2895 else
2896 if test -n "$CC"; then
2897 ac_cv_prog_CC="$CC" # Let the user override the test.
2898 else
2899 ac_prog_rejected=no
2900 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2901 for as_dir in $PATH
2903 IFS=$as_save_IFS
2904 test -z "$as_dir" && as_dir=.
2905 for ac_exec_ext in '' $ac_executable_extensions; do
2906 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2907 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2908 ac_prog_rejected=yes
2909 continue
2911 ac_cv_prog_CC="cc"
2912 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2913 break 2
2915 done
2916 done
2918 if test $ac_prog_rejected = yes; then
2919 # We found a bogon in the path, so make sure we never use it.
2920 set dummy $ac_cv_prog_CC
2921 shift
2922 if test $# != 0; then
2923 # We chose a different compiler from the bogus one.
2924 # However, it has the same basename, so the bogon will be chosen
2925 # first if we set CC to just the basename; use the full file name.
2926 shift
2927 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2932 CC=$ac_cv_prog_CC
2933 if test -n "$CC"; then
2934 echo "$as_me:$LINENO: result: $CC" >&5
2935 echo "${ECHO_T}$CC" >&6
2936 else
2937 echo "$as_me:$LINENO: result: no" >&5
2938 echo "${ECHO_T}no" >&6
2942 if test -z "$CC"; then
2943 if test -n "$ac_tool_prefix"; then
2944 for ac_prog in cl
2946 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2947 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2948 echo "$as_me:$LINENO: checking for $ac_word" >&5
2949 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2950 if test "${ac_cv_prog_CC+set}" = set; then
2951 echo $ECHO_N "(cached) $ECHO_C" >&6
2952 else
2953 if test -n "$CC"; then
2954 ac_cv_prog_CC="$CC" # Let the user override the test.
2955 else
2956 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2957 for as_dir in $PATH
2959 IFS=$as_save_IFS
2960 test -z "$as_dir" && as_dir=.
2961 for ac_exec_ext in '' $ac_executable_extensions; do
2962 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2963 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2964 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2965 break 2
2967 done
2968 done
2972 CC=$ac_cv_prog_CC
2973 if test -n "$CC"; then
2974 echo "$as_me:$LINENO: result: $CC" >&5
2975 echo "${ECHO_T}$CC" >&6
2976 else
2977 echo "$as_me:$LINENO: result: no" >&5
2978 echo "${ECHO_T}no" >&6
2981 test -n "$CC" && break
2982 done
2984 if test -z "$CC"; then
2985 ac_ct_CC=$CC
2986 for ac_prog in cl
2988 # Extract the first word of "$ac_prog", so it can be a program name with args.
2989 set dummy $ac_prog; ac_word=$2
2990 echo "$as_me:$LINENO: checking for $ac_word" >&5
2991 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2992 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2993 echo $ECHO_N "(cached) $ECHO_C" >&6
2994 else
2995 if test -n "$ac_ct_CC"; then
2996 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2997 else
2998 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2999 for as_dir in $PATH
3001 IFS=$as_save_IFS
3002 test -z "$as_dir" && as_dir=.
3003 for ac_exec_ext in '' $ac_executable_extensions; do
3004 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3005 ac_cv_prog_ac_ct_CC="$ac_prog"
3006 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3007 break 2
3009 done
3010 done
3014 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3015 if test -n "$ac_ct_CC"; then
3016 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3017 echo "${ECHO_T}$ac_ct_CC" >&6
3018 else
3019 echo "$as_me:$LINENO: result: no" >&5
3020 echo "${ECHO_T}no" >&6
3023 test -n "$ac_ct_CC" && break
3024 done
3026 CC=$ac_ct_CC
3032 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3033 See \`config.log' for more details." >&5
3034 echo "$as_me: error: no acceptable C compiler found in \$PATH
3035 See \`config.log' for more details." >&2;}
3036 { (exit 1); exit 1; }; }
3038 # Provide some information about the compiler.
3039 echo "$as_me:$LINENO:" \
3040 "checking for C compiler version" >&5
3041 ac_compiler=`set X $ac_compile; echo $2`
3042 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3043 (eval $ac_compiler --version </dev/null >&5) 2>&5
3044 ac_status=$?
3045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3046 (exit $ac_status); }
3047 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3048 (eval $ac_compiler -v </dev/null >&5) 2>&5
3049 ac_status=$?
3050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3051 (exit $ac_status); }
3052 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3053 (eval $ac_compiler -V </dev/null >&5) 2>&5
3054 ac_status=$?
3055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3056 (exit $ac_status); }
3058 cat >conftest.$ac_ext <<_ACEOF
3059 /* confdefs.h. */
3060 _ACEOF
3061 cat confdefs.h >>conftest.$ac_ext
3062 cat >>conftest.$ac_ext <<_ACEOF
3063 /* end confdefs.h. */
3066 main ()
3070 return 0;
3072 _ACEOF
3073 ac_clean_files_save=$ac_clean_files
3074 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3075 # Try to create an executable without -o first, disregard a.out.
3076 # It will help us diagnose broken compilers, and finding out an intuition
3077 # of exeext.
3078 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3079 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
3080 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3081 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
3082 (eval $ac_link_default) 2>&5
3083 ac_status=$?
3084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3085 (exit $ac_status); }; then
3086 # Find the output, starting from the most likely. This scheme is
3087 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
3088 # resort.
3090 # Be careful to initialize this variable, since it used to be cached.
3091 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
3092 ac_cv_exeext=
3093 # b.out is created by i960 compilers.
3094 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
3096 test -f "$ac_file" || continue
3097 case $ac_file in
3098 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
3100 conftest.$ac_ext )
3101 # This is the source file.
3103 [ab].out )
3104 # We found the default executable, but exeext='' is most
3105 # certainly right.
3106 break;;
3107 *.* )
3108 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3109 # FIXME: I believe we export ac_cv_exeext for Libtool,
3110 # but it would be cool to find out if it's true. Does anybody
3111 # maintain Libtool? --akim.
3112 export ac_cv_exeext
3113 break;;
3115 break;;
3116 esac
3117 done
3118 else
3119 echo "$as_me: failed program was:" >&5
3120 sed 's/^/| /' conftest.$ac_ext >&5
3122 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3123 See \`config.log' for more details." >&5
3124 echo "$as_me: error: C compiler cannot create executables
3125 See \`config.log' for more details." >&2;}
3126 { (exit 77); exit 77; }; }
3129 ac_exeext=$ac_cv_exeext
3130 echo "$as_me:$LINENO: result: $ac_file" >&5
3131 echo "${ECHO_T}$ac_file" >&6
3133 # Check the compiler produces executables we can run. If not, either
3134 # the compiler is broken, or we cross compile.
3135 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3136 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
3137 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3138 # If not cross compiling, check that we can run a simple program.
3139 if test "$cross_compiling" != yes; then
3140 if { ac_try='./$ac_file'
3141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3142 (eval $ac_try) 2>&5
3143 ac_status=$?
3144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3145 (exit $ac_status); }; }; then
3146 cross_compiling=no
3147 else
3148 if test "$cross_compiling" = maybe; then
3149 cross_compiling=yes
3150 else
3151 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3152 If you meant to cross compile, use \`--host'.
3153 See \`config.log' for more details." >&5
3154 echo "$as_me: error: cannot run C compiled programs.
3155 If you meant to cross compile, use \`--host'.
3156 See \`config.log' for more details." >&2;}
3157 { (exit 1); exit 1; }; }
3161 echo "$as_me:$LINENO: result: yes" >&5
3162 echo "${ECHO_T}yes" >&6
3164 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3165 ac_clean_files=$ac_clean_files_save
3166 # Check the compiler produces executables we can run. If not, either
3167 # the compiler is broken, or we cross compile.
3168 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3169 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
3170 echo "$as_me:$LINENO: result: $cross_compiling" >&5
3171 echo "${ECHO_T}$cross_compiling" >&6
3173 echo "$as_me:$LINENO: checking for suffix of executables" >&5
3174 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
3175 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3176 (eval $ac_link) 2>&5
3177 ac_status=$?
3178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3179 (exit $ac_status); }; then
3180 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3181 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3182 # work properly (i.e., refer to `conftest.exe'), while it won't with
3183 # `rm'.
3184 for ac_file in conftest.exe conftest conftest.*; do
3185 test -f "$ac_file" || continue
3186 case $ac_file in
3187 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
3188 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3189 export ac_cv_exeext
3190 break;;
3191 * ) break;;
3192 esac
3193 done
3194 else
3195 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3196 See \`config.log' for more details." >&5
3197 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3198 See \`config.log' for more details." >&2;}
3199 { (exit 1); exit 1; }; }
3202 rm -f conftest$ac_cv_exeext
3203 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3204 echo "${ECHO_T}$ac_cv_exeext" >&6
3206 rm -f conftest.$ac_ext
3207 EXEEXT=$ac_cv_exeext
3208 ac_exeext=$EXEEXT
3209 echo "$as_me:$LINENO: checking for suffix of object files" >&5
3210 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
3211 if test "${ac_cv_objext+set}" = set; then
3212 echo $ECHO_N "(cached) $ECHO_C" >&6
3213 else
3214 cat >conftest.$ac_ext <<_ACEOF
3215 /* confdefs.h. */
3216 _ACEOF
3217 cat confdefs.h >>conftest.$ac_ext
3218 cat >>conftest.$ac_ext <<_ACEOF
3219 /* end confdefs.h. */
3222 main ()
3226 return 0;
3228 _ACEOF
3229 rm -f conftest.o conftest.obj
3230 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3231 (eval $ac_compile) 2>&5
3232 ac_status=$?
3233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3234 (exit $ac_status); }; then
3235 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
3236 case $ac_file in
3237 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
3238 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3239 break;;
3240 esac
3241 done
3242 else
3243 echo "$as_me: failed program was:" >&5
3244 sed 's/^/| /' conftest.$ac_ext >&5
3246 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3247 See \`config.log' for more details." >&5
3248 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3249 See \`config.log' for more details." >&2;}
3250 { (exit 1); exit 1; }; }
3253 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3255 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3256 echo "${ECHO_T}$ac_cv_objext" >&6
3257 OBJEXT=$ac_cv_objext
3258 ac_objext=$OBJEXT
3259 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3260 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3261 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3262 echo $ECHO_N "(cached) $ECHO_C" >&6
3263 else
3264 cat >conftest.$ac_ext <<_ACEOF
3265 /* confdefs.h. */
3266 _ACEOF
3267 cat confdefs.h >>conftest.$ac_ext
3268 cat >>conftest.$ac_ext <<_ACEOF
3269 /* end confdefs.h. */
3272 main ()
3274 #ifndef __GNUC__
3275 choke me
3276 #endif
3279 return 0;
3281 _ACEOF
3282 rm -f conftest.$ac_objext
3283 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3284 (eval $ac_compile) 2>conftest.er1
3285 ac_status=$?
3286 grep -v '^ *+' conftest.er1 >conftest.err
3287 rm -f conftest.er1
3288 cat conftest.err >&5
3289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3290 (exit $ac_status); } &&
3291 { ac_try='test -z "$ac_c_werror_flag"
3292 || test ! -s conftest.err'
3293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3294 (eval $ac_try) 2>&5
3295 ac_status=$?
3296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3297 (exit $ac_status); }; } &&
3298 { ac_try='test -s conftest.$ac_objext'
3299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3300 (eval $ac_try) 2>&5
3301 ac_status=$?
3302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3303 (exit $ac_status); }; }; then
3304 ac_compiler_gnu=yes
3305 else
3306 echo "$as_me: failed program was:" >&5
3307 sed 's/^/| /' conftest.$ac_ext >&5
3309 ac_compiler_gnu=no
3311 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3312 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3315 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3316 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3317 GCC=`test $ac_compiler_gnu = yes && echo yes`
3318 ac_test_CFLAGS=${CFLAGS+set}
3319 ac_save_CFLAGS=$CFLAGS
3320 CFLAGS="-g"
3321 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3322 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3323 if test "${ac_cv_prog_cc_g+set}" = set; then
3324 echo $ECHO_N "(cached) $ECHO_C" >&6
3325 else
3326 cat >conftest.$ac_ext <<_ACEOF
3327 /* confdefs.h. */
3328 _ACEOF
3329 cat confdefs.h >>conftest.$ac_ext
3330 cat >>conftest.$ac_ext <<_ACEOF
3331 /* end confdefs.h. */
3334 main ()
3338 return 0;
3340 _ACEOF
3341 rm -f conftest.$ac_objext
3342 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3343 (eval $ac_compile) 2>conftest.er1
3344 ac_status=$?
3345 grep -v '^ *+' conftest.er1 >conftest.err
3346 rm -f conftest.er1
3347 cat conftest.err >&5
3348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3349 (exit $ac_status); } &&
3350 { ac_try='test -z "$ac_c_werror_flag"
3351 || test ! -s conftest.err'
3352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3353 (eval $ac_try) 2>&5
3354 ac_status=$?
3355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3356 (exit $ac_status); }; } &&
3357 { ac_try='test -s conftest.$ac_objext'
3358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3359 (eval $ac_try) 2>&5
3360 ac_status=$?
3361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3362 (exit $ac_status); }; }; then
3363 ac_cv_prog_cc_g=yes
3364 else
3365 echo "$as_me: failed program was:" >&5
3366 sed 's/^/| /' conftest.$ac_ext >&5
3368 ac_cv_prog_cc_g=no
3370 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3372 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3373 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3374 if test "$ac_test_CFLAGS" = set; then
3375 CFLAGS=$ac_save_CFLAGS
3376 elif test $ac_cv_prog_cc_g = yes; then
3377 if test "$GCC" = yes; then
3378 CFLAGS="-g -O2"
3379 else
3380 CFLAGS="-g"
3382 else
3383 if test "$GCC" = yes; then
3384 CFLAGS="-O2"
3385 else
3386 CFLAGS=
3389 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3390 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3391 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3392 echo $ECHO_N "(cached) $ECHO_C" >&6
3393 else
3394 ac_cv_prog_cc_stdc=no
3395 ac_save_CC=$CC
3396 cat >conftest.$ac_ext <<_ACEOF
3397 /* confdefs.h. */
3398 _ACEOF
3399 cat confdefs.h >>conftest.$ac_ext
3400 cat >>conftest.$ac_ext <<_ACEOF
3401 /* end confdefs.h. */
3402 #include <stdarg.h>
3403 #include <stdio.h>
3404 #include <sys/types.h>
3405 #include <sys/stat.h>
3406 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3407 struct buf { int x; };
3408 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3409 static char *e (p, i)
3410 char **p;
3411 int i;
3413 return p[i];
3415 static char *f (char * (*g) (char **, int), char **p, ...)
3417 char *s;
3418 va_list v;
3419 va_start (v,p);
3420 s = g (p, va_arg (v,int));
3421 va_end (v);
3422 return s;
3425 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3426 function prototypes and stuff, but not '\xHH' hex character constants.
3427 These don't provoke an error unfortunately, instead are silently treated
3428 as 'x'. The following induces an error, until -std1 is added to get
3429 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3430 array size at least. It's necessary to write '\x00'==0 to get something
3431 that's true only with -std1. */
3432 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3434 int test (int i, double x);
3435 struct s1 {int (*f) (int a);};
3436 struct s2 {int (*f) (double a);};
3437 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3438 int argc;
3439 char **argv;
3441 main ()
3443 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3445 return 0;
3447 _ACEOF
3448 # Don't try gcc -ansi; that turns off useful extensions and
3449 # breaks some systems' header files.
3450 # AIX -qlanglvl=ansi
3451 # Ultrix and OSF/1 -std1
3452 # HP-UX 10.20 and later -Ae
3453 # HP-UX older versions -Aa -D_HPUX_SOURCE
3454 # SVR4 -Xc -D__EXTENSIONS__
3455 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3457 CC="$ac_save_CC $ac_arg"
3458 rm -f conftest.$ac_objext
3459 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3460 (eval $ac_compile) 2>conftest.er1
3461 ac_status=$?
3462 grep -v '^ *+' conftest.er1 >conftest.err
3463 rm -f conftest.er1
3464 cat conftest.err >&5
3465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3466 (exit $ac_status); } &&
3467 { ac_try='test -z "$ac_c_werror_flag"
3468 || test ! -s conftest.err'
3469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3470 (eval $ac_try) 2>&5
3471 ac_status=$?
3472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3473 (exit $ac_status); }; } &&
3474 { ac_try='test -s conftest.$ac_objext'
3475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3476 (eval $ac_try) 2>&5
3477 ac_status=$?
3478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3479 (exit $ac_status); }; }; then
3480 ac_cv_prog_cc_stdc=$ac_arg
3481 break
3482 else
3483 echo "$as_me: failed program was:" >&5
3484 sed 's/^/| /' conftest.$ac_ext >&5
3487 rm -f conftest.err conftest.$ac_objext
3488 done
3489 rm -f conftest.$ac_ext conftest.$ac_objext
3490 CC=$ac_save_CC
3494 case "x$ac_cv_prog_cc_stdc" in
3495 x|xno)
3496 echo "$as_me:$LINENO: result: none needed" >&5
3497 echo "${ECHO_T}none needed" >&6 ;;
3499 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3500 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3501 CC="$CC $ac_cv_prog_cc_stdc" ;;
3502 esac
3504 # Some people use a C++ compiler to compile C. Since we use `exit',
3505 # in C++ we need to declare it. In case someone uses the same compiler
3506 # for both compiling C and C++ we need to have the C++ compiler decide
3507 # the declaration of exit, since it's the most demanding environment.
3508 cat >conftest.$ac_ext <<_ACEOF
3509 #ifndef __cplusplus
3510 choke me
3511 #endif
3512 _ACEOF
3513 rm -f conftest.$ac_objext
3514 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3515 (eval $ac_compile) 2>conftest.er1
3516 ac_status=$?
3517 grep -v '^ *+' conftest.er1 >conftest.err
3518 rm -f conftest.er1
3519 cat conftest.err >&5
3520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3521 (exit $ac_status); } &&
3522 { ac_try='test -z "$ac_c_werror_flag"
3523 || test ! -s conftest.err'
3524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3525 (eval $ac_try) 2>&5
3526 ac_status=$?
3527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3528 (exit $ac_status); }; } &&
3529 { ac_try='test -s conftest.$ac_objext'
3530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3531 (eval $ac_try) 2>&5
3532 ac_status=$?
3533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3534 (exit $ac_status); }; }; then
3535 for ac_declaration in \
3536 '' \
3537 'extern "C" void std::exit (int) throw (); using std::exit;' \
3538 'extern "C" void std::exit (int); using std::exit;' \
3539 'extern "C" void exit (int) throw ();' \
3540 'extern "C" void exit (int);' \
3541 'void exit (int);'
3543 cat >conftest.$ac_ext <<_ACEOF
3544 /* confdefs.h. */
3545 _ACEOF
3546 cat confdefs.h >>conftest.$ac_ext
3547 cat >>conftest.$ac_ext <<_ACEOF
3548 /* end confdefs.h. */
3549 $ac_declaration
3550 #include <stdlib.h>
3552 main ()
3554 exit (42);
3556 return 0;
3558 _ACEOF
3559 rm -f conftest.$ac_objext
3560 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3561 (eval $ac_compile) 2>conftest.er1
3562 ac_status=$?
3563 grep -v '^ *+' conftest.er1 >conftest.err
3564 rm -f conftest.er1
3565 cat conftest.err >&5
3566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3567 (exit $ac_status); } &&
3568 { ac_try='test -z "$ac_c_werror_flag"
3569 || test ! -s conftest.err'
3570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3571 (eval $ac_try) 2>&5
3572 ac_status=$?
3573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3574 (exit $ac_status); }; } &&
3575 { ac_try='test -s conftest.$ac_objext'
3576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3577 (eval $ac_try) 2>&5
3578 ac_status=$?
3579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3580 (exit $ac_status); }; }; then
3582 else
3583 echo "$as_me: failed program was:" >&5
3584 sed 's/^/| /' conftest.$ac_ext >&5
3586 continue
3588 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3589 cat >conftest.$ac_ext <<_ACEOF
3590 /* confdefs.h. */
3591 _ACEOF
3592 cat confdefs.h >>conftest.$ac_ext
3593 cat >>conftest.$ac_ext <<_ACEOF
3594 /* end confdefs.h. */
3595 $ac_declaration
3597 main ()
3599 exit (42);
3601 return 0;
3603 _ACEOF
3604 rm -f conftest.$ac_objext
3605 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3606 (eval $ac_compile) 2>conftest.er1
3607 ac_status=$?
3608 grep -v '^ *+' conftest.er1 >conftest.err
3609 rm -f conftest.er1
3610 cat conftest.err >&5
3611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3612 (exit $ac_status); } &&
3613 { ac_try='test -z "$ac_c_werror_flag"
3614 || test ! -s conftest.err'
3615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3616 (eval $ac_try) 2>&5
3617 ac_status=$?
3618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3619 (exit $ac_status); }; } &&
3620 { ac_try='test -s conftest.$ac_objext'
3621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3622 (eval $ac_try) 2>&5
3623 ac_status=$?
3624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3625 (exit $ac_status); }; }; then
3626 break
3627 else
3628 echo "$as_me: failed program was:" >&5
3629 sed 's/^/| /' conftest.$ac_ext >&5
3632 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3633 done
3634 rm -f conftest*
3635 if test -n "$ac_declaration"; then
3636 echo '#ifdef __cplusplus' >>confdefs.h
3637 echo $ac_declaration >>confdefs.h
3638 echo '#endif' >>confdefs.h
3641 else
3642 echo "$as_me: failed program was:" >&5
3643 sed 's/^/| /' conftest.$ac_ext >&5
3646 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3647 ac_ext=c
3648 ac_cpp='$CPP $CPPFLAGS'
3649 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3650 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3651 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3654 # On Suns, sometimes $CPP names a directory.
3655 if test -n "$CPP" && test -d "$CPP"; then
3656 CPP=
3659 #### Some systems specify a CPP to use unless we are using GCC.
3660 #### Now that we know whether we are using GCC, we can decide whether
3661 #### to use that one.
3662 if test "x$NON_GNU_CPP" != x && test x$GCC != xyes && test "x$CPP" = x
3663 then
3664 CPP="$NON_GNU_CPP"
3667 #### Some systems specify a CC to use unless we are using GCC.
3668 #### Now that we know whether we are using GCC, we can decide whether
3669 #### to use that one.
3670 if test "x$NON_GNU_CC" != x && test x$GCC != xyes &&
3671 test x$cc_specified != xyes
3672 then
3673 CC="$NON_GNU_CC"
3676 if test x$GCC = xyes && test "x$GCC_TEST_OPTIONS" != x
3677 then
3678 CC="$CC $GCC_TEST_OPTIONS"
3681 if test x$GCC = x && test "x$NON_GCC_TEST_OPTIONS" != x
3682 then
3683 CC="$CC $NON_GCC_TEST_OPTIONS"
3687 ac_ext=c
3688 ac_cpp='$CPP $CPPFLAGS'
3689 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3690 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3691 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3692 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3693 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3694 # On Suns, sometimes $CPP names a directory.
3695 if test -n "$CPP" && test -d "$CPP"; then
3696 CPP=
3698 if test -z "$CPP"; then
3699 if test "${ac_cv_prog_CPP+set}" = set; then
3700 echo $ECHO_N "(cached) $ECHO_C" >&6
3701 else
3702 # Double quotes because CPP needs to be expanded
3703 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3705 ac_preproc_ok=false
3706 for ac_c_preproc_warn_flag in '' yes
3708 # Use a header file that comes with gcc, so configuring glibc
3709 # with a fresh cross-compiler works.
3710 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3711 # <limits.h> exists even on freestanding compilers.
3712 # On the NeXT, cc -E runs the code through the compiler's parser,
3713 # not just through cpp. "Syntax error" is here to catch this case.
3714 cat >conftest.$ac_ext <<_ACEOF
3715 /* confdefs.h. */
3716 _ACEOF
3717 cat confdefs.h >>conftest.$ac_ext
3718 cat >>conftest.$ac_ext <<_ACEOF
3719 /* end confdefs.h. */
3720 #ifdef __STDC__
3721 # include <limits.h>
3722 #else
3723 # include <assert.h>
3724 #endif
3725 Syntax error
3726 _ACEOF
3727 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3728 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3729 ac_status=$?
3730 grep -v '^ *+' conftest.er1 >conftest.err
3731 rm -f conftest.er1
3732 cat conftest.err >&5
3733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3734 (exit $ac_status); } >/dev/null; then
3735 if test -s conftest.err; then
3736 ac_cpp_err=$ac_c_preproc_warn_flag
3737 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3738 else
3739 ac_cpp_err=
3741 else
3742 ac_cpp_err=yes
3744 if test -z "$ac_cpp_err"; then
3746 else
3747 echo "$as_me: failed program was:" >&5
3748 sed 's/^/| /' conftest.$ac_ext >&5
3750 # Broken: fails on valid input.
3751 continue
3753 rm -f conftest.err conftest.$ac_ext
3755 # OK, works on sane cases. Now check whether non-existent headers
3756 # can be detected and how.
3757 cat >conftest.$ac_ext <<_ACEOF
3758 /* confdefs.h. */
3759 _ACEOF
3760 cat confdefs.h >>conftest.$ac_ext
3761 cat >>conftest.$ac_ext <<_ACEOF
3762 /* end confdefs.h. */
3763 #include <ac_nonexistent.h>
3764 _ACEOF
3765 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3766 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3767 ac_status=$?
3768 grep -v '^ *+' conftest.er1 >conftest.err
3769 rm -f conftest.er1
3770 cat conftest.err >&5
3771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3772 (exit $ac_status); } >/dev/null; then
3773 if test -s conftest.err; then
3774 ac_cpp_err=$ac_c_preproc_warn_flag
3775 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3776 else
3777 ac_cpp_err=
3779 else
3780 ac_cpp_err=yes
3782 if test -z "$ac_cpp_err"; then
3783 # Broken: success on invalid input.
3784 continue
3785 else
3786 echo "$as_me: failed program was:" >&5
3787 sed 's/^/| /' conftest.$ac_ext >&5
3789 # Passes both tests.
3790 ac_preproc_ok=:
3791 break
3793 rm -f conftest.err conftest.$ac_ext
3795 done
3796 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3797 rm -f conftest.err conftest.$ac_ext
3798 if $ac_preproc_ok; then
3799 break
3802 done
3803 ac_cv_prog_CPP=$CPP
3806 CPP=$ac_cv_prog_CPP
3807 else
3808 ac_cv_prog_CPP=$CPP
3810 echo "$as_me:$LINENO: result: $CPP" >&5
3811 echo "${ECHO_T}$CPP" >&6
3812 ac_preproc_ok=false
3813 for ac_c_preproc_warn_flag in '' yes
3815 # Use a header file that comes with gcc, so configuring glibc
3816 # with a fresh cross-compiler works.
3817 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3818 # <limits.h> exists even on freestanding compilers.
3819 # On the NeXT, cc -E runs the code through the compiler's parser,
3820 # not just through cpp. "Syntax error" is here to catch this case.
3821 cat >conftest.$ac_ext <<_ACEOF
3822 /* confdefs.h. */
3823 _ACEOF
3824 cat confdefs.h >>conftest.$ac_ext
3825 cat >>conftest.$ac_ext <<_ACEOF
3826 /* end confdefs.h. */
3827 #ifdef __STDC__
3828 # include <limits.h>
3829 #else
3830 # include <assert.h>
3831 #endif
3832 Syntax error
3833 _ACEOF
3834 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3835 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3836 ac_status=$?
3837 grep -v '^ *+' conftest.er1 >conftest.err
3838 rm -f conftest.er1
3839 cat conftest.err >&5
3840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3841 (exit $ac_status); } >/dev/null; then
3842 if test -s conftest.err; then
3843 ac_cpp_err=$ac_c_preproc_warn_flag
3844 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3845 else
3846 ac_cpp_err=
3848 else
3849 ac_cpp_err=yes
3851 if test -z "$ac_cpp_err"; then
3853 else
3854 echo "$as_me: failed program was:" >&5
3855 sed 's/^/| /' conftest.$ac_ext >&5
3857 # Broken: fails on valid input.
3858 continue
3860 rm -f conftest.err conftest.$ac_ext
3862 # OK, works on sane cases. Now check whether non-existent headers
3863 # can be detected and how.
3864 cat >conftest.$ac_ext <<_ACEOF
3865 /* confdefs.h. */
3866 _ACEOF
3867 cat confdefs.h >>conftest.$ac_ext
3868 cat >>conftest.$ac_ext <<_ACEOF
3869 /* end confdefs.h. */
3870 #include <ac_nonexistent.h>
3871 _ACEOF
3872 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3873 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3874 ac_status=$?
3875 grep -v '^ *+' conftest.er1 >conftest.err
3876 rm -f conftest.er1
3877 cat conftest.err >&5
3878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3879 (exit $ac_status); } >/dev/null; then
3880 if test -s conftest.err; then
3881 ac_cpp_err=$ac_c_preproc_warn_flag
3882 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3883 else
3884 ac_cpp_err=
3886 else
3887 ac_cpp_err=yes
3889 if test -z "$ac_cpp_err"; then
3890 # Broken: success on invalid input.
3891 continue
3892 else
3893 echo "$as_me: failed program was:" >&5
3894 sed 's/^/| /' conftest.$ac_ext >&5
3896 # Passes both tests.
3897 ac_preproc_ok=:
3898 break
3900 rm -f conftest.err conftest.$ac_ext
3902 done
3903 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3904 rm -f conftest.err conftest.$ac_ext
3905 if $ac_preproc_ok; then
3907 else
3908 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3909 See \`config.log' for more details." >&5
3910 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3911 See \`config.log' for more details." >&2;}
3912 { (exit 1); exit 1; }; }
3915 ac_ext=c
3916 ac_cpp='$CPP $CPPFLAGS'
3917 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3918 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3919 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3922 echo "$as_me:$LINENO: checking for egrep" >&5
3923 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3924 if test "${ac_cv_prog_egrep+set}" = set; then
3925 echo $ECHO_N "(cached) $ECHO_C" >&6
3926 else
3927 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3928 then ac_cv_prog_egrep='grep -E'
3929 else ac_cv_prog_egrep='egrep'
3932 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3933 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3934 EGREP=$ac_cv_prog_egrep
3938 echo "$as_me:$LINENO: checking for AIX" >&5
3939 echo $ECHO_N "checking for AIX... $ECHO_C" >&6
3940 cat >conftest.$ac_ext <<_ACEOF
3941 /* confdefs.h. */
3942 _ACEOF
3943 cat confdefs.h >>conftest.$ac_ext
3944 cat >>conftest.$ac_ext <<_ACEOF
3945 /* end confdefs.h. */
3946 #ifdef _AIX
3948 #endif
3950 _ACEOF
3951 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3952 $EGREP "yes" >/dev/null 2>&1; then
3953 echo "$as_me:$LINENO: result: yes" >&5
3954 echo "${ECHO_T}yes" >&6
3955 cat >>confdefs.h <<\_ACEOF
3956 #define _ALL_SOURCE 1
3957 _ACEOF
3959 else
3960 echo "$as_me:$LINENO: result: no" >&5
3961 echo "${ECHO_T}no" >&6
3963 rm -f conftest*
3967 cat >>confdefs.h <<\_ACEOF
3968 #define _GNU_SOURCE 1
3969 _ACEOF
3973 ### Use -Wno-pointer-sign if the compiler supports it
3974 echo "$as_me:$LINENO: checking whether gcc understands -Wno-pointer-sign" >&5
3975 echo $ECHO_N "checking whether gcc understands -Wno-pointer-sign... $ECHO_C" >&6
3976 SAVE_CFLAGS="$CFLAGS"
3977 CFLAGS="$CFLAGS -Wno-pointer-sign"
3978 cat >conftest.$ac_ext <<_ACEOF
3979 /* confdefs.h. */
3980 _ACEOF
3981 cat confdefs.h >>conftest.$ac_ext
3982 cat >>conftest.$ac_ext <<_ACEOF
3983 /* end confdefs.h. */
3986 main ()
3990 return 0;
3992 _ACEOF
3993 rm -f conftest.$ac_objext
3994 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3995 (eval $ac_compile) 2>conftest.er1
3996 ac_status=$?
3997 grep -v '^ *+' conftest.er1 >conftest.err
3998 rm -f conftest.er1
3999 cat conftest.err >&5
4000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4001 (exit $ac_status); } &&
4002 { ac_try='test -z "$ac_c_werror_flag"
4003 || test ! -s conftest.err'
4004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4005 (eval $ac_try) 2>&5
4006 ac_status=$?
4007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4008 (exit $ac_status); }; } &&
4009 { ac_try='test -s conftest.$ac_objext'
4010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4011 (eval $ac_try) 2>&5
4012 ac_status=$?
4013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4014 (exit $ac_status); }; }; then
4015 has_option=yes
4016 else
4017 echo "$as_me: failed program was:" >&5
4018 sed 's/^/| /' conftest.$ac_ext >&5
4020 has_option=no
4022 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4023 if test $has_option = yes; then
4024 C_WARNINGS_SWITCH="-Wno-pointer-sign $C_WARNINGS_SWITCH"
4026 echo "$as_me:$LINENO: result: $has_option" >&5
4027 echo "${ECHO_T}$has_option" >&6
4028 CFLAGS="$SAVE_CFLAGS"
4029 unset has_option
4030 unset SAVE_CFLAGS
4032 #### Some other nice autoconf tests.
4034 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4035 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4036 LN_S=$as_ln_s
4037 if test "$LN_S" = "ln -s"; then
4038 echo "$as_me:$LINENO: result: yes" >&5
4039 echo "${ECHO_T}yes" >&6
4040 else
4041 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4042 echo "${ECHO_T}no, using $LN_S" >&6
4045 ac_ext=c
4046 ac_cpp='$CPP $CPPFLAGS'
4047 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4048 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4049 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4050 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4051 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
4052 # On Suns, sometimes $CPP names a directory.
4053 if test -n "$CPP" && test -d "$CPP"; then
4054 CPP=
4056 if test -z "$CPP"; then
4057 if test "${ac_cv_prog_CPP+set}" = set; then
4058 echo $ECHO_N "(cached) $ECHO_C" >&6
4059 else
4060 # Double quotes because CPP needs to be expanded
4061 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4063 ac_preproc_ok=false
4064 for ac_c_preproc_warn_flag in '' yes
4066 # Use a header file that comes with gcc, so configuring glibc
4067 # with a fresh cross-compiler works.
4068 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4069 # <limits.h> exists even on freestanding compilers.
4070 # On the NeXT, cc -E runs the code through the compiler's parser,
4071 # not just through cpp. "Syntax error" is here to catch this case.
4072 cat >conftest.$ac_ext <<_ACEOF
4073 /* confdefs.h. */
4074 _ACEOF
4075 cat confdefs.h >>conftest.$ac_ext
4076 cat >>conftest.$ac_ext <<_ACEOF
4077 /* end confdefs.h. */
4078 #ifdef __STDC__
4079 # include <limits.h>
4080 #else
4081 # include <assert.h>
4082 #endif
4083 Syntax error
4084 _ACEOF
4085 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4086 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4087 ac_status=$?
4088 grep -v '^ *+' conftest.er1 >conftest.err
4089 rm -f conftest.er1
4090 cat conftest.err >&5
4091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4092 (exit $ac_status); } >/dev/null; then
4093 if test -s conftest.err; then
4094 ac_cpp_err=$ac_c_preproc_warn_flag
4095 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4096 else
4097 ac_cpp_err=
4099 else
4100 ac_cpp_err=yes
4102 if test -z "$ac_cpp_err"; then
4104 else
4105 echo "$as_me: failed program was:" >&5
4106 sed 's/^/| /' conftest.$ac_ext >&5
4108 # Broken: fails on valid input.
4109 continue
4111 rm -f conftest.err conftest.$ac_ext
4113 # OK, works on sane cases. Now check whether non-existent headers
4114 # can be detected and how.
4115 cat >conftest.$ac_ext <<_ACEOF
4116 /* confdefs.h. */
4117 _ACEOF
4118 cat confdefs.h >>conftest.$ac_ext
4119 cat >>conftest.$ac_ext <<_ACEOF
4120 /* end confdefs.h. */
4121 #include <ac_nonexistent.h>
4122 _ACEOF
4123 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4124 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4125 ac_status=$?
4126 grep -v '^ *+' conftest.er1 >conftest.err
4127 rm -f conftest.er1
4128 cat conftest.err >&5
4129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4130 (exit $ac_status); } >/dev/null; then
4131 if test -s conftest.err; then
4132 ac_cpp_err=$ac_c_preproc_warn_flag
4133 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4134 else
4135 ac_cpp_err=
4137 else
4138 ac_cpp_err=yes
4140 if test -z "$ac_cpp_err"; then
4141 # Broken: success on invalid input.
4142 continue
4143 else
4144 echo "$as_me: failed program was:" >&5
4145 sed 's/^/| /' conftest.$ac_ext >&5
4147 # Passes both tests.
4148 ac_preproc_ok=:
4149 break
4151 rm -f conftest.err conftest.$ac_ext
4153 done
4154 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4155 rm -f conftest.err conftest.$ac_ext
4156 if $ac_preproc_ok; then
4157 break
4160 done
4161 ac_cv_prog_CPP=$CPP
4164 CPP=$ac_cv_prog_CPP
4165 else
4166 ac_cv_prog_CPP=$CPP
4168 echo "$as_me:$LINENO: result: $CPP" >&5
4169 echo "${ECHO_T}$CPP" >&6
4170 ac_preproc_ok=false
4171 for ac_c_preproc_warn_flag in '' yes
4173 # Use a header file that comes with gcc, so configuring glibc
4174 # with a fresh cross-compiler works.
4175 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4176 # <limits.h> exists even on freestanding compilers.
4177 # On the NeXT, cc -E runs the code through the compiler's parser,
4178 # not just through cpp. "Syntax error" is here to catch this case.
4179 cat >conftest.$ac_ext <<_ACEOF
4180 /* confdefs.h. */
4181 _ACEOF
4182 cat confdefs.h >>conftest.$ac_ext
4183 cat >>conftest.$ac_ext <<_ACEOF
4184 /* end confdefs.h. */
4185 #ifdef __STDC__
4186 # include <limits.h>
4187 #else
4188 # include <assert.h>
4189 #endif
4190 Syntax error
4191 _ACEOF
4192 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4193 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4194 ac_status=$?
4195 grep -v '^ *+' conftest.er1 >conftest.err
4196 rm -f conftest.er1
4197 cat conftest.err >&5
4198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4199 (exit $ac_status); } >/dev/null; then
4200 if test -s conftest.err; then
4201 ac_cpp_err=$ac_c_preproc_warn_flag
4202 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4203 else
4204 ac_cpp_err=
4206 else
4207 ac_cpp_err=yes
4209 if test -z "$ac_cpp_err"; then
4211 else
4212 echo "$as_me: failed program was:" >&5
4213 sed 's/^/| /' conftest.$ac_ext >&5
4215 # Broken: fails on valid input.
4216 continue
4218 rm -f conftest.err conftest.$ac_ext
4220 # OK, works on sane cases. Now check whether non-existent headers
4221 # can be detected and how.
4222 cat >conftest.$ac_ext <<_ACEOF
4223 /* confdefs.h. */
4224 _ACEOF
4225 cat confdefs.h >>conftest.$ac_ext
4226 cat >>conftest.$ac_ext <<_ACEOF
4227 /* end confdefs.h. */
4228 #include <ac_nonexistent.h>
4229 _ACEOF
4230 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4231 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4232 ac_status=$?
4233 grep -v '^ *+' conftest.er1 >conftest.err
4234 rm -f conftest.er1
4235 cat conftest.err >&5
4236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4237 (exit $ac_status); } >/dev/null; then
4238 if test -s conftest.err; then
4239 ac_cpp_err=$ac_c_preproc_warn_flag
4240 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4241 else
4242 ac_cpp_err=
4244 else
4245 ac_cpp_err=yes
4247 if test -z "$ac_cpp_err"; then
4248 # Broken: success on invalid input.
4249 continue
4250 else
4251 echo "$as_me: failed program was:" >&5
4252 sed 's/^/| /' conftest.$ac_ext >&5
4254 # Passes both tests.
4255 ac_preproc_ok=:
4256 break
4258 rm -f conftest.err conftest.$ac_ext
4260 done
4261 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4262 rm -f conftest.err conftest.$ac_ext
4263 if $ac_preproc_ok; then
4265 else
4266 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4267 See \`config.log' for more details." >&5
4268 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4269 See \`config.log' for more details." >&2;}
4270 { (exit 1); exit 1; }; }
4273 ac_ext=c
4274 ac_cpp='$CPP $CPPFLAGS'
4275 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4276 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4277 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4279 # Find a good install program. We prefer a C program (faster),
4280 # so one script is as good as another. But avoid the broken or
4281 # incompatible versions:
4282 # SysV /etc/install, /usr/sbin/install
4283 # SunOS /usr/etc/install
4284 # IRIX /sbin/install
4285 # AIX /bin/install
4286 # AmigaOS /C/install, which installs bootblocks on floppy discs
4287 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4288 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4289 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4290 # OS/2's system install, which has a completely different semantic
4291 # ./install, which can be erroneously created by make from ./install.sh.
4292 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4293 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
4294 if test -z "$INSTALL"; then
4295 if test "${ac_cv_path_install+set}" = set; then
4296 echo $ECHO_N "(cached) $ECHO_C" >&6
4297 else
4298 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4299 for as_dir in $PATH
4301 IFS=$as_save_IFS
4302 test -z "$as_dir" && as_dir=.
4303 # Account for people who put trailing slashes in PATH elements.
4304 case $as_dir/ in
4305 ./ | .// | /cC/* | \
4306 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4307 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4308 /usr/ucb/* ) ;;
4310 # OSF1 and SCO ODT 3.0 have their own names for install.
4311 # Don't use installbsd from OSF since it installs stuff as root
4312 # by default.
4313 for ac_prog in ginstall scoinst install; do
4314 for ac_exec_ext in '' $ac_executable_extensions; do
4315 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4316 if test $ac_prog = install &&
4317 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4318 # AIX install. It has an incompatible calling convention.
4320 elif test $ac_prog = install &&
4321 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4322 # program-specific install script used by HP pwplus--don't use.
4324 else
4325 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4326 break 3
4329 done
4330 done
4332 esac
4333 done
4337 if test "${ac_cv_path_install+set}" = set; then
4338 INSTALL=$ac_cv_path_install
4339 else
4340 # As a last resort, use the slow shell script. We don't cache a
4341 # path for INSTALL within a source directory, because that will
4342 # break other packages using the cache if that directory is
4343 # removed, or if the path is relative.
4344 INSTALL=$ac_install_sh
4347 echo "$as_me:$LINENO: result: $INSTALL" >&5
4348 echo "${ECHO_T}$INSTALL" >&6
4350 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4351 # It thinks the first close brace ends the variable substitution.
4352 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4354 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4356 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4358 if test "x$RANLIB" = x; then
4359 if test -n "$ac_tool_prefix"; then
4360 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4361 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4362 echo "$as_me:$LINENO: checking for $ac_word" >&5
4363 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4364 if test "${ac_cv_prog_RANLIB+set}" = set; then
4365 echo $ECHO_N "(cached) $ECHO_C" >&6
4366 else
4367 if test -n "$RANLIB"; then
4368 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4369 else
4370 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4371 for as_dir in $PATH
4373 IFS=$as_save_IFS
4374 test -z "$as_dir" && as_dir=.
4375 for ac_exec_ext in '' $ac_executable_extensions; do
4376 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4377 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4378 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4379 break 2
4381 done
4382 done
4386 RANLIB=$ac_cv_prog_RANLIB
4387 if test -n "$RANLIB"; then
4388 echo "$as_me:$LINENO: result: $RANLIB" >&5
4389 echo "${ECHO_T}$RANLIB" >&6
4390 else
4391 echo "$as_me:$LINENO: result: no" >&5
4392 echo "${ECHO_T}no" >&6
4396 if test -z "$ac_cv_prog_RANLIB"; then
4397 ac_ct_RANLIB=$RANLIB
4398 # Extract the first word of "ranlib", so it can be a program name with args.
4399 set dummy ranlib; ac_word=$2
4400 echo "$as_me:$LINENO: checking for $ac_word" >&5
4401 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4402 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4403 echo $ECHO_N "(cached) $ECHO_C" >&6
4404 else
4405 if test -n "$ac_ct_RANLIB"; then
4406 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4407 else
4408 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4409 for as_dir in $PATH
4411 IFS=$as_save_IFS
4412 test -z "$as_dir" && as_dir=.
4413 for ac_exec_ext in '' $ac_executable_extensions; do
4414 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4415 ac_cv_prog_ac_ct_RANLIB="ranlib"
4416 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4417 break 2
4419 done
4420 done
4422 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4425 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4426 if test -n "$ac_ct_RANLIB"; then
4427 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4428 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4429 else
4430 echo "$as_me:$LINENO: result: no" >&5
4431 echo "${ECHO_T}no" >&6
4434 RANLIB=$ac_ct_RANLIB
4435 else
4436 RANLIB="$ac_cv_prog_RANLIB"
4440 # Extract the first word of "install-info", so it can be a program name with args.
4441 set dummy install-info; ac_word=$2
4442 echo "$as_me:$LINENO: checking for $ac_word" >&5
4443 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4444 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
4445 echo $ECHO_N "(cached) $ECHO_C" >&6
4446 else
4447 case $INSTALL_INFO in
4448 [\\/]* | ?:[\\/]*)
4449 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
4452 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4453 for as_dir in $PATH
4455 IFS=$as_save_IFS
4456 test -z "$as_dir" && as_dir=.
4457 for ac_exec_ext in '' $ac_executable_extensions; do
4458 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4459 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
4460 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4461 break 2
4463 done
4464 done
4467 esac
4469 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
4471 if test -n "$INSTALL_INFO"; then
4472 echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
4473 echo "${ECHO_T}$INSTALL_INFO" >&6
4474 else
4475 echo "$as_me:$LINENO: result: no" >&5
4476 echo "${ECHO_T}no" >&6
4479 # Extract the first word of "install-info", so it can be a program name with args.
4480 set dummy install-info; ac_word=$2
4481 echo "$as_me:$LINENO: checking for $ac_word" >&5
4482 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4483 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
4484 echo $ECHO_N "(cached) $ECHO_C" >&6
4485 else
4486 case $INSTALL_INFO in
4487 [\\/]* | ?:[\\/]*)
4488 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
4491 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4492 for as_dir in /usr/sbin
4494 IFS=$as_save_IFS
4495 test -z "$as_dir" && as_dir=.
4496 for ac_exec_ext in '' $ac_executable_extensions; do
4497 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4498 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
4499 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4500 break 2
4502 done
4503 done
4506 esac
4508 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
4510 if test -n "$INSTALL_INFO"; then
4511 echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
4512 echo "${ECHO_T}$INSTALL_INFO" >&6
4513 else
4514 echo "$as_me:$LINENO: result: no" >&5
4515 echo "${ECHO_T}no" >&6
4518 # Extract the first word of "install-info", so it can be a program name with args.
4519 set dummy install-info; ac_word=$2
4520 echo "$as_me:$LINENO: checking for $ac_word" >&5
4521 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4522 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
4523 echo $ECHO_N "(cached) $ECHO_C" >&6
4524 else
4525 case $INSTALL_INFO in
4526 [\\/]* | ?:[\\/]*)
4527 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
4530 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4531 for as_dir in /sbin
4533 IFS=$as_save_IFS
4534 test -z "$as_dir" && as_dir=.
4535 for ac_exec_ext in '' $ac_executable_extensions; do
4536 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4537 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
4538 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4539 break 2
4541 done
4542 done
4544 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO=":"
4546 esac
4548 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
4550 if test -n "$INSTALL_INFO"; then
4551 echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
4552 echo "${ECHO_T}$INSTALL_INFO" >&6
4553 else
4554 echo "$as_me:$LINENO: result: no" >&5
4555 echo "${ECHO_T}no" >&6
4558 # Extract the first word of "gzip", so it can be a program name with args.
4559 set dummy gzip; ac_word=$2
4560 echo "$as_me:$LINENO: checking for $ac_word" >&5
4561 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4562 if test "${ac_cv_path_GZIP_PROG+set}" = set; then
4563 echo $ECHO_N "(cached) $ECHO_C" >&6
4564 else
4565 case $GZIP_PROG in
4566 [\\/]* | ?:[\\/]*)
4567 ac_cv_path_GZIP_PROG="$GZIP_PROG" # Let the user override the test with a path.
4570 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4571 for as_dir in $PATH
4573 IFS=$as_save_IFS
4574 test -z "$as_dir" && as_dir=.
4575 for ac_exec_ext in '' $ac_executable_extensions; do
4576 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4577 ac_cv_path_GZIP_PROG="$as_dir/$ac_word$ac_exec_ext"
4578 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4579 break 2
4581 done
4582 done
4585 esac
4587 GZIP_PROG=$ac_cv_path_GZIP_PROG
4589 if test -n "$GZIP_PROG"; then
4590 echo "$as_me:$LINENO: result: $GZIP_PROG" >&5
4591 echo "${ECHO_T}$GZIP_PROG" >&6
4592 else
4593 echo "$as_me:$LINENO: result: no" >&5
4594 echo "${ECHO_T}no" >&6
4599 if test x$GCC = xyes && test "x$GCC_LINK_TEST_OPTIONS" != x
4600 then
4601 ac_link="$ac_link $GCC_LINK_TEST_OPTIONS"
4604 if test x$GCC = x && test "x$NON_GCC_LINK_TEST_OPTIONS" != x
4605 then
4606 ac_link="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
4610 late_LDFLAGS=$LDFLAGS
4611 if test "$GCC" = yes; then
4612 LDFLAGS="$LDFLAGS -Wl,-znocombreloc"
4613 else
4614 LDFLAGS="$LDFLAGS -znocombreloc"
4617 echo "$as_me:$LINENO: checking for -znocombreloc" >&5
4618 echo $ECHO_N "checking for -znocombreloc... $ECHO_C" >&6
4619 cat >conftest.$ac_ext <<_ACEOF
4620 main(){return 0;}
4621 _ACEOF
4622 rm -f conftest.$ac_objext conftest$ac_exeext
4623 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4624 (eval $ac_link) 2>conftest.er1
4625 ac_status=$?
4626 grep -v '^ *+' conftest.er1 >conftest.err
4627 rm -f conftest.er1
4628 cat conftest.err >&5
4629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4630 (exit $ac_status); } &&
4631 { ac_try='test -z "$ac_c_werror_flag"
4632 || test ! -s conftest.err'
4633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4634 (eval $ac_try) 2>&5
4635 ac_status=$?
4636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4637 (exit $ac_status); }; } &&
4638 { ac_try='test -s conftest$ac_exeext'
4639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4640 (eval $ac_try) 2>&5
4641 ac_status=$?
4642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4643 (exit $ac_status); }; }; then
4644 echo "$as_me:$LINENO: result: yes" >&5
4645 echo "${ECHO_T}yes" >&6
4646 else
4647 echo "$as_me: failed program was:" >&5
4648 sed 's/^/| /' conftest.$ac_ext >&5
4650 LDFLAGS=$late_LDFLAGS
4651 echo "$as_me:$LINENO: result: no" >&5
4652 echo "${ECHO_T}no" >&6
4654 rm -f conftest.err conftest.$ac_objext \
4655 conftest$ac_exeext conftest.$ac_ext
4657 #### Extract some information from the operating system and machine files.
4659 { echo "$as_me:$LINENO: checking the machine- and system-dependent files to find out
4660 - which libraries the lib-src programs will want, and
4661 - whether the GNU malloc routines are usable..." >&5
4662 echo "$as_me: checking the machine- and system-dependent files to find out
4663 - which libraries the lib-src programs will want, and
4664 - whether the GNU malloc routines are usable..." >&6;}
4666 ### First figure out CFLAGS (which we use for running the compiler here)
4667 ### and REAL_CFLAGS (which we use for real compilation).
4668 ### The two are the same except on a few systems, where they are made
4669 ### different to work around various lossages. For example,
4670 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
4671 ### as implying static linking.
4673 ### If the CFLAGS env var is specified, we use that value
4674 ### instead of the default.
4676 ### It's not important that this name contain the PID; you can't run
4677 ### two configures in the same directory and have anything work
4678 ### anyway.
4679 tempcname="conftest.c"
4681 echo '
4682 #include "'${srcdir}'/src/'${opsysfile}'"
4683 #include "'${srcdir}'/src/'${machfile}'"
4684 #ifndef LIBS_MACHINE
4685 #define LIBS_MACHINE
4686 #endif
4687 #ifndef LIBS_SYSTEM
4688 #define LIBS_SYSTEM
4689 #endif
4690 #ifndef C_SWITCH_SYSTEM
4691 #define C_SWITCH_SYSTEM
4692 #endif
4693 #ifndef C_SWITCH_MACHINE
4694 #define C_SWITCH_MACHINE
4695 #endif
4696 configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM
4697 configure___ c_switch_system=C_SWITCH_SYSTEM
4698 configure___ c_switch_machine=C_SWITCH_MACHINE
4700 #ifndef LIB_X11_LIB
4701 #define LIB_X11_LIB -lX11
4702 #endif
4704 #ifndef LIBX11_MACHINE
4705 #define LIBX11_MACHINE
4706 #endif
4708 #ifndef LIBX11_SYSTEM
4709 #define LIBX11_SYSTEM
4710 #endif
4711 configure___ LIBX=LIB_X11_LIB LIBX11_MACHINE LIBX11_SYSTEM
4713 #ifdef UNEXEC
4714 configure___ unexec=UNEXEC
4715 #else
4716 configure___ unexec=unexec.o
4717 #endif
4719 #ifdef SYSTEM_MALLOC
4720 configure___ system_malloc=yes
4721 #else
4722 configure___ system_malloc=no
4723 #endif
4725 #ifdef USE_MMAP_FOR_BUFFERS
4726 configure___ use_mmap_for_buffers=yes
4727 #else
4728 configure___ use_mmap_for_buffers=no
4729 #endif
4731 #ifndef C_DEBUG_SWITCH
4732 #define C_DEBUG_SWITCH -g
4733 #endif
4735 #ifndef C_OPTIMIZE_SWITCH
4736 #ifdef __GNUC__
4737 #define C_OPTIMIZE_SWITCH -O2
4738 #else
4739 #define C_OPTIMIZE_SWITCH -O
4740 #endif
4741 #endif
4743 #ifndef C_WARNINGS_SWITCH
4744 #define C_WARNINGS_SWITCH ${C_WARNINGS_SWITCH}
4745 #endif
4747 #ifndef LD_SWITCH_MACHINE
4748 #define LD_SWITCH_MACHINE
4749 #endif
4751 #ifndef LD_SWITCH_SYSTEM
4752 #define LD_SWITCH_SYSTEM
4753 #endif
4755 #ifndef LD_SWITCH_X_SITE_AUX
4756 #define LD_SWITCH_X_SITE_AUX
4757 #endif
4759 configure___ ld_switch_system=LD_SWITCH_SYSTEM
4760 configure___ ld_switch_machine=LD_SWITCH_MACHINE
4762 #ifdef THIS_IS_CONFIGURE
4764 /* Get the CFLAGS for tests in configure. */
4765 #ifdef __GNUC__
4766 configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
4767 #else
4768 configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
4769 #endif
4771 #else /* not THIS_IS_CONFIGURE */
4773 /* Get the CFLAGS for real compilation. */
4774 #ifdef __GNUC__
4775 configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH C_WARNINGS_SWITCH '${SPECIFIED_CFLAGS}'
4776 #else
4777 configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
4778 #endif
4780 #endif /* not THIS_IS_CONFIGURE */
4781 ' > ${tempcname}
4783 # The value of CPP is a quoted variable reference, so we need to do this
4784 # to get its actual value...
4785 CPP=`eval "echo $CPP"`
4786 eval `${CPP} -Isrc ${tempcname} \
4787 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
4788 if test "x$SPECIFIED_CFLAGS" = x; then
4789 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
4790 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
4791 else
4792 REAL_CFLAGS="$CFLAGS"
4794 rm ${tempcname}
4796 ac_link="$ac_link $ld_switch_machine $ld_switch_system"
4798 ### Make sure subsequent tests use flags consistent with the build flags.
4800 if test x"${OVERRIDE_CPPFLAGS}" != x; then
4801 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
4802 else
4803 CPPFLAGS="$c_switch_system $c_switch_machine $CPPFLAGS"
4808 # Check whether --enable-largefile or --disable-largefile was given.
4809 if test "${enable_largefile+set}" = set; then
4810 enableval="$enable_largefile"
4813 if test "$enable_largefile" != no; then
4815 echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
4816 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
4817 if test "${ac_cv_sys_largefile_CC+set}" = set; then
4818 echo $ECHO_N "(cached) $ECHO_C" >&6
4819 else
4820 ac_cv_sys_largefile_CC=no
4821 if test "$GCC" != yes; then
4822 ac_save_CC=$CC
4823 while :; do
4824 # IRIX 6.2 and later do not support large files by default,
4825 # so use the C compiler's -n32 option if that helps.
4826 cat >conftest.$ac_ext <<_ACEOF
4827 /* confdefs.h. */
4828 _ACEOF
4829 cat confdefs.h >>conftest.$ac_ext
4830 cat >>conftest.$ac_ext <<_ACEOF
4831 /* end confdefs.h. */
4832 #include <sys/types.h>
4833 /* Check that off_t can represent 2**63 - 1 correctly.
4834 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4835 since some C++ compilers masquerading as C compilers
4836 incorrectly reject 9223372036854775807. */
4837 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4838 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4839 && LARGE_OFF_T % 2147483647 == 1)
4840 ? 1 : -1];
4842 main ()
4846 return 0;
4848 _ACEOF
4849 rm -f conftest.$ac_objext
4850 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4851 (eval $ac_compile) 2>conftest.er1
4852 ac_status=$?
4853 grep -v '^ *+' conftest.er1 >conftest.err
4854 rm -f conftest.er1
4855 cat conftest.err >&5
4856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4857 (exit $ac_status); } &&
4858 { ac_try='test -z "$ac_c_werror_flag"
4859 || test ! -s conftest.err'
4860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4861 (eval $ac_try) 2>&5
4862 ac_status=$?
4863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4864 (exit $ac_status); }; } &&
4865 { ac_try='test -s conftest.$ac_objext'
4866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4867 (eval $ac_try) 2>&5
4868 ac_status=$?
4869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4870 (exit $ac_status); }; }; then
4871 break
4872 else
4873 echo "$as_me: failed program was:" >&5
4874 sed 's/^/| /' conftest.$ac_ext >&5
4877 rm -f conftest.err conftest.$ac_objext
4878 CC="$CC -n32"
4879 rm -f conftest.$ac_objext
4880 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4881 (eval $ac_compile) 2>conftest.er1
4882 ac_status=$?
4883 grep -v '^ *+' conftest.er1 >conftest.err
4884 rm -f conftest.er1
4885 cat conftest.err >&5
4886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4887 (exit $ac_status); } &&
4888 { ac_try='test -z "$ac_c_werror_flag"
4889 || test ! -s conftest.err'
4890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4891 (eval $ac_try) 2>&5
4892 ac_status=$?
4893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4894 (exit $ac_status); }; } &&
4895 { ac_try='test -s conftest.$ac_objext'
4896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4897 (eval $ac_try) 2>&5
4898 ac_status=$?
4899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4900 (exit $ac_status); }; }; then
4901 ac_cv_sys_largefile_CC=' -n32'; break
4902 else
4903 echo "$as_me: failed program was:" >&5
4904 sed 's/^/| /' conftest.$ac_ext >&5
4907 rm -f conftest.err conftest.$ac_objext
4908 break
4909 done
4910 CC=$ac_save_CC
4911 rm -f conftest.$ac_ext
4914 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
4915 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
4916 if test "$ac_cv_sys_largefile_CC" != no; then
4917 CC=$CC$ac_cv_sys_largefile_CC
4920 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4921 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
4922 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
4923 echo $ECHO_N "(cached) $ECHO_C" >&6
4924 else
4925 while :; do
4926 ac_cv_sys_file_offset_bits=no
4927 cat >conftest.$ac_ext <<_ACEOF
4928 /* confdefs.h. */
4929 _ACEOF
4930 cat confdefs.h >>conftest.$ac_ext
4931 cat >>conftest.$ac_ext <<_ACEOF
4932 /* end confdefs.h. */
4933 #include <sys/types.h>
4934 /* Check that off_t can represent 2**63 - 1 correctly.
4935 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4936 since some C++ compilers masquerading as C compilers
4937 incorrectly reject 9223372036854775807. */
4938 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4939 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4940 && LARGE_OFF_T % 2147483647 == 1)
4941 ? 1 : -1];
4943 main ()
4947 return 0;
4949 _ACEOF
4950 rm -f conftest.$ac_objext
4951 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4952 (eval $ac_compile) 2>conftest.er1
4953 ac_status=$?
4954 grep -v '^ *+' conftest.er1 >conftest.err
4955 rm -f conftest.er1
4956 cat conftest.err >&5
4957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4958 (exit $ac_status); } &&
4959 { ac_try='test -z "$ac_c_werror_flag"
4960 || test ! -s conftest.err'
4961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4962 (eval $ac_try) 2>&5
4963 ac_status=$?
4964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4965 (exit $ac_status); }; } &&
4966 { ac_try='test -s conftest.$ac_objext'
4967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4968 (eval $ac_try) 2>&5
4969 ac_status=$?
4970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4971 (exit $ac_status); }; }; then
4972 break
4973 else
4974 echo "$as_me: failed program was:" >&5
4975 sed 's/^/| /' conftest.$ac_ext >&5
4978 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4979 cat >conftest.$ac_ext <<_ACEOF
4980 /* confdefs.h. */
4981 _ACEOF
4982 cat confdefs.h >>conftest.$ac_ext
4983 cat >>conftest.$ac_ext <<_ACEOF
4984 /* end confdefs.h. */
4985 #define _FILE_OFFSET_BITS 64
4986 #include <sys/types.h>
4987 /* Check that off_t can represent 2**63 - 1 correctly.
4988 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4989 since some C++ compilers masquerading as C compilers
4990 incorrectly reject 9223372036854775807. */
4991 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4992 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4993 && LARGE_OFF_T % 2147483647 == 1)
4994 ? 1 : -1];
4996 main ()
5000 return 0;
5002 _ACEOF
5003 rm -f conftest.$ac_objext
5004 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5005 (eval $ac_compile) 2>conftest.er1
5006 ac_status=$?
5007 grep -v '^ *+' conftest.er1 >conftest.err
5008 rm -f conftest.er1
5009 cat conftest.err >&5
5010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5011 (exit $ac_status); } &&
5012 { ac_try='test -z "$ac_c_werror_flag"
5013 || test ! -s conftest.err'
5014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5015 (eval $ac_try) 2>&5
5016 ac_status=$?
5017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5018 (exit $ac_status); }; } &&
5019 { ac_try='test -s conftest.$ac_objext'
5020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5021 (eval $ac_try) 2>&5
5022 ac_status=$?
5023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5024 (exit $ac_status); }; }; then
5025 ac_cv_sys_file_offset_bits=64; break
5026 else
5027 echo "$as_me: failed program was:" >&5
5028 sed 's/^/| /' conftest.$ac_ext >&5
5031 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5032 break
5033 done
5035 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
5036 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
5037 if test "$ac_cv_sys_file_offset_bits" != no; then
5039 cat >>confdefs.h <<_ACEOF
5040 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5041 _ACEOF
5044 rm -f conftest*
5045 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
5046 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
5047 if test "${ac_cv_sys_large_files+set}" = set; then
5048 echo $ECHO_N "(cached) $ECHO_C" >&6
5049 else
5050 while :; do
5051 ac_cv_sys_large_files=no
5052 cat >conftest.$ac_ext <<_ACEOF
5053 /* confdefs.h. */
5054 _ACEOF
5055 cat confdefs.h >>conftest.$ac_ext
5056 cat >>conftest.$ac_ext <<_ACEOF
5057 /* end confdefs.h. */
5058 #include <sys/types.h>
5059 /* Check that off_t can represent 2**63 - 1 correctly.
5060 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5061 since some C++ compilers masquerading as C compilers
5062 incorrectly reject 9223372036854775807. */
5063 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5064 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5065 && LARGE_OFF_T % 2147483647 == 1)
5066 ? 1 : -1];
5068 main ()
5072 return 0;
5074 _ACEOF
5075 rm -f conftest.$ac_objext
5076 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5077 (eval $ac_compile) 2>conftest.er1
5078 ac_status=$?
5079 grep -v '^ *+' conftest.er1 >conftest.err
5080 rm -f conftest.er1
5081 cat conftest.err >&5
5082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5083 (exit $ac_status); } &&
5084 { ac_try='test -z "$ac_c_werror_flag"
5085 || test ! -s conftest.err'
5086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5087 (eval $ac_try) 2>&5
5088 ac_status=$?
5089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5090 (exit $ac_status); }; } &&
5091 { ac_try='test -s conftest.$ac_objext'
5092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5093 (eval $ac_try) 2>&5
5094 ac_status=$?
5095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5096 (exit $ac_status); }; }; then
5097 break
5098 else
5099 echo "$as_me: failed program was:" >&5
5100 sed 's/^/| /' conftest.$ac_ext >&5
5103 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5104 cat >conftest.$ac_ext <<_ACEOF
5105 /* confdefs.h. */
5106 _ACEOF
5107 cat confdefs.h >>conftest.$ac_ext
5108 cat >>conftest.$ac_ext <<_ACEOF
5109 /* end confdefs.h. */
5110 #define _LARGE_FILES 1
5111 #include <sys/types.h>
5112 /* Check that off_t can represent 2**63 - 1 correctly.
5113 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5114 since some C++ compilers masquerading as C compilers
5115 incorrectly reject 9223372036854775807. */
5116 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5117 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5118 && LARGE_OFF_T % 2147483647 == 1)
5119 ? 1 : -1];
5121 main ()
5125 return 0;
5127 _ACEOF
5128 rm -f conftest.$ac_objext
5129 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5130 (eval $ac_compile) 2>conftest.er1
5131 ac_status=$?
5132 grep -v '^ *+' conftest.er1 >conftest.err
5133 rm -f conftest.er1
5134 cat conftest.err >&5
5135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5136 (exit $ac_status); } &&
5137 { ac_try='test -z "$ac_c_werror_flag"
5138 || test ! -s conftest.err'
5139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5140 (eval $ac_try) 2>&5
5141 ac_status=$?
5142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5143 (exit $ac_status); }; } &&
5144 { ac_try='test -s conftest.$ac_objext'
5145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5146 (eval $ac_try) 2>&5
5147 ac_status=$?
5148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5149 (exit $ac_status); }; }; then
5150 ac_cv_sys_large_files=1; break
5151 else
5152 echo "$as_me: failed program was:" >&5
5153 sed 's/^/| /' conftest.$ac_ext >&5
5156 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5157 break
5158 done
5160 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
5161 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
5162 if test "$ac_cv_sys_large_files" != no; then
5164 cat >>confdefs.h <<_ACEOF
5165 #define _LARGE_FILES $ac_cv_sys_large_files
5166 _ACEOF
5169 rm -f conftest*
5174 ### The standard library on x86-64 GNU/Linux distributions can
5175 ### be located in either /usr/lib64 or /usr/lib.
5176 case "${canonical}" in
5177 x86_64-*-linux-gnu* )
5178 if test -d /usr/lib64; then
5180 cat >>confdefs.h <<\_ACEOF
5181 #define HAVE_X86_64_LIB64_DIR 1
5182 _ACEOF
5185 esac
5190 if test "${with_sound}" != "no"; then
5191 # Sound support for GNU/Linux and the free BSDs.
5192 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5193 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5194 if test "${ac_cv_header_stdc+set}" = set; then
5195 echo $ECHO_N "(cached) $ECHO_C" >&6
5196 else
5197 cat >conftest.$ac_ext <<_ACEOF
5198 /* confdefs.h. */
5199 _ACEOF
5200 cat confdefs.h >>conftest.$ac_ext
5201 cat >>conftest.$ac_ext <<_ACEOF
5202 /* end confdefs.h. */
5203 #include <stdlib.h>
5204 #include <stdarg.h>
5205 #include <string.h>
5206 #include <float.h>
5209 main ()
5213 return 0;
5215 _ACEOF
5216 rm -f conftest.$ac_objext
5217 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5218 (eval $ac_compile) 2>conftest.er1
5219 ac_status=$?
5220 grep -v '^ *+' conftest.er1 >conftest.err
5221 rm -f conftest.er1
5222 cat conftest.err >&5
5223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5224 (exit $ac_status); } &&
5225 { ac_try='test -z "$ac_c_werror_flag"
5226 || test ! -s conftest.err'
5227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5228 (eval $ac_try) 2>&5
5229 ac_status=$?
5230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5231 (exit $ac_status); }; } &&
5232 { ac_try='test -s conftest.$ac_objext'
5233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5234 (eval $ac_try) 2>&5
5235 ac_status=$?
5236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5237 (exit $ac_status); }; }; then
5238 ac_cv_header_stdc=yes
5239 else
5240 echo "$as_me: failed program was:" >&5
5241 sed 's/^/| /' conftest.$ac_ext >&5
5243 ac_cv_header_stdc=no
5245 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5247 if test $ac_cv_header_stdc = yes; then
5248 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5249 cat >conftest.$ac_ext <<_ACEOF
5250 /* confdefs.h. */
5251 _ACEOF
5252 cat confdefs.h >>conftest.$ac_ext
5253 cat >>conftest.$ac_ext <<_ACEOF
5254 /* end confdefs.h. */
5255 #include <string.h>
5257 _ACEOF
5258 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5259 $EGREP "memchr" >/dev/null 2>&1; then
5261 else
5262 ac_cv_header_stdc=no
5264 rm -f conftest*
5268 if test $ac_cv_header_stdc = yes; then
5269 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5270 cat >conftest.$ac_ext <<_ACEOF
5271 /* confdefs.h. */
5272 _ACEOF
5273 cat confdefs.h >>conftest.$ac_ext
5274 cat >>conftest.$ac_ext <<_ACEOF
5275 /* end confdefs.h. */
5276 #include <stdlib.h>
5278 _ACEOF
5279 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5280 $EGREP "free" >/dev/null 2>&1; then
5282 else
5283 ac_cv_header_stdc=no
5285 rm -f conftest*
5289 if test $ac_cv_header_stdc = yes; then
5290 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5291 if test "$cross_compiling" = yes; then
5293 else
5294 cat >conftest.$ac_ext <<_ACEOF
5295 /* confdefs.h. */
5296 _ACEOF
5297 cat confdefs.h >>conftest.$ac_ext
5298 cat >>conftest.$ac_ext <<_ACEOF
5299 /* end confdefs.h. */
5300 #include <ctype.h>
5301 #if ((' ' & 0x0FF) == 0x020)
5302 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5303 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5304 #else
5305 # define ISLOWER(c) \
5306 (('a' <= (c) && (c) <= 'i') \
5307 || ('j' <= (c) && (c) <= 'r') \
5308 || ('s' <= (c) && (c) <= 'z'))
5309 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5310 #endif
5312 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5314 main ()
5316 int i;
5317 for (i = 0; i < 256; i++)
5318 if (XOR (islower (i), ISLOWER (i))
5319 || toupper (i) != TOUPPER (i))
5320 exit(2);
5321 exit (0);
5323 _ACEOF
5324 rm -f conftest$ac_exeext
5325 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5326 (eval $ac_link) 2>&5
5327 ac_status=$?
5328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5329 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5331 (eval $ac_try) 2>&5
5332 ac_status=$?
5333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5334 (exit $ac_status); }; }; then
5336 else
5337 echo "$as_me: program exited with status $ac_status" >&5
5338 echo "$as_me: failed program was:" >&5
5339 sed 's/^/| /' conftest.$ac_ext >&5
5341 ( exit $ac_status )
5342 ac_cv_header_stdc=no
5344 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5348 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5349 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5350 if test $ac_cv_header_stdc = yes; then
5352 cat >>confdefs.h <<\_ACEOF
5353 #define STDC_HEADERS 1
5354 _ACEOF
5358 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5368 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5369 inttypes.h stdint.h unistd.h
5371 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5372 echo "$as_me:$LINENO: checking for $ac_header" >&5
5373 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5374 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5375 echo $ECHO_N "(cached) $ECHO_C" >&6
5376 else
5377 cat >conftest.$ac_ext <<_ACEOF
5378 /* confdefs.h. */
5379 _ACEOF
5380 cat confdefs.h >>conftest.$ac_ext
5381 cat >>conftest.$ac_ext <<_ACEOF
5382 /* end confdefs.h. */
5383 $ac_includes_default
5385 #include <$ac_header>
5386 _ACEOF
5387 rm -f conftest.$ac_objext
5388 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5389 (eval $ac_compile) 2>conftest.er1
5390 ac_status=$?
5391 grep -v '^ *+' conftest.er1 >conftest.err
5392 rm -f conftest.er1
5393 cat conftest.err >&5
5394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5395 (exit $ac_status); } &&
5396 { ac_try='test -z "$ac_c_werror_flag"
5397 || test ! -s conftest.err'
5398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5399 (eval $ac_try) 2>&5
5400 ac_status=$?
5401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5402 (exit $ac_status); }; } &&
5403 { ac_try='test -s conftest.$ac_objext'
5404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5405 (eval $ac_try) 2>&5
5406 ac_status=$?
5407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5408 (exit $ac_status); }; }; then
5409 eval "$as_ac_Header=yes"
5410 else
5411 echo "$as_me: failed program was:" >&5
5412 sed 's/^/| /' conftest.$ac_ext >&5
5414 eval "$as_ac_Header=no"
5416 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5418 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5419 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5420 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5421 cat >>confdefs.h <<_ACEOF
5422 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5423 _ACEOF
5427 done
5433 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
5435 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5436 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5437 echo "$as_me:$LINENO: checking for $ac_header" >&5
5438 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5439 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5440 echo $ECHO_N "(cached) $ECHO_C" >&6
5442 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5443 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5444 else
5445 # Is the header compilable?
5446 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5447 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5448 cat >conftest.$ac_ext <<_ACEOF
5449 /* confdefs.h. */
5450 _ACEOF
5451 cat confdefs.h >>conftest.$ac_ext
5452 cat >>conftest.$ac_ext <<_ACEOF
5453 /* end confdefs.h. */
5454 $ac_includes_default
5455 #include <$ac_header>
5456 _ACEOF
5457 rm -f conftest.$ac_objext
5458 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5459 (eval $ac_compile) 2>conftest.er1
5460 ac_status=$?
5461 grep -v '^ *+' conftest.er1 >conftest.err
5462 rm -f conftest.er1
5463 cat conftest.err >&5
5464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5465 (exit $ac_status); } &&
5466 { ac_try='test -z "$ac_c_werror_flag"
5467 || test ! -s conftest.err'
5468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5469 (eval $ac_try) 2>&5
5470 ac_status=$?
5471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5472 (exit $ac_status); }; } &&
5473 { ac_try='test -s conftest.$ac_objext'
5474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5475 (eval $ac_try) 2>&5
5476 ac_status=$?
5477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5478 (exit $ac_status); }; }; then
5479 ac_header_compiler=yes
5480 else
5481 echo "$as_me: failed program was:" >&5
5482 sed 's/^/| /' conftest.$ac_ext >&5
5484 ac_header_compiler=no
5486 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5487 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5488 echo "${ECHO_T}$ac_header_compiler" >&6
5490 # Is the header present?
5491 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5492 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5493 cat >conftest.$ac_ext <<_ACEOF
5494 /* confdefs.h. */
5495 _ACEOF
5496 cat confdefs.h >>conftest.$ac_ext
5497 cat >>conftest.$ac_ext <<_ACEOF
5498 /* end confdefs.h. */
5499 #include <$ac_header>
5500 _ACEOF
5501 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5502 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5503 ac_status=$?
5504 grep -v '^ *+' conftest.er1 >conftest.err
5505 rm -f conftest.er1
5506 cat conftest.err >&5
5507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5508 (exit $ac_status); } >/dev/null; then
5509 if test -s conftest.err; then
5510 ac_cpp_err=$ac_c_preproc_warn_flag
5511 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5512 else
5513 ac_cpp_err=
5515 else
5516 ac_cpp_err=yes
5518 if test -z "$ac_cpp_err"; then
5519 ac_header_preproc=yes
5520 else
5521 echo "$as_me: failed program was:" >&5
5522 sed 's/^/| /' conftest.$ac_ext >&5
5524 ac_header_preproc=no
5526 rm -f conftest.err conftest.$ac_ext
5527 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5528 echo "${ECHO_T}$ac_header_preproc" >&6
5530 # So? What about this header?
5531 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5532 yes:no: )
5533 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5534 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5535 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5536 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5537 ac_header_preproc=yes
5539 no:yes:* )
5540 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5541 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5542 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5543 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5544 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5545 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5546 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5547 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5548 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5549 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5550 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5551 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5553 cat <<\_ASBOX
5554 ## ------------------------------------------ ##
5555 ## Report this to the AC_PACKAGE_NAME lists. ##
5556 ## ------------------------------------------ ##
5557 _ASBOX
5559 sed "s/^/$as_me: WARNING: /" >&2
5561 esac
5562 echo "$as_me:$LINENO: checking for $ac_header" >&5
5563 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5564 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5565 echo $ECHO_N "(cached) $ECHO_C" >&6
5566 else
5567 eval "$as_ac_Header=\$ac_header_preproc"
5569 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5570 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5573 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5574 cat >>confdefs.h <<_ACEOF
5575 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5576 _ACEOF
5580 done
5582 # Emulation library used on NetBSD.
5583 echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
5584 echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6
5585 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
5586 echo $ECHO_N "(cached) $ECHO_C" >&6
5587 else
5588 ac_check_lib_save_LIBS=$LIBS
5589 LIBS="-lossaudio $LIBS"
5590 cat >conftest.$ac_ext <<_ACEOF
5591 /* confdefs.h. */
5592 _ACEOF
5593 cat confdefs.h >>conftest.$ac_ext
5594 cat >>conftest.$ac_ext <<_ACEOF
5595 /* end confdefs.h. */
5597 /* Override any gcc2 internal prototype to avoid an error. */
5598 #ifdef __cplusplus
5599 extern "C"
5600 #endif
5601 /* We use char because int might match the return type of a gcc2
5602 builtin and then its argument prototype would still apply. */
5603 char _oss_ioctl ();
5605 main ()
5607 _oss_ioctl ();
5609 return 0;
5611 _ACEOF
5612 rm -f conftest.$ac_objext conftest$ac_exeext
5613 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5614 (eval $ac_link) 2>conftest.er1
5615 ac_status=$?
5616 grep -v '^ *+' conftest.er1 >conftest.err
5617 rm -f conftest.er1
5618 cat conftest.err >&5
5619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5620 (exit $ac_status); } &&
5621 { ac_try='test -z "$ac_c_werror_flag"
5622 || test ! -s conftest.err'
5623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5624 (eval $ac_try) 2>&5
5625 ac_status=$?
5626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5627 (exit $ac_status); }; } &&
5628 { ac_try='test -s conftest$ac_exeext'
5629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5630 (eval $ac_try) 2>&5
5631 ac_status=$?
5632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5633 (exit $ac_status); }; }; then
5634 ac_cv_lib_ossaudio__oss_ioctl=yes
5635 else
5636 echo "$as_me: failed program was:" >&5
5637 sed 's/^/| /' conftest.$ac_ext >&5
5639 ac_cv_lib_ossaudio__oss_ioctl=no
5641 rm -f conftest.err conftest.$ac_objext \
5642 conftest$ac_exeext conftest.$ac_ext
5643 LIBS=$ac_check_lib_save_LIBS
5645 echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
5646 echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6
5647 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
5648 LIBSOUND=-lossaudio
5649 else
5650 LIBSOUND=
5655 ALSA_REQUIRED=1.0.0
5656 ALSA_MODULES="alsa >= $ALSA_REQUIRED"
5657 if test "X${with_pkg_config_prog}" != X; then
5658 PKG_CONFIG="${with_pkg_config_prog}"
5661 succeeded=no
5663 if test -z "$PKG_CONFIG"; then
5664 # Extract the first word of "pkg-config", so it can be a program name with args.
5665 set dummy pkg-config; ac_word=$2
5666 echo "$as_me:$LINENO: checking for $ac_word" >&5
5667 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5668 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
5669 echo $ECHO_N "(cached) $ECHO_C" >&6
5670 else
5671 case $PKG_CONFIG in
5672 [\\/]* | ?:[\\/]*)
5673 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5676 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5677 for as_dir in $PATH
5679 IFS=$as_save_IFS
5680 test -z "$as_dir" && as_dir=.
5681 for ac_exec_ext in '' $ac_executable_extensions; do
5682 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5683 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5684 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5685 break 2
5687 done
5688 done
5690 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
5692 esac
5694 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5696 if test -n "$PKG_CONFIG"; then
5697 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
5698 echo "${ECHO_T}$PKG_CONFIG" >&6
5699 else
5700 echo "$as_me:$LINENO: result: no" >&5
5701 echo "${ECHO_T}no" >&6
5706 if test "$PKG_CONFIG" = "no" ; then
5707 HAVE_ALSA=no
5708 else
5709 PKG_CONFIG_MIN_VERSION=0.9.0
5710 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
5711 echo "$as_me:$LINENO: checking for $ALSA_MODULES" >&5
5712 echo $ECHO_N "checking for $ALSA_MODULES... $ECHO_C" >&6
5714 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5; then
5715 echo "$as_me:$LINENO: result: yes" >&5
5716 echo "${ECHO_T}yes" >&6
5717 succeeded=yes
5719 echo "$as_me:$LINENO: checking ALSA_CFLAGS" >&5
5720 echo $ECHO_N "checking ALSA_CFLAGS... $ECHO_C" >&6
5721 ALSA_CFLAGS=`$PKG_CONFIG --cflags "$ALSA_MODULES"`
5722 echo "$as_me:$LINENO: result: $ALSA_CFLAGS" >&5
5723 echo "${ECHO_T}$ALSA_CFLAGS" >&6
5725 echo "$as_me:$LINENO: checking ALSA_LIBS" >&5
5726 echo $ECHO_N "checking ALSA_LIBS... $ECHO_C" >&6
5727 ALSA_LIBS=`$PKG_CONFIG --libs "$ALSA_MODULES"`
5728 echo "$as_me:$LINENO: result: $ALSA_LIBS" >&5
5729 echo "${ECHO_T}$ALSA_LIBS" >&6
5730 else
5731 echo "$as_me:$LINENO: result: no" >&5
5732 echo "${ECHO_T}no" >&6
5733 ALSA_CFLAGS=""
5734 ALSA_LIBS=""
5735 ## If we have a custom action on failure, don't print errors, but
5736 ## do set a variable so people can do so.
5737 ALSA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
5743 else
5744 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
5745 echo "*** See http://www.freedesktop.org/software/pkgconfig"
5749 if test $succeeded = yes; then
5750 HAVE_ALSA=yes
5751 else
5752 HAVE_ALSA=no
5755 if test $HAVE_ALSA = yes; then
5756 LIBSOUND="$LIBSOUND $ALSA_LIBS"
5757 CFLAGS_SOUND="$CFLAGS_SOUND $ALSA_CFLAGS"
5759 cat >>confdefs.h <<\_ACEOF
5760 #define HAVE_ALSA 1
5761 _ACEOF
5792 for ac_header in sys/select.h sys/timeb.h sys/time.h unistd.h utime.h \
5793 linux/version.h sys/systeminfo.h termios.h limits.h string.h stdlib.h \
5794 termcap.h stdio_ext.h fcntl.h strings.h coff.h pty.h sys/mman.h \
5795 sys/param.h sys/vlimit.h sys/resource.h locale.h sys/_mbstate_t.h \
5796 sys/utsname.h pwd.h
5798 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5799 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5800 echo "$as_me:$LINENO: checking for $ac_header" >&5
5801 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5802 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5803 echo $ECHO_N "(cached) $ECHO_C" >&6
5805 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5806 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5807 else
5808 # Is the header compilable?
5809 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5810 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5811 cat >conftest.$ac_ext <<_ACEOF
5812 /* confdefs.h. */
5813 _ACEOF
5814 cat confdefs.h >>conftest.$ac_ext
5815 cat >>conftest.$ac_ext <<_ACEOF
5816 /* end confdefs.h. */
5817 $ac_includes_default
5818 #include <$ac_header>
5819 _ACEOF
5820 rm -f conftest.$ac_objext
5821 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5822 (eval $ac_compile) 2>conftest.er1
5823 ac_status=$?
5824 grep -v '^ *+' conftest.er1 >conftest.err
5825 rm -f conftest.er1
5826 cat conftest.err >&5
5827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5828 (exit $ac_status); } &&
5829 { ac_try='test -z "$ac_c_werror_flag"
5830 || test ! -s conftest.err'
5831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5832 (eval $ac_try) 2>&5
5833 ac_status=$?
5834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5835 (exit $ac_status); }; } &&
5836 { ac_try='test -s conftest.$ac_objext'
5837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5838 (eval $ac_try) 2>&5
5839 ac_status=$?
5840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5841 (exit $ac_status); }; }; then
5842 ac_header_compiler=yes
5843 else
5844 echo "$as_me: failed program was:" >&5
5845 sed 's/^/| /' conftest.$ac_ext >&5
5847 ac_header_compiler=no
5849 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5850 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5851 echo "${ECHO_T}$ac_header_compiler" >&6
5853 # Is the header present?
5854 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5855 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5856 cat >conftest.$ac_ext <<_ACEOF
5857 /* confdefs.h. */
5858 _ACEOF
5859 cat confdefs.h >>conftest.$ac_ext
5860 cat >>conftest.$ac_ext <<_ACEOF
5861 /* end confdefs.h. */
5862 #include <$ac_header>
5863 _ACEOF
5864 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5865 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5866 ac_status=$?
5867 grep -v '^ *+' conftest.er1 >conftest.err
5868 rm -f conftest.er1
5869 cat conftest.err >&5
5870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5871 (exit $ac_status); } >/dev/null; then
5872 if test -s conftest.err; then
5873 ac_cpp_err=$ac_c_preproc_warn_flag
5874 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5875 else
5876 ac_cpp_err=
5878 else
5879 ac_cpp_err=yes
5881 if test -z "$ac_cpp_err"; then
5882 ac_header_preproc=yes
5883 else
5884 echo "$as_me: failed program was:" >&5
5885 sed 's/^/| /' conftest.$ac_ext >&5
5887 ac_header_preproc=no
5889 rm -f conftest.err conftest.$ac_ext
5890 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5891 echo "${ECHO_T}$ac_header_preproc" >&6
5893 # So? What about this header?
5894 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5895 yes:no: )
5896 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5897 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5898 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5899 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5900 ac_header_preproc=yes
5902 no:yes:* )
5903 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5904 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5905 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5906 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5907 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5908 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5909 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5910 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5911 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5912 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5913 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5914 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5916 cat <<\_ASBOX
5917 ## ------------------------------------------ ##
5918 ## Report this to the AC_PACKAGE_NAME lists. ##
5919 ## ------------------------------------------ ##
5920 _ASBOX
5922 sed "s/^/$as_me: WARNING: /" >&2
5924 esac
5925 echo "$as_me:$LINENO: checking for $ac_header" >&5
5926 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5927 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5928 echo $ECHO_N "(cached) $ECHO_C" >&6
5929 else
5930 eval "$as_ac_Header=\$ac_header_preproc"
5932 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5933 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5936 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5937 cat >>confdefs.h <<_ACEOF
5938 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5939 _ACEOF
5943 done
5946 echo "$as_me:$LINENO: checking if personality LINUX32 can be set" >&5
5947 echo $ECHO_N "checking if personality LINUX32 can be set... $ECHO_C" >&6
5948 cat >conftest.$ac_ext <<_ACEOF
5949 /* confdefs.h. */
5950 _ACEOF
5951 cat confdefs.h >>conftest.$ac_ext
5952 cat >>conftest.$ac_ext <<_ACEOF
5953 /* end confdefs.h. */
5954 #include <sys/personality.h>
5956 main ()
5958 personality (PER_LINUX32)
5960 return 0;
5962 _ACEOF
5963 rm -f conftest.$ac_objext
5964 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5965 (eval $ac_compile) 2>conftest.er1
5966 ac_status=$?
5967 grep -v '^ *+' conftest.er1 >conftest.err
5968 rm -f conftest.er1
5969 cat conftest.err >&5
5970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5971 (exit $ac_status); } &&
5972 { ac_try='test -z "$ac_c_werror_flag"
5973 || test ! -s conftest.err'
5974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5975 (eval $ac_try) 2>&5
5976 ac_status=$?
5977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5978 (exit $ac_status); }; } &&
5979 { ac_try='test -s conftest.$ac_objext'
5980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5981 (eval $ac_try) 2>&5
5982 ac_status=$?
5983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5984 (exit $ac_status); }; }; then
5985 emacs_cv_personality_linux32=yes
5986 else
5987 echo "$as_me: failed program was:" >&5
5988 sed 's/^/| /' conftest.$ac_ext >&5
5990 emacs_cv_personality_linux32=no
5992 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5993 echo "$as_me:$LINENO: result: $emacs_cv_personality_linux32" >&5
5994 echo "${ECHO_T}$emacs_cv_personality_linux32" >&6
5996 if test $emacs_cv_personality_linux32 = yes; then
5998 cat >>confdefs.h <<\_ACEOF
5999 #define HAVE_PERSONALITY_LINUX32 1
6000 _ACEOF
6005 for ac_header in term.h
6007 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6008 echo "$as_me:$LINENO: checking for $ac_header" >&5
6009 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6010 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6011 echo $ECHO_N "(cached) $ECHO_C" >&6
6012 else
6013 cat >conftest.$ac_ext <<_ACEOF
6014 /* confdefs.h. */
6015 _ACEOF
6016 cat confdefs.h >>conftest.$ac_ext
6017 cat >>conftest.$ac_ext <<_ACEOF
6018 /* end confdefs.h. */
6019 #include <$ac_header>
6020 _ACEOF
6021 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6022 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6023 ac_status=$?
6024 grep -v '^ *+' conftest.er1 >conftest.err
6025 rm -f conftest.er1
6026 cat conftest.err >&5
6027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6028 (exit $ac_status); } >/dev/null; then
6029 if test -s conftest.err; then
6030 ac_cpp_err=$ac_c_preproc_warn_flag
6031 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6032 else
6033 ac_cpp_err=
6035 else
6036 ac_cpp_err=yes
6038 if test -z "$ac_cpp_err"; then
6039 eval "$as_ac_Header=yes"
6040 else
6041 echo "$as_me: failed program was:" >&5
6042 sed 's/^/| /' conftest.$ac_ext >&5
6044 eval "$as_ac_Header=no"
6046 rm -f conftest.err conftest.$ac_ext
6048 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6049 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6050 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6051 cat >>confdefs.h <<_ACEOF
6052 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6053 _ACEOF
6057 done
6059 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6060 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6061 if test "${ac_cv_header_stdc+set}" = set; then
6062 echo $ECHO_N "(cached) $ECHO_C" >&6
6063 else
6064 cat >conftest.$ac_ext <<_ACEOF
6065 /* confdefs.h. */
6066 _ACEOF
6067 cat confdefs.h >>conftest.$ac_ext
6068 cat >>conftest.$ac_ext <<_ACEOF
6069 /* end confdefs.h. */
6070 #include <stdlib.h>
6071 #include <stdarg.h>
6072 #include <string.h>
6073 #include <float.h>
6076 main ()
6080 return 0;
6082 _ACEOF
6083 rm -f conftest.$ac_objext
6084 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6085 (eval $ac_compile) 2>conftest.er1
6086 ac_status=$?
6087 grep -v '^ *+' conftest.er1 >conftest.err
6088 rm -f conftest.er1
6089 cat conftest.err >&5
6090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6091 (exit $ac_status); } &&
6092 { ac_try='test -z "$ac_c_werror_flag"
6093 || test ! -s conftest.err'
6094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6095 (eval $ac_try) 2>&5
6096 ac_status=$?
6097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6098 (exit $ac_status); }; } &&
6099 { ac_try='test -s conftest.$ac_objext'
6100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6101 (eval $ac_try) 2>&5
6102 ac_status=$?
6103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6104 (exit $ac_status); }; }; then
6105 ac_cv_header_stdc=yes
6106 else
6107 echo "$as_me: failed program was:" >&5
6108 sed 's/^/| /' conftest.$ac_ext >&5
6110 ac_cv_header_stdc=no
6112 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6114 if test $ac_cv_header_stdc = yes; then
6115 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6116 cat >conftest.$ac_ext <<_ACEOF
6117 /* confdefs.h. */
6118 _ACEOF
6119 cat confdefs.h >>conftest.$ac_ext
6120 cat >>conftest.$ac_ext <<_ACEOF
6121 /* end confdefs.h. */
6122 #include <string.h>
6124 _ACEOF
6125 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6126 $EGREP "memchr" >/dev/null 2>&1; then
6128 else
6129 ac_cv_header_stdc=no
6131 rm -f conftest*
6135 if test $ac_cv_header_stdc = yes; then
6136 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6137 cat >conftest.$ac_ext <<_ACEOF
6138 /* confdefs.h. */
6139 _ACEOF
6140 cat confdefs.h >>conftest.$ac_ext
6141 cat >>conftest.$ac_ext <<_ACEOF
6142 /* end confdefs.h. */
6143 #include <stdlib.h>
6145 _ACEOF
6146 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6147 $EGREP "free" >/dev/null 2>&1; then
6149 else
6150 ac_cv_header_stdc=no
6152 rm -f conftest*
6156 if test $ac_cv_header_stdc = yes; then
6157 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6158 if test "$cross_compiling" = yes; then
6160 else
6161 cat >conftest.$ac_ext <<_ACEOF
6162 /* confdefs.h. */
6163 _ACEOF
6164 cat confdefs.h >>conftest.$ac_ext
6165 cat >>conftest.$ac_ext <<_ACEOF
6166 /* end confdefs.h. */
6167 #include <ctype.h>
6168 #if ((' ' & 0x0FF) == 0x020)
6169 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6170 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6171 #else
6172 # define ISLOWER(c) \
6173 (('a' <= (c) && (c) <= 'i') \
6174 || ('j' <= (c) && (c) <= 'r') \
6175 || ('s' <= (c) && (c) <= 'z'))
6176 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6177 #endif
6179 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6181 main ()
6183 int i;
6184 for (i = 0; i < 256; i++)
6185 if (XOR (islower (i), ISLOWER (i))
6186 || toupper (i) != TOUPPER (i))
6187 exit(2);
6188 exit (0);
6190 _ACEOF
6191 rm -f conftest$ac_exeext
6192 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6193 (eval $ac_link) 2>&5
6194 ac_status=$?
6195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6196 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6198 (eval $ac_try) 2>&5
6199 ac_status=$?
6200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6201 (exit $ac_status); }; }; then
6203 else
6204 echo "$as_me: program exited with status $ac_status" >&5
6205 echo "$as_me: failed program was:" >&5
6206 sed 's/^/| /' conftest.$ac_ext >&5
6208 ( exit $ac_status )
6209 ac_cv_header_stdc=no
6211 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6215 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6216 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6217 if test $ac_cv_header_stdc = yes; then
6219 cat >>confdefs.h <<\_ACEOF
6220 #define STDC_HEADERS 1
6221 _ACEOF
6225 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
6226 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
6227 if test "${ac_cv_header_time+set}" = set; then
6228 echo $ECHO_N "(cached) $ECHO_C" >&6
6229 else
6230 cat >conftest.$ac_ext <<_ACEOF
6231 /* confdefs.h. */
6232 _ACEOF
6233 cat confdefs.h >>conftest.$ac_ext
6234 cat >>conftest.$ac_ext <<_ACEOF
6235 /* end confdefs.h. */
6236 #include <sys/types.h>
6237 #include <sys/time.h>
6238 #include <time.h>
6241 main ()
6243 if ((struct tm *) 0)
6244 return 0;
6246 return 0;
6248 _ACEOF
6249 rm -f conftest.$ac_objext
6250 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6251 (eval $ac_compile) 2>conftest.er1
6252 ac_status=$?
6253 grep -v '^ *+' conftest.er1 >conftest.err
6254 rm -f conftest.er1
6255 cat conftest.err >&5
6256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6257 (exit $ac_status); } &&
6258 { ac_try='test -z "$ac_c_werror_flag"
6259 || test ! -s conftest.err'
6260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6261 (eval $ac_try) 2>&5
6262 ac_status=$?
6263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6264 (exit $ac_status); }; } &&
6265 { ac_try='test -s conftest.$ac_objext'
6266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6267 (eval $ac_try) 2>&5
6268 ac_status=$?
6269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6270 (exit $ac_status); }; }; then
6271 ac_cv_header_time=yes
6272 else
6273 echo "$as_me: failed program was:" >&5
6274 sed 's/^/| /' conftest.$ac_ext >&5
6276 ac_cv_header_time=no
6278 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6280 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
6281 echo "${ECHO_T}$ac_cv_header_time" >&6
6282 if test $ac_cv_header_time = yes; then
6284 cat >>confdefs.h <<\_ACEOF
6285 #define TIME_WITH_SYS_TIME 1
6286 _ACEOF
6290 echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
6291 echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6
6292 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
6293 echo $ECHO_N "(cached) $ECHO_C" >&6
6294 else
6295 cat >conftest.$ac_ext <<_ACEOF
6296 /* confdefs.h. */
6297 _ACEOF
6298 cat confdefs.h >>conftest.$ac_ext
6299 cat >>conftest.$ac_ext <<_ACEOF
6300 /* end confdefs.h. */
6301 $ac_includes_default
6303 main ()
6305 #ifndef sys_siglist
6306 char *p = (char *) sys_siglist;
6307 #endif
6310 return 0;
6312 _ACEOF
6313 rm -f conftest.$ac_objext
6314 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6315 (eval $ac_compile) 2>conftest.er1
6316 ac_status=$?
6317 grep -v '^ *+' conftest.er1 >conftest.err
6318 rm -f conftest.er1
6319 cat conftest.err >&5
6320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6321 (exit $ac_status); } &&
6322 { ac_try='test -z "$ac_c_werror_flag"
6323 || test ! -s conftest.err'
6324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6325 (eval $ac_try) 2>&5
6326 ac_status=$?
6327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6328 (exit $ac_status); }; } &&
6329 { ac_try='test -s conftest.$ac_objext'
6330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6331 (eval $ac_try) 2>&5
6332 ac_status=$?
6333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6334 (exit $ac_status); }; }; then
6335 ac_cv_have_decl_sys_siglist=yes
6336 else
6337 echo "$as_me: failed program was:" >&5
6338 sed 's/^/| /' conftest.$ac_ext >&5
6340 ac_cv_have_decl_sys_siglist=no
6342 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6344 echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
6345 echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6
6346 if test $ac_cv_have_decl_sys_siglist = yes; then
6348 cat >>confdefs.h <<_ACEOF
6349 #define HAVE_DECL_SYS_SIGLIST 1
6350 _ACEOF
6353 else
6354 cat >>confdefs.h <<_ACEOF
6355 #define HAVE_DECL_SYS_SIGLIST 0
6356 _ACEOF
6362 if test $ac_cv_have_decl_sys_siglist != yes; then
6363 # For Tru64, at least:
6364 echo "$as_me:$LINENO: checking whether __sys_siglist is declared" >&5
6365 echo $ECHO_N "checking whether __sys_siglist is declared... $ECHO_C" >&6
6366 if test "${ac_cv_have_decl___sys_siglist+set}" = set; then
6367 echo $ECHO_N "(cached) $ECHO_C" >&6
6368 else
6369 cat >conftest.$ac_ext <<_ACEOF
6370 /* confdefs.h. */
6371 _ACEOF
6372 cat confdefs.h >>conftest.$ac_ext
6373 cat >>conftest.$ac_ext <<_ACEOF
6374 /* end confdefs.h. */
6375 $ac_includes_default
6377 main ()
6379 #ifndef __sys_siglist
6380 char *p = (char *) __sys_siglist;
6381 #endif
6384 return 0;
6386 _ACEOF
6387 rm -f conftest.$ac_objext
6388 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6389 (eval $ac_compile) 2>conftest.er1
6390 ac_status=$?
6391 grep -v '^ *+' conftest.er1 >conftest.err
6392 rm -f conftest.er1
6393 cat conftest.err >&5
6394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6395 (exit $ac_status); } &&
6396 { ac_try='test -z "$ac_c_werror_flag"
6397 || test ! -s conftest.err'
6398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6399 (eval $ac_try) 2>&5
6400 ac_status=$?
6401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6402 (exit $ac_status); }; } &&
6403 { ac_try='test -s conftest.$ac_objext'
6404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6405 (eval $ac_try) 2>&5
6406 ac_status=$?
6407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6408 (exit $ac_status); }; }; then
6409 ac_cv_have_decl___sys_siglist=yes
6410 else
6411 echo "$as_me: failed program was:" >&5
6412 sed 's/^/| /' conftest.$ac_ext >&5
6414 ac_cv_have_decl___sys_siglist=no
6416 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6418 echo "$as_me:$LINENO: result: $ac_cv_have_decl___sys_siglist" >&5
6419 echo "${ECHO_T}$ac_cv_have_decl___sys_siglist" >&6
6420 if test $ac_cv_have_decl___sys_siglist = yes; then
6422 cat >>confdefs.h <<_ACEOF
6423 #define HAVE_DECL___SYS_SIGLIST 1
6424 _ACEOF
6427 else
6428 cat >>confdefs.h <<_ACEOF
6429 #define HAVE_DECL___SYS_SIGLIST 0
6430 _ACEOF
6436 if test $ac_cv_have_decl___sys_siglist = yes; then
6438 cat >>confdefs.h <<\_ACEOF
6439 #define sys_siglist __sys_siglist
6440 _ACEOF
6444 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
6445 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
6446 if test "${ac_cv_header_sys_wait_h+set}" = set; then
6447 echo $ECHO_N "(cached) $ECHO_C" >&6
6448 else
6449 cat >conftest.$ac_ext <<_ACEOF
6450 /* confdefs.h. */
6451 _ACEOF
6452 cat confdefs.h >>conftest.$ac_ext
6453 cat >>conftest.$ac_ext <<_ACEOF
6454 /* end confdefs.h. */
6455 #include <sys/types.h>
6456 #include <sys/wait.h>
6457 #ifndef WEXITSTATUS
6458 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
6459 #endif
6460 #ifndef WIFEXITED
6461 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
6462 #endif
6465 main ()
6467 int s;
6468 wait (&s);
6469 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
6471 return 0;
6473 _ACEOF
6474 rm -f conftest.$ac_objext
6475 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6476 (eval $ac_compile) 2>conftest.er1
6477 ac_status=$?
6478 grep -v '^ *+' conftest.er1 >conftest.err
6479 rm -f conftest.er1
6480 cat conftest.err >&5
6481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6482 (exit $ac_status); } &&
6483 { ac_try='test -z "$ac_c_werror_flag"
6484 || test ! -s conftest.err'
6485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6486 (eval $ac_try) 2>&5
6487 ac_status=$?
6488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6489 (exit $ac_status); }; } &&
6490 { ac_try='test -s conftest.$ac_objext'
6491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6492 (eval $ac_try) 2>&5
6493 ac_status=$?
6494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6495 (exit $ac_status); }; }; then
6496 ac_cv_header_sys_wait_h=yes
6497 else
6498 echo "$as_me: failed program was:" >&5
6499 sed 's/^/| /' conftest.$ac_ext >&5
6501 ac_cv_header_sys_wait_h=no
6503 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6505 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
6506 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
6507 if test $ac_cv_header_sys_wait_h = yes; then
6509 cat >>confdefs.h <<\_ACEOF
6510 #define HAVE_SYS_WAIT_H 1
6511 _ACEOF
6516 echo "$as_me:$LINENO: checking for struct utimbuf" >&5
6517 echo $ECHO_N "checking for struct utimbuf... $ECHO_C" >&6
6518 if test "${emacs_cv_struct_utimbuf+set}" = set; then
6519 echo $ECHO_N "(cached) $ECHO_C" >&6
6520 else
6521 cat >conftest.$ac_ext <<_ACEOF
6522 /* confdefs.h. */
6523 _ACEOF
6524 cat confdefs.h >>conftest.$ac_ext
6525 cat >>conftest.$ac_ext <<_ACEOF
6526 /* end confdefs.h. */
6527 #ifdef TIME_WITH_SYS_TIME
6528 #include <sys/time.h>
6529 #include <time.h>
6530 #else
6531 #ifdef HAVE_SYS_TIME_H
6532 #include <sys/time.h>
6533 #else
6534 #include <time.h>
6535 #endif
6536 #endif
6537 #ifdef HAVE_UTIME_H
6538 #include <utime.h>
6539 #endif
6541 main ()
6543 static struct utimbuf x; x.actime = x.modtime;
6545 return 0;
6547 _ACEOF
6548 rm -f conftest.$ac_objext
6549 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6550 (eval $ac_compile) 2>conftest.er1
6551 ac_status=$?
6552 grep -v '^ *+' conftest.er1 >conftest.err
6553 rm -f conftest.er1
6554 cat conftest.err >&5
6555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6556 (exit $ac_status); } &&
6557 { ac_try='test -z "$ac_c_werror_flag"
6558 || test ! -s conftest.err'
6559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6560 (eval $ac_try) 2>&5
6561 ac_status=$?
6562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6563 (exit $ac_status); }; } &&
6564 { ac_try='test -s conftest.$ac_objext'
6565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6566 (eval $ac_try) 2>&5
6567 ac_status=$?
6568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6569 (exit $ac_status); }; }; then
6570 emacs_cv_struct_utimbuf=yes
6571 else
6572 echo "$as_me: failed program was:" >&5
6573 sed 's/^/| /' conftest.$ac_ext >&5
6575 emacs_cv_struct_utimbuf=no
6577 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6579 echo "$as_me:$LINENO: result: $emacs_cv_struct_utimbuf" >&5
6580 echo "${ECHO_T}$emacs_cv_struct_utimbuf" >&6
6581 if test $emacs_cv_struct_utimbuf = yes; then
6583 cat >>confdefs.h <<\_ACEOF
6584 #define HAVE_STRUCT_UTIMBUF 1
6585 _ACEOF
6589 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
6590 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
6591 if test "${ac_cv_type_signal+set}" = set; then
6592 echo $ECHO_N "(cached) $ECHO_C" >&6
6593 else
6594 cat >conftest.$ac_ext <<_ACEOF
6595 /* confdefs.h. */
6596 _ACEOF
6597 cat confdefs.h >>conftest.$ac_ext
6598 cat >>conftest.$ac_ext <<_ACEOF
6599 /* end confdefs.h. */
6600 #include <sys/types.h>
6601 #include <signal.h>
6602 #ifdef signal
6603 # undef signal
6604 #endif
6605 #ifdef __cplusplus
6606 extern "C" void (*signal (int, void (*)(int)))(int);
6607 #else
6608 void (*signal ()) ();
6609 #endif
6612 main ()
6614 int i;
6616 return 0;
6618 _ACEOF
6619 rm -f conftest.$ac_objext
6620 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6621 (eval $ac_compile) 2>conftest.er1
6622 ac_status=$?
6623 grep -v '^ *+' conftest.er1 >conftest.err
6624 rm -f conftest.er1
6625 cat conftest.err >&5
6626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6627 (exit $ac_status); } &&
6628 { ac_try='test -z "$ac_c_werror_flag"
6629 || test ! -s conftest.err'
6630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6631 (eval $ac_try) 2>&5
6632 ac_status=$?
6633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6634 (exit $ac_status); }; } &&
6635 { ac_try='test -s conftest.$ac_objext'
6636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6637 (eval $ac_try) 2>&5
6638 ac_status=$?
6639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6640 (exit $ac_status); }; }; then
6641 ac_cv_type_signal=void
6642 else
6643 echo "$as_me: failed program was:" >&5
6644 sed 's/^/| /' conftest.$ac_ext >&5
6646 ac_cv_type_signal=int
6648 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6650 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
6651 echo "${ECHO_T}$ac_cv_type_signal" >&6
6653 cat >>confdefs.h <<_ACEOF
6654 #define RETSIGTYPE $ac_cv_type_signal
6655 _ACEOF
6659 echo "$as_me:$LINENO: checking for speed_t" >&5
6660 echo $ECHO_N "checking for speed_t... $ECHO_C" >&6
6661 if test "${emacs_cv_speed_t+set}" = set; then
6662 echo $ECHO_N "(cached) $ECHO_C" >&6
6663 else
6664 cat >conftest.$ac_ext <<_ACEOF
6665 /* confdefs.h. */
6666 _ACEOF
6667 cat confdefs.h >>conftest.$ac_ext
6668 cat >>conftest.$ac_ext <<_ACEOF
6669 /* end confdefs.h. */
6670 #include <termios.h>
6672 main ()
6674 speed_t x = 1;
6676 return 0;
6678 _ACEOF
6679 rm -f conftest.$ac_objext
6680 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6681 (eval $ac_compile) 2>conftest.er1
6682 ac_status=$?
6683 grep -v '^ *+' conftest.er1 >conftest.err
6684 rm -f conftest.er1
6685 cat conftest.err >&5
6686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6687 (exit $ac_status); } &&
6688 { ac_try='test -z "$ac_c_werror_flag"
6689 || test ! -s conftest.err'
6690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6691 (eval $ac_try) 2>&5
6692 ac_status=$?
6693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6694 (exit $ac_status); }; } &&
6695 { ac_try='test -s conftest.$ac_objext'
6696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6697 (eval $ac_try) 2>&5
6698 ac_status=$?
6699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6700 (exit $ac_status); }; }; then
6701 emacs_cv_speed_t=yes
6702 else
6703 echo "$as_me: failed program was:" >&5
6704 sed 's/^/| /' conftest.$ac_ext >&5
6706 emacs_cv_speed_t=no
6708 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6710 echo "$as_me:$LINENO: result: $emacs_cv_speed_t" >&5
6711 echo "${ECHO_T}$emacs_cv_speed_t" >&6
6712 if test $emacs_cv_speed_t = yes; then
6714 cat >>confdefs.h <<\_ACEOF
6715 #define HAVE_SPEED_T 1
6716 _ACEOF
6720 echo "$as_me:$LINENO: checking for struct timeval" >&5
6721 echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6
6722 if test "${emacs_cv_struct_timeval+set}" = set; then
6723 echo $ECHO_N "(cached) $ECHO_C" >&6
6724 else
6725 cat >conftest.$ac_ext <<_ACEOF
6726 /* confdefs.h. */
6727 _ACEOF
6728 cat confdefs.h >>conftest.$ac_ext
6729 cat >>conftest.$ac_ext <<_ACEOF
6730 /* end confdefs.h. */
6731 #ifdef TIME_WITH_SYS_TIME
6732 #include <sys/time.h>
6733 #include <time.h>
6734 #else
6735 #ifdef HAVE_SYS_TIME_H
6736 #include <sys/time.h>
6737 #else
6738 #include <time.h>
6739 #endif
6740 #endif
6742 main ()
6744 static struct timeval x; x.tv_sec = x.tv_usec;
6746 return 0;
6748 _ACEOF
6749 rm -f conftest.$ac_objext
6750 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6751 (eval $ac_compile) 2>conftest.er1
6752 ac_status=$?
6753 grep -v '^ *+' conftest.er1 >conftest.err
6754 rm -f conftest.er1
6755 cat conftest.err >&5
6756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6757 (exit $ac_status); } &&
6758 { ac_try='test -z "$ac_c_werror_flag"
6759 || test ! -s conftest.err'
6760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6761 (eval $ac_try) 2>&5
6762 ac_status=$?
6763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6764 (exit $ac_status); }; } &&
6765 { ac_try='test -s conftest.$ac_objext'
6766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6767 (eval $ac_try) 2>&5
6768 ac_status=$?
6769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6770 (exit $ac_status); }; }; then
6771 emacs_cv_struct_timeval=yes
6772 else
6773 echo "$as_me: failed program was:" >&5
6774 sed 's/^/| /' conftest.$ac_ext >&5
6776 emacs_cv_struct_timeval=no
6778 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6780 echo "$as_me:$LINENO: result: $emacs_cv_struct_timeval" >&5
6781 echo "${ECHO_T}$emacs_cv_struct_timeval" >&6
6782 HAVE_TIMEVAL=$emacs_cv_struct_timeval
6783 if test $emacs_cv_struct_timeval = yes; then
6785 cat >>confdefs.h <<\_ACEOF
6786 #define HAVE_TIMEVAL 1
6787 _ACEOF
6791 echo "$as_me:$LINENO: checking for struct exception" >&5
6792 echo $ECHO_N "checking for struct exception... $ECHO_C" >&6
6793 if test "${emacs_cv_struct_exception+set}" = set; then
6794 echo $ECHO_N "(cached) $ECHO_C" >&6
6795 else
6796 cat >conftest.$ac_ext <<_ACEOF
6797 /* confdefs.h. */
6798 _ACEOF
6799 cat confdefs.h >>conftest.$ac_ext
6800 cat >>conftest.$ac_ext <<_ACEOF
6801 /* end confdefs.h. */
6802 #include <math.h>
6804 main ()
6806 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
6808 return 0;
6810 _ACEOF
6811 rm -f conftest.$ac_objext
6812 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6813 (eval $ac_compile) 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); } &&
6820 { ac_try='test -z "$ac_c_werror_flag"
6821 || test ! -s conftest.err'
6822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6823 (eval $ac_try) 2>&5
6824 ac_status=$?
6825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6826 (exit $ac_status); }; } &&
6827 { ac_try='test -s conftest.$ac_objext'
6828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6829 (eval $ac_try) 2>&5
6830 ac_status=$?
6831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6832 (exit $ac_status); }; }; then
6833 emacs_cv_struct_exception=yes
6834 else
6835 echo "$as_me: failed program was:" >&5
6836 sed 's/^/| /' conftest.$ac_ext >&5
6838 emacs_cv_struct_exception=no
6840 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6842 echo "$as_me:$LINENO: result: $emacs_cv_struct_exception" >&5
6843 echo "${ECHO_T}$emacs_cv_struct_exception" >&6
6844 HAVE_EXCEPTION=$emacs_cv_struct_exception
6845 if test $emacs_cv_struct_exception != yes; then
6847 cat >>confdefs.h <<\_ACEOF
6848 #define NO_MATHERR 1
6849 _ACEOF
6854 for ac_header in sys/socket.h
6856 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6857 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6858 echo "$as_me:$LINENO: checking for $ac_header" >&5
6859 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6860 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6861 echo $ECHO_N "(cached) $ECHO_C" >&6
6863 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6864 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6865 else
6866 # Is the header compilable?
6867 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6868 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6869 cat >conftest.$ac_ext <<_ACEOF
6870 /* confdefs.h. */
6871 _ACEOF
6872 cat confdefs.h >>conftest.$ac_ext
6873 cat >>conftest.$ac_ext <<_ACEOF
6874 /* end confdefs.h. */
6875 $ac_includes_default
6876 #include <$ac_header>
6877 _ACEOF
6878 rm -f conftest.$ac_objext
6879 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6880 (eval $ac_compile) 2>conftest.er1
6881 ac_status=$?
6882 grep -v '^ *+' conftest.er1 >conftest.err
6883 rm -f conftest.er1
6884 cat conftest.err >&5
6885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6886 (exit $ac_status); } &&
6887 { ac_try='test -z "$ac_c_werror_flag"
6888 || test ! -s conftest.err'
6889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6890 (eval $ac_try) 2>&5
6891 ac_status=$?
6892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6893 (exit $ac_status); }; } &&
6894 { ac_try='test -s conftest.$ac_objext'
6895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6896 (eval $ac_try) 2>&5
6897 ac_status=$?
6898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6899 (exit $ac_status); }; }; then
6900 ac_header_compiler=yes
6901 else
6902 echo "$as_me: failed program was:" >&5
6903 sed 's/^/| /' conftest.$ac_ext >&5
6905 ac_header_compiler=no
6907 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6908 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6909 echo "${ECHO_T}$ac_header_compiler" >&6
6911 # Is the header present?
6912 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6913 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6914 cat >conftest.$ac_ext <<_ACEOF
6915 /* confdefs.h. */
6916 _ACEOF
6917 cat confdefs.h >>conftest.$ac_ext
6918 cat >>conftest.$ac_ext <<_ACEOF
6919 /* end confdefs.h. */
6920 #include <$ac_header>
6921 _ACEOF
6922 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6923 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6924 ac_status=$?
6925 grep -v '^ *+' conftest.er1 >conftest.err
6926 rm -f conftest.er1
6927 cat conftest.err >&5
6928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6929 (exit $ac_status); } >/dev/null; then
6930 if test -s conftest.err; then
6931 ac_cpp_err=$ac_c_preproc_warn_flag
6932 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6933 else
6934 ac_cpp_err=
6936 else
6937 ac_cpp_err=yes
6939 if test -z "$ac_cpp_err"; then
6940 ac_header_preproc=yes
6941 else
6942 echo "$as_me: failed program was:" >&5
6943 sed 's/^/| /' conftest.$ac_ext >&5
6945 ac_header_preproc=no
6947 rm -f conftest.err conftest.$ac_ext
6948 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6949 echo "${ECHO_T}$ac_header_preproc" >&6
6951 # So? What about this header?
6952 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6953 yes:no: )
6954 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6955 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6956 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6957 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6958 ac_header_preproc=yes
6960 no:yes:* )
6961 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6962 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6963 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6964 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6965 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6966 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6967 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6968 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6969 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6970 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6971 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6972 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6974 cat <<\_ASBOX
6975 ## ------------------------------------------ ##
6976 ## Report this to the AC_PACKAGE_NAME lists. ##
6977 ## ------------------------------------------ ##
6978 _ASBOX
6980 sed "s/^/$as_me: WARNING: /" >&2
6982 esac
6983 echo "$as_me:$LINENO: checking for $ac_header" >&5
6984 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6985 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6986 echo $ECHO_N "(cached) $ECHO_C" >&6
6987 else
6988 eval "$as_ac_Header=\$ac_header_preproc"
6990 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6991 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6994 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6995 cat >>confdefs.h <<_ACEOF
6996 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6997 _ACEOF
7001 done
7004 for ac_header in net/if.h
7006 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7007 echo "$as_me:$LINENO: checking for $ac_header" >&5
7008 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7009 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7010 echo $ECHO_N "(cached) $ECHO_C" >&6
7011 else
7012 cat >conftest.$ac_ext <<_ACEOF
7013 /* confdefs.h. */
7014 _ACEOF
7015 cat confdefs.h >>conftest.$ac_ext
7016 cat >>conftest.$ac_ext <<_ACEOF
7017 /* end confdefs.h. */
7018 $ac_includes_default
7019 #if HAVE_SYS_SOCKET_H
7020 #include <sys/socket.h>
7021 #endif
7023 #include <$ac_header>
7024 _ACEOF
7025 rm -f conftest.$ac_objext
7026 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7027 (eval $ac_compile) 2>conftest.er1
7028 ac_status=$?
7029 grep -v '^ *+' conftest.er1 >conftest.err
7030 rm -f conftest.er1
7031 cat conftest.err >&5
7032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7033 (exit $ac_status); } &&
7034 { ac_try='test -z "$ac_c_werror_flag"
7035 || test ! -s conftest.err'
7036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7037 (eval $ac_try) 2>&5
7038 ac_status=$?
7039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7040 (exit $ac_status); }; } &&
7041 { ac_try='test -s conftest.$ac_objext'
7042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7043 (eval $ac_try) 2>&5
7044 ac_status=$?
7045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7046 (exit $ac_status); }; }; then
7047 eval "$as_ac_Header=yes"
7048 else
7049 echo "$as_me: failed program was:" >&5
7050 sed 's/^/| /' conftest.$ac_ext >&5
7052 eval "$as_ac_Header=no"
7054 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7056 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7057 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7058 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7059 cat >>confdefs.h <<_ACEOF
7060 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7061 _ACEOF
7065 done
7068 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
7069 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
7070 if test "${ac_cv_struct_tm+set}" = set; then
7071 echo $ECHO_N "(cached) $ECHO_C" >&6
7072 else
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 <time.h>
7083 main ()
7085 struct tm *tp; tp->tm_sec;
7087 return 0;
7089 _ACEOF
7090 rm -f conftest.$ac_objext
7091 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7092 (eval $ac_compile) 2>conftest.er1
7093 ac_status=$?
7094 grep -v '^ *+' conftest.er1 >conftest.err
7095 rm -f conftest.er1
7096 cat conftest.err >&5
7097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7098 (exit $ac_status); } &&
7099 { ac_try='test -z "$ac_c_werror_flag"
7100 || test ! -s conftest.err'
7101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7102 (eval $ac_try) 2>&5
7103 ac_status=$?
7104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7105 (exit $ac_status); }; } &&
7106 { ac_try='test -s conftest.$ac_objext'
7107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7108 (eval $ac_try) 2>&5
7109 ac_status=$?
7110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7111 (exit $ac_status); }; }; then
7112 ac_cv_struct_tm=time.h
7113 else
7114 echo "$as_me: failed program was:" >&5
7115 sed 's/^/| /' conftest.$ac_ext >&5
7117 ac_cv_struct_tm=sys/time.h
7119 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7121 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
7122 echo "${ECHO_T}$ac_cv_struct_tm" >&6
7123 if test $ac_cv_struct_tm = sys/time.h; then
7125 cat >>confdefs.h <<\_ACEOF
7126 #define TM_IN_SYS_TIME 1
7127 _ACEOF
7131 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
7132 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
7133 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
7134 echo $ECHO_N "(cached) $ECHO_C" >&6
7135 else
7136 cat >conftest.$ac_ext <<_ACEOF
7137 /* confdefs.h. */
7138 _ACEOF
7139 cat confdefs.h >>conftest.$ac_ext
7140 cat >>conftest.$ac_ext <<_ACEOF
7141 /* end confdefs.h. */
7142 #include <sys/types.h>
7143 #include <$ac_cv_struct_tm>
7147 main ()
7149 static struct tm ac_aggr;
7150 if (ac_aggr.tm_zone)
7151 return 0;
7153 return 0;
7155 _ACEOF
7156 rm -f conftest.$ac_objext
7157 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7158 (eval $ac_compile) 2>conftest.er1
7159 ac_status=$?
7160 grep -v '^ *+' conftest.er1 >conftest.err
7161 rm -f conftest.er1
7162 cat conftest.err >&5
7163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7164 (exit $ac_status); } &&
7165 { ac_try='test -z "$ac_c_werror_flag"
7166 || test ! -s conftest.err'
7167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7168 (eval $ac_try) 2>&5
7169 ac_status=$?
7170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7171 (exit $ac_status); }; } &&
7172 { ac_try='test -s conftest.$ac_objext'
7173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7174 (eval $ac_try) 2>&5
7175 ac_status=$?
7176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7177 (exit $ac_status); }; }; then
7178 ac_cv_member_struct_tm_tm_zone=yes
7179 else
7180 echo "$as_me: failed program was:" >&5
7181 sed 's/^/| /' conftest.$ac_ext >&5
7183 cat >conftest.$ac_ext <<_ACEOF
7184 /* confdefs.h. */
7185 _ACEOF
7186 cat confdefs.h >>conftest.$ac_ext
7187 cat >>conftest.$ac_ext <<_ACEOF
7188 /* end confdefs.h. */
7189 #include <sys/types.h>
7190 #include <$ac_cv_struct_tm>
7194 main ()
7196 static struct tm ac_aggr;
7197 if (sizeof ac_aggr.tm_zone)
7198 return 0;
7200 return 0;
7202 _ACEOF
7203 rm -f conftest.$ac_objext
7204 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7205 (eval $ac_compile) 2>conftest.er1
7206 ac_status=$?
7207 grep -v '^ *+' conftest.er1 >conftest.err
7208 rm -f conftest.er1
7209 cat conftest.err >&5
7210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7211 (exit $ac_status); } &&
7212 { ac_try='test -z "$ac_c_werror_flag"
7213 || test ! -s conftest.err'
7214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7215 (eval $ac_try) 2>&5
7216 ac_status=$?
7217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7218 (exit $ac_status); }; } &&
7219 { ac_try='test -s conftest.$ac_objext'
7220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7221 (eval $ac_try) 2>&5
7222 ac_status=$?
7223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7224 (exit $ac_status); }; }; then
7225 ac_cv_member_struct_tm_tm_zone=yes
7226 else
7227 echo "$as_me: failed program was:" >&5
7228 sed 's/^/| /' conftest.$ac_ext >&5
7230 ac_cv_member_struct_tm_tm_zone=no
7232 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7234 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7236 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
7237 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
7238 if test $ac_cv_member_struct_tm_tm_zone = yes; then
7240 cat >>confdefs.h <<_ACEOF
7241 #define HAVE_STRUCT_TM_TM_ZONE 1
7242 _ACEOF
7247 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
7249 cat >>confdefs.h <<\_ACEOF
7250 #define HAVE_TM_ZONE 1
7251 _ACEOF
7253 else
7254 echo "$as_me:$LINENO: checking for tzname" >&5
7255 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
7256 if test "${ac_cv_var_tzname+set}" = set; then
7257 echo $ECHO_N "(cached) $ECHO_C" >&6
7258 else
7259 cat >conftest.$ac_ext <<_ACEOF
7260 /* confdefs.h. */
7261 _ACEOF
7262 cat confdefs.h >>conftest.$ac_ext
7263 cat >>conftest.$ac_ext <<_ACEOF
7264 /* end confdefs.h. */
7265 #include <time.h>
7266 #ifndef tzname /* For SGI. */
7267 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
7268 #endif
7271 main ()
7273 atoi(*tzname);
7275 return 0;
7277 _ACEOF
7278 rm -f conftest.$ac_objext conftest$ac_exeext
7279 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7280 (eval $ac_link) 2>conftest.er1
7281 ac_status=$?
7282 grep -v '^ *+' conftest.er1 >conftest.err
7283 rm -f conftest.er1
7284 cat conftest.err >&5
7285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7286 (exit $ac_status); } &&
7287 { ac_try='test -z "$ac_c_werror_flag"
7288 || test ! -s conftest.err'
7289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7290 (eval $ac_try) 2>&5
7291 ac_status=$?
7292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7293 (exit $ac_status); }; } &&
7294 { ac_try='test -s conftest$ac_exeext'
7295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7296 (eval $ac_try) 2>&5
7297 ac_status=$?
7298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7299 (exit $ac_status); }; }; then
7300 ac_cv_var_tzname=yes
7301 else
7302 echo "$as_me: failed program was:" >&5
7303 sed 's/^/| /' conftest.$ac_ext >&5
7305 ac_cv_var_tzname=no
7307 rm -f conftest.err conftest.$ac_objext \
7308 conftest$ac_exeext conftest.$ac_ext
7310 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
7311 echo "${ECHO_T}$ac_cv_var_tzname" >&6
7312 if test $ac_cv_var_tzname = yes; then
7314 cat >>confdefs.h <<\_ACEOF
7315 #define HAVE_TZNAME 1
7316 _ACEOF
7321 echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
7322 echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6
7323 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
7324 echo $ECHO_N "(cached) $ECHO_C" >&6
7325 else
7326 cat >conftest.$ac_ext <<_ACEOF
7327 /* confdefs.h. */
7328 _ACEOF
7329 cat confdefs.h >>conftest.$ac_ext
7330 cat >>conftest.$ac_ext <<_ACEOF
7331 /* end confdefs.h. */
7332 #include <time.h>
7335 main ()
7337 static struct tm ac_aggr;
7338 if (ac_aggr.tm_gmtoff)
7339 return 0;
7341 return 0;
7343 _ACEOF
7344 rm -f conftest.$ac_objext
7345 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7346 (eval $ac_compile) 2>conftest.er1
7347 ac_status=$?
7348 grep -v '^ *+' conftest.er1 >conftest.err
7349 rm -f conftest.er1
7350 cat conftest.err >&5
7351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7352 (exit $ac_status); } &&
7353 { ac_try='test -z "$ac_c_werror_flag"
7354 || test ! -s conftest.err'
7355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7356 (eval $ac_try) 2>&5
7357 ac_status=$?
7358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7359 (exit $ac_status); }; } &&
7360 { ac_try='test -s conftest.$ac_objext'
7361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7362 (eval $ac_try) 2>&5
7363 ac_status=$?
7364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7365 (exit $ac_status); }; }; then
7366 ac_cv_member_struct_tm_tm_gmtoff=yes
7367 else
7368 echo "$as_me: failed program was:" >&5
7369 sed 's/^/| /' conftest.$ac_ext >&5
7371 cat >conftest.$ac_ext <<_ACEOF
7372 /* confdefs.h. */
7373 _ACEOF
7374 cat confdefs.h >>conftest.$ac_ext
7375 cat >>conftest.$ac_ext <<_ACEOF
7376 /* end confdefs.h. */
7377 #include <time.h>
7380 main ()
7382 static struct tm ac_aggr;
7383 if (sizeof ac_aggr.tm_gmtoff)
7384 return 0;
7386 return 0;
7388 _ACEOF
7389 rm -f conftest.$ac_objext
7390 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7391 (eval $ac_compile) 2>conftest.er1
7392 ac_status=$?
7393 grep -v '^ *+' conftest.er1 >conftest.err
7394 rm -f conftest.er1
7395 cat conftest.err >&5
7396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7397 (exit $ac_status); } &&
7398 { ac_try='test -z "$ac_c_werror_flag"
7399 || test ! -s conftest.err'
7400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7401 (eval $ac_try) 2>&5
7402 ac_status=$?
7403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7404 (exit $ac_status); }; } &&
7405 { ac_try='test -s conftest.$ac_objext'
7406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7407 (eval $ac_try) 2>&5
7408 ac_status=$?
7409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7410 (exit $ac_status); }; }; then
7411 ac_cv_member_struct_tm_tm_gmtoff=yes
7412 else
7413 echo "$as_me: failed program was:" >&5
7414 sed 's/^/| /' conftest.$ac_ext >&5
7416 ac_cv_member_struct_tm_tm_gmtoff=no
7418 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7420 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7422 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
7423 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6
7424 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
7426 cat >>confdefs.h <<\_ACEOF
7427 #define HAVE_TM_GMTOFF 1
7428 _ACEOF
7432 echo "$as_me:$LINENO: checking for struct ifreq.ifr_flags" >&5
7433 echo $ECHO_N "checking for struct ifreq.ifr_flags... $ECHO_C" >&6
7434 if test "${ac_cv_member_struct_ifreq_ifr_flags+set}" = set; then
7435 echo $ECHO_N "(cached) $ECHO_C" >&6
7436 else
7437 cat >conftest.$ac_ext <<_ACEOF
7438 /* confdefs.h. */
7439 _ACEOF
7440 cat confdefs.h >>conftest.$ac_ext
7441 cat >>conftest.$ac_ext <<_ACEOF
7442 /* end confdefs.h. */
7443 $ac_includes_default
7444 #if HAVE_SYS_SOCKET_H
7445 #include <sys/socket.h>
7446 #endif
7447 #if HAVE_NET_IF_H
7448 #include <net/if.h>
7449 #endif
7452 main ()
7454 static struct ifreq ac_aggr;
7455 if (ac_aggr.ifr_flags)
7456 return 0;
7458 return 0;
7460 _ACEOF
7461 rm -f conftest.$ac_objext
7462 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7463 (eval $ac_compile) 2>conftest.er1
7464 ac_status=$?
7465 grep -v '^ *+' conftest.er1 >conftest.err
7466 rm -f conftest.er1
7467 cat conftest.err >&5
7468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7469 (exit $ac_status); } &&
7470 { ac_try='test -z "$ac_c_werror_flag"
7471 || test ! -s conftest.err'
7472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7473 (eval $ac_try) 2>&5
7474 ac_status=$?
7475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7476 (exit $ac_status); }; } &&
7477 { ac_try='test -s conftest.$ac_objext'
7478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7479 (eval $ac_try) 2>&5
7480 ac_status=$?
7481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7482 (exit $ac_status); }; }; then
7483 ac_cv_member_struct_ifreq_ifr_flags=yes
7484 else
7485 echo "$as_me: failed program was:" >&5
7486 sed 's/^/| /' conftest.$ac_ext >&5
7488 cat >conftest.$ac_ext <<_ACEOF
7489 /* confdefs.h. */
7490 _ACEOF
7491 cat confdefs.h >>conftest.$ac_ext
7492 cat >>conftest.$ac_ext <<_ACEOF
7493 /* end confdefs.h. */
7494 $ac_includes_default
7495 #if HAVE_SYS_SOCKET_H
7496 #include <sys/socket.h>
7497 #endif
7498 #if HAVE_NET_IF_H
7499 #include <net/if.h>
7500 #endif
7503 main ()
7505 static struct ifreq ac_aggr;
7506 if (sizeof ac_aggr.ifr_flags)
7507 return 0;
7509 return 0;
7511 _ACEOF
7512 rm -f conftest.$ac_objext
7513 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7514 (eval $ac_compile) 2>conftest.er1
7515 ac_status=$?
7516 grep -v '^ *+' conftest.er1 >conftest.err
7517 rm -f conftest.er1
7518 cat conftest.err >&5
7519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7520 (exit $ac_status); } &&
7521 { ac_try='test -z "$ac_c_werror_flag"
7522 || test ! -s conftest.err'
7523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7524 (eval $ac_try) 2>&5
7525 ac_status=$?
7526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7527 (exit $ac_status); }; } &&
7528 { ac_try='test -s conftest.$ac_objext'
7529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7530 (eval $ac_try) 2>&5
7531 ac_status=$?
7532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7533 (exit $ac_status); }; }; then
7534 ac_cv_member_struct_ifreq_ifr_flags=yes
7535 else
7536 echo "$as_me: failed program was:" >&5
7537 sed 's/^/| /' conftest.$ac_ext >&5
7539 ac_cv_member_struct_ifreq_ifr_flags=no
7541 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7543 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7545 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_flags" >&5
7546 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_flags" >&6
7547 if test $ac_cv_member_struct_ifreq_ifr_flags = yes; then
7549 cat >>confdefs.h <<_ACEOF
7550 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
7551 _ACEOF
7555 echo "$as_me:$LINENO: checking for struct ifreq.ifr_hwaddr" >&5
7556 echo $ECHO_N "checking for struct ifreq.ifr_hwaddr... $ECHO_C" >&6
7557 if test "${ac_cv_member_struct_ifreq_ifr_hwaddr+set}" = set; then
7558 echo $ECHO_N "(cached) $ECHO_C" >&6
7559 else
7560 cat >conftest.$ac_ext <<_ACEOF
7561 /* confdefs.h. */
7562 _ACEOF
7563 cat confdefs.h >>conftest.$ac_ext
7564 cat >>conftest.$ac_ext <<_ACEOF
7565 /* end confdefs.h. */
7566 $ac_includes_default
7567 #if HAVE_SYS_SOCKET_H
7568 #include <sys/socket.h>
7569 #endif
7570 #if HAVE_NET_IF_H
7571 #include <net/if.h>
7572 #endif
7575 main ()
7577 static struct ifreq ac_aggr;
7578 if (ac_aggr.ifr_hwaddr)
7579 return 0;
7581 return 0;
7583 _ACEOF
7584 rm -f conftest.$ac_objext
7585 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7586 (eval $ac_compile) 2>conftest.er1
7587 ac_status=$?
7588 grep -v '^ *+' conftest.er1 >conftest.err
7589 rm -f conftest.er1
7590 cat conftest.err >&5
7591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7592 (exit $ac_status); } &&
7593 { ac_try='test -z "$ac_c_werror_flag"
7594 || test ! -s conftest.err'
7595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7596 (eval $ac_try) 2>&5
7597 ac_status=$?
7598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7599 (exit $ac_status); }; } &&
7600 { ac_try='test -s conftest.$ac_objext'
7601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7602 (eval $ac_try) 2>&5
7603 ac_status=$?
7604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7605 (exit $ac_status); }; }; then
7606 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
7607 else
7608 echo "$as_me: failed program was:" >&5
7609 sed 's/^/| /' conftest.$ac_ext >&5
7611 cat >conftest.$ac_ext <<_ACEOF
7612 /* confdefs.h. */
7613 _ACEOF
7614 cat confdefs.h >>conftest.$ac_ext
7615 cat >>conftest.$ac_ext <<_ACEOF
7616 /* end confdefs.h. */
7617 $ac_includes_default
7618 #if HAVE_SYS_SOCKET_H
7619 #include <sys/socket.h>
7620 #endif
7621 #if HAVE_NET_IF_H
7622 #include <net/if.h>
7623 #endif
7626 main ()
7628 static struct ifreq ac_aggr;
7629 if (sizeof ac_aggr.ifr_hwaddr)
7630 return 0;
7632 return 0;
7634 _ACEOF
7635 rm -f conftest.$ac_objext
7636 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7637 (eval $ac_compile) 2>conftest.er1
7638 ac_status=$?
7639 grep -v '^ *+' conftest.er1 >conftest.err
7640 rm -f conftest.er1
7641 cat conftest.err >&5
7642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7643 (exit $ac_status); } &&
7644 { ac_try='test -z "$ac_c_werror_flag"
7645 || test ! -s conftest.err'
7646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7647 (eval $ac_try) 2>&5
7648 ac_status=$?
7649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7650 (exit $ac_status); }; } &&
7651 { ac_try='test -s conftest.$ac_objext'
7652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7653 (eval $ac_try) 2>&5
7654 ac_status=$?
7655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7656 (exit $ac_status); }; }; then
7657 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
7658 else
7659 echo "$as_me: failed program was:" >&5
7660 sed 's/^/| /' conftest.$ac_ext >&5
7662 ac_cv_member_struct_ifreq_ifr_hwaddr=no
7664 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7666 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7668 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_hwaddr" >&5
7669 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_hwaddr" >&6
7670 if test $ac_cv_member_struct_ifreq_ifr_hwaddr = yes; then
7672 cat >>confdefs.h <<_ACEOF
7673 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
7674 _ACEOF
7678 echo "$as_me:$LINENO: checking for struct ifreq.ifr_netmask" >&5
7679 echo $ECHO_N "checking for struct ifreq.ifr_netmask... $ECHO_C" >&6
7680 if test "${ac_cv_member_struct_ifreq_ifr_netmask+set}" = set; then
7681 echo $ECHO_N "(cached) $ECHO_C" >&6
7682 else
7683 cat >conftest.$ac_ext <<_ACEOF
7684 /* confdefs.h. */
7685 _ACEOF
7686 cat confdefs.h >>conftest.$ac_ext
7687 cat >>conftest.$ac_ext <<_ACEOF
7688 /* end confdefs.h. */
7689 $ac_includes_default
7690 #if HAVE_SYS_SOCKET_H
7691 #include <sys/socket.h>
7692 #endif
7693 #if HAVE_NET_IF_H
7694 #include <net/if.h>
7695 #endif
7698 main ()
7700 static struct ifreq ac_aggr;
7701 if (ac_aggr.ifr_netmask)
7702 return 0;
7704 return 0;
7706 _ACEOF
7707 rm -f conftest.$ac_objext
7708 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7709 (eval $ac_compile) 2>conftest.er1
7710 ac_status=$?
7711 grep -v '^ *+' conftest.er1 >conftest.err
7712 rm -f conftest.er1
7713 cat conftest.err >&5
7714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7715 (exit $ac_status); } &&
7716 { ac_try='test -z "$ac_c_werror_flag"
7717 || test ! -s conftest.err'
7718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7719 (eval $ac_try) 2>&5
7720 ac_status=$?
7721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7722 (exit $ac_status); }; } &&
7723 { ac_try='test -s conftest.$ac_objext'
7724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7725 (eval $ac_try) 2>&5
7726 ac_status=$?
7727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7728 (exit $ac_status); }; }; then
7729 ac_cv_member_struct_ifreq_ifr_netmask=yes
7730 else
7731 echo "$as_me: failed program was:" >&5
7732 sed 's/^/| /' conftest.$ac_ext >&5
7734 cat >conftest.$ac_ext <<_ACEOF
7735 /* confdefs.h. */
7736 _ACEOF
7737 cat confdefs.h >>conftest.$ac_ext
7738 cat >>conftest.$ac_ext <<_ACEOF
7739 /* end confdefs.h. */
7740 $ac_includes_default
7741 #if HAVE_SYS_SOCKET_H
7742 #include <sys/socket.h>
7743 #endif
7744 #if HAVE_NET_IF_H
7745 #include <net/if.h>
7746 #endif
7749 main ()
7751 static struct ifreq ac_aggr;
7752 if (sizeof ac_aggr.ifr_netmask)
7753 return 0;
7755 return 0;
7757 _ACEOF
7758 rm -f conftest.$ac_objext
7759 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7760 (eval $ac_compile) 2>conftest.er1
7761 ac_status=$?
7762 grep -v '^ *+' conftest.er1 >conftest.err
7763 rm -f conftest.er1
7764 cat conftest.err >&5
7765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7766 (exit $ac_status); } &&
7767 { ac_try='test -z "$ac_c_werror_flag"
7768 || test ! -s conftest.err'
7769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7770 (eval $ac_try) 2>&5
7771 ac_status=$?
7772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7773 (exit $ac_status); }; } &&
7774 { ac_try='test -s conftest.$ac_objext'
7775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7776 (eval $ac_try) 2>&5
7777 ac_status=$?
7778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7779 (exit $ac_status); }; }; then
7780 ac_cv_member_struct_ifreq_ifr_netmask=yes
7781 else
7782 echo "$as_me: failed program was:" >&5
7783 sed 's/^/| /' conftest.$ac_ext >&5
7785 ac_cv_member_struct_ifreq_ifr_netmask=no
7787 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7789 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7791 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_netmask" >&5
7792 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_netmask" >&6
7793 if test $ac_cv_member_struct_ifreq_ifr_netmask = yes; then
7795 cat >>confdefs.h <<_ACEOF
7796 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
7797 _ACEOF
7801 echo "$as_me:$LINENO: checking for struct ifreq.ifr_broadaddr" >&5
7802 echo $ECHO_N "checking for struct ifreq.ifr_broadaddr... $ECHO_C" >&6
7803 if test "${ac_cv_member_struct_ifreq_ifr_broadaddr+set}" = set; then
7804 echo $ECHO_N "(cached) $ECHO_C" >&6
7805 else
7806 cat >conftest.$ac_ext <<_ACEOF
7807 /* confdefs.h. */
7808 _ACEOF
7809 cat confdefs.h >>conftest.$ac_ext
7810 cat >>conftest.$ac_ext <<_ACEOF
7811 /* end confdefs.h. */
7812 $ac_includes_default
7813 #if HAVE_SYS_SOCKET_H
7814 #include <sys/socket.h>
7815 #endif
7816 #if HAVE_NET_IF_H
7817 #include <net/if.h>
7818 #endif
7821 main ()
7823 static struct ifreq ac_aggr;
7824 if (ac_aggr.ifr_broadaddr)
7825 return 0;
7827 return 0;
7829 _ACEOF
7830 rm -f conftest.$ac_objext
7831 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7832 (eval $ac_compile) 2>conftest.er1
7833 ac_status=$?
7834 grep -v '^ *+' conftest.er1 >conftest.err
7835 rm -f conftest.er1
7836 cat conftest.err >&5
7837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7838 (exit $ac_status); } &&
7839 { ac_try='test -z "$ac_c_werror_flag"
7840 || test ! -s conftest.err'
7841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7842 (eval $ac_try) 2>&5
7843 ac_status=$?
7844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7845 (exit $ac_status); }; } &&
7846 { ac_try='test -s conftest.$ac_objext'
7847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7848 (eval $ac_try) 2>&5
7849 ac_status=$?
7850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7851 (exit $ac_status); }; }; then
7852 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
7853 else
7854 echo "$as_me: failed program was:" >&5
7855 sed 's/^/| /' conftest.$ac_ext >&5
7857 cat >conftest.$ac_ext <<_ACEOF
7858 /* confdefs.h. */
7859 _ACEOF
7860 cat confdefs.h >>conftest.$ac_ext
7861 cat >>conftest.$ac_ext <<_ACEOF
7862 /* end confdefs.h. */
7863 $ac_includes_default
7864 #if HAVE_SYS_SOCKET_H
7865 #include <sys/socket.h>
7866 #endif
7867 #if HAVE_NET_IF_H
7868 #include <net/if.h>
7869 #endif
7872 main ()
7874 static struct ifreq ac_aggr;
7875 if (sizeof ac_aggr.ifr_broadaddr)
7876 return 0;
7878 return 0;
7880 _ACEOF
7881 rm -f conftest.$ac_objext
7882 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7883 (eval $ac_compile) 2>conftest.er1
7884 ac_status=$?
7885 grep -v '^ *+' conftest.er1 >conftest.err
7886 rm -f conftest.er1
7887 cat conftest.err >&5
7888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7889 (exit $ac_status); } &&
7890 { ac_try='test -z "$ac_c_werror_flag"
7891 || test ! -s conftest.err'
7892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7893 (eval $ac_try) 2>&5
7894 ac_status=$?
7895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7896 (exit $ac_status); }; } &&
7897 { ac_try='test -s conftest.$ac_objext'
7898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7899 (eval $ac_try) 2>&5
7900 ac_status=$?
7901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7902 (exit $ac_status); }; }; then
7903 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
7904 else
7905 echo "$as_me: failed program was:" >&5
7906 sed 's/^/| /' conftest.$ac_ext >&5
7908 ac_cv_member_struct_ifreq_ifr_broadaddr=no
7910 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7912 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7914 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_broadaddr" >&5
7915 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_broadaddr" >&6
7916 if test $ac_cv_member_struct_ifreq_ifr_broadaddr = yes; then
7918 cat >>confdefs.h <<_ACEOF
7919 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
7920 _ACEOF
7924 echo "$as_me:$LINENO: checking for struct ifreq.ifr_addr" >&5
7925 echo $ECHO_N "checking for struct ifreq.ifr_addr... $ECHO_C" >&6
7926 if test "${ac_cv_member_struct_ifreq_ifr_addr+set}" = set; then
7927 echo $ECHO_N "(cached) $ECHO_C" >&6
7928 else
7929 cat >conftest.$ac_ext <<_ACEOF
7930 /* confdefs.h. */
7931 _ACEOF
7932 cat confdefs.h >>conftest.$ac_ext
7933 cat >>conftest.$ac_ext <<_ACEOF
7934 /* end confdefs.h. */
7935 $ac_includes_default
7936 #if HAVE_SYS_SOCKET_H
7937 #include <sys/socket.h>
7938 #endif
7939 #if HAVE_NET_IF_H
7940 #include <net/if.h>
7941 #endif
7944 main ()
7946 static struct ifreq ac_aggr;
7947 if (ac_aggr.ifr_addr)
7948 return 0;
7950 return 0;
7952 _ACEOF
7953 rm -f conftest.$ac_objext
7954 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7955 (eval $ac_compile) 2>conftest.er1
7956 ac_status=$?
7957 grep -v '^ *+' conftest.er1 >conftest.err
7958 rm -f conftest.er1
7959 cat conftest.err >&5
7960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7961 (exit $ac_status); } &&
7962 { ac_try='test -z "$ac_c_werror_flag"
7963 || test ! -s conftest.err'
7964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7965 (eval $ac_try) 2>&5
7966 ac_status=$?
7967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7968 (exit $ac_status); }; } &&
7969 { ac_try='test -s conftest.$ac_objext'
7970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7971 (eval $ac_try) 2>&5
7972 ac_status=$?
7973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7974 (exit $ac_status); }; }; then
7975 ac_cv_member_struct_ifreq_ifr_addr=yes
7976 else
7977 echo "$as_me: failed program was:" >&5
7978 sed 's/^/| /' conftest.$ac_ext >&5
7980 cat >conftest.$ac_ext <<_ACEOF
7981 /* confdefs.h. */
7982 _ACEOF
7983 cat confdefs.h >>conftest.$ac_ext
7984 cat >>conftest.$ac_ext <<_ACEOF
7985 /* end confdefs.h. */
7986 $ac_includes_default
7987 #if HAVE_SYS_SOCKET_H
7988 #include <sys/socket.h>
7989 #endif
7990 #if HAVE_NET_IF_H
7991 #include <net/if.h>
7992 #endif
7995 main ()
7997 static struct ifreq ac_aggr;
7998 if (sizeof ac_aggr.ifr_addr)
7999 return 0;
8001 return 0;
8003 _ACEOF
8004 rm -f conftest.$ac_objext
8005 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8006 (eval $ac_compile) 2>conftest.er1
8007 ac_status=$?
8008 grep -v '^ *+' conftest.er1 >conftest.err
8009 rm -f conftest.er1
8010 cat conftest.err >&5
8011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8012 (exit $ac_status); } &&
8013 { ac_try='test -z "$ac_c_werror_flag"
8014 || test ! -s conftest.err'
8015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8016 (eval $ac_try) 2>&5
8017 ac_status=$?
8018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8019 (exit $ac_status); }; } &&
8020 { ac_try='test -s conftest.$ac_objext'
8021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8022 (eval $ac_try) 2>&5
8023 ac_status=$?
8024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8025 (exit $ac_status); }; }; then
8026 ac_cv_member_struct_ifreq_ifr_addr=yes
8027 else
8028 echo "$as_me: failed program was:" >&5
8029 sed 's/^/| /' conftest.$ac_ext >&5
8031 ac_cv_member_struct_ifreq_ifr_addr=no
8033 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8035 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8037 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_addr" >&5
8038 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_addr" >&6
8039 if test $ac_cv_member_struct_ifreq_ifr_addr = yes; then
8041 cat >>confdefs.h <<_ACEOF
8042 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
8043 _ACEOF
8050 echo "$as_me:$LINENO: checking for function prototypes" >&5
8051 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
8052 if test "$ac_cv_prog_cc_stdc" != no; then
8053 echo "$as_me:$LINENO: result: yes" >&5
8054 echo "${ECHO_T}yes" >&6
8056 cat >>confdefs.h <<\_ACEOF
8057 #define PROTOTYPES 1
8058 _ACEOF
8061 cat >>confdefs.h <<\_ACEOF
8062 #define __PROTOTYPES 1
8063 _ACEOF
8065 else
8066 echo "$as_me:$LINENO: result: no" >&5
8067 echo "${ECHO_T}no" >&6
8070 echo "$as_me:$LINENO: checking for working volatile" >&5
8071 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
8072 if test "${ac_cv_c_volatile+set}" = set; then
8073 echo $ECHO_N "(cached) $ECHO_C" >&6
8074 else
8075 cat >conftest.$ac_ext <<_ACEOF
8076 /* confdefs.h. */
8077 _ACEOF
8078 cat confdefs.h >>conftest.$ac_ext
8079 cat >>conftest.$ac_ext <<_ACEOF
8080 /* end confdefs.h. */
8083 main ()
8086 volatile int x;
8087 int * volatile y;
8089 return 0;
8091 _ACEOF
8092 rm -f conftest.$ac_objext
8093 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8094 (eval $ac_compile) 2>conftest.er1
8095 ac_status=$?
8096 grep -v '^ *+' conftest.er1 >conftest.err
8097 rm -f conftest.er1
8098 cat conftest.err >&5
8099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8100 (exit $ac_status); } &&
8101 { ac_try='test -z "$ac_c_werror_flag"
8102 || test ! -s conftest.err'
8103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8104 (eval $ac_try) 2>&5
8105 ac_status=$?
8106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8107 (exit $ac_status); }; } &&
8108 { ac_try='test -s conftest.$ac_objext'
8109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8110 (eval $ac_try) 2>&5
8111 ac_status=$?
8112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8113 (exit $ac_status); }; }; then
8114 ac_cv_c_volatile=yes
8115 else
8116 echo "$as_me: failed program was:" >&5
8117 sed 's/^/| /' conftest.$ac_ext >&5
8119 ac_cv_c_volatile=no
8121 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8123 echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
8124 echo "${ECHO_T}$ac_cv_c_volatile" >&6
8125 if test $ac_cv_c_volatile = no; then
8127 cat >>confdefs.h <<\_ACEOF
8128 #define volatile
8129 _ACEOF
8133 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8134 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
8135 if test "${ac_cv_c_const+set}" = set; then
8136 echo $ECHO_N "(cached) $ECHO_C" >&6
8137 else
8138 cat >conftest.$ac_ext <<_ACEOF
8139 /* confdefs.h. */
8140 _ACEOF
8141 cat confdefs.h >>conftest.$ac_ext
8142 cat >>conftest.$ac_ext <<_ACEOF
8143 /* end confdefs.h. */
8146 main ()
8148 /* FIXME: Include the comments suggested by Paul. */
8149 #ifndef __cplusplus
8150 /* Ultrix mips cc rejects this. */
8151 typedef int charset[2];
8152 const charset x;
8153 /* SunOS 4.1.1 cc rejects this. */
8154 char const *const *ccp;
8155 char **p;
8156 /* NEC SVR4.0.2 mips cc rejects this. */
8157 struct point {int x, y;};
8158 static struct point const zero = {0,0};
8159 /* AIX XL C 1.02.0.0 rejects this.
8160 It does not let you subtract one const X* pointer from another in
8161 an arm of an if-expression whose if-part is not a constant
8162 expression */
8163 const char *g = "string";
8164 ccp = &g + (g ? g-g : 0);
8165 /* HPUX 7.0 cc rejects these. */
8166 ++ccp;
8167 p = (char**) ccp;
8168 ccp = (char const *const *) p;
8169 { /* SCO 3.2v4 cc rejects this. */
8170 char *t;
8171 char const *s = 0 ? (char *) 0 : (char const *) 0;
8173 *t++ = 0;
8175 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8176 int x[] = {25, 17};
8177 const int *foo = &x[0];
8178 ++foo;
8180 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8181 typedef const int *iptr;
8182 iptr p = 0;
8183 ++p;
8185 { /* AIX XL C 1.02.0.0 rejects this saying
8186 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8187 struct s { int j; const int *ap[3]; };
8188 struct s *b; b->j = 5;
8190 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8191 const int foo = 10;
8193 #endif
8196 return 0;
8198 _ACEOF
8199 rm -f conftest.$ac_objext
8200 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8201 (eval $ac_compile) 2>conftest.er1
8202 ac_status=$?
8203 grep -v '^ *+' conftest.er1 >conftest.err
8204 rm -f conftest.er1
8205 cat conftest.err >&5
8206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8207 (exit $ac_status); } &&
8208 { ac_try='test -z "$ac_c_werror_flag"
8209 || test ! -s conftest.err'
8210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8211 (eval $ac_try) 2>&5
8212 ac_status=$?
8213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8214 (exit $ac_status); }; } &&
8215 { ac_try='test -s conftest.$ac_objext'
8216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8217 (eval $ac_try) 2>&5
8218 ac_status=$?
8219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8220 (exit $ac_status); }; }; then
8221 ac_cv_c_const=yes
8222 else
8223 echo "$as_me: failed program was:" >&5
8224 sed 's/^/| /' conftest.$ac_ext >&5
8226 ac_cv_c_const=no
8228 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8230 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8231 echo "${ECHO_T}$ac_cv_c_const" >&6
8232 if test $ac_cv_c_const = no; then
8234 cat >>confdefs.h <<\_ACEOF
8235 #define const
8236 _ACEOF
8240 echo "$as_me:$LINENO: checking for void * support" >&5
8241 echo $ECHO_N "checking for void * support... $ECHO_C" >&6
8242 if test "${emacs_cv_void_star+set}" = set; then
8243 echo $ECHO_N "(cached) $ECHO_C" >&6
8244 else
8245 cat >conftest.$ac_ext <<_ACEOF
8246 /* confdefs.h. */
8247 _ACEOF
8248 cat confdefs.h >>conftest.$ac_ext
8249 cat >>conftest.$ac_ext <<_ACEOF
8250 /* end confdefs.h. */
8253 main ()
8255 void * foo;
8257 return 0;
8259 _ACEOF
8260 rm -f conftest.$ac_objext
8261 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8262 (eval $ac_compile) 2>conftest.er1
8263 ac_status=$?
8264 grep -v '^ *+' conftest.er1 >conftest.err
8265 rm -f conftest.er1
8266 cat conftest.err >&5
8267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8268 (exit $ac_status); } &&
8269 { ac_try='test -z "$ac_c_werror_flag"
8270 || test ! -s conftest.err'
8271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8272 (eval $ac_try) 2>&5
8273 ac_status=$?
8274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8275 (exit $ac_status); }; } &&
8276 { ac_try='test -s conftest.$ac_objext'
8277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8278 (eval $ac_try) 2>&5
8279 ac_status=$?
8280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8281 (exit $ac_status); }; }; then
8282 emacs_cv_void_star=yes
8283 else
8284 echo "$as_me: failed program was:" >&5
8285 sed 's/^/| /' conftest.$ac_ext >&5
8287 emacs_cv_void_star=no
8289 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8291 echo "$as_me:$LINENO: result: $emacs_cv_void_star" >&5
8292 echo "${ECHO_T}$emacs_cv_void_star" >&6
8293 if test $emacs_cv_void_star = yes; then
8294 cat >>confdefs.h <<\_ACEOF
8295 #define POINTER_TYPE void
8296 _ACEOF
8298 else
8299 cat >>confdefs.h <<\_ACEOF
8300 #define POINTER_TYPE char
8301 _ACEOF
8309 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8310 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
8311 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
8312 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
8313 echo $ECHO_N "(cached) $ECHO_C" >&6
8314 else
8315 cat >conftest.make <<\_ACEOF
8316 all:
8317 @echo 'ac_maketemp="$(MAKE)"'
8318 _ACEOF
8319 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8320 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
8321 if test -n "$ac_maketemp"; then
8322 eval ac_cv_prog_make_${ac_make}_set=yes
8323 else
8324 eval ac_cv_prog_make_${ac_make}_set=no
8326 rm -f conftest.make
8328 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
8329 echo "$as_me:$LINENO: result: yes" >&5
8330 echo "${ECHO_T}yes" >&6
8331 SET_MAKE=
8332 else
8333 echo "$as_me:$LINENO: result: no" >&5
8334 echo "${ECHO_T}no" >&6
8335 SET_MAKE="MAKE=${MAKE-make}"
8339 echo "$as_me:$LINENO: checking for long file names" >&5
8340 echo $ECHO_N "checking for long file names... $ECHO_C" >&6
8341 if test "${ac_cv_sys_long_file_names+set}" = set; then
8342 echo $ECHO_N "(cached) $ECHO_C" >&6
8343 else
8344 ac_cv_sys_long_file_names=yes
8345 # Test for long file names in all the places we know might matter:
8346 # . the current directory, where building will happen
8347 # $prefix/lib where we will be installing things
8348 # $exec_prefix/lib likewise
8349 # eval it to expand exec_prefix.
8350 # $TMPDIR if set, where it might want to write temporary files
8351 # if $TMPDIR is not set:
8352 # /tmp where it might want to write temporary files
8353 # /var/tmp likewise
8354 # /usr/tmp likewise
8355 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
8356 ac_tmpdirs=$TMPDIR
8357 else
8358 ac_tmpdirs='/tmp /var/tmp /usr/tmp'
8360 for ac_dir in . $ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
8361 test -d $ac_dir || continue
8362 test -w $ac_dir || continue # It is less confusing to not echo anything here.
8363 ac_xdir=$ac_dir/cf$$
8364 (umask 077 && mkdir $ac_xdir 2>/dev/null) || continue
8365 ac_tf1=$ac_xdir/conftest9012345
8366 ac_tf2=$ac_xdir/conftest9012346
8367 (echo 1 >$ac_tf1) 2>/dev/null
8368 (echo 2 >$ac_tf2) 2>/dev/null
8369 ac_val=`cat $ac_tf1 2>/dev/null`
8370 if test ! -f $ac_tf1 || test "$ac_val" != 1; then
8371 ac_cv_sys_long_file_names=no
8372 rm -rf $ac_xdir 2>/dev/null
8373 break
8375 rm -rf $ac_xdir 2>/dev/null
8376 done
8378 echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
8379 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6
8380 if test $ac_cv_sys_long_file_names = yes; then
8382 cat >>confdefs.h <<\_ACEOF
8383 #define HAVE_LONG_FILE_NAMES 1
8384 _ACEOF
8389 #### Choose a window system.
8391 echo "$as_me:$LINENO: checking for X" >&5
8392 echo $ECHO_N "checking for X... $ECHO_C" >&6
8394 ac_path_x_has_been_run=yes
8396 # Check whether --with-x or --without-x was given.
8397 if test "${with_x+set}" = set; then
8398 withval="$with_x"
8401 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
8402 if test "x$with_x" = xno; then
8403 # The user explicitly disabled X.
8404 have_x=disabled
8405 else
8406 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
8407 # Both variables are already set.
8408 have_x=yes
8409 else
8410 if test "${ac_cv_have_x+set}" = set; then
8411 echo $ECHO_N "(cached) $ECHO_C" >&6
8412 else
8413 # One or both of the vars are not set, and there is no cached value.
8414 ac_x_includes=no ac_x_libraries=no
8415 rm -fr conftest.dir
8416 if mkdir conftest.dir; then
8417 cd conftest.dir
8418 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
8419 cat >Imakefile <<'_ACEOF'
8420 acfindx:
8421 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
8422 _ACEOF
8423 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
8424 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8425 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
8426 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
8427 for ac_extension in a so sl; do
8428 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
8429 test -f $ac_im_libdir/libX11.$ac_extension; then
8430 ac_im_usrlibdir=$ac_im_libdir; break
8432 done
8433 # Screen out bogus values from the imake configuration. They are
8434 # bogus both because they are the default anyway, and because
8435 # using them would break gcc on systems where it needs fixed includes.
8436 case $ac_im_incroot in
8437 /usr/include) ;;
8438 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
8439 esac
8440 case $ac_im_usrlibdir in
8441 /usr/lib | /lib) ;;
8442 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
8443 esac
8445 cd ..
8446 rm -fr conftest.dir
8449 # Standard set of common directories for X headers.
8450 # Check X11 before X11Rn because it is often a symlink to the current release.
8451 ac_x_header_dirs='
8452 /usr/X11/include
8453 /usr/X11R6/include
8454 /usr/X11R5/include
8455 /usr/X11R4/include
8457 /usr/include/X11
8458 /usr/include/X11R6
8459 /usr/include/X11R5
8460 /usr/include/X11R4
8462 /usr/local/X11/include
8463 /usr/local/X11R6/include
8464 /usr/local/X11R5/include
8465 /usr/local/X11R4/include
8467 /usr/local/include/X11
8468 /usr/local/include/X11R6
8469 /usr/local/include/X11R5
8470 /usr/local/include/X11R4
8472 /usr/X386/include
8473 /usr/x386/include
8474 /usr/XFree86/include/X11
8476 /usr/include
8477 /usr/local/include
8478 /usr/unsupported/include
8479 /usr/athena/include
8480 /usr/local/x11r5/include
8481 /usr/lpp/Xamples/include
8483 /usr/openwin/include
8484 /usr/openwin/share/include'
8486 if test "$ac_x_includes" = no; then
8487 # Guess where to find include files, by looking for a specified header file.
8488 # First, try using that file with no special directory specified.
8489 cat >conftest.$ac_ext <<_ACEOF
8490 /* confdefs.h. */
8491 _ACEOF
8492 cat confdefs.h >>conftest.$ac_ext
8493 cat >>conftest.$ac_ext <<_ACEOF
8494 /* end confdefs.h. */
8495 #include <X11/Intrinsic.h>
8496 _ACEOF
8497 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8498 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8499 ac_status=$?
8500 grep -v '^ *+' conftest.er1 >conftest.err
8501 rm -f conftest.er1
8502 cat conftest.err >&5
8503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8504 (exit $ac_status); } >/dev/null; then
8505 if test -s conftest.err; then
8506 ac_cpp_err=$ac_c_preproc_warn_flag
8507 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8508 else
8509 ac_cpp_err=
8511 else
8512 ac_cpp_err=yes
8514 if test -z "$ac_cpp_err"; then
8515 # We can compile using X headers with no special include directory.
8516 ac_x_includes=
8517 else
8518 echo "$as_me: failed program was:" >&5
8519 sed 's/^/| /' conftest.$ac_ext >&5
8521 for ac_dir in $ac_x_header_dirs; do
8522 if test -r "$ac_dir/X11/Intrinsic.h"; then
8523 ac_x_includes=$ac_dir
8524 break
8526 done
8528 rm -f conftest.err conftest.$ac_ext
8529 fi # $ac_x_includes = no
8531 if test "$ac_x_libraries" = no; then
8532 # Check for the libraries.
8533 # See if we find them without any special options.
8534 # Don't add to $LIBS permanently.
8535 ac_save_LIBS=$LIBS
8536 LIBS="-lXt $LIBS"
8537 cat >conftest.$ac_ext <<_ACEOF
8538 /* confdefs.h. */
8539 _ACEOF
8540 cat confdefs.h >>conftest.$ac_ext
8541 cat >>conftest.$ac_ext <<_ACEOF
8542 /* end confdefs.h. */
8543 #include <X11/Intrinsic.h>
8545 main ()
8547 XtMalloc (0)
8549 return 0;
8551 _ACEOF
8552 rm -f conftest.$ac_objext conftest$ac_exeext
8553 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8554 (eval $ac_link) 2>conftest.er1
8555 ac_status=$?
8556 grep -v '^ *+' conftest.er1 >conftest.err
8557 rm -f conftest.er1
8558 cat conftest.err >&5
8559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8560 (exit $ac_status); } &&
8561 { ac_try='test -z "$ac_c_werror_flag"
8562 || test ! -s conftest.err'
8563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8564 (eval $ac_try) 2>&5
8565 ac_status=$?
8566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8567 (exit $ac_status); }; } &&
8568 { ac_try='test -s conftest$ac_exeext'
8569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8570 (eval $ac_try) 2>&5
8571 ac_status=$?
8572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8573 (exit $ac_status); }; }; then
8574 LIBS=$ac_save_LIBS
8575 # We can link X programs with no special library path.
8576 ac_x_libraries=
8577 else
8578 echo "$as_me: failed program was:" >&5
8579 sed 's/^/| /' conftest.$ac_ext >&5
8581 LIBS=$ac_save_LIBS
8582 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
8584 # Don't even attempt the hair of trying to link an X program!
8585 for ac_extension in a so sl; do
8586 if test -r $ac_dir/libXt.$ac_extension; then
8587 ac_x_libraries=$ac_dir
8588 break 2
8590 done
8591 done
8593 rm -f conftest.err conftest.$ac_objext \
8594 conftest$ac_exeext conftest.$ac_ext
8595 fi # $ac_x_libraries = no
8597 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
8598 # Didn't find X anywhere. Cache the known absence of X.
8599 ac_cv_have_x="have_x=no"
8600 else
8601 # Record where we found X for the cache.
8602 ac_cv_have_x="have_x=yes \
8603 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
8608 eval "$ac_cv_have_x"
8609 fi # $with_x != no
8611 if test "$have_x" != yes; then
8612 echo "$as_me:$LINENO: result: $have_x" >&5
8613 echo "${ECHO_T}$have_x" >&6
8614 no_x=yes
8615 else
8616 # If each of the values was on the command line, it overrides each guess.
8617 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
8618 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
8619 # Update the cache value to reflect the command line values.
8620 ac_cv_have_x="have_x=yes \
8621 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
8622 # It might be that x_includes is empty (headers are found in the
8623 # standard search path. Then output the corresponding message
8624 ac_out_x_includes=$x_includes
8625 test "x$x_includes" = x && ac_out_x_includes="in standard search path"
8626 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $ac_out_x_includes" >&5
8627 echo "${ECHO_T}libraries $x_libraries, headers $ac_out_x_includes" >&6
8630 if test "$no_x" = yes; then
8631 window_system=none
8632 else
8633 window_system=x11
8636 if test "${x_libraries}" != NONE; then
8637 if test -n "${x_libraries}"; then
8638 LD_SWITCH_X_SITE=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
8639 LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
8641 x_default_search_path=""
8642 x_search_path=${x_libraries}
8643 if test -z "${x_search_path}"; then
8644 x_search_path=/usr/lib
8646 for x_library in `echo ${x_search_path}: | \
8647 sed -e "s/:/ /g" -e p -e "s:/lib[^ /]* :/share :g"`; do
8648 x_search_path="\
8649 ${x_library}/X11/%L/%T/%N%C%S:\
8650 ${x_library}/X11/%l/%T/%N%C%S:\
8651 ${x_library}/X11/%T/%N%C%S:\
8652 ${x_library}/X11/%L/%T/%N%S:\
8653 ${x_library}/X11/%l/%T/%N%S:\
8654 ${x_library}/X11/%T/%N%S"
8655 if test x"${x_default_search_path}" = x; then
8656 x_default_search_path=${x_search_path}
8657 else
8658 x_default_search_path="${x_search_path}:${x_default_search_path}"
8660 done
8662 if test "${x_includes}" != NONE && test -n "${x_includes}"; then
8663 C_SWITCH_X_SITE=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
8666 if test x"${x_includes}" = x; then
8667 bitmapdir=/usr/include/X11/bitmaps
8668 else
8669 # accumulate include directories that have X11 bitmap subdirectories
8670 bmd_acc="dummyval"
8671 for bmd in `echo ${x_includes} | sed -e "s/:/ /g"`; do
8672 if test -d "${bmd}/X11/bitmaps"; then
8673 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
8675 if test -d "${bmd}/bitmaps"; then
8676 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
8678 done
8679 if test ${bmd_acc} != "dummyval"; then
8680 bitmapdir=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
8684 HAVE_CARBON=no
8685 if test "${with_carbon}" != no; then
8686 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
8687 echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
8688 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6
8689 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
8690 echo $ECHO_N "(cached) $ECHO_C" >&6
8692 echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
8693 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6
8694 else
8695 # Is the header compilable?
8696 echo "$as_me:$LINENO: checking Carbon/Carbon.h usability" >&5
8697 echo $ECHO_N "checking Carbon/Carbon.h usability... $ECHO_C" >&6
8698 cat >conftest.$ac_ext <<_ACEOF
8699 /* confdefs.h. */
8700 _ACEOF
8701 cat confdefs.h >>conftest.$ac_ext
8702 cat >>conftest.$ac_ext <<_ACEOF
8703 /* end confdefs.h. */
8704 $ac_includes_default
8705 #include <Carbon/Carbon.h>
8706 _ACEOF
8707 rm -f conftest.$ac_objext
8708 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8709 (eval $ac_compile) 2>conftest.er1
8710 ac_status=$?
8711 grep -v '^ *+' conftest.er1 >conftest.err
8712 rm -f conftest.er1
8713 cat conftest.err >&5
8714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8715 (exit $ac_status); } &&
8716 { ac_try='test -z "$ac_c_werror_flag"
8717 || test ! -s conftest.err'
8718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8719 (eval $ac_try) 2>&5
8720 ac_status=$?
8721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8722 (exit $ac_status); }; } &&
8723 { ac_try='test -s conftest.$ac_objext'
8724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8725 (eval $ac_try) 2>&5
8726 ac_status=$?
8727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8728 (exit $ac_status); }; }; then
8729 ac_header_compiler=yes
8730 else
8731 echo "$as_me: failed program was:" >&5
8732 sed 's/^/| /' conftest.$ac_ext >&5
8734 ac_header_compiler=no
8736 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8737 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8738 echo "${ECHO_T}$ac_header_compiler" >&6
8740 # Is the header present?
8741 echo "$as_me:$LINENO: checking Carbon/Carbon.h presence" >&5
8742 echo $ECHO_N "checking Carbon/Carbon.h presence... $ECHO_C" >&6
8743 cat >conftest.$ac_ext <<_ACEOF
8744 /* confdefs.h. */
8745 _ACEOF
8746 cat confdefs.h >>conftest.$ac_ext
8747 cat >>conftest.$ac_ext <<_ACEOF
8748 /* end confdefs.h. */
8749 #include <Carbon/Carbon.h>
8750 _ACEOF
8751 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8752 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8753 ac_status=$?
8754 grep -v '^ *+' conftest.er1 >conftest.err
8755 rm -f conftest.er1
8756 cat conftest.err >&5
8757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8758 (exit $ac_status); } >/dev/null; then
8759 if test -s conftest.err; then
8760 ac_cpp_err=$ac_c_preproc_warn_flag
8761 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8762 else
8763 ac_cpp_err=
8765 else
8766 ac_cpp_err=yes
8768 if test -z "$ac_cpp_err"; then
8769 ac_header_preproc=yes
8770 else
8771 echo "$as_me: failed program was:" >&5
8772 sed 's/^/| /' conftest.$ac_ext >&5
8774 ac_header_preproc=no
8776 rm -f conftest.err conftest.$ac_ext
8777 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8778 echo "${ECHO_T}$ac_header_preproc" >&6
8780 # So? What about this header?
8781 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8782 yes:no: )
8783 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&5
8784 echo "$as_me: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8785 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&5
8786 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&2;}
8787 ac_header_preproc=yes
8789 no:yes:* )
8790 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&5
8791 echo "$as_me: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&2;}
8792 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&5
8793 echo "$as_me: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&2;}
8794 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&5
8795 echo "$as_me: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&2;}
8796 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&5
8797 echo "$as_me: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&2;}
8798 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5
8799 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;}
8800 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&5
8801 echo "$as_me: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&2;}
8803 cat <<\_ASBOX
8804 ## ------------------------------------------ ##
8805 ## Report this to the AC_PACKAGE_NAME lists. ##
8806 ## ------------------------------------------ ##
8807 _ASBOX
8809 sed "s/^/$as_me: WARNING: /" >&2
8811 esac
8812 echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
8813 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6
8814 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
8815 echo $ECHO_N "(cached) $ECHO_C" >&6
8816 else
8817 ac_cv_header_Carbon_Carbon_h=$ac_header_preproc
8819 echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
8820 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6
8823 if test $ac_cv_header_Carbon_Carbon_h = yes; then
8824 HAVE_CARBON=yes
8829 if test "${window_system}" = x11 && test "${HAVE_CARBON}" = yes; then
8830 if test "${with_carbon+set}" != set \
8831 && test "${carbon_appdir_x+set}" != set; then
8832 for var in with_x with_x_toolkit with_gtk with_xim \
8833 with_xpm with_jpeg with_tiff with_gif with_png; do
8834 if eval test \"\${$var+set}\" = set; then
8835 HAVE_CARBON=no
8836 break
8838 done
8841 if test "${HAVE_CARBON}" = yes; then
8842 window_system=mac
8845 case "${window_system}" in
8846 x11 )
8847 HAVE_X_WINDOWS=yes
8848 HAVE_X11=yes
8849 case "${with_x_toolkit}" in
8850 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
8851 motif ) USE_X_TOOLKIT=MOTIF ;;
8852 gtk ) with_gtk=yes
8853 USE_X_TOOLKIT=none ;;
8854 no ) USE_X_TOOLKIT=none ;;
8855 * ) USE_X_TOOLKIT=maybe ;;
8856 esac
8858 mac | none )
8859 HAVE_X_WINDOWS=no
8860 HAVE_X11=no
8861 USE_X_TOOLKIT=none
8863 esac
8865 ### If we're using X11, we should use the X menu package.
8866 HAVE_MENUS=no
8867 case ${HAVE_X11} in
8868 yes ) HAVE_MENUS=yes ;;
8869 esac
8871 if test "${opsys}" = "hpux9"; then
8872 case "${x_libraries}" in
8873 *X11R4* )
8874 opsysfile="s/hpux9-x11r4.h"
8876 esac
8879 if test "${opsys}" = "hpux9shr"; then
8880 case "${x_libraries}" in
8881 *X11R4* )
8882 opsysfile="s/hpux9shxr4.h"
8884 esac
8887 ### Compute the unexec source name from the object name.
8888 UNEXEC_SRC="`echo ${unexec} | sed 's/\.o/.c/'`"
8890 # Do the opsystem or machine files prohibit the use of the GNU malloc?
8891 # Assume not, until told otherwise.
8892 GNU_MALLOC=yes
8893 doug_lea_malloc=yes
8894 echo "$as_me:$LINENO: checking for malloc_get_state" >&5
8895 echo $ECHO_N "checking for malloc_get_state... $ECHO_C" >&6
8896 if test "${ac_cv_func_malloc_get_state+set}" = set; then
8897 echo $ECHO_N "(cached) $ECHO_C" >&6
8898 else
8899 cat >conftest.$ac_ext <<_ACEOF
8900 /* confdefs.h. */
8901 _ACEOF
8902 cat confdefs.h >>conftest.$ac_ext
8903 cat >>conftest.$ac_ext <<_ACEOF
8904 /* end confdefs.h. */
8905 /* Define malloc_get_state to an innocuous variant, in case <limits.h> declares malloc_get_state.
8906 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8907 #define malloc_get_state innocuous_malloc_get_state
8909 /* System header to define __stub macros and hopefully few prototypes,
8910 which can conflict with char malloc_get_state (); below.
8911 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8912 <limits.h> exists even on freestanding compilers. */
8914 #ifdef __STDC__
8915 # include <limits.h>
8916 #else
8917 # include <assert.h>
8918 #endif
8920 #undef malloc_get_state
8922 /* Override any gcc2 internal prototype to avoid an error. */
8923 #ifdef __cplusplus
8924 extern "C"
8926 #endif
8927 /* We use char because int might match the return type of a gcc2
8928 builtin and then its argument prototype would still apply. */
8929 char malloc_get_state ();
8930 /* The GNU C library defines this for functions which it implements
8931 to always fail with ENOSYS. Some functions are actually named
8932 something starting with __ and the normal name is an alias. */
8933 #if defined (__stub_malloc_get_state) || defined (__stub___malloc_get_state)
8934 choke me
8935 #else
8936 char (*f) () = malloc_get_state;
8937 #endif
8938 #ifdef __cplusplus
8940 #endif
8943 main ()
8945 return f != malloc_get_state;
8947 return 0;
8949 _ACEOF
8950 rm -f conftest.$ac_objext conftest$ac_exeext
8951 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8952 (eval $ac_link) 2>conftest.er1
8953 ac_status=$?
8954 grep -v '^ *+' conftest.er1 >conftest.err
8955 rm -f conftest.er1
8956 cat conftest.err >&5
8957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8958 (exit $ac_status); } &&
8959 { ac_try='test -z "$ac_c_werror_flag"
8960 || test ! -s conftest.err'
8961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8962 (eval $ac_try) 2>&5
8963 ac_status=$?
8964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8965 (exit $ac_status); }; } &&
8966 { ac_try='test -s conftest$ac_exeext'
8967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8968 (eval $ac_try) 2>&5
8969 ac_status=$?
8970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8971 (exit $ac_status); }; }; then
8972 ac_cv_func_malloc_get_state=yes
8973 else
8974 echo "$as_me: failed program was:" >&5
8975 sed 's/^/| /' conftest.$ac_ext >&5
8977 ac_cv_func_malloc_get_state=no
8979 rm -f conftest.err conftest.$ac_objext \
8980 conftest$ac_exeext conftest.$ac_ext
8982 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_get_state" >&5
8983 echo "${ECHO_T}$ac_cv_func_malloc_get_state" >&6
8984 if test $ac_cv_func_malloc_get_state = yes; then
8986 else
8987 doug_lea_malloc=no
8990 echo "$as_me:$LINENO: checking for malloc_set_state" >&5
8991 echo $ECHO_N "checking for malloc_set_state... $ECHO_C" >&6
8992 if test "${ac_cv_func_malloc_set_state+set}" = set; then
8993 echo $ECHO_N "(cached) $ECHO_C" >&6
8994 else
8995 cat >conftest.$ac_ext <<_ACEOF
8996 /* confdefs.h. */
8997 _ACEOF
8998 cat confdefs.h >>conftest.$ac_ext
8999 cat >>conftest.$ac_ext <<_ACEOF
9000 /* end confdefs.h. */
9001 /* Define malloc_set_state to an innocuous variant, in case <limits.h> declares malloc_set_state.
9002 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9003 #define malloc_set_state innocuous_malloc_set_state
9005 /* System header to define __stub macros and hopefully few prototypes,
9006 which can conflict with char malloc_set_state (); below.
9007 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9008 <limits.h> exists even on freestanding compilers. */
9010 #ifdef __STDC__
9011 # include <limits.h>
9012 #else
9013 # include <assert.h>
9014 #endif
9016 #undef malloc_set_state
9018 /* Override any gcc2 internal prototype to avoid an error. */
9019 #ifdef __cplusplus
9020 extern "C"
9022 #endif
9023 /* We use char because int might match the return type of a gcc2
9024 builtin and then its argument prototype would still apply. */
9025 char malloc_set_state ();
9026 /* The GNU C library defines this for functions which it implements
9027 to always fail with ENOSYS. Some functions are actually named
9028 something starting with __ and the normal name is an alias. */
9029 #if defined (__stub_malloc_set_state) || defined (__stub___malloc_set_state)
9030 choke me
9031 #else
9032 char (*f) () = malloc_set_state;
9033 #endif
9034 #ifdef __cplusplus
9036 #endif
9039 main ()
9041 return f != malloc_set_state;
9043 return 0;
9045 _ACEOF
9046 rm -f conftest.$ac_objext conftest$ac_exeext
9047 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9048 (eval $ac_link) 2>conftest.er1
9049 ac_status=$?
9050 grep -v '^ *+' conftest.er1 >conftest.err
9051 rm -f conftest.er1
9052 cat conftest.err >&5
9053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9054 (exit $ac_status); } &&
9055 { ac_try='test -z "$ac_c_werror_flag"
9056 || test ! -s conftest.err'
9057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9058 (eval $ac_try) 2>&5
9059 ac_status=$?
9060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9061 (exit $ac_status); }; } &&
9062 { ac_try='test -s conftest$ac_exeext'
9063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9064 (eval $ac_try) 2>&5
9065 ac_status=$?
9066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9067 (exit $ac_status); }; }; then
9068 ac_cv_func_malloc_set_state=yes
9069 else
9070 echo "$as_me: failed program was:" >&5
9071 sed 's/^/| /' conftest.$ac_ext >&5
9073 ac_cv_func_malloc_set_state=no
9075 rm -f conftest.err conftest.$ac_objext \
9076 conftest$ac_exeext conftest.$ac_ext
9078 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_set_state" >&5
9079 echo "${ECHO_T}$ac_cv_func_malloc_set_state" >&6
9080 if test $ac_cv_func_malloc_set_state = yes; then
9082 else
9083 doug_lea_malloc=no
9086 echo "$as_me:$LINENO: checking whether __after_morecore_hook exists" >&5
9087 echo $ECHO_N "checking whether __after_morecore_hook exists... $ECHO_C" >&6
9088 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then
9089 echo $ECHO_N "(cached) $ECHO_C" >&6
9090 else
9091 cat >conftest.$ac_ext <<_ACEOF
9092 /* confdefs.h. */
9093 _ACEOF
9094 cat confdefs.h >>conftest.$ac_ext
9095 cat >>conftest.$ac_ext <<_ACEOF
9096 /* end confdefs.h. */
9097 extern void (* __after_morecore_hook)();
9099 main ()
9101 __after_morecore_hook = 0
9103 return 0;
9105 _ACEOF
9106 rm -f conftest.$ac_objext conftest$ac_exeext
9107 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9108 (eval $ac_link) 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); } &&
9115 { ac_try='test -z "$ac_c_werror_flag"
9116 || test ! -s conftest.err'
9117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9118 (eval $ac_try) 2>&5
9119 ac_status=$?
9120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9121 (exit $ac_status); }; } &&
9122 { ac_try='test -s conftest$ac_exeext'
9123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9124 (eval $ac_try) 2>&5
9125 ac_status=$?
9126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9127 (exit $ac_status); }; }; then
9128 emacs_cv_var___after_morecore_hook=yes
9129 else
9130 echo "$as_me: failed program was:" >&5
9131 sed 's/^/| /' conftest.$ac_ext >&5
9133 emacs_cv_var___after_morecore_hook=no
9135 rm -f conftest.err conftest.$ac_objext \
9136 conftest$ac_exeext conftest.$ac_ext
9138 echo "$as_me:$LINENO: result: $emacs_cv_var___after_morecore_hook" >&5
9139 echo "${ECHO_T}$emacs_cv_var___after_morecore_hook" >&6
9140 if test $emacs_cv_var___after_morecore_hook = no; then
9141 doug_lea_malloc=no
9143 if test "${system_malloc}" = "yes"; then
9144 GNU_MALLOC=no
9145 GNU_MALLOC_reason="
9146 (The GNU allocators don't work with this system configuration.)"
9148 if test "$doug_lea_malloc" = "yes" ; then
9149 if test "$GNU_MALLOC" = yes ; then
9150 GNU_MALLOC_reason="
9151 (Using Doug Lea's new malloc from the GNU C Library.)"
9154 cat >>confdefs.h <<\_ACEOF
9155 #define DOUG_LEA_MALLOC 1
9156 _ACEOF
9160 if test x"${REL_ALLOC}" = x; then
9161 REL_ALLOC=${GNU_MALLOC}
9167 for ac_header in stdlib.h unistd.h
9169 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9170 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9171 echo "$as_me:$LINENO: checking for $ac_header" >&5
9172 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9173 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9174 echo $ECHO_N "(cached) $ECHO_C" >&6
9176 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9177 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9178 else
9179 # Is the header compilable?
9180 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9181 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9182 cat >conftest.$ac_ext <<_ACEOF
9183 /* confdefs.h. */
9184 _ACEOF
9185 cat confdefs.h >>conftest.$ac_ext
9186 cat >>conftest.$ac_ext <<_ACEOF
9187 /* end confdefs.h. */
9188 $ac_includes_default
9189 #include <$ac_header>
9190 _ACEOF
9191 rm -f conftest.$ac_objext
9192 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9193 (eval $ac_compile) 2>conftest.er1
9194 ac_status=$?
9195 grep -v '^ *+' conftest.er1 >conftest.err
9196 rm -f conftest.er1
9197 cat conftest.err >&5
9198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9199 (exit $ac_status); } &&
9200 { ac_try='test -z "$ac_c_werror_flag"
9201 || test ! -s conftest.err'
9202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9203 (eval $ac_try) 2>&5
9204 ac_status=$?
9205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9206 (exit $ac_status); }; } &&
9207 { ac_try='test -s conftest.$ac_objext'
9208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9209 (eval $ac_try) 2>&5
9210 ac_status=$?
9211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9212 (exit $ac_status); }; }; then
9213 ac_header_compiler=yes
9214 else
9215 echo "$as_me: failed program was:" >&5
9216 sed 's/^/| /' conftest.$ac_ext >&5
9218 ac_header_compiler=no
9220 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9221 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9222 echo "${ECHO_T}$ac_header_compiler" >&6
9224 # Is the header present?
9225 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9226 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9227 cat >conftest.$ac_ext <<_ACEOF
9228 /* confdefs.h. */
9229 _ACEOF
9230 cat confdefs.h >>conftest.$ac_ext
9231 cat >>conftest.$ac_ext <<_ACEOF
9232 /* end confdefs.h. */
9233 #include <$ac_header>
9234 _ACEOF
9235 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9236 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9237 ac_status=$?
9238 grep -v '^ *+' conftest.er1 >conftest.err
9239 rm -f conftest.er1
9240 cat conftest.err >&5
9241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9242 (exit $ac_status); } >/dev/null; then
9243 if test -s conftest.err; then
9244 ac_cpp_err=$ac_c_preproc_warn_flag
9245 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9246 else
9247 ac_cpp_err=
9249 else
9250 ac_cpp_err=yes
9252 if test -z "$ac_cpp_err"; then
9253 ac_header_preproc=yes
9254 else
9255 echo "$as_me: failed program was:" >&5
9256 sed 's/^/| /' conftest.$ac_ext >&5
9258 ac_header_preproc=no
9260 rm -f conftest.err conftest.$ac_ext
9261 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9262 echo "${ECHO_T}$ac_header_preproc" >&6
9264 # So? What about this header?
9265 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9266 yes:no: )
9267 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9268 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9269 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9270 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9271 ac_header_preproc=yes
9273 no:yes:* )
9274 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9275 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9276 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9277 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9278 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9279 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9280 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9281 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9282 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9283 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9284 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9285 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9287 cat <<\_ASBOX
9288 ## ------------------------------------------ ##
9289 ## Report this to the AC_PACKAGE_NAME lists. ##
9290 ## ------------------------------------------ ##
9291 _ASBOX
9293 sed "s/^/$as_me: WARNING: /" >&2
9295 esac
9296 echo "$as_me:$LINENO: checking for $ac_header" >&5
9297 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9298 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9299 echo $ECHO_N "(cached) $ECHO_C" >&6
9300 else
9301 eval "$as_ac_Header=\$ac_header_preproc"
9303 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9304 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9307 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9308 cat >>confdefs.h <<_ACEOF
9309 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9310 _ACEOF
9314 done
9317 for ac_func in getpagesize
9319 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9320 echo "$as_me:$LINENO: checking for $ac_func" >&5
9321 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9322 if eval "test \"\${$as_ac_var+set}\" = set"; then
9323 echo $ECHO_N "(cached) $ECHO_C" >&6
9324 else
9325 cat >conftest.$ac_ext <<_ACEOF
9326 /* confdefs.h. */
9327 _ACEOF
9328 cat confdefs.h >>conftest.$ac_ext
9329 cat >>conftest.$ac_ext <<_ACEOF
9330 /* end confdefs.h. */
9331 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9332 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9333 #define $ac_func innocuous_$ac_func
9335 /* System header to define __stub macros and hopefully few prototypes,
9336 which can conflict with char $ac_func (); below.
9337 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9338 <limits.h> exists even on freestanding compilers. */
9340 #ifdef __STDC__
9341 # include <limits.h>
9342 #else
9343 # include <assert.h>
9344 #endif
9346 #undef $ac_func
9348 /* Override any gcc2 internal prototype to avoid an error. */
9349 #ifdef __cplusplus
9350 extern "C"
9352 #endif
9353 /* We use char because int might match the return type of a gcc2
9354 builtin and then its argument prototype would still apply. */
9355 char $ac_func ();
9356 /* The GNU C library defines this for functions which it implements
9357 to always fail with ENOSYS. Some functions are actually named
9358 something starting with __ and the normal name is an alias. */
9359 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9360 choke me
9361 #else
9362 char (*f) () = $ac_func;
9363 #endif
9364 #ifdef __cplusplus
9366 #endif
9369 main ()
9371 return f != $ac_func;
9373 return 0;
9375 _ACEOF
9376 rm -f conftest.$ac_objext conftest$ac_exeext
9377 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9378 (eval $ac_link) 2>conftest.er1
9379 ac_status=$?
9380 grep -v '^ *+' conftest.er1 >conftest.err
9381 rm -f conftest.er1
9382 cat conftest.err >&5
9383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9384 (exit $ac_status); } &&
9385 { ac_try='test -z "$ac_c_werror_flag"
9386 || test ! -s conftest.err'
9387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9388 (eval $ac_try) 2>&5
9389 ac_status=$?
9390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9391 (exit $ac_status); }; } &&
9392 { ac_try='test -s conftest$ac_exeext'
9393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9394 (eval $ac_try) 2>&5
9395 ac_status=$?
9396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9397 (exit $ac_status); }; }; then
9398 eval "$as_ac_var=yes"
9399 else
9400 echo "$as_me: failed program was:" >&5
9401 sed 's/^/| /' conftest.$ac_ext >&5
9403 eval "$as_ac_var=no"
9405 rm -f conftest.err conftest.$ac_objext \
9406 conftest$ac_exeext conftest.$ac_ext
9408 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9409 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9410 if test `eval echo '${'$as_ac_var'}'` = yes; then
9411 cat >>confdefs.h <<_ACEOF
9412 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9413 _ACEOF
9416 done
9418 echo "$as_me:$LINENO: checking for working mmap" >&5
9419 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
9420 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
9421 echo $ECHO_N "(cached) $ECHO_C" >&6
9422 else
9423 if test "$cross_compiling" = yes; then
9424 ac_cv_func_mmap_fixed_mapped=no
9425 else
9426 cat >conftest.$ac_ext <<_ACEOF
9427 /* confdefs.h. */
9428 _ACEOF
9429 cat confdefs.h >>conftest.$ac_ext
9430 cat >>conftest.$ac_ext <<_ACEOF
9431 /* end confdefs.h. */
9432 $ac_includes_default
9433 /* malloc might have been renamed as rpl_malloc. */
9434 #undef malloc
9436 /* Thanks to Mike Haertel and Jim Avera for this test.
9437 Here is a matrix of mmap possibilities:
9438 mmap private not fixed
9439 mmap private fixed at somewhere currently unmapped
9440 mmap private fixed at somewhere already mapped
9441 mmap shared not fixed
9442 mmap shared fixed at somewhere currently unmapped
9443 mmap shared fixed at somewhere already mapped
9444 For private mappings, we should verify that changes cannot be read()
9445 back from the file, nor mmap's back from the file at a different
9446 address. (There have been systems where private was not correctly
9447 implemented like the infamous i386 svr4.0, and systems where the
9448 VM page cache was not coherent with the file system buffer cache
9449 like early versions of FreeBSD and possibly contemporary NetBSD.)
9450 For shared mappings, we should conversely verify that changes get
9451 propagated back to all the places they're supposed to be.
9453 Grep wants private fixed already mapped.
9454 The main things grep needs to know about mmap are:
9455 * does it exist and is it safe to write into the mmap'd area
9456 * how to use it (BSD variants) */
9458 #include <fcntl.h>
9459 #include <sys/mman.h>
9461 #if !STDC_HEADERS && !HAVE_STDLIB_H
9462 char *malloc ();
9463 #endif
9465 /* This mess was copied from the GNU getpagesize.h. */
9466 #if !HAVE_GETPAGESIZE
9467 /* Assume that all systems that can run configure have sys/param.h. */
9468 # if !HAVE_SYS_PARAM_H
9469 # define HAVE_SYS_PARAM_H 1
9470 # endif
9472 # ifdef _SC_PAGESIZE
9473 # define getpagesize() sysconf(_SC_PAGESIZE)
9474 # else /* no _SC_PAGESIZE */
9475 # if HAVE_SYS_PARAM_H
9476 # include <sys/param.h>
9477 # ifdef EXEC_PAGESIZE
9478 # define getpagesize() EXEC_PAGESIZE
9479 # else /* no EXEC_PAGESIZE */
9480 # ifdef NBPG
9481 # define getpagesize() NBPG * CLSIZE
9482 # ifndef CLSIZE
9483 # define CLSIZE 1
9484 # endif /* no CLSIZE */
9485 # else /* no NBPG */
9486 # ifdef NBPC
9487 # define getpagesize() NBPC
9488 # else /* no NBPC */
9489 # ifdef PAGESIZE
9490 # define getpagesize() PAGESIZE
9491 # endif /* PAGESIZE */
9492 # endif /* no NBPC */
9493 # endif /* no NBPG */
9494 # endif /* no EXEC_PAGESIZE */
9495 # else /* no HAVE_SYS_PARAM_H */
9496 # define getpagesize() 8192 /* punt totally */
9497 # endif /* no HAVE_SYS_PARAM_H */
9498 # endif /* no _SC_PAGESIZE */
9500 #endif /* no HAVE_GETPAGESIZE */
9503 main ()
9505 char *data, *data2, *data3;
9506 int i, pagesize;
9507 int fd;
9509 pagesize = getpagesize ();
9511 /* First, make a file with some known garbage in it. */
9512 data = (char *) malloc (pagesize);
9513 if (!data)
9514 exit (1);
9515 for (i = 0; i < pagesize; ++i)
9516 *(data + i) = rand ();
9517 umask (0);
9518 fd = creat ("conftest.mmap", 0600);
9519 if (fd < 0)
9520 exit (1);
9521 if (write (fd, data, pagesize) != pagesize)
9522 exit (1);
9523 close (fd);
9525 /* Next, try to mmap the file at a fixed address which already has
9526 something else allocated at it. If we can, also make sure that
9527 we see the same garbage. */
9528 fd = open ("conftest.mmap", O_RDWR);
9529 if (fd < 0)
9530 exit (1);
9531 data2 = (char *) malloc (2 * pagesize);
9532 if (!data2)
9533 exit (1);
9534 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
9535 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
9536 MAP_PRIVATE | MAP_FIXED, fd, 0L))
9537 exit (1);
9538 for (i = 0; i < pagesize; ++i)
9539 if (*(data + i) != *(data2 + i))
9540 exit (1);
9542 /* Finally, make sure that changes to the mapped area do not
9543 percolate back to the file as seen by read(). (This is a bug on
9544 some variants of i386 svr4.0.) */
9545 for (i = 0; i < pagesize; ++i)
9546 *(data2 + i) = *(data2 + i) + 1;
9547 data3 = (char *) malloc (pagesize);
9548 if (!data3)
9549 exit (1);
9550 if (read (fd, data3, pagesize) != pagesize)
9551 exit (1);
9552 for (i = 0; i < pagesize; ++i)
9553 if (*(data + i) != *(data3 + i))
9554 exit (1);
9555 close (fd);
9556 exit (0);
9558 _ACEOF
9559 rm -f conftest$ac_exeext
9560 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9561 (eval $ac_link) 2>&5
9562 ac_status=$?
9563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9564 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9566 (eval $ac_try) 2>&5
9567 ac_status=$?
9568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9569 (exit $ac_status); }; }; then
9570 ac_cv_func_mmap_fixed_mapped=yes
9571 else
9572 echo "$as_me: program exited with status $ac_status" >&5
9573 echo "$as_me: failed program was:" >&5
9574 sed 's/^/| /' conftest.$ac_ext >&5
9576 ( exit $ac_status )
9577 ac_cv_func_mmap_fixed_mapped=no
9579 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9582 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
9583 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
9584 if test $ac_cv_func_mmap_fixed_mapped = yes; then
9586 cat >>confdefs.h <<\_ACEOF
9587 #define HAVE_MMAP 1
9588 _ACEOF
9591 rm -f conftest.mmap
9593 if test $use_mmap_for_buffers = yes; then
9594 REL_ALLOC=no
9597 LIBS="$libsrc_libs $LIBS"
9600 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
9601 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
9602 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
9603 echo $ECHO_N "(cached) $ECHO_C" >&6
9604 else
9605 ac_check_lib_save_LIBS=$LIBS
9606 LIBS="-ldnet $LIBS"
9607 cat >conftest.$ac_ext <<_ACEOF
9608 /* confdefs.h. */
9609 _ACEOF
9610 cat confdefs.h >>conftest.$ac_ext
9611 cat >>conftest.$ac_ext <<_ACEOF
9612 /* end confdefs.h. */
9614 /* Override any gcc2 internal prototype to avoid an error. */
9615 #ifdef __cplusplus
9616 extern "C"
9617 #endif
9618 /* We use char because int might match the return type of a gcc2
9619 builtin and then its argument prototype would still apply. */
9620 char dnet_ntoa ();
9622 main ()
9624 dnet_ntoa ();
9626 return 0;
9628 _ACEOF
9629 rm -f conftest.$ac_objext conftest$ac_exeext
9630 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9631 (eval $ac_link) 2>conftest.er1
9632 ac_status=$?
9633 grep -v '^ *+' conftest.er1 >conftest.err
9634 rm -f conftest.er1
9635 cat conftest.err >&5
9636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9637 (exit $ac_status); } &&
9638 { ac_try='test -z "$ac_c_werror_flag"
9639 || test ! -s conftest.err'
9640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9641 (eval $ac_try) 2>&5
9642 ac_status=$?
9643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9644 (exit $ac_status); }; } &&
9645 { ac_try='test -s conftest$ac_exeext'
9646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9647 (eval $ac_try) 2>&5
9648 ac_status=$?
9649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9650 (exit $ac_status); }; }; then
9651 ac_cv_lib_dnet_dnet_ntoa=yes
9652 else
9653 echo "$as_me: failed program was:" >&5
9654 sed 's/^/| /' conftest.$ac_ext >&5
9656 ac_cv_lib_dnet_dnet_ntoa=no
9658 rm -f conftest.err conftest.$ac_objext \
9659 conftest$ac_exeext conftest.$ac_ext
9660 LIBS=$ac_check_lib_save_LIBS
9662 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
9663 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
9664 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
9665 cat >>confdefs.h <<_ACEOF
9666 #define HAVE_LIBDNET 1
9667 _ACEOF
9669 LIBS="-ldnet $LIBS"
9674 echo "$as_me:$LINENO: checking for main in -lXbsd" >&5
9675 echo $ECHO_N "checking for main in -lXbsd... $ECHO_C" >&6
9676 if test "${ac_cv_lib_Xbsd_main+set}" = set; then
9677 echo $ECHO_N "(cached) $ECHO_C" >&6
9678 else
9679 ac_check_lib_save_LIBS=$LIBS
9680 LIBS="-lXbsd $LIBS"
9681 cat >conftest.$ac_ext <<_ACEOF
9682 /* confdefs.h. */
9683 _ACEOF
9684 cat confdefs.h >>conftest.$ac_ext
9685 cat >>conftest.$ac_ext <<_ACEOF
9686 /* end confdefs.h. */
9690 main ()
9692 main ();
9694 return 0;
9696 _ACEOF
9697 rm -f conftest.$ac_objext conftest$ac_exeext
9698 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9699 (eval $ac_link) 2>conftest.er1
9700 ac_status=$?
9701 grep -v '^ *+' conftest.er1 >conftest.err
9702 rm -f conftest.er1
9703 cat conftest.err >&5
9704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9705 (exit $ac_status); } &&
9706 { ac_try='test -z "$ac_c_werror_flag"
9707 || test ! -s conftest.err'
9708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9709 (eval $ac_try) 2>&5
9710 ac_status=$?
9711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9712 (exit $ac_status); }; } &&
9713 { ac_try='test -s conftest$ac_exeext'
9714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9715 (eval $ac_try) 2>&5
9716 ac_status=$?
9717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9718 (exit $ac_status); }; }; then
9719 ac_cv_lib_Xbsd_main=yes
9720 else
9721 echo "$as_me: failed program was:" >&5
9722 sed 's/^/| /' conftest.$ac_ext >&5
9724 ac_cv_lib_Xbsd_main=no
9726 rm -f conftest.err conftest.$ac_objext \
9727 conftest$ac_exeext conftest.$ac_ext
9728 LIBS=$ac_check_lib_save_LIBS
9730 echo "$as_me:$LINENO: result: $ac_cv_lib_Xbsd_main" >&5
9731 echo "${ECHO_T}$ac_cv_lib_Xbsd_main" >&6
9732 if test $ac_cv_lib_Xbsd_main = yes; then
9733 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
9738 echo "$as_me:$LINENO: checking for cma_open in -lpthreads" >&5
9739 echo $ECHO_N "checking for cma_open in -lpthreads... $ECHO_C" >&6
9740 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then
9741 echo $ECHO_N "(cached) $ECHO_C" >&6
9742 else
9743 ac_check_lib_save_LIBS=$LIBS
9744 LIBS="-lpthreads $LIBS"
9745 cat >conftest.$ac_ext <<_ACEOF
9746 /* confdefs.h. */
9747 _ACEOF
9748 cat confdefs.h >>conftest.$ac_ext
9749 cat >>conftest.$ac_ext <<_ACEOF
9750 /* end confdefs.h. */
9752 /* Override any gcc2 internal prototype to avoid an error. */
9753 #ifdef __cplusplus
9754 extern "C"
9755 #endif
9756 /* We use char because int might match the return type of a gcc2
9757 builtin and then its argument prototype would still apply. */
9758 char cma_open ();
9760 main ()
9762 cma_open ();
9764 return 0;
9766 _ACEOF
9767 rm -f conftest.$ac_objext conftest$ac_exeext
9768 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9769 (eval $ac_link) 2>conftest.er1
9770 ac_status=$?
9771 grep -v '^ *+' conftest.er1 >conftest.err
9772 rm -f conftest.er1
9773 cat conftest.err >&5
9774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9775 (exit $ac_status); } &&
9776 { ac_try='test -z "$ac_c_werror_flag"
9777 || test ! -s conftest.err'
9778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9779 (eval $ac_try) 2>&5
9780 ac_status=$?
9781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9782 (exit $ac_status); }; } &&
9783 { ac_try='test -s conftest$ac_exeext'
9784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9785 (eval $ac_try) 2>&5
9786 ac_status=$?
9787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9788 (exit $ac_status); }; }; then
9789 ac_cv_lib_pthreads_cma_open=yes
9790 else
9791 echo "$as_me: failed program was:" >&5
9792 sed 's/^/| /' conftest.$ac_ext >&5
9794 ac_cv_lib_pthreads_cma_open=no
9796 rm -f conftest.err conftest.$ac_objext \
9797 conftest$ac_exeext conftest.$ac_ext
9798 LIBS=$ac_check_lib_save_LIBS
9800 echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_cma_open" >&5
9801 echo "${ECHO_T}$ac_cv_lib_pthreads_cma_open" >&6
9802 if test $ac_cv_lib_pthreads_cma_open = yes; then
9803 cat >>confdefs.h <<_ACEOF
9804 #define HAVE_LIBPTHREADS 1
9805 _ACEOF
9807 LIBS="-lpthreads $LIBS"
9812 echo "$as_me:$LINENO: checking for XFree86 in /usr/X386" >&5
9813 echo $ECHO_N "checking for XFree86 in /usr/X386... $ECHO_C" >&6
9814 if test -d /usr/X386/include; then
9815 HAVE_XFREE386=yes
9816 : ${C_SWITCH_X_SITE="-I/usr/X386/include"}
9817 else
9818 HAVE_XFREE386=no
9820 echo "$as_me:$LINENO: result: $HAVE_XFREE386" >&5
9821 echo "${ECHO_T}$HAVE_XFREE386" >&6
9824 case ${host_os} in
9825 aix*)
9826 echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
9827 echo $ECHO_N "checking for -bbigtoc option... $ECHO_C" >&6
9828 if test "${gdb_cv_bigtoc+set}" = set; then
9829 echo $ECHO_N "(cached) $ECHO_C" >&6
9830 else
9832 case $GCC in
9833 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
9834 *) gdb_cv_bigtoc=-bbigtoc ;;
9835 esac
9837 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
9838 cat >conftest.$ac_ext <<_ACEOF
9839 /* confdefs.h. */
9840 _ACEOF
9841 cat confdefs.h >>conftest.$ac_ext
9842 cat >>conftest.$ac_ext <<_ACEOF
9843 /* end confdefs.h. */
9846 main ()
9848 int i;
9850 return 0;
9852 _ACEOF
9853 rm -f conftest.$ac_objext conftest$ac_exeext
9854 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9855 (eval $ac_link) 2>conftest.er1
9856 ac_status=$?
9857 grep -v '^ *+' conftest.er1 >conftest.err
9858 rm -f conftest.er1
9859 cat conftest.err >&5
9860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9861 (exit $ac_status); } &&
9862 { ac_try='test -z "$ac_c_werror_flag"
9863 || test ! -s conftest.err'
9864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9865 (eval $ac_try) 2>&5
9866 ac_status=$?
9867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9868 (exit $ac_status); }; } &&
9869 { ac_try='test -s conftest$ac_exeext'
9870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9871 (eval $ac_try) 2>&5
9872 ac_status=$?
9873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9874 (exit $ac_status); }; }; then
9876 else
9877 echo "$as_me: failed program was:" >&5
9878 sed 's/^/| /' conftest.$ac_ext >&5
9880 gdb_cv_bigtoc=
9882 rm -f conftest.err conftest.$ac_objext \
9883 conftest$ac_exeext conftest.$ac_ext
9886 echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
9887 echo "${ECHO_T}$gdb_cv_bigtoc" >&6
9889 esac
9891 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
9892 # used for the tests that follow. We set them back to REAL_CFLAGS and
9893 # REAL_CPPFLAGS later on.
9895 REAL_CPPFLAGS="$CPPFLAGS"
9897 if test "${HAVE_X11}" = "yes"; then
9898 DEFS="$C_SWITCH_X_SITE $DEFS"
9899 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
9900 LIBS="$LIBX $LIBS"
9901 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
9902 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
9904 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
9905 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
9906 # but it's more convenient here to set LD_RUN_PATH
9907 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
9908 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
9909 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
9910 export LD_RUN_PATH
9913 if test "${opsys}" = "gnu-linux"; then
9914 echo "$as_me:$LINENO: checking whether X on GNU/Linux needs -b to link" >&5
9915 echo $ECHO_N "checking whether X on GNU/Linux needs -b to link... $ECHO_C" >&6
9916 cat >conftest.$ac_ext <<_ACEOF
9917 /* confdefs.h. */
9918 _ACEOF
9919 cat confdefs.h >>conftest.$ac_ext
9920 cat >>conftest.$ac_ext <<_ACEOF
9921 /* end confdefs.h. */
9924 main ()
9926 XOpenDisplay ("foo");
9928 return 0;
9930 _ACEOF
9931 rm -f conftest.$ac_objext conftest$ac_exeext
9932 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9933 (eval $ac_link) 2>conftest.er1
9934 ac_status=$?
9935 grep -v '^ *+' conftest.er1 >conftest.err
9936 rm -f conftest.er1
9937 cat conftest.err >&5
9938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9939 (exit $ac_status); } &&
9940 { ac_try='test -z "$ac_c_werror_flag"
9941 || test ! -s conftest.err'
9942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9943 (eval $ac_try) 2>&5
9944 ac_status=$?
9945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9946 (exit $ac_status); }; } &&
9947 { ac_try='test -s conftest$ac_exeext'
9948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9949 (eval $ac_try) 2>&5
9950 ac_status=$?
9951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9952 (exit $ac_status); }; }; then
9953 xlinux_first_failure=no
9954 else
9955 echo "$as_me: failed program was:" >&5
9956 sed 's/^/| /' conftest.$ac_ext >&5
9958 xlinux_first_failure=yes
9960 rm -f conftest.err conftest.$ac_objext \
9961 conftest$ac_exeext conftest.$ac_ext
9962 if test "${xlinux_first_failure}" = "yes"; then
9963 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE"
9964 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE"
9965 OLD_CPPFLAGS="$CPPFLAGS"
9966 OLD_LIBS="$LIBS"
9967 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout"
9968 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout"
9969 CPPFLAGS="$CPPFLAGS -b i486-linuxaout"
9970 LIBS="$LIBS -b i486-linuxaout"
9971 cat >conftest.$ac_ext <<_ACEOF
9972 /* confdefs.h. */
9973 _ACEOF
9974 cat confdefs.h >>conftest.$ac_ext
9975 cat >>conftest.$ac_ext <<_ACEOF
9976 /* end confdefs.h. */
9979 main ()
9981 XOpenDisplay ("foo");
9983 return 0;
9985 _ACEOF
9986 rm -f conftest.$ac_objext conftest$ac_exeext
9987 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9988 (eval $ac_link) 2>conftest.er1
9989 ac_status=$?
9990 grep -v '^ *+' conftest.er1 >conftest.err
9991 rm -f conftest.er1
9992 cat conftest.err >&5
9993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9994 (exit $ac_status); } &&
9995 { ac_try='test -z "$ac_c_werror_flag"
9996 || test ! -s conftest.err'
9997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9998 (eval $ac_try) 2>&5
9999 ac_status=$?
10000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10001 (exit $ac_status); }; } &&
10002 { ac_try='test -s conftest$ac_exeext'
10003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10004 (eval $ac_try) 2>&5
10005 ac_status=$?
10006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10007 (exit $ac_status); }; }; then
10008 xlinux_second_failure=no
10009 else
10010 echo "$as_me: failed program was:" >&5
10011 sed 's/^/| /' conftest.$ac_ext >&5
10013 xlinux_second_failure=yes
10015 rm -f conftest.err conftest.$ac_objext \
10016 conftest$ac_exeext conftest.$ac_ext
10017 if test "${xlinux_second_failure}" = "yes"; then
10018 # If we get the same failure with -b, there is no use adding -b.
10019 # So take it out. This plays safe.
10020 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
10021 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
10022 CPPFLAGS="$OLD_CPPFLAGS"
10023 LIBS="$OLD_LIBS"
10024 echo "$as_me:$LINENO: result: no" >&5
10025 echo "${ECHO_T}no" >&6
10026 else
10027 echo "$as_me:$LINENO: result: yes" >&5
10028 echo "${ECHO_T}yes" >&6
10030 else
10031 echo "$as_me:$LINENO: result: no" >&5
10032 echo "${ECHO_T}no" >&6
10036 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
10037 # header files included from there.
10038 echo "$as_me:$LINENO: checking for Xkb" >&5
10039 echo $ECHO_N "checking for Xkb... $ECHO_C" >&6
10040 cat >conftest.$ac_ext <<_ACEOF
10041 /* confdefs.h. */
10042 _ACEOF
10043 cat confdefs.h >>conftest.$ac_ext
10044 cat >>conftest.$ac_ext <<_ACEOF
10045 /* end confdefs.h. */
10046 #include <X11/Xlib.h>
10047 #include <X11/XKBlib.h>
10049 main ()
10051 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
10053 return 0;
10055 _ACEOF
10056 rm -f conftest.$ac_objext conftest$ac_exeext
10057 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10058 (eval $ac_link) 2>conftest.er1
10059 ac_status=$?
10060 grep -v '^ *+' conftest.er1 >conftest.err
10061 rm -f conftest.er1
10062 cat conftest.err >&5
10063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10064 (exit $ac_status); } &&
10065 { ac_try='test -z "$ac_c_werror_flag"
10066 || test ! -s conftest.err'
10067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10068 (eval $ac_try) 2>&5
10069 ac_status=$?
10070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10071 (exit $ac_status); }; } &&
10072 { ac_try='test -s conftest$ac_exeext'
10073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10074 (eval $ac_try) 2>&5
10075 ac_status=$?
10076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10077 (exit $ac_status); }; }; then
10078 emacs_xkb=yes
10079 else
10080 echo "$as_me: failed program was:" >&5
10081 sed 's/^/| /' conftest.$ac_ext >&5
10083 emacs_xkb=no
10085 rm -f conftest.err conftest.$ac_objext \
10086 conftest$ac_exeext conftest.$ac_ext
10087 echo "$as_me:$LINENO: result: $emacs_xkb" >&5
10088 echo "${ECHO_T}$emacs_xkb" >&6
10089 if test $emacs_xkb = yes; then
10091 cat >>confdefs.h <<\_ACEOF
10092 #define HAVE_XKBGETKEYBOARD 1
10093 _ACEOF
10101 for ac_func in XrmSetDatabase XScreenResourceString \
10102 XScreenNumberOfScreen XSetWMProtocols
10104 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10105 echo "$as_me:$LINENO: checking for $ac_func" >&5
10106 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10107 if eval "test \"\${$as_ac_var+set}\" = set"; then
10108 echo $ECHO_N "(cached) $ECHO_C" >&6
10109 else
10110 cat >conftest.$ac_ext <<_ACEOF
10111 /* confdefs.h. */
10112 _ACEOF
10113 cat confdefs.h >>conftest.$ac_ext
10114 cat >>conftest.$ac_ext <<_ACEOF
10115 /* end confdefs.h. */
10116 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10117 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10118 #define $ac_func innocuous_$ac_func
10120 /* System header to define __stub macros and hopefully few prototypes,
10121 which can conflict with char $ac_func (); below.
10122 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10123 <limits.h> exists even on freestanding compilers. */
10125 #ifdef __STDC__
10126 # include <limits.h>
10127 #else
10128 # include <assert.h>
10129 #endif
10131 #undef $ac_func
10133 /* Override any gcc2 internal prototype to avoid an error. */
10134 #ifdef __cplusplus
10135 extern "C"
10137 #endif
10138 /* We use char because int might match the return type of a gcc2
10139 builtin and then its argument prototype would still apply. */
10140 char $ac_func ();
10141 /* The GNU C library defines this for functions which it implements
10142 to always fail with ENOSYS. Some functions are actually named
10143 something starting with __ and the normal name is an alias. */
10144 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10145 choke me
10146 #else
10147 char (*f) () = $ac_func;
10148 #endif
10149 #ifdef __cplusplus
10151 #endif
10154 main ()
10156 return f != $ac_func;
10158 return 0;
10160 _ACEOF
10161 rm -f conftest.$ac_objext conftest$ac_exeext
10162 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10163 (eval $ac_link) 2>conftest.er1
10164 ac_status=$?
10165 grep -v '^ *+' conftest.er1 >conftest.err
10166 rm -f conftest.er1
10167 cat conftest.err >&5
10168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10169 (exit $ac_status); } &&
10170 { ac_try='test -z "$ac_c_werror_flag"
10171 || test ! -s conftest.err'
10172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10173 (eval $ac_try) 2>&5
10174 ac_status=$?
10175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10176 (exit $ac_status); }; } &&
10177 { ac_try='test -s conftest$ac_exeext'
10178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10179 (eval $ac_try) 2>&5
10180 ac_status=$?
10181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10182 (exit $ac_status); }; }; then
10183 eval "$as_ac_var=yes"
10184 else
10185 echo "$as_me: failed program was:" >&5
10186 sed 's/^/| /' conftest.$ac_ext >&5
10188 eval "$as_ac_var=no"
10190 rm -f conftest.err conftest.$ac_objext \
10191 conftest$ac_exeext conftest.$ac_ext
10193 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10194 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10195 if test `eval echo '${'$as_ac_var'}'` = yes; then
10196 cat >>confdefs.h <<_ACEOF
10197 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10198 _ACEOF
10201 done
10205 if test "${window_system}" = "x11"; then
10206 echo "$as_me:$LINENO: checking X11 version 6" >&5
10207 echo $ECHO_N "checking X11 version 6... $ECHO_C" >&6
10208 if test "${emacs_cv_x11_version_6+set}" = set; then
10209 echo $ECHO_N "(cached) $ECHO_C" >&6
10210 else
10211 cat >conftest.$ac_ext <<_ACEOF
10212 /* confdefs.h. */
10213 _ACEOF
10214 cat confdefs.h >>conftest.$ac_ext
10215 cat >>conftest.$ac_ext <<_ACEOF
10216 /* end confdefs.h. */
10217 #include <X11/Xlib.h>
10219 main ()
10221 #if XlibSpecificationRelease < 6
10222 fail;
10223 #endif
10226 return 0;
10228 _ACEOF
10229 rm -f conftest.$ac_objext conftest$ac_exeext
10230 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10231 (eval $ac_link) 2>conftest.er1
10232 ac_status=$?
10233 grep -v '^ *+' conftest.er1 >conftest.err
10234 rm -f conftest.er1
10235 cat conftest.err >&5
10236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10237 (exit $ac_status); } &&
10238 { ac_try='test -z "$ac_c_werror_flag"
10239 || test ! -s conftest.err'
10240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10241 (eval $ac_try) 2>&5
10242 ac_status=$?
10243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10244 (exit $ac_status); }; } &&
10245 { ac_try='test -s conftest$ac_exeext'
10246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10247 (eval $ac_try) 2>&5
10248 ac_status=$?
10249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10250 (exit $ac_status); }; }; then
10251 emacs_cv_x11_version_6=yes
10252 else
10253 echo "$as_me: failed program was:" >&5
10254 sed 's/^/| /' conftest.$ac_ext >&5
10256 emacs_cv_x11_version_6=no
10258 rm -f conftest.err conftest.$ac_objext \
10259 conftest$ac_exeext conftest.$ac_ext
10262 if test $emacs_cv_x11_version_6 = yes; then
10263 echo "$as_me:$LINENO: result: 6 or newer" >&5
10264 echo "${ECHO_T}6 or newer" >&6
10266 cat >>confdefs.h <<\_ACEOF
10267 #define HAVE_X11R6 1
10268 _ACEOF
10270 else
10271 echo "$as_me:$LINENO: result: before 6" >&5
10272 echo "${ECHO_T}before 6" >&6
10276 if test "${window_system}" = "x11"; then
10277 echo "$as_me:$LINENO: checking X11 version 5" >&5
10278 echo $ECHO_N "checking X11 version 5... $ECHO_C" >&6
10279 if test "${emacs_cv_x11_version_5+set}" = set; then
10280 echo $ECHO_N "(cached) $ECHO_C" >&6
10281 else
10282 cat >conftest.$ac_ext <<_ACEOF
10283 /* confdefs.h. */
10284 _ACEOF
10285 cat confdefs.h >>conftest.$ac_ext
10286 cat >>conftest.$ac_ext <<_ACEOF
10287 /* end confdefs.h. */
10288 #include <X11/Xlib.h>
10290 main ()
10292 #if XlibSpecificationRelease < 5
10293 fail;
10294 #endif
10297 return 0;
10299 _ACEOF
10300 rm -f conftest.$ac_objext conftest$ac_exeext
10301 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10302 (eval $ac_link) 2>conftest.er1
10303 ac_status=$?
10304 grep -v '^ *+' conftest.er1 >conftest.err
10305 rm -f conftest.er1
10306 cat conftest.err >&5
10307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10308 (exit $ac_status); } &&
10309 { ac_try='test -z "$ac_c_werror_flag"
10310 || test ! -s conftest.err'
10311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10312 (eval $ac_try) 2>&5
10313 ac_status=$?
10314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10315 (exit $ac_status); }; } &&
10316 { ac_try='test -s conftest$ac_exeext'
10317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10318 (eval $ac_try) 2>&5
10319 ac_status=$?
10320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10321 (exit $ac_status); }; }; then
10322 emacs_cv_x11_version_5=yes
10323 else
10324 echo "$as_me: failed program was:" >&5
10325 sed 's/^/| /' conftest.$ac_ext >&5
10327 emacs_cv_x11_version_5=no
10329 rm -f conftest.err conftest.$ac_objext \
10330 conftest$ac_exeext conftest.$ac_ext
10333 if test $emacs_cv_x11_version_5 = yes; then
10334 echo "$as_me:$LINENO: result: 5 or newer" >&5
10335 echo "${ECHO_T}5 or newer" >&6
10336 HAVE_X11R5=yes
10338 cat >>confdefs.h <<\_ACEOF
10339 #define HAVE_X11R5 1
10340 _ACEOF
10342 else
10343 HAVE_X11R5=no
10344 echo "$as_me:$LINENO: result: before 5" >&5
10345 echo "${ECHO_T}before 5" >&6
10349 HAVE_GTK=no
10350 if test "${with_gtk}" = "yes" || test "$USE_X_TOOLKIT" = "gtk"; then
10351 if test "$USE_X_TOOLKIT" != "none" && test "$USE_X_TOOLKIT" != "maybe"; then
10352 { { echo "$as_me:$LINENO: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&5
10353 echo "$as_me: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&2;}
10354 { (exit 1); exit 1; }; };
10356 GLIB_REQUIRED=2.4
10357 GTK_REQUIRED=2.4
10358 GTK_MODULES="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
10360 if test "X${with_pkg_config_prog}" != X; then
10361 PKG_CONFIG="${with_pkg_config_prog}"
10364 succeeded=no
10366 if test -z "$PKG_CONFIG"; then
10367 # Extract the first word of "pkg-config", so it can be a program name with args.
10368 set dummy pkg-config; ac_word=$2
10369 echo "$as_me:$LINENO: checking for $ac_word" >&5
10370 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10371 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
10372 echo $ECHO_N "(cached) $ECHO_C" >&6
10373 else
10374 case $PKG_CONFIG in
10375 [\\/]* | ?:[\\/]*)
10376 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10379 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10380 for as_dir in $PATH
10382 IFS=$as_save_IFS
10383 test -z "$as_dir" && as_dir=.
10384 for ac_exec_ext in '' $ac_executable_extensions; do
10385 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10386 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10387 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10388 break 2
10390 done
10391 done
10393 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10395 esac
10397 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10399 if test -n "$PKG_CONFIG"; then
10400 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
10401 echo "${ECHO_T}$PKG_CONFIG" >&6
10402 else
10403 echo "$as_me:$LINENO: result: no" >&5
10404 echo "${ECHO_T}no" >&6
10409 if test "$PKG_CONFIG" = "no" ; then
10410 { { echo "$as_me:$LINENO: error:
10411 *** The pkg-config script could not be found. Make sure it is in your path, or give the full path to pkg-config with the PKG_CONFIG environment variable or --with-pkg-config-prog. Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." >&5
10412 echo "$as_me: error:
10413 *** The pkg-config script could not be found. Make sure it is in your path, or give the full path to pkg-config with the PKG_CONFIG environment variable or --with-pkg-config-prog. Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." >&2;}
10414 { (exit 1); exit 1; }; }
10415 else
10416 PKG_CONFIG_MIN_VERSION=0.9.0
10417 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10418 echo "$as_me:$LINENO: checking for $GTK_MODULES" >&5
10419 echo $ECHO_N "checking for $GTK_MODULES... $ECHO_C" >&6
10421 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
10422 echo "$as_me:$LINENO: result: yes" >&5
10423 echo "${ECHO_T}yes" >&6
10424 succeeded=yes
10426 echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
10427 echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6
10428 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"`
10429 echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
10430 echo "${ECHO_T}$GTK_CFLAGS" >&6
10432 echo "$as_me:$LINENO: checking GTK_LIBS" >&5
10433 echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6
10434 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"`
10435 echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
10436 echo "${ECHO_T}$GTK_LIBS" >&6
10437 else
10438 echo "$as_me:$LINENO: result: no" >&5
10439 echo "${ECHO_T}no" >&6
10440 GTK_CFLAGS=""
10441 GTK_LIBS=""
10442 ## If we have a custom action on failure, don't print errors, but
10443 ## do set a variable so people can do so.
10444 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
10445 echo $GTK_PKG_ERRORS
10450 else
10451 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10452 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10456 if test $succeeded = yes; then
10458 else
10459 { { 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
10460 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;}
10461 { (exit 1); exit 1; }; }
10466 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS"
10467 CFLAGS="$CFLAGS $GTK_CFLAGS"
10468 LIBS="$GTK_LIBS $LIBS"
10469 HAVE_GTK=yes
10471 cat >>confdefs.h <<\_ACEOF
10472 #define HAVE_GTK 1
10473 _ACEOF
10475 USE_X_TOOLKIT=none
10477 if test "$with_toolkit_scroll_bars" != no; then
10478 with_toolkit_scroll_bars=yes
10481 HAVE_GTK_MULTIDISPLAY=no
10483 for ac_func in gdk_display_open
10485 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10486 echo "$as_me:$LINENO: checking for $ac_func" >&5
10487 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10488 if eval "test \"\${$as_ac_var+set}\" = set"; then
10489 echo $ECHO_N "(cached) $ECHO_C" >&6
10490 else
10491 cat >conftest.$ac_ext <<_ACEOF
10492 /* confdefs.h. */
10493 _ACEOF
10494 cat confdefs.h >>conftest.$ac_ext
10495 cat >>conftest.$ac_ext <<_ACEOF
10496 /* end confdefs.h. */
10497 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10498 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10499 #define $ac_func innocuous_$ac_func
10501 /* System header to define __stub macros and hopefully few prototypes,
10502 which can conflict with char $ac_func (); below.
10503 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10504 <limits.h> exists even on freestanding compilers. */
10506 #ifdef __STDC__
10507 # include <limits.h>
10508 #else
10509 # include <assert.h>
10510 #endif
10512 #undef $ac_func
10514 /* Override any gcc2 internal prototype to avoid an error. */
10515 #ifdef __cplusplus
10516 extern "C"
10518 #endif
10519 /* We use char because int might match the return type of a gcc2
10520 builtin and then its argument prototype would still apply. */
10521 char $ac_func ();
10522 /* The GNU C library defines this for functions which it implements
10523 to always fail with ENOSYS. Some functions are actually named
10524 something starting with __ and the normal name is an alias. */
10525 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10526 choke me
10527 #else
10528 char (*f) () = $ac_func;
10529 #endif
10530 #ifdef __cplusplus
10532 #endif
10535 main ()
10537 return f != $ac_func;
10539 return 0;
10541 _ACEOF
10542 rm -f conftest.$ac_objext conftest$ac_exeext
10543 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10544 (eval $ac_link) 2>conftest.er1
10545 ac_status=$?
10546 grep -v '^ *+' conftest.er1 >conftest.err
10547 rm -f conftest.er1
10548 cat conftest.err >&5
10549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10550 (exit $ac_status); } &&
10551 { ac_try='test -z "$ac_c_werror_flag"
10552 || test ! -s conftest.err'
10553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10554 (eval $ac_try) 2>&5
10555 ac_status=$?
10556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10557 (exit $ac_status); }; } &&
10558 { ac_try='test -s conftest$ac_exeext'
10559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10560 (eval $ac_try) 2>&5
10561 ac_status=$?
10562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10563 (exit $ac_status); }; }; then
10564 eval "$as_ac_var=yes"
10565 else
10566 echo "$as_me: failed program was:" >&5
10567 sed 's/^/| /' conftest.$ac_ext >&5
10569 eval "$as_ac_var=no"
10571 rm -f conftest.err conftest.$ac_objext \
10572 conftest$ac_exeext conftest.$ac_ext
10574 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10575 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10576 if test `eval echo '${'$as_ac_var'}'` = yes; then
10577 cat >>confdefs.h <<_ACEOF
10578 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10579 _ACEOF
10580 HAVE_GTK_MULTIDISPLAY=yes
10582 done
10584 if test "${HAVE_GTK_MULTIDISPLAY}" = "yes"; then
10586 cat >>confdefs.h <<\_ACEOF
10587 #define HAVE_GTK_MULTIDISPLAY 1
10588 _ACEOF
10591 HAVE_GTK_FILE_SELECTION=no
10593 for ac_func in gtk_file_selection_new
10595 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10596 echo "$as_me:$LINENO: checking for $ac_func" >&5
10597 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10598 if eval "test \"\${$as_ac_var+set}\" = set"; then
10599 echo $ECHO_N "(cached) $ECHO_C" >&6
10600 else
10601 cat >conftest.$ac_ext <<_ACEOF
10602 /* confdefs.h. */
10603 _ACEOF
10604 cat confdefs.h >>conftest.$ac_ext
10605 cat >>conftest.$ac_ext <<_ACEOF
10606 /* end confdefs.h. */
10607 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10608 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10609 #define $ac_func innocuous_$ac_func
10611 /* System header to define __stub macros and hopefully few prototypes,
10612 which can conflict with char $ac_func (); below.
10613 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10614 <limits.h> exists even on freestanding compilers. */
10616 #ifdef __STDC__
10617 # include <limits.h>
10618 #else
10619 # include <assert.h>
10620 #endif
10622 #undef $ac_func
10624 /* Override any gcc2 internal prototype to avoid an error. */
10625 #ifdef __cplusplus
10626 extern "C"
10628 #endif
10629 /* We use char because int might match the return type of a gcc2
10630 builtin and then its argument prototype would still apply. */
10631 char $ac_func ();
10632 /* The GNU C library defines this for functions which it implements
10633 to always fail with ENOSYS. Some functions are actually named
10634 something starting with __ and the normal name is an alias. */
10635 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10636 choke me
10637 #else
10638 char (*f) () = $ac_func;
10639 #endif
10640 #ifdef __cplusplus
10642 #endif
10645 main ()
10647 return f != $ac_func;
10649 return 0;
10651 _ACEOF
10652 rm -f conftest.$ac_objext conftest$ac_exeext
10653 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10654 (eval $ac_link) 2>conftest.er1
10655 ac_status=$?
10656 grep -v '^ *+' conftest.er1 >conftest.err
10657 rm -f conftest.er1
10658 cat conftest.err >&5
10659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10660 (exit $ac_status); } &&
10661 { ac_try='test -z "$ac_c_werror_flag"
10662 || test ! -s conftest.err'
10663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10664 (eval $ac_try) 2>&5
10665 ac_status=$?
10666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10667 (exit $ac_status); }; } &&
10668 { ac_try='test -s conftest$ac_exeext'
10669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10670 (eval $ac_try) 2>&5
10671 ac_status=$?
10672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10673 (exit $ac_status); }; }; then
10674 eval "$as_ac_var=yes"
10675 else
10676 echo "$as_me: failed program was:" >&5
10677 sed 's/^/| /' conftest.$ac_ext >&5
10679 eval "$as_ac_var=no"
10681 rm -f conftest.err conftest.$ac_objext \
10682 conftest$ac_exeext conftest.$ac_ext
10684 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10685 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10686 if test `eval echo '${'$as_ac_var'}'` = yes; then
10687 cat >>confdefs.h <<_ACEOF
10688 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10689 _ACEOF
10690 HAVE_GTK_FILE_SELECTION=yes
10692 done
10695 HAVE_GTK_FILE_CHOOSER=no
10697 for ac_func in gtk_file_chooser_dialog_new
10699 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10700 echo "$as_me:$LINENO: checking for $ac_func" >&5
10701 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10702 if eval "test \"\${$as_ac_var+set}\" = set"; then
10703 echo $ECHO_N "(cached) $ECHO_C" >&6
10704 else
10705 cat >conftest.$ac_ext <<_ACEOF
10706 /* confdefs.h. */
10707 _ACEOF
10708 cat confdefs.h >>conftest.$ac_ext
10709 cat >>conftest.$ac_ext <<_ACEOF
10710 /* end confdefs.h. */
10711 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10712 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10713 #define $ac_func innocuous_$ac_func
10715 /* System header to define __stub macros and hopefully few prototypes,
10716 which can conflict with char $ac_func (); below.
10717 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10718 <limits.h> exists even on freestanding compilers. */
10720 #ifdef __STDC__
10721 # include <limits.h>
10722 #else
10723 # include <assert.h>
10724 #endif
10726 #undef $ac_func
10728 /* Override any gcc2 internal prototype to avoid an error. */
10729 #ifdef __cplusplus
10730 extern "C"
10732 #endif
10733 /* We use char because int might match the return type of a gcc2
10734 builtin and then its argument prototype would still apply. */
10735 char $ac_func ();
10736 /* The GNU C library defines this for functions which it implements
10737 to always fail with ENOSYS. Some functions are actually named
10738 something starting with __ and the normal name is an alias. */
10739 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10740 choke me
10741 #else
10742 char (*f) () = $ac_func;
10743 #endif
10744 #ifdef __cplusplus
10746 #endif
10749 main ()
10751 return f != $ac_func;
10753 return 0;
10755 _ACEOF
10756 rm -f conftest.$ac_objext conftest$ac_exeext
10757 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10758 (eval $ac_link) 2>conftest.er1
10759 ac_status=$?
10760 grep -v '^ *+' conftest.er1 >conftest.err
10761 rm -f conftest.er1
10762 cat conftest.err >&5
10763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10764 (exit $ac_status); } &&
10765 { ac_try='test -z "$ac_c_werror_flag"
10766 || test ! -s conftest.err'
10767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10768 (eval $ac_try) 2>&5
10769 ac_status=$?
10770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10771 (exit $ac_status); }; } &&
10772 { ac_try='test -s conftest$ac_exeext'
10773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10774 (eval $ac_try) 2>&5
10775 ac_status=$?
10776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10777 (exit $ac_status); }; }; then
10778 eval "$as_ac_var=yes"
10779 else
10780 echo "$as_me: failed program was:" >&5
10781 sed 's/^/| /' conftest.$ac_ext >&5
10783 eval "$as_ac_var=no"
10785 rm -f conftest.err conftest.$ac_objext \
10786 conftest$ac_exeext conftest.$ac_ext
10788 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10789 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10790 if test `eval echo '${'$as_ac_var'}'` = yes; then
10791 cat >>confdefs.h <<_ACEOF
10792 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10793 _ACEOF
10794 HAVE_GTK_FILE_CHOOSER=yes
10796 done
10799 if test "$HAVE_GTK_FILE_SELECTION" = yes \
10800 && test "$HAVE_GTK_FILE_CHOOSER" = yes; then
10802 cat >>confdefs.h <<\_ACEOF
10803 #define HAVE_GTK_FILE_BOTH 1
10804 _ACEOF
10808 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
10809 HAVE_GTK_AND_PTHREAD=no
10811 for ac_header in pthread.h
10813 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10814 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10815 echo "$as_me:$LINENO: checking for $ac_header" >&5
10816 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10817 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10818 echo $ECHO_N "(cached) $ECHO_C" >&6
10820 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10821 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10822 else
10823 # Is the header compilable?
10824 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10825 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10826 cat >conftest.$ac_ext <<_ACEOF
10827 /* confdefs.h. */
10828 _ACEOF
10829 cat confdefs.h >>conftest.$ac_ext
10830 cat >>conftest.$ac_ext <<_ACEOF
10831 /* end confdefs.h. */
10832 $ac_includes_default
10833 #include <$ac_header>
10834 _ACEOF
10835 rm -f conftest.$ac_objext
10836 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10837 (eval $ac_compile) 2>conftest.er1
10838 ac_status=$?
10839 grep -v '^ *+' conftest.er1 >conftest.err
10840 rm -f conftest.er1
10841 cat conftest.err >&5
10842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10843 (exit $ac_status); } &&
10844 { ac_try='test -z "$ac_c_werror_flag"
10845 || test ! -s conftest.err'
10846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10847 (eval $ac_try) 2>&5
10848 ac_status=$?
10849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10850 (exit $ac_status); }; } &&
10851 { ac_try='test -s conftest.$ac_objext'
10852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10853 (eval $ac_try) 2>&5
10854 ac_status=$?
10855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10856 (exit $ac_status); }; }; then
10857 ac_header_compiler=yes
10858 else
10859 echo "$as_me: failed program was:" >&5
10860 sed 's/^/| /' conftest.$ac_ext >&5
10862 ac_header_compiler=no
10864 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10865 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10866 echo "${ECHO_T}$ac_header_compiler" >&6
10868 # Is the header present?
10869 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10870 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10871 cat >conftest.$ac_ext <<_ACEOF
10872 /* confdefs.h. */
10873 _ACEOF
10874 cat confdefs.h >>conftest.$ac_ext
10875 cat >>conftest.$ac_ext <<_ACEOF
10876 /* end confdefs.h. */
10877 #include <$ac_header>
10878 _ACEOF
10879 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10880 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10881 ac_status=$?
10882 grep -v '^ *+' conftest.er1 >conftest.err
10883 rm -f conftest.er1
10884 cat conftest.err >&5
10885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10886 (exit $ac_status); } >/dev/null; then
10887 if test -s conftest.err; then
10888 ac_cpp_err=$ac_c_preproc_warn_flag
10889 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10890 else
10891 ac_cpp_err=
10893 else
10894 ac_cpp_err=yes
10896 if test -z "$ac_cpp_err"; then
10897 ac_header_preproc=yes
10898 else
10899 echo "$as_me: failed program was:" >&5
10900 sed 's/^/| /' conftest.$ac_ext >&5
10902 ac_header_preproc=no
10904 rm -f conftest.err conftest.$ac_ext
10905 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10906 echo "${ECHO_T}$ac_header_preproc" >&6
10908 # So? What about this header?
10909 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10910 yes:no: )
10911 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10912 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10913 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10914 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10915 ac_header_preproc=yes
10917 no:yes:* )
10918 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10919 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10920 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10921 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10922 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10923 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10924 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10925 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10926 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10927 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10928 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10929 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10931 cat <<\_ASBOX
10932 ## ------------------------------------------ ##
10933 ## Report this to the AC_PACKAGE_NAME lists. ##
10934 ## ------------------------------------------ ##
10935 _ASBOX
10937 sed "s/^/$as_me: WARNING: /" >&2
10939 esac
10940 echo "$as_me:$LINENO: checking for $ac_header" >&5
10941 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10942 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10943 echo $ECHO_N "(cached) $ECHO_C" >&6
10944 else
10945 eval "$as_ac_Header=\$ac_header_preproc"
10947 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10948 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10951 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10952 cat >>confdefs.h <<_ACEOF
10953 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10954 _ACEOF
10958 done
10960 if test "$ac_cv_header_pthread_h"; then
10961 echo "$as_me:$LINENO: checking for pthread_self in -lpthread" >&5
10962 echo $ECHO_N "checking for pthread_self in -lpthread... $ECHO_C" >&6
10963 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then
10964 echo $ECHO_N "(cached) $ECHO_C" >&6
10965 else
10966 ac_check_lib_save_LIBS=$LIBS
10967 LIBS="-lpthread $LIBS"
10968 cat >conftest.$ac_ext <<_ACEOF
10969 /* confdefs.h. */
10970 _ACEOF
10971 cat confdefs.h >>conftest.$ac_ext
10972 cat >>conftest.$ac_ext <<_ACEOF
10973 /* end confdefs.h. */
10975 /* Override any gcc2 internal prototype to avoid an error. */
10976 #ifdef __cplusplus
10977 extern "C"
10978 #endif
10979 /* We use char because int might match the return type of a gcc2
10980 builtin and then its argument prototype would still apply. */
10981 char pthread_self ();
10983 main ()
10985 pthread_self ();
10987 return 0;
10989 _ACEOF
10990 rm -f conftest.$ac_objext conftest$ac_exeext
10991 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10992 (eval $ac_link) 2>conftest.er1
10993 ac_status=$?
10994 grep -v '^ *+' conftest.er1 >conftest.err
10995 rm -f conftest.er1
10996 cat conftest.err >&5
10997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10998 (exit $ac_status); } &&
10999 { ac_try='test -z "$ac_c_werror_flag"
11000 || test ! -s conftest.err'
11001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11002 (eval $ac_try) 2>&5
11003 ac_status=$?
11004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11005 (exit $ac_status); }; } &&
11006 { ac_try='test -s conftest$ac_exeext'
11007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11008 (eval $ac_try) 2>&5
11009 ac_status=$?
11010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11011 (exit $ac_status); }; }; then
11012 ac_cv_lib_pthread_pthread_self=yes
11013 else
11014 echo "$as_me: failed program was:" >&5
11015 sed 's/^/| /' conftest.$ac_ext >&5
11017 ac_cv_lib_pthread_pthread_self=no
11019 rm -f conftest.err conftest.$ac_objext \
11020 conftest$ac_exeext conftest.$ac_ext
11021 LIBS=$ac_check_lib_save_LIBS
11023 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_self" >&5
11024 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_self" >&6
11025 if test $ac_cv_lib_pthread_pthread_self = yes; then
11026 HAVE_GTK_AND_PTHREAD=yes
11030 if test "$HAVE_GTK_AND_PTHREAD" = yes; then
11031 GTK_LIBS="$GTK_LIBS -lpthread"
11033 cat >>confdefs.h <<\_ACEOF
11034 #define HAVE_GTK_AND_PTHREAD 1
11035 _ACEOF
11041 if test x"${USE_X_TOOLKIT}" = xmaybe; then
11042 if test x"${HAVE_X11R5}" = xyes; then
11043 echo "$as_me:$LINENO: checking X11 version 5 with Xaw" >&5
11044 echo $ECHO_N "checking X11 version 5 with Xaw... $ECHO_C" >&6
11045 if test "${emacs_cv_x11_version_5_with_xaw+set}" = set; then
11046 echo $ECHO_N "(cached) $ECHO_C" >&6
11047 else
11048 cat >conftest.$ac_ext <<_ACEOF
11049 /* confdefs.h. */
11050 _ACEOF
11051 cat confdefs.h >>conftest.$ac_ext
11052 cat >>conftest.$ac_ext <<_ACEOF
11053 /* end confdefs.h. */
11055 #include <X11/Intrinsic.h>
11056 #include <X11/Xaw/Simple.h>
11058 main ()
11062 return 0;
11064 _ACEOF
11065 rm -f conftest.$ac_objext conftest$ac_exeext
11066 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11067 (eval $ac_link) 2>conftest.er1
11068 ac_status=$?
11069 grep -v '^ *+' conftest.er1 >conftest.err
11070 rm -f conftest.er1
11071 cat conftest.err >&5
11072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11073 (exit $ac_status); } &&
11074 { ac_try='test -z "$ac_c_werror_flag"
11075 || test ! -s conftest.err'
11076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11077 (eval $ac_try) 2>&5
11078 ac_status=$?
11079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11080 (exit $ac_status); }; } &&
11081 { ac_try='test -s conftest$ac_exeext'
11082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11083 (eval $ac_try) 2>&5
11084 ac_status=$?
11085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11086 (exit $ac_status); }; }; then
11087 emacs_cv_x11_version_5_with_xaw=yes
11088 else
11089 echo "$as_me: failed program was:" >&5
11090 sed 's/^/| /' conftest.$ac_ext >&5
11092 emacs_cv_x11_version_5_with_xaw=no
11094 rm -f conftest.err conftest.$ac_objext \
11095 conftest$ac_exeext conftest.$ac_ext
11098 if test $emacs_cv_x11_version_5_with_xaw = yes; then
11099 echo "$as_me:$LINENO: result: 5 or newer, with Xaw; use toolkit by default" >&5
11100 echo "${ECHO_T}5 or newer, with Xaw; use toolkit by default" >&6
11101 USE_X_TOOLKIT=LUCID
11102 else
11103 echo "$as_me:$LINENO: result: before 5 or no Xaw; do not use toolkit by default" >&5
11104 echo "${ECHO_T}before 5 or no Xaw; do not use toolkit by default" >&6
11105 USE_X_TOOLKIT=none
11107 else
11108 USE_X_TOOLKIT=none
11112 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
11114 if test "${USE_X_TOOLKIT}" != "none"; then
11115 echo "$as_me:$LINENO: checking X11 toolkit version" >&5
11116 echo $ECHO_N "checking X11 toolkit version... $ECHO_C" >&6
11117 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then
11118 echo $ECHO_N "(cached) $ECHO_C" >&6
11119 else
11120 cat >conftest.$ac_ext <<_ACEOF
11121 /* confdefs.h. */
11122 _ACEOF
11123 cat confdefs.h >>conftest.$ac_ext
11124 cat >>conftest.$ac_ext <<_ACEOF
11125 /* end confdefs.h. */
11126 #include <X11/Intrinsic.h>
11128 main ()
11130 #if XtSpecificationRelease < 6
11131 fail;
11132 #endif
11135 return 0;
11137 _ACEOF
11138 rm -f conftest.$ac_objext conftest$ac_exeext
11139 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11140 (eval $ac_link) 2>conftest.er1
11141 ac_status=$?
11142 grep -v '^ *+' conftest.er1 >conftest.err
11143 rm -f conftest.er1
11144 cat conftest.err >&5
11145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11146 (exit $ac_status); } &&
11147 { ac_try='test -z "$ac_c_werror_flag"
11148 || test ! -s conftest.err'
11149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11150 (eval $ac_try) 2>&5
11151 ac_status=$?
11152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11153 (exit $ac_status); }; } &&
11154 { ac_try='test -s conftest$ac_exeext'
11155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11156 (eval $ac_try) 2>&5
11157 ac_status=$?
11158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11159 (exit $ac_status); }; }; then
11160 emacs_cv_x11_toolkit_version_6=yes
11161 else
11162 echo "$as_me: failed program was:" >&5
11163 sed 's/^/| /' conftest.$ac_ext >&5
11165 emacs_cv_x11_toolkit_version_6=no
11167 rm -f conftest.err conftest.$ac_objext \
11168 conftest$ac_exeext conftest.$ac_ext
11171 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
11172 if test $emacs_cv_x11_toolkit_version_6 = yes; then
11173 echo "$as_me:$LINENO: result: 6 or newer" >&5
11174 echo "${ECHO_T}6 or newer" >&6
11176 cat >>confdefs.h <<\_ACEOF
11177 #define HAVE_X11XTR6 1
11178 _ACEOF
11180 else
11181 echo "$as_me:$LINENO: result: before 6" >&5
11182 echo "${ECHO_T}before 6" >&6
11185 OLDLIBS="$LIBS"
11186 if test x$HAVE_X11XTR6 = xyes; then
11187 LIBS="-lXt -lSM -lICE $LIBS"
11188 else
11189 LIBS="-lXt $LIBS"
11192 echo "$as_me:$LINENO: checking for XmuConvertStandardSelection in -lXmu" >&5
11193 echo $ECHO_N "checking for XmuConvertStandardSelection in -lXmu... $ECHO_C" >&6
11194 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then
11195 echo $ECHO_N "(cached) $ECHO_C" >&6
11196 else
11197 ac_check_lib_save_LIBS=$LIBS
11198 LIBS="-lXmu $LIBS"
11199 cat >conftest.$ac_ext <<_ACEOF
11200 /* confdefs.h. */
11201 _ACEOF
11202 cat confdefs.h >>conftest.$ac_ext
11203 cat >>conftest.$ac_ext <<_ACEOF
11204 /* end confdefs.h. */
11206 /* Override any gcc2 internal prototype to avoid an error. */
11207 #ifdef __cplusplus
11208 extern "C"
11209 #endif
11210 /* We use char because int might match the return type of a gcc2
11211 builtin and then its argument prototype would still apply. */
11212 char XmuConvertStandardSelection ();
11214 main ()
11216 XmuConvertStandardSelection ();
11218 return 0;
11220 _ACEOF
11221 rm -f conftest.$ac_objext conftest$ac_exeext
11222 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11223 (eval $ac_link) 2>conftest.er1
11224 ac_status=$?
11225 grep -v '^ *+' conftest.er1 >conftest.err
11226 rm -f conftest.er1
11227 cat conftest.err >&5
11228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11229 (exit $ac_status); } &&
11230 { ac_try='test -z "$ac_c_werror_flag"
11231 || test ! -s conftest.err'
11232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11233 (eval $ac_try) 2>&5
11234 ac_status=$?
11235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11236 (exit $ac_status); }; } &&
11237 { ac_try='test -s conftest$ac_exeext'
11238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11239 (eval $ac_try) 2>&5
11240 ac_status=$?
11241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11242 (exit $ac_status); }; }; then
11243 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
11244 else
11245 echo "$as_me: failed program was:" >&5
11246 sed 's/^/| /' conftest.$ac_ext >&5
11248 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
11250 rm -f conftest.err conftest.$ac_objext \
11251 conftest$ac_exeext conftest.$ac_ext
11252 LIBS=$ac_check_lib_save_LIBS
11254 echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
11255 echo "${ECHO_T}$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6
11256 if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then
11257 cat >>confdefs.h <<_ACEOF
11258 #define HAVE_LIBXMU 1
11259 _ACEOF
11261 LIBS="-lXmu $LIBS"
11265 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
11268 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
11269 if test "${HAVE_X11}" = "yes"; then
11270 if test "${USE_X_TOOLKIT}" != "none"; then
11272 echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
11273 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
11274 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
11275 echo $ECHO_N "(cached) $ECHO_C" >&6
11276 else
11277 ac_check_lib_save_LIBS=$LIBS
11278 LIBS="-lXext $LIBS"
11279 cat >conftest.$ac_ext <<_ACEOF
11280 /* confdefs.h. */
11281 _ACEOF
11282 cat confdefs.h >>conftest.$ac_ext
11283 cat >>conftest.$ac_ext <<_ACEOF
11284 /* end confdefs.h. */
11286 /* Override any gcc2 internal prototype to avoid an error. */
11287 #ifdef __cplusplus
11288 extern "C"
11289 #endif
11290 /* We use char because int might match the return type of a gcc2
11291 builtin and then its argument prototype would still apply. */
11292 char XShapeQueryExtension ();
11294 main ()
11296 XShapeQueryExtension ();
11298 return 0;
11300 _ACEOF
11301 rm -f conftest.$ac_objext conftest$ac_exeext
11302 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11303 (eval $ac_link) 2>conftest.er1
11304 ac_status=$?
11305 grep -v '^ *+' conftest.er1 >conftest.err
11306 rm -f conftest.er1
11307 cat conftest.err >&5
11308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11309 (exit $ac_status); } &&
11310 { ac_try='test -z "$ac_c_werror_flag"
11311 || test ! -s conftest.err'
11312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11313 (eval $ac_try) 2>&5
11314 ac_status=$?
11315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11316 (exit $ac_status); }; } &&
11317 { ac_try='test -s conftest$ac_exeext'
11318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11319 (eval $ac_try) 2>&5
11320 ac_status=$?
11321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11322 (exit $ac_status); }; }; then
11323 ac_cv_lib_Xext_XShapeQueryExtension=yes
11324 else
11325 echo "$as_me: failed program was:" >&5
11326 sed 's/^/| /' conftest.$ac_ext >&5
11328 ac_cv_lib_Xext_XShapeQueryExtension=no
11330 rm -f conftest.err conftest.$ac_objext \
11331 conftest$ac_exeext conftest.$ac_ext
11332 LIBS=$ac_check_lib_save_LIBS
11334 echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
11335 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
11336 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
11337 cat >>confdefs.h <<_ACEOF
11338 #define HAVE_LIBXEXT 1
11339 _ACEOF
11341 LIBS="-lXext $LIBS"
11348 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
11349 echo "$as_me:$LINENO: checking for Motif version 2.1" >&5
11350 echo $ECHO_N "checking for Motif version 2.1... $ECHO_C" >&6
11351 if test "${emacs_cv_motif_version_2_1+set}" = set; then
11352 echo $ECHO_N "(cached) $ECHO_C" >&6
11353 else
11354 cat >conftest.$ac_ext <<_ACEOF
11355 /* confdefs.h. */
11356 _ACEOF
11357 cat confdefs.h >>conftest.$ac_ext
11358 cat >>conftest.$ac_ext <<_ACEOF
11359 /* end confdefs.h. */
11360 #include <Xm/Xm.h>
11362 main ()
11364 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
11365 int x = 5;
11366 #else
11367 Motif version prior to 2.1.
11368 #endif
11370 return 0;
11372 _ACEOF
11373 rm -f conftest.$ac_objext
11374 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11375 (eval $ac_compile) 2>conftest.er1
11376 ac_status=$?
11377 grep -v '^ *+' conftest.er1 >conftest.err
11378 rm -f conftest.er1
11379 cat conftest.err >&5
11380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11381 (exit $ac_status); } &&
11382 { ac_try='test -z "$ac_c_werror_flag"
11383 || test ! -s conftest.err'
11384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11385 (eval $ac_try) 2>&5
11386 ac_status=$?
11387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11388 (exit $ac_status); }; } &&
11389 { ac_try='test -s conftest.$ac_objext'
11390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11391 (eval $ac_try) 2>&5
11392 ac_status=$?
11393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11394 (exit $ac_status); }; }; then
11395 emacs_cv_motif_version_2_1=yes
11396 else
11397 echo "$as_me: failed program was:" >&5
11398 sed 's/^/| /' conftest.$ac_ext >&5
11400 emacs_cv_motif_version_2_1=no
11402 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11404 echo "$as_me:$LINENO: result: $emacs_cv_motif_version_2_1" >&5
11405 echo "${ECHO_T}$emacs_cv_motif_version_2_1" >&6
11406 HAVE_MOTIF_2_1=$emacs_cv_motif_version_2_1
11407 if test $emacs_cv_motif_version_2_1 = yes; then
11408 HAVE_LIBXP=no
11410 cat >>confdefs.h <<\_ACEOF
11411 #define HAVE_MOTIF_2_1 1
11412 _ACEOF
11414 echo "$as_me:$LINENO: checking for XpCreateContext in -lXp" >&5
11415 echo $ECHO_N "checking for XpCreateContext in -lXp... $ECHO_C" >&6
11416 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then
11417 echo $ECHO_N "(cached) $ECHO_C" >&6
11418 else
11419 ac_check_lib_save_LIBS=$LIBS
11420 LIBS="-lXp $LIBS"
11421 cat >conftest.$ac_ext <<_ACEOF
11422 /* confdefs.h. */
11423 _ACEOF
11424 cat confdefs.h >>conftest.$ac_ext
11425 cat >>conftest.$ac_ext <<_ACEOF
11426 /* end confdefs.h. */
11428 /* Override any gcc2 internal prototype to avoid an error. */
11429 #ifdef __cplusplus
11430 extern "C"
11431 #endif
11432 /* We use char because int might match the return type of a gcc2
11433 builtin and then its argument prototype would still apply. */
11434 char XpCreateContext ();
11436 main ()
11438 XpCreateContext ();
11440 return 0;
11442 _ACEOF
11443 rm -f conftest.$ac_objext conftest$ac_exeext
11444 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11445 (eval $ac_link) 2>conftest.er1
11446 ac_status=$?
11447 grep -v '^ *+' conftest.er1 >conftest.err
11448 rm -f conftest.er1
11449 cat conftest.err >&5
11450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11451 (exit $ac_status); } &&
11452 { ac_try='test -z "$ac_c_werror_flag"
11453 || test ! -s conftest.err'
11454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11455 (eval $ac_try) 2>&5
11456 ac_status=$?
11457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11458 (exit $ac_status); }; } &&
11459 { ac_try='test -s conftest$ac_exeext'
11460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11461 (eval $ac_try) 2>&5
11462 ac_status=$?
11463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11464 (exit $ac_status); }; }; then
11465 ac_cv_lib_Xp_XpCreateContext=yes
11466 else
11467 echo "$as_me: failed program was:" >&5
11468 sed 's/^/| /' conftest.$ac_ext >&5
11470 ac_cv_lib_Xp_XpCreateContext=no
11472 rm -f conftest.err conftest.$ac_objext \
11473 conftest$ac_exeext conftest.$ac_ext
11474 LIBS=$ac_check_lib_save_LIBS
11476 echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpCreateContext" >&5
11477 echo "${ECHO_T}$ac_cv_lib_Xp_XpCreateContext" >&6
11478 if test $ac_cv_lib_Xp_XpCreateContext = yes; then
11479 HAVE_LIBXP=yes
11482 if test ${HAVE_LIBXP} = yes; then
11484 cat >>confdefs.h <<\_ACEOF
11485 #define HAVE_LIBXP 1
11486 _ACEOF
11489 else
11490 echo "$as_me:$LINENO: checking for LessTif where some systems put it" >&5
11491 echo $ECHO_N "checking for LessTif where some systems put it... $ECHO_C" >&6
11492 if test "${emacs_cv_lesstif+set}" = set; then
11493 echo $ECHO_N "(cached) $ECHO_C" >&6
11494 else
11495 # We put this in CFLAGS temporarily to precede other -I options
11496 # that might be in CFLAGS temporarily.
11497 # We put this in CPPFLAGS where it precedes the other -I options.
11498 OLD_CPPFLAGS=$CPPFLAGS
11499 OLD_CFLAGS=$CFLAGS
11500 CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
11501 CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
11502 cat >conftest.$ac_ext <<_ACEOF
11503 /* confdefs.h. */
11504 _ACEOF
11505 cat confdefs.h >>conftest.$ac_ext
11506 cat >>conftest.$ac_ext <<_ACEOF
11507 /* end confdefs.h. */
11508 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
11510 main ()
11512 int x = 5;
11514 return 0;
11516 _ACEOF
11517 rm -f conftest.$ac_objext
11518 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11519 (eval $ac_compile) 2>conftest.er1
11520 ac_status=$?
11521 grep -v '^ *+' conftest.er1 >conftest.err
11522 rm -f conftest.er1
11523 cat conftest.err >&5
11524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11525 (exit $ac_status); } &&
11526 { ac_try='test -z "$ac_c_werror_flag"
11527 || test ! -s conftest.err'
11528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11529 (eval $ac_try) 2>&5
11530 ac_status=$?
11531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11532 (exit $ac_status); }; } &&
11533 { ac_try='test -s conftest.$ac_objext'
11534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11535 (eval $ac_try) 2>&5
11536 ac_status=$?
11537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11538 (exit $ac_status); }; }; then
11539 emacs_cv_lesstif=yes
11540 else
11541 echo "$as_me: failed program was:" >&5
11542 sed 's/^/| /' conftest.$ac_ext >&5
11544 emacs_cv_lesstif=no
11546 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11548 echo "$as_me:$LINENO: result: $emacs_cv_lesstif" >&5
11549 echo "${ECHO_T}$emacs_cv_lesstif" >&6
11550 if test $emacs_cv_lesstif = yes; then
11551 # Make sure this -I option remains in CPPFLAGS after it is set
11552 # back to REAL_CPPFLAGS.
11553 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
11554 # have those other -I options anyway. Ultimately, having this
11555 # directory ultimately in CPPFLAGS will be enough.
11556 REAL_CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
11557 LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
11558 else
11559 CFLAGS=$OLD_CFLAGS
11560 CPPFLAGS=$OLD_CPPFLAGS
11565 ### Is -lXaw3d available?
11566 HAVE_XAW3D=no
11567 if test "${HAVE_X11}" = "yes"; then
11568 if test "${USE_X_TOOLKIT}" != "none" && test "${with_toolkit_scroll_bars}" != "no"; then
11569 echo "$as_me:$LINENO: checking for X11/Xaw3d/Scrollbar.h" >&5
11570 echo $ECHO_N "checking for X11/Xaw3d/Scrollbar.h... $ECHO_C" >&6
11571 if test "${ac_cv_header_X11_Xaw3d_Scrollbar_h+set}" = set; then
11572 echo $ECHO_N "(cached) $ECHO_C" >&6
11573 else
11574 cat >conftest.$ac_ext <<_ACEOF
11575 /* confdefs.h. */
11576 _ACEOF
11577 cat confdefs.h >>conftest.$ac_ext
11578 cat >>conftest.$ac_ext <<_ACEOF
11579 /* end confdefs.h. */
11580 #include <X11/Xaw3d/Scrollbar.h>
11581 _ACEOF
11582 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11583 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11584 ac_status=$?
11585 grep -v '^ *+' conftest.er1 >conftest.err
11586 rm -f conftest.er1
11587 cat conftest.err >&5
11588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11589 (exit $ac_status); } >/dev/null; then
11590 if test -s conftest.err; then
11591 ac_cpp_err=$ac_c_preproc_warn_flag
11592 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11593 else
11594 ac_cpp_err=
11596 else
11597 ac_cpp_err=yes
11599 if test -z "$ac_cpp_err"; then
11600 ac_cv_header_X11_Xaw3d_Scrollbar_h=yes
11601 else
11602 echo "$as_me: failed program was:" >&5
11603 sed 's/^/| /' conftest.$ac_ext >&5
11605 ac_cv_header_X11_Xaw3d_Scrollbar_h=no
11607 rm -f conftest.err conftest.$ac_ext
11609 echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xaw3d_Scrollbar_h" >&5
11610 echo "${ECHO_T}$ac_cv_header_X11_Xaw3d_Scrollbar_h" >&6
11611 if test $ac_cv_header_X11_Xaw3d_Scrollbar_h = yes; then
11612 echo "$as_me:$LINENO: checking for XawScrollbarSetThumb in -lXaw3d" >&5
11613 echo $ECHO_N "checking for XawScrollbarSetThumb in -lXaw3d... $ECHO_C" >&6
11614 if test "${ac_cv_lib_Xaw3d_XawScrollbarSetThumb+set}" = set; then
11615 echo $ECHO_N "(cached) $ECHO_C" >&6
11616 else
11617 ac_check_lib_save_LIBS=$LIBS
11618 LIBS="-lXaw3d $LIBS"
11619 cat >conftest.$ac_ext <<_ACEOF
11620 /* confdefs.h. */
11621 _ACEOF
11622 cat confdefs.h >>conftest.$ac_ext
11623 cat >>conftest.$ac_ext <<_ACEOF
11624 /* end confdefs.h. */
11626 /* Override any gcc2 internal prototype to avoid an error. */
11627 #ifdef __cplusplus
11628 extern "C"
11629 #endif
11630 /* We use char because int might match the return type of a gcc2
11631 builtin and then its argument prototype would still apply. */
11632 char XawScrollbarSetThumb ();
11634 main ()
11636 XawScrollbarSetThumb ();
11638 return 0;
11640 _ACEOF
11641 rm -f conftest.$ac_objext conftest$ac_exeext
11642 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11643 (eval $ac_link) 2>conftest.er1
11644 ac_status=$?
11645 grep -v '^ *+' conftest.er1 >conftest.err
11646 rm -f conftest.er1
11647 cat conftest.err >&5
11648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11649 (exit $ac_status); } &&
11650 { ac_try='test -z "$ac_c_werror_flag"
11651 || test ! -s conftest.err'
11652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11653 (eval $ac_try) 2>&5
11654 ac_status=$?
11655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11656 (exit $ac_status); }; } &&
11657 { ac_try='test -s conftest$ac_exeext'
11658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11659 (eval $ac_try) 2>&5
11660 ac_status=$?
11661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11662 (exit $ac_status); }; }; then
11663 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=yes
11664 else
11665 echo "$as_me: failed program was:" >&5
11666 sed 's/^/| /' conftest.$ac_ext >&5
11668 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=no
11670 rm -f conftest.err conftest.$ac_objext \
11671 conftest$ac_exeext conftest.$ac_ext
11672 LIBS=$ac_check_lib_save_LIBS
11674 echo "$as_me:$LINENO: result: $ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&5
11675 echo "${ECHO_T}$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&6
11676 if test $ac_cv_lib_Xaw3d_XawScrollbarSetThumb = yes; then
11677 HAVE_XAW3D=yes
11683 if test "${HAVE_XAW3D}" = "yes"; then
11685 cat >>confdefs.h <<\_ACEOF
11686 #define HAVE_XAW3D 1
11687 _ACEOF
11695 USE_TOOLKIT_SCROLL_BARS=no
11696 if test "${with_toolkit_scroll_bars}" != "no"; then
11697 if test "${USE_X_TOOLKIT}" != "none"; then
11698 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
11699 cat >>confdefs.h <<\_ACEOF
11700 #define USE_TOOLKIT_SCROLL_BARS 1
11701 _ACEOF
11703 HAVE_XAW3D=no
11704 USE_TOOLKIT_SCROLL_BARS=yes
11705 elif test "${HAVE_XAW3D}" = "yes"; then
11706 cat >>confdefs.h <<\_ACEOF
11707 #define USE_TOOLKIT_SCROLL_BARS 1
11708 _ACEOF
11710 USE_TOOLKIT_SCROLL_BARS=yes
11712 elif test "${HAVE_GTK}" = "yes"; then
11713 cat >>confdefs.h <<\_ACEOF
11714 #define USE_TOOLKIT_SCROLL_BARS 1
11715 _ACEOF
11717 USE_TOOLKIT_SCROLL_BARS=yes
11718 elif test "${HAVE_CARBON}" = "yes"; then
11719 cat >>confdefs.h <<\_ACEOF
11720 #define USE_TOOLKIT_SCROLL_BARS 1
11721 _ACEOF
11723 USE_TOOLKIT_SCROLL_BARS=yes
11727 cat >conftest.$ac_ext <<_ACEOF
11728 /* confdefs.h. */
11729 _ACEOF
11730 cat confdefs.h >>conftest.$ac_ext
11731 cat >>conftest.$ac_ext <<_ACEOF
11732 /* end confdefs.h. */
11734 #include <X11/Xlib.h>
11735 #include <X11/Xresource.h>
11737 main ()
11739 XIMProc callback;
11741 return 0;
11743 _ACEOF
11744 rm -f conftest.$ac_objext
11745 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11746 (eval $ac_compile) 2>conftest.er1
11747 ac_status=$?
11748 grep -v '^ *+' conftest.er1 >conftest.err
11749 rm -f conftest.er1
11750 cat conftest.err >&5
11751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11752 (exit $ac_status); } &&
11753 { ac_try='test -z "$ac_c_werror_flag"
11754 || test ! -s conftest.err'
11755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11756 (eval $ac_try) 2>&5
11757 ac_status=$?
11758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11759 (exit $ac_status); }; } &&
11760 { ac_try='test -s conftest.$ac_objext'
11761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11762 (eval $ac_try) 2>&5
11763 ac_status=$?
11764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11765 (exit $ac_status); }; }; then
11766 HAVE_XIM=yes
11768 cat >>confdefs.h <<\_ACEOF
11769 #define HAVE_XIM 1
11770 _ACEOF
11772 else
11773 echo "$as_me: failed program was:" >&5
11774 sed 's/^/| /' conftest.$ac_ext >&5
11776 HAVE_XIM=no
11778 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11781 if test "${with_xim}" != "no"; then
11783 cat >>confdefs.h <<\_ACEOF
11784 #define USE_XIM 1
11785 _ACEOF
11790 if test "${HAVE_XIM}" != "no"; then
11791 late_CFLAGS=$CFLAGS
11792 if test "$GCC" = yes; then
11793 CFLAGS="$CFLAGS --pedantic-errors"
11795 cat >conftest.$ac_ext <<_ACEOF
11796 /* confdefs.h. */
11797 _ACEOF
11798 cat confdefs.h >>conftest.$ac_ext
11799 cat >>conftest.$ac_ext <<_ACEOF
11800 /* end confdefs.h. */
11802 #include <X11/Xlib.h>
11803 #include <X11/Xresource.h>
11805 main ()
11807 Display *display;
11808 XrmDatabase db;
11809 char *res_name;
11810 char *res_class;
11811 XIMProc callback;
11812 XPointer *client_data;
11813 #ifndef __GNUC__
11814 /* If we're not using GCC, it's probably not XFree86, and this is
11815 probably right, but we can't use something like --pedantic-errors. */
11816 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
11817 char*, XIMProc, XPointer*);
11818 #endif
11819 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
11820 client_data);
11822 return 0;
11824 _ACEOF
11825 rm -f conftest.$ac_objext
11826 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11827 (eval $ac_compile) 2>conftest.er1
11828 ac_status=$?
11829 grep -v '^ *+' conftest.er1 >conftest.err
11830 rm -f conftest.er1
11831 cat conftest.err >&5
11832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11833 (exit $ac_status); } &&
11834 { ac_try='test -z "$ac_c_werror_flag"
11835 || test ! -s conftest.err'
11836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11837 (eval $ac_try) 2>&5
11838 ac_status=$?
11839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11840 (exit $ac_status); }; } &&
11841 { ac_try='test -s conftest.$ac_objext'
11842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11843 (eval $ac_try) 2>&5
11844 ac_status=$?
11845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11846 (exit $ac_status); }; }; then
11847 emacs_cv_arg6_star=yes
11848 else
11849 echo "$as_me: failed program was:" >&5
11850 sed 's/^/| /' conftest.$ac_ext >&5
11853 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11855 if test "$emacs_cv_arg6_star" = yes; then
11856 cat >>confdefs.h <<\_ACEOF
11857 #define XRegisterIMInstantiateCallback_arg6 XPointer*
11858 _ACEOF
11860 else
11861 cat >>confdefs.h <<\_ACEOF
11862 #define XRegisterIMInstantiateCallback_arg6 XPointer
11863 _ACEOF
11866 CFLAGS=$late_CFLAGS
11869 ### Use -lXpm if available, unless `--with-xpm=no'.
11870 HAVE_XPM=no
11871 if test "${HAVE_X11}" = "yes"; then
11872 if test "${with_xpm}" != "no"; then
11873 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
11874 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
11875 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
11876 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
11877 echo $ECHO_N "(cached) $ECHO_C" >&6
11879 echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
11880 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
11881 else
11882 # Is the header compilable?
11883 echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
11884 echo $ECHO_N "checking X11/xpm.h usability... $ECHO_C" >&6
11885 cat >conftest.$ac_ext <<_ACEOF
11886 /* confdefs.h. */
11887 _ACEOF
11888 cat confdefs.h >>conftest.$ac_ext
11889 cat >>conftest.$ac_ext <<_ACEOF
11890 /* end confdefs.h. */
11891 $ac_includes_default
11892 #include <X11/xpm.h>
11893 _ACEOF
11894 rm -f conftest.$ac_objext
11895 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11896 (eval $ac_compile) 2>conftest.er1
11897 ac_status=$?
11898 grep -v '^ *+' conftest.er1 >conftest.err
11899 rm -f conftest.er1
11900 cat conftest.err >&5
11901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11902 (exit $ac_status); } &&
11903 { ac_try='test -z "$ac_c_werror_flag"
11904 || test ! -s conftest.err'
11905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11906 (eval $ac_try) 2>&5
11907 ac_status=$?
11908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11909 (exit $ac_status); }; } &&
11910 { ac_try='test -s conftest.$ac_objext'
11911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11912 (eval $ac_try) 2>&5
11913 ac_status=$?
11914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11915 (exit $ac_status); }; }; then
11916 ac_header_compiler=yes
11917 else
11918 echo "$as_me: failed program was:" >&5
11919 sed 's/^/| /' conftest.$ac_ext >&5
11921 ac_header_compiler=no
11923 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11924 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11925 echo "${ECHO_T}$ac_header_compiler" >&6
11927 # Is the header present?
11928 echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
11929 echo $ECHO_N "checking X11/xpm.h presence... $ECHO_C" >&6
11930 cat >conftest.$ac_ext <<_ACEOF
11931 /* confdefs.h. */
11932 _ACEOF
11933 cat confdefs.h >>conftest.$ac_ext
11934 cat >>conftest.$ac_ext <<_ACEOF
11935 /* end confdefs.h. */
11936 #include <X11/xpm.h>
11937 _ACEOF
11938 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11939 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11940 ac_status=$?
11941 grep -v '^ *+' conftest.er1 >conftest.err
11942 rm -f conftest.er1
11943 cat conftest.err >&5
11944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11945 (exit $ac_status); } >/dev/null; then
11946 if test -s conftest.err; then
11947 ac_cpp_err=$ac_c_preproc_warn_flag
11948 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11949 else
11950 ac_cpp_err=
11952 else
11953 ac_cpp_err=yes
11955 if test -z "$ac_cpp_err"; then
11956 ac_header_preproc=yes
11957 else
11958 echo "$as_me: failed program was:" >&5
11959 sed 's/^/| /' conftest.$ac_ext >&5
11961 ac_header_preproc=no
11963 rm -f conftest.err conftest.$ac_ext
11964 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11965 echo "${ECHO_T}$ac_header_preproc" >&6
11967 # So? What about this header?
11968 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11969 yes:no: )
11970 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
11971 echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11972 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the compiler's result" >&5
11973 echo "$as_me: WARNING: X11/xpm.h: proceeding with the compiler's result" >&2;}
11974 ac_header_preproc=yes
11976 no:yes:* )
11977 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
11978 echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
11979 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5
11980 echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;}
11981 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: see the Autoconf documentation" >&5
11982 echo "$as_me: WARNING: X11/xpm.h: see the Autoconf documentation" >&2;}
11983 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&5
11984 echo "$as_me: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
11985 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
11986 echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
11987 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&5
11988 echo "$as_me: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&2;}
11990 cat <<\_ASBOX
11991 ## ------------------------------------------ ##
11992 ## Report this to the AC_PACKAGE_NAME lists. ##
11993 ## ------------------------------------------ ##
11994 _ASBOX
11996 sed "s/^/$as_me: WARNING: /" >&2
11998 esac
11999 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
12000 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
12001 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
12002 echo $ECHO_N "(cached) $ECHO_C" >&6
12003 else
12004 ac_cv_header_X11_xpm_h=$ac_header_preproc
12006 echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
12007 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
12010 if test $ac_cv_header_X11_xpm_h = yes; then
12011 echo "$as_me:$LINENO: checking for XpmReadFileToPixmap in -lXpm" >&5
12012 echo $ECHO_N "checking for XpmReadFileToPixmap in -lXpm... $ECHO_C" >&6
12013 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
12014 echo $ECHO_N "(cached) $ECHO_C" >&6
12015 else
12016 ac_check_lib_save_LIBS=$LIBS
12017 LIBS="-lXpm -lX11 $LIBS"
12018 cat >conftest.$ac_ext <<_ACEOF
12019 /* confdefs.h. */
12020 _ACEOF
12021 cat confdefs.h >>conftest.$ac_ext
12022 cat >>conftest.$ac_ext <<_ACEOF
12023 /* end confdefs.h. */
12025 /* Override any gcc2 internal prototype to avoid an error. */
12026 #ifdef __cplusplus
12027 extern "C"
12028 #endif
12029 /* We use char because int might match the return type of a gcc2
12030 builtin and then its argument prototype would still apply. */
12031 char XpmReadFileToPixmap ();
12033 main ()
12035 XpmReadFileToPixmap ();
12037 return 0;
12039 _ACEOF
12040 rm -f conftest.$ac_objext conftest$ac_exeext
12041 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12042 (eval $ac_link) 2>conftest.er1
12043 ac_status=$?
12044 grep -v '^ *+' conftest.er1 >conftest.err
12045 rm -f conftest.er1
12046 cat conftest.err >&5
12047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12048 (exit $ac_status); } &&
12049 { ac_try='test -z "$ac_c_werror_flag"
12050 || test ! -s conftest.err'
12051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12052 (eval $ac_try) 2>&5
12053 ac_status=$?
12054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12055 (exit $ac_status); }; } &&
12056 { ac_try='test -s conftest$ac_exeext'
12057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12058 (eval $ac_try) 2>&5
12059 ac_status=$?
12060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12061 (exit $ac_status); }; }; then
12062 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
12063 else
12064 echo "$as_me: failed program was:" >&5
12065 sed 's/^/| /' conftest.$ac_ext >&5
12067 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
12069 rm -f conftest.err conftest.$ac_objext \
12070 conftest$ac_exeext conftest.$ac_ext
12071 LIBS=$ac_check_lib_save_LIBS
12073 echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
12074 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6
12075 if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
12076 HAVE_XPM=yes
12082 if test "${HAVE_XPM}" = "yes"; then
12083 echo "$as_me:$LINENO: checking for XpmReturnAllocPixels preprocessor define" >&5
12084 echo $ECHO_N "checking for XpmReturnAllocPixels preprocessor define... $ECHO_C" >&6
12085 cat >conftest.$ac_ext <<_ACEOF
12086 /* confdefs.h. */
12087 _ACEOF
12088 cat confdefs.h >>conftest.$ac_ext
12089 cat >>conftest.$ac_ext <<_ACEOF
12090 /* end confdefs.h. */
12091 #include "X11/xpm.h"
12092 #ifndef XpmReturnAllocPixels
12093 no_return_alloc_pixels
12094 #endif
12096 _ACEOF
12097 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12098 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then
12099 HAVE_XPM=no
12100 else
12101 HAVE_XPM=yes
12103 rm -f conftest*
12106 if test "${HAVE_XPM}" = "yes"; then
12107 echo "$as_me:$LINENO: result: yes" >&5
12108 echo "${ECHO_T}yes" >&6
12109 else
12110 echo "$as_me:$LINENO: result: no" >&5
12111 echo "${ECHO_T}no" >&6
12116 if test "${HAVE_XPM}" = "yes"; then
12118 cat >>confdefs.h <<\_ACEOF
12119 #define HAVE_XPM 1
12120 _ACEOF
12125 ### Use -ljpeg if available, unless `--with-jpeg=no'.
12126 HAVE_JPEG=no
12127 if test "${HAVE_X11}" = "yes"; then
12128 if test "${with_jpeg}" != "no"; then
12129 if test "${ac_cv_header_jerror_h+set}" = set; then
12130 echo "$as_me:$LINENO: checking for jerror.h" >&5
12131 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6
12132 if test "${ac_cv_header_jerror_h+set}" = set; then
12133 echo $ECHO_N "(cached) $ECHO_C" >&6
12135 echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
12136 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6
12137 else
12138 # Is the header compilable?
12139 echo "$as_me:$LINENO: checking jerror.h usability" >&5
12140 echo $ECHO_N "checking jerror.h usability... $ECHO_C" >&6
12141 cat >conftest.$ac_ext <<_ACEOF
12142 /* confdefs.h. */
12143 _ACEOF
12144 cat confdefs.h >>conftest.$ac_ext
12145 cat >>conftest.$ac_ext <<_ACEOF
12146 /* end confdefs.h. */
12147 $ac_includes_default
12148 #include <jerror.h>
12149 _ACEOF
12150 rm -f conftest.$ac_objext
12151 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12152 (eval $ac_compile) 2>conftest.er1
12153 ac_status=$?
12154 grep -v '^ *+' conftest.er1 >conftest.err
12155 rm -f conftest.er1
12156 cat conftest.err >&5
12157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12158 (exit $ac_status); } &&
12159 { ac_try='test -z "$ac_c_werror_flag"
12160 || test ! -s conftest.err'
12161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12162 (eval $ac_try) 2>&5
12163 ac_status=$?
12164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12165 (exit $ac_status); }; } &&
12166 { ac_try='test -s conftest.$ac_objext'
12167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12168 (eval $ac_try) 2>&5
12169 ac_status=$?
12170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12171 (exit $ac_status); }; }; then
12172 ac_header_compiler=yes
12173 else
12174 echo "$as_me: failed program was:" >&5
12175 sed 's/^/| /' conftest.$ac_ext >&5
12177 ac_header_compiler=no
12179 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12180 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12181 echo "${ECHO_T}$ac_header_compiler" >&6
12183 # Is the header present?
12184 echo "$as_me:$LINENO: checking jerror.h presence" >&5
12185 echo $ECHO_N "checking jerror.h presence... $ECHO_C" >&6
12186 cat >conftest.$ac_ext <<_ACEOF
12187 /* confdefs.h. */
12188 _ACEOF
12189 cat confdefs.h >>conftest.$ac_ext
12190 cat >>conftest.$ac_ext <<_ACEOF
12191 /* end confdefs.h. */
12192 #include <jerror.h>
12193 _ACEOF
12194 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12195 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12196 ac_status=$?
12197 grep -v '^ *+' conftest.er1 >conftest.err
12198 rm -f conftest.er1
12199 cat conftest.err >&5
12200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12201 (exit $ac_status); } >/dev/null; then
12202 if test -s conftest.err; then
12203 ac_cpp_err=$ac_c_preproc_warn_flag
12204 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12205 else
12206 ac_cpp_err=
12208 else
12209 ac_cpp_err=yes
12211 if test -z "$ac_cpp_err"; then
12212 ac_header_preproc=yes
12213 else
12214 echo "$as_me: failed program was:" >&5
12215 sed 's/^/| /' conftest.$ac_ext >&5
12217 ac_header_preproc=no
12219 rm -f conftest.err conftest.$ac_ext
12220 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12221 echo "${ECHO_T}$ac_header_preproc" >&6
12223 # So? What about this header?
12224 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12225 yes:no: )
12226 { echo "$as_me:$LINENO: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&5
12227 echo "$as_me: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12228 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the compiler's result" >&5
12229 echo "$as_me: WARNING: jerror.h: proceeding with the compiler's result" >&2;}
12230 ac_header_preproc=yes
12232 no:yes:* )
12233 { echo "$as_me:$LINENO: WARNING: jerror.h: present but cannot be compiled" >&5
12234 echo "$as_me: WARNING: jerror.h: present but cannot be compiled" >&2;}
12235 { echo "$as_me:$LINENO: WARNING: jerror.h: check for missing prerequisite headers?" >&5
12236 echo "$as_me: WARNING: jerror.h: check for missing prerequisite headers?" >&2;}
12237 { echo "$as_me:$LINENO: WARNING: jerror.h: see the Autoconf documentation" >&5
12238 echo "$as_me: WARNING: jerror.h: see the Autoconf documentation" >&2;}
12239 { echo "$as_me:$LINENO: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&5
12240 echo "$as_me: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&2;}
12241 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result" >&5
12242 echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result" >&2;}
12243 { echo "$as_me:$LINENO: WARNING: jerror.h: in the future, the compiler will take precedence" >&5
12244 echo "$as_me: WARNING: jerror.h: in the future, the compiler will take precedence" >&2;}
12246 cat <<\_ASBOX
12247 ## ------------------------------------------ ##
12248 ## Report this to the AC_PACKAGE_NAME lists. ##
12249 ## ------------------------------------------ ##
12250 _ASBOX
12252 sed "s/^/$as_me: WARNING: /" >&2
12254 esac
12255 echo "$as_me:$LINENO: checking for jerror.h" >&5
12256 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6
12257 if test "${ac_cv_header_jerror_h+set}" = set; then
12258 echo $ECHO_N "(cached) $ECHO_C" >&6
12259 else
12260 ac_cv_header_jerror_h=$ac_header_preproc
12262 echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
12263 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6
12266 if test $ac_cv_header_jerror_h = yes; then
12267 echo "$as_me:$LINENO: checking for jpeg_destroy_compress in -ljpeg" >&5
12268 echo $ECHO_N "checking for jpeg_destroy_compress in -ljpeg... $ECHO_C" >&6
12269 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
12270 echo $ECHO_N "(cached) $ECHO_C" >&6
12271 else
12272 ac_check_lib_save_LIBS=$LIBS
12273 LIBS="-ljpeg $LIBS"
12274 cat >conftest.$ac_ext <<_ACEOF
12275 /* confdefs.h. */
12276 _ACEOF
12277 cat confdefs.h >>conftest.$ac_ext
12278 cat >>conftest.$ac_ext <<_ACEOF
12279 /* end confdefs.h. */
12281 /* Override any gcc2 internal prototype to avoid an error. */
12282 #ifdef __cplusplus
12283 extern "C"
12284 #endif
12285 /* We use char because int might match the return type of a gcc2
12286 builtin and then its argument prototype would still apply. */
12287 char jpeg_destroy_compress ();
12289 main ()
12291 jpeg_destroy_compress ();
12293 return 0;
12295 _ACEOF
12296 rm -f conftest.$ac_objext conftest$ac_exeext
12297 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12298 (eval $ac_link) 2>conftest.er1
12299 ac_status=$?
12300 grep -v '^ *+' conftest.er1 >conftest.err
12301 rm -f conftest.er1
12302 cat conftest.err >&5
12303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12304 (exit $ac_status); } &&
12305 { ac_try='test -z "$ac_c_werror_flag"
12306 || test ! -s conftest.err'
12307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12308 (eval $ac_try) 2>&5
12309 ac_status=$?
12310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12311 (exit $ac_status); }; } &&
12312 { ac_try='test -s conftest$ac_exeext'
12313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12314 (eval $ac_try) 2>&5
12315 ac_status=$?
12316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12317 (exit $ac_status); }; }; then
12318 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
12319 else
12320 echo "$as_me: failed program was:" >&5
12321 sed 's/^/| /' conftest.$ac_ext >&5
12323 ac_cv_lib_jpeg_jpeg_destroy_compress=no
12325 rm -f conftest.err conftest.$ac_objext \
12326 conftest$ac_exeext conftest.$ac_ext
12327 LIBS=$ac_check_lib_save_LIBS
12329 echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
12330 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6
12331 if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then
12332 HAVE_JPEG=yes
12341 if test "${HAVE_JPEG}" = "yes"; then
12342 cat >>confdefs.h <<\_ACEOF
12343 #define HAVE_JPEG 1
12344 _ACEOF
12346 cat >conftest.$ac_ext <<_ACEOF
12347 /* confdefs.h. */
12348 _ACEOF
12349 cat confdefs.h >>conftest.$ac_ext
12350 cat >>conftest.$ac_ext <<_ACEOF
12351 /* end confdefs.h. */
12352 #include <jpeglib.h>
12353 version=JPEG_LIB_VERSION
12355 _ACEOF
12356 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12357 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then
12358 cat >>confdefs.h <<\_ACEOF
12359 #define HAVE_JPEG 1
12360 _ACEOF
12362 else
12363 { echo "$as_me:$LINENO: WARNING: libjpeg found, but not version 6b or later" >&5
12364 echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
12365 HAVE_JPEG=no
12367 rm -f conftest*
12372 ### Use -lpng if available, unless `--with-png=no'.
12373 HAVE_PNG=no
12374 if test "${HAVE_X11}" = "yes"; then
12375 if test "${with_png}" != "no"; then
12376 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
12377 # in /usr/include/libpng.
12380 for ac_header in png.h libpng/png.h
12382 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12383 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12384 echo "$as_me:$LINENO: checking for $ac_header" >&5
12385 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12386 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12387 echo $ECHO_N "(cached) $ECHO_C" >&6
12389 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12390 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12391 else
12392 # Is the header compilable?
12393 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12394 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12395 cat >conftest.$ac_ext <<_ACEOF
12396 /* confdefs.h. */
12397 _ACEOF
12398 cat confdefs.h >>conftest.$ac_ext
12399 cat >>conftest.$ac_ext <<_ACEOF
12400 /* end confdefs.h. */
12401 $ac_includes_default
12402 #include <$ac_header>
12403 _ACEOF
12404 rm -f conftest.$ac_objext
12405 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12406 (eval $ac_compile) 2>conftest.er1
12407 ac_status=$?
12408 grep -v '^ *+' conftest.er1 >conftest.err
12409 rm -f conftest.er1
12410 cat conftest.err >&5
12411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12412 (exit $ac_status); } &&
12413 { ac_try='test -z "$ac_c_werror_flag"
12414 || test ! -s conftest.err'
12415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12416 (eval $ac_try) 2>&5
12417 ac_status=$?
12418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12419 (exit $ac_status); }; } &&
12420 { ac_try='test -s conftest.$ac_objext'
12421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12422 (eval $ac_try) 2>&5
12423 ac_status=$?
12424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12425 (exit $ac_status); }; }; then
12426 ac_header_compiler=yes
12427 else
12428 echo "$as_me: failed program was:" >&5
12429 sed 's/^/| /' conftest.$ac_ext >&5
12431 ac_header_compiler=no
12433 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12434 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12435 echo "${ECHO_T}$ac_header_compiler" >&6
12437 # Is the header present?
12438 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12439 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12440 cat >conftest.$ac_ext <<_ACEOF
12441 /* confdefs.h. */
12442 _ACEOF
12443 cat confdefs.h >>conftest.$ac_ext
12444 cat >>conftest.$ac_ext <<_ACEOF
12445 /* end confdefs.h. */
12446 #include <$ac_header>
12447 _ACEOF
12448 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12449 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12450 ac_status=$?
12451 grep -v '^ *+' conftest.er1 >conftest.err
12452 rm -f conftest.er1
12453 cat conftest.err >&5
12454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12455 (exit $ac_status); } >/dev/null; then
12456 if test -s conftest.err; then
12457 ac_cpp_err=$ac_c_preproc_warn_flag
12458 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12459 else
12460 ac_cpp_err=
12462 else
12463 ac_cpp_err=yes
12465 if test -z "$ac_cpp_err"; then
12466 ac_header_preproc=yes
12467 else
12468 echo "$as_me: failed program was:" >&5
12469 sed 's/^/| /' conftest.$ac_ext >&5
12471 ac_header_preproc=no
12473 rm -f conftest.err conftest.$ac_ext
12474 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12475 echo "${ECHO_T}$ac_header_preproc" >&6
12477 # So? What about this header?
12478 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12479 yes:no: )
12480 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12481 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12482 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12483 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12484 ac_header_preproc=yes
12486 no:yes:* )
12487 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12488 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12489 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12490 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12491 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12492 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12493 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12494 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12495 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12496 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12497 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12498 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12500 cat <<\_ASBOX
12501 ## ------------------------------------------ ##
12502 ## Report this to the AC_PACKAGE_NAME lists. ##
12503 ## ------------------------------------------ ##
12504 _ASBOX
12506 sed "s/^/$as_me: WARNING: /" >&2
12508 esac
12509 echo "$as_me:$LINENO: checking for $ac_header" >&5
12510 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12511 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12512 echo $ECHO_N "(cached) $ECHO_C" >&6
12513 else
12514 eval "$as_ac_Header=\$ac_header_preproc"
12516 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12517 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12520 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12521 cat >>confdefs.h <<_ACEOF
12522 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12523 _ACEOF
12527 done
12529 if test "$ac_cv_header_png_h" = yes || test "$ac_cv_header_libpng_png_h" = yes ; then
12530 echo "$as_me:$LINENO: checking for png_get_channels in -lpng" >&5
12531 echo $ECHO_N "checking for png_get_channels in -lpng... $ECHO_C" >&6
12532 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then
12533 echo $ECHO_N "(cached) $ECHO_C" >&6
12534 else
12535 ac_check_lib_save_LIBS=$LIBS
12536 LIBS="-lpng -lz -lm $LIBS"
12537 cat >conftest.$ac_ext <<_ACEOF
12538 /* confdefs.h. */
12539 _ACEOF
12540 cat confdefs.h >>conftest.$ac_ext
12541 cat >>conftest.$ac_ext <<_ACEOF
12542 /* end confdefs.h. */
12544 /* Override any gcc2 internal prototype to avoid an error. */
12545 #ifdef __cplusplus
12546 extern "C"
12547 #endif
12548 /* We use char because int might match the return type of a gcc2
12549 builtin and then its argument prototype would still apply. */
12550 char png_get_channels ();
12552 main ()
12554 png_get_channels ();
12556 return 0;
12558 _ACEOF
12559 rm -f conftest.$ac_objext conftest$ac_exeext
12560 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12561 (eval $ac_link) 2>conftest.er1
12562 ac_status=$?
12563 grep -v '^ *+' conftest.er1 >conftest.err
12564 rm -f conftest.er1
12565 cat conftest.err >&5
12566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12567 (exit $ac_status); } &&
12568 { ac_try='test -z "$ac_c_werror_flag"
12569 || test ! -s conftest.err'
12570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12571 (eval $ac_try) 2>&5
12572 ac_status=$?
12573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12574 (exit $ac_status); }; } &&
12575 { ac_try='test -s conftest$ac_exeext'
12576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12577 (eval $ac_try) 2>&5
12578 ac_status=$?
12579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12580 (exit $ac_status); }; }; then
12581 ac_cv_lib_png_png_get_channels=yes
12582 else
12583 echo "$as_me: failed program was:" >&5
12584 sed 's/^/| /' conftest.$ac_ext >&5
12586 ac_cv_lib_png_png_get_channels=no
12588 rm -f conftest.err conftest.$ac_objext \
12589 conftest$ac_exeext conftest.$ac_ext
12590 LIBS=$ac_check_lib_save_LIBS
12592 echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_get_channels" >&5
12593 echo "${ECHO_T}$ac_cv_lib_png_png_get_channels" >&6
12594 if test $ac_cv_lib_png_png_get_channels = yes; then
12595 HAVE_PNG=yes
12601 if test "${HAVE_PNG}" = "yes"; then
12603 cat >>confdefs.h <<\_ACEOF
12604 #define HAVE_PNG 1
12605 _ACEOF
12610 ### Use -ltiff if available, unless `--with-tiff=no'.
12611 HAVE_TIFF=no
12612 if test "${HAVE_X11}" = "yes"; then
12613 if test "${with_tiff}" != "no"; then
12614 if test "${ac_cv_header_tiffio_h+set}" = set; then
12615 echo "$as_me:$LINENO: checking for tiffio.h" >&5
12616 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
12617 if test "${ac_cv_header_tiffio_h+set}" = set; then
12618 echo $ECHO_N "(cached) $ECHO_C" >&6
12620 echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
12621 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
12622 else
12623 # Is the header compilable?
12624 echo "$as_me:$LINENO: checking tiffio.h usability" >&5
12625 echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6
12626 cat >conftest.$ac_ext <<_ACEOF
12627 /* confdefs.h. */
12628 _ACEOF
12629 cat confdefs.h >>conftest.$ac_ext
12630 cat >>conftest.$ac_ext <<_ACEOF
12631 /* end confdefs.h. */
12632 $ac_includes_default
12633 #include <tiffio.h>
12634 _ACEOF
12635 rm -f conftest.$ac_objext
12636 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12637 (eval $ac_compile) 2>conftest.er1
12638 ac_status=$?
12639 grep -v '^ *+' conftest.er1 >conftest.err
12640 rm -f conftest.er1
12641 cat conftest.err >&5
12642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12643 (exit $ac_status); } &&
12644 { ac_try='test -z "$ac_c_werror_flag"
12645 || test ! -s conftest.err'
12646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12647 (eval $ac_try) 2>&5
12648 ac_status=$?
12649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12650 (exit $ac_status); }; } &&
12651 { ac_try='test -s conftest.$ac_objext'
12652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12653 (eval $ac_try) 2>&5
12654 ac_status=$?
12655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12656 (exit $ac_status); }; }; then
12657 ac_header_compiler=yes
12658 else
12659 echo "$as_me: failed program was:" >&5
12660 sed 's/^/| /' conftest.$ac_ext >&5
12662 ac_header_compiler=no
12664 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12665 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12666 echo "${ECHO_T}$ac_header_compiler" >&6
12668 # Is the header present?
12669 echo "$as_me:$LINENO: checking tiffio.h presence" >&5
12670 echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6
12671 cat >conftest.$ac_ext <<_ACEOF
12672 /* confdefs.h. */
12673 _ACEOF
12674 cat confdefs.h >>conftest.$ac_ext
12675 cat >>conftest.$ac_ext <<_ACEOF
12676 /* end confdefs.h. */
12677 #include <tiffio.h>
12678 _ACEOF
12679 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12680 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12681 ac_status=$?
12682 grep -v '^ *+' conftest.er1 >conftest.err
12683 rm -f conftest.er1
12684 cat conftest.err >&5
12685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12686 (exit $ac_status); } >/dev/null; then
12687 if test -s conftest.err; then
12688 ac_cpp_err=$ac_c_preproc_warn_flag
12689 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12690 else
12691 ac_cpp_err=
12693 else
12694 ac_cpp_err=yes
12696 if test -z "$ac_cpp_err"; then
12697 ac_header_preproc=yes
12698 else
12699 echo "$as_me: failed program was:" >&5
12700 sed 's/^/| /' conftest.$ac_ext >&5
12702 ac_header_preproc=no
12704 rm -f conftest.err conftest.$ac_ext
12705 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12706 echo "${ECHO_T}$ac_header_preproc" >&6
12708 # So? What about this header?
12709 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12710 yes:no: )
12711 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
12712 echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12713 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
12714 echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
12715 ac_header_preproc=yes
12717 no:yes:* )
12718 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
12719 echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
12720 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
12721 echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
12722 { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
12723 echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
12724 { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
12725 echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
12726 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
12727 echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
12728 { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
12729 echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
12731 cat <<\_ASBOX
12732 ## ------------------------------------------ ##
12733 ## Report this to the AC_PACKAGE_NAME lists. ##
12734 ## ------------------------------------------ ##
12735 _ASBOX
12737 sed "s/^/$as_me: WARNING: /" >&2
12739 esac
12740 echo "$as_me:$LINENO: checking for tiffio.h" >&5
12741 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
12742 if test "${ac_cv_header_tiffio_h+set}" = set; then
12743 echo $ECHO_N "(cached) $ECHO_C" >&6
12744 else
12745 ac_cv_header_tiffio_h=$ac_header_preproc
12747 echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
12748 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
12751 if test $ac_cv_header_tiffio_h = yes; then
12752 tifflibs="-lz -lm"
12753 # At least one tiff package requires the jpeg library.
12754 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
12755 echo "$as_me:$LINENO: checking for TIFFGetVersion in -ltiff" >&5
12756 echo $ECHO_N "checking for TIFFGetVersion in -ltiff... $ECHO_C" >&6
12757 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
12758 echo $ECHO_N "(cached) $ECHO_C" >&6
12759 else
12760 ac_check_lib_save_LIBS=$LIBS
12761 LIBS="-ltiff $tifflibs $LIBS"
12762 cat >conftest.$ac_ext <<_ACEOF
12763 /* confdefs.h. */
12764 _ACEOF
12765 cat confdefs.h >>conftest.$ac_ext
12766 cat >>conftest.$ac_ext <<_ACEOF
12767 /* end confdefs.h. */
12769 /* Override any gcc2 internal prototype to avoid an error. */
12770 #ifdef __cplusplus
12771 extern "C"
12772 #endif
12773 /* We use char because int might match the return type of a gcc2
12774 builtin and then its argument prototype would still apply. */
12775 char TIFFGetVersion ();
12777 main ()
12779 TIFFGetVersion ();
12781 return 0;
12783 _ACEOF
12784 rm -f conftest.$ac_objext conftest$ac_exeext
12785 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12786 (eval $ac_link) 2>conftest.er1
12787 ac_status=$?
12788 grep -v '^ *+' conftest.er1 >conftest.err
12789 rm -f conftest.er1
12790 cat conftest.err >&5
12791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12792 (exit $ac_status); } &&
12793 { ac_try='test -z "$ac_c_werror_flag"
12794 || test ! -s conftest.err'
12795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12796 (eval $ac_try) 2>&5
12797 ac_status=$?
12798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12799 (exit $ac_status); }; } &&
12800 { ac_try='test -s conftest$ac_exeext'
12801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12802 (eval $ac_try) 2>&5
12803 ac_status=$?
12804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12805 (exit $ac_status); }; }; then
12806 ac_cv_lib_tiff_TIFFGetVersion=yes
12807 else
12808 echo "$as_me: failed program was:" >&5
12809 sed 's/^/| /' conftest.$ac_ext >&5
12811 ac_cv_lib_tiff_TIFFGetVersion=no
12813 rm -f conftest.err conftest.$ac_objext \
12814 conftest$ac_exeext conftest.$ac_ext
12815 LIBS=$ac_check_lib_save_LIBS
12817 echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
12818 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFGetVersion" >&6
12819 if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then
12820 HAVE_TIFF=yes
12828 if test "${HAVE_TIFF}" = "yes"; then
12830 cat >>confdefs.h <<\_ACEOF
12831 #define HAVE_TIFF 1
12832 _ACEOF
12837 ### Use -lgif if available, unless `--with-gif=no'.
12838 HAVE_GIF=no
12839 if test "${HAVE_X11}" = "yes"; then
12840 if test "${with_gif}" != "no"; then
12841 if test "${ac_cv_header_gif_lib_h+set}" = set; then
12842 echo "$as_me:$LINENO: checking for gif_lib.h" >&5
12843 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6
12844 if test "${ac_cv_header_gif_lib_h+set}" = set; then
12845 echo $ECHO_N "(cached) $ECHO_C" >&6
12847 echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
12848 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6
12849 else
12850 # Is the header compilable?
12851 echo "$as_me:$LINENO: checking gif_lib.h usability" >&5
12852 echo $ECHO_N "checking gif_lib.h usability... $ECHO_C" >&6
12853 cat >conftest.$ac_ext <<_ACEOF
12854 /* confdefs.h. */
12855 _ACEOF
12856 cat confdefs.h >>conftest.$ac_ext
12857 cat >>conftest.$ac_ext <<_ACEOF
12858 /* end confdefs.h. */
12859 $ac_includes_default
12860 #include <gif_lib.h>
12861 _ACEOF
12862 rm -f conftest.$ac_objext
12863 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12864 (eval $ac_compile) 2>conftest.er1
12865 ac_status=$?
12866 grep -v '^ *+' conftest.er1 >conftest.err
12867 rm -f conftest.er1
12868 cat conftest.err >&5
12869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12870 (exit $ac_status); } &&
12871 { ac_try='test -z "$ac_c_werror_flag"
12872 || test ! -s conftest.err'
12873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12874 (eval $ac_try) 2>&5
12875 ac_status=$?
12876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12877 (exit $ac_status); }; } &&
12878 { ac_try='test -s conftest.$ac_objext'
12879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12880 (eval $ac_try) 2>&5
12881 ac_status=$?
12882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12883 (exit $ac_status); }; }; then
12884 ac_header_compiler=yes
12885 else
12886 echo "$as_me: failed program was:" >&5
12887 sed 's/^/| /' conftest.$ac_ext >&5
12889 ac_header_compiler=no
12891 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12892 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12893 echo "${ECHO_T}$ac_header_compiler" >&6
12895 # Is the header present?
12896 echo "$as_me:$LINENO: checking gif_lib.h presence" >&5
12897 echo $ECHO_N "checking gif_lib.h presence... $ECHO_C" >&6
12898 cat >conftest.$ac_ext <<_ACEOF
12899 /* confdefs.h. */
12900 _ACEOF
12901 cat confdefs.h >>conftest.$ac_ext
12902 cat >>conftest.$ac_ext <<_ACEOF
12903 /* end confdefs.h. */
12904 #include <gif_lib.h>
12905 _ACEOF
12906 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12907 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12908 ac_status=$?
12909 grep -v '^ *+' conftest.er1 >conftest.err
12910 rm -f conftest.er1
12911 cat conftest.err >&5
12912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12913 (exit $ac_status); } >/dev/null; then
12914 if test -s conftest.err; then
12915 ac_cpp_err=$ac_c_preproc_warn_flag
12916 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12917 else
12918 ac_cpp_err=
12920 else
12921 ac_cpp_err=yes
12923 if test -z "$ac_cpp_err"; then
12924 ac_header_preproc=yes
12925 else
12926 echo "$as_me: failed program was:" >&5
12927 sed 's/^/| /' conftest.$ac_ext >&5
12929 ac_header_preproc=no
12931 rm -f conftest.err conftest.$ac_ext
12932 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12933 echo "${ECHO_T}$ac_header_preproc" >&6
12935 # So? What about this header?
12936 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12937 yes:no: )
12938 { echo "$as_me:$LINENO: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&5
12939 echo "$as_me: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12940 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the compiler's result" >&5
12941 echo "$as_me: WARNING: gif_lib.h: proceeding with the compiler's result" >&2;}
12942 ac_header_preproc=yes
12944 no:yes:* )
12945 { echo "$as_me:$LINENO: WARNING: gif_lib.h: present but cannot be compiled" >&5
12946 echo "$as_me: WARNING: gif_lib.h: present but cannot be compiled" >&2;}
12947 { echo "$as_me:$LINENO: WARNING: gif_lib.h: check for missing prerequisite headers?" >&5
12948 echo "$as_me: WARNING: gif_lib.h: check for missing prerequisite headers?" >&2;}
12949 { echo "$as_me:$LINENO: WARNING: gif_lib.h: see the Autoconf documentation" >&5
12950 echo "$as_me: WARNING: gif_lib.h: see the Autoconf documentation" >&2;}
12951 { echo "$as_me:$LINENO: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&5
12952 echo "$as_me: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&2;}
12953 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5
12954 echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;}
12955 { echo "$as_me:$LINENO: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&5
12956 echo "$as_me: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&2;}
12958 cat <<\_ASBOX
12959 ## ------------------------------------------ ##
12960 ## Report this to the AC_PACKAGE_NAME lists. ##
12961 ## ------------------------------------------ ##
12962 _ASBOX
12964 sed "s/^/$as_me: WARNING: /" >&2
12966 esac
12967 echo "$as_me:$LINENO: checking for gif_lib.h" >&5
12968 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6
12969 if test "${ac_cv_header_gif_lib_h+set}" = set; then
12970 echo $ECHO_N "(cached) $ECHO_C" >&6
12971 else
12972 ac_cv_header_gif_lib_h=$ac_header_preproc
12974 echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
12975 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6
12978 if test $ac_cv_header_gif_lib_h = yes; then
12979 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
12980 # Earlier versions can crash Emacs.
12981 echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lungif" >&5
12982 echo $ECHO_N "checking for EGifPutExtensionLast in -lungif... $ECHO_C" >&6
12983 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then
12984 echo $ECHO_N "(cached) $ECHO_C" >&6
12985 else
12986 ac_check_lib_save_LIBS=$LIBS
12987 LIBS="-lungif $LIBS"
12988 cat >conftest.$ac_ext <<_ACEOF
12989 /* confdefs.h. */
12990 _ACEOF
12991 cat confdefs.h >>conftest.$ac_ext
12992 cat >>conftest.$ac_ext <<_ACEOF
12993 /* end confdefs.h. */
12995 /* Override any gcc2 internal prototype to avoid an error. */
12996 #ifdef __cplusplus
12997 extern "C"
12998 #endif
12999 /* We use char because int might match the return type of a gcc2
13000 builtin and then its argument prototype would still apply. */
13001 char EGifPutExtensionLast ();
13003 main ()
13005 EGifPutExtensionLast ();
13007 return 0;
13009 _ACEOF
13010 rm -f conftest.$ac_objext conftest$ac_exeext
13011 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13012 (eval $ac_link) 2>conftest.er1
13013 ac_status=$?
13014 grep -v '^ *+' conftest.er1 >conftest.err
13015 rm -f conftest.er1
13016 cat conftest.err >&5
13017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13018 (exit $ac_status); } &&
13019 { ac_try='test -z "$ac_c_werror_flag"
13020 || test ! -s conftest.err'
13021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13022 (eval $ac_try) 2>&5
13023 ac_status=$?
13024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13025 (exit $ac_status); }; } &&
13026 { ac_try='test -s conftest$ac_exeext'
13027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13028 (eval $ac_try) 2>&5
13029 ac_status=$?
13030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13031 (exit $ac_status); }; }; then
13032 ac_cv_lib_ungif_EGifPutExtensionLast=yes
13033 else
13034 echo "$as_me: failed program was:" >&5
13035 sed 's/^/| /' conftest.$ac_ext >&5
13037 ac_cv_lib_ungif_EGifPutExtensionLast=no
13039 rm -f conftest.err conftest.$ac_objext \
13040 conftest$ac_exeext conftest.$ac_ext
13041 LIBS=$ac_check_lib_save_LIBS
13043 echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
13044 echo "${ECHO_T}$ac_cv_lib_ungif_EGifPutExtensionLast" >&6
13045 if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then
13046 HAVE_GIF=yes
13054 if test "${HAVE_GIF}" = "yes"; then
13056 cat >>confdefs.h <<\_ACEOF
13057 #define HAVE_GIF 1
13058 _ACEOF
13063 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
13064 echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
13065 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6
13066 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
13067 echo $ECHO_N "(cached) $ECHO_C" >&6
13069 echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
13070 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6
13071 else
13072 # Is the header compilable?
13073 echo "$as_me:$LINENO: checking malloc/malloc.h usability" >&5
13074 echo $ECHO_N "checking malloc/malloc.h usability... $ECHO_C" >&6
13075 cat >conftest.$ac_ext <<_ACEOF
13076 /* confdefs.h. */
13077 _ACEOF
13078 cat confdefs.h >>conftest.$ac_ext
13079 cat >>conftest.$ac_ext <<_ACEOF
13080 /* end confdefs.h. */
13081 $ac_includes_default
13082 #include <malloc/malloc.h>
13083 _ACEOF
13084 rm -f conftest.$ac_objext
13085 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13086 (eval $ac_compile) 2>conftest.er1
13087 ac_status=$?
13088 grep -v '^ *+' conftest.er1 >conftest.err
13089 rm -f conftest.er1
13090 cat conftest.err >&5
13091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13092 (exit $ac_status); } &&
13093 { ac_try='test -z "$ac_c_werror_flag"
13094 || test ! -s conftest.err'
13095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13096 (eval $ac_try) 2>&5
13097 ac_status=$?
13098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13099 (exit $ac_status); }; } &&
13100 { ac_try='test -s conftest.$ac_objext'
13101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13102 (eval $ac_try) 2>&5
13103 ac_status=$?
13104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13105 (exit $ac_status); }; }; then
13106 ac_header_compiler=yes
13107 else
13108 echo "$as_me: failed program was:" >&5
13109 sed 's/^/| /' conftest.$ac_ext >&5
13111 ac_header_compiler=no
13113 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13114 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13115 echo "${ECHO_T}$ac_header_compiler" >&6
13117 # Is the header present?
13118 echo "$as_me:$LINENO: checking malloc/malloc.h presence" >&5
13119 echo $ECHO_N "checking malloc/malloc.h presence... $ECHO_C" >&6
13120 cat >conftest.$ac_ext <<_ACEOF
13121 /* confdefs.h. */
13122 _ACEOF
13123 cat confdefs.h >>conftest.$ac_ext
13124 cat >>conftest.$ac_ext <<_ACEOF
13125 /* end confdefs.h. */
13126 #include <malloc/malloc.h>
13127 _ACEOF
13128 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13129 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13130 ac_status=$?
13131 grep -v '^ *+' conftest.er1 >conftest.err
13132 rm -f conftest.er1
13133 cat conftest.err >&5
13134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13135 (exit $ac_status); } >/dev/null; then
13136 if test -s conftest.err; then
13137 ac_cpp_err=$ac_c_preproc_warn_flag
13138 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13139 else
13140 ac_cpp_err=
13142 else
13143 ac_cpp_err=yes
13145 if test -z "$ac_cpp_err"; then
13146 ac_header_preproc=yes
13147 else
13148 echo "$as_me: failed program was:" >&5
13149 sed 's/^/| /' conftest.$ac_ext >&5
13151 ac_header_preproc=no
13153 rm -f conftest.err conftest.$ac_ext
13154 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13155 echo "${ECHO_T}$ac_header_preproc" >&6
13157 # So? What about this header?
13158 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13159 yes:no: )
13160 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&5
13161 echo "$as_me: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13162 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&5
13163 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&2;}
13164 ac_header_preproc=yes
13166 no:yes:* )
13167 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: present but cannot be compiled" >&5
13168 echo "$as_me: WARNING: malloc/malloc.h: present but cannot be compiled" >&2;}
13169 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&5
13170 echo "$as_me: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&2;}
13171 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: see the Autoconf documentation" >&5
13172 echo "$as_me: WARNING: malloc/malloc.h: see the Autoconf documentation" >&2;}
13173 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&5
13174 echo "$as_me: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&2;}
13175 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&5
13176 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&2;}
13177 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&5
13178 echo "$as_me: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&2;}
13180 cat <<\_ASBOX
13181 ## ------------------------------------------ ##
13182 ## Report this to the AC_PACKAGE_NAME lists. ##
13183 ## ------------------------------------------ ##
13184 _ASBOX
13186 sed "s/^/$as_me: WARNING: /" >&2
13188 esac
13189 echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
13190 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6
13191 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
13192 echo $ECHO_N "(cached) $ECHO_C" >&6
13193 else
13194 ac_cv_header_malloc_malloc_h=$ac_header_preproc
13196 echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
13197 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6
13200 if test $ac_cv_header_malloc_malloc_h = yes; then
13202 cat >>confdefs.h <<\_ACEOF
13203 #define HAVE_MALLOC_MALLOC_H 1
13204 _ACEOF
13210 ### Use Mac OS X Carbon API to implement GUI.
13211 if test "${HAVE_CARBON}" = "yes"; then
13213 cat >>confdefs.h <<\_ACEOF
13214 #define HAVE_CARBON 1
13215 _ACEOF
13217 ## Specify the install directory
13218 carbon_appdir=
13219 if test "${carbon_appdir_x}" != ""; then
13220 case ${carbon_appdir_x} in
13221 y | ye | yes) carbon_appdir=/Applications ;;
13222 * ) carbon_appdir=${carbon_appdir_x} ;;
13223 esac
13225 # We also have mouse menus.
13226 HAVE_MENUS=yes
13229 ### Use session management (-lSM -lICE) if available
13230 HAVE_X_SM=no
13231 if test "${HAVE_X11}" = "yes"; then
13232 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
13233 echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
13234 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6
13235 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
13236 echo $ECHO_N "(cached) $ECHO_C" >&6
13238 echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
13239 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6
13240 else
13241 # Is the header compilable?
13242 echo "$as_me:$LINENO: checking X11/SM/SMlib.h usability" >&5
13243 echo $ECHO_N "checking X11/SM/SMlib.h usability... $ECHO_C" >&6
13244 cat >conftest.$ac_ext <<_ACEOF
13245 /* confdefs.h. */
13246 _ACEOF
13247 cat confdefs.h >>conftest.$ac_ext
13248 cat >>conftest.$ac_ext <<_ACEOF
13249 /* end confdefs.h. */
13250 $ac_includes_default
13251 #include <X11/SM/SMlib.h>
13252 _ACEOF
13253 rm -f conftest.$ac_objext
13254 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13255 (eval $ac_compile) 2>conftest.er1
13256 ac_status=$?
13257 grep -v '^ *+' conftest.er1 >conftest.err
13258 rm -f conftest.er1
13259 cat conftest.err >&5
13260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13261 (exit $ac_status); } &&
13262 { ac_try='test -z "$ac_c_werror_flag"
13263 || test ! -s conftest.err'
13264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13265 (eval $ac_try) 2>&5
13266 ac_status=$?
13267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13268 (exit $ac_status); }; } &&
13269 { ac_try='test -s conftest.$ac_objext'
13270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13271 (eval $ac_try) 2>&5
13272 ac_status=$?
13273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13274 (exit $ac_status); }; }; then
13275 ac_header_compiler=yes
13276 else
13277 echo "$as_me: failed program was:" >&5
13278 sed 's/^/| /' conftest.$ac_ext >&5
13280 ac_header_compiler=no
13282 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13283 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13284 echo "${ECHO_T}$ac_header_compiler" >&6
13286 # Is the header present?
13287 echo "$as_me:$LINENO: checking X11/SM/SMlib.h presence" >&5
13288 echo $ECHO_N "checking X11/SM/SMlib.h presence... $ECHO_C" >&6
13289 cat >conftest.$ac_ext <<_ACEOF
13290 /* confdefs.h. */
13291 _ACEOF
13292 cat confdefs.h >>conftest.$ac_ext
13293 cat >>conftest.$ac_ext <<_ACEOF
13294 /* end confdefs.h. */
13295 #include <X11/SM/SMlib.h>
13296 _ACEOF
13297 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13298 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13299 ac_status=$?
13300 grep -v '^ *+' conftest.er1 >conftest.err
13301 rm -f conftest.er1
13302 cat conftest.err >&5
13303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13304 (exit $ac_status); } >/dev/null; then
13305 if test -s conftest.err; then
13306 ac_cpp_err=$ac_c_preproc_warn_flag
13307 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13308 else
13309 ac_cpp_err=
13311 else
13312 ac_cpp_err=yes
13314 if test -z "$ac_cpp_err"; then
13315 ac_header_preproc=yes
13316 else
13317 echo "$as_me: failed program was:" >&5
13318 sed 's/^/| /' conftest.$ac_ext >&5
13320 ac_header_preproc=no
13322 rm -f conftest.err conftest.$ac_ext
13323 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13324 echo "${ECHO_T}$ac_header_preproc" >&6
13326 # So? What about this header?
13327 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13328 yes:no: )
13329 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
13330 echo "$as_me: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13331 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&5
13332 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&2;}
13333 ac_header_preproc=yes
13335 no:yes:* )
13336 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&5
13337 echo "$as_me: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&2;}
13338 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&5
13339 echo "$as_me: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&2;}
13340 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&5
13341 echo "$as_me: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&2;}
13342 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&5
13343 echo "$as_me: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
13344 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
13345 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;}
13346 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&5
13347 echo "$as_me: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&2;}
13349 cat <<\_ASBOX
13350 ## ------------------------------------------ ##
13351 ## Report this to the AC_PACKAGE_NAME lists. ##
13352 ## ------------------------------------------ ##
13353 _ASBOX
13355 sed "s/^/$as_me: WARNING: /" >&2
13357 esac
13358 echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
13359 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6
13360 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
13361 echo $ECHO_N "(cached) $ECHO_C" >&6
13362 else
13363 ac_cv_header_X11_SM_SMlib_h=$ac_header_preproc
13365 echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
13366 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6
13369 if test $ac_cv_header_X11_SM_SMlib_h = yes; then
13370 echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
13371 echo $ECHO_N "checking for SmcOpenConnection in -lSM... $ECHO_C" >&6
13372 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
13373 echo $ECHO_N "(cached) $ECHO_C" >&6
13374 else
13375 ac_check_lib_save_LIBS=$LIBS
13376 LIBS="-lSM -lICE $LIBS"
13377 cat >conftest.$ac_ext <<_ACEOF
13378 /* confdefs.h. */
13379 _ACEOF
13380 cat confdefs.h >>conftest.$ac_ext
13381 cat >>conftest.$ac_ext <<_ACEOF
13382 /* end confdefs.h. */
13384 /* Override any gcc2 internal prototype to avoid an error. */
13385 #ifdef __cplusplus
13386 extern "C"
13387 #endif
13388 /* We use char because int might match the return type of a gcc2
13389 builtin and then its argument prototype would still apply. */
13390 char SmcOpenConnection ();
13392 main ()
13394 SmcOpenConnection ();
13396 return 0;
13398 _ACEOF
13399 rm -f conftest.$ac_objext conftest$ac_exeext
13400 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13401 (eval $ac_link) 2>conftest.er1
13402 ac_status=$?
13403 grep -v '^ *+' conftest.er1 >conftest.err
13404 rm -f conftest.er1
13405 cat conftest.err >&5
13406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13407 (exit $ac_status); } &&
13408 { ac_try='test -z "$ac_c_werror_flag"
13409 || test ! -s conftest.err'
13410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13411 (eval $ac_try) 2>&5
13412 ac_status=$?
13413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13414 (exit $ac_status); }; } &&
13415 { ac_try='test -s conftest$ac_exeext'
13416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13417 (eval $ac_try) 2>&5
13418 ac_status=$?
13419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13420 (exit $ac_status); }; }; then
13421 ac_cv_lib_SM_SmcOpenConnection=yes
13422 else
13423 echo "$as_me: failed program was:" >&5
13424 sed 's/^/| /' conftest.$ac_ext >&5
13426 ac_cv_lib_SM_SmcOpenConnection=no
13428 rm -f conftest.err conftest.$ac_objext \
13429 conftest$ac_exeext conftest.$ac_ext
13430 LIBS=$ac_check_lib_save_LIBS
13432 echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
13433 echo "${ECHO_T}$ac_cv_lib_SM_SmcOpenConnection" >&6
13434 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
13435 HAVE_X_SM=yes
13442 if test "${HAVE_X_SM}" = "yes"; then
13444 cat >>confdefs.h <<\_ACEOF
13445 #define HAVE_X_SM 1
13446 _ACEOF
13448 case "$LIBS" in
13449 *-lSM*) ;;
13450 *) LIBS="-lSM -lICE $LIBS" ;;
13451 esac
13455 # If netdb.h doesn't declare h_errno, we must declare it by hand.
13456 echo "$as_me:$LINENO: checking whether netdb declares h_errno" >&5
13457 echo $ECHO_N "checking whether netdb declares h_errno... $ECHO_C" >&6
13458 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then
13459 echo $ECHO_N "(cached) $ECHO_C" >&6
13460 else
13461 cat >conftest.$ac_ext <<_ACEOF
13462 /* confdefs.h. */
13463 _ACEOF
13464 cat confdefs.h >>conftest.$ac_ext
13465 cat >>conftest.$ac_ext <<_ACEOF
13466 /* end confdefs.h. */
13467 #include <netdb.h>
13469 main ()
13471 return h_errno;
13473 return 0;
13475 _ACEOF
13476 rm -f conftest.$ac_objext conftest$ac_exeext
13477 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13478 (eval $ac_link) 2>conftest.er1
13479 ac_status=$?
13480 grep -v '^ *+' conftest.er1 >conftest.err
13481 rm -f conftest.er1
13482 cat conftest.err >&5
13483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13484 (exit $ac_status); } &&
13485 { ac_try='test -z "$ac_c_werror_flag"
13486 || test ! -s conftest.err'
13487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13488 (eval $ac_try) 2>&5
13489 ac_status=$?
13490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13491 (exit $ac_status); }; } &&
13492 { ac_try='test -s conftest$ac_exeext'
13493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13494 (eval $ac_try) 2>&5
13495 ac_status=$?
13496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13497 (exit $ac_status); }; }; then
13498 emacs_cv_netdb_declares_h_errno=yes
13499 else
13500 echo "$as_me: failed program was:" >&5
13501 sed 's/^/| /' conftest.$ac_ext >&5
13503 emacs_cv_netdb_declares_h_errno=no
13505 rm -f conftest.err conftest.$ac_objext \
13506 conftest$ac_exeext conftest.$ac_ext
13508 echo "$as_me:$LINENO: result: $emacs_cv_netdb_declares_h_errno" >&5
13509 echo "${ECHO_T}$emacs_cv_netdb_declares_h_errno" >&6
13510 if test $emacs_cv_netdb_declares_h_errno = yes; then
13512 cat >>confdefs.h <<\_ACEOF
13513 #define HAVE_H_ERRNO 1
13514 _ACEOF
13518 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
13519 # for constant arguments. Useless!
13520 echo "$as_me:$LINENO: checking for working alloca.h" >&5
13521 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
13522 if test "${ac_cv_working_alloca_h+set}" = set; then
13523 echo $ECHO_N "(cached) $ECHO_C" >&6
13524 else
13525 cat >conftest.$ac_ext <<_ACEOF
13526 /* confdefs.h. */
13527 _ACEOF
13528 cat confdefs.h >>conftest.$ac_ext
13529 cat >>conftest.$ac_ext <<_ACEOF
13530 /* end confdefs.h. */
13531 #include <alloca.h>
13533 main ()
13535 char *p = (char *) alloca (2 * sizeof (int));
13537 return 0;
13539 _ACEOF
13540 rm -f conftest.$ac_objext conftest$ac_exeext
13541 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13542 (eval $ac_link) 2>conftest.er1
13543 ac_status=$?
13544 grep -v '^ *+' conftest.er1 >conftest.err
13545 rm -f conftest.er1
13546 cat conftest.err >&5
13547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13548 (exit $ac_status); } &&
13549 { ac_try='test -z "$ac_c_werror_flag"
13550 || test ! -s conftest.err'
13551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13552 (eval $ac_try) 2>&5
13553 ac_status=$?
13554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13555 (exit $ac_status); }; } &&
13556 { ac_try='test -s conftest$ac_exeext'
13557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13558 (eval $ac_try) 2>&5
13559 ac_status=$?
13560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13561 (exit $ac_status); }; }; then
13562 ac_cv_working_alloca_h=yes
13563 else
13564 echo "$as_me: failed program was:" >&5
13565 sed 's/^/| /' conftest.$ac_ext >&5
13567 ac_cv_working_alloca_h=no
13569 rm -f conftest.err conftest.$ac_objext \
13570 conftest$ac_exeext conftest.$ac_ext
13572 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
13573 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
13574 if test $ac_cv_working_alloca_h = yes; then
13576 cat >>confdefs.h <<\_ACEOF
13577 #define HAVE_ALLOCA_H 1
13578 _ACEOF
13582 echo "$as_me:$LINENO: checking for alloca" >&5
13583 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
13584 if test "${ac_cv_func_alloca_works+set}" = set; then
13585 echo $ECHO_N "(cached) $ECHO_C" >&6
13586 else
13587 cat >conftest.$ac_ext <<_ACEOF
13588 /* confdefs.h. */
13589 _ACEOF
13590 cat confdefs.h >>conftest.$ac_ext
13591 cat >>conftest.$ac_ext <<_ACEOF
13592 /* end confdefs.h. */
13593 #ifdef __GNUC__
13594 # define alloca __builtin_alloca
13595 #else
13596 # ifdef _MSC_VER
13597 # include <malloc.h>
13598 # define alloca _alloca
13599 # else
13600 # if HAVE_ALLOCA_H
13601 # include <alloca.h>
13602 # else
13603 # ifdef _AIX
13604 #pragma alloca
13605 # else
13606 # ifndef alloca /* predefined by HP cc +Olibcalls */
13607 char *alloca ();
13608 # endif
13609 # endif
13610 # endif
13611 # endif
13612 #endif
13615 main ()
13617 char *p = (char *) alloca (1);
13619 return 0;
13621 _ACEOF
13622 rm -f conftest.$ac_objext conftest$ac_exeext
13623 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13624 (eval $ac_link) 2>conftest.er1
13625 ac_status=$?
13626 grep -v '^ *+' conftest.er1 >conftest.err
13627 rm -f conftest.er1
13628 cat conftest.err >&5
13629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13630 (exit $ac_status); } &&
13631 { ac_try='test -z "$ac_c_werror_flag"
13632 || test ! -s conftest.err'
13633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13634 (eval $ac_try) 2>&5
13635 ac_status=$?
13636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13637 (exit $ac_status); }; } &&
13638 { ac_try='test -s conftest$ac_exeext'
13639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13640 (eval $ac_try) 2>&5
13641 ac_status=$?
13642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13643 (exit $ac_status); }; }; then
13644 ac_cv_func_alloca_works=yes
13645 else
13646 echo "$as_me: failed program was:" >&5
13647 sed 's/^/| /' conftest.$ac_ext >&5
13649 ac_cv_func_alloca_works=no
13651 rm -f conftest.err conftest.$ac_objext \
13652 conftest$ac_exeext conftest.$ac_ext
13654 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
13655 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
13657 if test $ac_cv_func_alloca_works = yes; then
13659 cat >>confdefs.h <<\_ACEOF
13660 #define HAVE_ALLOCA 1
13661 _ACEOF
13663 else
13664 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
13665 # that cause trouble. Some versions do not even contain alloca or
13666 # contain a buggy version. If you still want to use their alloca,
13667 # use ar to extract alloca.o from them instead of compiling alloca.c.
13669 ALLOCA=alloca.$ac_objext
13671 cat >>confdefs.h <<\_ACEOF
13672 #define C_ALLOCA 1
13673 _ACEOF
13676 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
13677 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
13678 if test "${ac_cv_os_cray+set}" = set; then
13679 echo $ECHO_N "(cached) $ECHO_C" >&6
13680 else
13681 cat >conftest.$ac_ext <<_ACEOF
13682 /* confdefs.h. */
13683 _ACEOF
13684 cat confdefs.h >>conftest.$ac_ext
13685 cat >>conftest.$ac_ext <<_ACEOF
13686 /* end confdefs.h. */
13687 #if defined(CRAY) && ! defined(CRAY2)
13688 webecray
13689 #else
13690 wenotbecray
13691 #endif
13693 _ACEOF
13694 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13695 $EGREP "webecray" >/dev/null 2>&1; then
13696 ac_cv_os_cray=yes
13697 else
13698 ac_cv_os_cray=no
13700 rm -f conftest*
13703 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
13704 echo "${ECHO_T}$ac_cv_os_cray" >&6
13705 if test $ac_cv_os_cray = yes; then
13706 for ac_func in _getb67 GETB67 getb67; do
13707 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13708 echo "$as_me:$LINENO: checking for $ac_func" >&5
13709 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13710 if eval "test \"\${$as_ac_var+set}\" = set"; then
13711 echo $ECHO_N "(cached) $ECHO_C" >&6
13712 else
13713 cat >conftest.$ac_ext <<_ACEOF
13714 /* confdefs.h. */
13715 _ACEOF
13716 cat confdefs.h >>conftest.$ac_ext
13717 cat >>conftest.$ac_ext <<_ACEOF
13718 /* end confdefs.h. */
13719 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13720 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13721 #define $ac_func innocuous_$ac_func
13723 /* System header to define __stub macros and hopefully few prototypes,
13724 which can conflict with char $ac_func (); below.
13725 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13726 <limits.h> exists even on freestanding compilers. */
13728 #ifdef __STDC__
13729 # include <limits.h>
13730 #else
13731 # include <assert.h>
13732 #endif
13734 #undef $ac_func
13736 /* Override any gcc2 internal prototype to avoid an error. */
13737 #ifdef __cplusplus
13738 extern "C"
13740 #endif
13741 /* We use char because int might match the return type of a gcc2
13742 builtin and then its argument prototype would still apply. */
13743 char $ac_func ();
13744 /* The GNU C library defines this for functions which it implements
13745 to always fail with ENOSYS. Some functions are actually named
13746 something starting with __ and the normal name is an alias. */
13747 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13748 choke me
13749 #else
13750 char (*f) () = $ac_func;
13751 #endif
13752 #ifdef __cplusplus
13754 #endif
13757 main ()
13759 return f != $ac_func;
13761 return 0;
13763 _ACEOF
13764 rm -f conftest.$ac_objext conftest$ac_exeext
13765 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13766 (eval $ac_link) 2>conftest.er1
13767 ac_status=$?
13768 grep -v '^ *+' conftest.er1 >conftest.err
13769 rm -f conftest.er1
13770 cat conftest.err >&5
13771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13772 (exit $ac_status); } &&
13773 { ac_try='test -z "$ac_c_werror_flag"
13774 || test ! -s conftest.err'
13775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13776 (eval $ac_try) 2>&5
13777 ac_status=$?
13778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13779 (exit $ac_status); }; } &&
13780 { ac_try='test -s conftest$ac_exeext'
13781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13782 (eval $ac_try) 2>&5
13783 ac_status=$?
13784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13785 (exit $ac_status); }; }; then
13786 eval "$as_ac_var=yes"
13787 else
13788 echo "$as_me: failed program was:" >&5
13789 sed 's/^/| /' conftest.$ac_ext >&5
13791 eval "$as_ac_var=no"
13793 rm -f conftest.err conftest.$ac_objext \
13794 conftest$ac_exeext conftest.$ac_ext
13796 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13797 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13798 if test `eval echo '${'$as_ac_var'}'` = yes; then
13800 cat >>confdefs.h <<_ACEOF
13801 #define CRAY_STACKSEG_END $ac_func
13802 _ACEOF
13804 break
13807 done
13810 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
13811 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
13812 if test "${ac_cv_c_stack_direction+set}" = set; then
13813 echo $ECHO_N "(cached) $ECHO_C" >&6
13814 else
13815 if test "$cross_compiling" = yes; then
13816 ac_cv_c_stack_direction=0
13817 else
13818 cat >conftest.$ac_ext <<_ACEOF
13819 /* confdefs.h. */
13820 _ACEOF
13821 cat confdefs.h >>conftest.$ac_ext
13822 cat >>conftest.$ac_ext <<_ACEOF
13823 /* end confdefs.h. */
13825 find_stack_direction ()
13827 static char *addr = 0;
13828 auto char dummy;
13829 if (addr == 0)
13831 addr = &dummy;
13832 return find_stack_direction ();
13834 else
13835 return (&dummy > addr) ? 1 : -1;
13839 main ()
13841 exit (find_stack_direction () < 0);
13843 _ACEOF
13844 rm -f conftest$ac_exeext
13845 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13846 (eval $ac_link) 2>&5
13847 ac_status=$?
13848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13849 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13851 (eval $ac_try) 2>&5
13852 ac_status=$?
13853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13854 (exit $ac_status); }; }; then
13855 ac_cv_c_stack_direction=1
13856 else
13857 echo "$as_me: program exited with status $ac_status" >&5
13858 echo "$as_me: failed program was:" >&5
13859 sed 's/^/| /' conftest.$ac_ext >&5
13861 ( exit $ac_status )
13862 ac_cv_c_stack_direction=-1
13864 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13867 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
13868 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
13870 cat >>confdefs.h <<_ACEOF
13871 #define STACK_DIRECTION $ac_cv_c_stack_direction
13872 _ACEOF
13878 # fmod, logb, and frexp are found in -lm on most systems.
13879 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
13881 echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
13882 echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6
13883 if test "${ac_cv_lib_m_sqrt+set}" = set; then
13884 echo $ECHO_N "(cached) $ECHO_C" >&6
13885 else
13886 ac_check_lib_save_LIBS=$LIBS
13887 LIBS="-lm $LIBS"
13888 cat >conftest.$ac_ext <<_ACEOF
13889 /* confdefs.h. */
13890 _ACEOF
13891 cat confdefs.h >>conftest.$ac_ext
13892 cat >>conftest.$ac_ext <<_ACEOF
13893 /* end confdefs.h. */
13895 /* Override any gcc2 internal prototype to avoid an error. */
13896 #ifdef __cplusplus
13897 extern "C"
13898 #endif
13899 /* We use char because int might match the return type of a gcc2
13900 builtin and then its argument prototype would still apply. */
13901 char sqrt ();
13903 main ()
13905 sqrt ();
13907 return 0;
13909 _ACEOF
13910 rm -f conftest.$ac_objext conftest$ac_exeext
13911 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13912 (eval $ac_link) 2>conftest.er1
13913 ac_status=$?
13914 grep -v '^ *+' conftest.er1 >conftest.err
13915 rm -f conftest.er1
13916 cat conftest.err >&5
13917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13918 (exit $ac_status); } &&
13919 { ac_try='test -z "$ac_c_werror_flag"
13920 || test ! -s conftest.err'
13921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13922 (eval $ac_try) 2>&5
13923 ac_status=$?
13924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13925 (exit $ac_status); }; } &&
13926 { ac_try='test -s conftest$ac_exeext'
13927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13928 (eval $ac_try) 2>&5
13929 ac_status=$?
13930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13931 (exit $ac_status); }; }; then
13932 ac_cv_lib_m_sqrt=yes
13933 else
13934 echo "$as_me: failed program was:" >&5
13935 sed 's/^/| /' conftest.$ac_ext >&5
13937 ac_cv_lib_m_sqrt=no
13939 rm -f conftest.err conftest.$ac_objext \
13940 conftest$ac_exeext conftest.$ac_ext
13941 LIBS=$ac_check_lib_save_LIBS
13943 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
13944 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6
13945 if test $ac_cv_lib_m_sqrt = yes; then
13946 cat >>confdefs.h <<_ACEOF
13947 #define HAVE_LIBM 1
13948 _ACEOF
13950 LIBS="-lm $LIBS"
13955 # Check for mail-locking functions in a "mail" library. Probably this should
13956 # have the same check as for liblockfile below.
13958 echo "$as_me:$LINENO: checking for maillock in -lmail" >&5
13959 echo $ECHO_N "checking for maillock in -lmail... $ECHO_C" >&6
13960 if test "${ac_cv_lib_mail_maillock+set}" = set; then
13961 echo $ECHO_N "(cached) $ECHO_C" >&6
13962 else
13963 ac_check_lib_save_LIBS=$LIBS
13964 LIBS="-lmail $LIBS"
13965 cat >conftest.$ac_ext <<_ACEOF
13966 /* confdefs.h. */
13967 _ACEOF
13968 cat confdefs.h >>conftest.$ac_ext
13969 cat >>conftest.$ac_ext <<_ACEOF
13970 /* end confdefs.h. */
13972 /* Override any gcc2 internal prototype to avoid an error. */
13973 #ifdef __cplusplus
13974 extern "C"
13975 #endif
13976 /* We use char because int might match the return type of a gcc2
13977 builtin and then its argument prototype would still apply. */
13978 char maillock ();
13980 main ()
13982 maillock ();
13984 return 0;
13986 _ACEOF
13987 rm -f conftest.$ac_objext conftest$ac_exeext
13988 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13989 (eval $ac_link) 2>conftest.er1
13990 ac_status=$?
13991 grep -v '^ *+' conftest.er1 >conftest.err
13992 rm -f conftest.er1
13993 cat conftest.err >&5
13994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13995 (exit $ac_status); } &&
13996 { ac_try='test -z "$ac_c_werror_flag"
13997 || test ! -s conftest.err'
13998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13999 (eval $ac_try) 2>&5
14000 ac_status=$?
14001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14002 (exit $ac_status); }; } &&
14003 { ac_try='test -s conftest$ac_exeext'
14004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14005 (eval $ac_try) 2>&5
14006 ac_status=$?
14007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14008 (exit $ac_status); }; }; then
14009 ac_cv_lib_mail_maillock=yes
14010 else
14011 echo "$as_me: failed program was:" >&5
14012 sed 's/^/| /' conftest.$ac_ext >&5
14014 ac_cv_lib_mail_maillock=no
14016 rm -f conftest.err conftest.$ac_objext \
14017 conftest$ac_exeext conftest.$ac_ext
14018 LIBS=$ac_check_lib_save_LIBS
14020 echo "$as_me:$LINENO: result: $ac_cv_lib_mail_maillock" >&5
14021 echo "${ECHO_T}$ac_cv_lib_mail_maillock" >&6
14022 if test $ac_cv_lib_mail_maillock = yes; then
14023 cat >>confdefs.h <<_ACEOF
14024 #define HAVE_LIBMAIL 1
14025 _ACEOF
14027 LIBS="-lmail $LIBS"
14032 echo "$as_me:$LINENO: checking for maillock in -llockfile" >&5
14033 echo $ECHO_N "checking for maillock in -llockfile... $ECHO_C" >&6
14034 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
14035 echo $ECHO_N "(cached) $ECHO_C" >&6
14036 else
14037 ac_check_lib_save_LIBS=$LIBS
14038 LIBS="-llockfile $LIBS"
14039 cat >conftest.$ac_ext <<_ACEOF
14040 /* confdefs.h. */
14041 _ACEOF
14042 cat confdefs.h >>conftest.$ac_ext
14043 cat >>conftest.$ac_ext <<_ACEOF
14044 /* end confdefs.h. */
14046 /* Override any gcc2 internal prototype to avoid an error. */
14047 #ifdef __cplusplus
14048 extern "C"
14049 #endif
14050 /* We use char because int might match the return type of a gcc2
14051 builtin and then its argument prototype would still apply. */
14052 char maillock ();
14054 main ()
14056 maillock ();
14058 return 0;
14060 _ACEOF
14061 rm -f conftest.$ac_objext conftest$ac_exeext
14062 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14063 (eval $ac_link) 2>conftest.er1
14064 ac_status=$?
14065 grep -v '^ *+' conftest.er1 >conftest.err
14066 rm -f conftest.er1
14067 cat conftest.err >&5
14068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14069 (exit $ac_status); } &&
14070 { ac_try='test -z "$ac_c_werror_flag"
14071 || test ! -s conftest.err'
14072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14073 (eval $ac_try) 2>&5
14074 ac_status=$?
14075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14076 (exit $ac_status); }; } &&
14077 { ac_try='test -s conftest$ac_exeext'
14078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14079 (eval $ac_try) 2>&5
14080 ac_status=$?
14081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14082 (exit $ac_status); }; }; then
14083 ac_cv_lib_lockfile_maillock=yes
14084 else
14085 echo "$as_me: failed program was:" >&5
14086 sed 's/^/| /' conftest.$ac_ext >&5
14088 ac_cv_lib_lockfile_maillock=no
14090 rm -f conftest.err conftest.$ac_objext \
14091 conftest$ac_exeext conftest.$ac_ext
14092 LIBS=$ac_check_lib_save_LIBS
14094 echo "$as_me:$LINENO: result: $ac_cv_lib_lockfile_maillock" >&5
14095 echo "${ECHO_T}$ac_cv_lib_lockfile_maillock" >&6
14096 if test $ac_cv_lib_lockfile_maillock = yes; then
14097 cat >>confdefs.h <<_ACEOF
14098 #define HAVE_LIBLOCKFILE 1
14099 _ACEOF
14101 LIBS="-llockfile $LIBS"
14105 # If we have the shared liblockfile, assume we must use it for mail
14106 # locking (e.g. Debian). If we couldn't link against liblockfile
14107 # (no liblockfile.a installed), ensure that we don't need to.
14108 if test "$ac_cv_lib_lockfile_maillock" = no; then
14109 # Extract the first word of "liblockfile.so", so it can be a program name with args.
14110 set dummy liblockfile.so; ac_word=$2
14111 echo "$as_me:$LINENO: checking for $ac_word" >&5
14112 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14113 if test "${ac_cv_prog_liblockfile+set}" = set; then
14114 echo $ECHO_N "(cached) $ECHO_C" >&6
14115 else
14116 if test -n "$liblockfile"; then
14117 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
14118 else
14119 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14120 as_dummy="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
14121 for as_dir in $as_dummy
14123 IFS=$as_save_IFS
14124 test -z "$as_dir" && as_dir=.
14125 for ac_exec_ext in '' $ac_executable_extensions; do
14126 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14127 ac_cv_prog_liblockfile="yes"
14128 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14129 break 2
14131 done
14132 done
14134 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no"
14137 liblockfile=$ac_cv_prog_liblockfile
14138 if test -n "$liblockfile"; then
14139 echo "$as_me:$LINENO: result: $liblockfile" >&5
14140 echo "${ECHO_T}$liblockfile" >&6
14141 else
14142 echo "$as_me:$LINENO: result: no" >&5
14143 echo "${ECHO_T}no" >&6
14146 if test $ac_cv_prog_liblockfile = yes; then
14147 { { echo "$as_me:$LINENO: error: Shared liblockfile found but can't link against it.
14148 This probably means that movemail could lose mail.
14149 There may be a \`development' package to install containing liblockfile." >&5
14150 echo "$as_me: error: Shared liblockfile found but can't link against it.
14151 This probably means that movemail could lose mail.
14152 There may be a \`development' package to install containing liblockfile." >&2;}
14153 { (exit 1); exit 1; }; }
14154 else :
14158 for ac_func in touchlock
14160 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14161 echo "$as_me:$LINENO: checking for $ac_func" >&5
14162 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14163 if eval "test \"\${$as_ac_var+set}\" = set"; then
14164 echo $ECHO_N "(cached) $ECHO_C" >&6
14165 else
14166 cat >conftest.$ac_ext <<_ACEOF
14167 /* confdefs.h. */
14168 _ACEOF
14169 cat confdefs.h >>conftest.$ac_ext
14170 cat >>conftest.$ac_ext <<_ACEOF
14171 /* end confdefs.h. */
14172 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14173 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14174 #define $ac_func innocuous_$ac_func
14176 /* System header to define __stub macros and hopefully few prototypes,
14177 which can conflict with char $ac_func (); below.
14178 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14179 <limits.h> exists even on freestanding compilers. */
14181 #ifdef __STDC__
14182 # include <limits.h>
14183 #else
14184 # include <assert.h>
14185 #endif
14187 #undef $ac_func
14189 /* Override any gcc2 internal prototype to avoid an error. */
14190 #ifdef __cplusplus
14191 extern "C"
14193 #endif
14194 /* We use char because int might match the return type of a gcc2
14195 builtin and then its argument prototype would still apply. */
14196 char $ac_func ();
14197 /* The GNU C library defines this for functions which it implements
14198 to always fail with ENOSYS. Some functions are actually named
14199 something starting with __ and the normal name is an alias. */
14200 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14201 choke me
14202 #else
14203 char (*f) () = $ac_func;
14204 #endif
14205 #ifdef __cplusplus
14207 #endif
14210 main ()
14212 return f != $ac_func;
14214 return 0;
14216 _ACEOF
14217 rm -f conftest.$ac_objext conftest$ac_exeext
14218 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14219 (eval $ac_link) 2>conftest.er1
14220 ac_status=$?
14221 grep -v '^ *+' conftest.er1 >conftest.err
14222 rm -f conftest.er1
14223 cat conftest.err >&5
14224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14225 (exit $ac_status); } &&
14226 { ac_try='test -z "$ac_c_werror_flag"
14227 || test ! -s conftest.err'
14228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14229 (eval $ac_try) 2>&5
14230 ac_status=$?
14231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14232 (exit $ac_status); }; } &&
14233 { ac_try='test -s conftest$ac_exeext'
14234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14235 (eval $ac_try) 2>&5
14236 ac_status=$?
14237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14238 (exit $ac_status); }; }; then
14239 eval "$as_ac_var=yes"
14240 else
14241 echo "$as_me: failed program was:" >&5
14242 sed 's/^/| /' conftest.$ac_ext >&5
14244 eval "$as_ac_var=no"
14246 rm -f conftest.err conftest.$ac_objext \
14247 conftest$ac_exeext conftest.$ac_ext
14249 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14250 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14251 if test `eval echo '${'$as_ac_var'}'` = yes; then
14252 cat >>confdefs.h <<_ACEOF
14253 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14254 _ACEOF
14257 done
14260 for ac_header in maillock.h
14262 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14263 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14264 echo "$as_me:$LINENO: checking for $ac_header" >&5
14265 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14266 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14267 echo $ECHO_N "(cached) $ECHO_C" >&6
14269 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14270 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14271 else
14272 # Is the header compilable?
14273 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14274 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14275 cat >conftest.$ac_ext <<_ACEOF
14276 /* confdefs.h. */
14277 _ACEOF
14278 cat confdefs.h >>conftest.$ac_ext
14279 cat >>conftest.$ac_ext <<_ACEOF
14280 /* end confdefs.h. */
14281 $ac_includes_default
14282 #include <$ac_header>
14283 _ACEOF
14284 rm -f conftest.$ac_objext
14285 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14286 (eval $ac_compile) 2>conftest.er1
14287 ac_status=$?
14288 grep -v '^ *+' conftest.er1 >conftest.err
14289 rm -f conftest.er1
14290 cat conftest.err >&5
14291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14292 (exit $ac_status); } &&
14293 { ac_try='test -z "$ac_c_werror_flag"
14294 || test ! -s conftest.err'
14295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14296 (eval $ac_try) 2>&5
14297 ac_status=$?
14298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14299 (exit $ac_status); }; } &&
14300 { ac_try='test -s conftest.$ac_objext'
14301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14302 (eval $ac_try) 2>&5
14303 ac_status=$?
14304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14305 (exit $ac_status); }; }; then
14306 ac_header_compiler=yes
14307 else
14308 echo "$as_me: failed program was:" >&5
14309 sed 's/^/| /' conftest.$ac_ext >&5
14311 ac_header_compiler=no
14313 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14314 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14315 echo "${ECHO_T}$ac_header_compiler" >&6
14317 # Is the header present?
14318 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14319 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14320 cat >conftest.$ac_ext <<_ACEOF
14321 /* confdefs.h. */
14322 _ACEOF
14323 cat confdefs.h >>conftest.$ac_ext
14324 cat >>conftest.$ac_ext <<_ACEOF
14325 /* end confdefs.h. */
14326 #include <$ac_header>
14327 _ACEOF
14328 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14329 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14330 ac_status=$?
14331 grep -v '^ *+' conftest.er1 >conftest.err
14332 rm -f conftest.er1
14333 cat conftest.err >&5
14334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14335 (exit $ac_status); } >/dev/null; then
14336 if test -s conftest.err; then
14337 ac_cpp_err=$ac_c_preproc_warn_flag
14338 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14339 else
14340 ac_cpp_err=
14342 else
14343 ac_cpp_err=yes
14345 if test -z "$ac_cpp_err"; then
14346 ac_header_preproc=yes
14347 else
14348 echo "$as_me: failed program was:" >&5
14349 sed 's/^/| /' conftest.$ac_ext >&5
14351 ac_header_preproc=no
14353 rm -f conftest.err conftest.$ac_ext
14354 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14355 echo "${ECHO_T}$ac_header_preproc" >&6
14357 # So? What about this header?
14358 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14359 yes:no: )
14360 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14361 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14362 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14363 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14364 ac_header_preproc=yes
14366 no:yes:* )
14367 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14368 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14369 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14370 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14371 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14372 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14373 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14374 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14375 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14376 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14377 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14378 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14380 cat <<\_ASBOX
14381 ## ------------------------------------------ ##
14382 ## Report this to the AC_PACKAGE_NAME lists. ##
14383 ## ------------------------------------------ ##
14384 _ASBOX
14386 sed "s/^/$as_me: WARNING: /" >&2
14388 esac
14389 echo "$as_me:$LINENO: checking for $ac_header" >&5
14390 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14391 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14392 echo $ECHO_N "(cached) $ECHO_C" >&6
14393 else
14394 eval "$as_ac_Header=\$ac_header_preproc"
14396 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14397 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14400 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14401 cat >>confdefs.h <<_ACEOF
14402 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14403 _ACEOF
14407 done
14479 for ac_func in gethostname getdomainname dup2 \
14480 rename closedir mkdir rmdir sysinfo getrusage get_current_dir_name \
14481 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime res_init setsid \
14482 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \
14483 utimes setrlimit setpgid getcwd getwd shutdown getaddrinfo \
14484 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
14485 sendto recvfrom getsockopt setsockopt getsockname getpeername \
14486 gai_strerror mkstemp getline getdelim mremap memmove fsync sync bzero \
14487 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign
14489 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14490 echo "$as_me:$LINENO: checking for $ac_func" >&5
14491 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14492 if eval "test \"\${$as_ac_var+set}\" = set"; then
14493 echo $ECHO_N "(cached) $ECHO_C" >&6
14494 else
14495 cat >conftest.$ac_ext <<_ACEOF
14496 /* confdefs.h. */
14497 _ACEOF
14498 cat confdefs.h >>conftest.$ac_ext
14499 cat >>conftest.$ac_ext <<_ACEOF
14500 /* end confdefs.h. */
14501 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14502 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14503 #define $ac_func innocuous_$ac_func
14505 /* System header to define __stub macros and hopefully few prototypes,
14506 which can conflict with char $ac_func (); below.
14507 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14508 <limits.h> exists even on freestanding compilers. */
14510 #ifdef __STDC__
14511 # include <limits.h>
14512 #else
14513 # include <assert.h>
14514 #endif
14516 #undef $ac_func
14518 /* Override any gcc2 internal prototype to avoid an error. */
14519 #ifdef __cplusplus
14520 extern "C"
14522 #endif
14523 /* We use char because int might match the return type of a gcc2
14524 builtin and then its argument prototype would still apply. */
14525 char $ac_func ();
14526 /* The GNU C library defines this for functions which it implements
14527 to always fail with ENOSYS. Some functions are actually named
14528 something starting with __ and the normal name is an alias. */
14529 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14530 choke me
14531 #else
14532 char (*f) () = $ac_func;
14533 #endif
14534 #ifdef __cplusplus
14536 #endif
14539 main ()
14541 return f != $ac_func;
14543 return 0;
14545 _ACEOF
14546 rm -f conftest.$ac_objext conftest$ac_exeext
14547 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14548 (eval $ac_link) 2>conftest.er1
14549 ac_status=$?
14550 grep -v '^ *+' conftest.er1 >conftest.err
14551 rm -f conftest.er1
14552 cat conftest.err >&5
14553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14554 (exit $ac_status); } &&
14555 { ac_try='test -z "$ac_c_werror_flag"
14556 || test ! -s conftest.err'
14557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14558 (eval $ac_try) 2>&5
14559 ac_status=$?
14560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14561 (exit $ac_status); }; } &&
14562 { ac_try='test -s conftest$ac_exeext'
14563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14564 (eval $ac_try) 2>&5
14565 ac_status=$?
14566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14567 (exit $ac_status); }; }; then
14568 eval "$as_ac_var=yes"
14569 else
14570 echo "$as_me: failed program was:" >&5
14571 sed 's/^/| /' conftest.$ac_ext >&5
14573 eval "$as_ac_var=no"
14575 rm -f conftest.err conftest.$ac_objext \
14576 conftest$ac_exeext conftest.$ac_ext
14578 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14579 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14580 if test `eval echo '${'$as_ac_var'}'` = yes; then
14581 cat >>confdefs.h <<_ACEOF
14582 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14583 _ACEOF
14586 done
14590 for ac_header in sys/un.h
14592 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14593 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14594 echo "$as_me:$LINENO: checking for $ac_header" >&5
14595 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14596 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14597 echo $ECHO_N "(cached) $ECHO_C" >&6
14599 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14600 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14601 else
14602 # Is the header compilable?
14603 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14604 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14605 cat >conftest.$ac_ext <<_ACEOF
14606 /* confdefs.h. */
14607 _ACEOF
14608 cat confdefs.h >>conftest.$ac_ext
14609 cat >>conftest.$ac_ext <<_ACEOF
14610 /* end confdefs.h. */
14611 $ac_includes_default
14612 #include <$ac_header>
14613 _ACEOF
14614 rm -f conftest.$ac_objext
14615 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14616 (eval $ac_compile) 2>conftest.er1
14617 ac_status=$?
14618 grep -v '^ *+' conftest.er1 >conftest.err
14619 rm -f conftest.er1
14620 cat conftest.err >&5
14621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14622 (exit $ac_status); } &&
14623 { ac_try='test -z "$ac_c_werror_flag"
14624 || test ! -s conftest.err'
14625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14626 (eval $ac_try) 2>&5
14627 ac_status=$?
14628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14629 (exit $ac_status); }; } &&
14630 { ac_try='test -s conftest.$ac_objext'
14631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14632 (eval $ac_try) 2>&5
14633 ac_status=$?
14634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14635 (exit $ac_status); }; }; then
14636 ac_header_compiler=yes
14637 else
14638 echo "$as_me: failed program was:" >&5
14639 sed 's/^/| /' conftest.$ac_ext >&5
14641 ac_header_compiler=no
14643 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14644 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14645 echo "${ECHO_T}$ac_header_compiler" >&6
14647 # Is the header present?
14648 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14649 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14650 cat >conftest.$ac_ext <<_ACEOF
14651 /* confdefs.h. */
14652 _ACEOF
14653 cat confdefs.h >>conftest.$ac_ext
14654 cat >>conftest.$ac_ext <<_ACEOF
14655 /* end confdefs.h. */
14656 #include <$ac_header>
14657 _ACEOF
14658 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14659 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14660 ac_status=$?
14661 grep -v '^ *+' conftest.er1 >conftest.err
14662 rm -f conftest.er1
14663 cat conftest.err >&5
14664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14665 (exit $ac_status); } >/dev/null; then
14666 if test -s conftest.err; then
14667 ac_cpp_err=$ac_c_preproc_warn_flag
14668 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14669 else
14670 ac_cpp_err=
14672 else
14673 ac_cpp_err=yes
14675 if test -z "$ac_cpp_err"; then
14676 ac_header_preproc=yes
14677 else
14678 echo "$as_me: failed program was:" >&5
14679 sed 's/^/| /' conftest.$ac_ext >&5
14681 ac_header_preproc=no
14683 rm -f conftest.err conftest.$ac_ext
14684 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14685 echo "${ECHO_T}$ac_header_preproc" >&6
14687 # So? What about this header?
14688 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14689 yes:no: )
14690 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14691 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14692 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14693 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14694 ac_header_preproc=yes
14696 no:yes:* )
14697 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14698 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14699 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14700 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14701 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14702 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14703 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14704 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14705 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14706 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14707 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14708 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14710 cat <<\_ASBOX
14711 ## ------------------------------------------ ##
14712 ## Report this to the AC_PACKAGE_NAME lists. ##
14713 ## ------------------------------------------ ##
14714 _ASBOX
14716 sed "s/^/$as_me: WARNING: /" >&2
14718 esac
14719 echo "$as_me:$LINENO: checking for $ac_header" >&5
14720 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14721 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14722 echo $ECHO_N "(cached) $ECHO_C" >&6
14723 else
14724 eval "$as_ac_Header=\$ac_header_preproc"
14726 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14727 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14730 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14731 cat >>confdefs.h <<_ACEOF
14732 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14733 _ACEOF
14737 done
14743 for ac_header in stdlib.h sys/time.h unistd.h
14745 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14746 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14747 echo "$as_me:$LINENO: checking for $ac_header" >&5
14748 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14749 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14750 echo $ECHO_N "(cached) $ECHO_C" >&6
14752 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14753 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14754 else
14755 # Is the header compilable?
14756 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14757 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14758 cat >conftest.$ac_ext <<_ACEOF
14759 /* confdefs.h. */
14760 _ACEOF
14761 cat confdefs.h >>conftest.$ac_ext
14762 cat >>conftest.$ac_ext <<_ACEOF
14763 /* end confdefs.h. */
14764 $ac_includes_default
14765 #include <$ac_header>
14766 _ACEOF
14767 rm -f conftest.$ac_objext
14768 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14769 (eval $ac_compile) 2>conftest.er1
14770 ac_status=$?
14771 grep -v '^ *+' conftest.er1 >conftest.err
14772 rm -f conftest.er1
14773 cat conftest.err >&5
14774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14775 (exit $ac_status); } &&
14776 { ac_try='test -z "$ac_c_werror_flag"
14777 || test ! -s conftest.err'
14778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14779 (eval $ac_try) 2>&5
14780 ac_status=$?
14781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14782 (exit $ac_status); }; } &&
14783 { ac_try='test -s conftest.$ac_objext'
14784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14785 (eval $ac_try) 2>&5
14786 ac_status=$?
14787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14788 (exit $ac_status); }; }; then
14789 ac_header_compiler=yes
14790 else
14791 echo "$as_me: failed program was:" >&5
14792 sed 's/^/| /' conftest.$ac_ext >&5
14794 ac_header_compiler=no
14796 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14797 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14798 echo "${ECHO_T}$ac_header_compiler" >&6
14800 # Is the header present?
14801 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14802 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14803 cat >conftest.$ac_ext <<_ACEOF
14804 /* confdefs.h. */
14805 _ACEOF
14806 cat confdefs.h >>conftest.$ac_ext
14807 cat >>conftest.$ac_ext <<_ACEOF
14808 /* end confdefs.h. */
14809 #include <$ac_header>
14810 _ACEOF
14811 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14812 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14813 ac_status=$?
14814 grep -v '^ *+' conftest.er1 >conftest.err
14815 rm -f conftest.er1
14816 cat conftest.err >&5
14817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14818 (exit $ac_status); } >/dev/null; then
14819 if test -s conftest.err; then
14820 ac_cpp_err=$ac_c_preproc_warn_flag
14821 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14822 else
14823 ac_cpp_err=
14825 else
14826 ac_cpp_err=yes
14828 if test -z "$ac_cpp_err"; then
14829 ac_header_preproc=yes
14830 else
14831 echo "$as_me: failed program was:" >&5
14832 sed 's/^/| /' conftest.$ac_ext >&5
14834 ac_header_preproc=no
14836 rm -f conftest.err conftest.$ac_ext
14837 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14838 echo "${ECHO_T}$ac_header_preproc" >&6
14840 # So? What about this header?
14841 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14842 yes:no: )
14843 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14844 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14845 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14846 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14847 ac_header_preproc=yes
14849 no:yes:* )
14850 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14851 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14852 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14853 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14854 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14855 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14856 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14857 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14858 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14859 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14860 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14861 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14863 cat <<\_ASBOX
14864 ## ------------------------------------------ ##
14865 ## Report this to the AC_PACKAGE_NAME lists. ##
14866 ## ------------------------------------------ ##
14867 _ASBOX
14869 sed "s/^/$as_me: WARNING: /" >&2
14871 esac
14872 echo "$as_me:$LINENO: checking for $ac_header" >&5
14873 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14874 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14875 echo $ECHO_N "(cached) $ECHO_C" >&6
14876 else
14877 eval "$as_ac_Header=\$ac_header_preproc"
14879 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14880 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14883 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14884 cat >>confdefs.h <<_ACEOF
14885 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14886 _ACEOF
14890 done
14893 for ac_func in alarm
14895 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14896 echo "$as_me:$LINENO: checking for $ac_func" >&5
14897 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14898 if eval "test \"\${$as_ac_var+set}\" = set"; then
14899 echo $ECHO_N "(cached) $ECHO_C" >&6
14900 else
14901 cat >conftest.$ac_ext <<_ACEOF
14902 /* confdefs.h. */
14903 _ACEOF
14904 cat confdefs.h >>conftest.$ac_ext
14905 cat >>conftest.$ac_ext <<_ACEOF
14906 /* end confdefs.h. */
14907 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14908 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14909 #define $ac_func innocuous_$ac_func
14911 /* System header to define __stub macros and hopefully few prototypes,
14912 which can conflict with char $ac_func (); below.
14913 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14914 <limits.h> exists even on freestanding compilers. */
14916 #ifdef __STDC__
14917 # include <limits.h>
14918 #else
14919 # include <assert.h>
14920 #endif
14922 #undef $ac_func
14924 /* Override any gcc2 internal prototype to avoid an error. */
14925 #ifdef __cplusplus
14926 extern "C"
14928 #endif
14929 /* We use char because int might match the return type of a gcc2
14930 builtin and then its argument prototype would still apply. */
14931 char $ac_func ();
14932 /* The GNU C library defines this for functions which it implements
14933 to always fail with ENOSYS. Some functions are actually named
14934 something starting with __ and the normal name is an alias. */
14935 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14936 choke me
14937 #else
14938 char (*f) () = $ac_func;
14939 #endif
14940 #ifdef __cplusplus
14942 #endif
14945 main ()
14947 return f != $ac_func;
14949 return 0;
14951 _ACEOF
14952 rm -f conftest.$ac_objext conftest$ac_exeext
14953 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14954 (eval $ac_link) 2>conftest.er1
14955 ac_status=$?
14956 grep -v '^ *+' conftest.er1 >conftest.err
14957 rm -f conftest.er1
14958 cat conftest.err >&5
14959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14960 (exit $ac_status); } &&
14961 { ac_try='test -z "$ac_c_werror_flag"
14962 || test ! -s conftest.err'
14963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14964 (eval $ac_try) 2>&5
14965 ac_status=$?
14966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14967 (exit $ac_status); }; } &&
14968 { ac_try='test -s conftest$ac_exeext'
14969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14970 (eval $ac_try) 2>&5
14971 ac_status=$?
14972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14973 (exit $ac_status); }; }; then
14974 eval "$as_ac_var=yes"
14975 else
14976 echo "$as_me: failed program was:" >&5
14977 sed 's/^/| /' conftest.$ac_ext >&5
14979 eval "$as_ac_var=no"
14981 rm -f conftest.err conftest.$ac_objext \
14982 conftest$ac_exeext conftest.$ac_ext
14984 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14985 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14986 if test `eval echo '${'$as_ac_var'}'` = yes; then
14987 cat >>confdefs.h <<_ACEOF
14988 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14989 _ACEOF
14992 done
14994 echo "$as_me:$LINENO: checking for working mktime" >&5
14995 echo $ECHO_N "checking for working mktime... $ECHO_C" >&6
14996 if test "${ac_cv_func_working_mktime+set}" = set; then
14997 echo $ECHO_N "(cached) $ECHO_C" >&6
14998 else
14999 if test "$cross_compiling" = yes; then
15000 ac_cv_func_working_mktime=no
15001 else
15002 cat >conftest.$ac_ext <<_ACEOF
15003 /* confdefs.h. */
15004 _ACEOF
15005 cat confdefs.h >>conftest.$ac_ext
15006 cat >>conftest.$ac_ext <<_ACEOF
15007 /* end confdefs.h. */
15008 /* Test program from Paul Eggert and Tony Leneis. */
15009 #if TIME_WITH_SYS_TIME
15010 # include <sys/time.h>
15011 # include <time.h>
15012 #else
15013 # if HAVE_SYS_TIME_H
15014 # include <sys/time.h>
15015 # else
15016 # include <time.h>
15017 # endif
15018 #endif
15020 #if HAVE_STDLIB_H
15021 # include <stdlib.h>
15022 #endif
15024 #if HAVE_UNISTD_H
15025 # include <unistd.h>
15026 #endif
15028 #if !HAVE_ALARM
15029 # define alarm(X) /* empty */
15030 #endif
15032 /* Work around redefinition to rpl_putenv by other config tests. */
15033 #undef putenv
15035 static time_t time_t_max;
15036 static time_t time_t_min;
15038 /* Values we'll use to set the TZ environment variable. */
15039 static char *tz_strings[] = {
15040 (char *) 0, "TZ=GMT0", "TZ=JST-9",
15041 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
15043 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
15045 /* Fail if mktime fails to convert a date in the spring-forward gap.
15046 Based on a problem report from Andreas Jaeger. */
15047 static void
15048 spring_forward_gap ()
15050 /* glibc (up to about 1998-10-07) failed this test. */
15051 struct tm tm;
15053 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
15054 instead of "TZ=America/Vancouver" in order to detect the bug even
15055 on systems that don't support the Olson extension, or don't have the
15056 full zoneinfo tables installed. */
15057 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
15059 tm.tm_year = 98;
15060 tm.tm_mon = 3;
15061 tm.tm_mday = 5;
15062 tm.tm_hour = 2;
15063 tm.tm_min = 0;
15064 tm.tm_sec = 0;
15065 tm.tm_isdst = -1;
15066 if (mktime (&tm) == (time_t)-1)
15067 exit (1);
15070 static void
15071 mktime_test1 (now)
15072 time_t now;
15074 struct tm *lt;
15075 if ((lt = localtime (&now)) && mktime (lt) != now)
15076 exit (1);
15079 static void
15080 mktime_test (now)
15081 time_t now;
15083 mktime_test1 (now);
15084 mktime_test1 ((time_t) (time_t_max - now));
15085 mktime_test1 ((time_t) (time_t_min + now));
15088 static void
15089 irix_6_4_bug ()
15091 /* Based on code from Ariel Faigon. */
15092 struct tm tm;
15093 tm.tm_year = 96;
15094 tm.tm_mon = 3;
15095 tm.tm_mday = 0;
15096 tm.tm_hour = 0;
15097 tm.tm_min = 0;
15098 tm.tm_sec = 0;
15099 tm.tm_isdst = -1;
15100 mktime (&tm);
15101 if (tm.tm_mon != 2 || tm.tm_mday != 31)
15102 exit (1);
15105 static void
15106 bigtime_test (j)
15107 int j;
15109 struct tm tm;
15110 time_t now;
15111 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
15112 now = mktime (&tm);
15113 if (now != (time_t) -1)
15115 struct tm *lt = localtime (&now);
15116 if (! (lt
15117 && lt->tm_year == tm.tm_year
15118 && lt->tm_mon == tm.tm_mon
15119 && lt->tm_mday == tm.tm_mday
15120 && lt->tm_hour == tm.tm_hour
15121 && lt->tm_min == tm.tm_min
15122 && lt->tm_sec == tm.tm_sec
15123 && lt->tm_yday == tm.tm_yday
15124 && lt->tm_wday == tm.tm_wday
15125 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
15126 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
15127 exit (1);
15132 main ()
15134 time_t t, delta;
15135 int i, j;
15137 /* This test makes some buggy mktime implementations loop.
15138 Give up after 60 seconds; a mktime slower than that
15139 isn't worth using anyway. */
15140 alarm (60);
15142 for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
15143 continue;
15144 time_t_max--;
15145 if ((time_t) -1 < 0)
15146 for (time_t_min = -1; (time_t) (time_t_min * 2) < 0; time_t_min *= 2)
15147 continue;
15148 delta = time_t_max / 997; /* a suitable prime number */
15149 for (i = 0; i < N_STRINGS; i++)
15151 if (tz_strings[i])
15152 putenv (tz_strings[i]);
15154 for (t = 0; t <= time_t_max - delta; t += delta)
15155 mktime_test (t);
15156 mktime_test ((time_t) 1);
15157 mktime_test ((time_t) (60 * 60));
15158 mktime_test ((time_t) (60 * 60 * 24));
15160 for (j = 1; 0 < j; j *= 2)
15161 bigtime_test (j);
15162 bigtime_test (j - 1);
15164 irix_6_4_bug ();
15165 spring_forward_gap ();
15166 exit (0);
15168 _ACEOF
15169 rm -f conftest$ac_exeext
15170 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15171 (eval $ac_link) 2>&5
15172 ac_status=$?
15173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15174 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15176 (eval $ac_try) 2>&5
15177 ac_status=$?
15178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15179 (exit $ac_status); }; }; then
15180 ac_cv_func_working_mktime=yes
15181 else
15182 echo "$as_me: program exited with status $ac_status" >&5
15183 echo "$as_me: failed program was:" >&5
15184 sed 's/^/| /' conftest.$ac_ext >&5
15186 ( exit $ac_status )
15187 ac_cv_func_working_mktime=no
15189 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15192 echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
15193 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6
15194 if test $ac_cv_func_working_mktime = no; then
15195 case $LIBOBJS in
15196 "mktime.$ac_objext" | \
15197 *" mktime.$ac_objext" | \
15198 "mktime.$ac_objext "* | \
15199 *" mktime.$ac_objext "* ) ;;
15200 *) LIBOBJS="$LIBOBJS mktime.$ac_objext" ;;
15201 esac
15205 if test "$ac_cv_func_working_mktime" = no; then
15207 cat >>confdefs.h <<\_ACEOF
15208 #define BROKEN_MKTIME 1
15209 _ACEOF
15213 ac_have_func=no # yes means we've found a way to get the load average.
15215 # Make sure getloadavg.c is where it belongs, at configure-time.
15216 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" ||
15217 { { echo "$as_me:$LINENO: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&5
15218 echo "$as_me: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&2;}
15219 { (exit 1); exit 1; }; }
15221 ac_save_LIBS=$LIBS
15223 # Check for getloadavg, but be sure not to touch the cache variable.
15224 (echo "$as_me:$LINENO: checking for getloadavg" >&5
15225 echo $ECHO_N "checking for getloadavg... $ECHO_C" >&6
15226 if test "${ac_cv_func_getloadavg+set}" = set; then
15227 echo $ECHO_N "(cached) $ECHO_C" >&6
15228 else
15229 cat >conftest.$ac_ext <<_ACEOF
15230 /* confdefs.h. */
15231 _ACEOF
15232 cat confdefs.h >>conftest.$ac_ext
15233 cat >>conftest.$ac_ext <<_ACEOF
15234 /* end confdefs.h. */
15235 /* Define getloadavg to an innocuous variant, in case <limits.h> declares getloadavg.
15236 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15237 #define getloadavg innocuous_getloadavg
15239 /* System header to define __stub macros and hopefully few prototypes,
15240 which can conflict with char getloadavg (); below.
15241 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15242 <limits.h> exists even on freestanding compilers. */
15244 #ifdef __STDC__
15245 # include <limits.h>
15246 #else
15247 # include <assert.h>
15248 #endif
15250 #undef getloadavg
15252 /* Override any gcc2 internal prototype to avoid an error. */
15253 #ifdef __cplusplus
15254 extern "C"
15256 #endif
15257 /* We use char because int might match the return type of a gcc2
15258 builtin and then its argument prototype would still apply. */
15259 char getloadavg ();
15260 /* The GNU C library defines this for functions which it implements
15261 to always fail with ENOSYS. Some functions are actually named
15262 something starting with __ and the normal name is an alias. */
15263 #if defined (__stub_getloadavg) || defined (__stub___getloadavg)
15264 choke me
15265 #else
15266 char (*f) () = getloadavg;
15267 #endif
15268 #ifdef __cplusplus
15270 #endif
15273 main ()
15275 return f != getloadavg;
15277 return 0;
15279 _ACEOF
15280 rm -f conftest.$ac_objext conftest$ac_exeext
15281 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15282 (eval $ac_link) 2>conftest.er1
15283 ac_status=$?
15284 grep -v '^ *+' conftest.er1 >conftest.err
15285 rm -f conftest.er1
15286 cat conftest.err >&5
15287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15288 (exit $ac_status); } &&
15289 { ac_try='test -z "$ac_c_werror_flag"
15290 || test ! -s conftest.err'
15291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15292 (eval $ac_try) 2>&5
15293 ac_status=$?
15294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15295 (exit $ac_status); }; } &&
15296 { ac_try='test -s conftest$ac_exeext'
15297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15298 (eval $ac_try) 2>&5
15299 ac_status=$?
15300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15301 (exit $ac_status); }; }; then
15302 ac_cv_func_getloadavg=yes
15303 else
15304 echo "$as_me: failed program was:" >&5
15305 sed 's/^/| /' conftest.$ac_ext >&5
15307 ac_cv_func_getloadavg=no
15309 rm -f conftest.err conftest.$ac_objext \
15310 conftest$ac_exeext conftest.$ac_ext
15312 echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg" >&5
15313 echo "${ECHO_T}$ac_cv_func_getloadavg" >&6
15314 if test $ac_cv_func_getloadavg = yes; then
15315 exit 0
15316 else
15317 exit 1
15319 ) && ac_have_func=yes
15321 # On HPUX9, an unprivileged user can get load averages through this function.
15323 for ac_func in pstat_getdynamic
15325 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15326 echo "$as_me:$LINENO: checking for $ac_func" >&5
15327 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15328 if eval "test \"\${$as_ac_var+set}\" = set"; then
15329 echo $ECHO_N "(cached) $ECHO_C" >&6
15330 else
15331 cat >conftest.$ac_ext <<_ACEOF
15332 /* confdefs.h. */
15333 _ACEOF
15334 cat confdefs.h >>conftest.$ac_ext
15335 cat >>conftest.$ac_ext <<_ACEOF
15336 /* end confdefs.h. */
15337 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15338 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15339 #define $ac_func innocuous_$ac_func
15341 /* System header to define __stub macros and hopefully few prototypes,
15342 which can conflict with char $ac_func (); below.
15343 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15344 <limits.h> exists even on freestanding compilers. */
15346 #ifdef __STDC__
15347 # include <limits.h>
15348 #else
15349 # include <assert.h>
15350 #endif
15352 #undef $ac_func
15354 /* Override any gcc2 internal prototype to avoid an error. */
15355 #ifdef __cplusplus
15356 extern "C"
15358 #endif
15359 /* We use char because int might match the return type of a gcc2
15360 builtin and then its argument prototype would still apply. */
15361 char $ac_func ();
15362 /* The GNU C library defines this for functions which it implements
15363 to always fail with ENOSYS. Some functions are actually named
15364 something starting with __ and the normal name is an alias. */
15365 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15366 choke me
15367 #else
15368 char (*f) () = $ac_func;
15369 #endif
15370 #ifdef __cplusplus
15372 #endif
15375 main ()
15377 return f != $ac_func;
15379 return 0;
15381 _ACEOF
15382 rm -f conftest.$ac_objext conftest$ac_exeext
15383 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15384 (eval $ac_link) 2>conftest.er1
15385 ac_status=$?
15386 grep -v '^ *+' conftest.er1 >conftest.err
15387 rm -f conftest.er1
15388 cat conftest.err >&5
15389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15390 (exit $ac_status); } &&
15391 { ac_try='test -z "$ac_c_werror_flag"
15392 || test ! -s conftest.err'
15393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15394 (eval $ac_try) 2>&5
15395 ac_status=$?
15396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15397 (exit $ac_status); }; } &&
15398 { ac_try='test -s conftest$ac_exeext'
15399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15400 (eval $ac_try) 2>&5
15401 ac_status=$?
15402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15403 (exit $ac_status); }; }; then
15404 eval "$as_ac_var=yes"
15405 else
15406 echo "$as_me: failed program was:" >&5
15407 sed 's/^/| /' conftest.$ac_ext >&5
15409 eval "$as_ac_var=no"
15411 rm -f conftest.err conftest.$ac_objext \
15412 conftest$ac_exeext conftest.$ac_ext
15414 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15415 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15416 if test `eval echo '${'$as_ac_var'}'` = yes; then
15417 cat >>confdefs.h <<_ACEOF
15418 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15419 _ACEOF
15422 done
15425 # Solaris has libkstat which does not require root.
15427 echo "$as_me:$LINENO: checking for kstat_open in -lkstat" >&5
15428 echo $ECHO_N "checking for kstat_open in -lkstat... $ECHO_C" >&6
15429 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
15430 echo $ECHO_N "(cached) $ECHO_C" >&6
15431 else
15432 ac_check_lib_save_LIBS=$LIBS
15433 LIBS="-lkstat $LIBS"
15434 cat >conftest.$ac_ext <<_ACEOF
15435 /* confdefs.h. */
15436 _ACEOF
15437 cat confdefs.h >>conftest.$ac_ext
15438 cat >>conftest.$ac_ext <<_ACEOF
15439 /* end confdefs.h. */
15441 /* Override any gcc2 internal prototype to avoid an error. */
15442 #ifdef __cplusplus
15443 extern "C"
15444 #endif
15445 /* We use char because int might match the return type of a gcc2
15446 builtin and then its argument prototype would still apply. */
15447 char kstat_open ();
15449 main ()
15451 kstat_open ();
15453 return 0;
15455 _ACEOF
15456 rm -f conftest.$ac_objext conftest$ac_exeext
15457 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15458 (eval $ac_link) 2>conftest.er1
15459 ac_status=$?
15460 grep -v '^ *+' conftest.er1 >conftest.err
15461 rm -f conftest.er1
15462 cat conftest.err >&5
15463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15464 (exit $ac_status); } &&
15465 { ac_try='test -z "$ac_c_werror_flag"
15466 || test ! -s conftest.err'
15467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15468 (eval $ac_try) 2>&5
15469 ac_status=$?
15470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15471 (exit $ac_status); }; } &&
15472 { ac_try='test -s conftest$ac_exeext'
15473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15474 (eval $ac_try) 2>&5
15475 ac_status=$?
15476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15477 (exit $ac_status); }; }; then
15478 ac_cv_lib_kstat_kstat_open=yes
15479 else
15480 echo "$as_me: failed program was:" >&5
15481 sed 's/^/| /' conftest.$ac_ext >&5
15483 ac_cv_lib_kstat_kstat_open=no
15485 rm -f conftest.err conftest.$ac_objext \
15486 conftest$ac_exeext conftest.$ac_ext
15487 LIBS=$ac_check_lib_save_LIBS
15489 echo "$as_me:$LINENO: result: $ac_cv_lib_kstat_kstat_open" >&5
15490 echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6
15491 if test $ac_cv_lib_kstat_kstat_open = yes; then
15492 cat >>confdefs.h <<_ACEOF
15493 #define HAVE_LIBKSTAT 1
15494 _ACEOF
15496 LIBS="-lkstat $LIBS"
15500 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes
15502 # Some systems with -lutil have (and need) -lkvm as well, some do not.
15503 # On Solaris, -lkvm requires nlist from -lelf, so check that first
15504 # to get the right answer into the cache.
15505 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
15506 if test $ac_have_func = no; then
15507 echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
15508 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
15509 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
15510 echo $ECHO_N "(cached) $ECHO_C" >&6
15511 else
15512 ac_check_lib_save_LIBS=$LIBS
15513 LIBS="-lelf $LIBS"
15514 cat >conftest.$ac_ext <<_ACEOF
15515 /* confdefs.h. */
15516 _ACEOF
15517 cat confdefs.h >>conftest.$ac_ext
15518 cat >>conftest.$ac_ext <<_ACEOF
15519 /* end confdefs.h. */
15521 /* Override any gcc2 internal prototype to avoid an error. */
15522 #ifdef __cplusplus
15523 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 elf_begin ();
15529 main ()
15531 elf_begin ();
15533 return 0;
15535 _ACEOF
15536 rm -f conftest.$ac_objext conftest$ac_exeext
15537 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15538 (eval $ac_link) 2>conftest.er1
15539 ac_status=$?
15540 grep -v '^ *+' conftest.er1 >conftest.err
15541 rm -f conftest.er1
15542 cat conftest.err >&5
15543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15544 (exit $ac_status); } &&
15545 { ac_try='test -z "$ac_c_werror_flag"
15546 || test ! -s conftest.err'
15547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15548 (eval $ac_try) 2>&5
15549 ac_status=$?
15550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15551 (exit $ac_status); }; } &&
15552 { ac_try='test -s conftest$ac_exeext'
15553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15554 (eval $ac_try) 2>&5
15555 ac_status=$?
15556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15557 (exit $ac_status); }; }; then
15558 ac_cv_lib_elf_elf_begin=yes
15559 else
15560 echo "$as_me: failed program was:" >&5
15561 sed 's/^/| /' conftest.$ac_ext >&5
15563 ac_cv_lib_elf_elf_begin=no
15565 rm -f conftest.err conftest.$ac_objext \
15566 conftest$ac_exeext conftest.$ac_ext
15567 LIBS=$ac_check_lib_save_LIBS
15569 echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
15570 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
15571 if test $ac_cv_lib_elf_elf_begin = yes; then
15572 LIBS="-lelf $LIBS"
15576 if test $ac_have_func = no; then
15577 echo "$as_me:$LINENO: checking for kvm_open in -lkvm" >&5
15578 echo $ECHO_N "checking for kvm_open in -lkvm... $ECHO_C" >&6
15579 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
15580 echo $ECHO_N "(cached) $ECHO_C" >&6
15581 else
15582 ac_check_lib_save_LIBS=$LIBS
15583 LIBS="-lkvm $LIBS"
15584 cat >conftest.$ac_ext <<_ACEOF
15585 /* confdefs.h. */
15586 _ACEOF
15587 cat confdefs.h >>conftest.$ac_ext
15588 cat >>conftest.$ac_ext <<_ACEOF
15589 /* end confdefs.h. */
15591 /* Override any gcc2 internal prototype to avoid an error. */
15592 #ifdef __cplusplus
15593 extern "C"
15594 #endif
15595 /* We use char because int might match the return type of a gcc2
15596 builtin and then its argument prototype would still apply. */
15597 char kvm_open ();
15599 main ()
15601 kvm_open ();
15603 return 0;
15605 _ACEOF
15606 rm -f conftest.$ac_objext conftest$ac_exeext
15607 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15608 (eval $ac_link) 2>conftest.er1
15609 ac_status=$?
15610 grep -v '^ *+' conftest.er1 >conftest.err
15611 rm -f conftest.er1
15612 cat conftest.err >&5
15613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15614 (exit $ac_status); } &&
15615 { ac_try='test -z "$ac_c_werror_flag"
15616 || test ! -s conftest.err'
15617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15618 (eval $ac_try) 2>&5
15619 ac_status=$?
15620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15621 (exit $ac_status); }; } &&
15622 { ac_try='test -s conftest$ac_exeext'
15623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15624 (eval $ac_try) 2>&5
15625 ac_status=$?
15626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15627 (exit $ac_status); }; }; then
15628 ac_cv_lib_kvm_kvm_open=yes
15629 else
15630 echo "$as_me: failed program was:" >&5
15631 sed 's/^/| /' conftest.$ac_ext >&5
15633 ac_cv_lib_kvm_kvm_open=no
15635 rm -f conftest.err conftest.$ac_objext \
15636 conftest$ac_exeext conftest.$ac_ext
15637 LIBS=$ac_check_lib_save_LIBS
15639 echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_kvm_open" >&5
15640 echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6
15641 if test $ac_cv_lib_kvm_kvm_open = yes; then
15642 LIBS="-lkvm $LIBS"
15645 # Check for the 4.4BSD definition of getloadavg.
15646 echo "$as_me:$LINENO: checking for getloadavg in -lutil" >&5
15647 echo $ECHO_N "checking for getloadavg in -lutil... $ECHO_C" >&6
15648 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
15649 echo $ECHO_N "(cached) $ECHO_C" >&6
15650 else
15651 ac_check_lib_save_LIBS=$LIBS
15652 LIBS="-lutil $LIBS"
15653 cat >conftest.$ac_ext <<_ACEOF
15654 /* confdefs.h. */
15655 _ACEOF
15656 cat confdefs.h >>conftest.$ac_ext
15657 cat >>conftest.$ac_ext <<_ACEOF
15658 /* end confdefs.h. */
15660 /* Override any gcc2 internal prototype to avoid an error. */
15661 #ifdef __cplusplus
15662 extern "C"
15663 #endif
15664 /* We use char because int might match the return type of a gcc2
15665 builtin and then its argument prototype would still apply. */
15666 char getloadavg ();
15668 main ()
15670 getloadavg ();
15672 return 0;
15674 _ACEOF
15675 rm -f conftest.$ac_objext conftest$ac_exeext
15676 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15677 (eval $ac_link) 2>conftest.er1
15678 ac_status=$?
15679 grep -v '^ *+' conftest.er1 >conftest.err
15680 rm -f conftest.er1
15681 cat conftest.err >&5
15682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15683 (exit $ac_status); } &&
15684 { ac_try='test -z "$ac_c_werror_flag"
15685 || test ! -s conftest.err'
15686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15687 (eval $ac_try) 2>&5
15688 ac_status=$?
15689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15690 (exit $ac_status); }; } &&
15691 { ac_try='test -s conftest$ac_exeext'
15692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15693 (eval $ac_try) 2>&5
15694 ac_status=$?
15695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15696 (exit $ac_status); }; }; then
15697 ac_cv_lib_util_getloadavg=yes
15698 else
15699 echo "$as_me: failed program was:" >&5
15700 sed 's/^/| /' conftest.$ac_ext >&5
15702 ac_cv_lib_util_getloadavg=no
15704 rm -f conftest.err conftest.$ac_objext \
15705 conftest$ac_exeext conftest.$ac_ext
15706 LIBS=$ac_check_lib_save_LIBS
15708 echo "$as_me:$LINENO: result: $ac_cv_lib_util_getloadavg" >&5
15709 echo "${ECHO_T}$ac_cv_lib_util_getloadavg" >&6
15710 if test $ac_cv_lib_util_getloadavg = yes; then
15711 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
15716 if test $ac_have_func = no; then
15717 # There is a commonly available library for RS/6000 AIX.
15718 # Since it is not a standard part of AIX, it might be installed locally.
15719 ac_getloadavg_LIBS=$LIBS
15720 LIBS="-L/usr/local/lib $LIBS"
15721 echo "$as_me:$LINENO: checking for getloadavg in -lgetloadavg" >&5
15722 echo $ECHO_N "checking for getloadavg in -lgetloadavg... $ECHO_C" >&6
15723 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
15724 echo $ECHO_N "(cached) $ECHO_C" >&6
15725 else
15726 ac_check_lib_save_LIBS=$LIBS
15727 LIBS="-lgetloadavg $LIBS"
15728 cat >conftest.$ac_ext <<_ACEOF
15729 /* confdefs.h. */
15730 _ACEOF
15731 cat confdefs.h >>conftest.$ac_ext
15732 cat >>conftest.$ac_ext <<_ACEOF
15733 /* end confdefs.h. */
15735 /* Override any gcc2 internal prototype to avoid an error. */
15736 #ifdef __cplusplus
15737 extern "C"
15738 #endif
15739 /* We use char because int might match the return type of a gcc2
15740 builtin and then its argument prototype would still apply. */
15741 char getloadavg ();
15743 main ()
15745 getloadavg ();
15747 return 0;
15749 _ACEOF
15750 rm -f conftest.$ac_objext conftest$ac_exeext
15751 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15752 (eval $ac_link) 2>conftest.er1
15753 ac_status=$?
15754 grep -v '^ *+' conftest.er1 >conftest.err
15755 rm -f conftest.er1
15756 cat conftest.err >&5
15757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15758 (exit $ac_status); } &&
15759 { ac_try='test -z "$ac_c_werror_flag"
15760 || test ! -s conftest.err'
15761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15762 (eval $ac_try) 2>&5
15763 ac_status=$?
15764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15765 (exit $ac_status); }; } &&
15766 { ac_try='test -s conftest$ac_exeext'
15767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15768 (eval $ac_try) 2>&5
15769 ac_status=$?
15770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15771 (exit $ac_status); }; }; then
15772 ac_cv_lib_getloadavg_getloadavg=yes
15773 else
15774 echo "$as_me: failed program was:" >&5
15775 sed 's/^/| /' conftest.$ac_ext >&5
15777 ac_cv_lib_getloadavg_getloadavg=no
15779 rm -f conftest.err conftest.$ac_objext \
15780 conftest$ac_exeext conftest.$ac_ext
15781 LIBS=$ac_check_lib_save_LIBS
15783 echo "$as_me:$LINENO: result: $ac_cv_lib_getloadavg_getloadavg" >&5
15784 echo "${ECHO_T}$ac_cv_lib_getloadavg_getloadavg" >&6
15785 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
15786 LIBS="-lgetloadavg $LIBS"
15787 else
15788 LIBS=$ac_getloadavg_LIBS
15793 # Make sure it is really in the library, if we think we found it,
15794 # otherwise set up the replacement function.
15796 for ac_func in getloadavg
15798 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15799 echo "$as_me:$LINENO: checking for $ac_func" >&5
15800 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15801 if eval "test \"\${$as_ac_var+set}\" = set"; then
15802 echo $ECHO_N "(cached) $ECHO_C" >&6
15803 else
15804 cat >conftest.$ac_ext <<_ACEOF
15805 /* confdefs.h. */
15806 _ACEOF
15807 cat confdefs.h >>conftest.$ac_ext
15808 cat >>conftest.$ac_ext <<_ACEOF
15809 /* end confdefs.h. */
15810 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15811 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15812 #define $ac_func innocuous_$ac_func
15814 /* System header to define __stub macros and hopefully few prototypes,
15815 which can conflict with char $ac_func (); below.
15816 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15817 <limits.h> exists even on freestanding compilers. */
15819 #ifdef __STDC__
15820 # include <limits.h>
15821 #else
15822 # include <assert.h>
15823 #endif
15825 #undef $ac_func
15827 /* Override any gcc2 internal prototype to avoid an error. */
15828 #ifdef __cplusplus
15829 extern "C"
15831 #endif
15832 /* We use char because int might match the return type of a gcc2
15833 builtin and then its argument prototype would still apply. */
15834 char $ac_func ();
15835 /* The GNU C library defines this for functions which it implements
15836 to always fail with ENOSYS. Some functions are actually named
15837 something starting with __ and the normal name is an alias. */
15838 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15839 choke me
15840 #else
15841 char (*f) () = $ac_func;
15842 #endif
15843 #ifdef __cplusplus
15845 #endif
15848 main ()
15850 return f != $ac_func;
15852 return 0;
15854 _ACEOF
15855 rm -f conftest.$ac_objext conftest$ac_exeext
15856 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15857 (eval $ac_link) 2>conftest.er1
15858 ac_status=$?
15859 grep -v '^ *+' conftest.er1 >conftest.err
15860 rm -f conftest.er1
15861 cat conftest.err >&5
15862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15863 (exit $ac_status); } &&
15864 { ac_try='test -z "$ac_c_werror_flag"
15865 || test ! -s conftest.err'
15866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15867 (eval $ac_try) 2>&5
15868 ac_status=$?
15869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15870 (exit $ac_status); }; } &&
15871 { ac_try='test -s conftest$ac_exeext'
15872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15873 (eval $ac_try) 2>&5
15874 ac_status=$?
15875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15876 (exit $ac_status); }; }; then
15877 eval "$as_ac_var=yes"
15878 else
15879 echo "$as_me: failed program was:" >&5
15880 sed 's/^/| /' conftest.$ac_ext >&5
15882 eval "$as_ac_var=no"
15884 rm -f conftest.err conftest.$ac_objext \
15885 conftest$ac_exeext conftest.$ac_ext
15887 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15888 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15889 if test `eval echo '${'$as_ac_var'}'` = yes; then
15890 cat >>confdefs.h <<_ACEOF
15891 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15892 _ACEOF
15894 else
15895 case $LIBOBJS in
15896 "getloadavg.$ac_objext" | \
15897 *" getloadavg.$ac_objext" | \
15898 "getloadavg.$ac_objext "* | \
15899 *" getloadavg.$ac_objext "* ) ;;
15900 *) LIBOBJS="$LIBOBJS getloadavg.$ac_objext" ;;
15901 esac
15904 cat >>confdefs.h <<\_ACEOF
15905 #define C_GETLOADAVG 1
15906 _ACEOF
15908 # Figure out what our getloadavg.c needs.
15909 ac_have_func=no
15910 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
15911 echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
15912 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
15913 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
15914 echo $ECHO_N "(cached) $ECHO_C" >&6
15916 echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
15917 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
15918 else
15919 # Is the header compilable?
15920 echo "$as_me:$LINENO: checking sys/dg_sys_info.h usability" >&5
15921 echo $ECHO_N "checking sys/dg_sys_info.h usability... $ECHO_C" >&6
15922 cat >conftest.$ac_ext <<_ACEOF
15923 /* confdefs.h. */
15924 _ACEOF
15925 cat confdefs.h >>conftest.$ac_ext
15926 cat >>conftest.$ac_ext <<_ACEOF
15927 /* end confdefs.h. */
15928 $ac_includes_default
15929 #include <sys/dg_sys_info.h>
15930 _ACEOF
15931 rm -f conftest.$ac_objext
15932 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15933 (eval $ac_compile) 2>conftest.er1
15934 ac_status=$?
15935 grep -v '^ *+' conftest.er1 >conftest.err
15936 rm -f conftest.er1
15937 cat conftest.err >&5
15938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15939 (exit $ac_status); } &&
15940 { ac_try='test -z "$ac_c_werror_flag"
15941 || test ! -s conftest.err'
15942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15943 (eval $ac_try) 2>&5
15944 ac_status=$?
15945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15946 (exit $ac_status); }; } &&
15947 { ac_try='test -s conftest.$ac_objext'
15948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15949 (eval $ac_try) 2>&5
15950 ac_status=$?
15951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15952 (exit $ac_status); }; }; then
15953 ac_header_compiler=yes
15954 else
15955 echo "$as_me: failed program was:" >&5
15956 sed 's/^/| /' conftest.$ac_ext >&5
15958 ac_header_compiler=no
15960 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15961 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15962 echo "${ECHO_T}$ac_header_compiler" >&6
15964 # Is the header present?
15965 echo "$as_me:$LINENO: checking sys/dg_sys_info.h presence" >&5
15966 echo $ECHO_N "checking sys/dg_sys_info.h presence... $ECHO_C" >&6
15967 cat >conftest.$ac_ext <<_ACEOF
15968 /* confdefs.h. */
15969 _ACEOF
15970 cat confdefs.h >>conftest.$ac_ext
15971 cat >>conftest.$ac_ext <<_ACEOF
15972 /* end confdefs.h. */
15973 #include <sys/dg_sys_info.h>
15974 _ACEOF
15975 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15976 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15977 ac_status=$?
15978 grep -v '^ *+' conftest.er1 >conftest.err
15979 rm -f conftest.er1
15980 cat conftest.err >&5
15981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15982 (exit $ac_status); } >/dev/null; then
15983 if test -s conftest.err; then
15984 ac_cpp_err=$ac_c_preproc_warn_flag
15985 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15986 else
15987 ac_cpp_err=
15989 else
15990 ac_cpp_err=yes
15992 if test -z "$ac_cpp_err"; then
15993 ac_header_preproc=yes
15994 else
15995 echo "$as_me: failed program was:" >&5
15996 sed 's/^/| /' conftest.$ac_ext >&5
15998 ac_header_preproc=no
16000 rm -f conftest.err conftest.$ac_ext
16001 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16002 echo "${ECHO_T}$ac_header_preproc" >&6
16004 # So? What about this header?
16005 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16006 yes:no: )
16007 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&5
16008 echo "$as_me: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16009 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&5
16010 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&2;}
16011 ac_header_preproc=yes
16013 no:yes:* )
16014 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&5
16015 echo "$as_me: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&2;}
16016 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&5
16017 echo "$as_me: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&2;}
16018 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&5
16019 echo "$as_me: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&2;}
16020 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&5
16021 echo "$as_me: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&2;}
16022 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
16023 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;}
16024 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&5
16025 echo "$as_me: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&2;}
16027 cat <<\_ASBOX
16028 ## ------------------------------------------ ##
16029 ## Report this to the AC_PACKAGE_NAME lists. ##
16030 ## ------------------------------------------ ##
16031 _ASBOX
16033 sed "s/^/$as_me: WARNING: /" >&2
16035 esac
16036 echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
16037 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
16038 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
16039 echo $ECHO_N "(cached) $ECHO_C" >&6
16040 else
16041 ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc
16043 echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
16044 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
16047 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
16048 ac_have_func=yes
16050 cat >>confdefs.h <<\_ACEOF
16051 #define DGUX 1
16052 _ACEOF
16055 echo "$as_me:$LINENO: checking for dg_sys_info in -ldgc" >&5
16056 echo $ECHO_N "checking for dg_sys_info in -ldgc... $ECHO_C" >&6
16057 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
16058 echo $ECHO_N "(cached) $ECHO_C" >&6
16059 else
16060 ac_check_lib_save_LIBS=$LIBS
16061 LIBS="-ldgc $LIBS"
16062 cat >conftest.$ac_ext <<_ACEOF
16063 /* confdefs.h. */
16064 _ACEOF
16065 cat confdefs.h >>conftest.$ac_ext
16066 cat >>conftest.$ac_ext <<_ACEOF
16067 /* end confdefs.h. */
16069 /* Override any gcc2 internal prototype to avoid an error. */
16070 #ifdef __cplusplus
16071 extern "C"
16072 #endif
16073 /* We use char because int might match the return type of a gcc2
16074 builtin and then its argument prototype would still apply. */
16075 char dg_sys_info ();
16077 main ()
16079 dg_sys_info ();
16081 return 0;
16083 _ACEOF
16084 rm -f conftest.$ac_objext conftest$ac_exeext
16085 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16086 (eval $ac_link) 2>conftest.er1
16087 ac_status=$?
16088 grep -v '^ *+' conftest.er1 >conftest.err
16089 rm -f conftest.er1
16090 cat conftest.err >&5
16091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16092 (exit $ac_status); } &&
16093 { ac_try='test -z "$ac_c_werror_flag"
16094 || test ! -s conftest.err'
16095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16096 (eval $ac_try) 2>&5
16097 ac_status=$?
16098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16099 (exit $ac_status); }; } &&
16100 { ac_try='test -s conftest$ac_exeext'
16101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16102 (eval $ac_try) 2>&5
16103 ac_status=$?
16104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16105 (exit $ac_status); }; }; then
16106 ac_cv_lib_dgc_dg_sys_info=yes
16107 else
16108 echo "$as_me: failed program was:" >&5
16109 sed 's/^/| /' conftest.$ac_ext >&5
16111 ac_cv_lib_dgc_dg_sys_info=no
16113 rm -f conftest.err conftest.$ac_objext \
16114 conftest$ac_exeext conftest.$ac_ext
16115 LIBS=$ac_check_lib_save_LIBS
16117 echo "$as_me:$LINENO: result: $ac_cv_lib_dgc_dg_sys_info" >&5
16118 echo "${ECHO_T}$ac_cv_lib_dgc_dg_sys_info" >&6
16119 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
16120 cat >>confdefs.h <<_ACEOF
16121 #define HAVE_LIBDGC 1
16122 _ACEOF
16124 LIBS="-ldgc $LIBS"
16132 if test "${ac_cv_header_locale_h+set}" = set; then
16133 echo "$as_me:$LINENO: checking for locale.h" >&5
16134 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
16135 if test "${ac_cv_header_locale_h+set}" = set; then
16136 echo $ECHO_N "(cached) $ECHO_C" >&6
16138 echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
16139 echo "${ECHO_T}$ac_cv_header_locale_h" >&6
16140 else
16141 # Is the header compilable?
16142 echo "$as_me:$LINENO: checking locale.h usability" >&5
16143 echo $ECHO_N "checking locale.h usability... $ECHO_C" >&6
16144 cat >conftest.$ac_ext <<_ACEOF
16145 /* confdefs.h. */
16146 _ACEOF
16147 cat confdefs.h >>conftest.$ac_ext
16148 cat >>conftest.$ac_ext <<_ACEOF
16149 /* end confdefs.h. */
16150 $ac_includes_default
16151 #include <locale.h>
16152 _ACEOF
16153 rm -f conftest.$ac_objext
16154 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16155 (eval $ac_compile) 2>conftest.er1
16156 ac_status=$?
16157 grep -v '^ *+' conftest.er1 >conftest.err
16158 rm -f conftest.er1
16159 cat conftest.err >&5
16160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16161 (exit $ac_status); } &&
16162 { ac_try='test -z "$ac_c_werror_flag"
16163 || test ! -s conftest.err'
16164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16165 (eval $ac_try) 2>&5
16166 ac_status=$?
16167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16168 (exit $ac_status); }; } &&
16169 { ac_try='test -s conftest.$ac_objext'
16170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16171 (eval $ac_try) 2>&5
16172 ac_status=$?
16173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16174 (exit $ac_status); }; }; then
16175 ac_header_compiler=yes
16176 else
16177 echo "$as_me: failed program was:" >&5
16178 sed 's/^/| /' conftest.$ac_ext >&5
16180 ac_header_compiler=no
16182 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16183 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16184 echo "${ECHO_T}$ac_header_compiler" >&6
16186 # Is the header present?
16187 echo "$as_me:$LINENO: checking locale.h presence" >&5
16188 echo $ECHO_N "checking locale.h presence... $ECHO_C" >&6
16189 cat >conftest.$ac_ext <<_ACEOF
16190 /* confdefs.h. */
16191 _ACEOF
16192 cat confdefs.h >>conftest.$ac_ext
16193 cat >>conftest.$ac_ext <<_ACEOF
16194 /* end confdefs.h. */
16195 #include <locale.h>
16196 _ACEOF
16197 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16198 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16199 ac_status=$?
16200 grep -v '^ *+' conftest.er1 >conftest.err
16201 rm -f conftest.er1
16202 cat conftest.err >&5
16203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16204 (exit $ac_status); } >/dev/null; then
16205 if test -s conftest.err; then
16206 ac_cpp_err=$ac_c_preproc_warn_flag
16207 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16208 else
16209 ac_cpp_err=
16211 else
16212 ac_cpp_err=yes
16214 if test -z "$ac_cpp_err"; then
16215 ac_header_preproc=yes
16216 else
16217 echo "$as_me: failed program was:" >&5
16218 sed 's/^/| /' conftest.$ac_ext >&5
16220 ac_header_preproc=no
16222 rm -f conftest.err conftest.$ac_ext
16223 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16224 echo "${ECHO_T}$ac_header_preproc" >&6
16226 # So? What about this header?
16227 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16228 yes:no: )
16229 { echo "$as_me:$LINENO: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&5
16230 echo "$as_me: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16231 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the compiler's result" >&5
16232 echo "$as_me: WARNING: locale.h: proceeding with the compiler's result" >&2;}
16233 ac_header_preproc=yes
16235 no:yes:* )
16236 { echo "$as_me:$LINENO: WARNING: locale.h: present but cannot be compiled" >&5
16237 echo "$as_me: WARNING: locale.h: present but cannot be compiled" >&2;}
16238 { echo "$as_me:$LINENO: WARNING: locale.h: check for missing prerequisite headers?" >&5
16239 echo "$as_me: WARNING: locale.h: check for missing prerequisite headers?" >&2;}
16240 { echo "$as_me:$LINENO: WARNING: locale.h: see the Autoconf documentation" >&5
16241 echo "$as_me: WARNING: locale.h: see the Autoconf documentation" >&2;}
16242 { echo "$as_me:$LINENO: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&5
16243 echo "$as_me: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&2;}
16244 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
16245 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;}
16246 { echo "$as_me:$LINENO: WARNING: locale.h: in the future, the compiler will take precedence" >&5
16247 echo "$as_me: WARNING: locale.h: in the future, the compiler will take precedence" >&2;}
16249 cat <<\_ASBOX
16250 ## ------------------------------------------ ##
16251 ## Report this to the AC_PACKAGE_NAME lists. ##
16252 ## ------------------------------------------ ##
16253 _ASBOX
16255 sed "s/^/$as_me: WARNING: /" >&2
16257 esac
16258 echo "$as_me:$LINENO: checking for locale.h" >&5
16259 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
16260 if test "${ac_cv_header_locale_h+set}" = set; then
16261 echo $ECHO_N "(cached) $ECHO_C" >&6
16262 else
16263 ac_cv_header_locale_h=$ac_header_preproc
16265 echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
16266 echo "${ECHO_T}$ac_cv_header_locale_h" >&6
16272 for ac_func in setlocale
16274 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16275 echo "$as_me:$LINENO: checking for $ac_func" >&5
16276 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16277 if eval "test \"\${$as_ac_var+set}\" = set"; then
16278 echo $ECHO_N "(cached) $ECHO_C" >&6
16279 else
16280 cat >conftest.$ac_ext <<_ACEOF
16281 /* confdefs.h. */
16282 _ACEOF
16283 cat confdefs.h >>conftest.$ac_ext
16284 cat >>conftest.$ac_ext <<_ACEOF
16285 /* end confdefs.h. */
16286 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16287 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16288 #define $ac_func innocuous_$ac_func
16290 /* System header to define __stub macros and hopefully few prototypes,
16291 which can conflict with char $ac_func (); below.
16292 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16293 <limits.h> exists even on freestanding compilers. */
16295 #ifdef __STDC__
16296 # include <limits.h>
16297 #else
16298 # include <assert.h>
16299 #endif
16301 #undef $ac_func
16303 /* Override any gcc2 internal prototype to avoid an error. */
16304 #ifdef __cplusplus
16305 extern "C"
16307 #endif
16308 /* We use char because int might match the return type of a gcc2
16309 builtin and then its argument prototype would still apply. */
16310 char $ac_func ();
16311 /* The GNU C library defines this for functions which it implements
16312 to always fail with ENOSYS. Some functions are actually named
16313 something starting with __ and the normal name is an alias. */
16314 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16315 choke me
16316 #else
16317 char (*f) () = $ac_func;
16318 #endif
16319 #ifdef __cplusplus
16321 #endif
16324 main ()
16326 return f != $ac_func;
16328 return 0;
16330 _ACEOF
16331 rm -f conftest.$ac_objext conftest$ac_exeext
16332 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16333 (eval $ac_link) 2>conftest.er1
16334 ac_status=$?
16335 grep -v '^ *+' conftest.er1 >conftest.err
16336 rm -f conftest.er1
16337 cat conftest.err >&5
16338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16339 (exit $ac_status); } &&
16340 { ac_try='test -z "$ac_c_werror_flag"
16341 || test ! -s conftest.err'
16342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16343 (eval $ac_try) 2>&5
16344 ac_status=$?
16345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16346 (exit $ac_status); }; } &&
16347 { ac_try='test -s conftest$ac_exeext'
16348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16349 (eval $ac_try) 2>&5
16350 ac_status=$?
16351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16352 (exit $ac_status); }; }; then
16353 eval "$as_ac_var=yes"
16354 else
16355 echo "$as_me: failed program was:" >&5
16356 sed 's/^/| /' conftest.$ac_ext >&5
16358 eval "$as_ac_var=no"
16360 rm -f conftest.err conftest.$ac_objext \
16361 conftest$ac_exeext conftest.$ac_ext
16363 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16364 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16365 if test `eval echo '${'$as_ac_var'}'` = yes; then
16366 cat >>confdefs.h <<_ACEOF
16367 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16368 _ACEOF
16371 done
16374 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
16375 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
16376 # Irix 4.0.5F has the header but not the library.
16377 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
16378 ac_have_func=yes
16380 cat >>confdefs.h <<\_ACEOF
16381 #define SVR4 1
16382 _ACEOF
16386 if test $ac_have_func = no; then
16387 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
16388 echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
16389 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6
16390 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
16391 echo $ECHO_N "(cached) $ECHO_C" >&6
16393 echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
16394 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6
16395 else
16396 # Is the header compilable?
16397 echo "$as_me:$LINENO: checking inq_stats/cpustats.h usability" >&5
16398 echo $ECHO_N "checking inq_stats/cpustats.h usability... $ECHO_C" >&6
16399 cat >conftest.$ac_ext <<_ACEOF
16400 /* confdefs.h. */
16401 _ACEOF
16402 cat confdefs.h >>conftest.$ac_ext
16403 cat >>conftest.$ac_ext <<_ACEOF
16404 /* end confdefs.h. */
16405 $ac_includes_default
16406 #include <inq_stats/cpustats.h>
16407 _ACEOF
16408 rm -f conftest.$ac_objext
16409 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16410 (eval $ac_compile) 2>conftest.er1
16411 ac_status=$?
16412 grep -v '^ *+' conftest.er1 >conftest.err
16413 rm -f conftest.er1
16414 cat conftest.err >&5
16415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16416 (exit $ac_status); } &&
16417 { ac_try='test -z "$ac_c_werror_flag"
16418 || test ! -s conftest.err'
16419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16420 (eval $ac_try) 2>&5
16421 ac_status=$?
16422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16423 (exit $ac_status); }; } &&
16424 { ac_try='test -s conftest.$ac_objext'
16425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16426 (eval $ac_try) 2>&5
16427 ac_status=$?
16428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16429 (exit $ac_status); }; }; then
16430 ac_header_compiler=yes
16431 else
16432 echo "$as_me: failed program was:" >&5
16433 sed 's/^/| /' conftest.$ac_ext >&5
16435 ac_header_compiler=no
16437 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16438 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16439 echo "${ECHO_T}$ac_header_compiler" >&6
16441 # Is the header present?
16442 echo "$as_me:$LINENO: checking inq_stats/cpustats.h presence" >&5
16443 echo $ECHO_N "checking inq_stats/cpustats.h presence... $ECHO_C" >&6
16444 cat >conftest.$ac_ext <<_ACEOF
16445 /* confdefs.h. */
16446 _ACEOF
16447 cat confdefs.h >>conftest.$ac_ext
16448 cat >>conftest.$ac_ext <<_ACEOF
16449 /* end confdefs.h. */
16450 #include <inq_stats/cpustats.h>
16451 _ACEOF
16452 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16453 (eval $ac_cpp conftest.$ac_ext) 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); } >/dev/null; then
16460 if test -s conftest.err; then
16461 ac_cpp_err=$ac_c_preproc_warn_flag
16462 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16463 else
16464 ac_cpp_err=
16466 else
16467 ac_cpp_err=yes
16469 if test -z "$ac_cpp_err"; then
16470 ac_header_preproc=yes
16471 else
16472 echo "$as_me: failed program was:" >&5
16473 sed 's/^/| /' conftest.$ac_ext >&5
16475 ac_header_preproc=no
16477 rm -f conftest.err conftest.$ac_ext
16478 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16479 echo "${ECHO_T}$ac_header_preproc" >&6
16481 # So? What about this header?
16482 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16483 yes:no: )
16484 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
16485 echo "$as_me: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16486 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&5
16487 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&2;}
16488 ac_header_preproc=yes
16490 no:yes:* )
16491 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&5
16492 echo "$as_me: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&2;}
16493 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&5
16494 echo "$as_me: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&2;}
16495 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&5
16496 echo "$as_me: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&2;}
16497 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
16498 echo "$as_me: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
16499 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
16500 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;}
16501 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&5
16502 echo "$as_me: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&2;}
16504 cat <<\_ASBOX
16505 ## ------------------------------------------ ##
16506 ## Report this to the AC_PACKAGE_NAME lists. ##
16507 ## ------------------------------------------ ##
16508 _ASBOX
16510 sed "s/^/$as_me: WARNING: /" >&2
16512 esac
16513 echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
16514 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6
16515 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
16516 echo $ECHO_N "(cached) $ECHO_C" >&6
16517 else
16518 ac_cv_header_inq_stats_cpustats_h=$ac_header_preproc
16520 echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
16521 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6
16524 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
16525 ac_have_func=yes
16527 cat >>confdefs.h <<\_ACEOF
16528 #define UMAX 1
16529 _ACEOF
16532 cat >>confdefs.h <<\_ACEOF
16533 #define UMAX4_3 1
16534 _ACEOF
16541 if test $ac_have_func = no; then
16542 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
16543 echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
16544 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6
16545 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
16546 echo $ECHO_N "(cached) $ECHO_C" >&6
16548 echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
16549 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6
16550 else
16551 # Is the header compilable?
16552 echo "$as_me:$LINENO: checking sys/cpustats.h usability" >&5
16553 echo $ECHO_N "checking sys/cpustats.h usability... $ECHO_C" >&6
16554 cat >conftest.$ac_ext <<_ACEOF
16555 /* confdefs.h. */
16556 _ACEOF
16557 cat confdefs.h >>conftest.$ac_ext
16558 cat >>conftest.$ac_ext <<_ACEOF
16559 /* end confdefs.h. */
16560 $ac_includes_default
16561 #include <sys/cpustats.h>
16562 _ACEOF
16563 rm -f conftest.$ac_objext
16564 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16565 (eval $ac_compile) 2>conftest.er1
16566 ac_status=$?
16567 grep -v '^ *+' conftest.er1 >conftest.err
16568 rm -f conftest.er1
16569 cat conftest.err >&5
16570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16571 (exit $ac_status); } &&
16572 { ac_try='test -z "$ac_c_werror_flag"
16573 || test ! -s conftest.err'
16574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16575 (eval $ac_try) 2>&5
16576 ac_status=$?
16577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16578 (exit $ac_status); }; } &&
16579 { ac_try='test -s conftest.$ac_objext'
16580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16581 (eval $ac_try) 2>&5
16582 ac_status=$?
16583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16584 (exit $ac_status); }; }; then
16585 ac_header_compiler=yes
16586 else
16587 echo "$as_me: failed program was:" >&5
16588 sed 's/^/| /' conftest.$ac_ext >&5
16590 ac_header_compiler=no
16592 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16593 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16594 echo "${ECHO_T}$ac_header_compiler" >&6
16596 # Is the header present?
16597 echo "$as_me:$LINENO: checking sys/cpustats.h presence" >&5
16598 echo $ECHO_N "checking sys/cpustats.h presence... $ECHO_C" >&6
16599 cat >conftest.$ac_ext <<_ACEOF
16600 /* confdefs.h. */
16601 _ACEOF
16602 cat confdefs.h >>conftest.$ac_ext
16603 cat >>conftest.$ac_ext <<_ACEOF
16604 /* end confdefs.h. */
16605 #include <sys/cpustats.h>
16606 _ACEOF
16607 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16608 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16609 ac_status=$?
16610 grep -v '^ *+' conftest.er1 >conftest.err
16611 rm -f conftest.er1
16612 cat conftest.err >&5
16613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16614 (exit $ac_status); } >/dev/null; then
16615 if test -s conftest.err; then
16616 ac_cpp_err=$ac_c_preproc_warn_flag
16617 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16618 else
16619 ac_cpp_err=
16621 else
16622 ac_cpp_err=yes
16624 if test -z "$ac_cpp_err"; then
16625 ac_header_preproc=yes
16626 else
16627 echo "$as_me: failed program was:" >&5
16628 sed 's/^/| /' conftest.$ac_ext >&5
16630 ac_header_preproc=no
16632 rm -f conftest.err conftest.$ac_ext
16633 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16634 echo "${ECHO_T}$ac_header_preproc" >&6
16636 # So? What about this header?
16637 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16638 yes:no: )
16639 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
16640 echo "$as_me: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16641 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&5
16642 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&2;}
16643 ac_header_preproc=yes
16645 no:yes:* )
16646 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: present but cannot be compiled" >&5
16647 echo "$as_me: WARNING: sys/cpustats.h: present but cannot be compiled" >&2;}
16648 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&5
16649 echo "$as_me: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&2;}
16650 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: see the Autoconf documentation" >&5
16651 echo "$as_me: WARNING: sys/cpustats.h: see the Autoconf documentation" >&2;}
16652 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
16653 echo "$as_me: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
16654 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
16655 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;}
16656 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&5
16657 echo "$as_me: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&2;}
16659 cat <<\_ASBOX
16660 ## ------------------------------------------ ##
16661 ## Report this to the AC_PACKAGE_NAME lists. ##
16662 ## ------------------------------------------ ##
16663 _ASBOX
16665 sed "s/^/$as_me: WARNING: /" >&2
16667 esac
16668 echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
16669 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6
16670 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
16671 echo $ECHO_N "(cached) $ECHO_C" >&6
16672 else
16673 ac_cv_header_sys_cpustats_h=$ac_header_preproc
16675 echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
16676 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6
16679 if test $ac_cv_header_sys_cpustats_h = yes; then
16680 ac_have_func=yes; cat >>confdefs.h <<\_ACEOF
16681 #define UMAX 1
16682 _ACEOF
16689 if test $ac_have_func = no; then
16691 for ac_header in mach/mach.h
16693 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16694 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16695 echo "$as_me:$LINENO: checking for $ac_header" >&5
16696 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16697 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16698 echo $ECHO_N "(cached) $ECHO_C" >&6
16700 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16701 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16702 else
16703 # Is the header compilable?
16704 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16705 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16706 cat >conftest.$ac_ext <<_ACEOF
16707 /* confdefs.h. */
16708 _ACEOF
16709 cat confdefs.h >>conftest.$ac_ext
16710 cat >>conftest.$ac_ext <<_ACEOF
16711 /* end confdefs.h. */
16712 $ac_includes_default
16713 #include <$ac_header>
16714 _ACEOF
16715 rm -f conftest.$ac_objext
16716 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16717 (eval $ac_compile) 2>conftest.er1
16718 ac_status=$?
16719 grep -v '^ *+' conftest.er1 >conftest.err
16720 rm -f conftest.er1
16721 cat conftest.err >&5
16722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16723 (exit $ac_status); } &&
16724 { ac_try='test -z "$ac_c_werror_flag"
16725 || test ! -s conftest.err'
16726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16727 (eval $ac_try) 2>&5
16728 ac_status=$?
16729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16730 (exit $ac_status); }; } &&
16731 { ac_try='test -s conftest.$ac_objext'
16732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16733 (eval $ac_try) 2>&5
16734 ac_status=$?
16735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16736 (exit $ac_status); }; }; then
16737 ac_header_compiler=yes
16738 else
16739 echo "$as_me: failed program was:" >&5
16740 sed 's/^/| /' conftest.$ac_ext >&5
16742 ac_header_compiler=no
16744 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16745 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16746 echo "${ECHO_T}$ac_header_compiler" >&6
16748 # Is the header present?
16749 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16750 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16751 cat >conftest.$ac_ext <<_ACEOF
16752 /* confdefs.h. */
16753 _ACEOF
16754 cat confdefs.h >>conftest.$ac_ext
16755 cat >>conftest.$ac_ext <<_ACEOF
16756 /* end confdefs.h. */
16757 #include <$ac_header>
16758 _ACEOF
16759 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16760 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16761 ac_status=$?
16762 grep -v '^ *+' conftest.er1 >conftest.err
16763 rm -f conftest.er1
16764 cat conftest.err >&5
16765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16766 (exit $ac_status); } >/dev/null; then
16767 if test -s conftest.err; then
16768 ac_cpp_err=$ac_c_preproc_warn_flag
16769 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16770 else
16771 ac_cpp_err=
16773 else
16774 ac_cpp_err=yes
16776 if test -z "$ac_cpp_err"; then
16777 ac_header_preproc=yes
16778 else
16779 echo "$as_me: failed program was:" >&5
16780 sed 's/^/| /' conftest.$ac_ext >&5
16782 ac_header_preproc=no
16784 rm -f conftest.err conftest.$ac_ext
16785 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16786 echo "${ECHO_T}$ac_header_preproc" >&6
16788 # So? What about this header?
16789 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16790 yes:no: )
16791 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16792 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16793 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16794 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16795 ac_header_preproc=yes
16797 no:yes:* )
16798 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16799 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16800 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16801 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16802 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16803 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16804 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16805 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16806 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16807 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16808 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16809 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16811 cat <<\_ASBOX
16812 ## ------------------------------------------ ##
16813 ## Report this to the AC_PACKAGE_NAME lists. ##
16814 ## ------------------------------------------ ##
16815 _ASBOX
16817 sed "s/^/$as_me: WARNING: /" >&2
16819 esac
16820 echo "$as_me:$LINENO: checking for $ac_header" >&5
16821 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16822 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16823 echo $ECHO_N "(cached) $ECHO_C" >&6
16824 else
16825 eval "$as_ac_Header=\$ac_header_preproc"
16827 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16828 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16831 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16832 cat >>confdefs.h <<_ACEOF
16833 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16834 _ACEOF
16838 done
16843 for ac_header in nlist.h
16845 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16846 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16847 echo "$as_me:$LINENO: checking for $ac_header" >&5
16848 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16849 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16850 echo $ECHO_N "(cached) $ECHO_C" >&6
16852 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16853 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16854 else
16855 # Is the header compilable?
16856 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16857 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16858 cat >conftest.$ac_ext <<_ACEOF
16859 /* confdefs.h. */
16860 _ACEOF
16861 cat confdefs.h >>conftest.$ac_ext
16862 cat >>conftest.$ac_ext <<_ACEOF
16863 /* end confdefs.h. */
16864 $ac_includes_default
16865 #include <$ac_header>
16866 _ACEOF
16867 rm -f conftest.$ac_objext
16868 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16869 (eval $ac_compile) 2>conftest.er1
16870 ac_status=$?
16871 grep -v '^ *+' conftest.er1 >conftest.err
16872 rm -f conftest.er1
16873 cat conftest.err >&5
16874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16875 (exit $ac_status); } &&
16876 { ac_try='test -z "$ac_c_werror_flag"
16877 || test ! -s conftest.err'
16878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16879 (eval $ac_try) 2>&5
16880 ac_status=$?
16881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16882 (exit $ac_status); }; } &&
16883 { ac_try='test -s conftest.$ac_objext'
16884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16885 (eval $ac_try) 2>&5
16886 ac_status=$?
16887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16888 (exit $ac_status); }; }; then
16889 ac_header_compiler=yes
16890 else
16891 echo "$as_me: failed program was:" >&5
16892 sed 's/^/| /' conftest.$ac_ext >&5
16894 ac_header_compiler=no
16896 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16897 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16898 echo "${ECHO_T}$ac_header_compiler" >&6
16900 # Is the header present?
16901 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16902 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16903 cat >conftest.$ac_ext <<_ACEOF
16904 /* confdefs.h. */
16905 _ACEOF
16906 cat confdefs.h >>conftest.$ac_ext
16907 cat >>conftest.$ac_ext <<_ACEOF
16908 /* end confdefs.h. */
16909 #include <$ac_header>
16910 _ACEOF
16911 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16912 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16913 ac_status=$?
16914 grep -v '^ *+' conftest.er1 >conftest.err
16915 rm -f conftest.er1
16916 cat conftest.err >&5
16917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16918 (exit $ac_status); } >/dev/null; then
16919 if test -s conftest.err; then
16920 ac_cpp_err=$ac_c_preproc_warn_flag
16921 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16922 else
16923 ac_cpp_err=
16925 else
16926 ac_cpp_err=yes
16928 if test -z "$ac_cpp_err"; then
16929 ac_header_preproc=yes
16930 else
16931 echo "$as_me: failed program was:" >&5
16932 sed 's/^/| /' conftest.$ac_ext >&5
16934 ac_header_preproc=no
16936 rm -f conftest.err conftest.$ac_ext
16937 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16938 echo "${ECHO_T}$ac_header_preproc" >&6
16940 # So? What about this header?
16941 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16942 yes:no: )
16943 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16944 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16945 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16946 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16947 ac_header_preproc=yes
16949 no:yes:* )
16950 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16951 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16952 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16953 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16954 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16955 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16956 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16957 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16958 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16959 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16960 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16961 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16963 cat <<\_ASBOX
16964 ## ------------------------------------------ ##
16965 ## Report this to the AC_PACKAGE_NAME lists. ##
16966 ## ------------------------------------------ ##
16967 _ASBOX
16969 sed "s/^/$as_me: WARNING: /" >&2
16971 esac
16972 echo "$as_me:$LINENO: checking for $ac_header" >&5
16973 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16974 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16975 echo $ECHO_N "(cached) $ECHO_C" >&6
16976 else
16977 eval "$as_ac_Header=\$ac_header_preproc"
16979 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16980 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16983 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16984 cat >>confdefs.h <<_ACEOF
16985 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16986 _ACEOF
16987 echo "$as_me:$LINENO: checking for struct nlist.n_un.n_name" >&5
16988 echo $ECHO_N "checking for struct nlist.n_un.n_name... $ECHO_C" >&6
16989 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
16990 echo $ECHO_N "(cached) $ECHO_C" >&6
16991 else
16992 cat >conftest.$ac_ext <<_ACEOF
16993 /* confdefs.h. */
16994 _ACEOF
16995 cat confdefs.h >>conftest.$ac_ext
16996 cat >>conftest.$ac_ext <<_ACEOF
16997 /* end confdefs.h. */
16998 #include <nlist.h>
17001 main ()
17003 static struct nlist ac_aggr;
17004 if (ac_aggr.n_un.n_name)
17005 return 0;
17007 return 0;
17009 _ACEOF
17010 rm -f conftest.$ac_objext
17011 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17012 (eval $ac_compile) 2>conftest.er1
17013 ac_status=$?
17014 grep -v '^ *+' conftest.er1 >conftest.err
17015 rm -f conftest.er1
17016 cat conftest.err >&5
17017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17018 (exit $ac_status); } &&
17019 { ac_try='test -z "$ac_c_werror_flag"
17020 || test ! -s conftest.err'
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); }; } &&
17026 { ac_try='test -s conftest.$ac_objext'
17027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17028 (eval $ac_try) 2>&5
17029 ac_status=$?
17030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17031 (exit $ac_status); }; }; then
17032 ac_cv_member_struct_nlist_n_un_n_name=yes
17033 else
17034 echo "$as_me: failed program was:" >&5
17035 sed 's/^/| /' conftest.$ac_ext >&5
17037 cat >conftest.$ac_ext <<_ACEOF
17038 /* confdefs.h. */
17039 _ACEOF
17040 cat confdefs.h >>conftest.$ac_ext
17041 cat >>conftest.$ac_ext <<_ACEOF
17042 /* end confdefs.h. */
17043 #include <nlist.h>
17046 main ()
17048 static struct nlist ac_aggr;
17049 if (sizeof ac_aggr.n_un.n_name)
17050 return 0;
17052 return 0;
17054 _ACEOF
17055 rm -f conftest.$ac_objext
17056 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17057 (eval $ac_compile) 2>conftest.er1
17058 ac_status=$?
17059 grep -v '^ *+' conftest.er1 >conftest.err
17060 rm -f conftest.er1
17061 cat conftest.err >&5
17062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17063 (exit $ac_status); } &&
17064 { ac_try='test -z "$ac_c_werror_flag"
17065 || test ! -s conftest.err'
17066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17067 (eval $ac_try) 2>&5
17068 ac_status=$?
17069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17070 (exit $ac_status); }; } &&
17071 { ac_try='test -s conftest.$ac_objext'
17072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17073 (eval $ac_try) 2>&5
17074 ac_status=$?
17075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17076 (exit $ac_status); }; }; then
17077 ac_cv_member_struct_nlist_n_un_n_name=yes
17078 else
17079 echo "$as_me: failed program was:" >&5
17080 sed 's/^/| /' conftest.$ac_ext >&5
17082 ac_cv_member_struct_nlist_n_un_n_name=no
17084 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17086 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17088 echo "$as_me:$LINENO: result: $ac_cv_member_struct_nlist_n_un_n_name" >&5
17089 echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6
17090 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
17092 cat >>confdefs.h <<_ACEOF
17093 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
17094 _ACEOF
17097 cat >>confdefs.h <<\_ACEOF
17098 #define NLIST_NAME_UNION 1
17099 _ACEOF
17106 done
17109 done
17112 # Some definitions of getloadavg require that the program be installed setgid.
17113 echo "$as_me:$LINENO: checking whether getloadavg requires setgid" >&5
17114 echo $ECHO_N "checking whether getloadavg requires setgid... $ECHO_C" >&6
17115 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
17116 echo $ECHO_N "(cached) $ECHO_C" >&6
17117 else
17118 cat >conftest.$ac_ext <<_ACEOF
17119 /* confdefs.h. */
17120 _ACEOF
17121 cat confdefs.h >>conftest.$ac_ext
17122 cat >>conftest.$ac_ext <<_ACEOF
17123 /* end confdefs.h. */
17124 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c"
17125 #ifdef LDAV_PRIVILEGED
17126 Yowza Am I SETGID yet
17127 #endif
17128 _ACEOF
17129 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17130 $EGREP "Yowza Am I SETGID yet" >/dev/null 2>&1; then
17131 ac_cv_func_getloadavg_setgid=yes
17132 else
17133 ac_cv_func_getloadavg_setgid=no
17135 rm -f conftest*
17138 echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg_setgid" >&5
17139 echo "${ECHO_T}$ac_cv_func_getloadavg_setgid" >&6
17140 if test $ac_cv_func_getloadavg_setgid = yes; then
17141 NEED_SETGID=true
17143 cat >>confdefs.h <<\_ACEOF
17144 #define GETLOADAVG_PRIVILEGED 1
17145 _ACEOF
17147 else
17148 NEED_SETGID=false
17151 if test $ac_cv_func_getloadavg_setgid = yes; then
17152 echo "$as_me:$LINENO: checking group of /dev/kmem" >&5
17153 echo $ECHO_N "checking group of /dev/kmem... $ECHO_C" >&6
17154 if test "${ac_cv_group_kmem+set}" = set; then
17155 echo $ECHO_N "(cached) $ECHO_C" >&6
17156 else
17157 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
17158 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
17159 # If we got an error (system does not support symlinks), try without -L.
17160 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
17161 ac_cv_group_kmem=`echo $ac_ls_output \
17162 | sed -ne 's/[ ][ ]*/ /g;
17163 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
17164 / /s/.* //;p;'`
17167 echo "$as_me:$LINENO: result: $ac_cv_group_kmem" >&5
17168 echo "${ECHO_T}$ac_cv_group_kmem" >&6
17169 KMEM_GROUP=$ac_cv_group_kmem
17171 if test "x$ac_save_LIBS" = x; then
17172 GETLOADAVG_LIBS=$LIBS
17173 else
17174 GETLOADAVG_LIBS=`echo "$LIBS" | sed "s!$ac_save_LIBS!!"`
17176 LIBS=$ac_save_LIBS
17180 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
17181 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
17182 if test "${ac_cv_sys_largefile_source+set}" = set; then
17183 echo $ECHO_N "(cached) $ECHO_C" >&6
17184 else
17185 while :; do
17186 ac_cv_sys_largefile_source=no
17187 cat >conftest.$ac_ext <<_ACEOF
17188 /* confdefs.h. */
17189 _ACEOF
17190 cat confdefs.h >>conftest.$ac_ext
17191 cat >>conftest.$ac_ext <<_ACEOF
17192 /* end confdefs.h. */
17193 #include <stdio.h>
17195 main ()
17197 return !fseeko;
17199 return 0;
17201 _ACEOF
17202 rm -f conftest.$ac_objext
17203 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17204 (eval $ac_compile) 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); } &&
17211 { ac_try='test -z "$ac_c_werror_flag"
17212 || test ! -s conftest.err'
17213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17214 (eval $ac_try) 2>&5
17215 ac_status=$?
17216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17217 (exit $ac_status); }; } &&
17218 { ac_try='test -s conftest.$ac_objext'
17219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17220 (eval $ac_try) 2>&5
17221 ac_status=$?
17222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17223 (exit $ac_status); }; }; then
17224 break
17225 else
17226 echo "$as_me: failed program was:" >&5
17227 sed 's/^/| /' conftest.$ac_ext >&5
17230 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17231 cat >conftest.$ac_ext <<_ACEOF
17232 /* confdefs.h. */
17233 _ACEOF
17234 cat confdefs.h >>conftest.$ac_ext
17235 cat >>conftest.$ac_ext <<_ACEOF
17236 /* end confdefs.h. */
17237 #define _LARGEFILE_SOURCE 1
17238 #include <stdio.h>
17240 main ()
17242 return !fseeko;
17244 return 0;
17246 _ACEOF
17247 rm -f conftest.$ac_objext
17248 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17249 (eval $ac_compile) 2>conftest.er1
17250 ac_status=$?
17251 grep -v '^ *+' conftest.er1 >conftest.err
17252 rm -f conftest.er1
17253 cat conftest.err >&5
17254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17255 (exit $ac_status); } &&
17256 { ac_try='test -z "$ac_c_werror_flag"
17257 || test ! -s conftest.err'
17258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17259 (eval $ac_try) 2>&5
17260 ac_status=$?
17261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17262 (exit $ac_status); }; } &&
17263 { ac_try='test -s conftest.$ac_objext'
17264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17265 (eval $ac_try) 2>&5
17266 ac_status=$?
17267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17268 (exit $ac_status); }; }; then
17269 ac_cv_sys_largefile_source=1; break
17270 else
17271 echo "$as_me: failed program was:" >&5
17272 sed 's/^/| /' conftest.$ac_ext >&5
17275 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17276 break
17277 done
17279 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
17280 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
17281 if test "$ac_cv_sys_largefile_source" != no; then
17283 cat >>confdefs.h <<_ACEOF
17284 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
17285 _ACEOF
17288 rm -f conftest*
17290 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
17291 # in glibc 2.1.3, but that breaks too many other things.
17292 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
17293 echo "$as_me:$LINENO: checking for fseeko" >&5
17294 echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
17295 if test "${ac_cv_func_fseeko+set}" = set; then
17296 echo $ECHO_N "(cached) $ECHO_C" >&6
17297 else
17298 cat >conftest.$ac_ext <<_ACEOF
17299 /* confdefs.h. */
17300 _ACEOF
17301 cat confdefs.h >>conftest.$ac_ext
17302 cat >>conftest.$ac_ext <<_ACEOF
17303 /* end confdefs.h. */
17304 #include <stdio.h>
17306 main ()
17308 return fseeko && fseeko (stdin, 0, 0);
17310 return 0;
17312 _ACEOF
17313 rm -f conftest.$ac_objext conftest$ac_exeext
17314 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17315 (eval $ac_link) 2>conftest.er1
17316 ac_status=$?
17317 grep -v '^ *+' conftest.er1 >conftest.err
17318 rm -f conftest.er1
17319 cat conftest.err >&5
17320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17321 (exit $ac_status); } &&
17322 { ac_try='test -z "$ac_c_werror_flag"
17323 || test ! -s conftest.err'
17324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17325 (eval $ac_try) 2>&5
17326 ac_status=$?
17327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17328 (exit $ac_status); }; } &&
17329 { ac_try='test -s conftest$ac_exeext'
17330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17331 (eval $ac_try) 2>&5
17332 ac_status=$?
17333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17334 (exit $ac_status); }; }; then
17335 ac_cv_func_fseeko=yes
17336 else
17337 echo "$as_me: failed program was:" >&5
17338 sed 's/^/| /' conftest.$ac_ext >&5
17340 ac_cv_func_fseeko=no
17342 rm -f conftest.err conftest.$ac_objext \
17343 conftest$ac_exeext conftest.$ac_ext
17345 echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5
17346 echo "${ECHO_T}$ac_cv_func_fseeko" >&6
17347 if test $ac_cv_func_fseeko = yes; then
17349 cat >>confdefs.h <<\_ACEOF
17350 #define HAVE_FSEEKO 1
17351 _ACEOF
17356 # Configure getopt.
17357 # getopt.m4 serial 10
17359 # The getopt module assume you want GNU getopt, with getopt_long etc,
17360 # rather than vanilla POSIX getopt. This means your your code should
17361 # always include <getopt.h> for the getopt prototypes.
17373 # Prerequisites of lib/getopt*.
17378 GETOPT_H=
17380 for ac_header in getopt.h
17382 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17383 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17384 echo "$as_me:$LINENO: checking for $ac_header" >&5
17385 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17386 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17387 echo $ECHO_N "(cached) $ECHO_C" >&6
17389 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17390 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17391 else
17392 # Is the header compilable?
17393 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17394 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17395 cat >conftest.$ac_ext <<_ACEOF
17396 /* confdefs.h. */
17397 _ACEOF
17398 cat confdefs.h >>conftest.$ac_ext
17399 cat >>conftest.$ac_ext <<_ACEOF
17400 /* end confdefs.h. */
17401 $ac_includes_default
17402 #include <$ac_header>
17403 _ACEOF
17404 rm -f conftest.$ac_objext
17405 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17406 (eval $ac_compile) 2>conftest.er1
17407 ac_status=$?
17408 grep -v '^ *+' conftest.er1 >conftest.err
17409 rm -f conftest.er1
17410 cat conftest.err >&5
17411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17412 (exit $ac_status); } &&
17413 { ac_try='test -z "$ac_c_werror_flag"
17414 || test ! -s conftest.err'
17415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17416 (eval $ac_try) 2>&5
17417 ac_status=$?
17418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17419 (exit $ac_status); }; } &&
17420 { ac_try='test -s conftest.$ac_objext'
17421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17422 (eval $ac_try) 2>&5
17423 ac_status=$?
17424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17425 (exit $ac_status); }; }; then
17426 ac_header_compiler=yes
17427 else
17428 echo "$as_me: failed program was:" >&5
17429 sed 's/^/| /' conftest.$ac_ext >&5
17431 ac_header_compiler=no
17433 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17434 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17435 echo "${ECHO_T}$ac_header_compiler" >&6
17437 # Is the header present?
17438 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17439 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17440 cat >conftest.$ac_ext <<_ACEOF
17441 /* confdefs.h. */
17442 _ACEOF
17443 cat confdefs.h >>conftest.$ac_ext
17444 cat >>conftest.$ac_ext <<_ACEOF
17445 /* end confdefs.h. */
17446 #include <$ac_header>
17447 _ACEOF
17448 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17449 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17450 ac_status=$?
17451 grep -v '^ *+' conftest.er1 >conftest.err
17452 rm -f conftest.er1
17453 cat conftest.err >&5
17454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17455 (exit $ac_status); } >/dev/null; then
17456 if test -s conftest.err; then
17457 ac_cpp_err=$ac_c_preproc_warn_flag
17458 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17459 else
17460 ac_cpp_err=
17462 else
17463 ac_cpp_err=yes
17465 if test -z "$ac_cpp_err"; then
17466 ac_header_preproc=yes
17467 else
17468 echo "$as_me: failed program was:" >&5
17469 sed 's/^/| /' conftest.$ac_ext >&5
17471 ac_header_preproc=no
17473 rm -f conftest.err conftest.$ac_ext
17474 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17475 echo "${ECHO_T}$ac_header_preproc" >&6
17477 # So? What about this header?
17478 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17479 yes:no: )
17480 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17481 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17482 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17483 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17484 ac_header_preproc=yes
17486 no:yes:* )
17487 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17488 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17489 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17490 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17491 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17492 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17493 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17494 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17495 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17496 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17497 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17498 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17500 cat <<\_ASBOX
17501 ## ------------------------------------------ ##
17502 ## Report this to the AC_PACKAGE_NAME lists. ##
17503 ## ------------------------------------------ ##
17504 _ASBOX
17506 sed "s/^/$as_me: WARNING: /" >&2
17508 esac
17509 echo "$as_me:$LINENO: checking for $ac_header" >&5
17510 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17511 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17512 echo $ECHO_N "(cached) $ECHO_C" >&6
17513 else
17514 eval "$as_ac_Header=\$ac_header_preproc"
17516 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17517 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17520 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17521 cat >>confdefs.h <<_ACEOF
17522 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17523 _ACEOF
17525 else
17526 GETOPT_H=getopt.h
17529 done
17531 if test -z "$GETOPT_H"; then
17533 for ac_func in getopt_long_only
17535 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17536 echo "$as_me:$LINENO: checking for $ac_func" >&5
17537 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17538 if eval "test \"\${$as_ac_var+set}\" = set"; then
17539 echo $ECHO_N "(cached) $ECHO_C" >&6
17540 else
17541 cat >conftest.$ac_ext <<_ACEOF
17542 /* confdefs.h. */
17543 _ACEOF
17544 cat confdefs.h >>conftest.$ac_ext
17545 cat >>conftest.$ac_ext <<_ACEOF
17546 /* end confdefs.h. */
17547 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17548 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17549 #define $ac_func innocuous_$ac_func
17551 /* System header to define __stub macros and hopefully few prototypes,
17552 which can conflict with char $ac_func (); below.
17553 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17554 <limits.h> exists even on freestanding compilers. */
17556 #ifdef __STDC__
17557 # include <limits.h>
17558 #else
17559 # include <assert.h>
17560 #endif
17562 #undef $ac_func
17564 /* Override any gcc2 internal prototype to avoid an error. */
17565 #ifdef __cplusplus
17566 extern "C"
17568 #endif
17569 /* We use char because int might match the return type of a gcc2
17570 builtin and then its argument prototype would still apply. */
17571 char $ac_func ();
17572 /* The GNU C library defines this for functions which it implements
17573 to always fail with ENOSYS. Some functions are actually named
17574 something starting with __ and the normal name is an alias. */
17575 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17576 choke me
17577 #else
17578 char (*f) () = $ac_func;
17579 #endif
17580 #ifdef __cplusplus
17582 #endif
17585 main ()
17587 return f != $ac_func;
17589 return 0;
17591 _ACEOF
17592 rm -f conftest.$ac_objext conftest$ac_exeext
17593 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17594 (eval $ac_link) 2>conftest.er1
17595 ac_status=$?
17596 grep -v '^ *+' conftest.er1 >conftest.err
17597 rm -f conftest.er1
17598 cat conftest.err >&5
17599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17600 (exit $ac_status); } &&
17601 { ac_try='test -z "$ac_c_werror_flag"
17602 || test ! -s conftest.err'
17603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17604 (eval $ac_try) 2>&5
17605 ac_status=$?
17606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17607 (exit $ac_status); }; } &&
17608 { ac_try='test -s conftest$ac_exeext'
17609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17610 (eval $ac_try) 2>&5
17611 ac_status=$?
17612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17613 (exit $ac_status); }; }; then
17614 eval "$as_ac_var=yes"
17615 else
17616 echo "$as_me: failed program was:" >&5
17617 sed 's/^/| /' conftest.$ac_ext >&5
17619 eval "$as_ac_var=no"
17621 rm -f conftest.err conftest.$ac_objext \
17622 conftest$ac_exeext conftest.$ac_ext
17624 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17625 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17626 if test `eval echo '${'$as_ac_var'}'` = yes; then
17627 cat >>confdefs.h <<_ACEOF
17628 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17629 _ACEOF
17631 else
17632 GETOPT_H=getopt.h
17634 done
17638 if test -z "$GETOPT_H"; then
17639 echo "$as_me:$LINENO: checking whether optreset is declared" >&5
17640 echo $ECHO_N "checking whether optreset is declared... $ECHO_C" >&6
17641 if test "${ac_cv_have_decl_optreset+set}" = set; then
17642 echo $ECHO_N "(cached) $ECHO_C" >&6
17643 else
17644 cat >conftest.$ac_ext <<_ACEOF
17645 /* confdefs.h. */
17646 _ACEOF
17647 cat confdefs.h >>conftest.$ac_ext
17648 cat >>conftest.$ac_ext <<_ACEOF
17649 /* end confdefs.h. */
17650 #include <getopt.h>
17653 main ()
17655 #ifndef optreset
17656 char *p = (char *) optreset;
17657 #endif
17660 return 0;
17662 _ACEOF
17663 rm -f conftest.$ac_objext
17664 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17665 (eval $ac_compile) 2>conftest.er1
17666 ac_status=$?
17667 grep -v '^ *+' conftest.er1 >conftest.err
17668 rm -f conftest.er1
17669 cat conftest.err >&5
17670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17671 (exit $ac_status); } &&
17672 { ac_try='test -z "$ac_c_werror_flag"
17673 || test ! -s conftest.err'
17674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17675 (eval $ac_try) 2>&5
17676 ac_status=$?
17677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17678 (exit $ac_status); }; } &&
17679 { ac_try='test -s conftest.$ac_objext'
17680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17681 (eval $ac_try) 2>&5
17682 ac_status=$?
17683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17684 (exit $ac_status); }; }; then
17685 ac_cv_have_decl_optreset=yes
17686 else
17687 echo "$as_me: failed program was:" >&5
17688 sed 's/^/| /' conftest.$ac_ext >&5
17690 ac_cv_have_decl_optreset=no
17692 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17694 echo "$as_me:$LINENO: result: $ac_cv_have_decl_optreset" >&5
17695 echo "${ECHO_T}$ac_cv_have_decl_optreset" >&6
17696 if test $ac_cv_have_decl_optreset = yes; then
17697 GETOPT_H=getopt.h
17702 if test -z "$GETOPT_H"; then
17703 echo "$as_me:$LINENO: checking for working GNU getopt function" >&5
17704 echo $ECHO_N "checking for working GNU getopt function... $ECHO_C" >&6
17705 if test "${gl_cv_func_gnu_getopt+set}" = set; then
17706 echo $ECHO_N "(cached) $ECHO_C" >&6
17707 else
17708 if test "$cross_compiling" = yes; then
17709 echo "$as_me:$LINENO: checking whether getopt_clip is declared" >&5
17710 echo $ECHO_N "checking whether getopt_clip is declared... $ECHO_C" >&6
17711 if test "${ac_cv_have_decl_getopt_clip+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 <getopt.h>
17723 main ()
17725 #ifndef getopt_clip
17726 char *p = (char *) getopt_clip;
17727 #endif
17730 return 0;
17732 _ACEOF
17733 rm -f conftest.$ac_objext
17734 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17735 (eval $ac_compile) 2>conftest.er1
17736 ac_status=$?
17737 grep -v '^ *+' conftest.er1 >conftest.err
17738 rm -f conftest.er1
17739 cat conftest.err >&5
17740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17741 (exit $ac_status); } &&
17742 { ac_try='test -z "$ac_c_werror_flag"
17743 || test ! -s conftest.err'
17744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17745 (eval $ac_try) 2>&5
17746 ac_status=$?
17747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17748 (exit $ac_status); }; } &&
17749 { ac_try='test -s conftest.$ac_objext'
17750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17751 (eval $ac_try) 2>&5
17752 ac_status=$?
17753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17754 (exit $ac_status); }; }; then
17755 ac_cv_have_decl_getopt_clip=yes
17756 else
17757 echo "$as_me: failed program was:" >&5
17758 sed 's/^/| /' conftest.$ac_ext >&5
17760 ac_cv_have_decl_getopt_clip=no
17762 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17764 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getopt_clip" >&5
17765 echo "${ECHO_T}$ac_cv_have_decl_getopt_clip" >&6
17766 if test $ac_cv_have_decl_getopt_clip = yes; then
17767 gl_cv_func_gnu_getopt=no
17768 else
17769 gl_cv_func_gnu_getopt=yes
17772 else
17773 cat >conftest.$ac_ext <<_ACEOF
17774 /* confdefs.h. */
17775 _ACEOF
17776 cat confdefs.h >>conftest.$ac_ext
17777 cat >>conftest.$ac_ext <<_ACEOF
17778 /* end confdefs.h. */
17779 #include <getopt.h>
17781 main ()
17784 char *myargv[3];
17785 myargv[0] = "conftest";
17786 myargv[1] = "-+";
17787 myargv[2] = 0;
17788 return getopt (2, myargv, "+a") != '?';
17791 return 0;
17793 _ACEOF
17794 rm -f conftest$ac_exeext
17795 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17796 (eval $ac_link) 2>&5
17797 ac_status=$?
17798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17799 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17801 (eval $ac_try) 2>&5
17802 ac_status=$?
17803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17804 (exit $ac_status); }; }; then
17805 gl_cv_func_gnu_getopt=yes
17806 else
17807 echo "$as_me: program exited with status $ac_status" >&5
17808 echo "$as_me: failed program was:" >&5
17809 sed 's/^/| /' conftest.$ac_ext >&5
17811 ( exit $ac_status )
17812 gl_cv_func_gnu_getopt=no
17814 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17817 echo "$as_me:$LINENO: result: $gl_cv_func_gnu_getopt" >&5
17818 echo "${ECHO_T}$gl_cv_func_gnu_getopt" >&6
17819 if test "$gl_cv_func_gnu_getopt" = "no"; then
17820 GETOPT_H=getopt.h
17826 if test -n "$GETOPT_H"; then
17829 GETOPT_H=getopt.h
17831 cat >>confdefs.h <<\_ACEOF
17832 #define __GETOPT_PREFIX rpl_
17833 _ACEOF
17838 GETOPTOBJS='getopt.o getopt1.o'
17845 echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5
17846 echo $ECHO_N "checking whether getpgrp requires zero arguments... $ECHO_C" >&6
17847 if test "${ac_cv_func_getpgrp_void+set}" = set; then
17848 echo $ECHO_N "(cached) $ECHO_C" >&6
17849 else
17850 # Use it with a single arg.
17851 cat >conftest.$ac_ext <<_ACEOF
17852 /* confdefs.h. */
17853 _ACEOF
17854 cat confdefs.h >>conftest.$ac_ext
17855 cat >>conftest.$ac_ext <<_ACEOF
17856 /* end confdefs.h. */
17857 $ac_includes_default
17859 main ()
17861 getpgrp (0);
17863 return 0;
17865 _ACEOF
17866 rm -f conftest.$ac_objext
17867 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17868 (eval $ac_compile) 2>conftest.er1
17869 ac_status=$?
17870 grep -v '^ *+' conftest.er1 >conftest.err
17871 rm -f conftest.er1
17872 cat conftest.err >&5
17873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17874 (exit $ac_status); } &&
17875 { ac_try='test -z "$ac_c_werror_flag"
17876 || test ! -s conftest.err'
17877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17878 (eval $ac_try) 2>&5
17879 ac_status=$?
17880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17881 (exit $ac_status); }; } &&
17882 { ac_try='test -s conftest.$ac_objext'
17883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17884 (eval $ac_try) 2>&5
17885 ac_status=$?
17886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17887 (exit $ac_status); }; }; then
17888 ac_cv_func_getpgrp_void=no
17889 else
17890 echo "$as_me: failed program was:" >&5
17891 sed 's/^/| /' conftest.$ac_ext >&5
17893 ac_cv_func_getpgrp_void=yes
17895 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17898 echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5
17899 echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6
17900 if test $ac_cv_func_getpgrp_void = yes; then
17902 cat >>confdefs.h <<\_ACEOF
17903 #define GETPGRP_VOID 1
17904 _ACEOF
17910 for ac_func in strftime
17912 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17913 echo "$as_me:$LINENO: checking for $ac_func" >&5
17914 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17915 if eval "test \"\${$as_ac_var+set}\" = set"; then
17916 echo $ECHO_N "(cached) $ECHO_C" >&6
17917 else
17918 cat >conftest.$ac_ext <<_ACEOF
17919 /* confdefs.h. */
17920 _ACEOF
17921 cat confdefs.h >>conftest.$ac_ext
17922 cat >>conftest.$ac_ext <<_ACEOF
17923 /* end confdefs.h. */
17924 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17925 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17926 #define $ac_func innocuous_$ac_func
17928 /* System header to define __stub macros and hopefully few prototypes,
17929 which can conflict with char $ac_func (); below.
17930 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17931 <limits.h> exists even on freestanding compilers. */
17933 #ifdef __STDC__
17934 # include <limits.h>
17935 #else
17936 # include <assert.h>
17937 #endif
17939 #undef $ac_func
17941 /* Override any gcc2 internal prototype to avoid an error. */
17942 #ifdef __cplusplus
17943 extern "C"
17945 #endif
17946 /* We use char because int might match the return type of a gcc2
17947 builtin and then its argument prototype would still apply. */
17948 char $ac_func ();
17949 /* The GNU C library defines this for functions which it implements
17950 to always fail with ENOSYS. Some functions are actually named
17951 something starting with __ and the normal name is an alias. */
17952 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17953 choke me
17954 #else
17955 char (*f) () = $ac_func;
17956 #endif
17957 #ifdef __cplusplus
17959 #endif
17962 main ()
17964 return f != $ac_func;
17966 return 0;
17968 _ACEOF
17969 rm -f conftest.$ac_objext conftest$ac_exeext
17970 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17971 (eval $ac_link) 2>conftest.er1
17972 ac_status=$?
17973 grep -v '^ *+' conftest.er1 >conftest.err
17974 rm -f conftest.er1
17975 cat conftest.err >&5
17976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17977 (exit $ac_status); } &&
17978 { ac_try='test -z "$ac_c_werror_flag"
17979 || test ! -s conftest.err'
17980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17981 (eval $ac_try) 2>&5
17982 ac_status=$?
17983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17984 (exit $ac_status); }; } &&
17985 { ac_try='test -s conftest$ac_exeext'
17986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17987 (eval $ac_try) 2>&5
17988 ac_status=$?
17989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17990 (exit $ac_status); }; }; then
17991 eval "$as_ac_var=yes"
17992 else
17993 echo "$as_me: failed program was:" >&5
17994 sed 's/^/| /' conftest.$ac_ext >&5
17996 eval "$as_ac_var=no"
17998 rm -f conftest.err conftest.$ac_objext \
17999 conftest$ac_exeext conftest.$ac_ext
18001 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18002 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18003 if test `eval echo '${'$as_ac_var'}'` = yes; then
18004 cat >>confdefs.h <<_ACEOF
18005 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18006 _ACEOF
18008 else
18009 # strftime is in -lintl on SCO UNIX.
18010 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
18011 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
18012 if test "${ac_cv_lib_intl_strftime+set}" = set; then
18013 echo $ECHO_N "(cached) $ECHO_C" >&6
18014 else
18015 ac_check_lib_save_LIBS=$LIBS
18016 LIBS="-lintl $LIBS"
18017 cat >conftest.$ac_ext <<_ACEOF
18018 /* confdefs.h. */
18019 _ACEOF
18020 cat confdefs.h >>conftest.$ac_ext
18021 cat >>conftest.$ac_ext <<_ACEOF
18022 /* end confdefs.h. */
18024 /* Override any gcc2 internal prototype to avoid an error. */
18025 #ifdef __cplusplus
18026 extern "C"
18027 #endif
18028 /* We use char because int might match the return type of a gcc2
18029 builtin and then its argument prototype would still apply. */
18030 char strftime ();
18032 main ()
18034 strftime ();
18036 return 0;
18038 _ACEOF
18039 rm -f conftest.$ac_objext conftest$ac_exeext
18040 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18041 (eval $ac_link) 2>conftest.er1
18042 ac_status=$?
18043 grep -v '^ *+' conftest.er1 >conftest.err
18044 rm -f conftest.er1
18045 cat conftest.err >&5
18046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18047 (exit $ac_status); } &&
18048 { ac_try='test -z "$ac_c_werror_flag"
18049 || test ! -s conftest.err'
18050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18051 (eval $ac_try) 2>&5
18052 ac_status=$?
18053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18054 (exit $ac_status); }; } &&
18055 { ac_try='test -s conftest$ac_exeext'
18056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18057 (eval $ac_try) 2>&5
18058 ac_status=$?
18059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18060 (exit $ac_status); }; }; then
18061 ac_cv_lib_intl_strftime=yes
18062 else
18063 echo "$as_me: failed program was:" >&5
18064 sed 's/^/| /' conftest.$ac_ext >&5
18066 ac_cv_lib_intl_strftime=no
18068 rm -f conftest.err conftest.$ac_objext \
18069 conftest$ac_exeext conftest.$ac_ext
18070 LIBS=$ac_check_lib_save_LIBS
18072 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
18073 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
18074 if test $ac_cv_lib_intl_strftime = yes; then
18075 cat >>confdefs.h <<\_ACEOF
18076 #define HAVE_STRFTIME 1
18077 _ACEOF
18079 LIBS="-lintl $LIBS"
18083 done
18086 # UNIX98 PTYs.
18088 for ac_func in grantpt
18090 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18091 echo "$as_me:$LINENO: checking for $ac_func" >&5
18092 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18093 if eval "test \"\${$as_ac_var+set}\" = set"; then
18094 echo $ECHO_N "(cached) $ECHO_C" >&6
18095 else
18096 cat >conftest.$ac_ext <<_ACEOF
18097 /* confdefs.h. */
18098 _ACEOF
18099 cat confdefs.h >>conftest.$ac_ext
18100 cat >>conftest.$ac_ext <<_ACEOF
18101 /* end confdefs.h. */
18102 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18103 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18104 #define $ac_func innocuous_$ac_func
18106 /* System header to define __stub macros and hopefully few prototypes,
18107 which can conflict with char $ac_func (); below.
18108 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18109 <limits.h> exists even on freestanding compilers. */
18111 #ifdef __STDC__
18112 # include <limits.h>
18113 #else
18114 # include <assert.h>
18115 #endif
18117 #undef $ac_func
18119 /* Override any gcc2 internal prototype to avoid an error. */
18120 #ifdef __cplusplus
18121 extern "C"
18123 #endif
18124 /* We use char because int might match the return type of a gcc2
18125 builtin and then its argument prototype would still apply. */
18126 char $ac_func ();
18127 /* The GNU C library defines this for functions which it implements
18128 to always fail with ENOSYS. Some functions are actually named
18129 something starting with __ and the normal name is an alias. */
18130 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18131 choke me
18132 #else
18133 char (*f) () = $ac_func;
18134 #endif
18135 #ifdef __cplusplus
18137 #endif
18140 main ()
18142 return f != $ac_func;
18144 return 0;
18146 _ACEOF
18147 rm -f conftest.$ac_objext conftest$ac_exeext
18148 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18149 (eval $ac_link) 2>conftest.er1
18150 ac_status=$?
18151 grep -v '^ *+' conftest.er1 >conftest.err
18152 rm -f conftest.er1
18153 cat conftest.err >&5
18154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18155 (exit $ac_status); } &&
18156 { ac_try='test -z "$ac_c_werror_flag"
18157 || test ! -s conftest.err'
18158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18159 (eval $ac_try) 2>&5
18160 ac_status=$?
18161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18162 (exit $ac_status); }; } &&
18163 { ac_try='test -s conftest$ac_exeext'
18164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18165 (eval $ac_try) 2>&5
18166 ac_status=$?
18167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18168 (exit $ac_status); }; }; then
18169 eval "$as_ac_var=yes"
18170 else
18171 echo "$as_me: failed program was:" >&5
18172 sed 's/^/| /' conftest.$ac_ext >&5
18174 eval "$as_ac_var=no"
18176 rm -f conftest.err conftest.$ac_objext \
18177 conftest$ac_exeext conftest.$ac_ext
18179 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18180 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18181 if test `eval echo '${'$as_ac_var'}'` = yes; then
18182 cat >>confdefs.h <<_ACEOF
18183 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18184 _ACEOF
18187 done
18190 # PTY-related GNU extensions.
18192 for ac_func in getpt
18194 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18195 echo "$as_me:$LINENO: checking for $ac_func" >&5
18196 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18197 if eval "test \"\${$as_ac_var+set}\" = set"; then
18198 echo $ECHO_N "(cached) $ECHO_C" >&6
18199 else
18200 cat >conftest.$ac_ext <<_ACEOF
18201 /* confdefs.h. */
18202 _ACEOF
18203 cat confdefs.h >>conftest.$ac_ext
18204 cat >>conftest.$ac_ext <<_ACEOF
18205 /* end confdefs.h. */
18206 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18207 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18208 #define $ac_func innocuous_$ac_func
18210 /* System header to define __stub macros and hopefully few prototypes,
18211 which can conflict with char $ac_func (); below.
18212 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18213 <limits.h> exists even on freestanding compilers. */
18215 #ifdef __STDC__
18216 # include <limits.h>
18217 #else
18218 # include <assert.h>
18219 #endif
18221 #undef $ac_func
18223 /* Override any gcc2 internal prototype to avoid an error. */
18224 #ifdef __cplusplus
18225 extern "C"
18227 #endif
18228 /* We use char because int might match the return type of a gcc2
18229 builtin and then its argument prototype would still apply. */
18230 char $ac_func ();
18231 /* The GNU C library defines this for functions which it implements
18232 to always fail with ENOSYS. Some functions are actually named
18233 something starting with __ and the normal name is an alias. */
18234 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18235 choke me
18236 #else
18237 char (*f) () = $ac_func;
18238 #endif
18239 #ifdef __cplusplus
18241 #endif
18244 main ()
18246 return f != $ac_func;
18248 return 0;
18250 _ACEOF
18251 rm -f conftest.$ac_objext conftest$ac_exeext
18252 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18253 (eval $ac_link) 2>conftest.er1
18254 ac_status=$?
18255 grep -v '^ *+' conftest.er1 >conftest.err
18256 rm -f conftest.er1
18257 cat conftest.err >&5
18258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18259 (exit $ac_status); } &&
18260 { ac_try='test -z "$ac_c_werror_flag"
18261 || test ! -s conftest.err'
18262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18263 (eval $ac_try) 2>&5
18264 ac_status=$?
18265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18266 (exit $ac_status); }; } &&
18267 { ac_try='test -s conftest$ac_exeext'
18268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18269 (eval $ac_try) 2>&5
18270 ac_status=$?
18271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18272 (exit $ac_status); }; }; then
18273 eval "$as_ac_var=yes"
18274 else
18275 echo "$as_me: failed program was:" >&5
18276 sed 's/^/| /' conftest.$ac_ext >&5
18278 eval "$as_ac_var=no"
18280 rm -f conftest.err conftest.$ac_objext \
18281 conftest$ac_exeext conftest.$ac_ext
18283 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18284 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18285 if test `eval echo '${'$as_ac_var'}'` = yes; then
18286 cat >>confdefs.h <<_ACEOF
18287 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18288 _ACEOF
18291 done
18294 # Check this now, so that we will NOT find the above functions in ncurses.
18295 # That is because we have not set up to link ncurses in lib-src.
18296 # It's better to believe a function is not available
18297 # than to expect to find it in ncurses.
18299 echo "$as_me:$LINENO: checking for tparm in -lncurses" >&5
18300 echo $ECHO_N "checking for tparm in -lncurses... $ECHO_C" >&6
18301 if test "${ac_cv_lib_ncurses_tparm+set}" = set; then
18302 echo $ECHO_N "(cached) $ECHO_C" >&6
18303 else
18304 ac_check_lib_save_LIBS=$LIBS
18305 LIBS="-lncurses $LIBS"
18306 cat >conftest.$ac_ext <<_ACEOF
18307 /* confdefs.h. */
18308 _ACEOF
18309 cat confdefs.h >>conftest.$ac_ext
18310 cat >>conftest.$ac_ext <<_ACEOF
18311 /* end confdefs.h. */
18313 /* Override any gcc2 internal prototype to avoid an error. */
18314 #ifdef __cplusplus
18315 extern "C"
18316 #endif
18317 /* We use char because int might match the return type of a gcc2
18318 builtin and then its argument prototype would still apply. */
18319 char tparm ();
18321 main ()
18323 tparm ();
18325 return 0;
18327 _ACEOF
18328 rm -f conftest.$ac_objext conftest$ac_exeext
18329 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18330 (eval $ac_link) 2>conftest.er1
18331 ac_status=$?
18332 grep -v '^ *+' conftest.er1 >conftest.err
18333 rm -f conftest.er1
18334 cat conftest.err >&5
18335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18336 (exit $ac_status); } &&
18337 { ac_try='test -z "$ac_c_werror_flag"
18338 || test ! -s conftest.err'
18339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18340 (eval $ac_try) 2>&5
18341 ac_status=$?
18342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18343 (exit $ac_status); }; } &&
18344 { ac_try='test -s conftest$ac_exeext'
18345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18346 (eval $ac_try) 2>&5
18347 ac_status=$?
18348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18349 (exit $ac_status); }; }; then
18350 ac_cv_lib_ncurses_tparm=yes
18351 else
18352 echo "$as_me: failed program was:" >&5
18353 sed 's/^/| /' conftest.$ac_ext >&5
18355 ac_cv_lib_ncurses_tparm=no
18357 rm -f conftest.err conftest.$ac_objext \
18358 conftest$ac_exeext conftest.$ac_ext
18359 LIBS=$ac_check_lib_save_LIBS
18361 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tparm" >&5
18362 echo "${ECHO_T}$ac_cv_lib_ncurses_tparm" >&6
18363 if test $ac_cv_lib_ncurses_tparm = yes; then
18364 cat >>confdefs.h <<_ACEOF
18365 #define HAVE_LIBNCURSES 1
18366 _ACEOF
18368 LIBS="-lncurses $LIBS"
18373 # Do we need the Hesiod library to provide the support routines?
18374 if test "$with_hesiod" = yes ; then
18375 # Don't set $LIBS here -- see comments above.
18376 resolv=no
18377 echo "$as_me:$LINENO: checking for res_send" >&5
18378 echo $ECHO_N "checking for res_send... $ECHO_C" >&6
18379 if test "${ac_cv_func_res_send+set}" = set; then
18380 echo $ECHO_N "(cached) $ECHO_C" >&6
18381 else
18382 cat >conftest.$ac_ext <<_ACEOF
18383 /* confdefs.h. */
18384 _ACEOF
18385 cat confdefs.h >>conftest.$ac_ext
18386 cat >>conftest.$ac_ext <<_ACEOF
18387 /* end confdefs.h. */
18388 /* Define res_send to an innocuous variant, in case <limits.h> declares res_send.
18389 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18390 #define res_send innocuous_res_send
18392 /* System header to define __stub macros and hopefully few prototypes,
18393 which can conflict with char res_send (); below.
18394 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18395 <limits.h> exists even on freestanding compilers. */
18397 #ifdef __STDC__
18398 # include <limits.h>
18399 #else
18400 # include <assert.h>
18401 #endif
18403 #undef res_send
18405 /* Override any gcc2 internal prototype to avoid an error. */
18406 #ifdef __cplusplus
18407 extern "C"
18409 #endif
18410 /* We use char because int might match the return type of a gcc2
18411 builtin and then its argument prototype would still apply. */
18412 char res_send ();
18413 /* The GNU C library defines this for functions which it implements
18414 to always fail with ENOSYS. Some functions are actually named
18415 something starting with __ and the normal name is an alias. */
18416 #if defined (__stub_res_send) || defined (__stub___res_send)
18417 choke me
18418 #else
18419 char (*f) () = res_send;
18420 #endif
18421 #ifdef __cplusplus
18423 #endif
18426 main ()
18428 return f != res_send;
18430 return 0;
18432 _ACEOF
18433 rm -f conftest.$ac_objext conftest$ac_exeext
18434 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18435 (eval $ac_link) 2>conftest.er1
18436 ac_status=$?
18437 grep -v '^ *+' conftest.er1 >conftest.err
18438 rm -f conftest.er1
18439 cat conftest.err >&5
18440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18441 (exit $ac_status); } &&
18442 { ac_try='test -z "$ac_c_werror_flag"
18443 || test ! -s conftest.err'
18444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18445 (eval $ac_try) 2>&5
18446 ac_status=$?
18447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18448 (exit $ac_status); }; } &&
18449 { ac_try='test -s conftest$ac_exeext'
18450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18451 (eval $ac_try) 2>&5
18452 ac_status=$?
18453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18454 (exit $ac_status); }; }; then
18455 ac_cv_func_res_send=yes
18456 else
18457 echo "$as_me: failed program was:" >&5
18458 sed 's/^/| /' conftest.$ac_ext >&5
18460 ac_cv_func_res_send=no
18462 rm -f conftest.err conftest.$ac_objext \
18463 conftest$ac_exeext conftest.$ac_ext
18465 echo "$as_me:$LINENO: result: $ac_cv_func_res_send" >&5
18466 echo "${ECHO_T}$ac_cv_func_res_send" >&6
18467 if test $ac_cv_func_res_send = yes; then
18469 else
18470 echo "$as_me:$LINENO: checking for __res_send" >&5
18471 echo $ECHO_N "checking for __res_send... $ECHO_C" >&6
18472 if test "${ac_cv_func___res_send+set}" = set; then
18473 echo $ECHO_N "(cached) $ECHO_C" >&6
18474 else
18475 cat >conftest.$ac_ext <<_ACEOF
18476 /* confdefs.h. */
18477 _ACEOF
18478 cat confdefs.h >>conftest.$ac_ext
18479 cat >>conftest.$ac_ext <<_ACEOF
18480 /* end confdefs.h. */
18481 /* Define __res_send to an innocuous variant, in case <limits.h> declares __res_send.
18482 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18483 #define __res_send innocuous___res_send
18485 /* System header to define __stub macros and hopefully few prototypes,
18486 which can conflict with char __res_send (); below.
18487 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18488 <limits.h> exists even on freestanding compilers. */
18490 #ifdef __STDC__
18491 # include <limits.h>
18492 #else
18493 # include <assert.h>
18494 #endif
18496 #undef __res_send
18498 /* Override any gcc2 internal prototype to avoid an error. */
18499 #ifdef __cplusplus
18500 extern "C"
18502 #endif
18503 /* We use char because int might match the return type of a gcc2
18504 builtin and then its argument prototype would still apply. */
18505 char __res_send ();
18506 /* The GNU C library defines this for functions which it implements
18507 to always fail with ENOSYS. Some functions are actually named
18508 something starting with __ and the normal name is an alias. */
18509 #if defined (__stub___res_send) || defined (__stub_____res_send)
18510 choke me
18511 #else
18512 char (*f) () = __res_send;
18513 #endif
18514 #ifdef __cplusplus
18516 #endif
18519 main ()
18521 return f != __res_send;
18523 return 0;
18525 _ACEOF
18526 rm -f conftest.$ac_objext conftest$ac_exeext
18527 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18528 (eval $ac_link) 2>conftest.er1
18529 ac_status=$?
18530 grep -v '^ *+' conftest.er1 >conftest.err
18531 rm -f conftest.er1
18532 cat conftest.err >&5
18533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18534 (exit $ac_status); } &&
18535 { ac_try='test -z "$ac_c_werror_flag"
18536 || test ! -s conftest.err'
18537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18538 (eval $ac_try) 2>&5
18539 ac_status=$?
18540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18541 (exit $ac_status); }; } &&
18542 { ac_try='test -s conftest$ac_exeext'
18543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18544 (eval $ac_try) 2>&5
18545 ac_status=$?
18546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18547 (exit $ac_status); }; }; then
18548 ac_cv_func___res_send=yes
18549 else
18550 echo "$as_me: failed program was:" >&5
18551 sed 's/^/| /' conftest.$ac_ext >&5
18553 ac_cv_func___res_send=no
18555 rm -f conftest.err conftest.$ac_objext \
18556 conftest$ac_exeext conftest.$ac_ext
18558 echo "$as_me:$LINENO: result: $ac_cv_func___res_send" >&5
18559 echo "${ECHO_T}$ac_cv_func___res_send" >&6
18560 if test $ac_cv_func___res_send = yes; then
18562 else
18563 echo "$as_me:$LINENO: checking for res_send in -lresolv" >&5
18564 echo $ECHO_N "checking for res_send in -lresolv... $ECHO_C" >&6
18565 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
18566 echo $ECHO_N "(cached) $ECHO_C" >&6
18567 else
18568 ac_check_lib_save_LIBS=$LIBS
18569 LIBS="-lresolv $LIBS"
18570 cat >conftest.$ac_ext <<_ACEOF
18571 /* confdefs.h. */
18572 _ACEOF
18573 cat confdefs.h >>conftest.$ac_ext
18574 cat >>conftest.$ac_ext <<_ACEOF
18575 /* end confdefs.h. */
18577 /* Override any gcc2 internal prototype to avoid an error. */
18578 #ifdef __cplusplus
18579 extern "C"
18580 #endif
18581 /* We use char because int might match the return type of a gcc2
18582 builtin and then its argument prototype would still apply. */
18583 char res_send ();
18585 main ()
18587 res_send ();
18589 return 0;
18591 _ACEOF
18592 rm -f conftest.$ac_objext conftest$ac_exeext
18593 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18594 (eval $ac_link) 2>conftest.er1
18595 ac_status=$?
18596 grep -v '^ *+' conftest.er1 >conftest.err
18597 rm -f conftest.er1
18598 cat conftest.err >&5
18599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18600 (exit $ac_status); } &&
18601 { ac_try='test -z "$ac_c_werror_flag"
18602 || test ! -s conftest.err'
18603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18604 (eval $ac_try) 2>&5
18605 ac_status=$?
18606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18607 (exit $ac_status); }; } &&
18608 { ac_try='test -s conftest$ac_exeext'
18609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18610 (eval $ac_try) 2>&5
18611 ac_status=$?
18612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18613 (exit $ac_status); }; }; then
18614 ac_cv_lib_resolv_res_send=yes
18615 else
18616 echo "$as_me: failed program was:" >&5
18617 sed 's/^/| /' conftest.$ac_ext >&5
18619 ac_cv_lib_resolv_res_send=no
18621 rm -f conftest.err conftest.$ac_objext \
18622 conftest$ac_exeext conftest.$ac_ext
18623 LIBS=$ac_check_lib_save_LIBS
18625 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_send" >&5
18626 echo "${ECHO_T}$ac_cv_lib_resolv_res_send" >&6
18627 if test $ac_cv_lib_resolv_res_send = yes; then
18628 resolv=yes
18629 else
18630 echo "$as_me:$LINENO: checking for __res_send in -lresolv" >&5
18631 echo $ECHO_N "checking for __res_send in -lresolv... $ECHO_C" >&6
18632 if test "${ac_cv_lib_resolv___res_send+set}" = set; then
18633 echo $ECHO_N "(cached) $ECHO_C" >&6
18634 else
18635 ac_check_lib_save_LIBS=$LIBS
18636 LIBS="-lresolv $LIBS"
18637 cat >conftest.$ac_ext <<_ACEOF
18638 /* confdefs.h. */
18639 _ACEOF
18640 cat confdefs.h >>conftest.$ac_ext
18641 cat >>conftest.$ac_ext <<_ACEOF
18642 /* end confdefs.h. */
18644 /* Override any gcc2 internal prototype to avoid an error. */
18645 #ifdef __cplusplus
18646 extern "C"
18647 #endif
18648 /* We use char because int might match the return type of a gcc2
18649 builtin and then its argument prototype would still apply. */
18650 char __res_send ();
18652 main ()
18654 __res_send ();
18656 return 0;
18658 _ACEOF
18659 rm -f conftest.$ac_objext conftest$ac_exeext
18660 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18661 (eval $ac_link) 2>conftest.er1
18662 ac_status=$?
18663 grep -v '^ *+' conftest.er1 >conftest.err
18664 rm -f conftest.er1
18665 cat conftest.err >&5
18666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18667 (exit $ac_status); } &&
18668 { ac_try='test -z "$ac_c_werror_flag"
18669 || test ! -s conftest.err'
18670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18671 (eval $ac_try) 2>&5
18672 ac_status=$?
18673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18674 (exit $ac_status); }; } &&
18675 { ac_try='test -s conftest$ac_exeext'
18676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18677 (eval $ac_try) 2>&5
18678 ac_status=$?
18679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18680 (exit $ac_status); }; }; then
18681 ac_cv_lib_resolv___res_send=yes
18682 else
18683 echo "$as_me: failed program was:" >&5
18684 sed 's/^/| /' conftest.$ac_ext >&5
18686 ac_cv_lib_resolv___res_send=no
18688 rm -f conftest.err conftest.$ac_objext \
18689 conftest$ac_exeext conftest.$ac_ext
18690 LIBS=$ac_check_lib_save_LIBS
18692 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv___res_send" >&5
18693 echo "${ECHO_T}$ac_cv_lib_resolv___res_send" >&6
18694 if test $ac_cv_lib_resolv___res_send = yes; then
18695 resolv=yes
18704 if test "$resolv" = yes ; then
18705 RESOLVLIB=-lresolv
18707 cat >>confdefs.h <<\_ACEOF
18708 #define HAVE_LIBRESOLV 1
18709 _ACEOF
18711 else
18712 RESOLVLIB=
18714 echo "$as_me:$LINENO: checking for hes_getmailhost" >&5
18715 echo $ECHO_N "checking for hes_getmailhost... $ECHO_C" >&6
18716 if test "${ac_cv_func_hes_getmailhost+set}" = set; then
18717 echo $ECHO_N "(cached) $ECHO_C" >&6
18718 else
18719 cat >conftest.$ac_ext <<_ACEOF
18720 /* confdefs.h. */
18721 _ACEOF
18722 cat confdefs.h >>conftest.$ac_ext
18723 cat >>conftest.$ac_ext <<_ACEOF
18724 /* end confdefs.h. */
18725 /* Define hes_getmailhost to an innocuous variant, in case <limits.h> declares hes_getmailhost.
18726 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18727 #define hes_getmailhost innocuous_hes_getmailhost
18729 /* System header to define __stub macros and hopefully few prototypes,
18730 which can conflict with char hes_getmailhost (); below.
18731 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18732 <limits.h> exists even on freestanding compilers. */
18734 #ifdef __STDC__
18735 # include <limits.h>
18736 #else
18737 # include <assert.h>
18738 #endif
18740 #undef hes_getmailhost
18742 /* Override any gcc2 internal prototype to avoid an error. */
18743 #ifdef __cplusplus
18744 extern "C"
18746 #endif
18747 /* We use char because int might match the return type of a gcc2
18748 builtin and then its argument prototype would still apply. */
18749 char hes_getmailhost ();
18750 /* The GNU C library defines this for functions which it implements
18751 to always fail with ENOSYS. Some functions are actually named
18752 something starting with __ and the normal name is an alias. */
18753 #if defined (__stub_hes_getmailhost) || defined (__stub___hes_getmailhost)
18754 choke me
18755 #else
18756 char (*f) () = hes_getmailhost;
18757 #endif
18758 #ifdef __cplusplus
18760 #endif
18763 main ()
18765 return f != hes_getmailhost;
18767 return 0;
18769 _ACEOF
18770 rm -f conftest.$ac_objext conftest$ac_exeext
18771 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18772 (eval $ac_link) 2>conftest.er1
18773 ac_status=$?
18774 grep -v '^ *+' conftest.er1 >conftest.err
18775 rm -f conftest.er1
18776 cat conftest.err >&5
18777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18778 (exit $ac_status); } &&
18779 { ac_try='test -z "$ac_c_werror_flag"
18780 || test ! -s conftest.err'
18781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18782 (eval $ac_try) 2>&5
18783 ac_status=$?
18784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18785 (exit $ac_status); }; } &&
18786 { ac_try='test -s conftest$ac_exeext'
18787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18788 (eval $ac_try) 2>&5
18789 ac_status=$?
18790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18791 (exit $ac_status); }; }; then
18792 ac_cv_func_hes_getmailhost=yes
18793 else
18794 echo "$as_me: failed program was:" >&5
18795 sed 's/^/| /' conftest.$ac_ext >&5
18797 ac_cv_func_hes_getmailhost=no
18799 rm -f conftest.err conftest.$ac_objext \
18800 conftest$ac_exeext conftest.$ac_ext
18802 echo "$as_me:$LINENO: result: $ac_cv_func_hes_getmailhost" >&5
18803 echo "${ECHO_T}$ac_cv_func_hes_getmailhost" >&6
18804 if test $ac_cv_func_hes_getmailhost = yes; then
18806 else
18807 echo "$as_me:$LINENO: checking for hes_getmailhost in -lhesiod" >&5
18808 echo $ECHO_N "checking for hes_getmailhost in -lhesiod... $ECHO_C" >&6
18809 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
18810 echo $ECHO_N "(cached) $ECHO_C" >&6
18811 else
18812 ac_check_lib_save_LIBS=$LIBS
18813 LIBS="-lhesiod $RESOLVLIB $LIBS"
18814 cat >conftest.$ac_ext <<_ACEOF
18815 /* confdefs.h. */
18816 _ACEOF
18817 cat confdefs.h >>conftest.$ac_ext
18818 cat >>conftest.$ac_ext <<_ACEOF
18819 /* end confdefs.h. */
18821 /* Override any gcc2 internal prototype to avoid an error. */
18822 #ifdef __cplusplus
18823 extern "C"
18824 #endif
18825 /* We use char because int might match the return type of a gcc2
18826 builtin and then its argument prototype would still apply. */
18827 char hes_getmailhost ();
18829 main ()
18831 hes_getmailhost ();
18833 return 0;
18835 _ACEOF
18836 rm -f conftest.$ac_objext conftest$ac_exeext
18837 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18838 (eval $ac_link) 2>conftest.er1
18839 ac_status=$?
18840 grep -v '^ *+' conftest.er1 >conftest.err
18841 rm -f conftest.er1
18842 cat conftest.err >&5
18843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18844 (exit $ac_status); } &&
18845 { ac_try='test -z "$ac_c_werror_flag"
18846 || test ! -s conftest.err'
18847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18848 (eval $ac_try) 2>&5
18849 ac_status=$?
18850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18851 (exit $ac_status); }; } &&
18852 { ac_try='test -s conftest$ac_exeext'
18853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18854 (eval $ac_try) 2>&5
18855 ac_status=$?
18856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18857 (exit $ac_status); }; }; then
18858 ac_cv_lib_hesiod_hes_getmailhost=yes
18859 else
18860 echo "$as_me: failed program was:" >&5
18861 sed 's/^/| /' conftest.$ac_ext >&5
18863 ac_cv_lib_hesiod_hes_getmailhost=no
18865 rm -f conftest.err conftest.$ac_objext \
18866 conftest$ac_exeext conftest.$ac_ext
18867 LIBS=$ac_check_lib_save_LIBS
18869 echo "$as_me:$LINENO: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
18870 echo "${ECHO_T}$ac_cv_lib_hesiod_hes_getmailhost" >&6
18871 if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then
18873 cat >>confdefs.h <<\_ACEOF
18874 #define HAVE_LIBHESIOD 1
18875 _ACEOF
18877 else
18885 # These tell us which Kerberos-related libraries to use.
18886 if test "${with_kerberos+set}" = set; then
18888 echo "$as_me:$LINENO: checking for com_err in -lcom_err" >&5
18889 echo $ECHO_N "checking for com_err in -lcom_err... $ECHO_C" >&6
18890 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
18891 echo $ECHO_N "(cached) $ECHO_C" >&6
18892 else
18893 ac_check_lib_save_LIBS=$LIBS
18894 LIBS="-lcom_err $LIBS"
18895 cat >conftest.$ac_ext <<_ACEOF
18896 /* confdefs.h. */
18897 _ACEOF
18898 cat confdefs.h >>conftest.$ac_ext
18899 cat >>conftest.$ac_ext <<_ACEOF
18900 /* end confdefs.h. */
18902 /* Override any gcc2 internal prototype to avoid an error. */
18903 #ifdef __cplusplus
18904 extern "C"
18905 #endif
18906 /* We use char because int might match the return type of a gcc2
18907 builtin and then its argument prototype would still apply. */
18908 char com_err ();
18910 main ()
18912 com_err ();
18914 return 0;
18916 _ACEOF
18917 rm -f conftest.$ac_objext conftest$ac_exeext
18918 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18919 (eval $ac_link) 2>conftest.er1
18920 ac_status=$?
18921 grep -v '^ *+' conftest.er1 >conftest.err
18922 rm -f conftest.er1
18923 cat conftest.err >&5
18924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18925 (exit $ac_status); } &&
18926 { ac_try='test -z "$ac_c_werror_flag"
18927 || test ! -s conftest.err'
18928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18929 (eval $ac_try) 2>&5
18930 ac_status=$?
18931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18932 (exit $ac_status); }; } &&
18933 { ac_try='test -s conftest$ac_exeext'
18934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18935 (eval $ac_try) 2>&5
18936 ac_status=$?
18937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18938 (exit $ac_status); }; }; then
18939 ac_cv_lib_com_err_com_err=yes
18940 else
18941 echo "$as_me: failed program was:" >&5
18942 sed 's/^/| /' conftest.$ac_ext >&5
18944 ac_cv_lib_com_err_com_err=no
18946 rm -f conftest.err conftest.$ac_objext \
18947 conftest$ac_exeext conftest.$ac_ext
18948 LIBS=$ac_check_lib_save_LIBS
18950 echo "$as_me:$LINENO: result: $ac_cv_lib_com_err_com_err" >&5
18951 echo "${ECHO_T}$ac_cv_lib_com_err_com_err" >&6
18952 if test $ac_cv_lib_com_err_com_err = yes; then
18953 cat >>confdefs.h <<_ACEOF
18954 #define HAVE_LIBCOM_ERR 1
18955 _ACEOF
18957 LIBS="-lcom_err $LIBS"
18962 echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
18963 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lk5crypto... $ECHO_C" >&6
18964 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
18965 echo $ECHO_N "(cached) $ECHO_C" >&6
18966 else
18967 ac_check_lib_save_LIBS=$LIBS
18968 LIBS="-lk5crypto $LIBS"
18969 cat >conftest.$ac_ext <<_ACEOF
18970 /* confdefs.h. */
18971 _ACEOF
18972 cat confdefs.h >>conftest.$ac_ext
18973 cat >>conftest.$ac_ext <<_ACEOF
18974 /* end confdefs.h. */
18976 /* Override any gcc2 internal prototype to avoid an error. */
18977 #ifdef __cplusplus
18978 extern "C"
18979 #endif
18980 /* We use char because int might match the return type of a gcc2
18981 builtin and then its argument prototype would still apply. */
18982 char mit_des_cbc_encrypt ();
18984 main ()
18986 mit_des_cbc_encrypt ();
18988 return 0;
18990 _ACEOF
18991 rm -f conftest.$ac_objext conftest$ac_exeext
18992 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18993 (eval $ac_link) 2>conftest.er1
18994 ac_status=$?
18995 grep -v '^ *+' conftest.er1 >conftest.err
18996 rm -f conftest.er1
18997 cat conftest.err >&5
18998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18999 (exit $ac_status); } &&
19000 { ac_try='test -z "$ac_c_werror_flag"
19001 || test ! -s conftest.err'
19002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19003 (eval $ac_try) 2>&5
19004 ac_status=$?
19005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19006 (exit $ac_status); }; } &&
19007 { ac_try='test -s conftest$ac_exeext'
19008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19009 (eval $ac_try) 2>&5
19010 ac_status=$?
19011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19012 (exit $ac_status); }; }; then
19013 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
19014 else
19015 echo "$as_me: failed program was:" >&5
19016 sed 's/^/| /' conftest.$ac_ext >&5
19018 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
19020 rm -f conftest.err conftest.$ac_objext \
19021 conftest$ac_exeext conftest.$ac_ext
19022 LIBS=$ac_check_lib_save_LIBS
19024 echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
19025 echo "${ECHO_T}$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6
19026 if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then
19027 cat >>confdefs.h <<_ACEOF
19028 #define HAVE_LIBK5CRYPTO 1
19029 _ACEOF
19031 LIBS="-lk5crypto $LIBS"
19036 echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lcrypto" >&5
19037 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lcrypto... $ECHO_C" >&6
19038 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
19039 echo $ECHO_N "(cached) $ECHO_C" >&6
19040 else
19041 ac_check_lib_save_LIBS=$LIBS
19042 LIBS="-lcrypto $LIBS"
19043 cat >conftest.$ac_ext <<_ACEOF
19044 /* confdefs.h. */
19045 _ACEOF
19046 cat confdefs.h >>conftest.$ac_ext
19047 cat >>conftest.$ac_ext <<_ACEOF
19048 /* end confdefs.h. */
19050 /* Override any gcc2 internal prototype to avoid an error. */
19051 #ifdef __cplusplus
19052 extern "C"
19053 #endif
19054 /* We use char because int might match the return type of a gcc2
19055 builtin and then its argument prototype would still apply. */
19056 char mit_des_cbc_encrypt ();
19058 main ()
19060 mit_des_cbc_encrypt ();
19062 return 0;
19064 _ACEOF
19065 rm -f conftest.$ac_objext conftest$ac_exeext
19066 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19067 (eval $ac_link) 2>conftest.er1
19068 ac_status=$?
19069 grep -v '^ *+' conftest.er1 >conftest.err
19070 rm -f conftest.er1
19071 cat conftest.err >&5
19072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19073 (exit $ac_status); } &&
19074 { ac_try='test -z "$ac_c_werror_flag"
19075 || test ! -s conftest.err'
19076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19077 (eval $ac_try) 2>&5
19078 ac_status=$?
19079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19080 (exit $ac_status); }; } &&
19081 { ac_try='test -s conftest$ac_exeext'
19082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19083 (eval $ac_try) 2>&5
19084 ac_status=$?
19085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19086 (exit $ac_status); }; }; then
19087 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
19088 else
19089 echo "$as_me: failed program was:" >&5
19090 sed 's/^/| /' conftest.$ac_ext >&5
19092 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
19094 rm -f conftest.err conftest.$ac_objext \
19095 conftest$ac_exeext conftest.$ac_ext
19096 LIBS=$ac_check_lib_save_LIBS
19098 echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
19099 echo "${ECHO_T}$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6
19100 if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then
19101 cat >>confdefs.h <<_ACEOF
19102 #define HAVE_LIBCRYPTO 1
19103 _ACEOF
19105 LIBS="-lcrypto $LIBS"
19110 echo "$as_me:$LINENO: checking for krb5_init_context in -lkrb5" >&5
19111 echo $ECHO_N "checking for krb5_init_context in -lkrb5... $ECHO_C" >&6
19112 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
19113 echo $ECHO_N "(cached) $ECHO_C" >&6
19114 else
19115 ac_check_lib_save_LIBS=$LIBS
19116 LIBS="-lkrb5 $LIBS"
19117 cat >conftest.$ac_ext <<_ACEOF
19118 /* confdefs.h. */
19119 _ACEOF
19120 cat confdefs.h >>conftest.$ac_ext
19121 cat >>conftest.$ac_ext <<_ACEOF
19122 /* end confdefs.h. */
19124 /* Override any gcc2 internal prototype to avoid an error. */
19125 #ifdef __cplusplus
19126 extern "C"
19127 #endif
19128 /* We use char because int might match the return type of a gcc2
19129 builtin and then its argument prototype would still apply. */
19130 char krb5_init_context ();
19132 main ()
19134 krb5_init_context ();
19136 return 0;
19138 _ACEOF
19139 rm -f conftest.$ac_objext conftest$ac_exeext
19140 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19141 (eval $ac_link) 2>conftest.er1
19142 ac_status=$?
19143 grep -v '^ *+' conftest.er1 >conftest.err
19144 rm -f conftest.er1
19145 cat conftest.err >&5
19146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19147 (exit $ac_status); } &&
19148 { ac_try='test -z "$ac_c_werror_flag"
19149 || test ! -s conftest.err'
19150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19151 (eval $ac_try) 2>&5
19152 ac_status=$?
19153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19154 (exit $ac_status); }; } &&
19155 { ac_try='test -s conftest$ac_exeext'
19156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19157 (eval $ac_try) 2>&5
19158 ac_status=$?
19159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19160 (exit $ac_status); }; }; then
19161 ac_cv_lib_krb5_krb5_init_context=yes
19162 else
19163 echo "$as_me: failed program was:" >&5
19164 sed 's/^/| /' conftest.$ac_ext >&5
19166 ac_cv_lib_krb5_krb5_init_context=no
19168 rm -f conftest.err conftest.$ac_objext \
19169 conftest$ac_exeext conftest.$ac_ext
19170 LIBS=$ac_check_lib_save_LIBS
19172 echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_krb5_init_context" >&5
19173 echo "${ECHO_T}$ac_cv_lib_krb5_krb5_init_context" >&6
19174 if test $ac_cv_lib_krb5_krb5_init_context = yes; then
19175 cat >>confdefs.h <<_ACEOF
19176 #define HAVE_LIBKRB5 1
19177 _ACEOF
19179 LIBS="-lkrb5 $LIBS"
19183 if test "${with_kerberos5+set}" != set; then
19185 echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes425" >&5
19186 echo $ECHO_N "checking for des_cbc_encrypt in -ldes425... $ECHO_C" >&6
19187 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
19188 echo $ECHO_N "(cached) $ECHO_C" >&6
19189 else
19190 ac_check_lib_save_LIBS=$LIBS
19191 LIBS="-ldes425 $LIBS"
19192 cat >conftest.$ac_ext <<_ACEOF
19193 /* confdefs.h. */
19194 _ACEOF
19195 cat confdefs.h >>conftest.$ac_ext
19196 cat >>conftest.$ac_ext <<_ACEOF
19197 /* end confdefs.h. */
19199 /* Override any gcc2 internal prototype to avoid an error. */
19200 #ifdef __cplusplus
19201 extern "C"
19202 #endif
19203 /* We use char because int might match the return type of a gcc2
19204 builtin and then its argument prototype would still apply. */
19205 char des_cbc_encrypt ();
19207 main ()
19209 des_cbc_encrypt ();
19211 return 0;
19213 _ACEOF
19214 rm -f conftest.$ac_objext conftest$ac_exeext
19215 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19216 (eval $ac_link) 2>conftest.er1
19217 ac_status=$?
19218 grep -v '^ *+' conftest.er1 >conftest.err
19219 rm -f conftest.er1
19220 cat conftest.err >&5
19221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19222 (exit $ac_status); } &&
19223 { ac_try='test -z "$ac_c_werror_flag"
19224 || test ! -s conftest.err'
19225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19226 (eval $ac_try) 2>&5
19227 ac_status=$?
19228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19229 (exit $ac_status); }; } &&
19230 { ac_try='test -s conftest$ac_exeext'
19231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19232 (eval $ac_try) 2>&5
19233 ac_status=$?
19234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19235 (exit $ac_status); }; }; then
19236 ac_cv_lib_des425_des_cbc_encrypt=yes
19237 else
19238 echo "$as_me: failed program was:" >&5
19239 sed 's/^/| /' conftest.$ac_ext >&5
19241 ac_cv_lib_des425_des_cbc_encrypt=no
19243 rm -f conftest.err conftest.$ac_objext \
19244 conftest$ac_exeext conftest.$ac_ext
19245 LIBS=$ac_check_lib_save_LIBS
19247 echo "$as_me:$LINENO: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
19248 echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6
19249 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
19250 cat >>confdefs.h <<_ACEOF
19251 #define HAVE_LIBDES425 1
19252 _ACEOF
19254 LIBS="-ldes425 $LIBS"
19256 else
19258 echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes" >&5
19259 echo $ECHO_N "checking for des_cbc_encrypt in -ldes... $ECHO_C" >&6
19260 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
19261 echo $ECHO_N "(cached) $ECHO_C" >&6
19262 else
19263 ac_check_lib_save_LIBS=$LIBS
19264 LIBS="-ldes $LIBS"
19265 cat >conftest.$ac_ext <<_ACEOF
19266 /* confdefs.h. */
19267 _ACEOF
19268 cat confdefs.h >>conftest.$ac_ext
19269 cat >>conftest.$ac_ext <<_ACEOF
19270 /* end confdefs.h. */
19272 /* Override any gcc2 internal prototype to avoid an error. */
19273 #ifdef __cplusplus
19274 extern "C"
19275 #endif
19276 /* We use char because int might match the return type of a gcc2
19277 builtin and then its argument prototype would still apply. */
19278 char des_cbc_encrypt ();
19280 main ()
19282 des_cbc_encrypt ();
19284 return 0;
19286 _ACEOF
19287 rm -f conftest.$ac_objext conftest$ac_exeext
19288 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19289 (eval $ac_link) 2>conftest.er1
19290 ac_status=$?
19291 grep -v '^ *+' conftest.er1 >conftest.err
19292 rm -f conftest.er1
19293 cat conftest.err >&5
19294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19295 (exit $ac_status); } &&
19296 { ac_try='test -z "$ac_c_werror_flag"
19297 || test ! -s conftest.err'
19298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19299 (eval $ac_try) 2>&5
19300 ac_status=$?
19301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19302 (exit $ac_status); }; } &&
19303 { ac_try='test -s conftest$ac_exeext'
19304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19305 (eval $ac_try) 2>&5
19306 ac_status=$?
19307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19308 (exit $ac_status); }; }; then
19309 ac_cv_lib_des_des_cbc_encrypt=yes
19310 else
19311 echo "$as_me: failed program was:" >&5
19312 sed 's/^/| /' conftest.$ac_ext >&5
19314 ac_cv_lib_des_des_cbc_encrypt=no
19316 rm -f conftest.err conftest.$ac_objext \
19317 conftest$ac_exeext conftest.$ac_ext
19318 LIBS=$ac_check_lib_save_LIBS
19320 echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
19321 echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6
19322 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
19323 cat >>confdefs.h <<_ACEOF
19324 #define HAVE_LIBDES 1
19325 _ACEOF
19327 LIBS="-ldes $LIBS"
19334 echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb4" >&5
19335 echo $ECHO_N "checking for krb_get_cred in -lkrb4... $ECHO_C" >&6
19336 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
19337 echo $ECHO_N "(cached) $ECHO_C" >&6
19338 else
19339 ac_check_lib_save_LIBS=$LIBS
19340 LIBS="-lkrb4 $LIBS"
19341 cat >conftest.$ac_ext <<_ACEOF
19342 /* confdefs.h. */
19343 _ACEOF
19344 cat confdefs.h >>conftest.$ac_ext
19345 cat >>conftest.$ac_ext <<_ACEOF
19346 /* end confdefs.h. */
19348 /* Override any gcc2 internal prototype to avoid an error. */
19349 #ifdef __cplusplus
19350 extern "C"
19351 #endif
19352 /* We use char because int might match the return type of a gcc2
19353 builtin and then its argument prototype would still apply. */
19354 char krb_get_cred ();
19356 main ()
19358 krb_get_cred ();
19360 return 0;
19362 _ACEOF
19363 rm -f conftest.$ac_objext conftest$ac_exeext
19364 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19365 (eval $ac_link) 2>conftest.er1
19366 ac_status=$?
19367 grep -v '^ *+' conftest.er1 >conftest.err
19368 rm -f conftest.er1
19369 cat conftest.err >&5
19370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19371 (exit $ac_status); } &&
19372 { ac_try='test -z "$ac_c_werror_flag"
19373 || test ! -s conftest.err'
19374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19375 (eval $ac_try) 2>&5
19376 ac_status=$?
19377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19378 (exit $ac_status); }; } &&
19379 { ac_try='test -s conftest$ac_exeext'
19380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19381 (eval $ac_try) 2>&5
19382 ac_status=$?
19383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19384 (exit $ac_status); }; }; then
19385 ac_cv_lib_krb4_krb_get_cred=yes
19386 else
19387 echo "$as_me: failed program was:" >&5
19388 sed 's/^/| /' conftest.$ac_ext >&5
19390 ac_cv_lib_krb4_krb_get_cred=no
19392 rm -f conftest.err conftest.$ac_objext \
19393 conftest$ac_exeext conftest.$ac_ext
19394 LIBS=$ac_check_lib_save_LIBS
19396 echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_krb_get_cred" >&5
19397 echo "${ECHO_T}$ac_cv_lib_krb4_krb_get_cred" >&6
19398 if test $ac_cv_lib_krb4_krb_get_cred = yes; then
19399 cat >>confdefs.h <<_ACEOF
19400 #define HAVE_LIBKRB4 1
19401 _ACEOF
19403 LIBS="-lkrb4 $LIBS"
19405 else
19407 echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb" >&5
19408 echo $ECHO_N "checking for krb_get_cred in -lkrb... $ECHO_C" >&6
19409 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
19410 echo $ECHO_N "(cached) $ECHO_C" >&6
19411 else
19412 ac_check_lib_save_LIBS=$LIBS
19413 LIBS="-lkrb $LIBS"
19414 cat >conftest.$ac_ext <<_ACEOF
19415 /* confdefs.h. */
19416 _ACEOF
19417 cat confdefs.h >>conftest.$ac_ext
19418 cat >>conftest.$ac_ext <<_ACEOF
19419 /* end confdefs.h. */
19421 /* Override any gcc2 internal prototype to avoid an error. */
19422 #ifdef __cplusplus
19423 extern "C"
19424 #endif
19425 /* We use char because int might match the return type of a gcc2
19426 builtin and then its argument prototype would still apply. */
19427 char krb_get_cred ();
19429 main ()
19431 krb_get_cred ();
19433 return 0;
19435 _ACEOF
19436 rm -f conftest.$ac_objext conftest$ac_exeext
19437 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19438 (eval $ac_link) 2>conftest.er1
19439 ac_status=$?
19440 grep -v '^ *+' conftest.er1 >conftest.err
19441 rm -f conftest.er1
19442 cat conftest.err >&5
19443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19444 (exit $ac_status); } &&
19445 { ac_try='test -z "$ac_c_werror_flag"
19446 || test ! -s conftest.err'
19447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19448 (eval $ac_try) 2>&5
19449 ac_status=$?
19450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19451 (exit $ac_status); }; } &&
19452 { ac_try='test -s conftest$ac_exeext'
19453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19454 (eval $ac_try) 2>&5
19455 ac_status=$?
19456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19457 (exit $ac_status); }; }; then
19458 ac_cv_lib_krb_krb_get_cred=yes
19459 else
19460 echo "$as_me: failed program was:" >&5
19461 sed 's/^/| /' conftest.$ac_ext >&5
19463 ac_cv_lib_krb_krb_get_cred=no
19465 rm -f conftest.err conftest.$ac_objext \
19466 conftest$ac_exeext conftest.$ac_ext
19467 LIBS=$ac_check_lib_save_LIBS
19469 echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_get_cred" >&5
19470 echo "${ECHO_T}$ac_cv_lib_krb_krb_get_cred" >&6
19471 if test $ac_cv_lib_krb_krb_get_cred = yes; then
19472 cat >>confdefs.h <<_ACEOF
19473 #define HAVE_LIBKRB 1
19474 _ACEOF
19476 LIBS="-lkrb $LIBS"
19484 if test "${with_kerberos5+set}" = set; then
19486 for ac_header in krb5.h
19488 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19489 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19490 echo "$as_me:$LINENO: checking for $ac_header" >&5
19491 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19492 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19493 echo $ECHO_N "(cached) $ECHO_C" >&6
19495 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19496 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19497 else
19498 # Is the header compilable?
19499 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19500 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19501 cat >conftest.$ac_ext <<_ACEOF
19502 /* confdefs.h. */
19503 _ACEOF
19504 cat confdefs.h >>conftest.$ac_ext
19505 cat >>conftest.$ac_ext <<_ACEOF
19506 /* end confdefs.h. */
19507 $ac_includes_default
19508 #include <$ac_header>
19509 _ACEOF
19510 rm -f conftest.$ac_objext
19511 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19512 (eval $ac_compile) 2>conftest.er1
19513 ac_status=$?
19514 grep -v '^ *+' conftest.er1 >conftest.err
19515 rm -f conftest.er1
19516 cat conftest.err >&5
19517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19518 (exit $ac_status); } &&
19519 { ac_try='test -z "$ac_c_werror_flag"
19520 || test ! -s conftest.err'
19521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19522 (eval $ac_try) 2>&5
19523 ac_status=$?
19524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19525 (exit $ac_status); }; } &&
19526 { ac_try='test -s conftest.$ac_objext'
19527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19528 (eval $ac_try) 2>&5
19529 ac_status=$?
19530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19531 (exit $ac_status); }; }; then
19532 ac_header_compiler=yes
19533 else
19534 echo "$as_me: failed program was:" >&5
19535 sed 's/^/| /' conftest.$ac_ext >&5
19537 ac_header_compiler=no
19539 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19540 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19541 echo "${ECHO_T}$ac_header_compiler" >&6
19543 # Is the header present?
19544 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19545 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19546 cat >conftest.$ac_ext <<_ACEOF
19547 /* confdefs.h. */
19548 _ACEOF
19549 cat confdefs.h >>conftest.$ac_ext
19550 cat >>conftest.$ac_ext <<_ACEOF
19551 /* end confdefs.h. */
19552 #include <$ac_header>
19553 _ACEOF
19554 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19555 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19556 ac_status=$?
19557 grep -v '^ *+' conftest.er1 >conftest.err
19558 rm -f conftest.er1
19559 cat conftest.err >&5
19560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19561 (exit $ac_status); } >/dev/null; then
19562 if test -s conftest.err; then
19563 ac_cpp_err=$ac_c_preproc_warn_flag
19564 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19565 else
19566 ac_cpp_err=
19568 else
19569 ac_cpp_err=yes
19571 if test -z "$ac_cpp_err"; then
19572 ac_header_preproc=yes
19573 else
19574 echo "$as_me: failed program was:" >&5
19575 sed 's/^/| /' conftest.$ac_ext >&5
19577 ac_header_preproc=no
19579 rm -f conftest.err conftest.$ac_ext
19580 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19581 echo "${ECHO_T}$ac_header_preproc" >&6
19583 # So? What about this header?
19584 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19585 yes:no: )
19586 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19587 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19588 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19589 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19590 ac_header_preproc=yes
19592 no:yes:* )
19593 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19594 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19595 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19596 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19597 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19598 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19599 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19600 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19601 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19602 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19603 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19604 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19606 cat <<\_ASBOX
19607 ## ------------------------------------------ ##
19608 ## Report this to the AC_PACKAGE_NAME lists. ##
19609 ## ------------------------------------------ ##
19610 _ASBOX
19612 sed "s/^/$as_me: WARNING: /" >&2
19614 esac
19615 echo "$as_me:$LINENO: checking for $ac_header" >&5
19616 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19617 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19618 echo $ECHO_N "(cached) $ECHO_C" >&6
19619 else
19620 eval "$as_ac_Header=\$ac_header_preproc"
19622 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19623 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19626 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19627 cat >>confdefs.h <<_ACEOF
19628 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19629 _ACEOF
19633 done
19635 else
19637 for ac_header in des.h
19639 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19640 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19641 echo "$as_me:$LINENO: checking for $ac_header" >&5
19642 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19643 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19644 echo $ECHO_N "(cached) $ECHO_C" >&6
19646 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19647 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19648 else
19649 # Is the header compilable?
19650 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19651 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19652 cat >conftest.$ac_ext <<_ACEOF
19653 /* confdefs.h. */
19654 _ACEOF
19655 cat confdefs.h >>conftest.$ac_ext
19656 cat >>conftest.$ac_ext <<_ACEOF
19657 /* end confdefs.h. */
19658 $ac_includes_default
19659 #include <$ac_header>
19660 _ACEOF
19661 rm -f conftest.$ac_objext
19662 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19663 (eval $ac_compile) 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_objext'
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_header_compiler=yes
19684 else
19685 echo "$as_me: failed program was:" >&5
19686 sed 's/^/| /' conftest.$ac_ext >&5
19688 ac_header_compiler=no
19690 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19691 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19692 echo "${ECHO_T}$ac_header_compiler" >&6
19694 # Is the header present?
19695 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19696 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19697 cat >conftest.$ac_ext <<_ACEOF
19698 /* confdefs.h. */
19699 _ACEOF
19700 cat confdefs.h >>conftest.$ac_ext
19701 cat >>conftest.$ac_ext <<_ACEOF
19702 /* end confdefs.h. */
19703 #include <$ac_header>
19704 _ACEOF
19705 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19706 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19707 ac_status=$?
19708 grep -v '^ *+' conftest.er1 >conftest.err
19709 rm -f conftest.er1
19710 cat conftest.err >&5
19711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19712 (exit $ac_status); } >/dev/null; then
19713 if test -s conftest.err; then
19714 ac_cpp_err=$ac_c_preproc_warn_flag
19715 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19716 else
19717 ac_cpp_err=
19719 else
19720 ac_cpp_err=yes
19722 if test -z "$ac_cpp_err"; then
19723 ac_header_preproc=yes
19724 else
19725 echo "$as_me: failed program was:" >&5
19726 sed 's/^/| /' conftest.$ac_ext >&5
19728 ac_header_preproc=no
19730 rm -f conftest.err conftest.$ac_ext
19731 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19732 echo "${ECHO_T}$ac_header_preproc" >&6
19734 # So? What about this header?
19735 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19736 yes:no: )
19737 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19738 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19739 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19740 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19741 ac_header_preproc=yes
19743 no:yes:* )
19744 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19745 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19746 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19747 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19748 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19749 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19750 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19751 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19752 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19753 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19754 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19755 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19757 cat <<\_ASBOX
19758 ## ------------------------------------------ ##
19759 ## Report this to the AC_PACKAGE_NAME lists. ##
19760 ## ------------------------------------------ ##
19761 _ASBOX
19763 sed "s/^/$as_me: WARNING: /" >&2
19765 esac
19766 echo "$as_me:$LINENO: checking for $ac_header" >&5
19767 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19768 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19769 echo $ECHO_N "(cached) $ECHO_C" >&6
19770 else
19771 eval "$as_ac_Header=\$ac_header_preproc"
19773 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19774 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19777 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19778 cat >>confdefs.h <<_ACEOF
19779 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19780 _ACEOF
19782 else
19784 for ac_header in kerberosIV/des.h
19786 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19787 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19788 echo "$as_me:$LINENO: checking for $ac_header" >&5
19789 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19790 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19791 echo $ECHO_N "(cached) $ECHO_C" >&6
19793 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19794 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19795 else
19796 # Is the header compilable?
19797 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19798 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19799 cat >conftest.$ac_ext <<_ACEOF
19800 /* confdefs.h. */
19801 _ACEOF
19802 cat confdefs.h >>conftest.$ac_ext
19803 cat >>conftest.$ac_ext <<_ACEOF
19804 /* end confdefs.h. */
19805 $ac_includes_default
19806 #include <$ac_header>
19807 _ACEOF
19808 rm -f conftest.$ac_objext
19809 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19810 (eval $ac_compile) 2>conftest.er1
19811 ac_status=$?
19812 grep -v '^ *+' conftest.er1 >conftest.err
19813 rm -f conftest.er1
19814 cat conftest.err >&5
19815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19816 (exit $ac_status); } &&
19817 { ac_try='test -z "$ac_c_werror_flag"
19818 || test ! -s conftest.err'
19819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19820 (eval $ac_try) 2>&5
19821 ac_status=$?
19822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19823 (exit $ac_status); }; } &&
19824 { ac_try='test -s conftest.$ac_objext'
19825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19826 (eval $ac_try) 2>&5
19827 ac_status=$?
19828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19829 (exit $ac_status); }; }; then
19830 ac_header_compiler=yes
19831 else
19832 echo "$as_me: failed program was:" >&5
19833 sed 's/^/| /' conftest.$ac_ext >&5
19835 ac_header_compiler=no
19837 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19838 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19839 echo "${ECHO_T}$ac_header_compiler" >&6
19841 # Is the header present?
19842 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19843 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19844 cat >conftest.$ac_ext <<_ACEOF
19845 /* confdefs.h. */
19846 _ACEOF
19847 cat confdefs.h >>conftest.$ac_ext
19848 cat >>conftest.$ac_ext <<_ACEOF
19849 /* end confdefs.h. */
19850 #include <$ac_header>
19851 _ACEOF
19852 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19853 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19854 ac_status=$?
19855 grep -v '^ *+' conftest.er1 >conftest.err
19856 rm -f conftest.er1
19857 cat conftest.err >&5
19858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19859 (exit $ac_status); } >/dev/null; then
19860 if test -s conftest.err; then
19861 ac_cpp_err=$ac_c_preproc_warn_flag
19862 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19863 else
19864 ac_cpp_err=
19866 else
19867 ac_cpp_err=yes
19869 if test -z "$ac_cpp_err"; then
19870 ac_header_preproc=yes
19871 else
19872 echo "$as_me: failed program was:" >&5
19873 sed 's/^/| /' conftest.$ac_ext >&5
19875 ac_header_preproc=no
19877 rm -f conftest.err conftest.$ac_ext
19878 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19879 echo "${ECHO_T}$ac_header_preproc" >&6
19881 # So? What about this header?
19882 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19883 yes:no: )
19884 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19885 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19886 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19887 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19888 ac_header_preproc=yes
19890 no:yes:* )
19891 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19892 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19893 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19894 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19895 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19896 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19897 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19898 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19899 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19900 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19901 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19902 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19904 cat <<\_ASBOX
19905 ## ------------------------------------------ ##
19906 ## Report this to the AC_PACKAGE_NAME lists. ##
19907 ## ------------------------------------------ ##
19908 _ASBOX
19910 sed "s/^/$as_me: WARNING: /" >&2
19912 esac
19913 echo "$as_me:$LINENO: checking for $ac_header" >&5
19914 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19915 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19916 echo $ECHO_N "(cached) $ECHO_C" >&6
19917 else
19918 eval "$as_ac_Header=\$ac_header_preproc"
19920 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19921 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19924 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19925 cat >>confdefs.h <<_ACEOF
19926 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19927 _ACEOF
19929 else
19931 for ac_header in kerberos/des.h
19933 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19934 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19935 echo "$as_me:$LINENO: checking for $ac_header" >&5
19936 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19937 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19938 echo $ECHO_N "(cached) $ECHO_C" >&6
19940 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19941 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19942 else
19943 # Is the header compilable?
19944 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19945 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19946 cat >conftest.$ac_ext <<_ACEOF
19947 /* confdefs.h. */
19948 _ACEOF
19949 cat confdefs.h >>conftest.$ac_ext
19950 cat >>conftest.$ac_ext <<_ACEOF
19951 /* end confdefs.h. */
19952 $ac_includes_default
19953 #include <$ac_header>
19954 _ACEOF
19955 rm -f conftest.$ac_objext
19956 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19957 (eval $ac_compile) 2>conftest.er1
19958 ac_status=$?
19959 grep -v '^ *+' conftest.er1 >conftest.err
19960 rm -f conftest.er1
19961 cat conftest.err >&5
19962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19963 (exit $ac_status); } &&
19964 { ac_try='test -z "$ac_c_werror_flag"
19965 || test ! -s conftest.err'
19966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19967 (eval $ac_try) 2>&5
19968 ac_status=$?
19969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19970 (exit $ac_status); }; } &&
19971 { ac_try='test -s conftest.$ac_objext'
19972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19973 (eval $ac_try) 2>&5
19974 ac_status=$?
19975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19976 (exit $ac_status); }; }; then
19977 ac_header_compiler=yes
19978 else
19979 echo "$as_me: failed program was:" >&5
19980 sed 's/^/| /' conftest.$ac_ext >&5
19982 ac_header_compiler=no
19984 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19985 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19986 echo "${ECHO_T}$ac_header_compiler" >&6
19988 # Is the header present?
19989 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19990 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19991 cat >conftest.$ac_ext <<_ACEOF
19992 /* confdefs.h. */
19993 _ACEOF
19994 cat confdefs.h >>conftest.$ac_ext
19995 cat >>conftest.$ac_ext <<_ACEOF
19996 /* end confdefs.h. */
19997 #include <$ac_header>
19998 _ACEOF
19999 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20000 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20001 ac_status=$?
20002 grep -v '^ *+' conftest.er1 >conftest.err
20003 rm -f conftest.er1
20004 cat conftest.err >&5
20005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20006 (exit $ac_status); } >/dev/null; then
20007 if test -s conftest.err; then
20008 ac_cpp_err=$ac_c_preproc_warn_flag
20009 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20010 else
20011 ac_cpp_err=
20013 else
20014 ac_cpp_err=yes
20016 if test -z "$ac_cpp_err"; then
20017 ac_header_preproc=yes
20018 else
20019 echo "$as_me: failed program was:" >&5
20020 sed 's/^/| /' conftest.$ac_ext >&5
20022 ac_header_preproc=no
20024 rm -f conftest.err conftest.$ac_ext
20025 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20026 echo "${ECHO_T}$ac_header_preproc" >&6
20028 # So? What about this header?
20029 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20030 yes:no: )
20031 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20032 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20033 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20034 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20035 ac_header_preproc=yes
20037 no:yes:* )
20038 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20039 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20040 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20041 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20042 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20043 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20044 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20045 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20046 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20047 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20048 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20049 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20051 cat <<\_ASBOX
20052 ## ------------------------------------------ ##
20053 ## Report this to the AC_PACKAGE_NAME lists. ##
20054 ## ------------------------------------------ ##
20055 _ASBOX
20057 sed "s/^/$as_me: WARNING: /" >&2
20059 esac
20060 echo "$as_me:$LINENO: checking for $ac_header" >&5
20061 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20062 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20063 echo $ECHO_N "(cached) $ECHO_C" >&6
20064 else
20065 eval "$as_ac_Header=\$ac_header_preproc"
20067 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20068 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20071 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20072 cat >>confdefs.h <<_ACEOF
20073 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20074 _ACEOF
20078 done
20082 done
20086 done
20089 for ac_header in krb.h
20091 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20092 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20093 echo "$as_me:$LINENO: checking for $ac_header" >&5
20094 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20095 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20096 echo $ECHO_N "(cached) $ECHO_C" >&6
20098 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20099 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20100 else
20101 # Is the header compilable?
20102 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20103 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20104 cat >conftest.$ac_ext <<_ACEOF
20105 /* confdefs.h. */
20106 _ACEOF
20107 cat confdefs.h >>conftest.$ac_ext
20108 cat >>conftest.$ac_ext <<_ACEOF
20109 /* end confdefs.h. */
20110 $ac_includes_default
20111 #include <$ac_header>
20112 _ACEOF
20113 rm -f conftest.$ac_objext
20114 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20115 (eval $ac_compile) 2>conftest.er1
20116 ac_status=$?
20117 grep -v '^ *+' conftest.er1 >conftest.err
20118 rm -f conftest.er1
20119 cat conftest.err >&5
20120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20121 (exit $ac_status); } &&
20122 { ac_try='test -z "$ac_c_werror_flag"
20123 || test ! -s conftest.err'
20124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20125 (eval $ac_try) 2>&5
20126 ac_status=$?
20127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20128 (exit $ac_status); }; } &&
20129 { ac_try='test -s conftest.$ac_objext'
20130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20131 (eval $ac_try) 2>&5
20132 ac_status=$?
20133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20134 (exit $ac_status); }; }; then
20135 ac_header_compiler=yes
20136 else
20137 echo "$as_me: failed program was:" >&5
20138 sed 's/^/| /' conftest.$ac_ext >&5
20140 ac_header_compiler=no
20142 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20143 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20144 echo "${ECHO_T}$ac_header_compiler" >&6
20146 # Is the header present?
20147 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20148 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20149 cat >conftest.$ac_ext <<_ACEOF
20150 /* confdefs.h. */
20151 _ACEOF
20152 cat confdefs.h >>conftest.$ac_ext
20153 cat >>conftest.$ac_ext <<_ACEOF
20154 /* end confdefs.h. */
20155 #include <$ac_header>
20156 _ACEOF
20157 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20158 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20159 ac_status=$?
20160 grep -v '^ *+' conftest.er1 >conftest.err
20161 rm -f conftest.er1
20162 cat conftest.err >&5
20163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20164 (exit $ac_status); } >/dev/null; then
20165 if test -s conftest.err; then
20166 ac_cpp_err=$ac_c_preproc_warn_flag
20167 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20168 else
20169 ac_cpp_err=
20171 else
20172 ac_cpp_err=yes
20174 if test -z "$ac_cpp_err"; then
20175 ac_header_preproc=yes
20176 else
20177 echo "$as_me: failed program was:" >&5
20178 sed 's/^/| /' conftest.$ac_ext >&5
20180 ac_header_preproc=no
20182 rm -f conftest.err conftest.$ac_ext
20183 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20184 echo "${ECHO_T}$ac_header_preproc" >&6
20186 # So? What about this header?
20187 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20188 yes:no: )
20189 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20190 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20191 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20192 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20193 ac_header_preproc=yes
20195 no:yes:* )
20196 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20197 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20198 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20199 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20200 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20201 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20202 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20203 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20204 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20205 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20206 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20207 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20209 cat <<\_ASBOX
20210 ## ------------------------------------------ ##
20211 ## Report this to the AC_PACKAGE_NAME lists. ##
20212 ## ------------------------------------------ ##
20213 _ASBOX
20215 sed "s/^/$as_me: WARNING: /" >&2
20217 esac
20218 echo "$as_me:$LINENO: checking for $ac_header" >&5
20219 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20220 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20221 echo $ECHO_N "(cached) $ECHO_C" >&6
20222 else
20223 eval "$as_ac_Header=\$ac_header_preproc"
20225 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20226 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20229 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20230 cat >>confdefs.h <<_ACEOF
20231 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20232 _ACEOF
20234 else
20236 for ac_header in kerberosIV/krb.h
20238 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20239 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20240 echo "$as_me:$LINENO: checking for $ac_header" >&5
20241 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20242 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20243 echo $ECHO_N "(cached) $ECHO_C" >&6
20245 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20246 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20247 else
20248 # Is the header compilable?
20249 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20250 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20251 cat >conftest.$ac_ext <<_ACEOF
20252 /* confdefs.h. */
20253 _ACEOF
20254 cat confdefs.h >>conftest.$ac_ext
20255 cat >>conftest.$ac_ext <<_ACEOF
20256 /* end confdefs.h. */
20257 $ac_includes_default
20258 #include <$ac_header>
20259 _ACEOF
20260 rm -f conftest.$ac_objext
20261 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20262 (eval $ac_compile) 2>conftest.er1
20263 ac_status=$?
20264 grep -v '^ *+' conftest.er1 >conftest.err
20265 rm -f conftest.er1
20266 cat conftest.err >&5
20267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20268 (exit $ac_status); } &&
20269 { ac_try='test -z "$ac_c_werror_flag"
20270 || test ! -s conftest.err'
20271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20272 (eval $ac_try) 2>&5
20273 ac_status=$?
20274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20275 (exit $ac_status); }; } &&
20276 { ac_try='test -s conftest.$ac_objext'
20277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20278 (eval $ac_try) 2>&5
20279 ac_status=$?
20280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20281 (exit $ac_status); }; }; then
20282 ac_header_compiler=yes
20283 else
20284 echo "$as_me: failed program was:" >&5
20285 sed 's/^/| /' conftest.$ac_ext >&5
20287 ac_header_compiler=no
20289 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20290 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20291 echo "${ECHO_T}$ac_header_compiler" >&6
20293 # Is the header present?
20294 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20295 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20296 cat >conftest.$ac_ext <<_ACEOF
20297 /* confdefs.h. */
20298 _ACEOF
20299 cat confdefs.h >>conftest.$ac_ext
20300 cat >>conftest.$ac_ext <<_ACEOF
20301 /* end confdefs.h. */
20302 #include <$ac_header>
20303 _ACEOF
20304 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20305 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20306 ac_status=$?
20307 grep -v '^ *+' conftest.er1 >conftest.err
20308 rm -f conftest.er1
20309 cat conftest.err >&5
20310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20311 (exit $ac_status); } >/dev/null; then
20312 if test -s conftest.err; then
20313 ac_cpp_err=$ac_c_preproc_warn_flag
20314 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20315 else
20316 ac_cpp_err=
20318 else
20319 ac_cpp_err=yes
20321 if test -z "$ac_cpp_err"; then
20322 ac_header_preproc=yes
20323 else
20324 echo "$as_me: failed program was:" >&5
20325 sed 's/^/| /' conftest.$ac_ext >&5
20327 ac_header_preproc=no
20329 rm -f conftest.err conftest.$ac_ext
20330 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20331 echo "${ECHO_T}$ac_header_preproc" >&6
20333 # So? What about this header?
20334 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20335 yes:no: )
20336 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20337 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20338 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20339 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20340 ac_header_preproc=yes
20342 no:yes:* )
20343 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20344 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20345 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20346 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20347 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20348 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20349 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20350 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20351 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20352 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20353 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20354 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20356 cat <<\_ASBOX
20357 ## ------------------------------------------ ##
20358 ## Report this to the AC_PACKAGE_NAME lists. ##
20359 ## ------------------------------------------ ##
20360 _ASBOX
20362 sed "s/^/$as_me: WARNING: /" >&2
20364 esac
20365 echo "$as_me:$LINENO: checking for $ac_header" >&5
20366 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20367 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20368 echo $ECHO_N "(cached) $ECHO_C" >&6
20369 else
20370 eval "$as_ac_Header=\$ac_header_preproc"
20372 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20373 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20376 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20377 cat >>confdefs.h <<_ACEOF
20378 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20379 _ACEOF
20381 else
20383 for ac_header in kerberos/krb.h
20385 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20386 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20387 echo "$as_me:$LINENO: checking for $ac_header" >&5
20388 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20389 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20390 echo $ECHO_N "(cached) $ECHO_C" >&6
20392 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20393 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20394 else
20395 # Is the header compilable?
20396 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20397 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20398 cat >conftest.$ac_ext <<_ACEOF
20399 /* confdefs.h. */
20400 _ACEOF
20401 cat confdefs.h >>conftest.$ac_ext
20402 cat >>conftest.$ac_ext <<_ACEOF
20403 /* end confdefs.h. */
20404 $ac_includes_default
20405 #include <$ac_header>
20406 _ACEOF
20407 rm -f conftest.$ac_objext
20408 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20409 (eval $ac_compile) 2>conftest.er1
20410 ac_status=$?
20411 grep -v '^ *+' conftest.er1 >conftest.err
20412 rm -f conftest.er1
20413 cat conftest.err >&5
20414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20415 (exit $ac_status); } &&
20416 { ac_try='test -z "$ac_c_werror_flag"
20417 || test ! -s conftest.err'
20418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20419 (eval $ac_try) 2>&5
20420 ac_status=$?
20421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20422 (exit $ac_status); }; } &&
20423 { ac_try='test -s conftest.$ac_objext'
20424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20425 (eval $ac_try) 2>&5
20426 ac_status=$?
20427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20428 (exit $ac_status); }; }; then
20429 ac_header_compiler=yes
20430 else
20431 echo "$as_me: failed program was:" >&5
20432 sed 's/^/| /' conftest.$ac_ext >&5
20434 ac_header_compiler=no
20436 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20437 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20438 echo "${ECHO_T}$ac_header_compiler" >&6
20440 # Is the header present?
20441 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20442 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20443 cat >conftest.$ac_ext <<_ACEOF
20444 /* confdefs.h. */
20445 _ACEOF
20446 cat confdefs.h >>conftest.$ac_ext
20447 cat >>conftest.$ac_ext <<_ACEOF
20448 /* end confdefs.h. */
20449 #include <$ac_header>
20450 _ACEOF
20451 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20452 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20453 ac_status=$?
20454 grep -v '^ *+' conftest.er1 >conftest.err
20455 rm -f conftest.er1
20456 cat conftest.err >&5
20457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20458 (exit $ac_status); } >/dev/null; then
20459 if test -s conftest.err; then
20460 ac_cpp_err=$ac_c_preproc_warn_flag
20461 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20462 else
20463 ac_cpp_err=
20465 else
20466 ac_cpp_err=yes
20468 if test -z "$ac_cpp_err"; then
20469 ac_header_preproc=yes
20470 else
20471 echo "$as_me: failed program was:" >&5
20472 sed 's/^/| /' conftest.$ac_ext >&5
20474 ac_header_preproc=no
20476 rm -f conftest.err conftest.$ac_ext
20477 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20478 echo "${ECHO_T}$ac_header_preproc" >&6
20480 # So? What about this header?
20481 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20482 yes:no: )
20483 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20484 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20485 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20486 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20487 ac_header_preproc=yes
20489 no:yes:* )
20490 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20491 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20492 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20493 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20494 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20495 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20496 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20497 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20498 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20499 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20500 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20501 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20503 cat <<\_ASBOX
20504 ## ------------------------------------------ ##
20505 ## Report this to the AC_PACKAGE_NAME lists. ##
20506 ## ------------------------------------------ ##
20507 _ASBOX
20509 sed "s/^/$as_me: WARNING: /" >&2
20511 esac
20512 echo "$as_me:$LINENO: checking for $ac_header" >&5
20513 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20514 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20515 echo $ECHO_N "(cached) $ECHO_C" >&6
20516 else
20517 eval "$as_ac_Header=\$ac_header_preproc"
20519 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20520 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20523 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20524 cat >>confdefs.h <<_ACEOF
20525 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20526 _ACEOF
20530 done
20534 done
20538 done
20542 for ac_header in com_err.h
20544 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20545 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20546 echo "$as_me:$LINENO: checking for $ac_header" >&5
20547 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20548 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20549 echo $ECHO_N "(cached) $ECHO_C" >&6
20551 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20552 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20553 else
20554 # Is the header compilable?
20555 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20556 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20557 cat >conftest.$ac_ext <<_ACEOF
20558 /* confdefs.h. */
20559 _ACEOF
20560 cat confdefs.h >>conftest.$ac_ext
20561 cat >>conftest.$ac_ext <<_ACEOF
20562 /* end confdefs.h. */
20563 $ac_includes_default
20564 #include <$ac_header>
20565 _ACEOF
20566 rm -f conftest.$ac_objext
20567 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20568 (eval $ac_compile) 2>conftest.er1
20569 ac_status=$?
20570 grep -v '^ *+' conftest.er1 >conftest.err
20571 rm -f conftest.er1
20572 cat conftest.err >&5
20573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20574 (exit $ac_status); } &&
20575 { ac_try='test -z "$ac_c_werror_flag"
20576 || test ! -s conftest.err'
20577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20578 (eval $ac_try) 2>&5
20579 ac_status=$?
20580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20581 (exit $ac_status); }; } &&
20582 { ac_try='test -s conftest.$ac_objext'
20583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20584 (eval $ac_try) 2>&5
20585 ac_status=$?
20586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20587 (exit $ac_status); }; }; then
20588 ac_header_compiler=yes
20589 else
20590 echo "$as_me: failed program was:" >&5
20591 sed 's/^/| /' conftest.$ac_ext >&5
20593 ac_header_compiler=no
20595 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20596 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20597 echo "${ECHO_T}$ac_header_compiler" >&6
20599 # Is the header present?
20600 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20601 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20602 cat >conftest.$ac_ext <<_ACEOF
20603 /* confdefs.h. */
20604 _ACEOF
20605 cat confdefs.h >>conftest.$ac_ext
20606 cat >>conftest.$ac_ext <<_ACEOF
20607 /* end confdefs.h. */
20608 #include <$ac_header>
20609 _ACEOF
20610 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20611 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20612 ac_status=$?
20613 grep -v '^ *+' conftest.er1 >conftest.err
20614 rm -f conftest.er1
20615 cat conftest.err >&5
20616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20617 (exit $ac_status); } >/dev/null; then
20618 if test -s conftest.err; then
20619 ac_cpp_err=$ac_c_preproc_warn_flag
20620 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20621 else
20622 ac_cpp_err=
20624 else
20625 ac_cpp_err=yes
20627 if test -z "$ac_cpp_err"; then
20628 ac_header_preproc=yes
20629 else
20630 echo "$as_me: failed program was:" >&5
20631 sed 's/^/| /' conftest.$ac_ext >&5
20633 ac_header_preproc=no
20635 rm -f conftest.err conftest.$ac_ext
20636 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20637 echo "${ECHO_T}$ac_header_preproc" >&6
20639 # So? What about this header?
20640 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20641 yes:no: )
20642 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20643 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20644 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20645 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20646 ac_header_preproc=yes
20648 no:yes:* )
20649 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20650 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20651 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20652 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20653 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20654 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20655 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20656 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20657 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20658 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20659 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20660 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20662 cat <<\_ASBOX
20663 ## ------------------------------------------ ##
20664 ## Report this to the AC_PACKAGE_NAME lists. ##
20665 ## ------------------------------------------ ##
20666 _ASBOX
20668 sed "s/^/$as_me: WARNING: /" >&2
20670 esac
20671 echo "$as_me:$LINENO: checking for $ac_header" >&5
20672 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20673 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20674 echo $ECHO_N "(cached) $ECHO_C" >&6
20675 else
20676 eval "$as_ac_Header=\$ac_header_preproc"
20678 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20679 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20682 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20683 cat >>confdefs.h <<_ACEOF
20684 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20685 _ACEOF
20689 done
20693 # Solaris requires -lintl if you want strerror (which calls dgettext)
20694 # to return localized messages.
20696 echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
20697 echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6
20698 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
20699 echo $ECHO_N "(cached) $ECHO_C" >&6
20700 else
20701 ac_check_lib_save_LIBS=$LIBS
20702 LIBS="-lintl $LIBS"
20703 cat >conftest.$ac_ext <<_ACEOF
20704 /* confdefs.h. */
20705 _ACEOF
20706 cat confdefs.h >>conftest.$ac_ext
20707 cat >>conftest.$ac_ext <<_ACEOF
20708 /* end confdefs.h. */
20710 /* Override any gcc2 internal prototype to avoid an error. */
20711 #ifdef __cplusplus
20712 extern "C"
20713 #endif
20714 /* We use char because int might match the return type of a gcc2
20715 builtin and then its argument prototype would still apply. */
20716 char dgettext ();
20718 main ()
20720 dgettext ();
20722 return 0;
20724 _ACEOF
20725 rm -f conftest.$ac_objext conftest$ac_exeext
20726 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20727 (eval $ac_link) 2>conftest.er1
20728 ac_status=$?
20729 grep -v '^ *+' conftest.er1 >conftest.err
20730 rm -f conftest.er1
20731 cat conftest.err >&5
20732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20733 (exit $ac_status); } &&
20734 { ac_try='test -z "$ac_c_werror_flag"
20735 || test ! -s conftest.err'
20736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20737 (eval $ac_try) 2>&5
20738 ac_status=$?
20739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20740 (exit $ac_status); }; } &&
20741 { ac_try='test -s conftest$ac_exeext'
20742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20743 (eval $ac_try) 2>&5
20744 ac_status=$?
20745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20746 (exit $ac_status); }; }; then
20747 ac_cv_lib_intl_dgettext=yes
20748 else
20749 echo "$as_me: failed program was:" >&5
20750 sed 's/^/| /' conftest.$ac_ext >&5
20752 ac_cv_lib_intl_dgettext=no
20754 rm -f conftest.err conftest.$ac_objext \
20755 conftest$ac_exeext conftest.$ac_ext
20756 LIBS=$ac_check_lib_save_LIBS
20758 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
20759 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6
20760 if test $ac_cv_lib_intl_dgettext = yes; then
20761 cat >>confdefs.h <<_ACEOF
20762 #define HAVE_LIBINTL 1
20763 _ACEOF
20765 LIBS="-lintl $LIBS"
20770 echo "$as_me:$LINENO: checking whether localtime caches TZ" >&5
20771 echo $ECHO_N "checking whether localtime caches TZ... $ECHO_C" >&6
20772 if test "${emacs_cv_localtime_cache+set}" = set; then
20773 echo $ECHO_N "(cached) $ECHO_C" >&6
20774 else
20775 if test x$ac_cv_func_tzset = xyes; then
20776 if test "$cross_compiling" = yes; then
20777 # If we have tzset, assume the worst when cross-compiling.
20778 emacs_cv_localtime_cache=yes
20779 else
20780 cat >conftest.$ac_ext <<_ACEOF
20781 /* confdefs.h. */
20782 _ACEOF
20783 cat confdefs.h >>conftest.$ac_ext
20784 cat >>conftest.$ac_ext <<_ACEOF
20785 /* end confdefs.h. */
20786 #include <time.h>
20787 extern char **environ;
20788 unset_TZ ()
20790 char **from, **to;
20791 for (to = from = environ; (*to = *from); from++)
20792 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
20793 to++;
20795 char TZ_GMT0[] = "TZ=GMT0";
20796 char TZ_PST8[] = "TZ=PST8";
20797 main()
20799 time_t now = time ((time_t *) 0);
20800 int hour_GMT0, hour_unset;
20801 if (putenv (TZ_GMT0) != 0)
20802 exit (1);
20803 hour_GMT0 = localtime (&now)->tm_hour;
20804 unset_TZ ();
20805 hour_unset = localtime (&now)->tm_hour;
20806 if (putenv (TZ_PST8) != 0)
20807 exit (1);
20808 if (localtime (&now)->tm_hour == hour_GMT0)
20809 exit (1);
20810 unset_TZ ();
20811 if (localtime (&now)->tm_hour != hour_unset)
20812 exit (1);
20813 exit (0);
20815 _ACEOF
20816 rm -f conftest$ac_exeext
20817 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20818 (eval $ac_link) 2>&5
20819 ac_status=$?
20820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20821 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20823 (eval $ac_try) 2>&5
20824 ac_status=$?
20825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20826 (exit $ac_status); }; }; then
20827 emacs_cv_localtime_cache=no
20828 else
20829 echo "$as_me: program exited with status $ac_status" >&5
20830 echo "$as_me: failed program was:" >&5
20831 sed 's/^/| /' conftest.$ac_ext >&5
20833 ( exit $ac_status )
20834 emacs_cv_localtime_cache=yes
20836 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20838 else
20839 # If we lack tzset, report that localtime does not cache TZ,
20840 # since we can't invalidate the cache if we don't have tzset.
20841 emacs_cv_localtime_cache=no
20844 echo "$as_me:$LINENO: result: $emacs_cv_localtime_cache" >&5
20845 echo "${ECHO_T}$emacs_cv_localtime_cache" >&6
20846 if test $emacs_cv_localtime_cache = yes; then
20848 cat >>confdefs.h <<\_ACEOF
20849 #define LOCALTIME_CACHE 1
20850 _ACEOF
20854 if test "x$HAVE_TIMEVAL" = xyes; then
20856 for ac_func in gettimeofday
20858 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20859 echo "$as_me:$LINENO: checking for $ac_func" >&5
20860 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20861 if eval "test \"\${$as_ac_var+set}\" = set"; then
20862 echo $ECHO_N "(cached) $ECHO_C" >&6
20863 else
20864 cat >conftest.$ac_ext <<_ACEOF
20865 /* confdefs.h. */
20866 _ACEOF
20867 cat confdefs.h >>conftest.$ac_ext
20868 cat >>conftest.$ac_ext <<_ACEOF
20869 /* end confdefs.h. */
20870 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20871 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20872 #define $ac_func innocuous_$ac_func
20874 /* System header to define __stub macros and hopefully few prototypes,
20875 which can conflict with char $ac_func (); below.
20876 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20877 <limits.h> exists even on freestanding compilers. */
20879 #ifdef __STDC__
20880 # include <limits.h>
20881 #else
20882 # include <assert.h>
20883 #endif
20885 #undef $ac_func
20887 /* Override any gcc2 internal prototype to avoid an error. */
20888 #ifdef __cplusplus
20889 extern "C"
20891 #endif
20892 /* We use char because int might match the return type of a gcc2
20893 builtin and then its argument prototype would still apply. */
20894 char $ac_func ();
20895 /* The GNU C library defines this for functions which it implements
20896 to always fail with ENOSYS. Some functions are actually named
20897 something starting with __ and the normal name is an alias. */
20898 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20899 choke me
20900 #else
20901 char (*f) () = $ac_func;
20902 #endif
20903 #ifdef __cplusplus
20905 #endif
20908 main ()
20910 return f != $ac_func;
20912 return 0;
20914 _ACEOF
20915 rm -f conftest.$ac_objext conftest$ac_exeext
20916 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20917 (eval $ac_link) 2>conftest.er1
20918 ac_status=$?
20919 grep -v '^ *+' conftest.er1 >conftest.err
20920 rm -f conftest.er1
20921 cat conftest.err >&5
20922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20923 (exit $ac_status); } &&
20924 { ac_try='test -z "$ac_c_werror_flag"
20925 || test ! -s conftest.err'
20926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20927 (eval $ac_try) 2>&5
20928 ac_status=$?
20929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20930 (exit $ac_status); }; } &&
20931 { ac_try='test -s conftest$ac_exeext'
20932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20933 (eval $ac_try) 2>&5
20934 ac_status=$?
20935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20936 (exit $ac_status); }; }; then
20937 eval "$as_ac_var=yes"
20938 else
20939 echo "$as_me: failed program was:" >&5
20940 sed 's/^/| /' conftest.$ac_ext >&5
20942 eval "$as_ac_var=no"
20944 rm -f conftest.err conftest.$ac_objext \
20945 conftest$ac_exeext conftest.$ac_ext
20947 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20948 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20949 if test `eval echo '${'$as_ac_var'}'` = yes; then
20950 cat >>confdefs.h <<_ACEOF
20951 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20952 _ACEOF
20955 done
20957 if test $ac_cv_func_gettimeofday = yes; then
20958 echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments" >&5
20959 echo $ECHO_N "checking whether gettimeofday can accept two arguments... $ECHO_C" >&6
20960 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
20961 echo $ECHO_N "(cached) $ECHO_C" >&6
20962 else
20963 cat >conftest.$ac_ext <<_ACEOF
20964 /* confdefs.h. */
20965 _ACEOF
20966 cat confdefs.h >>conftest.$ac_ext
20967 cat >>conftest.$ac_ext <<_ACEOF
20968 /* end confdefs.h. */
20970 #ifdef TIME_WITH_SYS_TIME
20971 #include <sys/time.h>
20972 #include <time.h>
20973 #else
20974 #ifdef HAVE_SYS_TIME_H
20975 #include <sys/time.h>
20976 #else
20977 #include <time.h>
20978 #endif
20979 #endif
20981 main ()
20983 struct timeval time;
20984 gettimeofday (&time, 0);
20986 return 0;
20988 _ACEOF
20989 rm -f conftest.$ac_objext
20990 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20991 (eval $ac_compile) 2>conftest.er1
20992 ac_status=$?
20993 grep -v '^ *+' conftest.er1 >conftest.err
20994 rm -f conftest.er1
20995 cat conftest.err >&5
20996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20997 (exit $ac_status); } &&
20998 { ac_try='test -z "$ac_c_werror_flag"
20999 || test ! -s conftest.err'
21000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21001 (eval $ac_try) 2>&5
21002 ac_status=$?
21003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21004 (exit $ac_status); }; } &&
21005 { ac_try='test -s conftest.$ac_objext'
21006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21007 (eval $ac_try) 2>&5
21008 ac_status=$?
21009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21010 (exit $ac_status); }; }; then
21011 emacs_cv_gettimeofday_two_arguments=yes
21012 else
21013 echo "$as_me: failed program was:" >&5
21014 sed 's/^/| /' conftest.$ac_ext >&5
21016 emacs_cv_gettimeofday_two_arguments=no
21018 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21020 echo "$as_me:$LINENO: result: $emacs_cv_gettimeofday_two_arguments" >&5
21021 echo "${ECHO_T}$emacs_cv_gettimeofday_two_arguments" >&6
21022 if test $emacs_cv_gettimeofday_two_arguments = no; then
21024 cat >>confdefs.h <<\_ACEOF
21025 #define GETTIMEOFDAY_ONE_ARGUMENT 1
21026 _ACEOF
21032 # This defines (or not) HAVE_TZNAME and HAVE_TM_ZONE.
21033 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
21034 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
21035 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
21036 echo $ECHO_N "(cached) $ECHO_C" >&6
21037 else
21038 cat >conftest.$ac_ext <<_ACEOF
21039 /* confdefs.h. */
21040 _ACEOF
21041 cat confdefs.h >>conftest.$ac_ext
21042 cat >>conftest.$ac_ext <<_ACEOF
21043 /* end confdefs.h. */
21044 #include <sys/types.h>
21045 #include <$ac_cv_struct_tm>
21049 main ()
21051 static struct tm ac_aggr;
21052 if (ac_aggr.tm_zone)
21053 return 0;
21055 return 0;
21057 _ACEOF
21058 rm -f conftest.$ac_objext
21059 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21060 (eval $ac_compile) 2>conftest.er1
21061 ac_status=$?
21062 grep -v '^ *+' conftest.er1 >conftest.err
21063 rm -f conftest.er1
21064 cat conftest.err >&5
21065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21066 (exit $ac_status); } &&
21067 { ac_try='test -z "$ac_c_werror_flag"
21068 || test ! -s conftest.err'
21069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21070 (eval $ac_try) 2>&5
21071 ac_status=$?
21072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21073 (exit $ac_status); }; } &&
21074 { ac_try='test -s conftest.$ac_objext'
21075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21076 (eval $ac_try) 2>&5
21077 ac_status=$?
21078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21079 (exit $ac_status); }; }; then
21080 ac_cv_member_struct_tm_tm_zone=yes
21081 else
21082 echo "$as_me: failed program was:" >&5
21083 sed 's/^/| /' conftest.$ac_ext >&5
21085 cat >conftest.$ac_ext <<_ACEOF
21086 /* confdefs.h. */
21087 _ACEOF
21088 cat confdefs.h >>conftest.$ac_ext
21089 cat >>conftest.$ac_ext <<_ACEOF
21090 /* end confdefs.h. */
21091 #include <sys/types.h>
21092 #include <$ac_cv_struct_tm>
21096 main ()
21098 static struct tm ac_aggr;
21099 if (sizeof ac_aggr.tm_zone)
21100 return 0;
21102 return 0;
21104 _ACEOF
21105 rm -f conftest.$ac_objext
21106 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21107 (eval $ac_compile) 2>conftest.er1
21108 ac_status=$?
21109 grep -v '^ *+' conftest.er1 >conftest.err
21110 rm -f conftest.er1
21111 cat conftest.err >&5
21112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21113 (exit $ac_status); } &&
21114 { ac_try='test -z "$ac_c_werror_flag"
21115 || test ! -s conftest.err'
21116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21117 (eval $ac_try) 2>&5
21118 ac_status=$?
21119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21120 (exit $ac_status); }; } &&
21121 { ac_try='test -s conftest.$ac_objext'
21122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21123 (eval $ac_try) 2>&5
21124 ac_status=$?
21125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21126 (exit $ac_status); }; }; then
21127 ac_cv_member_struct_tm_tm_zone=yes
21128 else
21129 echo "$as_me: failed program was:" >&5
21130 sed 's/^/| /' conftest.$ac_ext >&5
21132 ac_cv_member_struct_tm_tm_zone=no
21134 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21136 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21138 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
21139 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
21140 if test $ac_cv_member_struct_tm_tm_zone = yes; then
21142 cat >>confdefs.h <<_ACEOF
21143 #define HAVE_STRUCT_TM_TM_ZONE 1
21144 _ACEOF
21149 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
21151 cat >>confdefs.h <<\_ACEOF
21152 #define HAVE_TM_ZONE 1
21153 _ACEOF
21155 else
21156 echo "$as_me:$LINENO: checking for tzname" >&5
21157 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
21158 if test "${ac_cv_var_tzname+set}" = set; then
21159 echo $ECHO_N "(cached) $ECHO_C" >&6
21160 else
21161 cat >conftest.$ac_ext <<_ACEOF
21162 /* confdefs.h. */
21163 _ACEOF
21164 cat confdefs.h >>conftest.$ac_ext
21165 cat >>conftest.$ac_ext <<_ACEOF
21166 /* end confdefs.h. */
21167 #include <time.h>
21168 #ifndef tzname /* For SGI. */
21169 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
21170 #endif
21173 main ()
21175 atoi(*tzname);
21177 return 0;
21179 _ACEOF
21180 rm -f conftest.$ac_objext conftest$ac_exeext
21181 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21182 (eval $ac_link) 2>conftest.er1
21183 ac_status=$?
21184 grep -v '^ *+' conftest.er1 >conftest.err
21185 rm -f conftest.er1
21186 cat conftest.err >&5
21187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21188 (exit $ac_status); } &&
21189 { ac_try='test -z "$ac_c_werror_flag"
21190 || test ! -s conftest.err'
21191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21192 (eval $ac_try) 2>&5
21193 ac_status=$?
21194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21195 (exit $ac_status); }; } &&
21196 { ac_try='test -s conftest$ac_exeext'
21197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21198 (eval $ac_try) 2>&5
21199 ac_status=$?
21200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21201 (exit $ac_status); }; }; then
21202 ac_cv_var_tzname=yes
21203 else
21204 echo "$as_me: failed program was:" >&5
21205 sed 's/^/| /' conftest.$ac_ext >&5
21207 ac_cv_var_tzname=no
21209 rm -f conftest.err conftest.$ac_objext \
21210 conftest$ac_exeext conftest.$ac_ext
21212 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
21213 echo "${ECHO_T}$ac_cv_var_tzname" >&6
21214 if test $ac_cv_var_tzname = yes; then
21216 cat >>confdefs.h <<\_ACEOF
21217 #define HAVE_TZNAME 1
21218 _ACEOF
21224 if test "$ac_cv_func_gettimeofday" = yes; then
21225 echo "$as_me:$LINENO: checking for struct timezone" >&5
21226 echo $ECHO_N "checking for struct timezone... $ECHO_C" >&6
21227 if test "${emacs_cv_struct_timezone+set}" = set; then
21228 echo $ECHO_N "(cached) $ECHO_C" >&6
21229 else
21230 cat >conftest.$ac_ext <<_ACEOF
21231 /* confdefs.h. */
21232 _ACEOF
21233 cat confdefs.h >>conftest.$ac_ext
21234 cat >>conftest.$ac_ext <<_ACEOF
21235 /* end confdefs.h. */
21236 #include <sys/time.h>
21238 main ()
21240 struct timezone tz;
21242 return 0;
21244 _ACEOF
21245 rm -f conftest.$ac_objext
21246 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21247 (eval $ac_compile) 2>conftest.er1
21248 ac_status=$?
21249 grep -v '^ *+' conftest.er1 >conftest.err
21250 rm -f conftest.er1
21251 cat conftest.err >&5
21252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21253 (exit $ac_status); } &&
21254 { ac_try='test -z "$ac_c_werror_flag"
21255 || test ! -s conftest.err'
21256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21257 (eval $ac_try) 2>&5
21258 ac_status=$?
21259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21260 (exit $ac_status); }; } &&
21261 { ac_try='test -s conftest.$ac_objext'
21262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21263 (eval $ac_try) 2>&5
21264 ac_status=$?
21265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21266 (exit $ac_status); }; }; then
21267 if test "$cross_compiling" = yes; then
21268 emacs_cv_struct_timezone=yes
21269 else
21270 cat >conftest.$ac_ext <<_ACEOF
21271 /* confdefs.h. */
21272 _ACEOF
21273 cat confdefs.h >>conftest.$ac_ext
21274 cat >>conftest.$ac_ext <<_ACEOF
21275 /* end confdefs.h. */
21277 #ifdef TIME_WITH_SYS_TIME
21278 #include <sys/time.h>
21279 #include <time.h>
21280 #else
21281 #ifdef HAVE_SYS_TIME_H
21282 #include <sys/time.h>
21283 #else
21284 #include <time.h>
21285 #endif
21286 #endif
21287 main () {
21288 struct timeval time;
21289 struct timezone dummy;
21290 exit (gettimeofday (&time, &dummy));
21292 _ACEOF
21293 rm -f conftest$ac_exeext
21294 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21295 (eval $ac_link) 2>&5
21296 ac_status=$?
21297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21298 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21300 (eval $ac_try) 2>&5
21301 ac_status=$?
21302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21303 (exit $ac_status); }; }; then
21304 emacs_cv_struct_timezone=yes
21305 else
21306 echo "$as_me: program exited with status $ac_status" >&5
21307 echo "$as_me: failed program was:" >&5
21308 sed 's/^/| /' conftest.$ac_ext >&5
21310 ( exit $ac_status )
21311 emacs_cv_struct_timezone=no
21313 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21315 else
21316 echo "$as_me: failed program was:" >&5
21317 sed 's/^/| /' conftest.$ac_ext >&5
21319 emacs_cv_struct_timezone=no
21321 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21323 echo "$as_me:$LINENO: result: $emacs_cv_struct_timezone" >&5
21324 echo "${ECHO_T}$emacs_cv_struct_timezone" >&6
21327 ok_so_far=yes
21328 echo "$as_me:$LINENO: checking for socket" >&5
21329 echo $ECHO_N "checking for socket... $ECHO_C" >&6
21330 if test "${ac_cv_func_socket+set}" = set; then
21331 echo $ECHO_N "(cached) $ECHO_C" >&6
21332 else
21333 cat >conftest.$ac_ext <<_ACEOF
21334 /* confdefs.h. */
21335 _ACEOF
21336 cat confdefs.h >>conftest.$ac_ext
21337 cat >>conftest.$ac_ext <<_ACEOF
21338 /* end confdefs.h. */
21339 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
21340 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21341 #define socket innocuous_socket
21343 /* System header to define __stub macros and hopefully few prototypes,
21344 which can conflict with char socket (); below.
21345 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21346 <limits.h> exists even on freestanding compilers. */
21348 #ifdef __STDC__
21349 # include <limits.h>
21350 #else
21351 # include <assert.h>
21352 #endif
21354 #undef socket
21356 /* Override any gcc2 internal prototype to avoid an error. */
21357 #ifdef __cplusplus
21358 extern "C"
21360 #endif
21361 /* We use char because int might match the return type of a gcc2
21362 builtin and then its argument prototype would still apply. */
21363 char socket ();
21364 /* The GNU C library defines this for functions which it implements
21365 to always fail with ENOSYS. Some functions are actually named
21366 something starting with __ and the normal name is an alias. */
21367 #if defined (__stub_socket) || defined (__stub___socket)
21368 choke me
21369 #else
21370 char (*f) () = socket;
21371 #endif
21372 #ifdef __cplusplus
21374 #endif
21377 main ()
21379 return f != socket;
21381 return 0;
21383 _ACEOF
21384 rm -f conftest.$ac_objext conftest$ac_exeext
21385 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21386 (eval $ac_link) 2>conftest.er1
21387 ac_status=$?
21388 grep -v '^ *+' conftest.er1 >conftest.err
21389 rm -f conftest.er1
21390 cat conftest.err >&5
21391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21392 (exit $ac_status); } &&
21393 { ac_try='test -z "$ac_c_werror_flag"
21394 || test ! -s conftest.err'
21395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21396 (eval $ac_try) 2>&5
21397 ac_status=$?
21398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21399 (exit $ac_status); }; } &&
21400 { ac_try='test -s conftest$ac_exeext'
21401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21402 (eval $ac_try) 2>&5
21403 ac_status=$?
21404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21405 (exit $ac_status); }; }; then
21406 ac_cv_func_socket=yes
21407 else
21408 echo "$as_me: failed program was:" >&5
21409 sed 's/^/| /' conftest.$ac_ext >&5
21411 ac_cv_func_socket=no
21413 rm -f conftest.err conftest.$ac_objext \
21414 conftest$ac_exeext conftest.$ac_ext
21416 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
21417 echo "${ECHO_T}$ac_cv_func_socket" >&6
21418 if test $ac_cv_func_socket = yes; then
21420 else
21421 ok_so_far=no
21424 if test $ok_so_far = yes; then
21425 if test "${ac_cv_header_netinet_in_h+set}" = set; then
21426 echo "$as_me:$LINENO: checking for netinet/in.h" >&5
21427 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6
21428 if test "${ac_cv_header_netinet_in_h+set}" = set; then
21429 echo $ECHO_N "(cached) $ECHO_C" >&6
21431 echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
21432 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6
21433 else
21434 # Is the header compilable?
21435 echo "$as_me:$LINENO: checking netinet/in.h usability" >&5
21436 echo $ECHO_N "checking netinet/in.h usability... $ECHO_C" >&6
21437 cat >conftest.$ac_ext <<_ACEOF
21438 /* confdefs.h. */
21439 _ACEOF
21440 cat confdefs.h >>conftest.$ac_ext
21441 cat >>conftest.$ac_ext <<_ACEOF
21442 /* end confdefs.h. */
21443 $ac_includes_default
21444 #include <netinet/in.h>
21445 _ACEOF
21446 rm -f conftest.$ac_objext
21447 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21448 (eval $ac_compile) 2>conftest.er1
21449 ac_status=$?
21450 grep -v '^ *+' conftest.er1 >conftest.err
21451 rm -f conftest.er1
21452 cat conftest.err >&5
21453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21454 (exit $ac_status); } &&
21455 { ac_try='test -z "$ac_c_werror_flag"
21456 || test ! -s conftest.err'
21457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21458 (eval $ac_try) 2>&5
21459 ac_status=$?
21460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21461 (exit $ac_status); }; } &&
21462 { ac_try='test -s conftest.$ac_objext'
21463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21464 (eval $ac_try) 2>&5
21465 ac_status=$?
21466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21467 (exit $ac_status); }; }; then
21468 ac_header_compiler=yes
21469 else
21470 echo "$as_me: failed program was:" >&5
21471 sed 's/^/| /' conftest.$ac_ext >&5
21473 ac_header_compiler=no
21475 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21476 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21477 echo "${ECHO_T}$ac_header_compiler" >&6
21479 # Is the header present?
21480 echo "$as_me:$LINENO: checking netinet/in.h presence" >&5
21481 echo $ECHO_N "checking netinet/in.h presence... $ECHO_C" >&6
21482 cat >conftest.$ac_ext <<_ACEOF
21483 /* confdefs.h. */
21484 _ACEOF
21485 cat confdefs.h >>conftest.$ac_ext
21486 cat >>conftest.$ac_ext <<_ACEOF
21487 /* end confdefs.h. */
21488 #include <netinet/in.h>
21489 _ACEOF
21490 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21491 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21492 ac_status=$?
21493 grep -v '^ *+' conftest.er1 >conftest.err
21494 rm -f conftest.er1
21495 cat conftest.err >&5
21496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21497 (exit $ac_status); } >/dev/null; then
21498 if test -s conftest.err; then
21499 ac_cpp_err=$ac_c_preproc_warn_flag
21500 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21501 else
21502 ac_cpp_err=
21504 else
21505 ac_cpp_err=yes
21507 if test -z "$ac_cpp_err"; then
21508 ac_header_preproc=yes
21509 else
21510 echo "$as_me: failed program was:" >&5
21511 sed 's/^/| /' conftest.$ac_ext >&5
21513 ac_header_preproc=no
21515 rm -f conftest.err conftest.$ac_ext
21516 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21517 echo "${ECHO_T}$ac_header_preproc" >&6
21519 # So? What about this header?
21520 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21521 yes:no: )
21522 { echo "$as_me:$LINENO: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&5
21523 echo "$as_me: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21524 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the compiler's result" >&5
21525 echo "$as_me: WARNING: netinet/in.h: proceeding with the compiler's result" >&2;}
21526 ac_header_preproc=yes
21528 no:yes:* )
21529 { echo "$as_me:$LINENO: WARNING: netinet/in.h: present but cannot be compiled" >&5
21530 echo "$as_me: WARNING: netinet/in.h: present but cannot be compiled" >&2;}
21531 { echo "$as_me:$LINENO: WARNING: netinet/in.h: check for missing prerequisite headers?" >&5
21532 echo "$as_me: WARNING: netinet/in.h: check for missing prerequisite headers?" >&2;}
21533 { echo "$as_me:$LINENO: WARNING: netinet/in.h: see the Autoconf documentation" >&5
21534 echo "$as_me: WARNING: netinet/in.h: see the Autoconf documentation" >&2;}
21535 { echo "$as_me:$LINENO: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&5
21536 echo "$as_me: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&2;}
21537 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5
21538 echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;}
21539 { echo "$as_me:$LINENO: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&5
21540 echo "$as_me: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&2;}
21542 cat <<\_ASBOX
21543 ## ------------------------------------------ ##
21544 ## Report this to the AC_PACKAGE_NAME lists. ##
21545 ## ------------------------------------------ ##
21546 _ASBOX
21548 sed "s/^/$as_me: WARNING: /" >&2
21550 esac
21551 echo "$as_me:$LINENO: checking for netinet/in.h" >&5
21552 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6
21553 if test "${ac_cv_header_netinet_in_h+set}" = set; then
21554 echo $ECHO_N "(cached) $ECHO_C" >&6
21555 else
21556 ac_cv_header_netinet_in_h=$ac_header_preproc
21558 echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
21559 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6
21562 if test $ac_cv_header_netinet_in_h = yes; then
21564 else
21565 ok_so_far=no
21570 if test $ok_so_far = yes; then
21571 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
21572 echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
21573 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6
21574 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
21575 echo $ECHO_N "(cached) $ECHO_C" >&6
21577 echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
21578 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6
21579 else
21580 # Is the header compilable?
21581 echo "$as_me:$LINENO: checking arpa/inet.h usability" >&5
21582 echo $ECHO_N "checking arpa/inet.h usability... $ECHO_C" >&6
21583 cat >conftest.$ac_ext <<_ACEOF
21584 /* confdefs.h. */
21585 _ACEOF
21586 cat confdefs.h >>conftest.$ac_ext
21587 cat >>conftest.$ac_ext <<_ACEOF
21588 /* end confdefs.h. */
21589 $ac_includes_default
21590 #include <arpa/inet.h>
21591 _ACEOF
21592 rm -f conftest.$ac_objext
21593 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21594 (eval $ac_compile) 2>conftest.er1
21595 ac_status=$?
21596 grep -v '^ *+' conftest.er1 >conftest.err
21597 rm -f conftest.er1
21598 cat conftest.err >&5
21599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21600 (exit $ac_status); } &&
21601 { ac_try='test -z "$ac_c_werror_flag"
21602 || test ! -s conftest.err'
21603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21604 (eval $ac_try) 2>&5
21605 ac_status=$?
21606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21607 (exit $ac_status); }; } &&
21608 { ac_try='test -s conftest.$ac_objext'
21609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21610 (eval $ac_try) 2>&5
21611 ac_status=$?
21612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21613 (exit $ac_status); }; }; then
21614 ac_header_compiler=yes
21615 else
21616 echo "$as_me: failed program was:" >&5
21617 sed 's/^/| /' conftest.$ac_ext >&5
21619 ac_header_compiler=no
21621 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21622 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21623 echo "${ECHO_T}$ac_header_compiler" >&6
21625 # Is the header present?
21626 echo "$as_me:$LINENO: checking arpa/inet.h presence" >&5
21627 echo $ECHO_N "checking arpa/inet.h presence... $ECHO_C" >&6
21628 cat >conftest.$ac_ext <<_ACEOF
21629 /* confdefs.h. */
21630 _ACEOF
21631 cat confdefs.h >>conftest.$ac_ext
21632 cat >>conftest.$ac_ext <<_ACEOF
21633 /* end confdefs.h. */
21634 #include <arpa/inet.h>
21635 _ACEOF
21636 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21637 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21638 ac_status=$?
21639 grep -v '^ *+' conftest.er1 >conftest.err
21640 rm -f conftest.er1
21641 cat conftest.err >&5
21642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21643 (exit $ac_status); } >/dev/null; then
21644 if test -s conftest.err; then
21645 ac_cpp_err=$ac_c_preproc_warn_flag
21646 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21647 else
21648 ac_cpp_err=
21650 else
21651 ac_cpp_err=yes
21653 if test -z "$ac_cpp_err"; then
21654 ac_header_preproc=yes
21655 else
21656 echo "$as_me: failed program was:" >&5
21657 sed 's/^/| /' conftest.$ac_ext >&5
21659 ac_header_preproc=no
21661 rm -f conftest.err conftest.$ac_ext
21662 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21663 echo "${ECHO_T}$ac_header_preproc" >&6
21665 # So? What about this header?
21666 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21667 yes:no: )
21668 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&5
21669 echo "$as_me: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21670 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the compiler's result" >&5
21671 echo "$as_me: WARNING: arpa/inet.h: proceeding with the compiler's result" >&2;}
21672 ac_header_preproc=yes
21674 no:yes:* )
21675 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: present but cannot be compiled" >&5
21676 echo "$as_me: WARNING: arpa/inet.h: present but cannot be compiled" >&2;}
21677 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&5
21678 echo "$as_me: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&2;}
21679 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: see the Autoconf documentation" >&5
21680 echo "$as_me: WARNING: arpa/inet.h: see the Autoconf documentation" >&2;}
21681 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&5
21682 echo "$as_me: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&2;}
21683 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5
21684 echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;}
21685 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&5
21686 echo "$as_me: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&2;}
21688 cat <<\_ASBOX
21689 ## ------------------------------------------ ##
21690 ## Report this to the AC_PACKAGE_NAME lists. ##
21691 ## ------------------------------------------ ##
21692 _ASBOX
21694 sed "s/^/$as_me: WARNING: /" >&2
21696 esac
21697 echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
21698 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6
21699 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
21700 echo $ECHO_N "(cached) $ECHO_C" >&6
21701 else
21702 ac_cv_header_arpa_inet_h=$ac_header_preproc
21704 echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
21705 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6
21708 if test $ac_cv_header_arpa_inet_h = yes; then
21710 else
21711 ok_so_far=no
21716 if test $ok_so_far = yes; then
21718 cat >>confdefs.h <<\_ACEOF
21719 #define HAVE_INET_SOCKETS 1
21720 _ACEOF
21725 for ac_header in sys/ioctl.h
21727 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21728 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21729 echo "$as_me:$LINENO: checking for $ac_header" >&5
21730 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21731 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21732 echo $ECHO_N "(cached) $ECHO_C" >&6
21734 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21735 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21736 else
21737 # Is the header compilable?
21738 echo "$as_me:$LINENO: checking $ac_header usability" >&5
21739 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21740 cat >conftest.$ac_ext <<_ACEOF
21741 /* confdefs.h. */
21742 _ACEOF
21743 cat confdefs.h >>conftest.$ac_ext
21744 cat >>conftest.$ac_ext <<_ACEOF
21745 /* end confdefs.h. */
21746 $ac_includes_default
21747 #include <$ac_header>
21748 _ACEOF
21749 rm -f conftest.$ac_objext
21750 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21751 (eval $ac_compile) 2>conftest.er1
21752 ac_status=$?
21753 grep -v '^ *+' conftest.er1 >conftest.err
21754 rm -f conftest.er1
21755 cat conftest.err >&5
21756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21757 (exit $ac_status); } &&
21758 { ac_try='test -z "$ac_c_werror_flag"
21759 || test ! -s conftest.err'
21760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21761 (eval $ac_try) 2>&5
21762 ac_status=$?
21763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21764 (exit $ac_status); }; } &&
21765 { ac_try='test -s conftest.$ac_objext'
21766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21767 (eval $ac_try) 2>&5
21768 ac_status=$?
21769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21770 (exit $ac_status); }; }; then
21771 ac_header_compiler=yes
21772 else
21773 echo "$as_me: failed program was:" >&5
21774 sed 's/^/| /' conftest.$ac_ext >&5
21776 ac_header_compiler=no
21778 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21779 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21780 echo "${ECHO_T}$ac_header_compiler" >&6
21782 # Is the header present?
21783 echo "$as_me:$LINENO: checking $ac_header presence" >&5
21784 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21785 cat >conftest.$ac_ext <<_ACEOF
21786 /* confdefs.h. */
21787 _ACEOF
21788 cat confdefs.h >>conftest.$ac_ext
21789 cat >>conftest.$ac_ext <<_ACEOF
21790 /* end confdefs.h. */
21791 #include <$ac_header>
21792 _ACEOF
21793 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21794 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21795 ac_status=$?
21796 grep -v '^ *+' conftest.er1 >conftest.err
21797 rm -f conftest.er1
21798 cat conftest.err >&5
21799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21800 (exit $ac_status); } >/dev/null; then
21801 if test -s conftest.err; then
21802 ac_cpp_err=$ac_c_preproc_warn_flag
21803 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21804 else
21805 ac_cpp_err=
21807 else
21808 ac_cpp_err=yes
21810 if test -z "$ac_cpp_err"; then
21811 ac_header_preproc=yes
21812 else
21813 echo "$as_me: failed program was:" >&5
21814 sed 's/^/| /' conftest.$ac_ext >&5
21816 ac_header_preproc=no
21818 rm -f conftest.err conftest.$ac_ext
21819 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21820 echo "${ECHO_T}$ac_header_preproc" >&6
21822 # So? What about this header?
21823 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21824 yes:no: )
21825 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21826 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21827 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21828 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21829 ac_header_preproc=yes
21831 no:yes:* )
21832 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21833 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21834 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21835 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21836 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21837 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21838 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21839 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21840 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21841 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21842 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21843 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21845 cat <<\_ASBOX
21846 ## ------------------------------------------ ##
21847 ## Report this to the AC_PACKAGE_NAME lists. ##
21848 ## ------------------------------------------ ##
21849 _ASBOX
21851 sed "s/^/$as_me: WARNING: /" >&2
21853 esac
21854 echo "$as_me:$LINENO: checking for $ac_header" >&5
21855 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21856 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21857 echo $ECHO_N "(cached) $ECHO_C" >&6
21858 else
21859 eval "$as_ac_Header=\$ac_header_preproc"
21861 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21862 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21865 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21866 cat >>confdefs.h <<_ACEOF
21867 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21868 _ACEOF
21872 done
21875 if test -f /usr/lpp/X11/bin/smt.exp; then
21877 cat >>confdefs.h <<\_ACEOF
21878 #define HAVE_AIX_SMT_EXP 1
21879 _ACEOF
21883 echo "$as_me:$LINENO: checking whether system supports dynamic ptys" >&5
21884 echo $ECHO_N "checking whether system supports dynamic ptys... $ECHO_C" >&6
21885 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
21886 echo "$as_me:$LINENO: result: yes" >&5
21887 echo "${ECHO_T}yes" >&6
21889 cat >>confdefs.h <<\_ACEOF
21890 #define HAVE_DEV_PTMX 1
21891 _ACEOF
21893 else
21894 echo "$as_me:$LINENO: result: no" >&5
21895 echo "${ECHO_T}no" >&6
21898 echo "$as_me:$LINENO: checking for pid_t" >&5
21899 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
21900 if test "${ac_cv_type_pid_t+set}" = set; then
21901 echo $ECHO_N "(cached) $ECHO_C" >&6
21902 else
21903 cat >conftest.$ac_ext <<_ACEOF
21904 /* confdefs.h. */
21905 _ACEOF
21906 cat confdefs.h >>conftest.$ac_ext
21907 cat >>conftest.$ac_ext <<_ACEOF
21908 /* end confdefs.h. */
21909 $ac_includes_default
21911 main ()
21913 if ((pid_t *) 0)
21914 return 0;
21915 if (sizeof (pid_t))
21916 return 0;
21918 return 0;
21920 _ACEOF
21921 rm -f conftest.$ac_objext
21922 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21923 (eval $ac_compile) 2>conftest.er1
21924 ac_status=$?
21925 grep -v '^ *+' conftest.er1 >conftest.err
21926 rm -f conftest.er1
21927 cat conftest.err >&5
21928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21929 (exit $ac_status); } &&
21930 { ac_try='test -z "$ac_c_werror_flag"
21931 || test ! -s conftest.err'
21932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21933 (eval $ac_try) 2>&5
21934 ac_status=$?
21935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21936 (exit $ac_status); }; } &&
21937 { ac_try='test -s conftest.$ac_objext'
21938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21939 (eval $ac_try) 2>&5
21940 ac_status=$?
21941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21942 (exit $ac_status); }; }; then
21943 ac_cv_type_pid_t=yes
21944 else
21945 echo "$as_me: failed program was:" >&5
21946 sed 's/^/| /' conftest.$ac_ext >&5
21948 ac_cv_type_pid_t=no
21950 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21952 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
21953 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
21954 if test $ac_cv_type_pid_t = yes; then
21956 else
21958 cat >>confdefs.h <<_ACEOF
21959 #define pid_t int
21960 _ACEOF
21966 for ac_header in unistd.h vfork.h
21968 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21969 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21970 echo "$as_me:$LINENO: checking for $ac_header" >&5
21971 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21972 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21973 echo $ECHO_N "(cached) $ECHO_C" >&6
21975 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21976 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21977 else
21978 # Is the header compilable?
21979 echo "$as_me:$LINENO: checking $ac_header usability" >&5
21980 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21981 cat >conftest.$ac_ext <<_ACEOF
21982 /* confdefs.h. */
21983 _ACEOF
21984 cat confdefs.h >>conftest.$ac_ext
21985 cat >>conftest.$ac_ext <<_ACEOF
21986 /* end confdefs.h. */
21987 $ac_includes_default
21988 #include <$ac_header>
21989 _ACEOF
21990 rm -f conftest.$ac_objext
21991 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21992 (eval $ac_compile) 2>conftest.er1
21993 ac_status=$?
21994 grep -v '^ *+' conftest.er1 >conftest.err
21995 rm -f conftest.er1
21996 cat conftest.err >&5
21997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21998 (exit $ac_status); } &&
21999 { ac_try='test -z "$ac_c_werror_flag"
22000 || test ! -s conftest.err'
22001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22002 (eval $ac_try) 2>&5
22003 ac_status=$?
22004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22005 (exit $ac_status); }; } &&
22006 { ac_try='test -s conftest.$ac_objext'
22007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22008 (eval $ac_try) 2>&5
22009 ac_status=$?
22010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22011 (exit $ac_status); }; }; then
22012 ac_header_compiler=yes
22013 else
22014 echo "$as_me: failed program was:" >&5
22015 sed 's/^/| /' conftest.$ac_ext >&5
22017 ac_header_compiler=no
22019 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22020 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22021 echo "${ECHO_T}$ac_header_compiler" >&6
22023 # Is the header present?
22024 echo "$as_me:$LINENO: checking $ac_header presence" >&5
22025 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
22026 cat >conftest.$ac_ext <<_ACEOF
22027 /* confdefs.h. */
22028 _ACEOF
22029 cat confdefs.h >>conftest.$ac_ext
22030 cat >>conftest.$ac_ext <<_ACEOF
22031 /* end confdefs.h. */
22032 #include <$ac_header>
22033 _ACEOF
22034 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22035 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22036 ac_status=$?
22037 grep -v '^ *+' conftest.er1 >conftest.err
22038 rm -f conftest.er1
22039 cat conftest.err >&5
22040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22041 (exit $ac_status); } >/dev/null; then
22042 if test -s conftest.err; then
22043 ac_cpp_err=$ac_c_preproc_warn_flag
22044 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22045 else
22046 ac_cpp_err=
22048 else
22049 ac_cpp_err=yes
22051 if test -z "$ac_cpp_err"; then
22052 ac_header_preproc=yes
22053 else
22054 echo "$as_me: failed program was:" >&5
22055 sed 's/^/| /' conftest.$ac_ext >&5
22057 ac_header_preproc=no
22059 rm -f conftest.err conftest.$ac_ext
22060 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22061 echo "${ECHO_T}$ac_header_preproc" >&6
22063 # So? What about this header?
22064 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22065 yes:no: )
22066 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22067 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22068 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22069 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22070 ac_header_preproc=yes
22072 no:yes:* )
22073 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22074 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22075 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22076 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22077 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22078 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22079 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22080 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22081 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22082 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22083 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22084 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22086 cat <<\_ASBOX
22087 ## ------------------------------------------ ##
22088 ## Report this to the AC_PACKAGE_NAME lists. ##
22089 ## ------------------------------------------ ##
22090 _ASBOX
22092 sed "s/^/$as_me: WARNING: /" >&2
22094 esac
22095 echo "$as_me:$LINENO: checking for $ac_header" >&5
22096 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22097 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22098 echo $ECHO_N "(cached) $ECHO_C" >&6
22099 else
22100 eval "$as_ac_Header=\$ac_header_preproc"
22102 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22103 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22106 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22107 cat >>confdefs.h <<_ACEOF
22108 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22109 _ACEOF
22113 done
22117 for ac_func in fork vfork
22119 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22120 echo "$as_me:$LINENO: checking for $ac_func" >&5
22121 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22122 if eval "test \"\${$as_ac_var+set}\" = set"; then
22123 echo $ECHO_N "(cached) $ECHO_C" >&6
22124 else
22125 cat >conftest.$ac_ext <<_ACEOF
22126 /* confdefs.h. */
22127 _ACEOF
22128 cat confdefs.h >>conftest.$ac_ext
22129 cat >>conftest.$ac_ext <<_ACEOF
22130 /* end confdefs.h. */
22131 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22132 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22133 #define $ac_func innocuous_$ac_func
22135 /* System header to define __stub macros and hopefully few prototypes,
22136 which can conflict with char $ac_func (); below.
22137 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22138 <limits.h> exists even on freestanding compilers. */
22140 #ifdef __STDC__
22141 # include <limits.h>
22142 #else
22143 # include <assert.h>
22144 #endif
22146 #undef $ac_func
22148 /* Override any gcc2 internal prototype to avoid an error. */
22149 #ifdef __cplusplus
22150 extern "C"
22152 #endif
22153 /* We use char because int might match the return type of a gcc2
22154 builtin and then its argument prototype would still apply. */
22155 char $ac_func ();
22156 /* The GNU C library defines this for functions which it implements
22157 to always fail with ENOSYS. Some functions are actually named
22158 something starting with __ and the normal name is an alias. */
22159 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22160 choke me
22161 #else
22162 char (*f) () = $ac_func;
22163 #endif
22164 #ifdef __cplusplus
22166 #endif
22169 main ()
22171 return f != $ac_func;
22173 return 0;
22175 _ACEOF
22176 rm -f conftest.$ac_objext conftest$ac_exeext
22177 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22178 (eval $ac_link) 2>conftest.er1
22179 ac_status=$?
22180 grep -v '^ *+' conftest.er1 >conftest.err
22181 rm -f conftest.er1
22182 cat conftest.err >&5
22183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22184 (exit $ac_status); } &&
22185 { ac_try='test -z "$ac_c_werror_flag"
22186 || test ! -s conftest.err'
22187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22188 (eval $ac_try) 2>&5
22189 ac_status=$?
22190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22191 (exit $ac_status); }; } &&
22192 { ac_try='test -s conftest$ac_exeext'
22193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22194 (eval $ac_try) 2>&5
22195 ac_status=$?
22196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22197 (exit $ac_status); }; }; then
22198 eval "$as_ac_var=yes"
22199 else
22200 echo "$as_me: failed program was:" >&5
22201 sed 's/^/| /' conftest.$ac_ext >&5
22203 eval "$as_ac_var=no"
22205 rm -f conftest.err conftest.$ac_objext \
22206 conftest$ac_exeext conftest.$ac_ext
22208 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22209 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22210 if test `eval echo '${'$as_ac_var'}'` = yes; then
22211 cat >>confdefs.h <<_ACEOF
22212 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22213 _ACEOF
22216 done
22218 if test "x$ac_cv_func_fork" = xyes; then
22219 echo "$as_me:$LINENO: checking for working fork" >&5
22220 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
22221 if test "${ac_cv_func_fork_works+set}" = set; then
22222 echo $ECHO_N "(cached) $ECHO_C" >&6
22223 else
22224 if test "$cross_compiling" = yes; then
22225 ac_cv_func_fork_works=cross
22226 else
22227 cat >conftest.$ac_ext <<_ACEOF
22228 /* By Ruediger Kuhlmann. */
22229 #include <sys/types.h>
22230 #if HAVE_UNISTD_H
22231 # include <unistd.h>
22232 #endif
22233 /* Some systems only have a dummy stub for fork() */
22234 int main ()
22236 if (fork() < 0)
22237 exit (1);
22238 exit (0);
22240 _ACEOF
22241 rm -f conftest$ac_exeext
22242 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22243 (eval $ac_link) 2>&5
22244 ac_status=$?
22245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22246 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22248 (eval $ac_try) 2>&5
22249 ac_status=$?
22250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22251 (exit $ac_status); }; }; then
22252 ac_cv_func_fork_works=yes
22253 else
22254 echo "$as_me: program exited with status $ac_status" >&5
22255 echo "$as_me: failed program was:" >&5
22256 sed 's/^/| /' conftest.$ac_ext >&5
22258 ( exit $ac_status )
22259 ac_cv_func_fork_works=no
22261 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22264 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
22265 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
22267 else
22268 ac_cv_func_fork_works=$ac_cv_func_fork
22270 if test "x$ac_cv_func_fork_works" = xcross; then
22271 case $host in
22272 *-*-amigaos* | *-*-msdosdjgpp*)
22273 # Override, as these systems have only a dummy fork() stub
22274 ac_cv_func_fork_works=no
22277 ac_cv_func_fork_works=yes
22279 esac
22280 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
22281 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
22283 ac_cv_func_vfork_works=$ac_cv_func_vfork
22284 if test "x$ac_cv_func_vfork" = xyes; then
22285 echo "$as_me:$LINENO: checking for working vfork" >&5
22286 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
22287 if test "${ac_cv_func_vfork_works+set}" = set; then
22288 echo $ECHO_N "(cached) $ECHO_C" >&6
22289 else
22290 if test "$cross_compiling" = yes; then
22291 ac_cv_func_vfork_works=cross
22292 else
22293 cat >conftest.$ac_ext <<_ACEOF
22294 /* confdefs.h. */
22295 _ACEOF
22296 cat confdefs.h >>conftest.$ac_ext
22297 cat >>conftest.$ac_ext <<_ACEOF
22298 /* end confdefs.h. */
22299 /* Thanks to Paul Eggert for this test. */
22300 #include <stdio.h>
22301 #include <stdlib.h>
22302 #include <sys/types.h>
22303 #include <sys/stat.h>
22304 #include <sys/wait.h>
22305 #if HAVE_UNISTD_H
22306 # include <unistd.h>
22307 #endif
22308 #if HAVE_VFORK_H
22309 # include <vfork.h>
22310 #endif
22311 /* On some sparc systems, changes by the child to local and incoming
22312 argument registers are propagated back to the parent. The compiler
22313 is told about this with #include <vfork.h>, but some compilers
22314 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
22315 static variable whose address is put into a register that is
22316 clobbered by the vfork. */
22317 static void
22318 #ifdef __cplusplus
22319 sparc_address_test (int arg)
22320 # else
22321 sparc_address_test (arg) int arg;
22322 #endif
22324 static pid_t child;
22325 if (!child) {
22326 child = vfork ();
22327 if (child < 0) {
22328 perror ("vfork");
22329 _exit(2);
22331 if (!child) {
22332 arg = getpid();
22333 write(-1, "", 0);
22334 _exit (arg);
22340 main ()
22342 pid_t parent = getpid ();
22343 pid_t child;
22345 sparc_address_test (0);
22347 child = vfork ();
22349 if (child == 0) {
22350 /* Here is another test for sparc vfork register problems. This
22351 test uses lots of local variables, at least as many local
22352 variables as main has allocated so far including compiler
22353 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
22354 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
22355 reuse the register of parent for one of the local variables,
22356 since it will think that parent can't possibly be used any more
22357 in this routine. Assigning to the local variable will thus
22358 munge parent in the parent process. */
22359 pid_t
22360 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
22361 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
22362 /* Convince the compiler that p..p7 are live; otherwise, it might
22363 use the same hardware register for all 8 local variables. */
22364 if (p != p1 || p != p2 || p != p3 || p != p4
22365 || p != p5 || p != p6 || p != p7)
22366 _exit(1);
22368 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
22369 from child file descriptors. If the child closes a descriptor
22370 before it execs or exits, this munges the parent's descriptor
22371 as well. Test for this by closing stdout in the child. */
22372 _exit(close(fileno(stdout)) != 0);
22373 } else {
22374 int status;
22375 struct stat st;
22377 while (wait(&status) != child)
22379 exit(
22380 /* Was there some problem with vforking? */
22381 child < 0
22383 /* Did the child fail? (This shouldn't happen.) */
22384 || status
22386 /* Did the vfork/compiler bug occur? */
22387 || parent != getpid()
22389 /* Did the file descriptor bug occur? */
22390 || fstat(fileno(stdout), &st) != 0
22394 _ACEOF
22395 rm -f conftest$ac_exeext
22396 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22397 (eval $ac_link) 2>&5
22398 ac_status=$?
22399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22400 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22402 (eval $ac_try) 2>&5
22403 ac_status=$?
22404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22405 (exit $ac_status); }; }; then
22406 ac_cv_func_vfork_works=yes
22407 else
22408 echo "$as_me: program exited with status $ac_status" >&5
22409 echo "$as_me: failed program was:" >&5
22410 sed 's/^/| /' conftest.$ac_ext >&5
22412 ( exit $ac_status )
22413 ac_cv_func_vfork_works=no
22415 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22418 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
22419 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
22422 if test "x$ac_cv_func_fork_works" = xcross; then
22423 ac_cv_func_vfork_works=$ac_cv_func_vfork
22424 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
22425 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
22428 if test "x$ac_cv_func_vfork_works" = xyes; then
22430 cat >>confdefs.h <<\_ACEOF
22431 #define HAVE_WORKING_VFORK 1
22432 _ACEOF
22434 else
22436 cat >>confdefs.h <<\_ACEOF
22437 #define vfork fork
22438 _ACEOF
22441 if test "x$ac_cv_func_fork_works" = xyes; then
22443 cat >>confdefs.h <<\_ACEOF
22444 #define HAVE_WORKING_FORK 1
22445 _ACEOF
22450 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
22451 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
22452 if test "${emacs_cv_langinfo_codeset+set}" = set; then
22453 echo $ECHO_N "(cached) $ECHO_C" >&6
22454 else
22455 cat >conftest.$ac_ext <<_ACEOF
22456 /* confdefs.h. */
22457 _ACEOF
22458 cat confdefs.h >>conftest.$ac_ext
22459 cat >>conftest.$ac_ext <<_ACEOF
22460 /* end confdefs.h. */
22461 #include <langinfo.h>
22463 main ()
22465 char* cs = nl_langinfo(CODESET);
22467 return 0;
22469 _ACEOF
22470 rm -f conftest.$ac_objext conftest$ac_exeext
22471 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22472 (eval $ac_link) 2>conftest.er1
22473 ac_status=$?
22474 grep -v '^ *+' conftest.er1 >conftest.err
22475 rm -f conftest.er1
22476 cat conftest.err >&5
22477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22478 (exit $ac_status); } &&
22479 { ac_try='test -z "$ac_c_werror_flag"
22480 || test ! -s conftest.err'
22481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22482 (eval $ac_try) 2>&5
22483 ac_status=$?
22484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22485 (exit $ac_status); }; } &&
22486 { ac_try='test -s conftest$ac_exeext'
22487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22488 (eval $ac_try) 2>&5
22489 ac_status=$?
22490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22491 (exit $ac_status); }; }; then
22492 emacs_cv_langinfo_codeset=yes
22493 else
22494 echo "$as_me: failed program was:" >&5
22495 sed 's/^/| /' conftest.$ac_ext >&5
22497 emacs_cv_langinfo_codeset=no
22499 rm -f conftest.err conftest.$ac_objext \
22500 conftest$ac_exeext conftest.$ac_ext
22503 echo "$as_me:$LINENO: result: $emacs_cv_langinfo_codeset" >&5
22504 echo "${ECHO_T}$emacs_cv_langinfo_codeset" >&6
22505 if test $emacs_cv_langinfo_codeset = yes; then
22507 cat >>confdefs.h <<\_ACEOF
22508 #define HAVE_LANGINFO_CODESET 1
22509 _ACEOF
22513 echo "$as_me:$LINENO: checking for size_t" >&5
22514 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
22515 if test "${ac_cv_type_size_t+set}" = set; then
22516 echo $ECHO_N "(cached) $ECHO_C" >&6
22517 else
22518 cat >conftest.$ac_ext <<_ACEOF
22519 /* confdefs.h. */
22520 _ACEOF
22521 cat confdefs.h >>conftest.$ac_ext
22522 cat >>conftest.$ac_ext <<_ACEOF
22523 /* end confdefs.h. */
22524 $ac_includes_default
22526 main ()
22528 if ((size_t *) 0)
22529 return 0;
22530 if (sizeof (size_t))
22531 return 0;
22533 return 0;
22535 _ACEOF
22536 rm -f conftest.$ac_objext
22537 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22538 (eval $ac_compile) 2>conftest.er1
22539 ac_status=$?
22540 grep -v '^ *+' conftest.er1 >conftest.err
22541 rm -f conftest.er1
22542 cat conftest.err >&5
22543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22544 (exit $ac_status); } &&
22545 { ac_try='test -z "$ac_c_werror_flag"
22546 || test ! -s conftest.err'
22547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22548 (eval $ac_try) 2>&5
22549 ac_status=$?
22550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22551 (exit $ac_status); }; } &&
22552 { ac_try='test -s conftest.$ac_objext'
22553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22554 (eval $ac_try) 2>&5
22555 ac_status=$?
22556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22557 (exit $ac_status); }; }; then
22558 ac_cv_type_size_t=yes
22559 else
22560 echo "$as_me: failed program was:" >&5
22561 sed 's/^/| /' conftest.$ac_ext >&5
22563 ac_cv_type_size_t=no
22565 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22567 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
22568 echo "${ECHO_T}$ac_cv_type_size_t" >&6
22569 if test $ac_cv_type_size_t = yes; then
22571 cat >>confdefs.h <<_ACEOF
22572 #define HAVE_SIZE_T 1
22573 _ACEOF
22579 echo "$as_me:$LINENO: checking for mbstate_t" >&5
22580 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
22581 if test "${ac_cv_type_mbstate_t+set}" = set; then
22582 echo $ECHO_N "(cached) $ECHO_C" >&6
22583 else
22584 cat >conftest.$ac_ext <<_ACEOF
22585 /* confdefs.h. */
22586 _ACEOF
22587 cat confdefs.h >>conftest.$ac_ext
22588 cat >>conftest.$ac_ext <<_ACEOF
22589 /* end confdefs.h. */
22590 $ac_includes_default
22591 # include <wchar.h>
22593 main ()
22595 mbstate_t x; return sizeof x;
22597 return 0;
22599 _ACEOF
22600 rm -f conftest.$ac_objext
22601 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22602 (eval $ac_compile) 2>conftest.er1
22603 ac_status=$?
22604 grep -v '^ *+' conftest.er1 >conftest.err
22605 rm -f conftest.er1
22606 cat conftest.err >&5
22607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22608 (exit $ac_status); } &&
22609 { ac_try='test -z "$ac_c_werror_flag"
22610 || test ! -s conftest.err'
22611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22612 (eval $ac_try) 2>&5
22613 ac_status=$?
22614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22615 (exit $ac_status); }; } &&
22616 { ac_try='test -s conftest.$ac_objext'
22617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22618 (eval $ac_try) 2>&5
22619 ac_status=$?
22620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22621 (exit $ac_status); }; }; then
22622 ac_cv_type_mbstate_t=yes
22623 else
22624 echo "$as_me: failed program was:" >&5
22625 sed 's/^/| /' conftest.$ac_ext >&5
22627 ac_cv_type_mbstate_t=no
22629 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22631 echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
22632 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6
22633 if test $ac_cv_type_mbstate_t = yes; then
22635 cat >>confdefs.h <<\_ACEOF
22636 #define HAVE_MBSTATE_T 1
22637 _ACEOF
22639 else
22641 cat >>confdefs.h <<\_ACEOF
22642 #define mbstate_t int
22643 _ACEOF
22647 echo "$as_me:$LINENO: checking for C restrict keyword" >&5
22648 echo $ECHO_N "checking for C restrict keyword... $ECHO_C" >&6
22649 if test "${emacs_cv_c_restrict+set}" = set; then
22650 echo $ECHO_N "(cached) $ECHO_C" >&6
22651 else
22652 cat >conftest.$ac_ext <<_ACEOF
22653 /* confdefs.h. */
22654 _ACEOF
22655 cat confdefs.h >>conftest.$ac_ext
22656 cat >>conftest.$ac_ext <<_ACEOF
22657 /* end confdefs.h. */
22658 void fred (int *restrict x);
22660 main ()
22664 return 0;
22666 _ACEOF
22667 rm -f conftest.$ac_objext
22668 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22669 (eval $ac_compile) 2>conftest.er1
22670 ac_status=$?
22671 grep -v '^ *+' conftest.er1 >conftest.err
22672 rm -f conftest.er1
22673 cat conftest.err >&5
22674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22675 (exit $ac_status); } &&
22676 { ac_try='test -z "$ac_c_werror_flag"
22677 || test ! -s conftest.err'
22678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22679 (eval $ac_try) 2>&5
22680 ac_status=$?
22681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22682 (exit $ac_status); }; } &&
22683 { ac_try='test -s conftest.$ac_objext'
22684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22685 (eval $ac_try) 2>&5
22686 ac_status=$?
22687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22688 (exit $ac_status); }; }; then
22689 emacs_cv_c_restrict=yes
22690 else
22691 echo "$as_me: failed program was:" >&5
22692 sed 's/^/| /' conftest.$ac_ext >&5
22694 cat >conftest.$ac_ext <<_ACEOF
22695 /* confdefs.h. */
22696 _ACEOF
22697 cat confdefs.h >>conftest.$ac_ext
22698 cat >>conftest.$ac_ext <<_ACEOF
22699 /* end confdefs.h. */
22700 void fred (int *__restrict x);
22702 main ()
22706 return 0;
22708 _ACEOF
22709 rm -f conftest.$ac_objext
22710 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22711 (eval $ac_compile) 2>conftest.er1
22712 ac_status=$?
22713 grep -v '^ *+' conftest.er1 >conftest.err
22714 rm -f conftest.er1
22715 cat conftest.err >&5
22716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22717 (exit $ac_status); } &&
22718 { ac_try='test -z "$ac_c_werror_flag"
22719 || test ! -s conftest.err'
22720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22721 (eval $ac_try) 2>&5
22722 ac_status=$?
22723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22724 (exit $ac_status); }; } &&
22725 { ac_try='test -s conftest.$ac_objext'
22726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22727 (eval $ac_try) 2>&5
22728 ac_status=$?
22729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22730 (exit $ac_status); }; }; then
22731 emacs_cv_c_restrict=__restrict
22732 else
22733 echo "$as_me: failed program was:" >&5
22734 sed 's/^/| /' conftest.$ac_ext >&5
22736 emacs_cv_c_restrict=no
22738 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22740 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22742 echo "$as_me:$LINENO: result: $emacs_cv_c_restrict" >&5
22743 echo "${ECHO_T}$emacs_cv_c_restrict" >&6
22744 case "$emacs_cv_c_restrict" in
22745 yes) emacs_restrict=restrict;;
22746 no) emacs_restrict="";;
22747 *) emacs_restrict="$emacs_cv_c_restrict";;
22748 esac
22749 if test "$emacs_restrict" != __restrict; then
22751 cat >>confdefs.h <<_ACEOF
22752 #define __restrict $emacs_restrict
22753 _ACEOF
22757 echo "$as_me:$LINENO: checking for C restricted array declarations" >&5
22758 echo $ECHO_N "checking for C restricted array declarations... $ECHO_C" >&6
22759 if test "${emacs_cv_c_restrict_arr+set}" = set; then
22760 echo $ECHO_N "(cached) $ECHO_C" >&6
22761 else
22762 cat >conftest.$ac_ext <<_ACEOF
22763 /* confdefs.h. */
22764 _ACEOF
22765 cat confdefs.h >>conftest.$ac_ext
22766 cat >>conftest.$ac_ext <<_ACEOF
22767 /* end confdefs.h. */
22768 void fred (int x[__restrict]);
22770 main ()
22774 return 0;
22776 _ACEOF
22777 rm -f conftest.$ac_objext
22778 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22779 (eval $ac_compile) 2>conftest.er1
22780 ac_status=$?
22781 grep -v '^ *+' conftest.er1 >conftest.err
22782 rm -f conftest.er1
22783 cat conftest.err >&5
22784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22785 (exit $ac_status); } &&
22786 { ac_try='test -z "$ac_c_werror_flag"
22787 || test ! -s conftest.err'
22788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22789 (eval $ac_try) 2>&5
22790 ac_status=$?
22791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22792 (exit $ac_status); }; } &&
22793 { ac_try='test -s conftest.$ac_objext'
22794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22795 (eval $ac_try) 2>&5
22796 ac_status=$?
22797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22798 (exit $ac_status); }; }; then
22799 emacs_cv_c_restrict_arr=yes
22800 else
22801 echo "$as_me: failed program was:" >&5
22802 sed 's/^/| /' conftest.$ac_ext >&5
22804 emacs_cv_c_restrict_arr=no
22806 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22808 echo "$as_me:$LINENO: result: $emacs_cv_c_restrict_arr" >&5
22809 echo "${ECHO_T}$emacs_cv_c_restrict_arr" >&6
22810 if test "$emacs_cv_c_restrict_arr" = yes; then
22812 cat >>confdefs.h <<\_ACEOF
22813 #define __restrict_arr __restrict
22814 _ACEOF
22820 # Set up the CFLAGS for real compilation, so we can substitute it.
22821 CFLAGS="$REAL_CFLAGS"
22822 CPPFLAGS="$REAL_CPPFLAGS"
22824 #### Find out which version of Emacs this is.
22825 version=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
22826 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`
22827 if test x"${version}" = x; then
22828 { { echo "$as_me:$LINENO: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&5
22829 echo "$as_me: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&2;}
22830 { (exit 1); exit 1; }; }
22833 ### Specify what sort of things we'll be editing into Makefile and config.h.
22834 ### Use configuration here uncanonicalized to avoid exceeding size limits.
22870 cat >>confdefs.h <<_ACEOF
22871 #define EMACS_CONFIGURATION "${canonical}"
22872 _ACEOF
22875 cat >>confdefs.h <<_ACEOF
22876 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
22877 _ACEOF
22880 cat >>confdefs.h <<_ACEOF
22881 #define config_machfile "${machfile}"
22882 _ACEOF
22885 cat >>confdefs.h <<_ACEOF
22886 #define config_opsysfile "${opsysfile}"
22887 _ACEOF
22890 cat >>confdefs.h <<_ACEOF
22891 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
22892 _ACEOF
22895 cat >>confdefs.h <<_ACEOF
22896 #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX}
22897 _ACEOF
22900 cat >>confdefs.h <<_ACEOF
22901 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
22902 _ACEOF
22905 cat >>confdefs.h <<_ACEOF
22906 #define UNEXEC_SRC ${UNEXEC_SRC}
22907 _ACEOF
22910 if test "${HAVE_X_WINDOWS}" = "yes" ; then
22912 cat >>confdefs.h <<\_ACEOF
22913 #define HAVE_X_WINDOWS 1
22914 _ACEOF
22917 if test "${USE_X_TOOLKIT}" != "none" ; then
22919 cat >>confdefs.h <<\_ACEOF
22920 #define USE_X_TOOLKIT 1
22921 _ACEOF
22924 if test "${HAVE_X11}" = "yes" ; then
22926 cat >>confdefs.h <<\_ACEOF
22927 #define HAVE_X11 1
22928 _ACEOF
22931 if test "${HAVE_XFREE386}" = "yes" ; then
22933 cat >>confdefs.h <<\_ACEOF
22934 #define HAVE_XFREE386 1
22935 _ACEOF
22938 if test "${HAVE_MENUS}" = "yes" ; then
22940 cat >>confdefs.h <<\_ACEOF
22941 #define HAVE_MENUS 1
22942 _ACEOF
22945 if test "${GNU_MALLOC}" = "yes" ; then
22947 cat >>confdefs.h <<\_ACEOF
22948 #define GNU_MALLOC 1
22949 _ACEOF
22952 if test "${REL_ALLOC}" = "yes" ; then
22954 cat >>confdefs.h <<\_ACEOF
22955 #define REL_ALLOC 1
22956 _ACEOF
22964 #### Report on what we decided to do.
22965 #### Report GTK as a toolkit, even if it doesn't use Xt.
22966 #### It makes printing result more understandable as using GTK sets
22967 #### toolkit_scroll_bars to yes by default.
22968 if test "${HAVE_GTK}" = "yes"; then
22969 USE_X_TOOLKIT=GTK
22972 echo "
22973 Configured for \`${canonical}'.
22975 Where should the build process find the source code? ${srcdir}
22976 What operating system and machine description files should Emacs use?
22977 \`${opsysfile}' and \`${machfile}'
22978 What compiler should emacs be built with? ${CC} ${CFLAGS}
22979 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
22980 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
22981 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
22982 What window system should Emacs use? ${window_system}
22983 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
22985 if test -n "${x_includes}"; then
22986 echo " Where do we find X Windows header files? ${x_includes}"
22987 else
22988 echo " Where do we find X Windows header files? Standard dirs"
22990 if test -n "${x_libraries}"; then
22991 echo " Where do we find X Windows libraries? ${x_libraries}"
22992 else
22993 echo " Where do we find X Windows libraries? Standard dirs"
22996 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
22997 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
22998 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
22999 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
23000 echo " Does Emacs use -lungif? ${HAVE_GIF}"
23001 echo " Does Emacs use -lpng? ${HAVE_PNG}"
23002 echo " Does Emacs use X toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
23003 echo
23005 if test $USE_XASSERTS = yes; then
23006 echo " Compiling with asserts turned on."
23007 CPPFLAGS="$CPPFLAGS -DXASSERTS=1"
23008 echo
23013 # Remove any trailing slashes in these variables.
23014 test "${prefix}" != NONE &&
23015 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
23016 test "${exec_prefix}" != NONE &&
23017 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
23019 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
23020 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
23021 ## from Makefile.c can correctly provide the arg `-traditional' to the
23022 ## C preprocessor.
23024 cat >conftest.$ac_ext <<_ACEOF
23025 /* confdefs.h. */
23026 _ACEOF
23027 cat confdefs.h >>conftest.$ac_ext
23028 cat >>conftest.$ac_ext <<_ACEOF
23029 /* end confdefs.h. */
23030 yes..yes
23031 _ACEOF
23032 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23033 $EGREP "yes..yes" >/dev/null 2>&1; then
23034 CPP_NEED_TRADITIONAL=no
23035 else
23036 CPP_NEED_TRADITIONAL=yes
23038 rm -f conftest*
23041 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"
23042 ac_config_commands="$ac_config_commands default"
23043 cat >confcache <<\_ACEOF
23044 # This file is a shell script that caches the results of configure
23045 # tests run on this system so they can be shared between configure
23046 # scripts and configure runs, see configure's option --config-cache.
23047 # It is not useful on other systems. If it contains results you don't
23048 # want to keep, you may remove or edit it.
23050 # config.status only pays attention to the cache file if you give it
23051 # the --recheck option to rerun configure.
23053 # `ac_cv_env_foo' variables (set or unset) will be overridden when
23054 # loading this file, other *unset* `ac_cv_foo' will be assigned the
23055 # following values.
23057 _ACEOF
23059 # The following way of writing the cache mishandles newlines in values,
23060 # but we know of no workaround that is simple, portable, and efficient.
23061 # So, don't put newlines in cache variables' values.
23062 # Ultrix sh set writes to stderr and can't be redirected directly,
23063 # and sets the high bit in the cache file unless we assign to the vars.
23065 (set) 2>&1 |
23066 case `(ac_space=' '; set | grep ac_space) 2>&1` in
23067 *ac_space=\ *)
23068 # `set' does not quote correctly, so add quotes (double-quote
23069 # substitution turns \\\\ into \\, and sed turns \\ into \).
23070 sed -n \
23071 "s/'/'\\\\''/g;
23072 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
23075 # `set' quotes correctly as required by POSIX, so do not add quotes.
23076 sed -n \
23077 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
23079 esac;
23081 sed '
23082 t clear
23083 : clear
23084 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
23085 t end
23086 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
23087 : end' >>confcache
23088 if diff $cache_file confcache >/dev/null 2>&1; then :; else
23089 if test -w $cache_file; then
23090 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
23091 cat confcache >$cache_file
23092 else
23093 echo "not updating unwritable cache $cache_file"
23096 rm -f confcache
23098 test "x$prefix" = xNONE && prefix=$ac_default_prefix
23099 # Let make expand exec_prefix.
23100 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
23102 # VPATH may cause trouble with some makes, so we remove $(srcdir),
23103 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
23104 # trailing colons and then remove the whole line if VPATH becomes empty
23105 # (actually we leave an empty line to preserve line numbers).
23106 if test "x$srcdir" = x.; then
23107 ac_vpsub='/^[ ]*VPATH[ ]*=/{
23108 s/:*\$(srcdir):*/:/;
23109 s/:*\${srcdir}:*/:/;
23110 s/:*@srcdir@:*/:/;
23111 s/^\([^=]*=[ ]*\):*/\1/;
23112 s/:*$//;
23113 s/^[^=]*=[ ]*$//;
23117 DEFS=-DHAVE_CONFIG_H
23119 ac_libobjs=
23120 ac_ltlibobjs=
23121 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
23122 # 1. Remove the extension, and $U if already installed.
23123 ac_i=`echo "$ac_i" |
23124 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
23125 # 2. Add them.
23126 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
23127 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
23128 done
23129 LIBOBJS=$ac_libobjs
23131 LTLIBOBJS=$ac_ltlibobjs
23135 : ${CONFIG_STATUS=./config.status}
23136 ac_clean_files_save=$ac_clean_files
23137 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
23138 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
23139 echo "$as_me: creating $CONFIG_STATUS" >&6;}
23140 cat >$CONFIG_STATUS <<_ACEOF
23141 #! $SHELL
23142 # Generated by $as_me.
23143 # Run this file to recreate the current configuration.
23144 # Compiler output produced by configure, useful for debugging
23145 # configure, is in config.log if it exists.
23147 debug=false
23148 ac_cs_recheck=false
23149 ac_cs_silent=false
23150 SHELL=\${CONFIG_SHELL-$SHELL}
23151 _ACEOF
23153 cat >>$CONFIG_STATUS <<\_ACEOF
23154 ## --------------------- ##
23155 ## M4sh Initialization. ##
23156 ## --------------------- ##
23158 # Be Bourne compatible
23159 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
23160 emulate sh
23161 NULLCMD=:
23162 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
23163 # is contrary to our usage. Disable this feature.
23164 alias -g '${1+"$@"}'='"$@"'
23165 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
23166 set -o posix
23168 DUALCASE=1; export DUALCASE # for MKS sh
23170 # Support unset when possible.
23171 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
23172 as_unset=unset
23173 else
23174 as_unset=false
23178 # Work around bugs in pre-3.0 UWIN ksh.
23179 $as_unset ENV MAIL MAILPATH
23180 PS1='$ '
23181 PS2='> '
23182 PS4='+ '
23184 # NLS nuisances.
23185 for as_var in \
23186 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
23187 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
23188 LC_TELEPHONE LC_TIME
23190 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
23191 eval $as_var=C; export $as_var
23192 else
23193 $as_unset $as_var
23195 done
23197 # Required to use basename.
23198 if expr a : '\(a\)' >/dev/null 2>&1; then
23199 as_expr=expr
23200 else
23201 as_expr=false
23204 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
23205 as_basename=basename
23206 else
23207 as_basename=false
23211 # Name of the executable.
23212 as_me=`$as_basename "$0" ||
23213 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23214 X"$0" : 'X\(//\)$' \| \
23215 X"$0" : 'X\(/\)$' \| \
23216 . : '\(.\)' 2>/dev/null ||
23217 echo X/"$0" |
23218 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
23219 /^X\/\(\/\/\)$/{ s//\1/; q; }
23220 /^X\/\(\/\).*/{ s//\1/; q; }
23221 s/.*/./; q'`
23224 # PATH needs CR, and LINENO needs CR and PATH.
23225 # Avoid depending upon Character Ranges.
23226 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
23227 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23228 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
23229 as_cr_digits='0123456789'
23230 as_cr_alnum=$as_cr_Letters$as_cr_digits
23232 # The user is always right.
23233 if test "${PATH_SEPARATOR+set}" != set; then
23234 echo "#! /bin/sh" >conf$$.sh
23235 echo "exit 0" >>conf$$.sh
23236 chmod +x conf$$.sh
23237 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
23238 PATH_SEPARATOR=';'
23239 else
23240 PATH_SEPARATOR=:
23242 rm -f conf$$.sh
23246 as_lineno_1=$LINENO
23247 as_lineno_2=$LINENO
23248 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
23249 test "x$as_lineno_1" != "x$as_lineno_2" &&
23250 test "x$as_lineno_3" = "x$as_lineno_2" || {
23251 # Find who we are. Look in the path if we contain no path at all
23252 # relative or not.
23253 case $0 in
23254 *[\\/]* ) as_myself=$0 ;;
23255 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23256 for as_dir in $PATH
23258 IFS=$as_save_IFS
23259 test -z "$as_dir" && as_dir=.
23260 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
23261 done
23264 esac
23265 # We did not find ourselves, most probably we were run as `sh COMMAND'
23266 # in which case we are not to be found in the path.
23267 if test "x$as_myself" = x; then
23268 as_myself=$0
23270 if test ! -f "$as_myself"; then
23271 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
23272 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
23273 { (exit 1); exit 1; }; }
23275 case $CONFIG_SHELL in
23277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23278 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
23280 IFS=$as_save_IFS
23281 test -z "$as_dir" && as_dir=.
23282 for as_base in sh bash ksh sh5; do
23283 case $as_dir in
23285 if ("$as_dir/$as_base" -c '
23286 as_lineno_1=$LINENO
23287 as_lineno_2=$LINENO
23288 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
23289 test "x$as_lineno_1" != "x$as_lineno_2" &&
23290 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
23291 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
23292 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
23293 CONFIG_SHELL=$as_dir/$as_base
23294 export CONFIG_SHELL
23295 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
23296 fi;;
23297 esac
23298 done
23299 done
23301 esac
23303 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
23304 # uniformly replaced by the line number. The first 'sed' inserts a
23305 # line-number line before each line; the second 'sed' does the real
23306 # work. The second script uses 'N' to pair each line-number line
23307 # with the numbered line, and appends trailing '-' during
23308 # substitution so that $LINENO is not a special case at line end.
23309 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
23310 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
23311 sed '=' <$as_myself |
23312 sed '
23314 s,$,-,
23315 : loop
23316 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
23317 t loop
23318 s,-$,,
23319 s,^['$as_cr_digits']*\n,,
23320 ' >$as_me.lineno &&
23321 chmod +x $as_me.lineno ||
23322 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
23323 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
23324 { (exit 1); exit 1; }; }
23326 # Don't try to exec as it changes $[0], causing all sort of problems
23327 # (the dirname of $[0] is not the place where we might find the
23328 # original and so on. Autoconf is especially sensible to this).
23329 . ./$as_me.lineno
23330 # Exit status is that of the last command.
23331 exit
23335 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
23336 *c*,-n*) ECHO_N= ECHO_C='
23337 ' ECHO_T=' ' ;;
23338 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
23339 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
23340 esac
23342 if expr a : '\(a\)' >/dev/null 2>&1; then
23343 as_expr=expr
23344 else
23345 as_expr=false
23348 rm -f conf$$ conf$$.exe conf$$.file
23349 echo >conf$$.file
23350 if ln -s conf$$.file conf$$ 2>/dev/null; then
23351 # We could just check for DJGPP; but this test a) works b) is more generic
23352 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
23353 if test -f conf$$.exe; then
23354 # Don't use ln at all; we don't have any links
23355 as_ln_s='cp -p'
23356 else
23357 as_ln_s='ln -s'
23359 elif ln conf$$.file conf$$ 2>/dev/null; then
23360 as_ln_s=ln
23361 else
23362 as_ln_s='cp -p'
23364 rm -f conf$$ conf$$.exe conf$$.file
23366 if mkdir -p . 2>/dev/null; then
23367 as_mkdir_p=:
23368 else
23369 test -d ./-p && rmdir ./-p
23370 as_mkdir_p=false
23373 as_executable_p="test -f"
23375 # Sed expression to map a string onto a valid CPP name.
23376 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
23378 # Sed expression to map a string onto a valid variable name.
23379 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
23382 # IFS
23383 # We need space, tab and new line, in precisely that order.
23384 as_nl='
23386 IFS=" $as_nl"
23388 # CDPATH.
23389 $as_unset CDPATH
23391 exec 6>&1
23393 # Open the log real soon, to keep \$[0] and so on meaningful, and to
23394 # report actual input values of CONFIG_FILES etc. instead of their
23395 # values after options handling. Logging --version etc. is OK.
23396 exec 5>>config.log
23398 echo
23399 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23400 ## Running $as_me. ##
23401 _ASBOX
23402 } >&5
23403 cat >&5 <<_CSEOF
23405 This file was extended by $as_me, which was
23406 generated by GNU Autoconf 2.59. Invocation command line was
23408 CONFIG_FILES = $CONFIG_FILES
23409 CONFIG_HEADERS = $CONFIG_HEADERS
23410 CONFIG_LINKS = $CONFIG_LINKS
23411 CONFIG_COMMANDS = $CONFIG_COMMANDS
23412 $ $0 $@
23414 _CSEOF
23415 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
23416 echo >&5
23417 _ACEOF
23419 # Files that config.status was made for.
23420 if test -n "$ac_config_files"; then
23421 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
23424 if test -n "$ac_config_headers"; then
23425 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
23428 if test -n "$ac_config_links"; then
23429 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
23432 if test -n "$ac_config_commands"; then
23433 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
23436 cat >>$CONFIG_STATUS <<\_ACEOF
23438 ac_cs_usage="\
23439 \`$as_me' instantiates files from templates according to the
23440 current configuration.
23442 Usage: $0 [OPTIONS] [FILE]...
23444 -h, --help print this help, then exit
23445 -V, --version print version number, then exit
23446 -q, --quiet do not print progress messages
23447 -d, --debug don't remove temporary files
23448 --recheck update $as_me by reconfiguring in the same conditions
23449 --file=FILE[:TEMPLATE]
23450 instantiate the configuration file FILE
23451 --header=FILE[:TEMPLATE]
23452 instantiate the configuration header FILE
23454 Configuration files:
23455 $config_files
23457 Configuration headers:
23458 $config_headers
23460 Configuration commands:
23461 $config_commands
23463 Report bugs to <bug-autoconf@gnu.org>."
23464 _ACEOF
23466 cat >>$CONFIG_STATUS <<_ACEOF
23467 ac_cs_version="\\
23468 config.status
23469 configured by $0, generated by GNU Autoconf 2.59,
23470 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
23472 Copyright (C) 2003 Free Software Foundation, Inc.
23473 This config.status script is free software; the Free Software Foundation
23474 gives unlimited permission to copy, distribute and modify it."
23475 srcdir=$srcdir
23476 INSTALL="$INSTALL"
23477 _ACEOF
23479 cat >>$CONFIG_STATUS <<\_ACEOF
23480 # If no file are specified by the user, then we need to provide default
23481 # value. By we need to know if files were specified by the user.
23482 ac_need_defaults=:
23483 while test $# != 0
23485 case $1 in
23486 --*=*)
23487 ac_option=`expr "x$1" : 'x\([^=]*\)='`
23488 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
23489 ac_shift=:
23492 ac_option=$1
23493 ac_optarg=$2
23494 ac_shift=shift
23496 *) # This is not an option, so the user has probably given explicit
23497 # arguments.
23498 ac_option=$1
23499 ac_need_defaults=false;;
23500 esac
23502 case $ac_option in
23503 # Handling of the options.
23504 _ACEOF
23505 cat >>$CONFIG_STATUS <<\_ACEOF
23506 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23507 ac_cs_recheck=: ;;
23508 --version | --vers* | -V )
23509 echo "$ac_cs_version"; exit 0 ;;
23510 --he | --h)
23511 # Conflict between --help and --header
23512 { { echo "$as_me:$LINENO: error: ambiguous option: $1
23513 Try \`$0 --help' for more information." >&5
23514 echo "$as_me: error: ambiguous option: $1
23515 Try \`$0 --help' for more information." >&2;}
23516 { (exit 1); exit 1; }; };;
23517 --help | --hel | -h )
23518 echo "$ac_cs_usage"; exit 0 ;;
23519 --debug | --d* | -d )
23520 debug=: ;;
23521 --file | --fil | --fi | --f )
23522 $ac_shift
23523 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
23524 ac_need_defaults=false;;
23525 --header | --heade | --head | --hea )
23526 $ac_shift
23527 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
23528 ac_need_defaults=false;;
23529 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
23530 | -silent | --silent | --silen | --sile | --sil | --si | --s)
23531 ac_cs_silent=: ;;
23533 # This is an error.
23534 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
23535 Try \`$0 --help' for more information." >&5
23536 echo "$as_me: error: unrecognized option: $1
23537 Try \`$0 --help' for more information." >&2;}
23538 { (exit 1); exit 1; }; } ;;
23540 *) ac_config_targets="$ac_config_targets $1" ;;
23542 esac
23543 shift
23544 done
23546 ac_configure_extra_args=
23548 if $ac_cs_silent; then
23549 exec 6>/dev/null
23550 ac_configure_extra_args="$ac_configure_extra_args --silent"
23553 _ACEOF
23554 cat >>$CONFIG_STATUS <<_ACEOF
23555 if \$ac_cs_recheck; then
23556 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
23557 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23560 _ACEOF
23562 cat >>$CONFIG_STATUS <<_ACEOF
23564 # INIT-COMMANDS section.
23567 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS"
23569 _ACEOF
23573 cat >>$CONFIG_STATUS <<\_ACEOF
23574 for ac_config_target in $ac_config_targets
23576 case "$ac_config_target" in
23577 # Handling of arguments.
23578 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
23579 "lib-src/Makefile.c" ) CONFIG_FILES="$CONFIG_FILES lib-src/Makefile.c:lib-src/Makefile.in" ;;
23580 "oldXMenu/Makefile" ) CONFIG_FILES="$CONFIG_FILES oldXMenu/Makefile" ;;
23581 "man/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
23582 "lwlib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lwlib/Makefile" ;;
23583 "src/Makefile.c" ) CONFIG_FILES="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;;
23584 "lisp/Makefile" ) CONFIG_FILES="$CONFIG_FILES lisp/Makefile" ;;
23585 "lispref/Makefile" ) CONFIG_FILES="$CONFIG_FILES lispref/Makefile" ;;
23586 "lispintro/Makefile" ) CONFIG_FILES="$CONFIG_FILES lispintro/Makefile" ;;
23587 "leim/Makefile" ) CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;;
23588 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
23589 "src/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:src/config.in" ;;
23590 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
23591 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
23592 { (exit 1); exit 1; }; };;
23593 esac
23594 done
23596 # If the user did not use the arguments to specify the items to instantiate,
23597 # then the envvar interface is used. Set only those that are not.
23598 # We use the long form for the default assignment because of an extremely
23599 # bizarre bug on SunOS 4.1.3.
23600 if $ac_need_defaults; then
23601 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23602 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
23603 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
23606 # Have a temporary directory for convenience. Make it in the build tree
23607 # simply because there is no reason to put it here, and in addition,
23608 # creating and moving files from /tmp can sometimes cause problems.
23609 # Create a temporary directory, and hook for its removal unless debugging.
23610 $debug ||
23612 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
23613 trap '{ (exit 1); exit 1; }' 1 2 13 15
23616 # Create a (secure) tmp directory for tmp files.
23619 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
23620 test -n "$tmp" && test -d "$tmp"
23621 } ||
23623 tmp=./confstat$$-$RANDOM
23624 (umask 077 && mkdir $tmp)
23625 } ||
23627 echo "$me: cannot create a temporary directory in ." >&2
23628 { (exit 1); exit 1; }
23631 _ACEOF
23633 cat >>$CONFIG_STATUS <<_ACEOF
23636 # CONFIG_FILES section.
23639 # No need to generate the scripts if there are no CONFIG_FILES.
23640 # This happens for instance when ./config.status config.h
23641 if test -n "\$CONFIG_FILES"; then
23642 # Protect against being on the right side of a sed subst in config.status.
23643 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
23644 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
23645 s,@SHELL@,$SHELL,;t t
23646 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
23647 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
23648 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
23649 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
23650 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
23651 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
23652 s,@exec_prefix@,$exec_prefix,;t t
23653 s,@prefix@,$prefix,;t t
23654 s,@program_transform_name@,$program_transform_name,;t t
23655 s,@bindir@,$bindir,;t t
23656 s,@sbindir@,$sbindir,;t t
23657 s,@libexecdir@,$libexecdir,;t t
23658 s,@datadir@,$datadir,;t t
23659 s,@sysconfdir@,$sysconfdir,;t t
23660 s,@sharedstatedir@,$sharedstatedir,;t t
23661 s,@localstatedir@,$localstatedir,;t t
23662 s,@libdir@,$libdir,;t t
23663 s,@includedir@,$includedir,;t t
23664 s,@oldincludedir@,$oldincludedir,;t t
23665 s,@infodir@,$infodir,;t t
23666 s,@mandir@,$mandir,;t t
23667 s,@build_alias@,$build_alias,;t t
23668 s,@host_alias@,$host_alias,;t t
23669 s,@target_alias@,$target_alias,;t t
23670 s,@DEFS@,$DEFS,;t t
23671 s,@ECHO_C@,$ECHO_C,;t t
23672 s,@ECHO_N@,$ECHO_N,;t t
23673 s,@ECHO_T@,$ECHO_T,;t t
23674 s,@LIBS@,$LIBS,;t t
23675 s,@MAINT@,$MAINT,;t t
23676 s,@build@,$build,;t t
23677 s,@build_cpu@,$build_cpu,;t t
23678 s,@build_vendor@,$build_vendor,;t t
23679 s,@build_os@,$build_os,;t t
23680 s,@host@,$host,;t t
23681 s,@host_cpu@,$host_cpu,;t t
23682 s,@host_vendor@,$host_vendor,;t t
23683 s,@host_os@,$host_os,;t t
23684 s,@CC@,$CC,;t t
23685 s,@CFLAGS@,$CFLAGS,;t t
23686 s,@LDFLAGS@,$LDFLAGS,;t t
23687 s,@CPPFLAGS@,$CPPFLAGS,;t t
23688 s,@ac_ct_CC@,$ac_ct_CC,;t t
23689 s,@EXEEXT@,$EXEEXT,;t t
23690 s,@OBJEXT@,$OBJEXT,;t t
23691 s,@CPP@,$CPP,;t t
23692 s,@EGREP@,$EGREP,;t t
23693 s,@LN_S@,$LN_S,;t t
23694 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
23695 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
23696 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
23697 s,@RANLIB@,$RANLIB,;t t
23698 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
23699 s,@INSTALL_INFO@,$INSTALL_INFO,;t t
23700 s,@GZIP_PROG@,$GZIP_PROG,;t t
23701 s,@LIBSOUND@,$LIBSOUND,;t t
23702 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
23703 s,@ALSA_CFLAGS@,$ALSA_CFLAGS,;t t
23704 s,@ALSA_LIBS@,$ALSA_LIBS,;t t
23705 s,@CFLAGS_SOUND@,$CFLAGS_SOUND,;t t
23706 s,@SET_MAKE@,$SET_MAKE,;t t
23707 s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
23708 s,@GTK_LIBS@,$GTK_LIBS,;t t
23709 s,@ALLOCA@,$ALLOCA,;t t
23710 s,@liblockfile@,$liblockfile,;t t
23711 s,@LIBOBJS@,$LIBOBJS,;t t
23712 s,@NEED_SETGID@,$NEED_SETGID,;t t
23713 s,@KMEM_GROUP@,$KMEM_GROUP,;t t
23714 s,@GETLOADAVG_LIBS@,$GETLOADAVG_LIBS,;t t
23715 s,@GETOPT_H@,$GETOPT_H,;t t
23716 s,@GETOPTOBJS@,$GETOPTOBJS,;t t
23717 s,@version@,$version,;t t
23718 s,@configuration@,$configuration,;t t
23719 s,@canonical@,$canonical,;t t
23720 s,@srcdir@,$srcdir,;t t
23721 s,@lispdir@,$lispdir,;t t
23722 s,@locallisppath@,$locallisppath,;t t
23723 s,@lisppath@,$lisppath,;t t
23724 s,@x_default_search_path@,$x_default_search_path,;t t
23725 s,@etcdir@,$etcdir,;t t
23726 s,@archlibdir@,$archlibdir,;t t
23727 s,@docdir@,$docdir,;t t
23728 s,@bitmapdir@,$bitmapdir,;t t
23729 s,@gamedir@,$gamedir,;t t
23730 s,@gameuser@,$gameuser,;t t
23731 s,@c_switch_system@,$c_switch_system,;t t
23732 s,@c_switch_machine@,$c_switch_machine,;t t
23733 s,@LD_SWITCH_X_SITE@,$LD_SWITCH_X_SITE,;t t
23734 s,@LD_SWITCH_X_SITE_AUX@,$LD_SWITCH_X_SITE_AUX,;t t
23735 s,@C_SWITCH_X_SITE@,$C_SWITCH_X_SITE,;t t
23736 s,@X_TOOLKIT_TYPE@,$X_TOOLKIT_TYPE,;t t
23737 s,@machfile@,$machfile,;t t
23738 s,@opsysfile@,$opsysfile,;t t
23739 s,@carbon_appdir@,$carbon_appdir,;t t
23740 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
23741 CEOF
23743 _ACEOF
23745 cat >>$CONFIG_STATUS <<\_ACEOF
23746 # Split the substitutions into bite-sized pieces for seds with
23747 # small command number limits, like on Digital OSF/1 and HP-UX.
23748 ac_max_sed_lines=48
23749 ac_sed_frag=1 # Number of current file.
23750 ac_beg=1 # First line for current file.
23751 ac_end=$ac_max_sed_lines # Line after last line for current file.
23752 ac_more_lines=:
23753 ac_sed_cmds=
23754 while $ac_more_lines; do
23755 if test $ac_beg -gt 1; then
23756 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
23757 else
23758 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
23760 if test ! -s $tmp/subs.frag; then
23761 ac_more_lines=false
23762 else
23763 # The purpose of the label and of the branching condition is to
23764 # speed up the sed processing (if there are no `@' at all, there
23765 # is no need to browse any of the substitutions).
23766 # These are the two extra sed commands mentioned above.
23767 (echo ':t
23768 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
23769 if test -z "$ac_sed_cmds"; then
23770 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
23771 else
23772 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
23774 ac_sed_frag=`expr $ac_sed_frag + 1`
23775 ac_beg=$ac_end
23776 ac_end=`expr $ac_end + $ac_max_sed_lines`
23778 done
23779 if test -z "$ac_sed_cmds"; then
23780 ac_sed_cmds=cat
23782 fi # test -n "$CONFIG_FILES"
23784 _ACEOF
23785 cat >>$CONFIG_STATUS <<\_ACEOF
23786 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
23787 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23788 case $ac_file in
23789 - | *:- | *:-:* ) # input from stdin
23790 cat >$tmp/stdin
23791 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23792 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23793 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23794 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23795 * ) ac_file_in=$ac_file.in ;;
23796 esac
23798 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
23799 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
23800 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23801 X"$ac_file" : 'X\(//\)[^/]' \| \
23802 X"$ac_file" : 'X\(//\)$' \| \
23803 X"$ac_file" : 'X\(/\)' \| \
23804 . : '\(.\)' 2>/dev/null ||
23805 echo X"$ac_file" |
23806 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23807 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23808 /^X\(\/\/\)$/{ s//\1/; q; }
23809 /^X\(\/\).*/{ s//\1/; q; }
23810 s/.*/./; q'`
23811 { if $as_mkdir_p; then
23812 mkdir -p "$ac_dir"
23813 else
23814 as_dir="$ac_dir"
23815 as_dirs=
23816 while test ! -d "$as_dir"; do
23817 as_dirs="$as_dir $as_dirs"
23818 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23819 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23820 X"$as_dir" : 'X\(//\)[^/]' \| \
23821 X"$as_dir" : 'X\(//\)$' \| \
23822 X"$as_dir" : 'X\(/\)' \| \
23823 . : '\(.\)' 2>/dev/null ||
23824 echo X"$as_dir" |
23825 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23826 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23827 /^X\(\/\/\)$/{ s//\1/; q; }
23828 /^X\(\/\).*/{ s//\1/; q; }
23829 s/.*/./; q'`
23830 done
23831 test ! -n "$as_dirs" || mkdir $as_dirs
23832 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23833 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23834 { (exit 1); exit 1; }; }; }
23836 ac_builddir=.
23838 if test "$ac_dir" != .; then
23839 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23840 # A "../" for each directory in $ac_dir_suffix.
23841 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23842 else
23843 ac_dir_suffix= ac_top_builddir=
23846 case $srcdir in
23847 .) # No --srcdir option. We are building in place.
23848 ac_srcdir=.
23849 if test -z "$ac_top_builddir"; then
23850 ac_top_srcdir=.
23851 else
23852 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23853 fi ;;
23854 [\\/]* | ?:[\\/]* ) # Absolute path.
23855 ac_srcdir=$srcdir$ac_dir_suffix;
23856 ac_top_srcdir=$srcdir ;;
23857 *) # Relative path.
23858 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23859 ac_top_srcdir=$ac_top_builddir$srcdir ;;
23860 esac
23862 # Do not use `cd foo && pwd` to compute absolute paths, because
23863 # the directories may not exist.
23864 case `pwd` in
23865 .) ac_abs_builddir="$ac_dir";;
23867 case "$ac_dir" in
23868 .) ac_abs_builddir=`pwd`;;
23869 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
23870 *) ac_abs_builddir=`pwd`/"$ac_dir";;
23871 esac;;
23872 esac
23873 case $ac_abs_builddir in
23874 .) ac_abs_top_builddir=${ac_top_builddir}.;;
23876 case ${ac_top_builddir}. in
23877 .) ac_abs_top_builddir=$ac_abs_builddir;;
23878 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
23879 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
23880 esac;;
23881 esac
23882 case $ac_abs_builddir in
23883 .) ac_abs_srcdir=$ac_srcdir;;
23885 case $ac_srcdir in
23886 .) ac_abs_srcdir=$ac_abs_builddir;;
23887 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
23888 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
23889 esac;;
23890 esac
23891 case $ac_abs_builddir in
23892 .) ac_abs_top_srcdir=$ac_top_srcdir;;
23894 case $ac_top_srcdir in
23895 .) ac_abs_top_srcdir=$ac_abs_builddir;;
23896 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
23897 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
23898 esac;;
23899 esac
23902 case $INSTALL in
23903 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
23904 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
23905 esac
23907 # Let's still pretend it is `configure' which instantiates (i.e., don't
23908 # use $as_me), people would be surprised to read:
23909 # /* config.h. Generated by config.status. */
23910 if test x"$ac_file" = x-; then
23911 configure_input=
23912 else
23913 configure_input="$ac_file. "
23915 configure_input=$configure_input"Generated from `echo $ac_file_in |
23916 sed 's,.*/,,'` by configure."
23918 # First look for the input files in the build tree, otherwise in the
23919 # src tree.
23920 ac_file_inputs=`IFS=:
23921 for f in $ac_file_in; do
23922 case $f in
23923 -) echo $tmp/stdin ;;
23924 [\\/$]*)
23925 # Absolute (can't be DOS-style, as IFS=:)
23926 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23927 echo "$as_me: error: cannot find input file: $f" >&2;}
23928 { (exit 1); exit 1; }; }
23929 echo "$f";;
23930 *) # Relative
23931 if test -f "$f"; then
23932 # Build tree
23933 echo "$f"
23934 elif test -f "$srcdir/$f"; then
23935 # Source tree
23936 echo "$srcdir/$f"
23937 else
23938 # /dev/null tree
23939 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23940 echo "$as_me: error: cannot find input file: $f" >&2;}
23941 { (exit 1); exit 1; }; }
23942 fi;;
23943 esac
23944 done` || { (exit 1); exit 1; }
23946 if test x"$ac_file" != x-; then
23947 { echo "$as_me:$LINENO: creating $ac_file" >&5
23948 echo "$as_me: creating $ac_file" >&6;}
23949 rm -f "$ac_file"
23951 _ACEOF
23952 cat >>$CONFIG_STATUS <<_ACEOF
23953 sed "$ac_vpsub
23954 $extrasub
23955 _ACEOF
23956 cat >>$CONFIG_STATUS <<\_ACEOF
23958 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23959 s,@configure_input@,$configure_input,;t t
23960 s,@srcdir@,$ac_srcdir,;t t
23961 s,@abs_srcdir@,$ac_abs_srcdir,;t t
23962 s,@top_srcdir@,$ac_top_srcdir,;t t
23963 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
23964 s,@builddir@,$ac_builddir,;t t
23965 s,@abs_builddir@,$ac_abs_builddir,;t t
23966 s,@top_builddir@,$ac_top_builddir,;t t
23967 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
23968 s,@INSTALL@,$ac_INSTALL,;t t
23969 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
23970 rm -f $tmp/stdin
23971 if test x"$ac_file" != x-; then
23972 mv $tmp/out $ac_file
23973 else
23974 cat $tmp/out
23975 rm -f $tmp/out
23978 done
23979 _ACEOF
23980 cat >>$CONFIG_STATUS <<\_ACEOF
23983 # CONFIG_HEADER section.
23986 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
23987 # NAME is the cpp macro being defined and VALUE is the value it is being given.
23989 # ac_d sets the value in "#define NAME VALUE" lines.
23990 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
23991 ac_dB='[ ].*$,\1#\2'
23992 ac_dC=' '
23993 ac_dD=',;t'
23994 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
23995 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
23996 ac_uB='$,\1#\2define\3'
23997 ac_uC=' '
23998 ac_uD=',;t'
24000 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
24001 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24002 case $ac_file in
24003 - | *:- | *:-:* ) # input from stdin
24004 cat >$tmp/stdin
24005 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24006 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24007 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24008 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24009 * ) ac_file_in=$ac_file.in ;;
24010 esac
24012 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
24013 echo "$as_me: creating $ac_file" >&6;}
24015 # First look for the input files in the build tree, otherwise in the
24016 # src tree.
24017 ac_file_inputs=`IFS=:
24018 for f in $ac_file_in; do
24019 case $f in
24020 -) echo $tmp/stdin ;;
24021 [\\/$]*)
24022 # Absolute (can't be DOS-style, as IFS=:)
24023 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24024 echo "$as_me: error: cannot find input file: $f" >&2;}
24025 { (exit 1); exit 1; }; }
24026 # Do quote $f, to prevent DOS paths from being IFS'd.
24027 echo "$f";;
24028 *) # Relative
24029 if test -f "$f"; then
24030 # Build tree
24031 echo "$f"
24032 elif test -f "$srcdir/$f"; then
24033 # Source tree
24034 echo "$srcdir/$f"
24035 else
24036 # /dev/null tree
24037 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24038 echo "$as_me: error: cannot find input file: $f" >&2;}
24039 { (exit 1); exit 1; }; }
24040 fi;;
24041 esac
24042 done` || { (exit 1); exit 1; }
24043 # Remove the trailing spaces.
24044 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
24046 _ACEOF
24048 # Transform confdefs.h into two sed scripts, `conftest.defines' and
24049 # `conftest.undefs', that substitutes the proper values into
24050 # config.h.in to produce config.h. The first handles `#define'
24051 # templates, and the second `#undef' templates.
24052 # And first: Protect against being on the right side of a sed subst in
24053 # config.status. Protect against being in an unquoted here document
24054 # in config.status.
24055 rm -f conftest.defines conftest.undefs
24056 # Using a here document instead of a string reduces the quoting nightmare.
24057 # Putting comments in sed scripts is not portable.
24059 # `end' is used to avoid that the second main sed command (meant for
24060 # 0-ary CPP macros) applies to n-ary macro definitions.
24061 # See the Autoconf documentation for `clear'.
24062 cat >confdef2sed.sed <<\_ACEOF
24063 s/[\\&,]/\\&/g
24064 s,[\\$`],\\&,g
24065 t clear
24066 : clear
24067 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
24068 t end
24069 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
24070 : end
24071 _ACEOF
24072 # If some macros were called several times there might be several times
24073 # the same #defines, which is useless. Nevertheless, we may not want to
24074 # sort them, since we want the *last* AC-DEFINE to be honored.
24075 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
24076 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
24077 rm -f confdef2sed.sed
24079 # This sed command replaces #undef with comments. This is necessary, for
24080 # example, in the case of _POSIX_SOURCE, which is predefined and required
24081 # on some systems where configure will not decide to define it.
24082 cat >>conftest.undefs <<\_ACEOF
24083 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
24084 _ACEOF
24086 # Break up conftest.defines because some shells have a limit on the size
24087 # of here documents, and old seds have small limits too (100 cmds).
24088 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
24089 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
24090 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
24091 echo ' :' >>$CONFIG_STATUS
24092 rm -f conftest.tail
24093 while grep . conftest.defines >/dev/null
24095 # Write a limited-size here document to $tmp/defines.sed.
24096 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
24097 # Speed up: don't consider the non `#define' lines.
24098 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
24099 # Work around the forget-to-reset-the-flag bug.
24100 echo 't clr' >>$CONFIG_STATUS
24101 echo ': clr' >>$CONFIG_STATUS
24102 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
24103 echo 'CEOF
24104 sed -f $tmp/defines.sed $tmp/in >$tmp/out
24105 rm -f $tmp/in
24106 mv $tmp/out $tmp/in
24107 ' >>$CONFIG_STATUS
24108 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
24109 rm -f conftest.defines
24110 mv conftest.tail conftest.defines
24111 done
24112 rm -f conftest.defines
24113 echo ' fi # grep' >>$CONFIG_STATUS
24114 echo >>$CONFIG_STATUS
24116 # Break up conftest.undefs because some shells have a limit on the size
24117 # of here documents, and old seds have small limits too (100 cmds).
24118 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
24119 rm -f conftest.tail
24120 while grep . conftest.undefs >/dev/null
24122 # Write a limited-size here document to $tmp/undefs.sed.
24123 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
24124 # Speed up: don't consider the non `#undef'
24125 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
24126 # Work around the forget-to-reset-the-flag bug.
24127 echo 't clr' >>$CONFIG_STATUS
24128 echo ': clr' >>$CONFIG_STATUS
24129 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
24130 echo 'CEOF
24131 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
24132 rm -f $tmp/in
24133 mv $tmp/out $tmp/in
24134 ' >>$CONFIG_STATUS
24135 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
24136 rm -f conftest.undefs
24137 mv conftest.tail conftest.undefs
24138 done
24139 rm -f conftest.undefs
24141 cat >>$CONFIG_STATUS <<\_ACEOF
24142 # Let's still pretend it is `configure' which instantiates (i.e., don't
24143 # use $as_me), people would be surprised to read:
24144 # /* config.h. Generated by config.status. */
24145 if test x"$ac_file" = x-; then
24146 echo "/* Generated by configure. */" >$tmp/config.h
24147 else
24148 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
24150 cat $tmp/in >>$tmp/config.h
24151 rm -f $tmp/in
24152 if test x"$ac_file" != x-; then
24153 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
24154 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
24155 echo "$as_me: $ac_file is unchanged" >&6;}
24156 else
24157 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
24158 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24159 X"$ac_file" : 'X\(//\)[^/]' \| \
24160 X"$ac_file" : 'X\(//\)$' \| \
24161 X"$ac_file" : 'X\(/\)' \| \
24162 . : '\(.\)' 2>/dev/null ||
24163 echo X"$ac_file" |
24164 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24165 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24166 /^X\(\/\/\)$/{ s//\1/; q; }
24167 /^X\(\/\).*/{ s//\1/; q; }
24168 s/.*/./; q'`
24169 { if $as_mkdir_p; then
24170 mkdir -p "$ac_dir"
24171 else
24172 as_dir="$ac_dir"
24173 as_dirs=
24174 while test ! -d "$as_dir"; do
24175 as_dirs="$as_dir $as_dirs"
24176 as_dir=`(dirname "$as_dir") 2>/dev/null ||
24177 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24178 X"$as_dir" : 'X\(//\)[^/]' \| \
24179 X"$as_dir" : 'X\(//\)$' \| \
24180 X"$as_dir" : 'X\(/\)' \| \
24181 . : '\(.\)' 2>/dev/null ||
24182 echo X"$as_dir" |
24183 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24184 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24185 /^X\(\/\/\)$/{ s//\1/; q; }
24186 /^X\(\/\).*/{ s//\1/; q; }
24187 s/.*/./; q'`
24188 done
24189 test ! -n "$as_dirs" || mkdir $as_dirs
24190 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24191 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24192 { (exit 1); exit 1; }; }; }
24194 rm -f $ac_file
24195 mv $tmp/config.h $ac_file
24197 else
24198 cat $tmp/config.h
24199 rm -f $tmp/config.h
24201 done
24202 _ACEOF
24203 cat >>$CONFIG_STATUS <<\_ACEOF
24206 # CONFIG_COMMANDS section.
24208 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
24209 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
24210 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
24211 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
24212 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24213 X"$ac_dest" : 'X\(//\)[^/]' \| \
24214 X"$ac_dest" : 'X\(//\)$' \| \
24215 X"$ac_dest" : 'X\(/\)' \| \
24216 . : '\(.\)' 2>/dev/null ||
24217 echo X"$ac_dest" |
24218 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24219 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24220 /^X\(\/\/\)$/{ s//\1/; q; }
24221 /^X\(\/\).*/{ s//\1/; q; }
24222 s/.*/./; q'`
24223 { if $as_mkdir_p; then
24224 mkdir -p "$ac_dir"
24225 else
24226 as_dir="$ac_dir"
24227 as_dirs=
24228 while test ! -d "$as_dir"; do
24229 as_dirs="$as_dir $as_dirs"
24230 as_dir=`(dirname "$as_dir") 2>/dev/null ||
24231 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24232 X"$as_dir" : 'X\(//\)[^/]' \| \
24233 X"$as_dir" : 'X\(//\)$' \| \
24234 X"$as_dir" : 'X\(/\)' \| \
24235 . : '\(.\)' 2>/dev/null ||
24236 echo X"$as_dir" |
24237 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24238 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24239 /^X\(\/\/\)$/{ s//\1/; q; }
24240 /^X\(\/\).*/{ s//\1/; q; }
24241 s/.*/./; q'`
24242 done
24243 test ! -n "$as_dirs" || mkdir $as_dirs
24244 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24245 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24246 { (exit 1); exit 1; }; }; }
24248 ac_builddir=.
24250 if test "$ac_dir" != .; then
24251 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24252 # A "../" for each directory in $ac_dir_suffix.
24253 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24254 else
24255 ac_dir_suffix= ac_top_builddir=
24258 case $srcdir in
24259 .) # No --srcdir option. We are building in place.
24260 ac_srcdir=.
24261 if test -z "$ac_top_builddir"; then
24262 ac_top_srcdir=.
24263 else
24264 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
24265 fi ;;
24266 [\\/]* | ?:[\\/]* ) # Absolute path.
24267 ac_srcdir=$srcdir$ac_dir_suffix;
24268 ac_top_srcdir=$srcdir ;;
24269 *) # Relative path.
24270 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
24271 ac_top_srcdir=$ac_top_builddir$srcdir ;;
24272 esac
24274 # Do not use `cd foo && pwd` to compute absolute paths, because
24275 # the directories may not exist.
24276 case `pwd` in
24277 .) ac_abs_builddir="$ac_dir";;
24279 case "$ac_dir" in
24280 .) ac_abs_builddir=`pwd`;;
24281 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
24282 *) ac_abs_builddir=`pwd`/"$ac_dir";;
24283 esac;;
24284 esac
24285 case $ac_abs_builddir in
24286 .) ac_abs_top_builddir=${ac_top_builddir}.;;
24288 case ${ac_top_builddir}. in
24289 .) ac_abs_top_builddir=$ac_abs_builddir;;
24290 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
24291 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
24292 esac;;
24293 esac
24294 case $ac_abs_builddir in
24295 .) ac_abs_srcdir=$ac_srcdir;;
24297 case $ac_srcdir in
24298 .) ac_abs_srcdir=$ac_abs_builddir;;
24299 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
24300 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
24301 esac;;
24302 esac
24303 case $ac_abs_builddir in
24304 .) ac_abs_top_srcdir=$ac_top_srcdir;;
24306 case $ac_top_srcdir in
24307 .) ac_abs_top_srcdir=$ac_abs_builddir;;
24308 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
24309 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
24310 esac;;
24311 esac
24314 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
24315 echo "$as_me: executing $ac_dest commands" >&6;}
24316 case $ac_dest in
24317 default )
24319 ### Make the necessary directories, if they don't exist.
24320 for dir in etc lisp ; do
24321 test -d ${dir} || mkdir ${dir}
24322 done
24324 # Build src/Makefile from ${srcdir}/src/Makefile.c
24325 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
24326 # This must be done after src/config.h is built, since we rely on that file.
24328 # Now get this: Some word that is part of the ${srcdir} directory name
24329 # or the ${configuration} value might, just might, happen to be an
24330 # identifier like `sun4' or `i386' or something, and be predefined by
24331 # the C preprocessor to some helpful value like 1, or maybe the empty
24332 # string. Needless to say consequent macro substitutions are less
24333 # than conducive to the makefile finding the correct directory.
24334 undefs="`echo $top_srcdir $configuration $canonical |
24335 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
24336 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g' \
24339 echo creating src/epaths.h
24340 ${MAKE-make} epaths-force
24342 # As of 2000-11-19, newest development versions of GNU cpp preprocess
24343 # `..' to `. .' unless invoked with -traditional
24345 if test "x$GCC" = xyes && test "x$CPP_NEED_TRADITIONAL" = xyes; then
24346 CPPFLAGS="$CPPFLAGS -traditional"
24349 echo creating lib-src/Makefile
24350 ( cd lib-src
24351 rm -f junk.c junk1.c junk2.c
24352 sed -e '/start of cpp stuff/q' \
24353 < Makefile.c > junk1.c
24354 sed -e '1,/start of cpp stuff/d'\
24355 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
24356 < Makefile.c > junk.c
24357 $CPP $undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
24358 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
24359 cat junk1.c junk2.c > Makefile.new
24360 rm -f junk.c junk1.c junk2.c
24361 chmod 444 Makefile.new
24362 mv -f Makefile.new Makefile
24365 echo creating src/Makefile
24366 ( cd src
24367 rm -f junk.c junk1.c junk2.c
24368 sed -e '/start of cpp stuff/q' \
24369 < Makefile.c > junk1.c
24370 sed -e '1,/start of cpp stuff/d'\
24371 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
24372 < Makefile.c > junk.c
24373 $CPP $undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
24374 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
24375 cat junk1.c junk2.c > Makefile.new
24376 rm -f junk.c junk1.c junk2.c
24377 chmod 444 Makefile.new
24378 mv -f Makefile.new Makefile
24381 if test ! -f src/.gdbinit && test -f $srcdir/src/.gdbinit; then
24382 echo creating src/.gdbinit
24383 echo source $srcdir/src/.gdbinit > src/.gdbinit
24386 # This is how we know whether to re-run configure in certain cases.
24387 touch src/config.stamp
24390 esac
24391 done
24392 _ACEOF
24394 cat >>$CONFIG_STATUS <<\_ACEOF
24396 { (exit 0); exit 0; }
24397 _ACEOF
24398 chmod +x $CONFIG_STATUS
24399 ac_clean_files=$ac_clean_files_save
24402 # configure is writing to config.log, and then calls config.status.
24403 # config.status does its own redirection, appending to config.log.
24404 # Unfortunately, on DOS this fails, as config.log is still kept open
24405 # by configure, so config.status won't be able to write to it; its
24406 # output is simply discarded. So we exec the FD to /dev/null,
24407 # effectively closing config.log, so it can be properly (re)opened and
24408 # appended to by config.status. When coming back to configure, we
24409 # need to make the FD available again.
24410 if test "$no_create" != yes; then
24411 ac_cs_success=:
24412 ac_config_status_args=
24413 test "$silent" = yes &&
24414 ac_config_status_args="$ac_config_status_args --quiet"
24415 exec 5>/dev/null
24416 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
24417 exec 5>>config.log
24418 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24419 # would make configure fail if this is the last instruction.
24420 $ac_cs_success || { (exit 1); exit 1; }