(syntax-ppss-toplevel-pos): Improve docstring.
[emacs.git] / configure
blob10e5ab3dbceffaf7316cfc9c2f84f9803ba6730e
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
8395 # Check whether --with-x or --without-x was given.
8396 if test "${with_x+set}" = set; then
8397 withval="$with_x"
8400 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
8401 if test "x$with_x" = xno; then
8402 # The user explicitly disabled X.
8403 have_x=disabled
8404 else
8405 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
8406 # Both variables are already set.
8407 have_x=yes
8408 else
8409 if test "${ac_cv_have_x+set}" = set; then
8410 echo $ECHO_N "(cached) $ECHO_C" >&6
8411 else
8412 # One or both of the vars are not set, and there is no cached value.
8413 ac_x_includes=no ac_x_libraries=no
8414 rm -fr conftest.dir
8415 if mkdir conftest.dir; then
8416 cd conftest.dir
8417 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
8418 cat >Imakefile <<'_ACEOF'
8419 acfindx:
8420 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
8421 _ACEOF
8422 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
8423 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8424 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
8425 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
8426 for ac_extension in a so sl; do
8427 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
8428 test -f $ac_im_libdir/libX11.$ac_extension; then
8429 ac_im_usrlibdir=$ac_im_libdir; break
8431 done
8432 # Screen out bogus values from the imake configuration. They are
8433 # bogus both because they are the default anyway, and because
8434 # using them would break gcc on systems where it needs fixed includes.
8435 case $ac_im_incroot in
8436 /usr/include) ;;
8437 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
8438 esac
8439 case $ac_im_usrlibdir in
8440 /usr/lib | /lib) ;;
8441 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
8442 esac
8444 cd ..
8445 rm -fr conftest.dir
8448 # Standard set of common directories for X headers.
8449 # Check X11 before X11Rn because it is often a symlink to the current release.
8450 ac_x_header_dirs='
8451 /usr/X11/include
8452 /usr/X11R6/include
8453 /usr/X11R5/include
8454 /usr/X11R4/include
8456 /usr/include/X11
8457 /usr/include/X11R6
8458 /usr/include/X11R5
8459 /usr/include/X11R4
8461 /usr/local/X11/include
8462 /usr/local/X11R6/include
8463 /usr/local/X11R5/include
8464 /usr/local/X11R4/include
8466 /usr/local/include/X11
8467 /usr/local/include/X11R6
8468 /usr/local/include/X11R5
8469 /usr/local/include/X11R4
8471 /usr/X386/include
8472 /usr/x386/include
8473 /usr/XFree86/include/X11
8475 /usr/include
8476 /usr/local/include
8477 /usr/unsupported/include
8478 /usr/athena/include
8479 /usr/local/x11r5/include
8480 /usr/lpp/Xamples/include
8482 /usr/openwin/include
8483 /usr/openwin/share/include'
8485 if test "$ac_x_includes" = no; then
8486 # Guess where to find include files, by looking for Intrinsic.h.
8487 # First, try using that file with no special directory specified.
8488 cat >conftest.$ac_ext <<_ACEOF
8489 /* confdefs.h. */
8490 _ACEOF
8491 cat confdefs.h >>conftest.$ac_ext
8492 cat >>conftest.$ac_ext <<_ACEOF
8493 /* end confdefs.h. */
8494 #include <X11/Intrinsic.h>
8495 _ACEOF
8496 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8497 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8498 ac_status=$?
8499 grep -v '^ *+' conftest.er1 >conftest.err
8500 rm -f conftest.er1
8501 cat conftest.err >&5
8502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8503 (exit $ac_status); } >/dev/null; then
8504 if test -s conftest.err; then
8505 ac_cpp_err=$ac_c_preproc_warn_flag
8506 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8507 else
8508 ac_cpp_err=
8510 else
8511 ac_cpp_err=yes
8513 if test -z "$ac_cpp_err"; then
8514 # We can compile using X headers with no special include directory.
8515 ac_x_includes=
8516 else
8517 echo "$as_me: failed program was:" >&5
8518 sed 's/^/| /' conftest.$ac_ext >&5
8520 for ac_dir in $ac_x_header_dirs; do
8521 if test -r "$ac_dir/X11/Intrinsic.h"; then
8522 ac_x_includes=$ac_dir
8523 break
8525 done
8527 rm -f conftest.err conftest.$ac_ext
8528 fi # $ac_x_includes = no
8530 if test "$ac_x_libraries" = no; then
8531 # Check for the libraries.
8532 # See if we find them without any special options.
8533 # Don't add to $LIBS permanently.
8534 ac_save_LIBS=$LIBS
8535 LIBS="-lXt $LIBS"
8536 cat >conftest.$ac_ext <<_ACEOF
8537 /* confdefs.h. */
8538 _ACEOF
8539 cat confdefs.h >>conftest.$ac_ext
8540 cat >>conftest.$ac_ext <<_ACEOF
8541 /* end confdefs.h. */
8542 #include <X11/Intrinsic.h>
8544 main ()
8546 XtMalloc (0)
8548 return 0;
8550 _ACEOF
8551 rm -f conftest.$ac_objext conftest$ac_exeext
8552 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8553 (eval $ac_link) 2>conftest.er1
8554 ac_status=$?
8555 grep -v '^ *+' conftest.er1 >conftest.err
8556 rm -f conftest.er1
8557 cat conftest.err >&5
8558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8559 (exit $ac_status); } &&
8560 { ac_try='test -z "$ac_c_werror_flag"
8561 || test ! -s conftest.err'
8562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8563 (eval $ac_try) 2>&5
8564 ac_status=$?
8565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8566 (exit $ac_status); }; } &&
8567 { ac_try='test -s conftest$ac_exeext'
8568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8569 (eval $ac_try) 2>&5
8570 ac_status=$?
8571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8572 (exit $ac_status); }; }; then
8573 LIBS=$ac_save_LIBS
8574 # We can link X programs with no special library path.
8575 ac_x_libraries=
8576 else
8577 echo "$as_me: failed program was:" >&5
8578 sed 's/^/| /' conftest.$ac_ext >&5
8580 LIBS=$ac_save_LIBS
8581 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
8583 # Don't even attempt the hair of trying to link an X program!
8584 for ac_extension in a so sl; do
8585 if test -r $ac_dir/libXt.$ac_extension; then
8586 ac_x_libraries=$ac_dir
8587 break 2
8589 done
8590 done
8592 rm -f conftest.err conftest.$ac_objext \
8593 conftest$ac_exeext conftest.$ac_ext
8594 fi # $ac_x_libraries = no
8596 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
8597 # Didn't find X anywhere. Cache the known absence of X.
8598 ac_cv_have_x="have_x=no"
8599 else
8600 # Record where we found X for the cache.
8601 ac_cv_have_x="have_x=yes \
8602 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
8607 eval "$ac_cv_have_x"
8608 fi # $with_x != no
8610 if test "$have_x" != yes; then
8611 echo "$as_me:$LINENO: result: $have_x" >&5
8612 echo "${ECHO_T}$have_x" >&6
8613 no_x=yes
8614 else
8615 # If each of the values was on the command line, it overrides each guess.
8616 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
8617 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
8618 # Update the cache value to reflect the command line values.
8619 ac_cv_have_x="have_x=yes \
8620 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
8621 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
8622 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
8625 if test "$no_x" = yes; then
8626 window_system=none
8627 else
8628 window_system=x11
8631 if test "${x_libraries}" != NONE; then
8632 if test -n "${x_libraries}"; then
8633 LD_SWITCH_X_SITE=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
8634 LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
8636 x_default_search_path=""
8637 x_search_path=${x_libraries}
8638 if test -z "${x_search_path}"; then
8639 x_search_path=/usr/lib
8641 for x_library in `echo ${x_search_path}: | \
8642 sed -e "s/:/ /g" -e p -e "s:/lib[^ /]* :/share :g"`; do
8643 x_search_path="\
8644 ${x_library}/X11/%L/%T/%N%C%S:\
8645 ${x_library}/X11/%l/%T/%N%C%S:\
8646 ${x_library}/X11/%T/%N%C%S:\
8647 ${x_library}/X11/%L/%T/%N%S:\
8648 ${x_library}/X11/%l/%T/%N%S:\
8649 ${x_library}/X11/%T/%N%S"
8650 if test x"${x_default_search_path}" = x; then
8651 x_default_search_path=${x_search_path}
8652 else
8653 x_default_search_path="${x_search_path}:${x_default_search_path}"
8655 done
8657 if test "${x_includes}" != NONE && test -n "${x_includes}"; then
8658 C_SWITCH_X_SITE=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
8661 if test x"${x_includes}" = x; then
8662 bitmapdir=/usr/include/X11/bitmaps
8663 else
8664 # accumulate include directories that have X11 bitmap subdirectories
8665 bmd_acc="dummyval"
8666 for bmd in `echo ${x_includes} | sed -e "s/:/ /g"`; do
8667 if test -d "${bmd}/X11/bitmaps"; then
8668 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
8670 if test -d "${bmd}/bitmaps"; then
8671 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
8673 done
8674 if test ${bmd_acc} != "dummyval"; then
8675 bitmapdir=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
8679 HAVE_CARBON=no
8680 if test "${with_carbon}" != no; then
8681 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
8682 echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
8683 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6
8684 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
8685 echo $ECHO_N "(cached) $ECHO_C" >&6
8687 echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
8688 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6
8689 else
8690 # Is the header compilable?
8691 echo "$as_me:$LINENO: checking Carbon/Carbon.h usability" >&5
8692 echo $ECHO_N "checking Carbon/Carbon.h usability... $ECHO_C" >&6
8693 cat >conftest.$ac_ext <<_ACEOF
8694 /* confdefs.h. */
8695 _ACEOF
8696 cat confdefs.h >>conftest.$ac_ext
8697 cat >>conftest.$ac_ext <<_ACEOF
8698 /* end confdefs.h. */
8699 $ac_includes_default
8700 #include <Carbon/Carbon.h>
8701 _ACEOF
8702 rm -f conftest.$ac_objext
8703 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8704 (eval $ac_compile) 2>conftest.er1
8705 ac_status=$?
8706 grep -v '^ *+' conftest.er1 >conftest.err
8707 rm -f conftest.er1
8708 cat conftest.err >&5
8709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8710 (exit $ac_status); } &&
8711 { ac_try='test -z "$ac_c_werror_flag"
8712 || test ! -s conftest.err'
8713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8714 (eval $ac_try) 2>&5
8715 ac_status=$?
8716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8717 (exit $ac_status); }; } &&
8718 { ac_try='test -s conftest.$ac_objext'
8719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8720 (eval $ac_try) 2>&5
8721 ac_status=$?
8722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8723 (exit $ac_status); }; }; then
8724 ac_header_compiler=yes
8725 else
8726 echo "$as_me: failed program was:" >&5
8727 sed 's/^/| /' conftest.$ac_ext >&5
8729 ac_header_compiler=no
8731 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8732 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8733 echo "${ECHO_T}$ac_header_compiler" >&6
8735 # Is the header present?
8736 echo "$as_me:$LINENO: checking Carbon/Carbon.h presence" >&5
8737 echo $ECHO_N "checking Carbon/Carbon.h presence... $ECHO_C" >&6
8738 cat >conftest.$ac_ext <<_ACEOF
8739 /* confdefs.h. */
8740 _ACEOF
8741 cat confdefs.h >>conftest.$ac_ext
8742 cat >>conftest.$ac_ext <<_ACEOF
8743 /* end confdefs.h. */
8744 #include <Carbon/Carbon.h>
8745 _ACEOF
8746 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8747 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8748 ac_status=$?
8749 grep -v '^ *+' conftest.er1 >conftest.err
8750 rm -f conftest.er1
8751 cat conftest.err >&5
8752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8753 (exit $ac_status); } >/dev/null; then
8754 if test -s conftest.err; then
8755 ac_cpp_err=$ac_c_preproc_warn_flag
8756 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8757 else
8758 ac_cpp_err=
8760 else
8761 ac_cpp_err=yes
8763 if test -z "$ac_cpp_err"; then
8764 ac_header_preproc=yes
8765 else
8766 echo "$as_me: failed program was:" >&5
8767 sed 's/^/| /' conftest.$ac_ext >&5
8769 ac_header_preproc=no
8771 rm -f conftest.err conftest.$ac_ext
8772 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8773 echo "${ECHO_T}$ac_header_preproc" >&6
8775 # So? What about this header?
8776 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8777 yes:no: )
8778 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&5
8779 echo "$as_me: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8780 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&5
8781 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&2;}
8782 ac_header_preproc=yes
8784 no:yes:* )
8785 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&5
8786 echo "$as_me: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&2;}
8787 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&5
8788 echo "$as_me: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&2;}
8789 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&5
8790 echo "$as_me: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&2;}
8791 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&5
8792 echo "$as_me: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&2;}
8793 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5
8794 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;}
8795 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&5
8796 echo "$as_me: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&2;}
8798 cat <<\_ASBOX
8799 ## ------------------------------------------ ##
8800 ## Report this to the AC_PACKAGE_NAME lists. ##
8801 ## ------------------------------------------ ##
8802 _ASBOX
8804 sed "s/^/$as_me: WARNING: /" >&2
8806 esac
8807 echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
8808 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6
8809 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
8810 echo $ECHO_N "(cached) $ECHO_C" >&6
8811 else
8812 ac_cv_header_Carbon_Carbon_h=$ac_header_preproc
8814 echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
8815 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6
8818 if test $ac_cv_header_Carbon_Carbon_h = yes; then
8819 HAVE_CARBON=yes
8824 if test "${window_system}" = x11 && test "${HAVE_CARBON}" = yes; then
8825 if test "${with_carbon+set}" != set \
8826 && test "${carbon_appdir_x+set}" != set; then
8827 for var in with_x with_x_toolkit with_gtk with_xim \
8828 with_xpm with_jpeg with_tiff with_gif with_png; do
8829 if eval test \"\${$var+set}\" = set; then
8830 HAVE_CARBON=no
8831 break
8833 done
8836 if test "${HAVE_CARBON}" = yes; then
8837 window_system=mac
8840 case "${window_system}" in
8841 x11 )
8842 HAVE_X_WINDOWS=yes
8843 HAVE_X11=yes
8844 case "${with_x_toolkit}" in
8845 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
8846 motif ) USE_X_TOOLKIT=MOTIF ;;
8847 gtk ) with_gtk=yes
8848 USE_X_TOOLKIT=none ;;
8849 no ) USE_X_TOOLKIT=none ;;
8850 * ) USE_X_TOOLKIT=maybe ;;
8851 esac
8853 mac | none )
8854 HAVE_X_WINDOWS=no
8855 HAVE_X11=no
8856 USE_X_TOOLKIT=none
8858 esac
8860 ### If we're using X11, we should use the X menu package.
8861 HAVE_MENUS=no
8862 case ${HAVE_X11} in
8863 yes ) HAVE_MENUS=yes ;;
8864 esac
8866 if test "${opsys}" = "hpux9"; then
8867 case "${x_libraries}" in
8868 *X11R4* )
8869 opsysfile="s/hpux9-x11r4.h"
8871 esac
8874 if test "${opsys}" = "hpux9shr"; then
8875 case "${x_libraries}" in
8876 *X11R4* )
8877 opsysfile="s/hpux9shxr4.h"
8879 esac
8882 ### Compute the unexec source name from the object name.
8883 UNEXEC_SRC="`echo ${unexec} | sed 's/\.o/.c/'`"
8885 # Do the opsystem or machine files prohibit the use of the GNU malloc?
8886 # Assume not, until told otherwise.
8887 GNU_MALLOC=yes
8888 doug_lea_malloc=yes
8889 echo "$as_me:$LINENO: checking for malloc_get_state" >&5
8890 echo $ECHO_N "checking for malloc_get_state... $ECHO_C" >&6
8891 if test "${ac_cv_func_malloc_get_state+set}" = set; then
8892 echo $ECHO_N "(cached) $ECHO_C" >&6
8893 else
8894 cat >conftest.$ac_ext <<_ACEOF
8895 /* confdefs.h. */
8896 _ACEOF
8897 cat confdefs.h >>conftest.$ac_ext
8898 cat >>conftest.$ac_ext <<_ACEOF
8899 /* end confdefs.h. */
8900 /* Define malloc_get_state to an innocuous variant, in case <limits.h> declares malloc_get_state.
8901 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8902 #define malloc_get_state innocuous_malloc_get_state
8904 /* System header to define __stub macros and hopefully few prototypes,
8905 which can conflict with char malloc_get_state (); below.
8906 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8907 <limits.h> exists even on freestanding compilers. */
8909 #ifdef __STDC__
8910 # include <limits.h>
8911 #else
8912 # include <assert.h>
8913 #endif
8915 #undef malloc_get_state
8917 /* Override any gcc2 internal prototype to avoid an error. */
8918 #ifdef __cplusplus
8919 extern "C"
8921 #endif
8922 /* We use char because int might match the return type of a gcc2
8923 builtin and then its argument prototype would still apply. */
8924 char malloc_get_state ();
8925 /* The GNU C library defines this for functions which it implements
8926 to always fail with ENOSYS. Some functions are actually named
8927 something starting with __ and the normal name is an alias. */
8928 #if defined (__stub_malloc_get_state) || defined (__stub___malloc_get_state)
8929 choke me
8930 #else
8931 char (*f) () = malloc_get_state;
8932 #endif
8933 #ifdef __cplusplus
8935 #endif
8938 main ()
8940 return f != malloc_get_state;
8942 return 0;
8944 _ACEOF
8945 rm -f conftest.$ac_objext conftest$ac_exeext
8946 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8947 (eval $ac_link) 2>conftest.er1
8948 ac_status=$?
8949 grep -v '^ *+' conftest.er1 >conftest.err
8950 rm -f conftest.er1
8951 cat conftest.err >&5
8952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8953 (exit $ac_status); } &&
8954 { ac_try='test -z "$ac_c_werror_flag"
8955 || test ! -s conftest.err'
8956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8957 (eval $ac_try) 2>&5
8958 ac_status=$?
8959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8960 (exit $ac_status); }; } &&
8961 { ac_try='test -s conftest$ac_exeext'
8962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8963 (eval $ac_try) 2>&5
8964 ac_status=$?
8965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8966 (exit $ac_status); }; }; then
8967 ac_cv_func_malloc_get_state=yes
8968 else
8969 echo "$as_me: failed program was:" >&5
8970 sed 's/^/| /' conftest.$ac_ext >&5
8972 ac_cv_func_malloc_get_state=no
8974 rm -f conftest.err conftest.$ac_objext \
8975 conftest$ac_exeext conftest.$ac_ext
8977 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_get_state" >&5
8978 echo "${ECHO_T}$ac_cv_func_malloc_get_state" >&6
8979 if test $ac_cv_func_malloc_get_state = yes; then
8981 else
8982 doug_lea_malloc=no
8985 echo "$as_me:$LINENO: checking for malloc_set_state" >&5
8986 echo $ECHO_N "checking for malloc_set_state... $ECHO_C" >&6
8987 if test "${ac_cv_func_malloc_set_state+set}" = set; then
8988 echo $ECHO_N "(cached) $ECHO_C" >&6
8989 else
8990 cat >conftest.$ac_ext <<_ACEOF
8991 /* confdefs.h. */
8992 _ACEOF
8993 cat confdefs.h >>conftest.$ac_ext
8994 cat >>conftest.$ac_ext <<_ACEOF
8995 /* end confdefs.h. */
8996 /* Define malloc_set_state to an innocuous variant, in case <limits.h> declares malloc_set_state.
8997 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8998 #define malloc_set_state innocuous_malloc_set_state
9000 /* System header to define __stub macros and hopefully few prototypes,
9001 which can conflict with char malloc_set_state (); below.
9002 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9003 <limits.h> exists even on freestanding compilers. */
9005 #ifdef __STDC__
9006 # include <limits.h>
9007 #else
9008 # include <assert.h>
9009 #endif
9011 #undef malloc_set_state
9013 /* Override any gcc2 internal prototype to avoid an error. */
9014 #ifdef __cplusplus
9015 extern "C"
9017 #endif
9018 /* We use char because int might match the return type of a gcc2
9019 builtin and then its argument prototype would still apply. */
9020 char malloc_set_state ();
9021 /* The GNU C library defines this for functions which it implements
9022 to always fail with ENOSYS. Some functions are actually named
9023 something starting with __ and the normal name is an alias. */
9024 #if defined (__stub_malloc_set_state) || defined (__stub___malloc_set_state)
9025 choke me
9026 #else
9027 char (*f) () = malloc_set_state;
9028 #endif
9029 #ifdef __cplusplus
9031 #endif
9034 main ()
9036 return f != malloc_set_state;
9038 return 0;
9040 _ACEOF
9041 rm -f conftest.$ac_objext conftest$ac_exeext
9042 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9043 (eval $ac_link) 2>conftest.er1
9044 ac_status=$?
9045 grep -v '^ *+' conftest.er1 >conftest.err
9046 rm -f conftest.er1
9047 cat conftest.err >&5
9048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9049 (exit $ac_status); } &&
9050 { ac_try='test -z "$ac_c_werror_flag"
9051 || test ! -s conftest.err'
9052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9053 (eval $ac_try) 2>&5
9054 ac_status=$?
9055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9056 (exit $ac_status); }; } &&
9057 { ac_try='test -s conftest$ac_exeext'
9058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9059 (eval $ac_try) 2>&5
9060 ac_status=$?
9061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9062 (exit $ac_status); }; }; then
9063 ac_cv_func_malloc_set_state=yes
9064 else
9065 echo "$as_me: failed program was:" >&5
9066 sed 's/^/| /' conftest.$ac_ext >&5
9068 ac_cv_func_malloc_set_state=no
9070 rm -f conftest.err conftest.$ac_objext \
9071 conftest$ac_exeext conftest.$ac_ext
9073 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_set_state" >&5
9074 echo "${ECHO_T}$ac_cv_func_malloc_set_state" >&6
9075 if test $ac_cv_func_malloc_set_state = yes; then
9077 else
9078 doug_lea_malloc=no
9081 echo "$as_me:$LINENO: checking whether __after_morecore_hook exists" >&5
9082 echo $ECHO_N "checking whether __after_morecore_hook exists... $ECHO_C" >&6
9083 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then
9084 echo $ECHO_N "(cached) $ECHO_C" >&6
9085 else
9086 cat >conftest.$ac_ext <<_ACEOF
9087 /* confdefs.h. */
9088 _ACEOF
9089 cat confdefs.h >>conftest.$ac_ext
9090 cat >>conftest.$ac_ext <<_ACEOF
9091 /* end confdefs.h. */
9092 extern void (* __after_morecore_hook)();
9094 main ()
9096 __after_morecore_hook = 0
9098 return 0;
9100 _ACEOF
9101 rm -f conftest.$ac_objext conftest$ac_exeext
9102 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9103 (eval $ac_link) 2>conftest.er1
9104 ac_status=$?
9105 grep -v '^ *+' conftest.er1 >conftest.err
9106 rm -f conftest.er1
9107 cat conftest.err >&5
9108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9109 (exit $ac_status); } &&
9110 { ac_try='test -z "$ac_c_werror_flag"
9111 || test ! -s conftest.err'
9112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9113 (eval $ac_try) 2>&5
9114 ac_status=$?
9115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9116 (exit $ac_status); }; } &&
9117 { ac_try='test -s conftest$ac_exeext'
9118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9119 (eval $ac_try) 2>&5
9120 ac_status=$?
9121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9122 (exit $ac_status); }; }; then
9123 emacs_cv_var___after_morecore_hook=yes
9124 else
9125 echo "$as_me: failed program was:" >&5
9126 sed 's/^/| /' conftest.$ac_ext >&5
9128 emacs_cv_var___after_morecore_hook=no
9130 rm -f conftest.err conftest.$ac_objext \
9131 conftest$ac_exeext conftest.$ac_ext
9133 echo "$as_me:$LINENO: result: $emacs_cv_var___after_morecore_hook" >&5
9134 echo "${ECHO_T}$emacs_cv_var___after_morecore_hook" >&6
9135 if test $emacs_cv_var___after_morecore_hook = no; then
9136 doug_lea_malloc=no
9138 if test "${system_malloc}" = "yes"; then
9139 GNU_MALLOC=no
9140 GNU_MALLOC_reason="
9141 (The GNU allocators don't work with this system configuration.)"
9143 if test "$doug_lea_malloc" = "yes" ; then
9144 if test "$GNU_MALLOC" = yes ; then
9145 GNU_MALLOC_reason="
9146 (Using Doug Lea's new malloc from the GNU C Library.)"
9149 cat >>confdefs.h <<\_ACEOF
9150 #define DOUG_LEA_MALLOC 1
9151 _ACEOF
9155 if test x"${REL_ALLOC}" = x; then
9156 REL_ALLOC=${GNU_MALLOC}
9162 for ac_header in stdlib.h unistd.h
9164 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9165 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9166 echo "$as_me:$LINENO: checking for $ac_header" >&5
9167 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9168 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9169 echo $ECHO_N "(cached) $ECHO_C" >&6
9171 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9172 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9173 else
9174 # Is the header compilable?
9175 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9176 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9177 cat >conftest.$ac_ext <<_ACEOF
9178 /* confdefs.h. */
9179 _ACEOF
9180 cat confdefs.h >>conftest.$ac_ext
9181 cat >>conftest.$ac_ext <<_ACEOF
9182 /* end confdefs.h. */
9183 $ac_includes_default
9184 #include <$ac_header>
9185 _ACEOF
9186 rm -f conftest.$ac_objext
9187 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9188 (eval $ac_compile) 2>conftest.er1
9189 ac_status=$?
9190 grep -v '^ *+' conftest.er1 >conftest.err
9191 rm -f conftest.er1
9192 cat conftest.err >&5
9193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9194 (exit $ac_status); } &&
9195 { ac_try='test -z "$ac_c_werror_flag"
9196 || test ! -s conftest.err'
9197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9198 (eval $ac_try) 2>&5
9199 ac_status=$?
9200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9201 (exit $ac_status); }; } &&
9202 { ac_try='test -s conftest.$ac_objext'
9203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9204 (eval $ac_try) 2>&5
9205 ac_status=$?
9206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9207 (exit $ac_status); }; }; then
9208 ac_header_compiler=yes
9209 else
9210 echo "$as_me: failed program was:" >&5
9211 sed 's/^/| /' conftest.$ac_ext >&5
9213 ac_header_compiler=no
9215 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9216 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9217 echo "${ECHO_T}$ac_header_compiler" >&6
9219 # Is the header present?
9220 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9221 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9222 cat >conftest.$ac_ext <<_ACEOF
9223 /* confdefs.h. */
9224 _ACEOF
9225 cat confdefs.h >>conftest.$ac_ext
9226 cat >>conftest.$ac_ext <<_ACEOF
9227 /* end confdefs.h. */
9228 #include <$ac_header>
9229 _ACEOF
9230 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9231 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9232 ac_status=$?
9233 grep -v '^ *+' conftest.er1 >conftest.err
9234 rm -f conftest.er1
9235 cat conftest.err >&5
9236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9237 (exit $ac_status); } >/dev/null; then
9238 if test -s conftest.err; then
9239 ac_cpp_err=$ac_c_preproc_warn_flag
9240 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9241 else
9242 ac_cpp_err=
9244 else
9245 ac_cpp_err=yes
9247 if test -z "$ac_cpp_err"; then
9248 ac_header_preproc=yes
9249 else
9250 echo "$as_me: failed program was:" >&5
9251 sed 's/^/| /' conftest.$ac_ext >&5
9253 ac_header_preproc=no
9255 rm -f conftest.err conftest.$ac_ext
9256 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9257 echo "${ECHO_T}$ac_header_preproc" >&6
9259 # So? What about this header?
9260 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9261 yes:no: )
9262 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9263 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9264 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9265 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9266 ac_header_preproc=yes
9268 no:yes:* )
9269 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9270 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9271 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9272 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9273 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9274 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9275 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9276 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9277 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9278 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9279 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9280 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9282 cat <<\_ASBOX
9283 ## ------------------------------------------ ##
9284 ## Report this to the AC_PACKAGE_NAME lists. ##
9285 ## ------------------------------------------ ##
9286 _ASBOX
9288 sed "s/^/$as_me: WARNING: /" >&2
9290 esac
9291 echo "$as_me:$LINENO: checking for $ac_header" >&5
9292 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9293 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9294 echo $ECHO_N "(cached) $ECHO_C" >&6
9295 else
9296 eval "$as_ac_Header=\$ac_header_preproc"
9298 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9299 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9302 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9303 cat >>confdefs.h <<_ACEOF
9304 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9305 _ACEOF
9309 done
9312 for ac_func in getpagesize
9314 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9315 echo "$as_me:$LINENO: checking for $ac_func" >&5
9316 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9317 if eval "test \"\${$as_ac_var+set}\" = set"; then
9318 echo $ECHO_N "(cached) $ECHO_C" >&6
9319 else
9320 cat >conftest.$ac_ext <<_ACEOF
9321 /* confdefs.h. */
9322 _ACEOF
9323 cat confdefs.h >>conftest.$ac_ext
9324 cat >>conftest.$ac_ext <<_ACEOF
9325 /* end confdefs.h. */
9326 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9327 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9328 #define $ac_func innocuous_$ac_func
9330 /* System header to define __stub macros and hopefully few prototypes,
9331 which can conflict with char $ac_func (); below.
9332 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9333 <limits.h> exists even on freestanding compilers. */
9335 #ifdef __STDC__
9336 # include <limits.h>
9337 #else
9338 # include <assert.h>
9339 #endif
9341 #undef $ac_func
9343 /* Override any gcc2 internal prototype to avoid an error. */
9344 #ifdef __cplusplus
9345 extern "C"
9347 #endif
9348 /* We use char because int might match the return type of a gcc2
9349 builtin and then its argument prototype would still apply. */
9350 char $ac_func ();
9351 /* The GNU C library defines this for functions which it implements
9352 to always fail with ENOSYS. Some functions are actually named
9353 something starting with __ and the normal name is an alias. */
9354 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9355 choke me
9356 #else
9357 char (*f) () = $ac_func;
9358 #endif
9359 #ifdef __cplusplus
9361 #endif
9364 main ()
9366 return f != $ac_func;
9368 return 0;
9370 _ACEOF
9371 rm -f conftest.$ac_objext conftest$ac_exeext
9372 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9373 (eval $ac_link) 2>conftest.er1
9374 ac_status=$?
9375 grep -v '^ *+' conftest.er1 >conftest.err
9376 rm -f conftest.er1
9377 cat conftest.err >&5
9378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9379 (exit $ac_status); } &&
9380 { ac_try='test -z "$ac_c_werror_flag"
9381 || test ! -s conftest.err'
9382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9383 (eval $ac_try) 2>&5
9384 ac_status=$?
9385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9386 (exit $ac_status); }; } &&
9387 { ac_try='test -s conftest$ac_exeext'
9388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9389 (eval $ac_try) 2>&5
9390 ac_status=$?
9391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9392 (exit $ac_status); }; }; then
9393 eval "$as_ac_var=yes"
9394 else
9395 echo "$as_me: failed program was:" >&5
9396 sed 's/^/| /' conftest.$ac_ext >&5
9398 eval "$as_ac_var=no"
9400 rm -f conftest.err conftest.$ac_objext \
9401 conftest$ac_exeext conftest.$ac_ext
9403 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9404 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9405 if test `eval echo '${'$as_ac_var'}'` = yes; then
9406 cat >>confdefs.h <<_ACEOF
9407 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9408 _ACEOF
9411 done
9413 echo "$as_me:$LINENO: checking for working mmap" >&5
9414 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
9415 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
9416 echo $ECHO_N "(cached) $ECHO_C" >&6
9417 else
9418 if test "$cross_compiling" = yes; then
9419 ac_cv_func_mmap_fixed_mapped=no
9420 else
9421 cat >conftest.$ac_ext <<_ACEOF
9422 /* confdefs.h. */
9423 _ACEOF
9424 cat confdefs.h >>conftest.$ac_ext
9425 cat >>conftest.$ac_ext <<_ACEOF
9426 /* end confdefs.h. */
9427 $ac_includes_default
9428 /* malloc might have been renamed as rpl_malloc. */
9429 #undef malloc
9431 /* Thanks to Mike Haertel and Jim Avera for this test.
9432 Here is a matrix of mmap possibilities:
9433 mmap private not fixed
9434 mmap private fixed at somewhere currently unmapped
9435 mmap private fixed at somewhere already mapped
9436 mmap shared not fixed
9437 mmap shared fixed at somewhere currently unmapped
9438 mmap shared fixed at somewhere already mapped
9439 For private mappings, we should verify that changes cannot be read()
9440 back from the file, nor mmap's back from the file at a different
9441 address. (There have been systems where private was not correctly
9442 implemented like the infamous i386 svr4.0, and systems where the
9443 VM page cache was not coherent with the file system buffer cache
9444 like early versions of FreeBSD and possibly contemporary NetBSD.)
9445 For shared mappings, we should conversely verify that changes get
9446 propagated back to all the places they're supposed to be.
9448 Grep wants private fixed already mapped.
9449 The main things grep needs to know about mmap are:
9450 * does it exist and is it safe to write into the mmap'd area
9451 * how to use it (BSD variants) */
9453 #include <fcntl.h>
9454 #include <sys/mman.h>
9456 #if !STDC_HEADERS && !HAVE_STDLIB_H
9457 char *malloc ();
9458 #endif
9460 /* This mess was copied from the GNU getpagesize.h. */
9461 #if !HAVE_GETPAGESIZE
9462 /* Assume that all systems that can run configure have sys/param.h. */
9463 # if !HAVE_SYS_PARAM_H
9464 # define HAVE_SYS_PARAM_H 1
9465 # endif
9467 # ifdef _SC_PAGESIZE
9468 # define getpagesize() sysconf(_SC_PAGESIZE)
9469 # else /* no _SC_PAGESIZE */
9470 # if HAVE_SYS_PARAM_H
9471 # include <sys/param.h>
9472 # ifdef EXEC_PAGESIZE
9473 # define getpagesize() EXEC_PAGESIZE
9474 # else /* no EXEC_PAGESIZE */
9475 # ifdef NBPG
9476 # define getpagesize() NBPG * CLSIZE
9477 # ifndef CLSIZE
9478 # define CLSIZE 1
9479 # endif /* no CLSIZE */
9480 # else /* no NBPG */
9481 # ifdef NBPC
9482 # define getpagesize() NBPC
9483 # else /* no NBPC */
9484 # ifdef PAGESIZE
9485 # define getpagesize() PAGESIZE
9486 # endif /* PAGESIZE */
9487 # endif /* no NBPC */
9488 # endif /* no NBPG */
9489 # endif /* no EXEC_PAGESIZE */
9490 # else /* no HAVE_SYS_PARAM_H */
9491 # define getpagesize() 8192 /* punt totally */
9492 # endif /* no HAVE_SYS_PARAM_H */
9493 # endif /* no _SC_PAGESIZE */
9495 #endif /* no HAVE_GETPAGESIZE */
9498 main ()
9500 char *data, *data2, *data3;
9501 int i, pagesize;
9502 int fd;
9504 pagesize = getpagesize ();
9506 /* First, make a file with some known garbage in it. */
9507 data = (char *) malloc (pagesize);
9508 if (!data)
9509 exit (1);
9510 for (i = 0; i < pagesize; ++i)
9511 *(data + i) = rand ();
9512 umask (0);
9513 fd = creat ("conftest.mmap", 0600);
9514 if (fd < 0)
9515 exit (1);
9516 if (write (fd, data, pagesize) != pagesize)
9517 exit (1);
9518 close (fd);
9520 /* Next, try to mmap the file at a fixed address which already has
9521 something else allocated at it. If we can, also make sure that
9522 we see the same garbage. */
9523 fd = open ("conftest.mmap", O_RDWR);
9524 if (fd < 0)
9525 exit (1);
9526 data2 = (char *) malloc (2 * pagesize);
9527 if (!data2)
9528 exit (1);
9529 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
9530 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
9531 MAP_PRIVATE | MAP_FIXED, fd, 0L))
9532 exit (1);
9533 for (i = 0; i < pagesize; ++i)
9534 if (*(data + i) != *(data2 + i))
9535 exit (1);
9537 /* Finally, make sure that changes to the mapped area do not
9538 percolate back to the file as seen by read(). (This is a bug on
9539 some variants of i386 svr4.0.) */
9540 for (i = 0; i < pagesize; ++i)
9541 *(data2 + i) = *(data2 + i) + 1;
9542 data3 = (char *) malloc (pagesize);
9543 if (!data3)
9544 exit (1);
9545 if (read (fd, data3, pagesize) != pagesize)
9546 exit (1);
9547 for (i = 0; i < pagesize; ++i)
9548 if (*(data + i) != *(data3 + i))
9549 exit (1);
9550 close (fd);
9551 exit (0);
9553 _ACEOF
9554 rm -f conftest$ac_exeext
9555 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9556 (eval $ac_link) 2>&5
9557 ac_status=$?
9558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9559 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9561 (eval $ac_try) 2>&5
9562 ac_status=$?
9563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9564 (exit $ac_status); }; }; then
9565 ac_cv_func_mmap_fixed_mapped=yes
9566 else
9567 echo "$as_me: program exited with status $ac_status" >&5
9568 echo "$as_me: failed program was:" >&5
9569 sed 's/^/| /' conftest.$ac_ext >&5
9571 ( exit $ac_status )
9572 ac_cv_func_mmap_fixed_mapped=no
9574 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9577 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
9578 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
9579 if test $ac_cv_func_mmap_fixed_mapped = yes; then
9581 cat >>confdefs.h <<\_ACEOF
9582 #define HAVE_MMAP 1
9583 _ACEOF
9586 rm -f conftest.mmap
9588 if test $use_mmap_for_buffers = yes; then
9589 REL_ALLOC=no
9592 LIBS="$libsrc_libs $LIBS"
9595 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
9596 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
9597 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
9598 echo $ECHO_N "(cached) $ECHO_C" >&6
9599 else
9600 ac_check_lib_save_LIBS=$LIBS
9601 LIBS="-ldnet $LIBS"
9602 cat >conftest.$ac_ext <<_ACEOF
9603 /* confdefs.h. */
9604 _ACEOF
9605 cat confdefs.h >>conftest.$ac_ext
9606 cat >>conftest.$ac_ext <<_ACEOF
9607 /* end confdefs.h. */
9609 /* Override any gcc2 internal prototype to avoid an error. */
9610 #ifdef __cplusplus
9611 extern "C"
9612 #endif
9613 /* We use char because int might match the return type of a gcc2
9614 builtin and then its argument prototype would still apply. */
9615 char dnet_ntoa ();
9617 main ()
9619 dnet_ntoa ();
9621 return 0;
9623 _ACEOF
9624 rm -f conftest.$ac_objext conftest$ac_exeext
9625 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9626 (eval $ac_link) 2>conftest.er1
9627 ac_status=$?
9628 grep -v '^ *+' conftest.er1 >conftest.err
9629 rm -f conftest.er1
9630 cat conftest.err >&5
9631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9632 (exit $ac_status); } &&
9633 { ac_try='test -z "$ac_c_werror_flag"
9634 || test ! -s conftest.err'
9635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9636 (eval $ac_try) 2>&5
9637 ac_status=$?
9638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9639 (exit $ac_status); }; } &&
9640 { ac_try='test -s conftest$ac_exeext'
9641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9642 (eval $ac_try) 2>&5
9643 ac_status=$?
9644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9645 (exit $ac_status); }; }; then
9646 ac_cv_lib_dnet_dnet_ntoa=yes
9647 else
9648 echo "$as_me: failed program was:" >&5
9649 sed 's/^/| /' conftest.$ac_ext >&5
9651 ac_cv_lib_dnet_dnet_ntoa=no
9653 rm -f conftest.err conftest.$ac_objext \
9654 conftest$ac_exeext conftest.$ac_ext
9655 LIBS=$ac_check_lib_save_LIBS
9657 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
9658 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
9659 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
9660 cat >>confdefs.h <<_ACEOF
9661 #define HAVE_LIBDNET 1
9662 _ACEOF
9664 LIBS="-ldnet $LIBS"
9669 echo "$as_me:$LINENO: checking for main in -lXbsd" >&5
9670 echo $ECHO_N "checking for main in -lXbsd... $ECHO_C" >&6
9671 if test "${ac_cv_lib_Xbsd_main+set}" = set; then
9672 echo $ECHO_N "(cached) $ECHO_C" >&6
9673 else
9674 ac_check_lib_save_LIBS=$LIBS
9675 LIBS="-lXbsd $LIBS"
9676 cat >conftest.$ac_ext <<_ACEOF
9677 /* confdefs.h. */
9678 _ACEOF
9679 cat confdefs.h >>conftest.$ac_ext
9680 cat >>conftest.$ac_ext <<_ACEOF
9681 /* end confdefs.h. */
9685 main ()
9687 main ();
9689 return 0;
9691 _ACEOF
9692 rm -f conftest.$ac_objext conftest$ac_exeext
9693 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9694 (eval $ac_link) 2>conftest.er1
9695 ac_status=$?
9696 grep -v '^ *+' conftest.er1 >conftest.err
9697 rm -f conftest.er1
9698 cat conftest.err >&5
9699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9700 (exit $ac_status); } &&
9701 { ac_try='test -z "$ac_c_werror_flag"
9702 || test ! -s conftest.err'
9703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9704 (eval $ac_try) 2>&5
9705 ac_status=$?
9706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9707 (exit $ac_status); }; } &&
9708 { ac_try='test -s conftest$ac_exeext'
9709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9710 (eval $ac_try) 2>&5
9711 ac_status=$?
9712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9713 (exit $ac_status); }; }; then
9714 ac_cv_lib_Xbsd_main=yes
9715 else
9716 echo "$as_me: failed program was:" >&5
9717 sed 's/^/| /' conftest.$ac_ext >&5
9719 ac_cv_lib_Xbsd_main=no
9721 rm -f conftest.err conftest.$ac_objext \
9722 conftest$ac_exeext conftest.$ac_ext
9723 LIBS=$ac_check_lib_save_LIBS
9725 echo "$as_me:$LINENO: result: $ac_cv_lib_Xbsd_main" >&5
9726 echo "${ECHO_T}$ac_cv_lib_Xbsd_main" >&6
9727 if test $ac_cv_lib_Xbsd_main = yes; then
9728 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
9733 echo "$as_me:$LINENO: checking for cma_open in -lpthreads" >&5
9734 echo $ECHO_N "checking for cma_open in -lpthreads... $ECHO_C" >&6
9735 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then
9736 echo $ECHO_N "(cached) $ECHO_C" >&6
9737 else
9738 ac_check_lib_save_LIBS=$LIBS
9739 LIBS="-lpthreads $LIBS"
9740 cat >conftest.$ac_ext <<_ACEOF
9741 /* confdefs.h. */
9742 _ACEOF
9743 cat confdefs.h >>conftest.$ac_ext
9744 cat >>conftest.$ac_ext <<_ACEOF
9745 /* end confdefs.h. */
9747 /* Override any gcc2 internal prototype to avoid an error. */
9748 #ifdef __cplusplus
9749 extern "C"
9750 #endif
9751 /* We use char because int might match the return type of a gcc2
9752 builtin and then its argument prototype would still apply. */
9753 char cma_open ();
9755 main ()
9757 cma_open ();
9759 return 0;
9761 _ACEOF
9762 rm -f conftest.$ac_objext conftest$ac_exeext
9763 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9764 (eval $ac_link) 2>conftest.er1
9765 ac_status=$?
9766 grep -v '^ *+' conftest.er1 >conftest.err
9767 rm -f conftest.er1
9768 cat conftest.err >&5
9769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9770 (exit $ac_status); } &&
9771 { ac_try='test -z "$ac_c_werror_flag"
9772 || test ! -s conftest.err'
9773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9774 (eval $ac_try) 2>&5
9775 ac_status=$?
9776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9777 (exit $ac_status); }; } &&
9778 { ac_try='test -s conftest$ac_exeext'
9779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9780 (eval $ac_try) 2>&5
9781 ac_status=$?
9782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9783 (exit $ac_status); }; }; then
9784 ac_cv_lib_pthreads_cma_open=yes
9785 else
9786 echo "$as_me: failed program was:" >&5
9787 sed 's/^/| /' conftest.$ac_ext >&5
9789 ac_cv_lib_pthreads_cma_open=no
9791 rm -f conftest.err conftest.$ac_objext \
9792 conftest$ac_exeext conftest.$ac_ext
9793 LIBS=$ac_check_lib_save_LIBS
9795 echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_cma_open" >&5
9796 echo "${ECHO_T}$ac_cv_lib_pthreads_cma_open" >&6
9797 if test $ac_cv_lib_pthreads_cma_open = yes; then
9798 cat >>confdefs.h <<_ACEOF
9799 #define HAVE_LIBPTHREADS 1
9800 _ACEOF
9802 LIBS="-lpthreads $LIBS"
9807 echo "$as_me:$LINENO: checking for XFree86 in /usr/X386" >&5
9808 echo $ECHO_N "checking for XFree86 in /usr/X386... $ECHO_C" >&6
9809 if test -d /usr/X386/include; then
9810 HAVE_XFREE386=yes
9811 : ${C_SWITCH_X_SITE="-I/usr/X386/include"}
9812 else
9813 HAVE_XFREE386=no
9815 echo "$as_me:$LINENO: result: $HAVE_XFREE386" >&5
9816 echo "${ECHO_T}$HAVE_XFREE386" >&6
9819 case ${host_os} in
9820 aix*)
9821 echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
9822 echo $ECHO_N "checking for -bbigtoc option... $ECHO_C" >&6
9823 if test "${gdb_cv_bigtoc+set}" = set; then
9824 echo $ECHO_N "(cached) $ECHO_C" >&6
9825 else
9827 case $GCC in
9828 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
9829 *) gdb_cv_bigtoc=-bbigtoc ;;
9830 esac
9832 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
9833 cat >conftest.$ac_ext <<_ACEOF
9834 /* confdefs.h. */
9835 _ACEOF
9836 cat confdefs.h >>conftest.$ac_ext
9837 cat >>conftest.$ac_ext <<_ACEOF
9838 /* end confdefs.h. */
9841 main ()
9843 int i;
9845 return 0;
9847 _ACEOF
9848 rm -f conftest.$ac_objext conftest$ac_exeext
9849 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9850 (eval $ac_link) 2>conftest.er1
9851 ac_status=$?
9852 grep -v '^ *+' conftest.er1 >conftest.err
9853 rm -f conftest.er1
9854 cat conftest.err >&5
9855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9856 (exit $ac_status); } &&
9857 { ac_try='test -z "$ac_c_werror_flag"
9858 || test ! -s conftest.err'
9859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9860 (eval $ac_try) 2>&5
9861 ac_status=$?
9862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9863 (exit $ac_status); }; } &&
9864 { ac_try='test -s conftest$ac_exeext'
9865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9866 (eval $ac_try) 2>&5
9867 ac_status=$?
9868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9869 (exit $ac_status); }; }; then
9871 else
9872 echo "$as_me: failed program was:" >&5
9873 sed 's/^/| /' conftest.$ac_ext >&5
9875 gdb_cv_bigtoc=
9877 rm -f conftest.err conftest.$ac_objext \
9878 conftest$ac_exeext conftest.$ac_ext
9881 echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
9882 echo "${ECHO_T}$gdb_cv_bigtoc" >&6
9884 esac
9886 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
9887 # used for the tests that follow. We set them back to REAL_CFLAGS and
9888 # REAL_CPPFLAGS later on.
9890 REAL_CPPFLAGS="$CPPFLAGS"
9892 if test "${HAVE_X11}" = "yes"; then
9893 DEFS="$C_SWITCH_X_SITE $DEFS"
9894 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
9895 LIBS="$LIBX $LIBS"
9896 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
9897 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
9899 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
9900 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
9901 # but it's more convenient here to set LD_RUN_PATH
9902 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
9903 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
9904 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
9905 export LD_RUN_PATH
9908 if test "${opsys}" = "gnu-linux"; then
9909 echo "$as_me:$LINENO: checking whether X on GNU/Linux needs -b to link" >&5
9910 echo $ECHO_N "checking whether X on GNU/Linux needs -b to link... $ECHO_C" >&6
9911 cat >conftest.$ac_ext <<_ACEOF
9912 /* confdefs.h. */
9913 _ACEOF
9914 cat confdefs.h >>conftest.$ac_ext
9915 cat >>conftest.$ac_ext <<_ACEOF
9916 /* end confdefs.h. */
9919 main ()
9921 XOpenDisplay ("foo");
9923 return 0;
9925 _ACEOF
9926 rm -f conftest.$ac_objext conftest$ac_exeext
9927 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9928 (eval $ac_link) 2>conftest.er1
9929 ac_status=$?
9930 grep -v '^ *+' conftest.er1 >conftest.err
9931 rm -f conftest.er1
9932 cat conftest.err >&5
9933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9934 (exit $ac_status); } &&
9935 { ac_try='test -z "$ac_c_werror_flag"
9936 || test ! -s conftest.err'
9937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9938 (eval $ac_try) 2>&5
9939 ac_status=$?
9940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9941 (exit $ac_status); }; } &&
9942 { ac_try='test -s conftest$ac_exeext'
9943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9944 (eval $ac_try) 2>&5
9945 ac_status=$?
9946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9947 (exit $ac_status); }; }; then
9948 xlinux_first_failure=no
9949 else
9950 echo "$as_me: failed program was:" >&5
9951 sed 's/^/| /' conftest.$ac_ext >&5
9953 xlinux_first_failure=yes
9955 rm -f conftest.err conftest.$ac_objext \
9956 conftest$ac_exeext conftest.$ac_ext
9957 if test "${xlinux_first_failure}" = "yes"; then
9958 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE"
9959 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE"
9960 OLD_CPPFLAGS="$CPPFLAGS"
9961 OLD_LIBS="$LIBS"
9962 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout"
9963 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout"
9964 CPPFLAGS="$CPPFLAGS -b i486-linuxaout"
9965 LIBS="$LIBS -b i486-linuxaout"
9966 cat >conftest.$ac_ext <<_ACEOF
9967 /* confdefs.h. */
9968 _ACEOF
9969 cat confdefs.h >>conftest.$ac_ext
9970 cat >>conftest.$ac_ext <<_ACEOF
9971 /* end confdefs.h. */
9974 main ()
9976 XOpenDisplay ("foo");
9978 return 0;
9980 _ACEOF
9981 rm -f conftest.$ac_objext conftest$ac_exeext
9982 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9983 (eval $ac_link) 2>conftest.er1
9984 ac_status=$?
9985 grep -v '^ *+' conftest.er1 >conftest.err
9986 rm -f conftest.er1
9987 cat conftest.err >&5
9988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9989 (exit $ac_status); } &&
9990 { ac_try='test -z "$ac_c_werror_flag"
9991 || test ! -s conftest.err'
9992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9993 (eval $ac_try) 2>&5
9994 ac_status=$?
9995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9996 (exit $ac_status); }; } &&
9997 { ac_try='test -s conftest$ac_exeext'
9998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9999 (eval $ac_try) 2>&5
10000 ac_status=$?
10001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10002 (exit $ac_status); }; }; then
10003 xlinux_second_failure=no
10004 else
10005 echo "$as_me: failed program was:" >&5
10006 sed 's/^/| /' conftest.$ac_ext >&5
10008 xlinux_second_failure=yes
10010 rm -f conftest.err conftest.$ac_objext \
10011 conftest$ac_exeext conftest.$ac_ext
10012 if test "${xlinux_second_failure}" = "yes"; then
10013 # If we get the same failure with -b, there is no use adding -b.
10014 # So take it out. This plays safe.
10015 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
10016 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
10017 CPPFLAGS="$OLD_CPPFLAGS"
10018 LIBS="$OLD_LIBS"
10019 echo "$as_me:$LINENO: result: no" >&5
10020 echo "${ECHO_T}no" >&6
10021 else
10022 echo "$as_me:$LINENO: result: yes" >&5
10023 echo "${ECHO_T}yes" >&6
10025 else
10026 echo "$as_me:$LINENO: result: no" >&5
10027 echo "${ECHO_T}no" >&6
10031 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
10032 # header files included from there.
10033 echo "$as_me:$LINENO: checking for Xkb" >&5
10034 echo $ECHO_N "checking for Xkb... $ECHO_C" >&6
10035 cat >conftest.$ac_ext <<_ACEOF
10036 /* confdefs.h. */
10037 _ACEOF
10038 cat confdefs.h >>conftest.$ac_ext
10039 cat >>conftest.$ac_ext <<_ACEOF
10040 /* end confdefs.h. */
10041 #include <X11/Xlib.h>
10042 #include <X11/XKBlib.h>
10044 main ()
10046 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
10048 return 0;
10050 _ACEOF
10051 rm -f conftest.$ac_objext conftest$ac_exeext
10052 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10053 (eval $ac_link) 2>conftest.er1
10054 ac_status=$?
10055 grep -v '^ *+' conftest.er1 >conftest.err
10056 rm -f conftest.er1
10057 cat conftest.err >&5
10058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10059 (exit $ac_status); } &&
10060 { ac_try='test -z "$ac_c_werror_flag"
10061 || test ! -s conftest.err'
10062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10063 (eval $ac_try) 2>&5
10064 ac_status=$?
10065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10066 (exit $ac_status); }; } &&
10067 { ac_try='test -s conftest$ac_exeext'
10068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10069 (eval $ac_try) 2>&5
10070 ac_status=$?
10071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10072 (exit $ac_status); }; }; then
10073 emacs_xkb=yes
10074 else
10075 echo "$as_me: failed program was:" >&5
10076 sed 's/^/| /' conftest.$ac_ext >&5
10078 emacs_xkb=no
10080 rm -f conftest.err conftest.$ac_objext \
10081 conftest$ac_exeext conftest.$ac_ext
10082 echo "$as_me:$LINENO: result: $emacs_xkb" >&5
10083 echo "${ECHO_T}$emacs_xkb" >&6
10084 if test $emacs_xkb = yes; then
10086 cat >>confdefs.h <<\_ACEOF
10087 #define HAVE_XKBGETKEYBOARD 1
10088 _ACEOF
10096 for ac_func in XrmSetDatabase XScreenResourceString \
10097 XScreenNumberOfScreen XSetWMProtocols
10099 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10100 echo "$as_me:$LINENO: checking for $ac_func" >&5
10101 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10102 if eval "test \"\${$as_ac_var+set}\" = set"; then
10103 echo $ECHO_N "(cached) $ECHO_C" >&6
10104 else
10105 cat >conftest.$ac_ext <<_ACEOF
10106 /* confdefs.h. */
10107 _ACEOF
10108 cat confdefs.h >>conftest.$ac_ext
10109 cat >>conftest.$ac_ext <<_ACEOF
10110 /* end confdefs.h. */
10111 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10112 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10113 #define $ac_func innocuous_$ac_func
10115 /* System header to define __stub macros and hopefully few prototypes,
10116 which can conflict with char $ac_func (); below.
10117 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10118 <limits.h> exists even on freestanding compilers. */
10120 #ifdef __STDC__
10121 # include <limits.h>
10122 #else
10123 # include <assert.h>
10124 #endif
10126 #undef $ac_func
10128 /* Override any gcc2 internal prototype to avoid an error. */
10129 #ifdef __cplusplus
10130 extern "C"
10132 #endif
10133 /* We use char because int might match the return type of a gcc2
10134 builtin and then its argument prototype would still apply. */
10135 char $ac_func ();
10136 /* The GNU C library defines this for functions which it implements
10137 to always fail with ENOSYS. Some functions are actually named
10138 something starting with __ and the normal name is an alias. */
10139 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10140 choke me
10141 #else
10142 char (*f) () = $ac_func;
10143 #endif
10144 #ifdef __cplusplus
10146 #endif
10149 main ()
10151 return f != $ac_func;
10153 return 0;
10155 _ACEOF
10156 rm -f conftest.$ac_objext conftest$ac_exeext
10157 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10158 (eval $ac_link) 2>conftest.er1
10159 ac_status=$?
10160 grep -v '^ *+' conftest.er1 >conftest.err
10161 rm -f conftest.er1
10162 cat conftest.err >&5
10163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10164 (exit $ac_status); } &&
10165 { ac_try='test -z "$ac_c_werror_flag"
10166 || test ! -s conftest.err'
10167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10168 (eval $ac_try) 2>&5
10169 ac_status=$?
10170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10171 (exit $ac_status); }; } &&
10172 { ac_try='test -s conftest$ac_exeext'
10173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10174 (eval $ac_try) 2>&5
10175 ac_status=$?
10176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10177 (exit $ac_status); }; }; then
10178 eval "$as_ac_var=yes"
10179 else
10180 echo "$as_me: failed program was:" >&5
10181 sed 's/^/| /' conftest.$ac_ext >&5
10183 eval "$as_ac_var=no"
10185 rm -f conftest.err conftest.$ac_objext \
10186 conftest$ac_exeext conftest.$ac_ext
10188 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10189 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10190 if test `eval echo '${'$as_ac_var'}'` = yes; then
10191 cat >>confdefs.h <<_ACEOF
10192 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10193 _ACEOF
10196 done
10200 if test "${window_system}" = "x11"; then
10201 echo "$as_me:$LINENO: checking X11 version 6" >&5
10202 echo $ECHO_N "checking X11 version 6... $ECHO_C" >&6
10203 if test "${emacs_cv_x11_version_6+set}" = set; then
10204 echo $ECHO_N "(cached) $ECHO_C" >&6
10205 else
10206 cat >conftest.$ac_ext <<_ACEOF
10207 /* confdefs.h. */
10208 _ACEOF
10209 cat confdefs.h >>conftest.$ac_ext
10210 cat >>conftest.$ac_ext <<_ACEOF
10211 /* end confdefs.h. */
10212 #include <X11/Xlib.h>
10214 main ()
10216 #if XlibSpecificationRelease < 6
10217 fail;
10218 #endif
10221 return 0;
10223 _ACEOF
10224 rm -f conftest.$ac_objext conftest$ac_exeext
10225 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10226 (eval $ac_link) 2>conftest.er1
10227 ac_status=$?
10228 grep -v '^ *+' conftest.er1 >conftest.err
10229 rm -f conftest.er1
10230 cat conftest.err >&5
10231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10232 (exit $ac_status); } &&
10233 { ac_try='test -z "$ac_c_werror_flag"
10234 || test ! -s conftest.err'
10235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10236 (eval $ac_try) 2>&5
10237 ac_status=$?
10238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10239 (exit $ac_status); }; } &&
10240 { ac_try='test -s conftest$ac_exeext'
10241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10242 (eval $ac_try) 2>&5
10243 ac_status=$?
10244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10245 (exit $ac_status); }; }; then
10246 emacs_cv_x11_version_6=yes
10247 else
10248 echo "$as_me: failed program was:" >&5
10249 sed 's/^/| /' conftest.$ac_ext >&5
10251 emacs_cv_x11_version_6=no
10253 rm -f conftest.err conftest.$ac_objext \
10254 conftest$ac_exeext conftest.$ac_ext
10257 if test $emacs_cv_x11_version_6 = yes; then
10258 echo "$as_me:$LINENO: result: 6 or newer" >&5
10259 echo "${ECHO_T}6 or newer" >&6
10261 cat >>confdefs.h <<\_ACEOF
10262 #define HAVE_X11R6 1
10263 _ACEOF
10265 else
10266 echo "$as_me:$LINENO: result: before 6" >&5
10267 echo "${ECHO_T}before 6" >&6
10271 if test "${window_system}" = "x11"; then
10272 echo "$as_me:$LINENO: checking X11 version 5" >&5
10273 echo $ECHO_N "checking X11 version 5... $ECHO_C" >&6
10274 if test "${emacs_cv_x11_version_5+set}" = set; then
10275 echo $ECHO_N "(cached) $ECHO_C" >&6
10276 else
10277 cat >conftest.$ac_ext <<_ACEOF
10278 /* confdefs.h. */
10279 _ACEOF
10280 cat confdefs.h >>conftest.$ac_ext
10281 cat >>conftest.$ac_ext <<_ACEOF
10282 /* end confdefs.h. */
10283 #include <X11/Xlib.h>
10285 main ()
10287 #if XlibSpecificationRelease < 5
10288 fail;
10289 #endif
10292 return 0;
10294 _ACEOF
10295 rm -f conftest.$ac_objext conftest$ac_exeext
10296 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10297 (eval $ac_link) 2>conftest.er1
10298 ac_status=$?
10299 grep -v '^ *+' conftest.er1 >conftest.err
10300 rm -f conftest.er1
10301 cat conftest.err >&5
10302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10303 (exit $ac_status); } &&
10304 { ac_try='test -z "$ac_c_werror_flag"
10305 || test ! -s conftest.err'
10306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10307 (eval $ac_try) 2>&5
10308 ac_status=$?
10309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10310 (exit $ac_status); }; } &&
10311 { ac_try='test -s conftest$ac_exeext'
10312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10313 (eval $ac_try) 2>&5
10314 ac_status=$?
10315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10316 (exit $ac_status); }; }; then
10317 emacs_cv_x11_version_5=yes
10318 else
10319 echo "$as_me: failed program was:" >&5
10320 sed 's/^/| /' conftest.$ac_ext >&5
10322 emacs_cv_x11_version_5=no
10324 rm -f conftest.err conftest.$ac_objext \
10325 conftest$ac_exeext conftest.$ac_ext
10328 if test $emacs_cv_x11_version_5 = yes; then
10329 echo "$as_me:$LINENO: result: 5 or newer" >&5
10330 echo "${ECHO_T}5 or newer" >&6
10331 HAVE_X11R5=yes
10333 cat >>confdefs.h <<\_ACEOF
10334 #define HAVE_X11R5 1
10335 _ACEOF
10337 else
10338 HAVE_X11R5=no
10339 echo "$as_me:$LINENO: result: before 5" >&5
10340 echo "${ECHO_T}before 5" >&6
10344 HAVE_GTK=no
10345 if test "${with_gtk}" = "yes" || test "$USE_X_TOOLKIT" = "gtk"; then
10346 if test "$USE_X_TOOLKIT" != "none" && test "$USE_X_TOOLKIT" != "maybe"; then
10347 { { echo "$as_me:$LINENO: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&5
10348 echo "$as_me: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&2;}
10349 { (exit 1); exit 1; }; };
10351 GLIB_REQUIRED=2.4
10352 GTK_REQUIRED=2.4
10353 GTK_MODULES="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
10355 if test "X${with_pkg_config_prog}" != X; then
10356 PKG_CONFIG="${with_pkg_config_prog}"
10359 succeeded=no
10361 if test -z "$PKG_CONFIG"; then
10362 # Extract the first word of "pkg-config", so it can be a program name with args.
10363 set dummy pkg-config; ac_word=$2
10364 echo "$as_me:$LINENO: checking for $ac_word" >&5
10365 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10366 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
10367 echo $ECHO_N "(cached) $ECHO_C" >&6
10368 else
10369 case $PKG_CONFIG in
10370 [\\/]* | ?:[\\/]*)
10371 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10374 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10375 for as_dir in $PATH
10377 IFS=$as_save_IFS
10378 test -z "$as_dir" && as_dir=.
10379 for ac_exec_ext in '' $ac_executable_extensions; do
10380 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10381 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10382 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10383 break 2
10385 done
10386 done
10388 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10390 esac
10392 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10394 if test -n "$PKG_CONFIG"; then
10395 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
10396 echo "${ECHO_T}$PKG_CONFIG" >&6
10397 else
10398 echo "$as_me:$LINENO: result: no" >&5
10399 echo "${ECHO_T}no" >&6
10404 if test "$PKG_CONFIG" = "no" ; then
10405 { { echo "$as_me:$LINENO: error:
10406 *** 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
10407 echo "$as_me: error:
10408 *** 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;}
10409 { (exit 1); exit 1; }; }
10410 else
10411 PKG_CONFIG_MIN_VERSION=0.9.0
10412 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10413 echo "$as_me:$LINENO: checking for $GTK_MODULES" >&5
10414 echo $ECHO_N "checking for $GTK_MODULES... $ECHO_C" >&6
10416 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
10417 echo "$as_me:$LINENO: result: yes" >&5
10418 echo "${ECHO_T}yes" >&6
10419 succeeded=yes
10421 echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
10422 echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6
10423 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"`
10424 echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
10425 echo "${ECHO_T}$GTK_CFLAGS" >&6
10427 echo "$as_me:$LINENO: checking GTK_LIBS" >&5
10428 echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6
10429 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"`
10430 echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
10431 echo "${ECHO_T}$GTK_LIBS" >&6
10432 else
10433 echo "$as_me:$LINENO: result: no" >&5
10434 echo "${ECHO_T}no" >&6
10435 GTK_CFLAGS=""
10436 GTK_LIBS=""
10437 ## If we have a custom action on failure, don't print errors, but
10438 ## do set a variable so people can do so.
10439 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
10440 echo $GTK_PKG_ERRORS
10445 else
10446 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10447 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10451 if test $succeeded = yes; then
10453 else
10454 { { 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
10455 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;}
10456 { (exit 1); exit 1; }; }
10461 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS"
10462 CFLAGS="$CFLAGS $GTK_CFLAGS"
10463 LIBS="$GTK_LIBS $LIBS"
10464 HAVE_GTK=yes
10466 cat >>confdefs.h <<\_ACEOF
10467 #define HAVE_GTK 1
10468 _ACEOF
10470 USE_X_TOOLKIT=none
10472 if test "$with_toolkit_scroll_bars" != no; then
10473 with_toolkit_scroll_bars=yes
10476 HAVE_GTK_MULTIDISPLAY=no
10478 for ac_func in gdk_display_open
10480 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10481 echo "$as_me:$LINENO: checking for $ac_func" >&5
10482 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10483 if eval "test \"\${$as_ac_var+set}\" = set"; then
10484 echo $ECHO_N "(cached) $ECHO_C" >&6
10485 else
10486 cat >conftest.$ac_ext <<_ACEOF
10487 /* confdefs.h. */
10488 _ACEOF
10489 cat confdefs.h >>conftest.$ac_ext
10490 cat >>conftest.$ac_ext <<_ACEOF
10491 /* end confdefs.h. */
10492 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10493 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10494 #define $ac_func innocuous_$ac_func
10496 /* System header to define __stub macros and hopefully few prototypes,
10497 which can conflict with char $ac_func (); below.
10498 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10499 <limits.h> exists even on freestanding compilers. */
10501 #ifdef __STDC__
10502 # include <limits.h>
10503 #else
10504 # include <assert.h>
10505 #endif
10507 #undef $ac_func
10509 /* Override any gcc2 internal prototype to avoid an error. */
10510 #ifdef __cplusplus
10511 extern "C"
10513 #endif
10514 /* We use char because int might match the return type of a gcc2
10515 builtin and then its argument prototype would still apply. */
10516 char $ac_func ();
10517 /* The GNU C library defines this for functions which it implements
10518 to always fail with ENOSYS. Some functions are actually named
10519 something starting with __ and the normal name is an alias. */
10520 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10521 choke me
10522 #else
10523 char (*f) () = $ac_func;
10524 #endif
10525 #ifdef __cplusplus
10527 #endif
10530 main ()
10532 return f != $ac_func;
10534 return 0;
10536 _ACEOF
10537 rm -f conftest.$ac_objext conftest$ac_exeext
10538 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10539 (eval $ac_link) 2>conftest.er1
10540 ac_status=$?
10541 grep -v '^ *+' conftest.er1 >conftest.err
10542 rm -f conftest.er1
10543 cat conftest.err >&5
10544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10545 (exit $ac_status); } &&
10546 { ac_try='test -z "$ac_c_werror_flag"
10547 || test ! -s conftest.err'
10548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10549 (eval $ac_try) 2>&5
10550 ac_status=$?
10551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10552 (exit $ac_status); }; } &&
10553 { ac_try='test -s conftest$ac_exeext'
10554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10555 (eval $ac_try) 2>&5
10556 ac_status=$?
10557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10558 (exit $ac_status); }; }; then
10559 eval "$as_ac_var=yes"
10560 else
10561 echo "$as_me: failed program was:" >&5
10562 sed 's/^/| /' conftest.$ac_ext >&5
10564 eval "$as_ac_var=no"
10566 rm -f conftest.err conftest.$ac_objext \
10567 conftest$ac_exeext conftest.$ac_ext
10569 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10570 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10571 if test `eval echo '${'$as_ac_var'}'` = yes; then
10572 cat >>confdefs.h <<_ACEOF
10573 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10574 _ACEOF
10575 HAVE_GTK_MULTIDISPLAY=yes
10577 done
10579 if test "${HAVE_GTK_MULTIDISPLAY}" = "yes"; then
10581 cat >>confdefs.h <<\_ACEOF
10582 #define HAVE_GTK_MULTIDISPLAY 1
10583 _ACEOF
10586 HAVE_GTK_FILE_SELECTION=no
10588 for ac_func in gtk_file_selection_new
10590 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10591 echo "$as_me:$LINENO: checking for $ac_func" >&5
10592 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10593 if eval "test \"\${$as_ac_var+set}\" = set"; then
10594 echo $ECHO_N "(cached) $ECHO_C" >&6
10595 else
10596 cat >conftest.$ac_ext <<_ACEOF
10597 /* confdefs.h. */
10598 _ACEOF
10599 cat confdefs.h >>conftest.$ac_ext
10600 cat >>conftest.$ac_ext <<_ACEOF
10601 /* end confdefs.h. */
10602 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10603 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10604 #define $ac_func innocuous_$ac_func
10606 /* System header to define __stub macros and hopefully few prototypes,
10607 which can conflict with char $ac_func (); below.
10608 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10609 <limits.h> exists even on freestanding compilers. */
10611 #ifdef __STDC__
10612 # include <limits.h>
10613 #else
10614 # include <assert.h>
10615 #endif
10617 #undef $ac_func
10619 /* Override any gcc2 internal prototype to avoid an error. */
10620 #ifdef __cplusplus
10621 extern "C"
10623 #endif
10624 /* We use char because int might match the return type of a gcc2
10625 builtin and then its argument prototype would still apply. */
10626 char $ac_func ();
10627 /* The GNU C library defines this for functions which it implements
10628 to always fail with ENOSYS. Some functions are actually named
10629 something starting with __ and the normal name is an alias. */
10630 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10631 choke me
10632 #else
10633 char (*f) () = $ac_func;
10634 #endif
10635 #ifdef __cplusplus
10637 #endif
10640 main ()
10642 return f != $ac_func;
10644 return 0;
10646 _ACEOF
10647 rm -f conftest.$ac_objext conftest$ac_exeext
10648 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10649 (eval $ac_link) 2>conftest.er1
10650 ac_status=$?
10651 grep -v '^ *+' conftest.er1 >conftest.err
10652 rm -f conftest.er1
10653 cat conftest.err >&5
10654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10655 (exit $ac_status); } &&
10656 { ac_try='test -z "$ac_c_werror_flag"
10657 || test ! -s conftest.err'
10658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10659 (eval $ac_try) 2>&5
10660 ac_status=$?
10661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10662 (exit $ac_status); }; } &&
10663 { ac_try='test -s conftest$ac_exeext'
10664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10665 (eval $ac_try) 2>&5
10666 ac_status=$?
10667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10668 (exit $ac_status); }; }; then
10669 eval "$as_ac_var=yes"
10670 else
10671 echo "$as_me: failed program was:" >&5
10672 sed 's/^/| /' conftest.$ac_ext >&5
10674 eval "$as_ac_var=no"
10676 rm -f conftest.err conftest.$ac_objext \
10677 conftest$ac_exeext conftest.$ac_ext
10679 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10680 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10681 if test `eval echo '${'$as_ac_var'}'` = yes; then
10682 cat >>confdefs.h <<_ACEOF
10683 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10684 _ACEOF
10685 HAVE_GTK_FILE_SELECTION=yes
10687 done
10690 HAVE_GTK_FILE_CHOOSER=no
10692 for ac_func in gtk_file_chooser_dialog_new
10694 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10695 echo "$as_me:$LINENO: checking for $ac_func" >&5
10696 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10697 if eval "test \"\${$as_ac_var+set}\" = set"; then
10698 echo $ECHO_N "(cached) $ECHO_C" >&6
10699 else
10700 cat >conftest.$ac_ext <<_ACEOF
10701 /* confdefs.h. */
10702 _ACEOF
10703 cat confdefs.h >>conftest.$ac_ext
10704 cat >>conftest.$ac_ext <<_ACEOF
10705 /* end confdefs.h. */
10706 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10707 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10708 #define $ac_func innocuous_$ac_func
10710 /* System header to define __stub macros and hopefully few prototypes,
10711 which can conflict with char $ac_func (); below.
10712 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10713 <limits.h> exists even on freestanding compilers. */
10715 #ifdef __STDC__
10716 # include <limits.h>
10717 #else
10718 # include <assert.h>
10719 #endif
10721 #undef $ac_func
10723 /* Override any gcc2 internal prototype to avoid an error. */
10724 #ifdef __cplusplus
10725 extern "C"
10727 #endif
10728 /* We use char because int might match the return type of a gcc2
10729 builtin and then its argument prototype would still apply. */
10730 char $ac_func ();
10731 /* The GNU C library defines this for functions which it implements
10732 to always fail with ENOSYS. Some functions are actually named
10733 something starting with __ and the normal name is an alias. */
10734 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10735 choke me
10736 #else
10737 char (*f) () = $ac_func;
10738 #endif
10739 #ifdef __cplusplus
10741 #endif
10744 main ()
10746 return f != $ac_func;
10748 return 0;
10750 _ACEOF
10751 rm -f conftest.$ac_objext conftest$ac_exeext
10752 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10753 (eval $ac_link) 2>conftest.er1
10754 ac_status=$?
10755 grep -v '^ *+' conftest.er1 >conftest.err
10756 rm -f conftest.er1
10757 cat conftest.err >&5
10758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10759 (exit $ac_status); } &&
10760 { ac_try='test -z "$ac_c_werror_flag"
10761 || test ! -s conftest.err'
10762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10763 (eval $ac_try) 2>&5
10764 ac_status=$?
10765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10766 (exit $ac_status); }; } &&
10767 { ac_try='test -s conftest$ac_exeext'
10768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10769 (eval $ac_try) 2>&5
10770 ac_status=$?
10771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10772 (exit $ac_status); }; }; then
10773 eval "$as_ac_var=yes"
10774 else
10775 echo "$as_me: failed program was:" >&5
10776 sed 's/^/| /' conftest.$ac_ext >&5
10778 eval "$as_ac_var=no"
10780 rm -f conftest.err conftest.$ac_objext \
10781 conftest$ac_exeext conftest.$ac_ext
10783 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10784 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10785 if test `eval echo '${'$as_ac_var'}'` = yes; then
10786 cat >>confdefs.h <<_ACEOF
10787 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10788 _ACEOF
10789 HAVE_GTK_FILE_CHOOSER=yes
10791 done
10794 if test "$HAVE_GTK_FILE_SELECTION" = yes \
10795 && test "$HAVE_GTK_FILE_CHOOSER" = yes; then
10797 cat >>confdefs.h <<\_ACEOF
10798 #define HAVE_GTK_FILE_BOTH 1
10799 _ACEOF
10803 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
10804 HAVE_GTK_AND_PTHREAD=no
10806 for ac_header in pthread.h
10808 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10809 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10810 echo "$as_me:$LINENO: checking for $ac_header" >&5
10811 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10812 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10813 echo $ECHO_N "(cached) $ECHO_C" >&6
10815 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10816 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10817 else
10818 # Is the header compilable?
10819 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10820 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10821 cat >conftest.$ac_ext <<_ACEOF
10822 /* confdefs.h. */
10823 _ACEOF
10824 cat confdefs.h >>conftest.$ac_ext
10825 cat >>conftest.$ac_ext <<_ACEOF
10826 /* end confdefs.h. */
10827 $ac_includes_default
10828 #include <$ac_header>
10829 _ACEOF
10830 rm -f conftest.$ac_objext
10831 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10832 (eval $ac_compile) 2>conftest.er1
10833 ac_status=$?
10834 grep -v '^ *+' conftest.er1 >conftest.err
10835 rm -f conftest.er1
10836 cat conftest.err >&5
10837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10838 (exit $ac_status); } &&
10839 { ac_try='test -z "$ac_c_werror_flag"
10840 || test ! -s conftest.err'
10841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10842 (eval $ac_try) 2>&5
10843 ac_status=$?
10844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10845 (exit $ac_status); }; } &&
10846 { ac_try='test -s conftest.$ac_objext'
10847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10848 (eval $ac_try) 2>&5
10849 ac_status=$?
10850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10851 (exit $ac_status); }; }; then
10852 ac_header_compiler=yes
10853 else
10854 echo "$as_me: failed program was:" >&5
10855 sed 's/^/| /' conftest.$ac_ext >&5
10857 ac_header_compiler=no
10859 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10860 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10861 echo "${ECHO_T}$ac_header_compiler" >&6
10863 # Is the header present?
10864 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10865 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10866 cat >conftest.$ac_ext <<_ACEOF
10867 /* confdefs.h. */
10868 _ACEOF
10869 cat confdefs.h >>conftest.$ac_ext
10870 cat >>conftest.$ac_ext <<_ACEOF
10871 /* end confdefs.h. */
10872 #include <$ac_header>
10873 _ACEOF
10874 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10875 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10876 ac_status=$?
10877 grep -v '^ *+' conftest.er1 >conftest.err
10878 rm -f conftest.er1
10879 cat conftest.err >&5
10880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10881 (exit $ac_status); } >/dev/null; then
10882 if test -s conftest.err; then
10883 ac_cpp_err=$ac_c_preproc_warn_flag
10884 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10885 else
10886 ac_cpp_err=
10888 else
10889 ac_cpp_err=yes
10891 if test -z "$ac_cpp_err"; then
10892 ac_header_preproc=yes
10893 else
10894 echo "$as_me: failed program was:" >&5
10895 sed 's/^/| /' conftest.$ac_ext >&5
10897 ac_header_preproc=no
10899 rm -f conftest.err conftest.$ac_ext
10900 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10901 echo "${ECHO_T}$ac_header_preproc" >&6
10903 # So? What about this header?
10904 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10905 yes:no: )
10906 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10907 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10908 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10909 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10910 ac_header_preproc=yes
10912 no:yes:* )
10913 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10914 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10915 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10916 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10917 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10918 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10919 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10920 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10921 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10922 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10923 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10924 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10926 cat <<\_ASBOX
10927 ## ------------------------------------------ ##
10928 ## Report this to the AC_PACKAGE_NAME lists. ##
10929 ## ------------------------------------------ ##
10930 _ASBOX
10932 sed "s/^/$as_me: WARNING: /" >&2
10934 esac
10935 echo "$as_me:$LINENO: checking for $ac_header" >&5
10936 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10937 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10938 echo $ECHO_N "(cached) $ECHO_C" >&6
10939 else
10940 eval "$as_ac_Header=\$ac_header_preproc"
10942 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10943 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10946 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10947 cat >>confdefs.h <<_ACEOF
10948 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10949 _ACEOF
10953 done
10955 if test "$ac_cv_header_pthread_h"; then
10956 echo "$as_me:$LINENO: checking for pthread_self in -lpthread" >&5
10957 echo $ECHO_N "checking for pthread_self in -lpthread... $ECHO_C" >&6
10958 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then
10959 echo $ECHO_N "(cached) $ECHO_C" >&6
10960 else
10961 ac_check_lib_save_LIBS=$LIBS
10962 LIBS="-lpthread $LIBS"
10963 cat >conftest.$ac_ext <<_ACEOF
10964 /* confdefs.h. */
10965 _ACEOF
10966 cat confdefs.h >>conftest.$ac_ext
10967 cat >>conftest.$ac_ext <<_ACEOF
10968 /* end confdefs.h. */
10970 /* Override any gcc2 internal prototype to avoid an error. */
10971 #ifdef __cplusplus
10972 extern "C"
10973 #endif
10974 /* We use char because int might match the return type of a gcc2
10975 builtin and then its argument prototype would still apply. */
10976 char pthread_self ();
10978 main ()
10980 pthread_self ();
10982 return 0;
10984 _ACEOF
10985 rm -f conftest.$ac_objext conftest$ac_exeext
10986 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10987 (eval $ac_link) 2>conftest.er1
10988 ac_status=$?
10989 grep -v '^ *+' conftest.er1 >conftest.err
10990 rm -f conftest.er1
10991 cat conftest.err >&5
10992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10993 (exit $ac_status); } &&
10994 { ac_try='test -z "$ac_c_werror_flag"
10995 || test ! -s conftest.err'
10996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10997 (eval $ac_try) 2>&5
10998 ac_status=$?
10999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11000 (exit $ac_status); }; } &&
11001 { ac_try='test -s conftest$ac_exeext'
11002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11003 (eval $ac_try) 2>&5
11004 ac_status=$?
11005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11006 (exit $ac_status); }; }; then
11007 ac_cv_lib_pthread_pthread_self=yes
11008 else
11009 echo "$as_me: failed program was:" >&5
11010 sed 's/^/| /' conftest.$ac_ext >&5
11012 ac_cv_lib_pthread_pthread_self=no
11014 rm -f conftest.err conftest.$ac_objext \
11015 conftest$ac_exeext conftest.$ac_ext
11016 LIBS=$ac_check_lib_save_LIBS
11018 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_self" >&5
11019 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_self" >&6
11020 if test $ac_cv_lib_pthread_pthread_self = yes; then
11021 HAVE_GTK_AND_PTHREAD=yes
11025 if test "$HAVE_GTK_AND_PTHREAD" = yes; then
11026 GTK_LIBS="$GTK_LIBS -lpthread"
11028 cat >>confdefs.h <<\_ACEOF
11029 #define HAVE_GTK_AND_PTHREAD 1
11030 _ACEOF
11036 if test x"${USE_X_TOOLKIT}" = xmaybe; then
11037 if test x"${HAVE_X11R5}" = xyes; then
11038 echo "$as_me:$LINENO: checking X11 version 5 with Xaw" >&5
11039 echo $ECHO_N "checking X11 version 5 with Xaw... $ECHO_C" >&6
11040 if test "${emacs_cv_x11_version_5_with_xaw+set}" = set; then
11041 echo $ECHO_N "(cached) $ECHO_C" >&6
11042 else
11043 cat >conftest.$ac_ext <<_ACEOF
11044 /* confdefs.h. */
11045 _ACEOF
11046 cat confdefs.h >>conftest.$ac_ext
11047 cat >>conftest.$ac_ext <<_ACEOF
11048 /* end confdefs.h. */
11050 #include <X11/Intrinsic.h>
11051 #include <X11/Xaw/Simple.h>
11053 main ()
11057 return 0;
11059 _ACEOF
11060 rm -f conftest.$ac_objext conftest$ac_exeext
11061 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11062 (eval $ac_link) 2>conftest.er1
11063 ac_status=$?
11064 grep -v '^ *+' conftest.er1 >conftest.err
11065 rm -f conftest.er1
11066 cat conftest.err >&5
11067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11068 (exit $ac_status); } &&
11069 { ac_try='test -z "$ac_c_werror_flag"
11070 || test ! -s conftest.err'
11071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11072 (eval $ac_try) 2>&5
11073 ac_status=$?
11074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11075 (exit $ac_status); }; } &&
11076 { ac_try='test -s conftest$ac_exeext'
11077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11078 (eval $ac_try) 2>&5
11079 ac_status=$?
11080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11081 (exit $ac_status); }; }; then
11082 emacs_cv_x11_version_5_with_xaw=yes
11083 else
11084 echo "$as_me: failed program was:" >&5
11085 sed 's/^/| /' conftest.$ac_ext >&5
11087 emacs_cv_x11_version_5_with_xaw=no
11089 rm -f conftest.err conftest.$ac_objext \
11090 conftest$ac_exeext conftest.$ac_ext
11093 if test $emacs_cv_x11_version_5_with_xaw = yes; then
11094 echo "$as_me:$LINENO: result: 5 or newer, with Xaw; use toolkit by default" >&5
11095 echo "${ECHO_T}5 or newer, with Xaw; use toolkit by default" >&6
11096 USE_X_TOOLKIT=LUCID
11097 else
11098 echo "$as_me:$LINENO: result: before 5 or no Xaw; do not use toolkit by default" >&5
11099 echo "${ECHO_T}before 5 or no Xaw; do not use toolkit by default" >&6
11100 USE_X_TOOLKIT=none
11102 else
11103 USE_X_TOOLKIT=none
11107 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
11109 if test "${USE_X_TOOLKIT}" != "none"; then
11110 echo "$as_me:$LINENO: checking X11 toolkit version" >&5
11111 echo $ECHO_N "checking X11 toolkit version... $ECHO_C" >&6
11112 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then
11113 echo $ECHO_N "(cached) $ECHO_C" >&6
11114 else
11115 cat >conftest.$ac_ext <<_ACEOF
11116 /* confdefs.h. */
11117 _ACEOF
11118 cat confdefs.h >>conftest.$ac_ext
11119 cat >>conftest.$ac_ext <<_ACEOF
11120 /* end confdefs.h. */
11121 #include <X11/Intrinsic.h>
11123 main ()
11125 #if XtSpecificationRelease < 6
11126 fail;
11127 #endif
11130 return 0;
11132 _ACEOF
11133 rm -f conftest.$ac_objext conftest$ac_exeext
11134 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11135 (eval $ac_link) 2>conftest.er1
11136 ac_status=$?
11137 grep -v '^ *+' conftest.er1 >conftest.err
11138 rm -f conftest.er1
11139 cat conftest.err >&5
11140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11141 (exit $ac_status); } &&
11142 { ac_try='test -z "$ac_c_werror_flag"
11143 || test ! -s conftest.err'
11144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11145 (eval $ac_try) 2>&5
11146 ac_status=$?
11147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11148 (exit $ac_status); }; } &&
11149 { ac_try='test -s conftest$ac_exeext'
11150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11151 (eval $ac_try) 2>&5
11152 ac_status=$?
11153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11154 (exit $ac_status); }; }; then
11155 emacs_cv_x11_toolkit_version_6=yes
11156 else
11157 echo "$as_me: failed program was:" >&5
11158 sed 's/^/| /' conftest.$ac_ext >&5
11160 emacs_cv_x11_toolkit_version_6=no
11162 rm -f conftest.err conftest.$ac_objext \
11163 conftest$ac_exeext conftest.$ac_ext
11166 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
11167 if test $emacs_cv_x11_toolkit_version_6 = yes; then
11168 echo "$as_me:$LINENO: result: 6 or newer" >&5
11169 echo "${ECHO_T}6 or newer" >&6
11171 cat >>confdefs.h <<\_ACEOF
11172 #define HAVE_X11XTR6 1
11173 _ACEOF
11175 else
11176 echo "$as_me:$LINENO: result: before 6" >&5
11177 echo "${ECHO_T}before 6" >&6
11180 OLDLIBS="$LIBS"
11181 if test x$HAVE_X11XTR6 = xyes; then
11182 LIBS="-lXt -lSM -lICE $LIBS"
11183 else
11184 LIBS="-lXt $LIBS"
11187 echo "$as_me:$LINENO: checking for XmuConvertStandardSelection in -lXmu" >&5
11188 echo $ECHO_N "checking for XmuConvertStandardSelection in -lXmu... $ECHO_C" >&6
11189 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then
11190 echo $ECHO_N "(cached) $ECHO_C" >&6
11191 else
11192 ac_check_lib_save_LIBS=$LIBS
11193 LIBS="-lXmu $LIBS"
11194 cat >conftest.$ac_ext <<_ACEOF
11195 /* confdefs.h. */
11196 _ACEOF
11197 cat confdefs.h >>conftest.$ac_ext
11198 cat >>conftest.$ac_ext <<_ACEOF
11199 /* end confdefs.h. */
11201 /* Override any gcc2 internal prototype to avoid an error. */
11202 #ifdef __cplusplus
11203 extern "C"
11204 #endif
11205 /* We use char because int might match the return type of a gcc2
11206 builtin and then its argument prototype would still apply. */
11207 char XmuConvertStandardSelection ();
11209 main ()
11211 XmuConvertStandardSelection ();
11213 return 0;
11215 _ACEOF
11216 rm -f conftest.$ac_objext conftest$ac_exeext
11217 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11218 (eval $ac_link) 2>conftest.er1
11219 ac_status=$?
11220 grep -v '^ *+' conftest.er1 >conftest.err
11221 rm -f conftest.er1
11222 cat conftest.err >&5
11223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11224 (exit $ac_status); } &&
11225 { ac_try='test -z "$ac_c_werror_flag"
11226 || test ! -s conftest.err'
11227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11228 (eval $ac_try) 2>&5
11229 ac_status=$?
11230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11231 (exit $ac_status); }; } &&
11232 { ac_try='test -s conftest$ac_exeext'
11233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11234 (eval $ac_try) 2>&5
11235 ac_status=$?
11236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11237 (exit $ac_status); }; }; then
11238 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
11239 else
11240 echo "$as_me: failed program was:" >&5
11241 sed 's/^/| /' conftest.$ac_ext >&5
11243 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
11245 rm -f conftest.err conftest.$ac_objext \
11246 conftest$ac_exeext conftest.$ac_ext
11247 LIBS=$ac_check_lib_save_LIBS
11249 echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
11250 echo "${ECHO_T}$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6
11251 if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then
11252 cat >>confdefs.h <<_ACEOF
11253 #define HAVE_LIBXMU 1
11254 _ACEOF
11256 LIBS="-lXmu $LIBS"
11260 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
11263 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
11264 if test "${HAVE_X11}" = "yes"; then
11265 if test "${USE_X_TOOLKIT}" != "none"; then
11267 echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
11268 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
11269 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
11270 echo $ECHO_N "(cached) $ECHO_C" >&6
11271 else
11272 ac_check_lib_save_LIBS=$LIBS
11273 LIBS="-lXext $LIBS"
11274 cat >conftest.$ac_ext <<_ACEOF
11275 /* confdefs.h. */
11276 _ACEOF
11277 cat confdefs.h >>conftest.$ac_ext
11278 cat >>conftest.$ac_ext <<_ACEOF
11279 /* end confdefs.h. */
11281 /* Override any gcc2 internal prototype to avoid an error. */
11282 #ifdef __cplusplus
11283 extern "C"
11284 #endif
11285 /* We use char because int might match the return type of a gcc2
11286 builtin and then its argument prototype would still apply. */
11287 char XShapeQueryExtension ();
11289 main ()
11291 XShapeQueryExtension ();
11293 return 0;
11295 _ACEOF
11296 rm -f conftest.$ac_objext conftest$ac_exeext
11297 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11298 (eval $ac_link) 2>conftest.er1
11299 ac_status=$?
11300 grep -v '^ *+' conftest.er1 >conftest.err
11301 rm -f conftest.er1
11302 cat conftest.err >&5
11303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11304 (exit $ac_status); } &&
11305 { ac_try='test -z "$ac_c_werror_flag"
11306 || test ! -s conftest.err'
11307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11308 (eval $ac_try) 2>&5
11309 ac_status=$?
11310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11311 (exit $ac_status); }; } &&
11312 { ac_try='test -s conftest$ac_exeext'
11313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11314 (eval $ac_try) 2>&5
11315 ac_status=$?
11316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11317 (exit $ac_status); }; }; then
11318 ac_cv_lib_Xext_XShapeQueryExtension=yes
11319 else
11320 echo "$as_me: failed program was:" >&5
11321 sed 's/^/| /' conftest.$ac_ext >&5
11323 ac_cv_lib_Xext_XShapeQueryExtension=no
11325 rm -f conftest.err conftest.$ac_objext \
11326 conftest$ac_exeext conftest.$ac_ext
11327 LIBS=$ac_check_lib_save_LIBS
11329 echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
11330 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
11331 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
11332 cat >>confdefs.h <<_ACEOF
11333 #define HAVE_LIBXEXT 1
11334 _ACEOF
11336 LIBS="-lXext $LIBS"
11343 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
11344 echo "$as_me:$LINENO: checking for Motif version 2.1" >&5
11345 echo $ECHO_N "checking for Motif version 2.1... $ECHO_C" >&6
11346 if test "${emacs_cv_motif_version_2_1+set}" = set; then
11347 echo $ECHO_N "(cached) $ECHO_C" >&6
11348 else
11349 cat >conftest.$ac_ext <<_ACEOF
11350 /* confdefs.h. */
11351 _ACEOF
11352 cat confdefs.h >>conftest.$ac_ext
11353 cat >>conftest.$ac_ext <<_ACEOF
11354 /* end confdefs.h. */
11355 #include <Xm/Xm.h>
11357 main ()
11359 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
11360 int x = 5;
11361 #else
11362 Motif version prior to 2.1.
11363 #endif
11365 return 0;
11367 _ACEOF
11368 rm -f conftest.$ac_objext
11369 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11370 (eval $ac_compile) 2>conftest.er1
11371 ac_status=$?
11372 grep -v '^ *+' conftest.er1 >conftest.err
11373 rm -f conftest.er1
11374 cat conftest.err >&5
11375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11376 (exit $ac_status); } &&
11377 { ac_try='test -z "$ac_c_werror_flag"
11378 || test ! -s conftest.err'
11379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11380 (eval $ac_try) 2>&5
11381 ac_status=$?
11382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11383 (exit $ac_status); }; } &&
11384 { ac_try='test -s conftest.$ac_objext'
11385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11386 (eval $ac_try) 2>&5
11387 ac_status=$?
11388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11389 (exit $ac_status); }; }; then
11390 emacs_cv_motif_version_2_1=yes
11391 else
11392 echo "$as_me: failed program was:" >&5
11393 sed 's/^/| /' conftest.$ac_ext >&5
11395 emacs_cv_motif_version_2_1=no
11397 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11399 echo "$as_me:$LINENO: result: $emacs_cv_motif_version_2_1" >&5
11400 echo "${ECHO_T}$emacs_cv_motif_version_2_1" >&6
11401 HAVE_MOTIF_2_1=$emacs_cv_motif_version_2_1
11402 if test $emacs_cv_motif_version_2_1 = yes; then
11403 HAVE_LIBXP=no
11405 cat >>confdefs.h <<\_ACEOF
11406 #define HAVE_MOTIF_2_1 1
11407 _ACEOF
11409 echo "$as_me:$LINENO: checking for XpCreateContext in -lXp" >&5
11410 echo $ECHO_N "checking for XpCreateContext in -lXp... $ECHO_C" >&6
11411 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then
11412 echo $ECHO_N "(cached) $ECHO_C" >&6
11413 else
11414 ac_check_lib_save_LIBS=$LIBS
11415 LIBS="-lXp $LIBS"
11416 cat >conftest.$ac_ext <<_ACEOF
11417 /* confdefs.h. */
11418 _ACEOF
11419 cat confdefs.h >>conftest.$ac_ext
11420 cat >>conftest.$ac_ext <<_ACEOF
11421 /* end confdefs.h. */
11423 /* Override any gcc2 internal prototype to avoid an error. */
11424 #ifdef __cplusplus
11425 extern "C"
11426 #endif
11427 /* We use char because int might match the return type of a gcc2
11428 builtin and then its argument prototype would still apply. */
11429 char XpCreateContext ();
11431 main ()
11433 XpCreateContext ();
11435 return 0;
11437 _ACEOF
11438 rm -f conftest.$ac_objext conftest$ac_exeext
11439 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11440 (eval $ac_link) 2>conftest.er1
11441 ac_status=$?
11442 grep -v '^ *+' conftest.er1 >conftest.err
11443 rm -f conftest.er1
11444 cat conftest.err >&5
11445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11446 (exit $ac_status); } &&
11447 { ac_try='test -z "$ac_c_werror_flag"
11448 || test ! -s conftest.err'
11449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11450 (eval $ac_try) 2>&5
11451 ac_status=$?
11452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11453 (exit $ac_status); }; } &&
11454 { ac_try='test -s conftest$ac_exeext'
11455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11456 (eval $ac_try) 2>&5
11457 ac_status=$?
11458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11459 (exit $ac_status); }; }; then
11460 ac_cv_lib_Xp_XpCreateContext=yes
11461 else
11462 echo "$as_me: failed program was:" >&5
11463 sed 's/^/| /' conftest.$ac_ext >&5
11465 ac_cv_lib_Xp_XpCreateContext=no
11467 rm -f conftest.err conftest.$ac_objext \
11468 conftest$ac_exeext conftest.$ac_ext
11469 LIBS=$ac_check_lib_save_LIBS
11471 echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpCreateContext" >&5
11472 echo "${ECHO_T}$ac_cv_lib_Xp_XpCreateContext" >&6
11473 if test $ac_cv_lib_Xp_XpCreateContext = yes; then
11474 HAVE_LIBXP=yes
11477 if test ${HAVE_LIBXP} = yes; then
11479 cat >>confdefs.h <<\_ACEOF
11480 #define HAVE_LIBXP 1
11481 _ACEOF
11484 else
11485 echo "$as_me:$LINENO: checking for LessTif where some systems put it" >&5
11486 echo $ECHO_N "checking for LessTif where some systems put it... $ECHO_C" >&6
11487 if test "${emacs_cv_lesstif+set}" = set; then
11488 echo $ECHO_N "(cached) $ECHO_C" >&6
11489 else
11490 # We put this in CFLAGS temporarily to precede other -I options
11491 # that might be in CFLAGS temporarily.
11492 # We put this in CPPFLAGS where it precedes the other -I options.
11493 OLD_CPPFLAGS=$CPPFLAGS
11494 OLD_CFLAGS=$CFLAGS
11495 CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
11496 CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
11497 cat >conftest.$ac_ext <<_ACEOF
11498 /* confdefs.h. */
11499 _ACEOF
11500 cat confdefs.h >>conftest.$ac_ext
11501 cat >>conftest.$ac_ext <<_ACEOF
11502 /* end confdefs.h. */
11503 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
11505 main ()
11507 int x = 5;
11509 return 0;
11511 _ACEOF
11512 rm -f conftest.$ac_objext
11513 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11514 (eval $ac_compile) 2>conftest.er1
11515 ac_status=$?
11516 grep -v '^ *+' conftest.er1 >conftest.err
11517 rm -f conftest.er1
11518 cat conftest.err >&5
11519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11520 (exit $ac_status); } &&
11521 { ac_try='test -z "$ac_c_werror_flag"
11522 || test ! -s conftest.err'
11523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11524 (eval $ac_try) 2>&5
11525 ac_status=$?
11526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11527 (exit $ac_status); }; } &&
11528 { ac_try='test -s conftest.$ac_objext'
11529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11530 (eval $ac_try) 2>&5
11531 ac_status=$?
11532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11533 (exit $ac_status); }; }; then
11534 emacs_cv_lesstif=yes
11535 else
11536 echo "$as_me: failed program was:" >&5
11537 sed 's/^/| /' conftest.$ac_ext >&5
11539 emacs_cv_lesstif=no
11541 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11543 echo "$as_me:$LINENO: result: $emacs_cv_lesstif" >&5
11544 echo "${ECHO_T}$emacs_cv_lesstif" >&6
11545 if test $emacs_cv_lesstif = yes; then
11546 # Make sure this -I option remains in CPPFLAGS after it is set
11547 # back to REAL_CPPFLAGS.
11548 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
11549 # have those other -I options anyway. Ultimately, having this
11550 # directory ultimately in CPPFLAGS will be enough.
11551 REAL_CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
11552 LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
11553 else
11554 CFLAGS=$OLD_CFLAGS
11555 CPPFLAGS=$OLD_CPPFLAGS
11560 ### Is -lXaw3d available?
11561 HAVE_XAW3D=no
11562 if test "${HAVE_X11}" = "yes"; then
11563 if test "${USE_X_TOOLKIT}" != "none" && test "${with_toolkit_scroll_bars}" != "no"; then
11564 echo "$as_me:$LINENO: checking for X11/Xaw3d/Scrollbar.h" >&5
11565 echo $ECHO_N "checking for X11/Xaw3d/Scrollbar.h... $ECHO_C" >&6
11566 if test "${ac_cv_header_X11_Xaw3d_Scrollbar_h+set}" = set; then
11567 echo $ECHO_N "(cached) $ECHO_C" >&6
11568 else
11569 cat >conftest.$ac_ext <<_ACEOF
11570 /* confdefs.h. */
11571 _ACEOF
11572 cat confdefs.h >>conftest.$ac_ext
11573 cat >>conftest.$ac_ext <<_ACEOF
11574 /* end confdefs.h. */
11575 #include <X11/Xaw3d/Scrollbar.h>
11576 _ACEOF
11577 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11578 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11579 ac_status=$?
11580 grep -v '^ *+' conftest.er1 >conftest.err
11581 rm -f conftest.er1
11582 cat conftest.err >&5
11583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11584 (exit $ac_status); } >/dev/null; then
11585 if test -s conftest.err; then
11586 ac_cpp_err=$ac_c_preproc_warn_flag
11587 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11588 else
11589 ac_cpp_err=
11591 else
11592 ac_cpp_err=yes
11594 if test -z "$ac_cpp_err"; then
11595 ac_cv_header_X11_Xaw3d_Scrollbar_h=yes
11596 else
11597 echo "$as_me: failed program was:" >&5
11598 sed 's/^/| /' conftest.$ac_ext >&5
11600 ac_cv_header_X11_Xaw3d_Scrollbar_h=no
11602 rm -f conftest.err conftest.$ac_ext
11604 echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xaw3d_Scrollbar_h" >&5
11605 echo "${ECHO_T}$ac_cv_header_X11_Xaw3d_Scrollbar_h" >&6
11606 if test $ac_cv_header_X11_Xaw3d_Scrollbar_h = yes; then
11607 echo "$as_me:$LINENO: checking for XawScrollbarSetThumb in -lXaw3d" >&5
11608 echo $ECHO_N "checking for XawScrollbarSetThumb in -lXaw3d... $ECHO_C" >&6
11609 if test "${ac_cv_lib_Xaw3d_XawScrollbarSetThumb+set}" = set; then
11610 echo $ECHO_N "(cached) $ECHO_C" >&6
11611 else
11612 ac_check_lib_save_LIBS=$LIBS
11613 LIBS="-lXaw3d $LIBS"
11614 cat >conftest.$ac_ext <<_ACEOF
11615 /* confdefs.h. */
11616 _ACEOF
11617 cat confdefs.h >>conftest.$ac_ext
11618 cat >>conftest.$ac_ext <<_ACEOF
11619 /* end confdefs.h. */
11621 /* Override any gcc2 internal prototype to avoid an error. */
11622 #ifdef __cplusplus
11623 extern "C"
11624 #endif
11625 /* We use char because int might match the return type of a gcc2
11626 builtin and then its argument prototype would still apply. */
11627 char XawScrollbarSetThumb ();
11629 main ()
11631 XawScrollbarSetThumb ();
11633 return 0;
11635 _ACEOF
11636 rm -f conftest.$ac_objext conftest$ac_exeext
11637 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11638 (eval $ac_link) 2>conftest.er1
11639 ac_status=$?
11640 grep -v '^ *+' conftest.er1 >conftest.err
11641 rm -f conftest.er1
11642 cat conftest.err >&5
11643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11644 (exit $ac_status); } &&
11645 { ac_try='test -z "$ac_c_werror_flag"
11646 || test ! -s conftest.err'
11647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11648 (eval $ac_try) 2>&5
11649 ac_status=$?
11650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11651 (exit $ac_status); }; } &&
11652 { ac_try='test -s conftest$ac_exeext'
11653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11654 (eval $ac_try) 2>&5
11655 ac_status=$?
11656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11657 (exit $ac_status); }; }; then
11658 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=yes
11659 else
11660 echo "$as_me: failed program was:" >&5
11661 sed 's/^/| /' conftest.$ac_ext >&5
11663 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=no
11665 rm -f conftest.err conftest.$ac_objext \
11666 conftest$ac_exeext conftest.$ac_ext
11667 LIBS=$ac_check_lib_save_LIBS
11669 echo "$as_me:$LINENO: result: $ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&5
11670 echo "${ECHO_T}$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&6
11671 if test $ac_cv_lib_Xaw3d_XawScrollbarSetThumb = yes; then
11672 HAVE_XAW3D=yes
11678 if test "${HAVE_XAW3D}" = "yes"; then
11680 cat >>confdefs.h <<\_ACEOF
11681 #define HAVE_XAW3D 1
11682 _ACEOF
11690 USE_TOOLKIT_SCROLL_BARS=no
11691 if test "${with_toolkit_scroll_bars}" != "no"; then
11692 if test "${USE_X_TOOLKIT}" != "none"; then
11693 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
11694 cat >>confdefs.h <<\_ACEOF
11695 #define USE_TOOLKIT_SCROLL_BARS 1
11696 _ACEOF
11698 HAVE_XAW3D=no
11699 USE_TOOLKIT_SCROLL_BARS=yes
11700 elif test "${HAVE_XAW3D}" = "yes"; then
11701 cat >>confdefs.h <<\_ACEOF
11702 #define USE_TOOLKIT_SCROLL_BARS 1
11703 _ACEOF
11705 USE_TOOLKIT_SCROLL_BARS=yes
11707 elif test "${HAVE_GTK}" = "yes"; then
11708 cat >>confdefs.h <<\_ACEOF
11709 #define USE_TOOLKIT_SCROLL_BARS 1
11710 _ACEOF
11712 USE_TOOLKIT_SCROLL_BARS=yes
11713 elif test "${HAVE_CARBON}" = "yes"; then
11714 cat >>confdefs.h <<\_ACEOF
11715 #define USE_TOOLKIT_SCROLL_BARS 1
11716 _ACEOF
11718 USE_TOOLKIT_SCROLL_BARS=yes
11722 cat >conftest.$ac_ext <<_ACEOF
11723 /* confdefs.h. */
11724 _ACEOF
11725 cat confdefs.h >>conftest.$ac_ext
11726 cat >>conftest.$ac_ext <<_ACEOF
11727 /* end confdefs.h. */
11729 #include <X11/Xlib.h>
11730 #include <X11/Xresource.h>
11732 main ()
11734 XIMProc callback;
11736 return 0;
11738 _ACEOF
11739 rm -f conftest.$ac_objext
11740 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11741 (eval $ac_compile) 2>conftest.er1
11742 ac_status=$?
11743 grep -v '^ *+' conftest.er1 >conftest.err
11744 rm -f conftest.er1
11745 cat conftest.err >&5
11746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11747 (exit $ac_status); } &&
11748 { ac_try='test -z "$ac_c_werror_flag"
11749 || test ! -s conftest.err'
11750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11751 (eval $ac_try) 2>&5
11752 ac_status=$?
11753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11754 (exit $ac_status); }; } &&
11755 { ac_try='test -s conftest.$ac_objext'
11756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11757 (eval $ac_try) 2>&5
11758 ac_status=$?
11759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11760 (exit $ac_status); }; }; then
11761 HAVE_XIM=yes
11763 cat >>confdefs.h <<\_ACEOF
11764 #define HAVE_XIM 1
11765 _ACEOF
11767 else
11768 echo "$as_me: failed program was:" >&5
11769 sed 's/^/| /' conftest.$ac_ext >&5
11771 HAVE_XIM=no
11773 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11776 if test "${with_xim}" != "no"; then
11778 cat >>confdefs.h <<\_ACEOF
11779 #define USE_XIM 1
11780 _ACEOF
11785 if test "${HAVE_XIM}" != "no"; then
11786 late_CFLAGS=$CFLAGS
11787 if test "$GCC" = yes; then
11788 CFLAGS="$CFLAGS --pedantic-errors"
11790 cat >conftest.$ac_ext <<_ACEOF
11791 /* confdefs.h. */
11792 _ACEOF
11793 cat confdefs.h >>conftest.$ac_ext
11794 cat >>conftest.$ac_ext <<_ACEOF
11795 /* end confdefs.h. */
11797 #include <X11/Xlib.h>
11798 #include <X11/Xresource.h>
11800 main ()
11802 Display *display;
11803 XrmDatabase db;
11804 char *res_name;
11805 char *res_class;
11806 XIMProc callback;
11807 XPointer *client_data;
11808 #ifndef __GNUC__
11809 /* If we're not using GCC, it's probably not XFree86, and this is
11810 probably right, but we can't use something like --pedantic-errors. */
11811 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
11812 char*, XIMProc, XPointer*);
11813 #endif
11814 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
11815 client_data);
11817 return 0;
11819 _ACEOF
11820 rm -f conftest.$ac_objext
11821 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11822 (eval $ac_compile) 2>conftest.er1
11823 ac_status=$?
11824 grep -v '^ *+' conftest.er1 >conftest.err
11825 rm -f conftest.er1
11826 cat conftest.err >&5
11827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11828 (exit $ac_status); } &&
11829 { ac_try='test -z "$ac_c_werror_flag"
11830 || test ! -s conftest.err'
11831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11832 (eval $ac_try) 2>&5
11833 ac_status=$?
11834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11835 (exit $ac_status); }; } &&
11836 { ac_try='test -s conftest.$ac_objext'
11837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11838 (eval $ac_try) 2>&5
11839 ac_status=$?
11840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11841 (exit $ac_status); }; }; then
11842 emacs_cv_arg6_star=yes
11843 else
11844 echo "$as_me: failed program was:" >&5
11845 sed 's/^/| /' conftest.$ac_ext >&5
11848 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11850 if test "$emacs_cv_arg6_star" = yes; then
11851 cat >>confdefs.h <<\_ACEOF
11852 #define XRegisterIMInstantiateCallback_arg6 XPointer*
11853 _ACEOF
11855 else
11856 cat >>confdefs.h <<\_ACEOF
11857 #define XRegisterIMInstantiateCallback_arg6 XPointer
11858 _ACEOF
11861 CFLAGS=$late_CFLAGS
11864 ### Use -lXpm if available, unless `--with-xpm=no'.
11865 HAVE_XPM=no
11866 if test "${HAVE_X11}" = "yes"; then
11867 if test "${with_xpm}" != "no"; then
11868 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
11869 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
11870 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
11871 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
11872 echo $ECHO_N "(cached) $ECHO_C" >&6
11874 echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
11875 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
11876 else
11877 # Is the header compilable?
11878 echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
11879 echo $ECHO_N "checking X11/xpm.h usability... $ECHO_C" >&6
11880 cat >conftest.$ac_ext <<_ACEOF
11881 /* confdefs.h. */
11882 _ACEOF
11883 cat confdefs.h >>conftest.$ac_ext
11884 cat >>conftest.$ac_ext <<_ACEOF
11885 /* end confdefs.h. */
11886 $ac_includes_default
11887 #include <X11/xpm.h>
11888 _ACEOF
11889 rm -f conftest.$ac_objext
11890 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11891 (eval $ac_compile) 2>conftest.er1
11892 ac_status=$?
11893 grep -v '^ *+' conftest.er1 >conftest.err
11894 rm -f conftest.er1
11895 cat conftest.err >&5
11896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11897 (exit $ac_status); } &&
11898 { ac_try='test -z "$ac_c_werror_flag"
11899 || test ! -s conftest.err'
11900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11901 (eval $ac_try) 2>&5
11902 ac_status=$?
11903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11904 (exit $ac_status); }; } &&
11905 { ac_try='test -s conftest.$ac_objext'
11906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11907 (eval $ac_try) 2>&5
11908 ac_status=$?
11909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11910 (exit $ac_status); }; }; then
11911 ac_header_compiler=yes
11912 else
11913 echo "$as_me: failed program was:" >&5
11914 sed 's/^/| /' conftest.$ac_ext >&5
11916 ac_header_compiler=no
11918 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11919 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11920 echo "${ECHO_T}$ac_header_compiler" >&6
11922 # Is the header present?
11923 echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
11924 echo $ECHO_N "checking X11/xpm.h presence... $ECHO_C" >&6
11925 cat >conftest.$ac_ext <<_ACEOF
11926 /* confdefs.h. */
11927 _ACEOF
11928 cat confdefs.h >>conftest.$ac_ext
11929 cat >>conftest.$ac_ext <<_ACEOF
11930 /* end confdefs.h. */
11931 #include <X11/xpm.h>
11932 _ACEOF
11933 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11934 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11935 ac_status=$?
11936 grep -v '^ *+' conftest.er1 >conftest.err
11937 rm -f conftest.er1
11938 cat conftest.err >&5
11939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11940 (exit $ac_status); } >/dev/null; then
11941 if test -s conftest.err; then
11942 ac_cpp_err=$ac_c_preproc_warn_flag
11943 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11944 else
11945 ac_cpp_err=
11947 else
11948 ac_cpp_err=yes
11950 if test -z "$ac_cpp_err"; then
11951 ac_header_preproc=yes
11952 else
11953 echo "$as_me: failed program was:" >&5
11954 sed 's/^/| /' conftest.$ac_ext >&5
11956 ac_header_preproc=no
11958 rm -f conftest.err conftest.$ac_ext
11959 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11960 echo "${ECHO_T}$ac_header_preproc" >&6
11962 # So? What about this header?
11963 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11964 yes:no: )
11965 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
11966 echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11967 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the compiler's result" >&5
11968 echo "$as_me: WARNING: X11/xpm.h: proceeding with the compiler's result" >&2;}
11969 ac_header_preproc=yes
11971 no:yes:* )
11972 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
11973 echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
11974 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5
11975 echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;}
11976 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: see the Autoconf documentation" >&5
11977 echo "$as_me: WARNING: X11/xpm.h: see the Autoconf documentation" >&2;}
11978 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&5
11979 echo "$as_me: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
11980 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
11981 echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
11982 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&5
11983 echo "$as_me: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&2;}
11985 cat <<\_ASBOX
11986 ## ------------------------------------------ ##
11987 ## Report this to the AC_PACKAGE_NAME lists. ##
11988 ## ------------------------------------------ ##
11989 _ASBOX
11991 sed "s/^/$as_me: WARNING: /" >&2
11993 esac
11994 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
11995 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
11996 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
11997 echo $ECHO_N "(cached) $ECHO_C" >&6
11998 else
11999 ac_cv_header_X11_xpm_h=$ac_header_preproc
12001 echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
12002 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
12005 if test $ac_cv_header_X11_xpm_h = yes; then
12006 echo "$as_me:$LINENO: checking for XpmReadFileToPixmap in -lXpm" >&5
12007 echo $ECHO_N "checking for XpmReadFileToPixmap in -lXpm... $ECHO_C" >&6
12008 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
12009 echo $ECHO_N "(cached) $ECHO_C" >&6
12010 else
12011 ac_check_lib_save_LIBS=$LIBS
12012 LIBS="-lXpm -lX11 $LIBS"
12013 cat >conftest.$ac_ext <<_ACEOF
12014 /* confdefs.h. */
12015 _ACEOF
12016 cat confdefs.h >>conftest.$ac_ext
12017 cat >>conftest.$ac_ext <<_ACEOF
12018 /* end confdefs.h. */
12020 /* Override any gcc2 internal prototype to avoid an error. */
12021 #ifdef __cplusplus
12022 extern "C"
12023 #endif
12024 /* We use char because int might match the return type of a gcc2
12025 builtin and then its argument prototype would still apply. */
12026 char XpmReadFileToPixmap ();
12028 main ()
12030 XpmReadFileToPixmap ();
12032 return 0;
12034 _ACEOF
12035 rm -f conftest.$ac_objext conftest$ac_exeext
12036 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12037 (eval $ac_link) 2>conftest.er1
12038 ac_status=$?
12039 grep -v '^ *+' conftest.er1 >conftest.err
12040 rm -f conftest.er1
12041 cat conftest.err >&5
12042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12043 (exit $ac_status); } &&
12044 { ac_try='test -z "$ac_c_werror_flag"
12045 || test ! -s conftest.err'
12046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12047 (eval $ac_try) 2>&5
12048 ac_status=$?
12049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12050 (exit $ac_status); }; } &&
12051 { ac_try='test -s conftest$ac_exeext'
12052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12053 (eval $ac_try) 2>&5
12054 ac_status=$?
12055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12056 (exit $ac_status); }; }; then
12057 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
12058 else
12059 echo "$as_me: failed program was:" >&5
12060 sed 's/^/| /' conftest.$ac_ext >&5
12062 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
12064 rm -f conftest.err conftest.$ac_objext \
12065 conftest$ac_exeext conftest.$ac_ext
12066 LIBS=$ac_check_lib_save_LIBS
12068 echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
12069 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6
12070 if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
12071 HAVE_XPM=yes
12077 if test "${HAVE_XPM}" = "yes"; then
12078 echo "$as_me:$LINENO: checking for XpmReturnAllocPixels preprocessor define" >&5
12079 echo $ECHO_N "checking for XpmReturnAllocPixels preprocessor define... $ECHO_C" >&6
12080 cat >conftest.$ac_ext <<_ACEOF
12081 /* confdefs.h. */
12082 _ACEOF
12083 cat confdefs.h >>conftest.$ac_ext
12084 cat >>conftest.$ac_ext <<_ACEOF
12085 /* end confdefs.h. */
12086 #include "X11/xpm.h"
12087 #ifndef XpmReturnAllocPixels
12088 no_return_alloc_pixels
12089 #endif
12091 _ACEOF
12092 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12093 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then
12094 HAVE_XPM=no
12095 else
12096 HAVE_XPM=yes
12098 rm -f conftest*
12101 if test "${HAVE_XPM}" = "yes"; then
12102 echo "$as_me:$LINENO: result: yes" >&5
12103 echo "${ECHO_T}yes" >&6
12104 else
12105 echo "$as_me:$LINENO: result: no" >&5
12106 echo "${ECHO_T}no" >&6
12111 if test "${HAVE_XPM}" = "yes"; then
12113 cat >>confdefs.h <<\_ACEOF
12114 #define HAVE_XPM 1
12115 _ACEOF
12120 ### Use -ljpeg if available, unless `--with-jpeg=no'.
12121 HAVE_JPEG=no
12122 if test "${HAVE_X11}" = "yes"; then
12123 if test "${with_jpeg}" != "no"; then
12124 if test "${ac_cv_header_jerror_h+set}" = set; then
12125 echo "$as_me:$LINENO: checking for jerror.h" >&5
12126 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6
12127 if test "${ac_cv_header_jerror_h+set}" = set; then
12128 echo $ECHO_N "(cached) $ECHO_C" >&6
12130 echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
12131 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6
12132 else
12133 # Is the header compilable?
12134 echo "$as_me:$LINENO: checking jerror.h usability" >&5
12135 echo $ECHO_N "checking jerror.h usability... $ECHO_C" >&6
12136 cat >conftest.$ac_ext <<_ACEOF
12137 /* confdefs.h. */
12138 _ACEOF
12139 cat confdefs.h >>conftest.$ac_ext
12140 cat >>conftest.$ac_ext <<_ACEOF
12141 /* end confdefs.h. */
12142 $ac_includes_default
12143 #include <jerror.h>
12144 _ACEOF
12145 rm -f conftest.$ac_objext
12146 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12147 (eval $ac_compile) 2>conftest.er1
12148 ac_status=$?
12149 grep -v '^ *+' conftest.er1 >conftest.err
12150 rm -f conftest.er1
12151 cat conftest.err >&5
12152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12153 (exit $ac_status); } &&
12154 { ac_try='test -z "$ac_c_werror_flag"
12155 || test ! -s conftest.err'
12156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12157 (eval $ac_try) 2>&5
12158 ac_status=$?
12159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12160 (exit $ac_status); }; } &&
12161 { ac_try='test -s conftest.$ac_objext'
12162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12163 (eval $ac_try) 2>&5
12164 ac_status=$?
12165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12166 (exit $ac_status); }; }; then
12167 ac_header_compiler=yes
12168 else
12169 echo "$as_me: failed program was:" >&5
12170 sed 's/^/| /' conftest.$ac_ext >&5
12172 ac_header_compiler=no
12174 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12175 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12176 echo "${ECHO_T}$ac_header_compiler" >&6
12178 # Is the header present?
12179 echo "$as_me:$LINENO: checking jerror.h presence" >&5
12180 echo $ECHO_N "checking jerror.h presence... $ECHO_C" >&6
12181 cat >conftest.$ac_ext <<_ACEOF
12182 /* confdefs.h. */
12183 _ACEOF
12184 cat confdefs.h >>conftest.$ac_ext
12185 cat >>conftest.$ac_ext <<_ACEOF
12186 /* end confdefs.h. */
12187 #include <jerror.h>
12188 _ACEOF
12189 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12190 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12191 ac_status=$?
12192 grep -v '^ *+' conftest.er1 >conftest.err
12193 rm -f conftest.er1
12194 cat conftest.err >&5
12195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12196 (exit $ac_status); } >/dev/null; then
12197 if test -s conftest.err; then
12198 ac_cpp_err=$ac_c_preproc_warn_flag
12199 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12200 else
12201 ac_cpp_err=
12203 else
12204 ac_cpp_err=yes
12206 if test -z "$ac_cpp_err"; then
12207 ac_header_preproc=yes
12208 else
12209 echo "$as_me: failed program was:" >&5
12210 sed 's/^/| /' conftest.$ac_ext >&5
12212 ac_header_preproc=no
12214 rm -f conftest.err conftest.$ac_ext
12215 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12216 echo "${ECHO_T}$ac_header_preproc" >&6
12218 # So? What about this header?
12219 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12220 yes:no: )
12221 { echo "$as_me:$LINENO: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&5
12222 echo "$as_me: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12223 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the compiler's result" >&5
12224 echo "$as_me: WARNING: jerror.h: proceeding with the compiler's result" >&2;}
12225 ac_header_preproc=yes
12227 no:yes:* )
12228 { echo "$as_me:$LINENO: WARNING: jerror.h: present but cannot be compiled" >&5
12229 echo "$as_me: WARNING: jerror.h: present but cannot be compiled" >&2;}
12230 { echo "$as_me:$LINENO: WARNING: jerror.h: check for missing prerequisite headers?" >&5
12231 echo "$as_me: WARNING: jerror.h: check for missing prerequisite headers?" >&2;}
12232 { echo "$as_me:$LINENO: WARNING: jerror.h: see the Autoconf documentation" >&5
12233 echo "$as_me: WARNING: jerror.h: see the Autoconf documentation" >&2;}
12234 { echo "$as_me:$LINENO: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&5
12235 echo "$as_me: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&2;}
12236 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result" >&5
12237 echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result" >&2;}
12238 { echo "$as_me:$LINENO: WARNING: jerror.h: in the future, the compiler will take precedence" >&5
12239 echo "$as_me: WARNING: jerror.h: in the future, the compiler will take precedence" >&2;}
12241 cat <<\_ASBOX
12242 ## ------------------------------------------ ##
12243 ## Report this to the AC_PACKAGE_NAME lists. ##
12244 ## ------------------------------------------ ##
12245 _ASBOX
12247 sed "s/^/$as_me: WARNING: /" >&2
12249 esac
12250 echo "$as_me:$LINENO: checking for jerror.h" >&5
12251 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6
12252 if test "${ac_cv_header_jerror_h+set}" = set; then
12253 echo $ECHO_N "(cached) $ECHO_C" >&6
12254 else
12255 ac_cv_header_jerror_h=$ac_header_preproc
12257 echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
12258 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6
12261 if test $ac_cv_header_jerror_h = yes; then
12262 echo "$as_me:$LINENO: checking for jpeg_destroy_compress in -ljpeg" >&5
12263 echo $ECHO_N "checking for jpeg_destroy_compress in -ljpeg... $ECHO_C" >&6
12264 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
12265 echo $ECHO_N "(cached) $ECHO_C" >&6
12266 else
12267 ac_check_lib_save_LIBS=$LIBS
12268 LIBS="-ljpeg $LIBS"
12269 cat >conftest.$ac_ext <<_ACEOF
12270 /* confdefs.h. */
12271 _ACEOF
12272 cat confdefs.h >>conftest.$ac_ext
12273 cat >>conftest.$ac_ext <<_ACEOF
12274 /* end confdefs.h. */
12276 /* Override any gcc2 internal prototype to avoid an error. */
12277 #ifdef __cplusplus
12278 extern "C"
12279 #endif
12280 /* We use char because int might match the return type of a gcc2
12281 builtin and then its argument prototype would still apply. */
12282 char jpeg_destroy_compress ();
12284 main ()
12286 jpeg_destroy_compress ();
12288 return 0;
12290 _ACEOF
12291 rm -f conftest.$ac_objext conftest$ac_exeext
12292 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12293 (eval $ac_link) 2>conftest.er1
12294 ac_status=$?
12295 grep -v '^ *+' conftest.er1 >conftest.err
12296 rm -f conftest.er1
12297 cat conftest.err >&5
12298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12299 (exit $ac_status); } &&
12300 { ac_try='test -z "$ac_c_werror_flag"
12301 || test ! -s conftest.err'
12302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12303 (eval $ac_try) 2>&5
12304 ac_status=$?
12305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12306 (exit $ac_status); }; } &&
12307 { ac_try='test -s conftest$ac_exeext'
12308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12309 (eval $ac_try) 2>&5
12310 ac_status=$?
12311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12312 (exit $ac_status); }; }; then
12313 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
12314 else
12315 echo "$as_me: failed program was:" >&5
12316 sed 's/^/| /' conftest.$ac_ext >&5
12318 ac_cv_lib_jpeg_jpeg_destroy_compress=no
12320 rm -f conftest.err conftest.$ac_objext \
12321 conftest$ac_exeext conftest.$ac_ext
12322 LIBS=$ac_check_lib_save_LIBS
12324 echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
12325 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6
12326 if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then
12327 HAVE_JPEG=yes
12336 if test "${HAVE_JPEG}" = "yes"; then
12337 cat >>confdefs.h <<\_ACEOF
12338 #define HAVE_JPEG 1
12339 _ACEOF
12341 cat >conftest.$ac_ext <<_ACEOF
12342 /* confdefs.h. */
12343 _ACEOF
12344 cat confdefs.h >>conftest.$ac_ext
12345 cat >>conftest.$ac_ext <<_ACEOF
12346 /* end confdefs.h. */
12347 #include <jpeglib.h>
12348 version=JPEG_LIB_VERSION
12350 _ACEOF
12351 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12352 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then
12353 cat >>confdefs.h <<\_ACEOF
12354 #define HAVE_JPEG 1
12355 _ACEOF
12357 else
12358 { echo "$as_me:$LINENO: WARNING: libjpeg found, but not version 6b or later" >&5
12359 echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
12360 HAVE_JPEG=no
12362 rm -f conftest*
12367 ### Use -lpng if available, unless `--with-png=no'.
12368 HAVE_PNG=no
12369 if test "${HAVE_X11}" = "yes"; then
12370 if test "${with_png}" != "no"; then
12371 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
12372 # in /usr/include/libpng.
12375 for ac_header in png.h libpng/png.h
12377 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12378 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12379 echo "$as_me:$LINENO: checking for $ac_header" >&5
12380 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12381 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12382 echo $ECHO_N "(cached) $ECHO_C" >&6
12384 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12385 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12386 else
12387 # Is the header compilable?
12388 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12389 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12390 cat >conftest.$ac_ext <<_ACEOF
12391 /* confdefs.h. */
12392 _ACEOF
12393 cat confdefs.h >>conftest.$ac_ext
12394 cat >>conftest.$ac_ext <<_ACEOF
12395 /* end confdefs.h. */
12396 $ac_includes_default
12397 #include <$ac_header>
12398 _ACEOF
12399 rm -f conftest.$ac_objext
12400 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12401 (eval $ac_compile) 2>conftest.er1
12402 ac_status=$?
12403 grep -v '^ *+' conftest.er1 >conftest.err
12404 rm -f conftest.er1
12405 cat conftest.err >&5
12406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12407 (exit $ac_status); } &&
12408 { ac_try='test -z "$ac_c_werror_flag"
12409 || test ! -s conftest.err'
12410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12411 (eval $ac_try) 2>&5
12412 ac_status=$?
12413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12414 (exit $ac_status); }; } &&
12415 { ac_try='test -s conftest.$ac_objext'
12416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12417 (eval $ac_try) 2>&5
12418 ac_status=$?
12419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12420 (exit $ac_status); }; }; then
12421 ac_header_compiler=yes
12422 else
12423 echo "$as_me: failed program was:" >&5
12424 sed 's/^/| /' conftest.$ac_ext >&5
12426 ac_header_compiler=no
12428 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12429 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12430 echo "${ECHO_T}$ac_header_compiler" >&6
12432 # Is the header present?
12433 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12434 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12435 cat >conftest.$ac_ext <<_ACEOF
12436 /* confdefs.h. */
12437 _ACEOF
12438 cat confdefs.h >>conftest.$ac_ext
12439 cat >>conftest.$ac_ext <<_ACEOF
12440 /* end confdefs.h. */
12441 #include <$ac_header>
12442 _ACEOF
12443 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12444 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12445 ac_status=$?
12446 grep -v '^ *+' conftest.er1 >conftest.err
12447 rm -f conftest.er1
12448 cat conftest.err >&5
12449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12450 (exit $ac_status); } >/dev/null; then
12451 if test -s conftest.err; then
12452 ac_cpp_err=$ac_c_preproc_warn_flag
12453 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12454 else
12455 ac_cpp_err=
12457 else
12458 ac_cpp_err=yes
12460 if test -z "$ac_cpp_err"; then
12461 ac_header_preproc=yes
12462 else
12463 echo "$as_me: failed program was:" >&5
12464 sed 's/^/| /' conftest.$ac_ext >&5
12466 ac_header_preproc=no
12468 rm -f conftest.err conftest.$ac_ext
12469 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12470 echo "${ECHO_T}$ac_header_preproc" >&6
12472 # So? What about this header?
12473 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12474 yes:no: )
12475 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12476 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12477 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12478 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12479 ac_header_preproc=yes
12481 no:yes:* )
12482 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12483 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12484 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12485 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12486 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12487 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12488 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12489 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12490 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12491 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12492 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12493 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12495 cat <<\_ASBOX
12496 ## ------------------------------------------ ##
12497 ## Report this to the AC_PACKAGE_NAME lists. ##
12498 ## ------------------------------------------ ##
12499 _ASBOX
12501 sed "s/^/$as_me: WARNING: /" >&2
12503 esac
12504 echo "$as_me:$LINENO: checking for $ac_header" >&5
12505 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12506 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12507 echo $ECHO_N "(cached) $ECHO_C" >&6
12508 else
12509 eval "$as_ac_Header=\$ac_header_preproc"
12511 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12512 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12515 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12516 cat >>confdefs.h <<_ACEOF
12517 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12518 _ACEOF
12522 done
12524 if test "$ac_cv_header_png_h" = yes || test "$ac_cv_header_libpng_png_h" = yes ; then
12525 echo "$as_me:$LINENO: checking for png_get_channels in -lpng" >&5
12526 echo $ECHO_N "checking for png_get_channels in -lpng... $ECHO_C" >&6
12527 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then
12528 echo $ECHO_N "(cached) $ECHO_C" >&6
12529 else
12530 ac_check_lib_save_LIBS=$LIBS
12531 LIBS="-lpng -lz -lm $LIBS"
12532 cat >conftest.$ac_ext <<_ACEOF
12533 /* confdefs.h. */
12534 _ACEOF
12535 cat confdefs.h >>conftest.$ac_ext
12536 cat >>conftest.$ac_ext <<_ACEOF
12537 /* end confdefs.h. */
12539 /* Override any gcc2 internal prototype to avoid an error. */
12540 #ifdef __cplusplus
12541 extern "C"
12542 #endif
12543 /* We use char because int might match the return type of a gcc2
12544 builtin and then its argument prototype would still apply. */
12545 char png_get_channels ();
12547 main ()
12549 png_get_channels ();
12551 return 0;
12553 _ACEOF
12554 rm -f conftest.$ac_objext conftest$ac_exeext
12555 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12556 (eval $ac_link) 2>conftest.er1
12557 ac_status=$?
12558 grep -v '^ *+' conftest.er1 >conftest.err
12559 rm -f conftest.er1
12560 cat conftest.err >&5
12561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12562 (exit $ac_status); } &&
12563 { ac_try='test -z "$ac_c_werror_flag"
12564 || test ! -s conftest.err'
12565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12566 (eval $ac_try) 2>&5
12567 ac_status=$?
12568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12569 (exit $ac_status); }; } &&
12570 { ac_try='test -s conftest$ac_exeext'
12571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12572 (eval $ac_try) 2>&5
12573 ac_status=$?
12574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12575 (exit $ac_status); }; }; then
12576 ac_cv_lib_png_png_get_channels=yes
12577 else
12578 echo "$as_me: failed program was:" >&5
12579 sed 's/^/| /' conftest.$ac_ext >&5
12581 ac_cv_lib_png_png_get_channels=no
12583 rm -f conftest.err conftest.$ac_objext \
12584 conftest$ac_exeext conftest.$ac_ext
12585 LIBS=$ac_check_lib_save_LIBS
12587 echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_get_channels" >&5
12588 echo "${ECHO_T}$ac_cv_lib_png_png_get_channels" >&6
12589 if test $ac_cv_lib_png_png_get_channels = yes; then
12590 HAVE_PNG=yes
12596 if test "${HAVE_PNG}" = "yes"; then
12598 cat >>confdefs.h <<\_ACEOF
12599 #define HAVE_PNG 1
12600 _ACEOF
12605 ### Use -ltiff if available, unless `--with-tiff=no'.
12606 HAVE_TIFF=no
12607 if test "${HAVE_X11}" = "yes"; then
12608 if test "${with_tiff}" != "no"; then
12609 if test "${ac_cv_header_tiffio_h+set}" = set; then
12610 echo "$as_me:$LINENO: checking for tiffio.h" >&5
12611 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
12612 if test "${ac_cv_header_tiffio_h+set}" = set; then
12613 echo $ECHO_N "(cached) $ECHO_C" >&6
12615 echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
12616 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
12617 else
12618 # Is the header compilable?
12619 echo "$as_me:$LINENO: checking tiffio.h usability" >&5
12620 echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6
12621 cat >conftest.$ac_ext <<_ACEOF
12622 /* confdefs.h. */
12623 _ACEOF
12624 cat confdefs.h >>conftest.$ac_ext
12625 cat >>conftest.$ac_ext <<_ACEOF
12626 /* end confdefs.h. */
12627 $ac_includes_default
12628 #include <tiffio.h>
12629 _ACEOF
12630 rm -f conftest.$ac_objext
12631 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12632 (eval $ac_compile) 2>conftest.er1
12633 ac_status=$?
12634 grep -v '^ *+' conftest.er1 >conftest.err
12635 rm -f conftest.er1
12636 cat conftest.err >&5
12637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12638 (exit $ac_status); } &&
12639 { ac_try='test -z "$ac_c_werror_flag"
12640 || test ! -s conftest.err'
12641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12642 (eval $ac_try) 2>&5
12643 ac_status=$?
12644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12645 (exit $ac_status); }; } &&
12646 { ac_try='test -s conftest.$ac_objext'
12647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12648 (eval $ac_try) 2>&5
12649 ac_status=$?
12650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12651 (exit $ac_status); }; }; then
12652 ac_header_compiler=yes
12653 else
12654 echo "$as_me: failed program was:" >&5
12655 sed 's/^/| /' conftest.$ac_ext >&5
12657 ac_header_compiler=no
12659 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12660 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12661 echo "${ECHO_T}$ac_header_compiler" >&6
12663 # Is the header present?
12664 echo "$as_me:$LINENO: checking tiffio.h presence" >&5
12665 echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6
12666 cat >conftest.$ac_ext <<_ACEOF
12667 /* confdefs.h. */
12668 _ACEOF
12669 cat confdefs.h >>conftest.$ac_ext
12670 cat >>conftest.$ac_ext <<_ACEOF
12671 /* end confdefs.h. */
12672 #include <tiffio.h>
12673 _ACEOF
12674 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12675 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12676 ac_status=$?
12677 grep -v '^ *+' conftest.er1 >conftest.err
12678 rm -f conftest.er1
12679 cat conftest.err >&5
12680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12681 (exit $ac_status); } >/dev/null; then
12682 if test -s conftest.err; then
12683 ac_cpp_err=$ac_c_preproc_warn_flag
12684 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12685 else
12686 ac_cpp_err=
12688 else
12689 ac_cpp_err=yes
12691 if test -z "$ac_cpp_err"; then
12692 ac_header_preproc=yes
12693 else
12694 echo "$as_me: failed program was:" >&5
12695 sed 's/^/| /' conftest.$ac_ext >&5
12697 ac_header_preproc=no
12699 rm -f conftest.err conftest.$ac_ext
12700 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12701 echo "${ECHO_T}$ac_header_preproc" >&6
12703 # So? What about this header?
12704 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12705 yes:no: )
12706 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
12707 echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12708 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
12709 echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
12710 ac_header_preproc=yes
12712 no:yes:* )
12713 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
12714 echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
12715 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
12716 echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
12717 { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
12718 echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
12719 { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
12720 echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
12721 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
12722 echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
12723 { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
12724 echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
12726 cat <<\_ASBOX
12727 ## ------------------------------------------ ##
12728 ## Report this to the AC_PACKAGE_NAME lists. ##
12729 ## ------------------------------------------ ##
12730 _ASBOX
12732 sed "s/^/$as_me: WARNING: /" >&2
12734 esac
12735 echo "$as_me:$LINENO: checking for tiffio.h" >&5
12736 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
12737 if test "${ac_cv_header_tiffio_h+set}" = set; then
12738 echo $ECHO_N "(cached) $ECHO_C" >&6
12739 else
12740 ac_cv_header_tiffio_h=$ac_header_preproc
12742 echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
12743 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
12746 if test $ac_cv_header_tiffio_h = yes; then
12747 tifflibs="-lz -lm"
12748 # At least one tiff package requires the jpeg library.
12749 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
12750 echo "$as_me:$LINENO: checking for TIFFGetVersion in -ltiff" >&5
12751 echo $ECHO_N "checking for TIFFGetVersion in -ltiff... $ECHO_C" >&6
12752 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
12753 echo $ECHO_N "(cached) $ECHO_C" >&6
12754 else
12755 ac_check_lib_save_LIBS=$LIBS
12756 LIBS="-ltiff $tifflibs $LIBS"
12757 cat >conftest.$ac_ext <<_ACEOF
12758 /* confdefs.h. */
12759 _ACEOF
12760 cat confdefs.h >>conftest.$ac_ext
12761 cat >>conftest.$ac_ext <<_ACEOF
12762 /* end confdefs.h. */
12764 /* Override any gcc2 internal prototype to avoid an error. */
12765 #ifdef __cplusplus
12766 extern "C"
12767 #endif
12768 /* We use char because int might match the return type of a gcc2
12769 builtin and then its argument prototype would still apply. */
12770 char TIFFGetVersion ();
12772 main ()
12774 TIFFGetVersion ();
12776 return 0;
12778 _ACEOF
12779 rm -f conftest.$ac_objext conftest$ac_exeext
12780 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12781 (eval $ac_link) 2>conftest.er1
12782 ac_status=$?
12783 grep -v '^ *+' conftest.er1 >conftest.err
12784 rm -f conftest.er1
12785 cat conftest.err >&5
12786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12787 (exit $ac_status); } &&
12788 { ac_try='test -z "$ac_c_werror_flag"
12789 || test ! -s conftest.err'
12790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12791 (eval $ac_try) 2>&5
12792 ac_status=$?
12793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12794 (exit $ac_status); }; } &&
12795 { ac_try='test -s conftest$ac_exeext'
12796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12797 (eval $ac_try) 2>&5
12798 ac_status=$?
12799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12800 (exit $ac_status); }; }; then
12801 ac_cv_lib_tiff_TIFFGetVersion=yes
12802 else
12803 echo "$as_me: failed program was:" >&5
12804 sed 's/^/| /' conftest.$ac_ext >&5
12806 ac_cv_lib_tiff_TIFFGetVersion=no
12808 rm -f conftest.err conftest.$ac_objext \
12809 conftest$ac_exeext conftest.$ac_ext
12810 LIBS=$ac_check_lib_save_LIBS
12812 echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
12813 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFGetVersion" >&6
12814 if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then
12815 HAVE_TIFF=yes
12823 if test "${HAVE_TIFF}" = "yes"; then
12825 cat >>confdefs.h <<\_ACEOF
12826 #define HAVE_TIFF 1
12827 _ACEOF
12832 ### Use -lgif if available, unless `--with-gif=no'.
12833 HAVE_GIF=no
12834 if test "${HAVE_X11}" = "yes"; then
12835 if test "${with_gif}" != "no"; then
12836 if test "${ac_cv_header_gif_lib_h+set}" = set; then
12837 echo "$as_me:$LINENO: checking for gif_lib.h" >&5
12838 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6
12839 if test "${ac_cv_header_gif_lib_h+set}" = set; then
12840 echo $ECHO_N "(cached) $ECHO_C" >&6
12842 echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
12843 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6
12844 else
12845 # Is the header compilable?
12846 echo "$as_me:$LINENO: checking gif_lib.h usability" >&5
12847 echo $ECHO_N "checking gif_lib.h usability... $ECHO_C" >&6
12848 cat >conftest.$ac_ext <<_ACEOF
12849 /* confdefs.h. */
12850 _ACEOF
12851 cat confdefs.h >>conftest.$ac_ext
12852 cat >>conftest.$ac_ext <<_ACEOF
12853 /* end confdefs.h. */
12854 $ac_includes_default
12855 #include <gif_lib.h>
12856 _ACEOF
12857 rm -f conftest.$ac_objext
12858 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12859 (eval $ac_compile) 2>conftest.er1
12860 ac_status=$?
12861 grep -v '^ *+' conftest.er1 >conftest.err
12862 rm -f conftest.er1
12863 cat conftest.err >&5
12864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12865 (exit $ac_status); } &&
12866 { ac_try='test -z "$ac_c_werror_flag"
12867 || test ! -s conftest.err'
12868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12869 (eval $ac_try) 2>&5
12870 ac_status=$?
12871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12872 (exit $ac_status); }; } &&
12873 { ac_try='test -s conftest.$ac_objext'
12874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12875 (eval $ac_try) 2>&5
12876 ac_status=$?
12877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12878 (exit $ac_status); }; }; then
12879 ac_header_compiler=yes
12880 else
12881 echo "$as_me: failed program was:" >&5
12882 sed 's/^/| /' conftest.$ac_ext >&5
12884 ac_header_compiler=no
12886 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12887 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12888 echo "${ECHO_T}$ac_header_compiler" >&6
12890 # Is the header present?
12891 echo "$as_me:$LINENO: checking gif_lib.h presence" >&5
12892 echo $ECHO_N "checking gif_lib.h presence... $ECHO_C" >&6
12893 cat >conftest.$ac_ext <<_ACEOF
12894 /* confdefs.h. */
12895 _ACEOF
12896 cat confdefs.h >>conftest.$ac_ext
12897 cat >>conftest.$ac_ext <<_ACEOF
12898 /* end confdefs.h. */
12899 #include <gif_lib.h>
12900 _ACEOF
12901 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12902 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12903 ac_status=$?
12904 grep -v '^ *+' conftest.er1 >conftest.err
12905 rm -f conftest.er1
12906 cat conftest.err >&5
12907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12908 (exit $ac_status); } >/dev/null; then
12909 if test -s conftest.err; then
12910 ac_cpp_err=$ac_c_preproc_warn_flag
12911 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12912 else
12913 ac_cpp_err=
12915 else
12916 ac_cpp_err=yes
12918 if test -z "$ac_cpp_err"; then
12919 ac_header_preproc=yes
12920 else
12921 echo "$as_me: failed program was:" >&5
12922 sed 's/^/| /' conftest.$ac_ext >&5
12924 ac_header_preproc=no
12926 rm -f conftest.err conftest.$ac_ext
12927 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12928 echo "${ECHO_T}$ac_header_preproc" >&6
12930 # So? What about this header?
12931 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12932 yes:no: )
12933 { echo "$as_me:$LINENO: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&5
12934 echo "$as_me: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12935 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the compiler's result" >&5
12936 echo "$as_me: WARNING: gif_lib.h: proceeding with the compiler's result" >&2;}
12937 ac_header_preproc=yes
12939 no:yes:* )
12940 { echo "$as_me:$LINENO: WARNING: gif_lib.h: present but cannot be compiled" >&5
12941 echo "$as_me: WARNING: gif_lib.h: present but cannot be compiled" >&2;}
12942 { echo "$as_me:$LINENO: WARNING: gif_lib.h: check for missing prerequisite headers?" >&5
12943 echo "$as_me: WARNING: gif_lib.h: check for missing prerequisite headers?" >&2;}
12944 { echo "$as_me:$LINENO: WARNING: gif_lib.h: see the Autoconf documentation" >&5
12945 echo "$as_me: WARNING: gif_lib.h: see the Autoconf documentation" >&2;}
12946 { echo "$as_me:$LINENO: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&5
12947 echo "$as_me: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&2;}
12948 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5
12949 echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;}
12950 { echo "$as_me:$LINENO: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&5
12951 echo "$as_me: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&2;}
12953 cat <<\_ASBOX
12954 ## ------------------------------------------ ##
12955 ## Report this to the AC_PACKAGE_NAME lists. ##
12956 ## ------------------------------------------ ##
12957 _ASBOX
12959 sed "s/^/$as_me: WARNING: /" >&2
12961 esac
12962 echo "$as_me:$LINENO: checking for gif_lib.h" >&5
12963 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6
12964 if test "${ac_cv_header_gif_lib_h+set}" = set; then
12965 echo $ECHO_N "(cached) $ECHO_C" >&6
12966 else
12967 ac_cv_header_gif_lib_h=$ac_header_preproc
12969 echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
12970 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6
12973 if test $ac_cv_header_gif_lib_h = yes; then
12974 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
12975 # Earlier versions can crash Emacs.
12976 echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lungif" >&5
12977 echo $ECHO_N "checking for EGifPutExtensionLast in -lungif... $ECHO_C" >&6
12978 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then
12979 echo $ECHO_N "(cached) $ECHO_C" >&6
12980 else
12981 ac_check_lib_save_LIBS=$LIBS
12982 LIBS="-lungif $LIBS"
12983 cat >conftest.$ac_ext <<_ACEOF
12984 /* confdefs.h. */
12985 _ACEOF
12986 cat confdefs.h >>conftest.$ac_ext
12987 cat >>conftest.$ac_ext <<_ACEOF
12988 /* end confdefs.h. */
12990 /* Override any gcc2 internal prototype to avoid an error. */
12991 #ifdef __cplusplus
12992 extern "C"
12993 #endif
12994 /* We use char because int might match the return type of a gcc2
12995 builtin and then its argument prototype would still apply. */
12996 char EGifPutExtensionLast ();
12998 main ()
13000 EGifPutExtensionLast ();
13002 return 0;
13004 _ACEOF
13005 rm -f conftest.$ac_objext conftest$ac_exeext
13006 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13007 (eval $ac_link) 2>conftest.er1
13008 ac_status=$?
13009 grep -v '^ *+' conftest.er1 >conftest.err
13010 rm -f conftest.er1
13011 cat conftest.err >&5
13012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13013 (exit $ac_status); } &&
13014 { ac_try='test -z "$ac_c_werror_flag"
13015 || test ! -s conftest.err'
13016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13017 (eval $ac_try) 2>&5
13018 ac_status=$?
13019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13020 (exit $ac_status); }; } &&
13021 { ac_try='test -s conftest$ac_exeext'
13022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13023 (eval $ac_try) 2>&5
13024 ac_status=$?
13025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13026 (exit $ac_status); }; }; then
13027 ac_cv_lib_ungif_EGifPutExtensionLast=yes
13028 else
13029 echo "$as_me: failed program was:" >&5
13030 sed 's/^/| /' conftest.$ac_ext >&5
13032 ac_cv_lib_ungif_EGifPutExtensionLast=no
13034 rm -f conftest.err conftest.$ac_objext \
13035 conftest$ac_exeext conftest.$ac_ext
13036 LIBS=$ac_check_lib_save_LIBS
13038 echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
13039 echo "${ECHO_T}$ac_cv_lib_ungif_EGifPutExtensionLast" >&6
13040 if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then
13041 HAVE_GIF=yes
13049 if test "${HAVE_GIF}" = "yes"; then
13051 cat >>confdefs.h <<\_ACEOF
13052 #define HAVE_GIF 1
13053 _ACEOF
13058 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
13059 echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
13060 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6
13061 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
13062 echo $ECHO_N "(cached) $ECHO_C" >&6
13064 echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
13065 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6
13066 else
13067 # Is the header compilable?
13068 echo "$as_me:$LINENO: checking malloc/malloc.h usability" >&5
13069 echo $ECHO_N "checking malloc/malloc.h usability... $ECHO_C" >&6
13070 cat >conftest.$ac_ext <<_ACEOF
13071 /* confdefs.h. */
13072 _ACEOF
13073 cat confdefs.h >>conftest.$ac_ext
13074 cat >>conftest.$ac_ext <<_ACEOF
13075 /* end confdefs.h. */
13076 $ac_includes_default
13077 #include <malloc/malloc.h>
13078 _ACEOF
13079 rm -f conftest.$ac_objext
13080 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13081 (eval $ac_compile) 2>conftest.er1
13082 ac_status=$?
13083 grep -v '^ *+' conftest.er1 >conftest.err
13084 rm -f conftest.er1
13085 cat conftest.err >&5
13086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13087 (exit $ac_status); } &&
13088 { ac_try='test -z "$ac_c_werror_flag"
13089 || test ! -s conftest.err'
13090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13091 (eval $ac_try) 2>&5
13092 ac_status=$?
13093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13094 (exit $ac_status); }; } &&
13095 { ac_try='test -s conftest.$ac_objext'
13096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13097 (eval $ac_try) 2>&5
13098 ac_status=$?
13099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13100 (exit $ac_status); }; }; then
13101 ac_header_compiler=yes
13102 else
13103 echo "$as_me: failed program was:" >&5
13104 sed 's/^/| /' conftest.$ac_ext >&5
13106 ac_header_compiler=no
13108 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13109 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13110 echo "${ECHO_T}$ac_header_compiler" >&6
13112 # Is the header present?
13113 echo "$as_me:$LINENO: checking malloc/malloc.h presence" >&5
13114 echo $ECHO_N "checking malloc/malloc.h presence... $ECHO_C" >&6
13115 cat >conftest.$ac_ext <<_ACEOF
13116 /* confdefs.h. */
13117 _ACEOF
13118 cat confdefs.h >>conftest.$ac_ext
13119 cat >>conftest.$ac_ext <<_ACEOF
13120 /* end confdefs.h. */
13121 #include <malloc/malloc.h>
13122 _ACEOF
13123 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13124 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13125 ac_status=$?
13126 grep -v '^ *+' conftest.er1 >conftest.err
13127 rm -f conftest.er1
13128 cat conftest.err >&5
13129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13130 (exit $ac_status); } >/dev/null; then
13131 if test -s conftest.err; then
13132 ac_cpp_err=$ac_c_preproc_warn_flag
13133 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13134 else
13135 ac_cpp_err=
13137 else
13138 ac_cpp_err=yes
13140 if test -z "$ac_cpp_err"; then
13141 ac_header_preproc=yes
13142 else
13143 echo "$as_me: failed program was:" >&5
13144 sed 's/^/| /' conftest.$ac_ext >&5
13146 ac_header_preproc=no
13148 rm -f conftest.err conftest.$ac_ext
13149 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13150 echo "${ECHO_T}$ac_header_preproc" >&6
13152 # So? What about this header?
13153 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13154 yes:no: )
13155 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&5
13156 echo "$as_me: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13157 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&5
13158 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&2;}
13159 ac_header_preproc=yes
13161 no:yes:* )
13162 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: present but cannot be compiled" >&5
13163 echo "$as_me: WARNING: malloc/malloc.h: present but cannot be compiled" >&2;}
13164 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&5
13165 echo "$as_me: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&2;}
13166 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: see the Autoconf documentation" >&5
13167 echo "$as_me: WARNING: malloc/malloc.h: see the Autoconf documentation" >&2;}
13168 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&5
13169 echo "$as_me: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&2;}
13170 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&5
13171 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&2;}
13172 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&5
13173 echo "$as_me: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&2;}
13175 cat <<\_ASBOX
13176 ## ------------------------------------------ ##
13177 ## Report this to the AC_PACKAGE_NAME lists. ##
13178 ## ------------------------------------------ ##
13179 _ASBOX
13181 sed "s/^/$as_me: WARNING: /" >&2
13183 esac
13184 echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
13185 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6
13186 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
13187 echo $ECHO_N "(cached) $ECHO_C" >&6
13188 else
13189 ac_cv_header_malloc_malloc_h=$ac_header_preproc
13191 echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
13192 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6
13195 if test $ac_cv_header_malloc_malloc_h = yes; then
13197 cat >>confdefs.h <<\_ACEOF
13198 #define HAVE_MALLOC_MALLOC_H 1
13199 _ACEOF
13205 ### Use Mac OS X Carbon API to implement GUI.
13206 if test "${HAVE_CARBON}" = "yes"; then
13208 cat >>confdefs.h <<\_ACEOF
13209 #define HAVE_CARBON 1
13210 _ACEOF
13212 ## Specify the install directory
13213 carbon_appdir=
13214 if test "${carbon_appdir_x}" != ""; then
13215 case ${carbon_appdir_x} in
13216 y | ye | yes) carbon_appdir=/Applications ;;
13217 * ) carbon_appdir=${carbon_appdir_x} ;;
13218 esac
13220 # We also have mouse menus.
13221 HAVE_MENUS=yes
13224 ### Use session management (-lSM -lICE) if available
13225 HAVE_X_SM=no
13226 if test "${HAVE_X11}" = "yes"; then
13227 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
13228 echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
13229 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6
13230 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
13231 echo $ECHO_N "(cached) $ECHO_C" >&6
13233 echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
13234 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6
13235 else
13236 # Is the header compilable?
13237 echo "$as_me:$LINENO: checking X11/SM/SMlib.h usability" >&5
13238 echo $ECHO_N "checking X11/SM/SMlib.h usability... $ECHO_C" >&6
13239 cat >conftest.$ac_ext <<_ACEOF
13240 /* confdefs.h. */
13241 _ACEOF
13242 cat confdefs.h >>conftest.$ac_ext
13243 cat >>conftest.$ac_ext <<_ACEOF
13244 /* end confdefs.h. */
13245 $ac_includes_default
13246 #include <X11/SM/SMlib.h>
13247 _ACEOF
13248 rm -f conftest.$ac_objext
13249 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13250 (eval $ac_compile) 2>conftest.er1
13251 ac_status=$?
13252 grep -v '^ *+' conftest.er1 >conftest.err
13253 rm -f conftest.er1
13254 cat conftest.err >&5
13255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13256 (exit $ac_status); } &&
13257 { ac_try='test -z "$ac_c_werror_flag"
13258 || test ! -s conftest.err'
13259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13260 (eval $ac_try) 2>&5
13261 ac_status=$?
13262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13263 (exit $ac_status); }; } &&
13264 { ac_try='test -s conftest.$ac_objext'
13265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13266 (eval $ac_try) 2>&5
13267 ac_status=$?
13268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13269 (exit $ac_status); }; }; then
13270 ac_header_compiler=yes
13271 else
13272 echo "$as_me: failed program was:" >&5
13273 sed 's/^/| /' conftest.$ac_ext >&5
13275 ac_header_compiler=no
13277 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13278 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13279 echo "${ECHO_T}$ac_header_compiler" >&6
13281 # Is the header present?
13282 echo "$as_me:$LINENO: checking X11/SM/SMlib.h presence" >&5
13283 echo $ECHO_N "checking X11/SM/SMlib.h presence... $ECHO_C" >&6
13284 cat >conftest.$ac_ext <<_ACEOF
13285 /* confdefs.h. */
13286 _ACEOF
13287 cat confdefs.h >>conftest.$ac_ext
13288 cat >>conftest.$ac_ext <<_ACEOF
13289 /* end confdefs.h. */
13290 #include <X11/SM/SMlib.h>
13291 _ACEOF
13292 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13293 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13294 ac_status=$?
13295 grep -v '^ *+' conftest.er1 >conftest.err
13296 rm -f conftest.er1
13297 cat conftest.err >&5
13298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13299 (exit $ac_status); } >/dev/null; then
13300 if test -s conftest.err; then
13301 ac_cpp_err=$ac_c_preproc_warn_flag
13302 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13303 else
13304 ac_cpp_err=
13306 else
13307 ac_cpp_err=yes
13309 if test -z "$ac_cpp_err"; then
13310 ac_header_preproc=yes
13311 else
13312 echo "$as_me: failed program was:" >&5
13313 sed 's/^/| /' conftest.$ac_ext >&5
13315 ac_header_preproc=no
13317 rm -f conftest.err conftest.$ac_ext
13318 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13319 echo "${ECHO_T}$ac_header_preproc" >&6
13321 # So? What about this header?
13322 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13323 yes:no: )
13324 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
13325 echo "$as_me: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13326 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&5
13327 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&2;}
13328 ac_header_preproc=yes
13330 no:yes:* )
13331 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&5
13332 echo "$as_me: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&2;}
13333 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&5
13334 echo "$as_me: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&2;}
13335 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&5
13336 echo "$as_me: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&2;}
13337 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&5
13338 echo "$as_me: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
13339 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
13340 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;}
13341 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&5
13342 echo "$as_me: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&2;}
13344 cat <<\_ASBOX
13345 ## ------------------------------------------ ##
13346 ## Report this to the AC_PACKAGE_NAME lists. ##
13347 ## ------------------------------------------ ##
13348 _ASBOX
13350 sed "s/^/$as_me: WARNING: /" >&2
13352 esac
13353 echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
13354 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6
13355 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
13356 echo $ECHO_N "(cached) $ECHO_C" >&6
13357 else
13358 ac_cv_header_X11_SM_SMlib_h=$ac_header_preproc
13360 echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
13361 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6
13364 if test $ac_cv_header_X11_SM_SMlib_h = yes; then
13365 echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
13366 echo $ECHO_N "checking for SmcOpenConnection in -lSM... $ECHO_C" >&6
13367 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
13368 echo $ECHO_N "(cached) $ECHO_C" >&6
13369 else
13370 ac_check_lib_save_LIBS=$LIBS
13371 LIBS="-lSM -lICE $LIBS"
13372 cat >conftest.$ac_ext <<_ACEOF
13373 /* confdefs.h. */
13374 _ACEOF
13375 cat confdefs.h >>conftest.$ac_ext
13376 cat >>conftest.$ac_ext <<_ACEOF
13377 /* end confdefs.h. */
13379 /* Override any gcc2 internal prototype to avoid an error. */
13380 #ifdef __cplusplus
13381 extern "C"
13382 #endif
13383 /* We use char because int might match the return type of a gcc2
13384 builtin and then its argument prototype would still apply. */
13385 char SmcOpenConnection ();
13387 main ()
13389 SmcOpenConnection ();
13391 return 0;
13393 _ACEOF
13394 rm -f conftest.$ac_objext conftest$ac_exeext
13395 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13396 (eval $ac_link) 2>conftest.er1
13397 ac_status=$?
13398 grep -v '^ *+' conftest.er1 >conftest.err
13399 rm -f conftest.er1
13400 cat conftest.err >&5
13401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13402 (exit $ac_status); } &&
13403 { ac_try='test -z "$ac_c_werror_flag"
13404 || test ! -s conftest.err'
13405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13406 (eval $ac_try) 2>&5
13407 ac_status=$?
13408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13409 (exit $ac_status); }; } &&
13410 { ac_try='test -s conftest$ac_exeext'
13411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13412 (eval $ac_try) 2>&5
13413 ac_status=$?
13414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13415 (exit $ac_status); }; }; then
13416 ac_cv_lib_SM_SmcOpenConnection=yes
13417 else
13418 echo "$as_me: failed program was:" >&5
13419 sed 's/^/| /' conftest.$ac_ext >&5
13421 ac_cv_lib_SM_SmcOpenConnection=no
13423 rm -f conftest.err conftest.$ac_objext \
13424 conftest$ac_exeext conftest.$ac_ext
13425 LIBS=$ac_check_lib_save_LIBS
13427 echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
13428 echo "${ECHO_T}$ac_cv_lib_SM_SmcOpenConnection" >&6
13429 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
13430 HAVE_X_SM=yes
13437 if test "${HAVE_X_SM}" = "yes"; then
13439 cat >>confdefs.h <<\_ACEOF
13440 #define HAVE_X_SM 1
13441 _ACEOF
13443 case "$LIBS" in
13444 *-lSM*) ;;
13445 *) LIBS="-lSM -lICE $LIBS" ;;
13446 esac
13450 # If netdb.h doesn't declare h_errno, we must declare it by hand.
13451 echo "$as_me:$LINENO: checking whether netdb declares h_errno" >&5
13452 echo $ECHO_N "checking whether netdb declares h_errno... $ECHO_C" >&6
13453 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then
13454 echo $ECHO_N "(cached) $ECHO_C" >&6
13455 else
13456 cat >conftest.$ac_ext <<_ACEOF
13457 /* confdefs.h. */
13458 _ACEOF
13459 cat confdefs.h >>conftest.$ac_ext
13460 cat >>conftest.$ac_ext <<_ACEOF
13461 /* end confdefs.h. */
13462 #include <netdb.h>
13464 main ()
13466 return h_errno;
13468 return 0;
13470 _ACEOF
13471 rm -f conftest.$ac_objext conftest$ac_exeext
13472 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13473 (eval $ac_link) 2>conftest.er1
13474 ac_status=$?
13475 grep -v '^ *+' conftest.er1 >conftest.err
13476 rm -f conftest.er1
13477 cat conftest.err >&5
13478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13479 (exit $ac_status); } &&
13480 { ac_try='test -z "$ac_c_werror_flag"
13481 || test ! -s conftest.err'
13482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13483 (eval $ac_try) 2>&5
13484 ac_status=$?
13485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13486 (exit $ac_status); }; } &&
13487 { ac_try='test -s conftest$ac_exeext'
13488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13489 (eval $ac_try) 2>&5
13490 ac_status=$?
13491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13492 (exit $ac_status); }; }; then
13493 emacs_cv_netdb_declares_h_errno=yes
13494 else
13495 echo "$as_me: failed program was:" >&5
13496 sed 's/^/| /' conftest.$ac_ext >&5
13498 emacs_cv_netdb_declares_h_errno=no
13500 rm -f conftest.err conftest.$ac_objext \
13501 conftest$ac_exeext conftest.$ac_ext
13503 echo "$as_me:$LINENO: result: $emacs_cv_netdb_declares_h_errno" >&5
13504 echo "${ECHO_T}$emacs_cv_netdb_declares_h_errno" >&6
13505 if test $emacs_cv_netdb_declares_h_errno = yes; then
13507 cat >>confdefs.h <<\_ACEOF
13508 #define HAVE_H_ERRNO 1
13509 _ACEOF
13513 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
13514 # for constant arguments. Useless!
13515 echo "$as_me:$LINENO: checking for working alloca.h" >&5
13516 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
13517 if test "${ac_cv_working_alloca_h+set}" = set; then
13518 echo $ECHO_N "(cached) $ECHO_C" >&6
13519 else
13520 cat >conftest.$ac_ext <<_ACEOF
13521 /* confdefs.h. */
13522 _ACEOF
13523 cat confdefs.h >>conftest.$ac_ext
13524 cat >>conftest.$ac_ext <<_ACEOF
13525 /* end confdefs.h. */
13526 #include <alloca.h>
13528 main ()
13530 char *p = (char *) alloca (2 * sizeof (int));
13532 return 0;
13534 _ACEOF
13535 rm -f conftest.$ac_objext conftest$ac_exeext
13536 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13537 (eval $ac_link) 2>conftest.er1
13538 ac_status=$?
13539 grep -v '^ *+' conftest.er1 >conftest.err
13540 rm -f conftest.er1
13541 cat conftest.err >&5
13542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13543 (exit $ac_status); } &&
13544 { ac_try='test -z "$ac_c_werror_flag"
13545 || test ! -s conftest.err'
13546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13547 (eval $ac_try) 2>&5
13548 ac_status=$?
13549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13550 (exit $ac_status); }; } &&
13551 { ac_try='test -s conftest$ac_exeext'
13552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13553 (eval $ac_try) 2>&5
13554 ac_status=$?
13555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13556 (exit $ac_status); }; }; then
13557 ac_cv_working_alloca_h=yes
13558 else
13559 echo "$as_me: failed program was:" >&5
13560 sed 's/^/| /' conftest.$ac_ext >&5
13562 ac_cv_working_alloca_h=no
13564 rm -f conftest.err conftest.$ac_objext \
13565 conftest$ac_exeext conftest.$ac_ext
13567 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
13568 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
13569 if test $ac_cv_working_alloca_h = yes; then
13571 cat >>confdefs.h <<\_ACEOF
13572 #define HAVE_ALLOCA_H 1
13573 _ACEOF
13577 echo "$as_me:$LINENO: checking for alloca" >&5
13578 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
13579 if test "${ac_cv_func_alloca_works+set}" = set; then
13580 echo $ECHO_N "(cached) $ECHO_C" >&6
13581 else
13582 cat >conftest.$ac_ext <<_ACEOF
13583 /* confdefs.h. */
13584 _ACEOF
13585 cat confdefs.h >>conftest.$ac_ext
13586 cat >>conftest.$ac_ext <<_ACEOF
13587 /* end confdefs.h. */
13588 #ifdef __GNUC__
13589 # define alloca __builtin_alloca
13590 #else
13591 # ifdef _MSC_VER
13592 # include <malloc.h>
13593 # define alloca _alloca
13594 # else
13595 # if HAVE_ALLOCA_H
13596 # include <alloca.h>
13597 # else
13598 # ifdef _AIX
13599 #pragma alloca
13600 # else
13601 # ifndef alloca /* predefined by HP cc +Olibcalls */
13602 char *alloca ();
13603 # endif
13604 # endif
13605 # endif
13606 # endif
13607 #endif
13610 main ()
13612 char *p = (char *) alloca (1);
13614 return 0;
13616 _ACEOF
13617 rm -f conftest.$ac_objext conftest$ac_exeext
13618 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13619 (eval $ac_link) 2>conftest.er1
13620 ac_status=$?
13621 grep -v '^ *+' conftest.er1 >conftest.err
13622 rm -f conftest.er1
13623 cat conftest.err >&5
13624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13625 (exit $ac_status); } &&
13626 { ac_try='test -z "$ac_c_werror_flag"
13627 || test ! -s conftest.err'
13628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13629 (eval $ac_try) 2>&5
13630 ac_status=$?
13631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13632 (exit $ac_status); }; } &&
13633 { ac_try='test -s conftest$ac_exeext'
13634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13635 (eval $ac_try) 2>&5
13636 ac_status=$?
13637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13638 (exit $ac_status); }; }; then
13639 ac_cv_func_alloca_works=yes
13640 else
13641 echo "$as_me: failed program was:" >&5
13642 sed 's/^/| /' conftest.$ac_ext >&5
13644 ac_cv_func_alloca_works=no
13646 rm -f conftest.err conftest.$ac_objext \
13647 conftest$ac_exeext conftest.$ac_ext
13649 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
13650 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
13652 if test $ac_cv_func_alloca_works = yes; then
13654 cat >>confdefs.h <<\_ACEOF
13655 #define HAVE_ALLOCA 1
13656 _ACEOF
13658 else
13659 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
13660 # that cause trouble. Some versions do not even contain alloca or
13661 # contain a buggy version. If you still want to use their alloca,
13662 # use ar to extract alloca.o from them instead of compiling alloca.c.
13664 ALLOCA=alloca.$ac_objext
13666 cat >>confdefs.h <<\_ACEOF
13667 #define C_ALLOCA 1
13668 _ACEOF
13671 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
13672 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
13673 if test "${ac_cv_os_cray+set}" = set; then
13674 echo $ECHO_N "(cached) $ECHO_C" >&6
13675 else
13676 cat >conftest.$ac_ext <<_ACEOF
13677 /* confdefs.h. */
13678 _ACEOF
13679 cat confdefs.h >>conftest.$ac_ext
13680 cat >>conftest.$ac_ext <<_ACEOF
13681 /* end confdefs.h. */
13682 #if defined(CRAY) && ! defined(CRAY2)
13683 webecray
13684 #else
13685 wenotbecray
13686 #endif
13688 _ACEOF
13689 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13690 $EGREP "webecray" >/dev/null 2>&1; then
13691 ac_cv_os_cray=yes
13692 else
13693 ac_cv_os_cray=no
13695 rm -f conftest*
13698 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
13699 echo "${ECHO_T}$ac_cv_os_cray" >&6
13700 if test $ac_cv_os_cray = yes; then
13701 for ac_func in _getb67 GETB67 getb67; do
13702 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13703 echo "$as_me:$LINENO: checking for $ac_func" >&5
13704 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13705 if eval "test \"\${$as_ac_var+set}\" = set"; then
13706 echo $ECHO_N "(cached) $ECHO_C" >&6
13707 else
13708 cat >conftest.$ac_ext <<_ACEOF
13709 /* confdefs.h. */
13710 _ACEOF
13711 cat confdefs.h >>conftest.$ac_ext
13712 cat >>conftest.$ac_ext <<_ACEOF
13713 /* end confdefs.h. */
13714 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13715 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13716 #define $ac_func innocuous_$ac_func
13718 /* System header to define __stub macros and hopefully few prototypes,
13719 which can conflict with char $ac_func (); below.
13720 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13721 <limits.h> exists even on freestanding compilers. */
13723 #ifdef __STDC__
13724 # include <limits.h>
13725 #else
13726 # include <assert.h>
13727 #endif
13729 #undef $ac_func
13731 /* Override any gcc2 internal prototype to avoid an error. */
13732 #ifdef __cplusplus
13733 extern "C"
13735 #endif
13736 /* We use char because int might match the return type of a gcc2
13737 builtin and then its argument prototype would still apply. */
13738 char $ac_func ();
13739 /* The GNU C library defines this for functions which it implements
13740 to always fail with ENOSYS. Some functions are actually named
13741 something starting with __ and the normal name is an alias. */
13742 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13743 choke me
13744 #else
13745 char (*f) () = $ac_func;
13746 #endif
13747 #ifdef __cplusplus
13749 #endif
13752 main ()
13754 return f != $ac_func;
13756 return 0;
13758 _ACEOF
13759 rm -f conftest.$ac_objext conftest$ac_exeext
13760 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13761 (eval $ac_link) 2>conftest.er1
13762 ac_status=$?
13763 grep -v '^ *+' conftest.er1 >conftest.err
13764 rm -f conftest.er1
13765 cat conftest.err >&5
13766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13767 (exit $ac_status); } &&
13768 { ac_try='test -z "$ac_c_werror_flag"
13769 || test ! -s conftest.err'
13770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13771 (eval $ac_try) 2>&5
13772 ac_status=$?
13773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13774 (exit $ac_status); }; } &&
13775 { ac_try='test -s conftest$ac_exeext'
13776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13777 (eval $ac_try) 2>&5
13778 ac_status=$?
13779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13780 (exit $ac_status); }; }; then
13781 eval "$as_ac_var=yes"
13782 else
13783 echo "$as_me: failed program was:" >&5
13784 sed 's/^/| /' conftest.$ac_ext >&5
13786 eval "$as_ac_var=no"
13788 rm -f conftest.err conftest.$ac_objext \
13789 conftest$ac_exeext conftest.$ac_ext
13791 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13792 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13793 if test `eval echo '${'$as_ac_var'}'` = yes; then
13795 cat >>confdefs.h <<_ACEOF
13796 #define CRAY_STACKSEG_END $ac_func
13797 _ACEOF
13799 break
13802 done
13805 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
13806 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
13807 if test "${ac_cv_c_stack_direction+set}" = set; then
13808 echo $ECHO_N "(cached) $ECHO_C" >&6
13809 else
13810 if test "$cross_compiling" = yes; then
13811 ac_cv_c_stack_direction=0
13812 else
13813 cat >conftest.$ac_ext <<_ACEOF
13814 /* confdefs.h. */
13815 _ACEOF
13816 cat confdefs.h >>conftest.$ac_ext
13817 cat >>conftest.$ac_ext <<_ACEOF
13818 /* end confdefs.h. */
13820 find_stack_direction ()
13822 static char *addr = 0;
13823 auto char dummy;
13824 if (addr == 0)
13826 addr = &dummy;
13827 return find_stack_direction ();
13829 else
13830 return (&dummy > addr) ? 1 : -1;
13834 main ()
13836 exit (find_stack_direction () < 0);
13838 _ACEOF
13839 rm -f conftest$ac_exeext
13840 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13841 (eval $ac_link) 2>&5
13842 ac_status=$?
13843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13844 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13846 (eval $ac_try) 2>&5
13847 ac_status=$?
13848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13849 (exit $ac_status); }; }; then
13850 ac_cv_c_stack_direction=1
13851 else
13852 echo "$as_me: program exited with status $ac_status" >&5
13853 echo "$as_me: failed program was:" >&5
13854 sed 's/^/| /' conftest.$ac_ext >&5
13856 ( exit $ac_status )
13857 ac_cv_c_stack_direction=-1
13859 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13862 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
13863 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
13865 cat >>confdefs.h <<_ACEOF
13866 #define STACK_DIRECTION $ac_cv_c_stack_direction
13867 _ACEOF
13873 # fmod, logb, and frexp are found in -lm on most systems.
13874 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
13876 echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
13877 echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6
13878 if test "${ac_cv_lib_m_sqrt+set}" = set; then
13879 echo $ECHO_N "(cached) $ECHO_C" >&6
13880 else
13881 ac_check_lib_save_LIBS=$LIBS
13882 LIBS="-lm $LIBS"
13883 cat >conftest.$ac_ext <<_ACEOF
13884 /* confdefs.h. */
13885 _ACEOF
13886 cat confdefs.h >>conftest.$ac_ext
13887 cat >>conftest.$ac_ext <<_ACEOF
13888 /* end confdefs.h. */
13890 /* Override any gcc2 internal prototype to avoid an error. */
13891 #ifdef __cplusplus
13892 extern "C"
13893 #endif
13894 /* We use char because int might match the return type of a gcc2
13895 builtin and then its argument prototype would still apply. */
13896 char sqrt ();
13898 main ()
13900 sqrt ();
13902 return 0;
13904 _ACEOF
13905 rm -f conftest.$ac_objext conftest$ac_exeext
13906 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13907 (eval $ac_link) 2>conftest.er1
13908 ac_status=$?
13909 grep -v '^ *+' conftest.er1 >conftest.err
13910 rm -f conftest.er1
13911 cat conftest.err >&5
13912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13913 (exit $ac_status); } &&
13914 { ac_try='test -z "$ac_c_werror_flag"
13915 || test ! -s conftest.err'
13916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13917 (eval $ac_try) 2>&5
13918 ac_status=$?
13919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13920 (exit $ac_status); }; } &&
13921 { ac_try='test -s conftest$ac_exeext'
13922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13923 (eval $ac_try) 2>&5
13924 ac_status=$?
13925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13926 (exit $ac_status); }; }; then
13927 ac_cv_lib_m_sqrt=yes
13928 else
13929 echo "$as_me: failed program was:" >&5
13930 sed 's/^/| /' conftest.$ac_ext >&5
13932 ac_cv_lib_m_sqrt=no
13934 rm -f conftest.err conftest.$ac_objext \
13935 conftest$ac_exeext conftest.$ac_ext
13936 LIBS=$ac_check_lib_save_LIBS
13938 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
13939 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6
13940 if test $ac_cv_lib_m_sqrt = yes; then
13941 cat >>confdefs.h <<_ACEOF
13942 #define HAVE_LIBM 1
13943 _ACEOF
13945 LIBS="-lm $LIBS"
13950 # Check for mail-locking functions in a "mail" library. Probably this should
13951 # have the same check as for liblockfile below.
13953 echo "$as_me:$LINENO: checking for maillock in -lmail" >&5
13954 echo $ECHO_N "checking for maillock in -lmail... $ECHO_C" >&6
13955 if test "${ac_cv_lib_mail_maillock+set}" = set; then
13956 echo $ECHO_N "(cached) $ECHO_C" >&6
13957 else
13958 ac_check_lib_save_LIBS=$LIBS
13959 LIBS="-lmail $LIBS"
13960 cat >conftest.$ac_ext <<_ACEOF
13961 /* confdefs.h. */
13962 _ACEOF
13963 cat confdefs.h >>conftest.$ac_ext
13964 cat >>conftest.$ac_ext <<_ACEOF
13965 /* end confdefs.h. */
13967 /* Override any gcc2 internal prototype to avoid an error. */
13968 #ifdef __cplusplus
13969 extern "C"
13970 #endif
13971 /* We use char because int might match the return type of a gcc2
13972 builtin and then its argument prototype would still apply. */
13973 char maillock ();
13975 main ()
13977 maillock ();
13979 return 0;
13981 _ACEOF
13982 rm -f conftest.$ac_objext conftest$ac_exeext
13983 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13984 (eval $ac_link) 2>conftest.er1
13985 ac_status=$?
13986 grep -v '^ *+' conftest.er1 >conftest.err
13987 rm -f conftest.er1
13988 cat conftest.err >&5
13989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13990 (exit $ac_status); } &&
13991 { ac_try='test -z "$ac_c_werror_flag"
13992 || test ! -s conftest.err'
13993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13994 (eval $ac_try) 2>&5
13995 ac_status=$?
13996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13997 (exit $ac_status); }; } &&
13998 { ac_try='test -s conftest$ac_exeext'
13999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14000 (eval $ac_try) 2>&5
14001 ac_status=$?
14002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14003 (exit $ac_status); }; }; then
14004 ac_cv_lib_mail_maillock=yes
14005 else
14006 echo "$as_me: failed program was:" >&5
14007 sed 's/^/| /' conftest.$ac_ext >&5
14009 ac_cv_lib_mail_maillock=no
14011 rm -f conftest.err conftest.$ac_objext \
14012 conftest$ac_exeext conftest.$ac_ext
14013 LIBS=$ac_check_lib_save_LIBS
14015 echo "$as_me:$LINENO: result: $ac_cv_lib_mail_maillock" >&5
14016 echo "${ECHO_T}$ac_cv_lib_mail_maillock" >&6
14017 if test $ac_cv_lib_mail_maillock = yes; then
14018 cat >>confdefs.h <<_ACEOF
14019 #define HAVE_LIBMAIL 1
14020 _ACEOF
14022 LIBS="-lmail $LIBS"
14027 echo "$as_me:$LINENO: checking for maillock in -llockfile" >&5
14028 echo $ECHO_N "checking for maillock in -llockfile... $ECHO_C" >&6
14029 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
14030 echo $ECHO_N "(cached) $ECHO_C" >&6
14031 else
14032 ac_check_lib_save_LIBS=$LIBS
14033 LIBS="-llockfile $LIBS"
14034 cat >conftest.$ac_ext <<_ACEOF
14035 /* confdefs.h. */
14036 _ACEOF
14037 cat confdefs.h >>conftest.$ac_ext
14038 cat >>conftest.$ac_ext <<_ACEOF
14039 /* end confdefs.h. */
14041 /* Override any gcc2 internal prototype to avoid an error. */
14042 #ifdef __cplusplus
14043 extern "C"
14044 #endif
14045 /* We use char because int might match the return type of a gcc2
14046 builtin and then its argument prototype would still apply. */
14047 char maillock ();
14049 main ()
14051 maillock ();
14053 return 0;
14055 _ACEOF
14056 rm -f conftest.$ac_objext conftest$ac_exeext
14057 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14058 (eval $ac_link) 2>conftest.er1
14059 ac_status=$?
14060 grep -v '^ *+' conftest.er1 >conftest.err
14061 rm -f conftest.er1
14062 cat conftest.err >&5
14063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14064 (exit $ac_status); } &&
14065 { ac_try='test -z "$ac_c_werror_flag"
14066 || test ! -s conftest.err'
14067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14068 (eval $ac_try) 2>&5
14069 ac_status=$?
14070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14071 (exit $ac_status); }; } &&
14072 { ac_try='test -s conftest$ac_exeext'
14073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14074 (eval $ac_try) 2>&5
14075 ac_status=$?
14076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14077 (exit $ac_status); }; }; then
14078 ac_cv_lib_lockfile_maillock=yes
14079 else
14080 echo "$as_me: failed program was:" >&5
14081 sed 's/^/| /' conftest.$ac_ext >&5
14083 ac_cv_lib_lockfile_maillock=no
14085 rm -f conftest.err conftest.$ac_objext \
14086 conftest$ac_exeext conftest.$ac_ext
14087 LIBS=$ac_check_lib_save_LIBS
14089 echo "$as_me:$LINENO: result: $ac_cv_lib_lockfile_maillock" >&5
14090 echo "${ECHO_T}$ac_cv_lib_lockfile_maillock" >&6
14091 if test $ac_cv_lib_lockfile_maillock = yes; then
14092 cat >>confdefs.h <<_ACEOF
14093 #define HAVE_LIBLOCKFILE 1
14094 _ACEOF
14096 LIBS="-llockfile $LIBS"
14100 # If we have the shared liblockfile, assume we must use it for mail
14101 # locking (e.g. Debian). If we couldn't link against liblockfile
14102 # (no liblockfile.a installed), ensure that we don't need to.
14103 if test "$ac_cv_lib_lockfile_maillock" = no; then
14104 # Extract the first word of "liblockfile.so", so it can be a program name with args.
14105 set dummy liblockfile.so; ac_word=$2
14106 echo "$as_me:$LINENO: checking for $ac_word" >&5
14107 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14108 if test "${ac_cv_prog_liblockfile+set}" = set; then
14109 echo $ECHO_N "(cached) $ECHO_C" >&6
14110 else
14111 if test -n "$liblockfile"; then
14112 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
14113 else
14114 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14115 as_dummy="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
14116 for as_dir in $as_dummy
14118 IFS=$as_save_IFS
14119 test -z "$as_dir" && as_dir=.
14120 for ac_exec_ext in '' $ac_executable_extensions; do
14121 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14122 ac_cv_prog_liblockfile="yes"
14123 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14124 break 2
14126 done
14127 done
14129 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no"
14132 liblockfile=$ac_cv_prog_liblockfile
14133 if test -n "$liblockfile"; then
14134 echo "$as_me:$LINENO: result: $liblockfile" >&5
14135 echo "${ECHO_T}$liblockfile" >&6
14136 else
14137 echo "$as_me:$LINENO: result: no" >&5
14138 echo "${ECHO_T}no" >&6
14141 if test $ac_cv_prog_liblockfile = yes; then
14142 { { echo "$as_me:$LINENO: error: Shared liblockfile found but can't link against it.
14143 This probably means that movemail could lose mail.
14144 There may be a \`development' package to install containing liblockfile." >&5
14145 echo "$as_me: error: Shared liblockfile found but can't link against it.
14146 This probably means that movemail could lose mail.
14147 There may be a \`development' package to install containing liblockfile." >&2;}
14148 { (exit 1); exit 1; }; }
14149 else :
14153 for ac_func in touchlock
14155 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14156 echo "$as_me:$LINENO: checking for $ac_func" >&5
14157 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14158 if eval "test \"\${$as_ac_var+set}\" = set"; then
14159 echo $ECHO_N "(cached) $ECHO_C" >&6
14160 else
14161 cat >conftest.$ac_ext <<_ACEOF
14162 /* confdefs.h. */
14163 _ACEOF
14164 cat confdefs.h >>conftest.$ac_ext
14165 cat >>conftest.$ac_ext <<_ACEOF
14166 /* end confdefs.h. */
14167 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14168 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14169 #define $ac_func innocuous_$ac_func
14171 /* System header to define __stub macros and hopefully few prototypes,
14172 which can conflict with char $ac_func (); below.
14173 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14174 <limits.h> exists even on freestanding compilers. */
14176 #ifdef __STDC__
14177 # include <limits.h>
14178 #else
14179 # include <assert.h>
14180 #endif
14182 #undef $ac_func
14184 /* Override any gcc2 internal prototype to avoid an error. */
14185 #ifdef __cplusplus
14186 extern "C"
14188 #endif
14189 /* We use char because int might match the return type of a gcc2
14190 builtin and then its argument prototype would still apply. */
14191 char $ac_func ();
14192 /* The GNU C library defines this for functions which it implements
14193 to always fail with ENOSYS. Some functions are actually named
14194 something starting with __ and the normal name is an alias. */
14195 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14196 choke me
14197 #else
14198 char (*f) () = $ac_func;
14199 #endif
14200 #ifdef __cplusplus
14202 #endif
14205 main ()
14207 return f != $ac_func;
14209 return 0;
14211 _ACEOF
14212 rm -f conftest.$ac_objext conftest$ac_exeext
14213 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14214 (eval $ac_link) 2>conftest.er1
14215 ac_status=$?
14216 grep -v '^ *+' conftest.er1 >conftest.err
14217 rm -f conftest.er1
14218 cat conftest.err >&5
14219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14220 (exit $ac_status); } &&
14221 { ac_try='test -z "$ac_c_werror_flag"
14222 || test ! -s conftest.err'
14223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14224 (eval $ac_try) 2>&5
14225 ac_status=$?
14226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14227 (exit $ac_status); }; } &&
14228 { ac_try='test -s conftest$ac_exeext'
14229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14230 (eval $ac_try) 2>&5
14231 ac_status=$?
14232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14233 (exit $ac_status); }; }; then
14234 eval "$as_ac_var=yes"
14235 else
14236 echo "$as_me: failed program was:" >&5
14237 sed 's/^/| /' conftest.$ac_ext >&5
14239 eval "$as_ac_var=no"
14241 rm -f conftest.err conftest.$ac_objext \
14242 conftest$ac_exeext conftest.$ac_ext
14244 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14245 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14246 if test `eval echo '${'$as_ac_var'}'` = yes; then
14247 cat >>confdefs.h <<_ACEOF
14248 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14249 _ACEOF
14252 done
14255 for ac_header in maillock.h
14257 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14258 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14259 echo "$as_me:$LINENO: checking for $ac_header" >&5
14260 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14261 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14262 echo $ECHO_N "(cached) $ECHO_C" >&6
14264 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14265 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14266 else
14267 # Is the header compilable?
14268 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14269 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14270 cat >conftest.$ac_ext <<_ACEOF
14271 /* confdefs.h. */
14272 _ACEOF
14273 cat confdefs.h >>conftest.$ac_ext
14274 cat >>conftest.$ac_ext <<_ACEOF
14275 /* end confdefs.h. */
14276 $ac_includes_default
14277 #include <$ac_header>
14278 _ACEOF
14279 rm -f conftest.$ac_objext
14280 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14281 (eval $ac_compile) 2>conftest.er1
14282 ac_status=$?
14283 grep -v '^ *+' conftest.er1 >conftest.err
14284 rm -f conftest.er1
14285 cat conftest.err >&5
14286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14287 (exit $ac_status); } &&
14288 { ac_try='test -z "$ac_c_werror_flag"
14289 || test ! -s conftest.err'
14290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14291 (eval $ac_try) 2>&5
14292 ac_status=$?
14293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14294 (exit $ac_status); }; } &&
14295 { ac_try='test -s conftest.$ac_objext'
14296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14297 (eval $ac_try) 2>&5
14298 ac_status=$?
14299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14300 (exit $ac_status); }; }; then
14301 ac_header_compiler=yes
14302 else
14303 echo "$as_me: failed program was:" >&5
14304 sed 's/^/| /' conftest.$ac_ext >&5
14306 ac_header_compiler=no
14308 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14309 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14310 echo "${ECHO_T}$ac_header_compiler" >&6
14312 # Is the header present?
14313 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14314 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14315 cat >conftest.$ac_ext <<_ACEOF
14316 /* confdefs.h. */
14317 _ACEOF
14318 cat confdefs.h >>conftest.$ac_ext
14319 cat >>conftest.$ac_ext <<_ACEOF
14320 /* end confdefs.h. */
14321 #include <$ac_header>
14322 _ACEOF
14323 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14324 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14325 ac_status=$?
14326 grep -v '^ *+' conftest.er1 >conftest.err
14327 rm -f conftest.er1
14328 cat conftest.err >&5
14329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14330 (exit $ac_status); } >/dev/null; then
14331 if test -s conftest.err; then
14332 ac_cpp_err=$ac_c_preproc_warn_flag
14333 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14334 else
14335 ac_cpp_err=
14337 else
14338 ac_cpp_err=yes
14340 if test -z "$ac_cpp_err"; then
14341 ac_header_preproc=yes
14342 else
14343 echo "$as_me: failed program was:" >&5
14344 sed 's/^/| /' conftest.$ac_ext >&5
14346 ac_header_preproc=no
14348 rm -f conftest.err conftest.$ac_ext
14349 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14350 echo "${ECHO_T}$ac_header_preproc" >&6
14352 # So? What about this header?
14353 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14354 yes:no: )
14355 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14356 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14357 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14358 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14359 ac_header_preproc=yes
14361 no:yes:* )
14362 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14363 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14364 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14365 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14366 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14367 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14368 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14369 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14370 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14371 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14372 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14373 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14375 cat <<\_ASBOX
14376 ## ------------------------------------------ ##
14377 ## Report this to the AC_PACKAGE_NAME lists. ##
14378 ## ------------------------------------------ ##
14379 _ASBOX
14381 sed "s/^/$as_me: WARNING: /" >&2
14383 esac
14384 echo "$as_me:$LINENO: checking for $ac_header" >&5
14385 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14386 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14387 echo $ECHO_N "(cached) $ECHO_C" >&6
14388 else
14389 eval "$as_ac_Header=\$ac_header_preproc"
14391 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14392 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14395 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14396 cat >>confdefs.h <<_ACEOF
14397 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14398 _ACEOF
14402 done
14474 for ac_func in gethostname getdomainname dup2 \
14475 rename closedir mkdir rmdir sysinfo getrusage get_current_dir_name \
14476 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime res_init setsid \
14477 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \
14478 utimes setrlimit setpgid getcwd getwd shutdown getaddrinfo \
14479 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
14480 sendto recvfrom getsockopt setsockopt getsockname getpeername \
14481 gai_strerror mkstemp getline getdelim mremap memmove fsync sync bzero \
14482 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign
14484 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14485 echo "$as_me:$LINENO: checking for $ac_func" >&5
14486 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14487 if eval "test \"\${$as_ac_var+set}\" = set"; then
14488 echo $ECHO_N "(cached) $ECHO_C" >&6
14489 else
14490 cat >conftest.$ac_ext <<_ACEOF
14491 /* confdefs.h. */
14492 _ACEOF
14493 cat confdefs.h >>conftest.$ac_ext
14494 cat >>conftest.$ac_ext <<_ACEOF
14495 /* end confdefs.h. */
14496 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14497 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14498 #define $ac_func innocuous_$ac_func
14500 /* System header to define __stub macros and hopefully few prototypes,
14501 which can conflict with char $ac_func (); below.
14502 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14503 <limits.h> exists even on freestanding compilers. */
14505 #ifdef __STDC__
14506 # include <limits.h>
14507 #else
14508 # include <assert.h>
14509 #endif
14511 #undef $ac_func
14513 /* Override any gcc2 internal prototype to avoid an error. */
14514 #ifdef __cplusplus
14515 extern "C"
14517 #endif
14518 /* We use char because int might match the return type of a gcc2
14519 builtin and then its argument prototype would still apply. */
14520 char $ac_func ();
14521 /* The GNU C library defines this for functions which it implements
14522 to always fail with ENOSYS. Some functions are actually named
14523 something starting with __ and the normal name is an alias. */
14524 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14525 choke me
14526 #else
14527 char (*f) () = $ac_func;
14528 #endif
14529 #ifdef __cplusplus
14531 #endif
14534 main ()
14536 return f != $ac_func;
14538 return 0;
14540 _ACEOF
14541 rm -f conftest.$ac_objext conftest$ac_exeext
14542 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14543 (eval $ac_link) 2>conftest.er1
14544 ac_status=$?
14545 grep -v '^ *+' conftest.er1 >conftest.err
14546 rm -f conftest.er1
14547 cat conftest.err >&5
14548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14549 (exit $ac_status); } &&
14550 { ac_try='test -z "$ac_c_werror_flag"
14551 || test ! -s conftest.err'
14552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14553 (eval $ac_try) 2>&5
14554 ac_status=$?
14555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14556 (exit $ac_status); }; } &&
14557 { ac_try='test -s conftest$ac_exeext'
14558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14559 (eval $ac_try) 2>&5
14560 ac_status=$?
14561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14562 (exit $ac_status); }; }; then
14563 eval "$as_ac_var=yes"
14564 else
14565 echo "$as_me: failed program was:" >&5
14566 sed 's/^/| /' conftest.$ac_ext >&5
14568 eval "$as_ac_var=no"
14570 rm -f conftest.err conftest.$ac_objext \
14571 conftest$ac_exeext conftest.$ac_ext
14573 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14574 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14575 if test `eval echo '${'$as_ac_var'}'` = yes; then
14576 cat >>confdefs.h <<_ACEOF
14577 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14578 _ACEOF
14581 done
14585 for ac_header in sys/un.h
14587 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14588 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14589 echo "$as_me:$LINENO: checking for $ac_header" >&5
14590 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14591 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14592 echo $ECHO_N "(cached) $ECHO_C" >&6
14594 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14595 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14596 else
14597 # Is the header compilable?
14598 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14599 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14600 cat >conftest.$ac_ext <<_ACEOF
14601 /* confdefs.h. */
14602 _ACEOF
14603 cat confdefs.h >>conftest.$ac_ext
14604 cat >>conftest.$ac_ext <<_ACEOF
14605 /* end confdefs.h. */
14606 $ac_includes_default
14607 #include <$ac_header>
14608 _ACEOF
14609 rm -f conftest.$ac_objext
14610 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14611 (eval $ac_compile) 2>conftest.er1
14612 ac_status=$?
14613 grep -v '^ *+' conftest.er1 >conftest.err
14614 rm -f conftest.er1
14615 cat conftest.err >&5
14616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14617 (exit $ac_status); } &&
14618 { ac_try='test -z "$ac_c_werror_flag"
14619 || test ! -s conftest.err'
14620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14621 (eval $ac_try) 2>&5
14622 ac_status=$?
14623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14624 (exit $ac_status); }; } &&
14625 { ac_try='test -s conftest.$ac_objext'
14626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14627 (eval $ac_try) 2>&5
14628 ac_status=$?
14629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14630 (exit $ac_status); }; }; then
14631 ac_header_compiler=yes
14632 else
14633 echo "$as_me: failed program was:" >&5
14634 sed 's/^/| /' conftest.$ac_ext >&5
14636 ac_header_compiler=no
14638 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14639 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14640 echo "${ECHO_T}$ac_header_compiler" >&6
14642 # Is the header present?
14643 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14644 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14645 cat >conftest.$ac_ext <<_ACEOF
14646 /* confdefs.h. */
14647 _ACEOF
14648 cat confdefs.h >>conftest.$ac_ext
14649 cat >>conftest.$ac_ext <<_ACEOF
14650 /* end confdefs.h. */
14651 #include <$ac_header>
14652 _ACEOF
14653 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14654 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14655 ac_status=$?
14656 grep -v '^ *+' conftest.er1 >conftest.err
14657 rm -f conftest.er1
14658 cat conftest.err >&5
14659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14660 (exit $ac_status); } >/dev/null; then
14661 if test -s conftest.err; then
14662 ac_cpp_err=$ac_c_preproc_warn_flag
14663 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14664 else
14665 ac_cpp_err=
14667 else
14668 ac_cpp_err=yes
14670 if test -z "$ac_cpp_err"; then
14671 ac_header_preproc=yes
14672 else
14673 echo "$as_me: failed program was:" >&5
14674 sed 's/^/| /' conftest.$ac_ext >&5
14676 ac_header_preproc=no
14678 rm -f conftest.err conftest.$ac_ext
14679 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14680 echo "${ECHO_T}$ac_header_preproc" >&6
14682 # So? What about this header?
14683 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14684 yes:no: )
14685 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14686 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14687 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14688 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14689 ac_header_preproc=yes
14691 no:yes:* )
14692 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14693 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14694 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14695 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14696 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14697 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14698 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14699 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14700 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14701 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14702 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14703 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14705 cat <<\_ASBOX
14706 ## ------------------------------------------ ##
14707 ## Report this to the AC_PACKAGE_NAME lists. ##
14708 ## ------------------------------------------ ##
14709 _ASBOX
14711 sed "s/^/$as_me: WARNING: /" >&2
14713 esac
14714 echo "$as_me:$LINENO: checking for $ac_header" >&5
14715 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14716 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14717 echo $ECHO_N "(cached) $ECHO_C" >&6
14718 else
14719 eval "$as_ac_Header=\$ac_header_preproc"
14721 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14722 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14725 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14726 cat >>confdefs.h <<_ACEOF
14727 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14728 _ACEOF
14732 done
14738 for ac_header in stdlib.h sys/time.h unistd.h
14740 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14741 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14742 echo "$as_me:$LINENO: checking for $ac_header" >&5
14743 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14744 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14745 echo $ECHO_N "(cached) $ECHO_C" >&6
14747 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14748 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14749 else
14750 # Is the header compilable?
14751 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14752 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14753 cat >conftest.$ac_ext <<_ACEOF
14754 /* confdefs.h. */
14755 _ACEOF
14756 cat confdefs.h >>conftest.$ac_ext
14757 cat >>conftest.$ac_ext <<_ACEOF
14758 /* end confdefs.h. */
14759 $ac_includes_default
14760 #include <$ac_header>
14761 _ACEOF
14762 rm -f conftest.$ac_objext
14763 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14764 (eval $ac_compile) 2>conftest.er1
14765 ac_status=$?
14766 grep -v '^ *+' conftest.er1 >conftest.err
14767 rm -f conftest.er1
14768 cat conftest.err >&5
14769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14770 (exit $ac_status); } &&
14771 { ac_try='test -z "$ac_c_werror_flag"
14772 || test ! -s conftest.err'
14773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14774 (eval $ac_try) 2>&5
14775 ac_status=$?
14776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14777 (exit $ac_status); }; } &&
14778 { ac_try='test -s conftest.$ac_objext'
14779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14780 (eval $ac_try) 2>&5
14781 ac_status=$?
14782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14783 (exit $ac_status); }; }; then
14784 ac_header_compiler=yes
14785 else
14786 echo "$as_me: failed program was:" >&5
14787 sed 's/^/| /' conftest.$ac_ext >&5
14789 ac_header_compiler=no
14791 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14792 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14793 echo "${ECHO_T}$ac_header_compiler" >&6
14795 # Is the header present?
14796 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14797 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14798 cat >conftest.$ac_ext <<_ACEOF
14799 /* confdefs.h. */
14800 _ACEOF
14801 cat confdefs.h >>conftest.$ac_ext
14802 cat >>conftest.$ac_ext <<_ACEOF
14803 /* end confdefs.h. */
14804 #include <$ac_header>
14805 _ACEOF
14806 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14807 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14808 ac_status=$?
14809 grep -v '^ *+' conftest.er1 >conftest.err
14810 rm -f conftest.er1
14811 cat conftest.err >&5
14812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14813 (exit $ac_status); } >/dev/null; then
14814 if test -s conftest.err; then
14815 ac_cpp_err=$ac_c_preproc_warn_flag
14816 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14817 else
14818 ac_cpp_err=
14820 else
14821 ac_cpp_err=yes
14823 if test -z "$ac_cpp_err"; then
14824 ac_header_preproc=yes
14825 else
14826 echo "$as_me: failed program was:" >&5
14827 sed 's/^/| /' conftest.$ac_ext >&5
14829 ac_header_preproc=no
14831 rm -f conftest.err conftest.$ac_ext
14832 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14833 echo "${ECHO_T}$ac_header_preproc" >&6
14835 # So? What about this header?
14836 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14837 yes:no: )
14838 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14839 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14840 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14841 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14842 ac_header_preproc=yes
14844 no:yes:* )
14845 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14846 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14847 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14848 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14849 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14850 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14851 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14852 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14853 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14854 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14855 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14856 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14858 cat <<\_ASBOX
14859 ## ------------------------------------------ ##
14860 ## Report this to the AC_PACKAGE_NAME lists. ##
14861 ## ------------------------------------------ ##
14862 _ASBOX
14864 sed "s/^/$as_me: WARNING: /" >&2
14866 esac
14867 echo "$as_me:$LINENO: checking for $ac_header" >&5
14868 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14869 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14870 echo $ECHO_N "(cached) $ECHO_C" >&6
14871 else
14872 eval "$as_ac_Header=\$ac_header_preproc"
14874 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14875 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14878 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14879 cat >>confdefs.h <<_ACEOF
14880 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14881 _ACEOF
14885 done
14888 for ac_func in alarm
14890 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14891 echo "$as_me:$LINENO: checking for $ac_func" >&5
14892 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14893 if eval "test \"\${$as_ac_var+set}\" = set"; then
14894 echo $ECHO_N "(cached) $ECHO_C" >&6
14895 else
14896 cat >conftest.$ac_ext <<_ACEOF
14897 /* confdefs.h. */
14898 _ACEOF
14899 cat confdefs.h >>conftest.$ac_ext
14900 cat >>conftest.$ac_ext <<_ACEOF
14901 /* end confdefs.h. */
14902 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14903 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14904 #define $ac_func innocuous_$ac_func
14906 /* System header to define __stub macros and hopefully few prototypes,
14907 which can conflict with char $ac_func (); below.
14908 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14909 <limits.h> exists even on freestanding compilers. */
14911 #ifdef __STDC__
14912 # include <limits.h>
14913 #else
14914 # include <assert.h>
14915 #endif
14917 #undef $ac_func
14919 /* Override any gcc2 internal prototype to avoid an error. */
14920 #ifdef __cplusplus
14921 extern "C"
14923 #endif
14924 /* We use char because int might match the return type of a gcc2
14925 builtin and then its argument prototype would still apply. */
14926 char $ac_func ();
14927 /* The GNU C library defines this for functions which it implements
14928 to always fail with ENOSYS. Some functions are actually named
14929 something starting with __ and the normal name is an alias. */
14930 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14931 choke me
14932 #else
14933 char (*f) () = $ac_func;
14934 #endif
14935 #ifdef __cplusplus
14937 #endif
14940 main ()
14942 return f != $ac_func;
14944 return 0;
14946 _ACEOF
14947 rm -f conftest.$ac_objext conftest$ac_exeext
14948 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14949 (eval $ac_link) 2>conftest.er1
14950 ac_status=$?
14951 grep -v '^ *+' conftest.er1 >conftest.err
14952 rm -f conftest.er1
14953 cat conftest.err >&5
14954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14955 (exit $ac_status); } &&
14956 { ac_try='test -z "$ac_c_werror_flag"
14957 || test ! -s conftest.err'
14958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14959 (eval $ac_try) 2>&5
14960 ac_status=$?
14961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14962 (exit $ac_status); }; } &&
14963 { ac_try='test -s conftest$ac_exeext'
14964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14965 (eval $ac_try) 2>&5
14966 ac_status=$?
14967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14968 (exit $ac_status); }; }; then
14969 eval "$as_ac_var=yes"
14970 else
14971 echo "$as_me: failed program was:" >&5
14972 sed 's/^/| /' conftest.$ac_ext >&5
14974 eval "$as_ac_var=no"
14976 rm -f conftest.err conftest.$ac_objext \
14977 conftest$ac_exeext conftest.$ac_ext
14979 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14980 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14981 if test `eval echo '${'$as_ac_var'}'` = yes; then
14982 cat >>confdefs.h <<_ACEOF
14983 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14984 _ACEOF
14987 done
14989 echo "$as_me:$LINENO: checking for working mktime" >&5
14990 echo $ECHO_N "checking for working mktime... $ECHO_C" >&6
14991 if test "${ac_cv_func_working_mktime+set}" = set; then
14992 echo $ECHO_N "(cached) $ECHO_C" >&6
14993 else
14994 if test "$cross_compiling" = yes; then
14995 ac_cv_func_working_mktime=no
14996 else
14997 cat >conftest.$ac_ext <<_ACEOF
14998 /* confdefs.h. */
14999 _ACEOF
15000 cat confdefs.h >>conftest.$ac_ext
15001 cat >>conftest.$ac_ext <<_ACEOF
15002 /* end confdefs.h. */
15003 /* Test program from Paul Eggert and Tony Leneis. */
15004 #if TIME_WITH_SYS_TIME
15005 # include <sys/time.h>
15006 # include <time.h>
15007 #else
15008 # if HAVE_SYS_TIME_H
15009 # include <sys/time.h>
15010 # else
15011 # include <time.h>
15012 # endif
15013 #endif
15015 #if HAVE_STDLIB_H
15016 # include <stdlib.h>
15017 #endif
15019 #if HAVE_UNISTD_H
15020 # include <unistd.h>
15021 #endif
15023 #if !HAVE_ALARM
15024 # define alarm(X) /* empty */
15025 #endif
15027 /* Work around redefinition to rpl_putenv by other config tests. */
15028 #undef putenv
15030 static time_t time_t_max;
15031 static time_t time_t_min;
15033 /* Values we'll use to set the TZ environment variable. */
15034 static char *tz_strings[] = {
15035 (char *) 0, "TZ=GMT0", "TZ=JST-9",
15036 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
15038 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
15040 /* Fail if mktime fails to convert a date in the spring-forward gap.
15041 Based on a problem report from Andreas Jaeger. */
15042 static void
15043 spring_forward_gap ()
15045 /* glibc (up to about 1998-10-07) failed this test. */
15046 struct tm tm;
15048 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
15049 instead of "TZ=America/Vancouver" in order to detect the bug even
15050 on systems that don't support the Olson extension, or don't have the
15051 full zoneinfo tables installed. */
15052 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
15054 tm.tm_year = 98;
15055 tm.tm_mon = 3;
15056 tm.tm_mday = 5;
15057 tm.tm_hour = 2;
15058 tm.tm_min = 0;
15059 tm.tm_sec = 0;
15060 tm.tm_isdst = -1;
15061 if (mktime (&tm) == (time_t)-1)
15062 exit (1);
15065 static void
15066 mktime_test1 (now)
15067 time_t now;
15069 struct tm *lt;
15070 if ((lt = localtime (&now)) && mktime (lt) != now)
15071 exit (1);
15074 static void
15075 mktime_test (now)
15076 time_t now;
15078 mktime_test1 (now);
15079 mktime_test1 ((time_t) (time_t_max - now));
15080 mktime_test1 ((time_t) (time_t_min + now));
15083 static void
15084 irix_6_4_bug ()
15086 /* Based on code from Ariel Faigon. */
15087 struct tm tm;
15088 tm.tm_year = 96;
15089 tm.tm_mon = 3;
15090 tm.tm_mday = 0;
15091 tm.tm_hour = 0;
15092 tm.tm_min = 0;
15093 tm.tm_sec = 0;
15094 tm.tm_isdst = -1;
15095 mktime (&tm);
15096 if (tm.tm_mon != 2 || tm.tm_mday != 31)
15097 exit (1);
15100 static void
15101 bigtime_test (j)
15102 int j;
15104 struct tm tm;
15105 time_t now;
15106 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
15107 now = mktime (&tm);
15108 if (now != (time_t) -1)
15110 struct tm *lt = localtime (&now);
15111 if (! (lt
15112 && lt->tm_year == tm.tm_year
15113 && lt->tm_mon == tm.tm_mon
15114 && lt->tm_mday == tm.tm_mday
15115 && lt->tm_hour == tm.tm_hour
15116 && lt->tm_min == tm.tm_min
15117 && lt->tm_sec == tm.tm_sec
15118 && lt->tm_yday == tm.tm_yday
15119 && lt->tm_wday == tm.tm_wday
15120 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
15121 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
15122 exit (1);
15127 main ()
15129 time_t t, delta;
15130 int i, j;
15132 /* This test makes some buggy mktime implementations loop.
15133 Give up after 60 seconds; a mktime slower than that
15134 isn't worth using anyway. */
15135 alarm (60);
15137 for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
15138 continue;
15139 time_t_max--;
15140 if ((time_t) -1 < 0)
15141 for (time_t_min = -1; (time_t) (time_t_min * 2) < 0; time_t_min *= 2)
15142 continue;
15143 delta = time_t_max / 997; /* a suitable prime number */
15144 for (i = 0; i < N_STRINGS; i++)
15146 if (tz_strings[i])
15147 putenv (tz_strings[i]);
15149 for (t = 0; t <= time_t_max - delta; t += delta)
15150 mktime_test (t);
15151 mktime_test ((time_t) 1);
15152 mktime_test ((time_t) (60 * 60));
15153 mktime_test ((time_t) (60 * 60 * 24));
15155 for (j = 1; 0 < j; j *= 2)
15156 bigtime_test (j);
15157 bigtime_test (j - 1);
15159 irix_6_4_bug ();
15160 spring_forward_gap ();
15161 exit (0);
15163 _ACEOF
15164 rm -f conftest$ac_exeext
15165 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15166 (eval $ac_link) 2>&5
15167 ac_status=$?
15168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15169 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15171 (eval $ac_try) 2>&5
15172 ac_status=$?
15173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15174 (exit $ac_status); }; }; then
15175 ac_cv_func_working_mktime=yes
15176 else
15177 echo "$as_me: program exited with status $ac_status" >&5
15178 echo "$as_me: failed program was:" >&5
15179 sed 's/^/| /' conftest.$ac_ext >&5
15181 ( exit $ac_status )
15182 ac_cv_func_working_mktime=no
15184 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15187 echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
15188 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6
15189 if test $ac_cv_func_working_mktime = no; then
15190 case $LIBOBJS in
15191 "mktime.$ac_objext" | \
15192 *" mktime.$ac_objext" | \
15193 "mktime.$ac_objext "* | \
15194 *" mktime.$ac_objext "* ) ;;
15195 *) LIBOBJS="$LIBOBJS mktime.$ac_objext" ;;
15196 esac
15200 if test "$ac_cv_func_working_mktime" = no; then
15202 cat >>confdefs.h <<\_ACEOF
15203 #define BROKEN_MKTIME 1
15204 _ACEOF
15208 ac_have_func=no # yes means we've found a way to get the load average.
15210 # Make sure getloadavg.c is where it belongs, at configure-time.
15211 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" ||
15212 { { echo "$as_me:$LINENO: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&5
15213 echo "$as_me: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&2;}
15214 { (exit 1); exit 1; }; }
15216 ac_save_LIBS=$LIBS
15218 # Check for getloadavg, but be sure not to touch the cache variable.
15219 (echo "$as_me:$LINENO: checking for getloadavg" >&5
15220 echo $ECHO_N "checking for getloadavg... $ECHO_C" >&6
15221 if test "${ac_cv_func_getloadavg+set}" = set; then
15222 echo $ECHO_N "(cached) $ECHO_C" >&6
15223 else
15224 cat >conftest.$ac_ext <<_ACEOF
15225 /* confdefs.h. */
15226 _ACEOF
15227 cat confdefs.h >>conftest.$ac_ext
15228 cat >>conftest.$ac_ext <<_ACEOF
15229 /* end confdefs.h. */
15230 /* Define getloadavg to an innocuous variant, in case <limits.h> declares getloadavg.
15231 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15232 #define getloadavg innocuous_getloadavg
15234 /* System header to define __stub macros and hopefully few prototypes,
15235 which can conflict with char getloadavg (); below.
15236 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15237 <limits.h> exists even on freestanding compilers. */
15239 #ifdef __STDC__
15240 # include <limits.h>
15241 #else
15242 # include <assert.h>
15243 #endif
15245 #undef getloadavg
15247 /* Override any gcc2 internal prototype to avoid an error. */
15248 #ifdef __cplusplus
15249 extern "C"
15251 #endif
15252 /* We use char because int might match the return type of a gcc2
15253 builtin and then its argument prototype would still apply. */
15254 char getloadavg ();
15255 /* The GNU C library defines this for functions which it implements
15256 to always fail with ENOSYS. Some functions are actually named
15257 something starting with __ and the normal name is an alias. */
15258 #if defined (__stub_getloadavg) || defined (__stub___getloadavg)
15259 choke me
15260 #else
15261 char (*f) () = getloadavg;
15262 #endif
15263 #ifdef __cplusplus
15265 #endif
15268 main ()
15270 return f != getloadavg;
15272 return 0;
15274 _ACEOF
15275 rm -f conftest.$ac_objext conftest$ac_exeext
15276 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15277 (eval $ac_link) 2>conftest.er1
15278 ac_status=$?
15279 grep -v '^ *+' conftest.er1 >conftest.err
15280 rm -f conftest.er1
15281 cat conftest.err >&5
15282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15283 (exit $ac_status); } &&
15284 { ac_try='test -z "$ac_c_werror_flag"
15285 || test ! -s conftest.err'
15286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15287 (eval $ac_try) 2>&5
15288 ac_status=$?
15289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15290 (exit $ac_status); }; } &&
15291 { ac_try='test -s conftest$ac_exeext'
15292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15293 (eval $ac_try) 2>&5
15294 ac_status=$?
15295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15296 (exit $ac_status); }; }; then
15297 ac_cv_func_getloadavg=yes
15298 else
15299 echo "$as_me: failed program was:" >&5
15300 sed 's/^/| /' conftest.$ac_ext >&5
15302 ac_cv_func_getloadavg=no
15304 rm -f conftest.err conftest.$ac_objext \
15305 conftest$ac_exeext conftest.$ac_ext
15307 echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg" >&5
15308 echo "${ECHO_T}$ac_cv_func_getloadavg" >&6
15309 if test $ac_cv_func_getloadavg = yes; then
15310 exit 0
15311 else
15312 exit 1
15314 ) && ac_have_func=yes
15316 # On HPUX9, an unprivileged user can get load averages through this function.
15318 for ac_func in pstat_getdynamic
15320 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15321 echo "$as_me:$LINENO: checking for $ac_func" >&5
15322 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15323 if eval "test \"\${$as_ac_var+set}\" = set"; then
15324 echo $ECHO_N "(cached) $ECHO_C" >&6
15325 else
15326 cat >conftest.$ac_ext <<_ACEOF
15327 /* confdefs.h. */
15328 _ACEOF
15329 cat confdefs.h >>conftest.$ac_ext
15330 cat >>conftest.$ac_ext <<_ACEOF
15331 /* end confdefs.h. */
15332 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15333 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15334 #define $ac_func innocuous_$ac_func
15336 /* System header to define __stub macros and hopefully few prototypes,
15337 which can conflict with char $ac_func (); below.
15338 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15339 <limits.h> exists even on freestanding compilers. */
15341 #ifdef __STDC__
15342 # include <limits.h>
15343 #else
15344 # include <assert.h>
15345 #endif
15347 #undef $ac_func
15349 /* Override any gcc2 internal prototype to avoid an error. */
15350 #ifdef __cplusplus
15351 extern "C"
15353 #endif
15354 /* We use char because int might match the return type of a gcc2
15355 builtin and then its argument prototype would still apply. */
15356 char $ac_func ();
15357 /* The GNU C library defines this for functions which it implements
15358 to always fail with ENOSYS. Some functions are actually named
15359 something starting with __ and the normal name is an alias. */
15360 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15361 choke me
15362 #else
15363 char (*f) () = $ac_func;
15364 #endif
15365 #ifdef __cplusplus
15367 #endif
15370 main ()
15372 return f != $ac_func;
15374 return 0;
15376 _ACEOF
15377 rm -f conftest.$ac_objext conftest$ac_exeext
15378 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15379 (eval $ac_link) 2>conftest.er1
15380 ac_status=$?
15381 grep -v '^ *+' conftest.er1 >conftest.err
15382 rm -f conftest.er1
15383 cat conftest.err >&5
15384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15385 (exit $ac_status); } &&
15386 { ac_try='test -z "$ac_c_werror_flag"
15387 || test ! -s conftest.err'
15388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15389 (eval $ac_try) 2>&5
15390 ac_status=$?
15391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15392 (exit $ac_status); }; } &&
15393 { ac_try='test -s conftest$ac_exeext'
15394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15395 (eval $ac_try) 2>&5
15396 ac_status=$?
15397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15398 (exit $ac_status); }; }; then
15399 eval "$as_ac_var=yes"
15400 else
15401 echo "$as_me: failed program was:" >&5
15402 sed 's/^/| /' conftest.$ac_ext >&5
15404 eval "$as_ac_var=no"
15406 rm -f conftest.err conftest.$ac_objext \
15407 conftest$ac_exeext conftest.$ac_ext
15409 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15410 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15411 if test `eval echo '${'$as_ac_var'}'` = yes; then
15412 cat >>confdefs.h <<_ACEOF
15413 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15414 _ACEOF
15417 done
15420 # Solaris has libkstat which does not require root.
15422 echo "$as_me:$LINENO: checking for kstat_open in -lkstat" >&5
15423 echo $ECHO_N "checking for kstat_open in -lkstat... $ECHO_C" >&6
15424 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
15425 echo $ECHO_N "(cached) $ECHO_C" >&6
15426 else
15427 ac_check_lib_save_LIBS=$LIBS
15428 LIBS="-lkstat $LIBS"
15429 cat >conftest.$ac_ext <<_ACEOF
15430 /* confdefs.h. */
15431 _ACEOF
15432 cat confdefs.h >>conftest.$ac_ext
15433 cat >>conftest.$ac_ext <<_ACEOF
15434 /* end confdefs.h. */
15436 /* Override any gcc2 internal prototype to avoid an error. */
15437 #ifdef __cplusplus
15438 extern "C"
15439 #endif
15440 /* We use char because int might match the return type of a gcc2
15441 builtin and then its argument prototype would still apply. */
15442 char kstat_open ();
15444 main ()
15446 kstat_open ();
15448 return 0;
15450 _ACEOF
15451 rm -f conftest.$ac_objext conftest$ac_exeext
15452 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15453 (eval $ac_link) 2>conftest.er1
15454 ac_status=$?
15455 grep -v '^ *+' conftest.er1 >conftest.err
15456 rm -f conftest.er1
15457 cat conftest.err >&5
15458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15459 (exit $ac_status); } &&
15460 { ac_try='test -z "$ac_c_werror_flag"
15461 || test ! -s conftest.err'
15462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15463 (eval $ac_try) 2>&5
15464 ac_status=$?
15465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15466 (exit $ac_status); }; } &&
15467 { ac_try='test -s conftest$ac_exeext'
15468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15469 (eval $ac_try) 2>&5
15470 ac_status=$?
15471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15472 (exit $ac_status); }; }; then
15473 ac_cv_lib_kstat_kstat_open=yes
15474 else
15475 echo "$as_me: failed program was:" >&5
15476 sed 's/^/| /' conftest.$ac_ext >&5
15478 ac_cv_lib_kstat_kstat_open=no
15480 rm -f conftest.err conftest.$ac_objext \
15481 conftest$ac_exeext conftest.$ac_ext
15482 LIBS=$ac_check_lib_save_LIBS
15484 echo "$as_me:$LINENO: result: $ac_cv_lib_kstat_kstat_open" >&5
15485 echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6
15486 if test $ac_cv_lib_kstat_kstat_open = yes; then
15487 cat >>confdefs.h <<_ACEOF
15488 #define HAVE_LIBKSTAT 1
15489 _ACEOF
15491 LIBS="-lkstat $LIBS"
15495 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes
15497 # Some systems with -lutil have (and need) -lkvm as well, some do not.
15498 # On Solaris, -lkvm requires nlist from -lelf, so check that first
15499 # to get the right answer into the cache.
15500 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
15501 if test $ac_have_func = no; then
15502 echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
15503 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
15504 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
15505 echo $ECHO_N "(cached) $ECHO_C" >&6
15506 else
15507 ac_check_lib_save_LIBS=$LIBS
15508 LIBS="-lelf $LIBS"
15509 cat >conftest.$ac_ext <<_ACEOF
15510 /* confdefs.h. */
15511 _ACEOF
15512 cat confdefs.h >>conftest.$ac_ext
15513 cat >>conftest.$ac_ext <<_ACEOF
15514 /* end confdefs.h. */
15516 /* Override any gcc2 internal prototype to avoid an error. */
15517 #ifdef __cplusplus
15518 extern "C"
15519 #endif
15520 /* We use char because int might match the return type of a gcc2
15521 builtin and then its argument prototype would still apply. */
15522 char elf_begin ();
15524 main ()
15526 elf_begin ();
15528 return 0;
15530 _ACEOF
15531 rm -f conftest.$ac_objext conftest$ac_exeext
15532 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15533 (eval $ac_link) 2>conftest.er1
15534 ac_status=$?
15535 grep -v '^ *+' conftest.er1 >conftest.err
15536 rm -f conftest.er1
15537 cat conftest.err >&5
15538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15539 (exit $ac_status); } &&
15540 { ac_try='test -z "$ac_c_werror_flag"
15541 || test ! -s conftest.err'
15542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15543 (eval $ac_try) 2>&5
15544 ac_status=$?
15545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15546 (exit $ac_status); }; } &&
15547 { ac_try='test -s conftest$ac_exeext'
15548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15549 (eval $ac_try) 2>&5
15550 ac_status=$?
15551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15552 (exit $ac_status); }; }; then
15553 ac_cv_lib_elf_elf_begin=yes
15554 else
15555 echo "$as_me: failed program was:" >&5
15556 sed 's/^/| /' conftest.$ac_ext >&5
15558 ac_cv_lib_elf_elf_begin=no
15560 rm -f conftest.err conftest.$ac_objext \
15561 conftest$ac_exeext conftest.$ac_ext
15562 LIBS=$ac_check_lib_save_LIBS
15564 echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
15565 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
15566 if test $ac_cv_lib_elf_elf_begin = yes; then
15567 LIBS="-lelf $LIBS"
15571 if test $ac_have_func = no; then
15572 echo "$as_me:$LINENO: checking for kvm_open in -lkvm" >&5
15573 echo $ECHO_N "checking for kvm_open in -lkvm... $ECHO_C" >&6
15574 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
15575 echo $ECHO_N "(cached) $ECHO_C" >&6
15576 else
15577 ac_check_lib_save_LIBS=$LIBS
15578 LIBS="-lkvm $LIBS"
15579 cat >conftest.$ac_ext <<_ACEOF
15580 /* confdefs.h. */
15581 _ACEOF
15582 cat confdefs.h >>conftest.$ac_ext
15583 cat >>conftest.$ac_ext <<_ACEOF
15584 /* end confdefs.h. */
15586 /* Override any gcc2 internal prototype to avoid an error. */
15587 #ifdef __cplusplus
15588 extern "C"
15589 #endif
15590 /* We use char because int might match the return type of a gcc2
15591 builtin and then its argument prototype would still apply. */
15592 char kvm_open ();
15594 main ()
15596 kvm_open ();
15598 return 0;
15600 _ACEOF
15601 rm -f conftest.$ac_objext conftest$ac_exeext
15602 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15603 (eval $ac_link) 2>conftest.er1
15604 ac_status=$?
15605 grep -v '^ *+' conftest.er1 >conftest.err
15606 rm -f conftest.er1
15607 cat conftest.err >&5
15608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15609 (exit $ac_status); } &&
15610 { ac_try='test -z "$ac_c_werror_flag"
15611 || test ! -s conftest.err'
15612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15613 (eval $ac_try) 2>&5
15614 ac_status=$?
15615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15616 (exit $ac_status); }; } &&
15617 { ac_try='test -s conftest$ac_exeext'
15618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15619 (eval $ac_try) 2>&5
15620 ac_status=$?
15621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15622 (exit $ac_status); }; }; then
15623 ac_cv_lib_kvm_kvm_open=yes
15624 else
15625 echo "$as_me: failed program was:" >&5
15626 sed 's/^/| /' conftest.$ac_ext >&5
15628 ac_cv_lib_kvm_kvm_open=no
15630 rm -f conftest.err conftest.$ac_objext \
15631 conftest$ac_exeext conftest.$ac_ext
15632 LIBS=$ac_check_lib_save_LIBS
15634 echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_kvm_open" >&5
15635 echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6
15636 if test $ac_cv_lib_kvm_kvm_open = yes; then
15637 LIBS="-lkvm $LIBS"
15640 # Check for the 4.4BSD definition of getloadavg.
15641 echo "$as_me:$LINENO: checking for getloadavg in -lutil" >&5
15642 echo $ECHO_N "checking for getloadavg in -lutil... $ECHO_C" >&6
15643 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
15644 echo $ECHO_N "(cached) $ECHO_C" >&6
15645 else
15646 ac_check_lib_save_LIBS=$LIBS
15647 LIBS="-lutil $LIBS"
15648 cat >conftest.$ac_ext <<_ACEOF
15649 /* confdefs.h. */
15650 _ACEOF
15651 cat confdefs.h >>conftest.$ac_ext
15652 cat >>conftest.$ac_ext <<_ACEOF
15653 /* end confdefs.h. */
15655 /* Override any gcc2 internal prototype to avoid an error. */
15656 #ifdef __cplusplus
15657 extern "C"
15658 #endif
15659 /* We use char because int might match the return type of a gcc2
15660 builtin and then its argument prototype would still apply. */
15661 char getloadavg ();
15663 main ()
15665 getloadavg ();
15667 return 0;
15669 _ACEOF
15670 rm -f conftest.$ac_objext conftest$ac_exeext
15671 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15672 (eval $ac_link) 2>conftest.er1
15673 ac_status=$?
15674 grep -v '^ *+' conftest.er1 >conftest.err
15675 rm -f conftest.er1
15676 cat conftest.err >&5
15677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15678 (exit $ac_status); } &&
15679 { ac_try='test -z "$ac_c_werror_flag"
15680 || test ! -s conftest.err'
15681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15682 (eval $ac_try) 2>&5
15683 ac_status=$?
15684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15685 (exit $ac_status); }; } &&
15686 { ac_try='test -s conftest$ac_exeext'
15687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15688 (eval $ac_try) 2>&5
15689 ac_status=$?
15690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15691 (exit $ac_status); }; }; then
15692 ac_cv_lib_util_getloadavg=yes
15693 else
15694 echo "$as_me: failed program was:" >&5
15695 sed 's/^/| /' conftest.$ac_ext >&5
15697 ac_cv_lib_util_getloadavg=no
15699 rm -f conftest.err conftest.$ac_objext \
15700 conftest$ac_exeext conftest.$ac_ext
15701 LIBS=$ac_check_lib_save_LIBS
15703 echo "$as_me:$LINENO: result: $ac_cv_lib_util_getloadavg" >&5
15704 echo "${ECHO_T}$ac_cv_lib_util_getloadavg" >&6
15705 if test $ac_cv_lib_util_getloadavg = yes; then
15706 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
15711 if test $ac_have_func = no; then
15712 # There is a commonly available library for RS/6000 AIX.
15713 # Since it is not a standard part of AIX, it might be installed locally.
15714 ac_getloadavg_LIBS=$LIBS
15715 LIBS="-L/usr/local/lib $LIBS"
15716 echo "$as_me:$LINENO: checking for getloadavg in -lgetloadavg" >&5
15717 echo $ECHO_N "checking for getloadavg in -lgetloadavg... $ECHO_C" >&6
15718 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
15719 echo $ECHO_N "(cached) $ECHO_C" >&6
15720 else
15721 ac_check_lib_save_LIBS=$LIBS
15722 LIBS="-lgetloadavg $LIBS"
15723 cat >conftest.$ac_ext <<_ACEOF
15724 /* confdefs.h. */
15725 _ACEOF
15726 cat confdefs.h >>conftest.$ac_ext
15727 cat >>conftest.$ac_ext <<_ACEOF
15728 /* end confdefs.h. */
15730 /* Override any gcc2 internal prototype to avoid an error. */
15731 #ifdef __cplusplus
15732 extern "C"
15733 #endif
15734 /* We use char because int might match the return type of a gcc2
15735 builtin and then its argument prototype would still apply. */
15736 char getloadavg ();
15738 main ()
15740 getloadavg ();
15742 return 0;
15744 _ACEOF
15745 rm -f conftest.$ac_objext conftest$ac_exeext
15746 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15747 (eval $ac_link) 2>conftest.er1
15748 ac_status=$?
15749 grep -v '^ *+' conftest.er1 >conftest.err
15750 rm -f conftest.er1
15751 cat conftest.err >&5
15752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15753 (exit $ac_status); } &&
15754 { ac_try='test -z "$ac_c_werror_flag"
15755 || test ! -s conftest.err'
15756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15757 (eval $ac_try) 2>&5
15758 ac_status=$?
15759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15760 (exit $ac_status); }; } &&
15761 { ac_try='test -s conftest$ac_exeext'
15762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15763 (eval $ac_try) 2>&5
15764 ac_status=$?
15765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15766 (exit $ac_status); }; }; then
15767 ac_cv_lib_getloadavg_getloadavg=yes
15768 else
15769 echo "$as_me: failed program was:" >&5
15770 sed 's/^/| /' conftest.$ac_ext >&5
15772 ac_cv_lib_getloadavg_getloadavg=no
15774 rm -f conftest.err conftest.$ac_objext \
15775 conftest$ac_exeext conftest.$ac_ext
15776 LIBS=$ac_check_lib_save_LIBS
15778 echo "$as_me:$LINENO: result: $ac_cv_lib_getloadavg_getloadavg" >&5
15779 echo "${ECHO_T}$ac_cv_lib_getloadavg_getloadavg" >&6
15780 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
15781 LIBS="-lgetloadavg $LIBS"
15782 else
15783 LIBS=$ac_getloadavg_LIBS
15788 # Make sure it is really in the library, if we think we found it,
15789 # otherwise set up the replacement function.
15791 for ac_func in getloadavg
15793 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15794 echo "$as_me:$LINENO: checking for $ac_func" >&5
15795 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15796 if eval "test \"\${$as_ac_var+set}\" = set"; then
15797 echo $ECHO_N "(cached) $ECHO_C" >&6
15798 else
15799 cat >conftest.$ac_ext <<_ACEOF
15800 /* confdefs.h. */
15801 _ACEOF
15802 cat confdefs.h >>conftest.$ac_ext
15803 cat >>conftest.$ac_ext <<_ACEOF
15804 /* end confdefs.h. */
15805 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15806 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15807 #define $ac_func innocuous_$ac_func
15809 /* System header to define __stub macros and hopefully few prototypes,
15810 which can conflict with char $ac_func (); below.
15811 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15812 <limits.h> exists even on freestanding compilers. */
15814 #ifdef __STDC__
15815 # include <limits.h>
15816 #else
15817 # include <assert.h>
15818 #endif
15820 #undef $ac_func
15822 /* Override any gcc2 internal prototype to avoid an error. */
15823 #ifdef __cplusplus
15824 extern "C"
15826 #endif
15827 /* We use char because int might match the return type of a gcc2
15828 builtin and then its argument prototype would still apply. */
15829 char $ac_func ();
15830 /* The GNU C library defines this for functions which it implements
15831 to always fail with ENOSYS. Some functions are actually named
15832 something starting with __ and the normal name is an alias. */
15833 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15834 choke me
15835 #else
15836 char (*f) () = $ac_func;
15837 #endif
15838 #ifdef __cplusplus
15840 #endif
15843 main ()
15845 return f != $ac_func;
15847 return 0;
15849 _ACEOF
15850 rm -f conftest.$ac_objext conftest$ac_exeext
15851 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15852 (eval $ac_link) 2>conftest.er1
15853 ac_status=$?
15854 grep -v '^ *+' conftest.er1 >conftest.err
15855 rm -f conftest.er1
15856 cat conftest.err >&5
15857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15858 (exit $ac_status); } &&
15859 { ac_try='test -z "$ac_c_werror_flag"
15860 || test ! -s conftest.err'
15861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15862 (eval $ac_try) 2>&5
15863 ac_status=$?
15864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15865 (exit $ac_status); }; } &&
15866 { ac_try='test -s conftest$ac_exeext'
15867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15868 (eval $ac_try) 2>&5
15869 ac_status=$?
15870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15871 (exit $ac_status); }; }; then
15872 eval "$as_ac_var=yes"
15873 else
15874 echo "$as_me: failed program was:" >&5
15875 sed 's/^/| /' conftest.$ac_ext >&5
15877 eval "$as_ac_var=no"
15879 rm -f conftest.err conftest.$ac_objext \
15880 conftest$ac_exeext conftest.$ac_ext
15882 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15883 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15884 if test `eval echo '${'$as_ac_var'}'` = yes; then
15885 cat >>confdefs.h <<_ACEOF
15886 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15887 _ACEOF
15889 else
15890 case $LIBOBJS in
15891 "getloadavg.$ac_objext" | \
15892 *" getloadavg.$ac_objext" | \
15893 "getloadavg.$ac_objext "* | \
15894 *" getloadavg.$ac_objext "* ) ;;
15895 *) LIBOBJS="$LIBOBJS getloadavg.$ac_objext" ;;
15896 esac
15899 cat >>confdefs.h <<\_ACEOF
15900 #define C_GETLOADAVG 1
15901 _ACEOF
15903 # Figure out what our getloadavg.c needs.
15904 ac_have_func=no
15905 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
15906 echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
15907 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
15908 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
15909 echo $ECHO_N "(cached) $ECHO_C" >&6
15911 echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
15912 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
15913 else
15914 # Is the header compilable?
15915 echo "$as_me:$LINENO: checking sys/dg_sys_info.h usability" >&5
15916 echo $ECHO_N "checking sys/dg_sys_info.h usability... $ECHO_C" >&6
15917 cat >conftest.$ac_ext <<_ACEOF
15918 /* confdefs.h. */
15919 _ACEOF
15920 cat confdefs.h >>conftest.$ac_ext
15921 cat >>conftest.$ac_ext <<_ACEOF
15922 /* end confdefs.h. */
15923 $ac_includes_default
15924 #include <sys/dg_sys_info.h>
15925 _ACEOF
15926 rm -f conftest.$ac_objext
15927 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15928 (eval $ac_compile) 2>conftest.er1
15929 ac_status=$?
15930 grep -v '^ *+' conftest.er1 >conftest.err
15931 rm -f conftest.er1
15932 cat conftest.err >&5
15933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15934 (exit $ac_status); } &&
15935 { ac_try='test -z "$ac_c_werror_flag"
15936 || test ! -s conftest.err'
15937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15938 (eval $ac_try) 2>&5
15939 ac_status=$?
15940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15941 (exit $ac_status); }; } &&
15942 { ac_try='test -s conftest.$ac_objext'
15943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15944 (eval $ac_try) 2>&5
15945 ac_status=$?
15946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15947 (exit $ac_status); }; }; then
15948 ac_header_compiler=yes
15949 else
15950 echo "$as_me: failed program was:" >&5
15951 sed 's/^/| /' conftest.$ac_ext >&5
15953 ac_header_compiler=no
15955 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15956 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15957 echo "${ECHO_T}$ac_header_compiler" >&6
15959 # Is the header present?
15960 echo "$as_me:$LINENO: checking sys/dg_sys_info.h presence" >&5
15961 echo $ECHO_N "checking sys/dg_sys_info.h presence... $ECHO_C" >&6
15962 cat >conftest.$ac_ext <<_ACEOF
15963 /* confdefs.h. */
15964 _ACEOF
15965 cat confdefs.h >>conftest.$ac_ext
15966 cat >>conftest.$ac_ext <<_ACEOF
15967 /* end confdefs.h. */
15968 #include <sys/dg_sys_info.h>
15969 _ACEOF
15970 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15971 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15972 ac_status=$?
15973 grep -v '^ *+' conftest.er1 >conftest.err
15974 rm -f conftest.er1
15975 cat conftest.err >&5
15976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15977 (exit $ac_status); } >/dev/null; then
15978 if test -s conftest.err; then
15979 ac_cpp_err=$ac_c_preproc_warn_flag
15980 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15981 else
15982 ac_cpp_err=
15984 else
15985 ac_cpp_err=yes
15987 if test -z "$ac_cpp_err"; then
15988 ac_header_preproc=yes
15989 else
15990 echo "$as_me: failed program was:" >&5
15991 sed 's/^/| /' conftest.$ac_ext >&5
15993 ac_header_preproc=no
15995 rm -f conftest.err conftest.$ac_ext
15996 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15997 echo "${ECHO_T}$ac_header_preproc" >&6
15999 # So? What about this header?
16000 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16001 yes:no: )
16002 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&5
16003 echo "$as_me: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16004 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&5
16005 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&2;}
16006 ac_header_preproc=yes
16008 no:yes:* )
16009 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&5
16010 echo "$as_me: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&2;}
16011 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&5
16012 echo "$as_me: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&2;}
16013 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&5
16014 echo "$as_me: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&2;}
16015 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&5
16016 echo "$as_me: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&2;}
16017 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
16018 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;}
16019 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&5
16020 echo "$as_me: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&2;}
16022 cat <<\_ASBOX
16023 ## ------------------------------------------ ##
16024 ## Report this to the AC_PACKAGE_NAME lists. ##
16025 ## ------------------------------------------ ##
16026 _ASBOX
16028 sed "s/^/$as_me: WARNING: /" >&2
16030 esac
16031 echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
16032 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
16033 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
16034 echo $ECHO_N "(cached) $ECHO_C" >&6
16035 else
16036 ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc
16038 echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
16039 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
16042 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
16043 ac_have_func=yes
16045 cat >>confdefs.h <<\_ACEOF
16046 #define DGUX 1
16047 _ACEOF
16050 echo "$as_me:$LINENO: checking for dg_sys_info in -ldgc" >&5
16051 echo $ECHO_N "checking for dg_sys_info in -ldgc... $ECHO_C" >&6
16052 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
16053 echo $ECHO_N "(cached) $ECHO_C" >&6
16054 else
16055 ac_check_lib_save_LIBS=$LIBS
16056 LIBS="-ldgc $LIBS"
16057 cat >conftest.$ac_ext <<_ACEOF
16058 /* confdefs.h. */
16059 _ACEOF
16060 cat confdefs.h >>conftest.$ac_ext
16061 cat >>conftest.$ac_ext <<_ACEOF
16062 /* end confdefs.h. */
16064 /* Override any gcc2 internal prototype to avoid an error. */
16065 #ifdef __cplusplus
16066 extern "C"
16067 #endif
16068 /* We use char because int might match the return type of a gcc2
16069 builtin and then its argument prototype would still apply. */
16070 char dg_sys_info ();
16072 main ()
16074 dg_sys_info ();
16076 return 0;
16078 _ACEOF
16079 rm -f conftest.$ac_objext conftest$ac_exeext
16080 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16081 (eval $ac_link) 2>conftest.er1
16082 ac_status=$?
16083 grep -v '^ *+' conftest.er1 >conftest.err
16084 rm -f conftest.er1
16085 cat conftest.err >&5
16086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16087 (exit $ac_status); } &&
16088 { ac_try='test -z "$ac_c_werror_flag"
16089 || test ! -s conftest.err'
16090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16091 (eval $ac_try) 2>&5
16092 ac_status=$?
16093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16094 (exit $ac_status); }; } &&
16095 { ac_try='test -s conftest$ac_exeext'
16096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16097 (eval $ac_try) 2>&5
16098 ac_status=$?
16099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16100 (exit $ac_status); }; }; then
16101 ac_cv_lib_dgc_dg_sys_info=yes
16102 else
16103 echo "$as_me: failed program was:" >&5
16104 sed 's/^/| /' conftest.$ac_ext >&5
16106 ac_cv_lib_dgc_dg_sys_info=no
16108 rm -f conftest.err conftest.$ac_objext \
16109 conftest$ac_exeext conftest.$ac_ext
16110 LIBS=$ac_check_lib_save_LIBS
16112 echo "$as_me:$LINENO: result: $ac_cv_lib_dgc_dg_sys_info" >&5
16113 echo "${ECHO_T}$ac_cv_lib_dgc_dg_sys_info" >&6
16114 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
16115 cat >>confdefs.h <<_ACEOF
16116 #define HAVE_LIBDGC 1
16117 _ACEOF
16119 LIBS="-ldgc $LIBS"
16127 if test "${ac_cv_header_locale_h+set}" = set; then
16128 echo "$as_me:$LINENO: checking for locale.h" >&5
16129 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
16130 if test "${ac_cv_header_locale_h+set}" = set; then
16131 echo $ECHO_N "(cached) $ECHO_C" >&6
16133 echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
16134 echo "${ECHO_T}$ac_cv_header_locale_h" >&6
16135 else
16136 # Is the header compilable?
16137 echo "$as_me:$LINENO: checking locale.h usability" >&5
16138 echo $ECHO_N "checking locale.h usability... $ECHO_C" >&6
16139 cat >conftest.$ac_ext <<_ACEOF
16140 /* confdefs.h. */
16141 _ACEOF
16142 cat confdefs.h >>conftest.$ac_ext
16143 cat >>conftest.$ac_ext <<_ACEOF
16144 /* end confdefs.h. */
16145 $ac_includes_default
16146 #include <locale.h>
16147 _ACEOF
16148 rm -f conftest.$ac_objext
16149 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16150 (eval $ac_compile) 2>conftest.er1
16151 ac_status=$?
16152 grep -v '^ *+' conftest.er1 >conftest.err
16153 rm -f conftest.er1
16154 cat conftest.err >&5
16155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16156 (exit $ac_status); } &&
16157 { ac_try='test -z "$ac_c_werror_flag"
16158 || test ! -s conftest.err'
16159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16160 (eval $ac_try) 2>&5
16161 ac_status=$?
16162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16163 (exit $ac_status); }; } &&
16164 { ac_try='test -s conftest.$ac_objext'
16165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16166 (eval $ac_try) 2>&5
16167 ac_status=$?
16168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16169 (exit $ac_status); }; }; then
16170 ac_header_compiler=yes
16171 else
16172 echo "$as_me: failed program was:" >&5
16173 sed 's/^/| /' conftest.$ac_ext >&5
16175 ac_header_compiler=no
16177 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16178 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16179 echo "${ECHO_T}$ac_header_compiler" >&6
16181 # Is the header present?
16182 echo "$as_me:$LINENO: checking locale.h presence" >&5
16183 echo $ECHO_N "checking locale.h presence... $ECHO_C" >&6
16184 cat >conftest.$ac_ext <<_ACEOF
16185 /* confdefs.h. */
16186 _ACEOF
16187 cat confdefs.h >>conftest.$ac_ext
16188 cat >>conftest.$ac_ext <<_ACEOF
16189 /* end confdefs.h. */
16190 #include <locale.h>
16191 _ACEOF
16192 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16193 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16194 ac_status=$?
16195 grep -v '^ *+' conftest.er1 >conftest.err
16196 rm -f conftest.er1
16197 cat conftest.err >&5
16198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16199 (exit $ac_status); } >/dev/null; then
16200 if test -s conftest.err; then
16201 ac_cpp_err=$ac_c_preproc_warn_flag
16202 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16203 else
16204 ac_cpp_err=
16206 else
16207 ac_cpp_err=yes
16209 if test -z "$ac_cpp_err"; then
16210 ac_header_preproc=yes
16211 else
16212 echo "$as_me: failed program was:" >&5
16213 sed 's/^/| /' conftest.$ac_ext >&5
16215 ac_header_preproc=no
16217 rm -f conftest.err conftest.$ac_ext
16218 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16219 echo "${ECHO_T}$ac_header_preproc" >&6
16221 # So? What about this header?
16222 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16223 yes:no: )
16224 { echo "$as_me:$LINENO: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&5
16225 echo "$as_me: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16226 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the compiler's result" >&5
16227 echo "$as_me: WARNING: locale.h: proceeding with the compiler's result" >&2;}
16228 ac_header_preproc=yes
16230 no:yes:* )
16231 { echo "$as_me:$LINENO: WARNING: locale.h: present but cannot be compiled" >&5
16232 echo "$as_me: WARNING: locale.h: present but cannot be compiled" >&2;}
16233 { echo "$as_me:$LINENO: WARNING: locale.h: check for missing prerequisite headers?" >&5
16234 echo "$as_me: WARNING: locale.h: check for missing prerequisite headers?" >&2;}
16235 { echo "$as_me:$LINENO: WARNING: locale.h: see the Autoconf documentation" >&5
16236 echo "$as_me: WARNING: locale.h: see the Autoconf documentation" >&2;}
16237 { echo "$as_me:$LINENO: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&5
16238 echo "$as_me: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&2;}
16239 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
16240 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;}
16241 { echo "$as_me:$LINENO: WARNING: locale.h: in the future, the compiler will take precedence" >&5
16242 echo "$as_me: WARNING: locale.h: in the future, the compiler will take precedence" >&2;}
16244 cat <<\_ASBOX
16245 ## ------------------------------------------ ##
16246 ## Report this to the AC_PACKAGE_NAME lists. ##
16247 ## ------------------------------------------ ##
16248 _ASBOX
16250 sed "s/^/$as_me: WARNING: /" >&2
16252 esac
16253 echo "$as_me:$LINENO: checking for locale.h" >&5
16254 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
16255 if test "${ac_cv_header_locale_h+set}" = set; then
16256 echo $ECHO_N "(cached) $ECHO_C" >&6
16257 else
16258 ac_cv_header_locale_h=$ac_header_preproc
16260 echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
16261 echo "${ECHO_T}$ac_cv_header_locale_h" >&6
16267 for ac_func in setlocale
16269 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16270 echo "$as_me:$LINENO: checking for $ac_func" >&5
16271 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16272 if eval "test \"\${$as_ac_var+set}\" = set"; then
16273 echo $ECHO_N "(cached) $ECHO_C" >&6
16274 else
16275 cat >conftest.$ac_ext <<_ACEOF
16276 /* confdefs.h. */
16277 _ACEOF
16278 cat confdefs.h >>conftest.$ac_ext
16279 cat >>conftest.$ac_ext <<_ACEOF
16280 /* end confdefs.h. */
16281 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16282 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16283 #define $ac_func innocuous_$ac_func
16285 /* System header to define __stub macros and hopefully few prototypes,
16286 which can conflict with char $ac_func (); below.
16287 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16288 <limits.h> exists even on freestanding compilers. */
16290 #ifdef __STDC__
16291 # include <limits.h>
16292 #else
16293 # include <assert.h>
16294 #endif
16296 #undef $ac_func
16298 /* Override any gcc2 internal prototype to avoid an error. */
16299 #ifdef __cplusplus
16300 extern "C"
16302 #endif
16303 /* We use char because int might match the return type of a gcc2
16304 builtin and then its argument prototype would still apply. */
16305 char $ac_func ();
16306 /* The GNU C library defines this for functions which it implements
16307 to always fail with ENOSYS. Some functions are actually named
16308 something starting with __ and the normal name is an alias. */
16309 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16310 choke me
16311 #else
16312 char (*f) () = $ac_func;
16313 #endif
16314 #ifdef __cplusplus
16316 #endif
16319 main ()
16321 return f != $ac_func;
16323 return 0;
16325 _ACEOF
16326 rm -f conftest.$ac_objext conftest$ac_exeext
16327 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16328 (eval $ac_link) 2>conftest.er1
16329 ac_status=$?
16330 grep -v '^ *+' conftest.er1 >conftest.err
16331 rm -f conftest.er1
16332 cat conftest.err >&5
16333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16334 (exit $ac_status); } &&
16335 { ac_try='test -z "$ac_c_werror_flag"
16336 || test ! -s conftest.err'
16337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16338 (eval $ac_try) 2>&5
16339 ac_status=$?
16340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16341 (exit $ac_status); }; } &&
16342 { ac_try='test -s conftest$ac_exeext'
16343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16344 (eval $ac_try) 2>&5
16345 ac_status=$?
16346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16347 (exit $ac_status); }; }; then
16348 eval "$as_ac_var=yes"
16349 else
16350 echo "$as_me: failed program was:" >&5
16351 sed 's/^/| /' conftest.$ac_ext >&5
16353 eval "$as_ac_var=no"
16355 rm -f conftest.err conftest.$ac_objext \
16356 conftest$ac_exeext conftest.$ac_ext
16358 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16359 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16360 if test `eval echo '${'$as_ac_var'}'` = yes; then
16361 cat >>confdefs.h <<_ACEOF
16362 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16363 _ACEOF
16366 done
16369 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
16370 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
16371 # Irix 4.0.5F has the header but not the library.
16372 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
16373 ac_have_func=yes
16375 cat >>confdefs.h <<\_ACEOF
16376 #define SVR4 1
16377 _ACEOF
16381 if test $ac_have_func = no; then
16382 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
16383 echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
16384 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6
16385 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
16386 echo $ECHO_N "(cached) $ECHO_C" >&6
16388 echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
16389 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6
16390 else
16391 # Is the header compilable?
16392 echo "$as_me:$LINENO: checking inq_stats/cpustats.h usability" >&5
16393 echo $ECHO_N "checking inq_stats/cpustats.h usability... $ECHO_C" >&6
16394 cat >conftest.$ac_ext <<_ACEOF
16395 /* confdefs.h. */
16396 _ACEOF
16397 cat confdefs.h >>conftest.$ac_ext
16398 cat >>conftest.$ac_ext <<_ACEOF
16399 /* end confdefs.h. */
16400 $ac_includes_default
16401 #include <inq_stats/cpustats.h>
16402 _ACEOF
16403 rm -f conftest.$ac_objext
16404 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16405 (eval $ac_compile) 2>conftest.er1
16406 ac_status=$?
16407 grep -v '^ *+' conftest.er1 >conftest.err
16408 rm -f conftest.er1
16409 cat conftest.err >&5
16410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16411 (exit $ac_status); } &&
16412 { ac_try='test -z "$ac_c_werror_flag"
16413 || test ! -s conftest.err'
16414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16415 (eval $ac_try) 2>&5
16416 ac_status=$?
16417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16418 (exit $ac_status); }; } &&
16419 { ac_try='test -s conftest.$ac_objext'
16420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16421 (eval $ac_try) 2>&5
16422 ac_status=$?
16423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16424 (exit $ac_status); }; }; then
16425 ac_header_compiler=yes
16426 else
16427 echo "$as_me: failed program was:" >&5
16428 sed 's/^/| /' conftest.$ac_ext >&5
16430 ac_header_compiler=no
16432 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16433 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16434 echo "${ECHO_T}$ac_header_compiler" >&6
16436 # Is the header present?
16437 echo "$as_me:$LINENO: checking inq_stats/cpustats.h presence" >&5
16438 echo $ECHO_N "checking inq_stats/cpustats.h presence... $ECHO_C" >&6
16439 cat >conftest.$ac_ext <<_ACEOF
16440 /* confdefs.h. */
16441 _ACEOF
16442 cat confdefs.h >>conftest.$ac_ext
16443 cat >>conftest.$ac_ext <<_ACEOF
16444 /* end confdefs.h. */
16445 #include <inq_stats/cpustats.h>
16446 _ACEOF
16447 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16448 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16449 ac_status=$?
16450 grep -v '^ *+' conftest.er1 >conftest.err
16451 rm -f conftest.er1
16452 cat conftest.err >&5
16453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16454 (exit $ac_status); } >/dev/null; then
16455 if test -s conftest.err; then
16456 ac_cpp_err=$ac_c_preproc_warn_flag
16457 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16458 else
16459 ac_cpp_err=
16461 else
16462 ac_cpp_err=yes
16464 if test -z "$ac_cpp_err"; then
16465 ac_header_preproc=yes
16466 else
16467 echo "$as_me: failed program was:" >&5
16468 sed 's/^/| /' conftest.$ac_ext >&5
16470 ac_header_preproc=no
16472 rm -f conftest.err conftest.$ac_ext
16473 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16474 echo "${ECHO_T}$ac_header_preproc" >&6
16476 # So? What about this header?
16477 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16478 yes:no: )
16479 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
16480 echo "$as_me: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16481 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&5
16482 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&2;}
16483 ac_header_preproc=yes
16485 no:yes:* )
16486 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&5
16487 echo "$as_me: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&2;}
16488 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&5
16489 echo "$as_me: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&2;}
16490 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&5
16491 echo "$as_me: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&2;}
16492 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
16493 echo "$as_me: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
16494 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
16495 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;}
16496 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&5
16497 echo "$as_me: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&2;}
16499 cat <<\_ASBOX
16500 ## ------------------------------------------ ##
16501 ## Report this to the AC_PACKAGE_NAME lists. ##
16502 ## ------------------------------------------ ##
16503 _ASBOX
16505 sed "s/^/$as_me: WARNING: /" >&2
16507 esac
16508 echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
16509 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6
16510 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
16511 echo $ECHO_N "(cached) $ECHO_C" >&6
16512 else
16513 ac_cv_header_inq_stats_cpustats_h=$ac_header_preproc
16515 echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
16516 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6
16519 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
16520 ac_have_func=yes
16522 cat >>confdefs.h <<\_ACEOF
16523 #define UMAX 1
16524 _ACEOF
16527 cat >>confdefs.h <<\_ACEOF
16528 #define UMAX4_3 1
16529 _ACEOF
16536 if test $ac_have_func = no; then
16537 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
16538 echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
16539 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6
16540 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
16541 echo $ECHO_N "(cached) $ECHO_C" >&6
16543 echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
16544 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6
16545 else
16546 # Is the header compilable?
16547 echo "$as_me:$LINENO: checking sys/cpustats.h usability" >&5
16548 echo $ECHO_N "checking sys/cpustats.h usability... $ECHO_C" >&6
16549 cat >conftest.$ac_ext <<_ACEOF
16550 /* confdefs.h. */
16551 _ACEOF
16552 cat confdefs.h >>conftest.$ac_ext
16553 cat >>conftest.$ac_ext <<_ACEOF
16554 /* end confdefs.h. */
16555 $ac_includes_default
16556 #include <sys/cpustats.h>
16557 _ACEOF
16558 rm -f conftest.$ac_objext
16559 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16560 (eval $ac_compile) 2>conftest.er1
16561 ac_status=$?
16562 grep -v '^ *+' conftest.er1 >conftest.err
16563 rm -f conftest.er1
16564 cat conftest.err >&5
16565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16566 (exit $ac_status); } &&
16567 { ac_try='test -z "$ac_c_werror_flag"
16568 || test ! -s conftest.err'
16569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16570 (eval $ac_try) 2>&5
16571 ac_status=$?
16572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16573 (exit $ac_status); }; } &&
16574 { ac_try='test -s conftest.$ac_objext'
16575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16576 (eval $ac_try) 2>&5
16577 ac_status=$?
16578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16579 (exit $ac_status); }; }; then
16580 ac_header_compiler=yes
16581 else
16582 echo "$as_me: failed program was:" >&5
16583 sed 's/^/| /' conftest.$ac_ext >&5
16585 ac_header_compiler=no
16587 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16588 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16589 echo "${ECHO_T}$ac_header_compiler" >&6
16591 # Is the header present?
16592 echo "$as_me:$LINENO: checking sys/cpustats.h presence" >&5
16593 echo $ECHO_N "checking sys/cpustats.h presence... $ECHO_C" >&6
16594 cat >conftest.$ac_ext <<_ACEOF
16595 /* confdefs.h. */
16596 _ACEOF
16597 cat confdefs.h >>conftest.$ac_ext
16598 cat >>conftest.$ac_ext <<_ACEOF
16599 /* end confdefs.h. */
16600 #include <sys/cpustats.h>
16601 _ACEOF
16602 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16603 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16604 ac_status=$?
16605 grep -v '^ *+' conftest.er1 >conftest.err
16606 rm -f conftest.er1
16607 cat conftest.err >&5
16608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16609 (exit $ac_status); } >/dev/null; then
16610 if test -s conftest.err; then
16611 ac_cpp_err=$ac_c_preproc_warn_flag
16612 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16613 else
16614 ac_cpp_err=
16616 else
16617 ac_cpp_err=yes
16619 if test -z "$ac_cpp_err"; then
16620 ac_header_preproc=yes
16621 else
16622 echo "$as_me: failed program was:" >&5
16623 sed 's/^/| /' conftest.$ac_ext >&5
16625 ac_header_preproc=no
16627 rm -f conftest.err conftest.$ac_ext
16628 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16629 echo "${ECHO_T}$ac_header_preproc" >&6
16631 # So? What about this header?
16632 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16633 yes:no: )
16634 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
16635 echo "$as_me: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16636 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&5
16637 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&2;}
16638 ac_header_preproc=yes
16640 no:yes:* )
16641 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: present but cannot be compiled" >&5
16642 echo "$as_me: WARNING: sys/cpustats.h: present but cannot be compiled" >&2;}
16643 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&5
16644 echo "$as_me: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&2;}
16645 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: see the Autoconf documentation" >&5
16646 echo "$as_me: WARNING: sys/cpustats.h: see the Autoconf documentation" >&2;}
16647 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
16648 echo "$as_me: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
16649 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
16650 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;}
16651 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&5
16652 echo "$as_me: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&2;}
16654 cat <<\_ASBOX
16655 ## ------------------------------------------ ##
16656 ## Report this to the AC_PACKAGE_NAME lists. ##
16657 ## ------------------------------------------ ##
16658 _ASBOX
16660 sed "s/^/$as_me: WARNING: /" >&2
16662 esac
16663 echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
16664 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6
16665 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
16666 echo $ECHO_N "(cached) $ECHO_C" >&6
16667 else
16668 ac_cv_header_sys_cpustats_h=$ac_header_preproc
16670 echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
16671 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6
16674 if test $ac_cv_header_sys_cpustats_h = yes; then
16675 ac_have_func=yes; cat >>confdefs.h <<\_ACEOF
16676 #define UMAX 1
16677 _ACEOF
16684 if test $ac_have_func = no; then
16686 for ac_header in mach/mach.h
16688 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16689 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16690 echo "$as_me:$LINENO: checking for $ac_header" >&5
16691 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16692 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16693 echo $ECHO_N "(cached) $ECHO_C" >&6
16695 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16696 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16697 else
16698 # Is the header compilable?
16699 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16700 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16701 cat >conftest.$ac_ext <<_ACEOF
16702 /* confdefs.h. */
16703 _ACEOF
16704 cat confdefs.h >>conftest.$ac_ext
16705 cat >>conftest.$ac_ext <<_ACEOF
16706 /* end confdefs.h. */
16707 $ac_includes_default
16708 #include <$ac_header>
16709 _ACEOF
16710 rm -f conftest.$ac_objext
16711 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16712 (eval $ac_compile) 2>conftest.er1
16713 ac_status=$?
16714 grep -v '^ *+' conftest.er1 >conftest.err
16715 rm -f conftest.er1
16716 cat conftest.err >&5
16717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16718 (exit $ac_status); } &&
16719 { ac_try='test -z "$ac_c_werror_flag"
16720 || test ! -s conftest.err'
16721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16722 (eval $ac_try) 2>&5
16723 ac_status=$?
16724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16725 (exit $ac_status); }; } &&
16726 { ac_try='test -s conftest.$ac_objext'
16727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16728 (eval $ac_try) 2>&5
16729 ac_status=$?
16730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16731 (exit $ac_status); }; }; then
16732 ac_header_compiler=yes
16733 else
16734 echo "$as_me: failed program was:" >&5
16735 sed 's/^/| /' conftest.$ac_ext >&5
16737 ac_header_compiler=no
16739 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16740 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16741 echo "${ECHO_T}$ac_header_compiler" >&6
16743 # Is the header present?
16744 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16745 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16746 cat >conftest.$ac_ext <<_ACEOF
16747 /* confdefs.h. */
16748 _ACEOF
16749 cat confdefs.h >>conftest.$ac_ext
16750 cat >>conftest.$ac_ext <<_ACEOF
16751 /* end confdefs.h. */
16752 #include <$ac_header>
16753 _ACEOF
16754 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16755 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16756 ac_status=$?
16757 grep -v '^ *+' conftest.er1 >conftest.err
16758 rm -f conftest.er1
16759 cat conftest.err >&5
16760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16761 (exit $ac_status); } >/dev/null; then
16762 if test -s conftest.err; then
16763 ac_cpp_err=$ac_c_preproc_warn_flag
16764 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16765 else
16766 ac_cpp_err=
16768 else
16769 ac_cpp_err=yes
16771 if test -z "$ac_cpp_err"; then
16772 ac_header_preproc=yes
16773 else
16774 echo "$as_me: failed program was:" >&5
16775 sed 's/^/| /' conftest.$ac_ext >&5
16777 ac_header_preproc=no
16779 rm -f conftest.err conftest.$ac_ext
16780 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16781 echo "${ECHO_T}$ac_header_preproc" >&6
16783 # So? What about this header?
16784 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16785 yes:no: )
16786 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16787 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16788 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16789 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16790 ac_header_preproc=yes
16792 no:yes:* )
16793 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16794 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16795 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16796 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16797 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16798 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16799 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16800 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16801 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16802 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16803 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16804 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16806 cat <<\_ASBOX
16807 ## ------------------------------------------ ##
16808 ## Report this to the AC_PACKAGE_NAME lists. ##
16809 ## ------------------------------------------ ##
16810 _ASBOX
16812 sed "s/^/$as_me: WARNING: /" >&2
16814 esac
16815 echo "$as_me:$LINENO: checking for $ac_header" >&5
16816 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16817 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16818 echo $ECHO_N "(cached) $ECHO_C" >&6
16819 else
16820 eval "$as_ac_Header=\$ac_header_preproc"
16822 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16823 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16826 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16827 cat >>confdefs.h <<_ACEOF
16828 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16829 _ACEOF
16833 done
16838 for ac_header in nlist.h
16840 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16841 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16842 echo "$as_me:$LINENO: checking for $ac_header" >&5
16843 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16844 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16845 echo $ECHO_N "(cached) $ECHO_C" >&6
16847 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16848 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16849 else
16850 # Is the header compilable?
16851 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16852 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16853 cat >conftest.$ac_ext <<_ACEOF
16854 /* confdefs.h. */
16855 _ACEOF
16856 cat confdefs.h >>conftest.$ac_ext
16857 cat >>conftest.$ac_ext <<_ACEOF
16858 /* end confdefs.h. */
16859 $ac_includes_default
16860 #include <$ac_header>
16861 _ACEOF
16862 rm -f conftest.$ac_objext
16863 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16864 (eval $ac_compile) 2>conftest.er1
16865 ac_status=$?
16866 grep -v '^ *+' conftest.er1 >conftest.err
16867 rm -f conftest.er1
16868 cat conftest.err >&5
16869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16870 (exit $ac_status); } &&
16871 { ac_try='test -z "$ac_c_werror_flag"
16872 || test ! -s conftest.err'
16873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16874 (eval $ac_try) 2>&5
16875 ac_status=$?
16876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16877 (exit $ac_status); }; } &&
16878 { ac_try='test -s conftest.$ac_objext'
16879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16880 (eval $ac_try) 2>&5
16881 ac_status=$?
16882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16883 (exit $ac_status); }; }; then
16884 ac_header_compiler=yes
16885 else
16886 echo "$as_me: failed program was:" >&5
16887 sed 's/^/| /' conftest.$ac_ext >&5
16889 ac_header_compiler=no
16891 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16892 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16893 echo "${ECHO_T}$ac_header_compiler" >&6
16895 # Is the header present?
16896 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16897 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16898 cat >conftest.$ac_ext <<_ACEOF
16899 /* confdefs.h. */
16900 _ACEOF
16901 cat confdefs.h >>conftest.$ac_ext
16902 cat >>conftest.$ac_ext <<_ACEOF
16903 /* end confdefs.h. */
16904 #include <$ac_header>
16905 _ACEOF
16906 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16907 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16908 ac_status=$?
16909 grep -v '^ *+' conftest.er1 >conftest.err
16910 rm -f conftest.er1
16911 cat conftest.err >&5
16912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16913 (exit $ac_status); } >/dev/null; then
16914 if test -s conftest.err; then
16915 ac_cpp_err=$ac_c_preproc_warn_flag
16916 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16917 else
16918 ac_cpp_err=
16920 else
16921 ac_cpp_err=yes
16923 if test -z "$ac_cpp_err"; then
16924 ac_header_preproc=yes
16925 else
16926 echo "$as_me: failed program was:" >&5
16927 sed 's/^/| /' conftest.$ac_ext >&5
16929 ac_header_preproc=no
16931 rm -f conftest.err conftest.$ac_ext
16932 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16933 echo "${ECHO_T}$ac_header_preproc" >&6
16935 # So? What about this header?
16936 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16937 yes:no: )
16938 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16939 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16940 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16941 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16942 ac_header_preproc=yes
16944 no:yes:* )
16945 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16946 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16947 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16948 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16949 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16950 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16951 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16952 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16953 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16954 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16955 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16956 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16958 cat <<\_ASBOX
16959 ## ------------------------------------------ ##
16960 ## Report this to the AC_PACKAGE_NAME lists. ##
16961 ## ------------------------------------------ ##
16962 _ASBOX
16964 sed "s/^/$as_me: WARNING: /" >&2
16966 esac
16967 echo "$as_me:$LINENO: checking for $ac_header" >&5
16968 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16969 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16970 echo $ECHO_N "(cached) $ECHO_C" >&6
16971 else
16972 eval "$as_ac_Header=\$ac_header_preproc"
16974 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16975 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16978 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16979 cat >>confdefs.h <<_ACEOF
16980 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16981 _ACEOF
16982 echo "$as_me:$LINENO: checking for struct nlist.n_un.n_name" >&5
16983 echo $ECHO_N "checking for struct nlist.n_un.n_name... $ECHO_C" >&6
16984 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
16985 echo $ECHO_N "(cached) $ECHO_C" >&6
16986 else
16987 cat >conftest.$ac_ext <<_ACEOF
16988 /* confdefs.h. */
16989 _ACEOF
16990 cat confdefs.h >>conftest.$ac_ext
16991 cat >>conftest.$ac_ext <<_ACEOF
16992 /* end confdefs.h. */
16993 #include <nlist.h>
16996 main ()
16998 static struct nlist ac_aggr;
16999 if (ac_aggr.n_un.n_name)
17000 return 0;
17002 return 0;
17004 _ACEOF
17005 rm -f conftest.$ac_objext
17006 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17007 (eval $ac_compile) 2>conftest.er1
17008 ac_status=$?
17009 grep -v '^ *+' conftest.er1 >conftest.err
17010 rm -f conftest.er1
17011 cat conftest.err >&5
17012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17013 (exit $ac_status); } &&
17014 { ac_try='test -z "$ac_c_werror_flag"
17015 || test ! -s conftest.err'
17016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17017 (eval $ac_try) 2>&5
17018 ac_status=$?
17019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17020 (exit $ac_status); }; } &&
17021 { ac_try='test -s conftest.$ac_objext'
17022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17023 (eval $ac_try) 2>&5
17024 ac_status=$?
17025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17026 (exit $ac_status); }; }; then
17027 ac_cv_member_struct_nlist_n_un_n_name=yes
17028 else
17029 echo "$as_me: failed program was:" >&5
17030 sed 's/^/| /' conftest.$ac_ext >&5
17032 cat >conftest.$ac_ext <<_ACEOF
17033 /* confdefs.h. */
17034 _ACEOF
17035 cat confdefs.h >>conftest.$ac_ext
17036 cat >>conftest.$ac_ext <<_ACEOF
17037 /* end confdefs.h. */
17038 #include <nlist.h>
17041 main ()
17043 static struct nlist ac_aggr;
17044 if (sizeof ac_aggr.n_un.n_name)
17045 return 0;
17047 return 0;
17049 _ACEOF
17050 rm -f conftest.$ac_objext
17051 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17052 (eval $ac_compile) 2>conftest.er1
17053 ac_status=$?
17054 grep -v '^ *+' conftest.er1 >conftest.err
17055 rm -f conftest.er1
17056 cat conftest.err >&5
17057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17058 (exit $ac_status); } &&
17059 { ac_try='test -z "$ac_c_werror_flag"
17060 || test ! -s conftest.err'
17061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17062 (eval $ac_try) 2>&5
17063 ac_status=$?
17064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17065 (exit $ac_status); }; } &&
17066 { ac_try='test -s conftest.$ac_objext'
17067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17068 (eval $ac_try) 2>&5
17069 ac_status=$?
17070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17071 (exit $ac_status); }; }; then
17072 ac_cv_member_struct_nlist_n_un_n_name=yes
17073 else
17074 echo "$as_me: failed program was:" >&5
17075 sed 's/^/| /' conftest.$ac_ext >&5
17077 ac_cv_member_struct_nlist_n_un_n_name=no
17079 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17081 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17083 echo "$as_me:$LINENO: result: $ac_cv_member_struct_nlist_n_un_n_name" >&5
17084 echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6
17085 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
17087 cat >>confdefs.h <<_ACEOF
17088 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
17089 _ACEOF
17092 cat >>confdefs.h <<\_ACEOF
17093 #define NLIST_NAME_UNION 1
17094 _ACEOF
17101 done
17104 done
17107 # Some definitions of getloadavg require that the program be installed setgid.
17108 echo "$as_me:$LINENO: checking whether getloadavg requires setgid" >&5
17109 echo $ECHO_N "checking whether getloadavg requires setgid... $ECHO_C" >&6
17110 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
17111 echo $ECHO_N "(cached) $ECHO_C" >&6
17112 else
17113 cat >conftest.$ac_ext <<_ACEOF
17114 /* confdefs.h. */
17115 _ACEOF
17116 cat confdefs.h >>conftest.$ac_ext
17117 cat >>conftest.$ac_ext <<_ACEOF
17118 /* end confdefs.h. */
17119 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c"
17120 #ifdef LDAV_PRIVILEGED
17121 Yowza Am I SETGID yet
17122 #endif
17123 _ACEOF
17124 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17125 $EGREP "Yowza Am I SETGID yet" >/dev/null 2>&1; then
17126 ac_cv_func_getloadavg_setgid=yes
17127 else
17128 ac_cv_func_getloadavg_setgid=no
17130 rm -f conftest*
17133 echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg_setgid" >&5
17134 echo "${ECHO_T}$ac_cv_func_getloadavg_setgid" >&6
17135 if test $ac_cv_func_getloadavg_setgid = yes; then
17136 NEED_SETGID=true
17138 cat >>confdefs.h <<\_ACEOF
17139 #define GETLOADAVG_PRIVILEGED 1
17140 _ACEOF
17142 else
17143 NEED_SETGID=false
17146 if test $ac_cv_func_getloadavg_setgid = yes; then
17147 echo "$as_me:$LINENO: checking group of /dev/kmem" >&5
17148 echo $ECHO_N "checking group of /dev/kmem... $ECHO_C" >&6
17149 if test "${ac_cv_group_kmem+set}" = set; then
17150 echo $ECHO_N "(cached) $ECHO_C" >&6
17151 else
17152 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
17153 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
17154 # If we got an error (system does not support symlinks), try without -L.
17155 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
17156 ac_cv_group_kmem=`echo $ac_ls_output \
17157 | sed -ne 's/[ ][ ]*/ /g;
17158 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
17159 / /s/.* //;p;'`
17162 echo "$as_me:$LINENO: result: $ac_cv_group_kmem" >&5
17163 echo "${ECHO_T}$ac_cv_group_kmem" >&6
17164 KMEM_GROUP=$ac_cv_group_kmem
17166 if test "x$ac_save_LIBS" = x; then
17167 GETLOADAVG_LIBS=$LIBS
17168 else
17169 GETLOADAVG_LIBS=`echo "$LIBS" | sed "s!$ac_save_LIBS!!"`
17171 LIBS=$ac_save_LIBS
17175 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
17176 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
17177 if test "${ac_cv_sys_largefile_source+set}" = set; then
17178 echo $ECHO_N "(cached) $ECHO_C" >&6
17179 else
17180 while :; do
17181 ac_cv_sys_largefile_source=no
17182 cat >conftest.$ac_ext <<_ACEOF
17183 /* confdefs.h. */
17184 _ACEOF
17185 cat confdefs.h >>conftest.$ac_ext
17186 cat >>conftest.$ac_ext <<_ACEOF
17187 /* end confdefs.h. */
17188 #include <stdio.h>
17190 main ()
17192 return !fseeko;
17194 return 0;
17196 _ACEOF
17197 rm -f conftest.$ac_objext
17198 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17199 (eval $ac_compile) 2>conftest.er1
17200 ac_status=$?
17201 grep -v '^ *+' conftest.er1 >conftest.err
17202 rm -f conftest.er1
17203 cat conftest.err >&5
17204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17205 (exit $ac_status); } &&
17206 { ac_try='test -z "$ac_c_werror_flag"
17207 || test ! -s conftest.err'
17208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17209 (eval $ac_try) 2>&5
17210 ac_status=$?
17211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17212 (exit $ac_status); }; } &&
17213 { ac_try='test -s conftest.$ac_objext'
17214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17215 (eval $ac_try) 2>&5
17216 ac_status=$?
17217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17218 (exit $ac_status); }; }; then
17219 break
17220 else
17221 echo "$as_me: failed program was:" >&5
17222 sed 's/^/| /' conftest.$ac_ext >&5
17225 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17226 cat >conftest.$ac_ext <<_ACEOF
17227 /* confdefs.h. */
17228 _ACEOF
17229 cat confdefs.h >>conftest.$ac_ext
17230 cat >>conftest.$ac_ext <<_ACEOF
17231 /* end confdefs.h. */
17232 #define _LARGEFILE_SOURCE 1
17233 #include <stdio.h>
17235 main ()
17237 return !fseeko;
17239 return 0;
17241 _ACEOF
17242 rm -f conftest.$ac_objext
17243 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17244 (eval $ac_compile) 2>conftest.er1
17245 ac_status=$?
17246 grep -v '^ *+' conftest.er1 >conftest.err
17247 rm -f conftest.er1
17248 cat conftest.err >&5
17249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17250 (exit $ac_status); } &&
17251 { ac_try='test -z "$ac_c_werror_flag"
17252 || test ! -s conftest.err'
17253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17254 (eval $ac_try) 2>&5
17255 ac_status=$?
17256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17257 (exit $ac_status); }; } &&
17258 { ac_try='test -s conftest.$ac_objext'
17259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17260 (eval $ac_try) 2>&5
17261 ac_status=$?
17262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17263 (exit $ac_status); }; }; then
17264 ac_cv_sys_largefile_source=1; break
17265 else
17266 echo "$as_me: failed program was:" >&5
17267 sed 's/^/| /' conftest.$ac_ext >&5
17270 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17271 break
17272 done
17274 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
17275 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
17276 if test "$ac_cv_sys_largefile_source" != no; then
17278 cat >>confdefs.h <<_ACEOF
17279 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
17280 _ACEOF
17283 rm -f conftest*
17285 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
17286 # in glibc 2.1.3, but that breaks too many other things.
17287 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
17288 echo "$as_me:$LINENO: checking for fseeko" >&5
17289 echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
17290 if test "${ac_cv_func_fseeko+set}" = set; then
17291 echo $ECHO_N "(cached) $ECHO_C" >&6
17292 else
17293 cat >conftest.$ac_ext <<_ACEOF
17294 /* confdefs.h. */
17295 _ACEOF
17296 cat confdefs.h >>conftest.$ac_ext
17297 cat >>conftest.$ac_ext <<_ACEOF
17298 /* end confdefs.h. */
17299 #include <stdio.h>
17301 main ()
17303 return fseeko && fseeko (stdin, 0, 0);
17305 return 0;
17307 _ACEOF
17308 rm -f conftest.$ac_objext conftest$ac_exeext
17309 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17310 (eval $ac_link) 2>conftest.er1
17311 ac_status=$?
17312 grep -v '^ *+' conftest.er1 >conftest.err
17313 rm -f conftest.er1
17314 cat conftest.err >&5
17315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17316 (exit $ac_status); } &&
17317 { ac_try='test -z "$ac_c_werror_flag"
17318 || test ! -s conftest.err'
17319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17320 (eval $ac_try) 2>&5
17321 ac_status=$?
17322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17323 (exit $ac_status); }; } &&
17324 { ac_try='test -s conftest$ac_exeext'
17325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17326 (eval $ac_try) 2>&5
17327 ac_status=$?
17328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17329 (exit $ac_status); }; }; then
17330 ac_cv_func_fseeko=yes
17331 else
17332 echo "$as_me: failed program was:" >&5
17333 sed 's/^/| /' conftest.$ac_ext >&5
17335 ac_cv_func_fseeko=no
17337 rm -f conftest.err conftest.$ac_objext \
17338 conftest$ac_exeext conftest.$ac_ext
17340 echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5
17341 echo "${ECHO_T}$ac_cv_func_fseeko" >&6
17342 if test $ac_cv_func_fseeko = yes; then
17344 cat >>confdefs.h <<\_ACEOF
17345 #define HAVE_FSEEKO 1
17346 _ACEOF
17351 # Configure getopt.
17352 # getopt.m4 serial 10
17354 # The getopt module assume you want GNU getopt, with getopt_long etc,
17355 # rather than vanilla POSIX getopt. This means your your code should
17356 # always include <getopt.h> for the getopt prototypes.
17368 # Prerequisites of lib/getopt*.
17373 GETOPT_H=
17375 for ac_header in getopt.h
17377 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17378 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17379 echo "$as_me:$LINENO: checking for $ac_header" >&5
17380 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17381 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17382 echo $ECHO_N "(cached) $ECHO_C" >&6
17384 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17385 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17386 else
17387 # Is the header compilable?
17388 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17389 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17390 cat >conftest.$ac_ext <<_ACEOF
17391 /* confdefs.h. */
17392 _ACEOF
17393 cat confdefs.h >>conftest.$ac_ext
17394 cat >>conftest.$ac_ext <<_ACEOF
17395 /* end confdefs.h. */
17396 $ac_includes_default
17397 #include <$ac_header>
17398 _ACEOF
17399 rm -f conftest.$ac_objext
17400 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17401 (eval $ac_compile) 2>conftest.er1
17402 ac_status=$?
17403 grep -v '^ *+' conftest.er1 >conftest.err
17404 rm -f conftest.er1
17405 cat conftest.err >&5
17406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17407 (exit $ac_status); } &&
17408 { ac_try='test -z "$ac_c_werror_flag"
17409 || test ! -s conftest.err'
17410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17411 (eval $ac_try) 2>&5
17412 ac_status=$?
17413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17414 (exit $ac_status); }; } &&
17415 { ac_try='test -s conftest.$ac_objext'
17416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17417 (eval $ac_try) 2>&5
17418 ac_status=$?
17419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17420 (exit $ac_status); }; }; then
17421 ac_header_compiler=yes
17422 else
17423 echo "$as_me: failed program was:" >&5
17424 sed 's/^/| /' conftest.$ac_ext >&5
17426 ac_header_compiler=no
17428 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17429 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17430 echo "${ECHO_T}$ac_header_compiler" >&6
17432 # Is the header present?
17433 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17434 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17435 cat >conftest.$ac_ext <<_ACEOF
17436 /* confdefs.h. */
17437 _ACEOF
17438 cat confdefs.h >>conftest.$ac_ext
17439 cat >>conftest.$ac_ext <<_ACEOF
17440 /* end confdefs.h. */
17441 #include <$ac_header>
17442 _ACEOF
17443 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17444 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17445 ac_status=$?
17446 grep -v '^ *+' conftest.er1 >conftest.err
17447 rm -f conftest.er1
17448 cat conftest.err >&5
17449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17450 (exit $ac_status); } >/dev/null; then
17451 if test -s conftest.err; then
17452 ac_cpp_err=$ac_c_preproc_warn_flag
17453 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17454 else
17455 ac_cpp_err=
17457 else
17458 ac_cpp_err=yes
17460 if test -z "$ac_cpp_err"; then
17461 ac_header_preproc=yes
17462 else
17463 echo "$as_me: failed program was:" >&5
17464 sed 's/^/| /' conftest.$ac_ext >&5
17466 ac_header_preproc=no
17468 rm -f conftest.err conftest.$ac_ext
17469 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17470 echo "${ECHO_T}$ac_header_preproc" >&6
17472 # So? What about this header?
17473 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17474 yes:no: )
17475 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17476 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17477 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17478 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17479 ac_header_preproc=yes
17481 no:yes:* )
17482 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17483 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17484 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17485 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17486 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17487 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17488 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17489 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17490 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17491 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17492 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17493 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17495 cat <<\_ASBOX
17496 ## ------------------------------------------ ##
17497 ## Report this to the AC_PACKAGE_NAME lists. ##
17498 ## ------------------------------------------ ##
17499 _ASBOX
17501 sed "s/^/$as_me: WARNING: /" >&2
17503 esac
17504 echo "$as_me:$LINENO: checking for $ac_header" >&5
17505 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17506 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17507 echo $ECHO_N "(cached) $ECHO_C" >&6
17508 else
17509 eval "$as_ac_Header=\$ac_header_preproc"
17511 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17512 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17515 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17516 cat >>confdefs.h <<_ACEOF
17517 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17518 _ACEOF
17520 else
17521 GETOPT_H=getopt.h
17524 done
17526 if test -z "$GETOPT_H"; then
17528 for ac_func in getopt_long_only
17530 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17531 echo "$as_me:$LINENO: checking for $ac_func" >&5
17532 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17533 if eval "test \"\${$as_ac_var+set}\" = set"; then
17534 echo $ECHO_N "(cached) $ECHO_C" >&6
17535 else
17536 cat >conftest.$ac_ext <<_ACEOF
17537 /* confdefs.h. */
17538 _ACEOF
17539 cat confdefs.h >>conftest.$ac_ext
17540 cat >>conftest.$ac_ext <<_ACEOF
17541 /* end confdefs.h. */
17542 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17543 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17544 #define $ac_func innocuous_$ac_func
17546 /* System header to define __stub macros and hopefully few prototypes,
17547 which can conflict with char $ac_func (); below.
17548 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17549 <limits.h> exists even on freestanding compilers. */
17551 #ifdef __STDC__
17552 # include <limits.h>
17553 #else
17554 # include <assert.h>
17555 #endif
17557 #undef $ac_func
17559 /* Override any gcc2 internal prototype to avoid an error. */
17560 #ifdef __cplusplus
17561 extern "C"
17563 #endif
17564 /* We use char because int might match the return type of a gcc2
17565 builtin and then its argument prototype would still apply. */
17566 char $ac_func ();
17567 /* The GNU C library defines this for functions which it implements
17568 to always fail with ENOSYS. Some functions are actually named
17569 something starting with __ and the normal name is an alias. */
17570 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17571 choke me
17572 #else
17573 char (*f) () = $ac_func;
17574 #endif
17575 #ifdef __cplusplus
17577 #endif
17580 main ()
17582 return f != $ac_func;
17584 return 0;
17586 _ACEOF
17587 rm -f conftest.$ac_objext conftest$ac_exeext
17588 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17589 (eval $ac_link) 2>conftest.er1
17590 ac_status=$?
17591 grep -v '^ *+' conftest.er1 >conftest.err
17592 rm -f conftest.er1
17593 cat conftest.err >&5
17594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17595 (exit $ac_status); } &&
17596 { ac_try='test -z "$ac_c_werror_flag"
17597 || test ! -s conftest.err'
17598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17599 (eval $ac_try) 2>&5
17600 ac_status=$?
17601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17602 (exit $ac_status); }; } &&
17603 { ac_try='test -s conftest$ac_exeext'
17604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17605 (eval $ac_try) 2>&5
17606 ac_status=$?
17607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17608 (exit $ac_status); }; }; then
17609 eval "$as_ac_var=yes"
17610 else
17611 echo "$as_me: failed program was:" >&5
17612 sed 's/^/| /' conftest.$ac_ext >&5
17614 eval "$as_ac_var=no"
17616 rm -f conftest.err conftest.$ac_objext \
17617 conftest$ac_exeext conftest.$ac_ext
17619 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17620 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17621 if test `eval echo '${'$as_ac_var'}'` = yes; then
17622 cat >>confdefs.h <<_ACEOF
17623 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17624 _ACEOF
17626 else
17627 GETOPT_H=getopt.h
17629 done
17633 if test -z "$GETOPT_H"; then
17634 echo "$as_me:$LINENO: checking whether optreset is declared" >&5
17635 echo $ECHO_N "checking whether optreset is declared... $ECHO_C" >&6
17636 if test "${ac_cv_have_decl_optreset+set}" = set; then
17637 echo $ECHO_N "(cached) $ECHO_C" >&6
17638 else
17639 cat >conftest.$ac_ext <<_ACEOF
17640 /* confdefs.h. */
17641 _ACEOF
17642 cat confdefs.h >>conftest.$ac_ext
17643 cat >>conftest.$ac_ext <<_ACEOF
17644 /* end confdefs.h. */
17645 #include <getopt.h>
17648 main ()
17650 #ifndef optreset
17651 char *p = (char *) optreset;
17652 #endif
17655 return 0;
17657 _ACEOF
17658 rm -f conftest.$ac_objext
17659 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17660 (eval $ac_compile) 2>conftest.er1
17661 ac_status=$?
17662 grep -v '^ *+' conftest.er1 >conftest.err
17663 rm -f conftest.er1
17664 cat conftest.err >&5
17665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17666 (exit $ac_status); } &&
17667 { ac_try='test -z "$ac_c_werror_flag"
17668 || test ! -s conftest.err'
17669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17670 (eval $ac_try) 2>&5
17671 ac_status=$?
17672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17673 (exit $ac_status); }; } &&
17674 { ac_try='test -s conftest.$ac_objext'
17675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17676 (eval $ac_try) 2>&5
17677 ac_status=$?
17678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17679 (exit $ac_status); }; }; then
17680 ac_cv_have_decl_optreset=yes
17681 else
17682 echo "$as_me: failed program was:" >&5
17683 sed 's/^/| /' conftest.$ac_ext >&5
17685 ac_cv_have_decl_optreset=no
17687 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17689 echo "$as_me:$LINENO: result: $ac_cv_have_decl_optreset" >&5
17690 echo "${ECHO_T}$ac_cv_have_decl_optreset" >&6
17691 if test $ac_cv_have_decl_optreset = yes; then
17692 GETOPT_H=getopt.h
17697 if test -z "$GETOPT_H"; then
17698 echo "$as_me:$LINENO: checking for working GNU getopt function" >&5
17699 echo $ECHO_N "checking for working GNU getopt function... $ECHO_C" >&6
17700 if test "${gl_cv_func_gnu_getopt+set}" = set; then
17701 echo $ECHO_N "(cached) $ECHO_C" >&6
17702 else
17703 if test "$cross_compiling" = yes; then
17704 echo "$as_me:$LINENO: checking whether getopt_clip is declared" >&5
17705 echo $ECHO_N "checking whether getopt_clip is declared... $ECHO_C" >&6
17706 if test "${ac_cv_have_decl_getopt_clip+set}" = set; then
17707 echo $ECHO_N "(cached) $ECHO_C" >&6
17708 else
17709 cat >conftest.$ac_ext <<_ACEOF
17710 /* confdefs.h. */
17711 _ACEOF
17712 cat confdefs.h >>conftest.$ac_ext
17713 cat >>conftest.$ac_ext <<_ACEOF
17714 /* end confdefs.h. */
17715 #include <getopt.h>
17718 main ()
17720 #ifndef getopt_clip
17721 char *p = (char *) getopt_clip;
17722 #endif
17725 return 0;
17727 _ACEOF
17728 rm -f conftest.$ac_objext
17729 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17730 (eval $ac_compile) 2>conftest.er1
17731 ac_status=$?
17732 grep -v '^ *+' conftest.er1 >conftest.err
17733 rm -f conftest.er1
17734 cat conftest.err >&5
17735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17736 (exit $ac_status); } &&
17737 { ac_try='test -z "$ac_c_werror_flag"
17738 || test ! -s conftest.err'
17739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17740 (eval $ac_try) 2>&5
17741 ac_status=$?
17742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17743 (exit $ac_status); }; } &&
17744 { ac_try='test -s conftest.$ac_objext'
17745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17746 (eval $ac_try) 2>&5
17747 ac_status=$?
17748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17749 (exit $ac_status); }; }; then
17750 ac_cv_have_decl_getopt_clip=yes
17751 else
17752 echo "$as_me: failed program was:" >&5
17753 sed 's/^/| /' conftest.$ac_ext >&5
17755 ac_cv_have_decl_getopt_clip=no
17757 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17759 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getopt_clip" >&5
17760 echo "${ECHO_T}$ac_cv_have_decl_getopt_clip" >&6
17761 if test $ac_cv_have_decl_getopt_clip = yes; then
17762 gl_cv_func_gnu_getopt=no
17763 else
17764 gl_cv_func_gnu_getopt=yes
17767 else
17768 cat >conftest.$ac_ext <<_ACEOF
17769 /* confdefs.h. */
17770 _ACEOF
17771 cat confdefs.h >>conftest.$ac_ext
17772 cat >>conftest.$ac_ext <<_ACEOF
17773 /* end confdefs.h. */
17774 #include <getopt.h>
17776 main ()
17779 char *myargv[3];
17780 myargv[0] = "conftest";
17781 myargv[1] = "-+";
17782 myargv[2] = 0;
17783 return getopt (2, myargv, "+a") != '?';
17786 return 0;
17788 _ACEOF
17789 rm -f conftest$ac_exeext
17790 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17791 (eval $ac_link) 2>&5
17792 ac_status=$?
17793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17794 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17796 (eval $ac_try) 2>&5
17797 ac_status=$?
17798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17799 (exit $ac_status); }; }; then
17800 gl_cv_func_gnu_getopt=yes
17801 else
17802 echo "$as_me: program exited with status $ac_status" >&5
17803 echo "$as_me: failed program was:" >&5
17804 sed 's/^/| /' conftest.$ac_ext >&5
17806 ( exit $ac_status )
17807 gl_cv_func_gnu_getopt=no
17809 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17812 echo "$as_me:$LINENO: result: $gl_cv_func_gnu_getopt" >&5
17813 echo "${ECHO_T}$gl_cv_func_gnu_getopt" >&6
17814 if test "$gl_cv_func_gnu_getopt" = "no"; then
17815 GETOPT_H=getopt.h
17821 if test -n "$GETOPT_H"; then
17824 GETOPT_H=getopt.h
17826 cat >>confdefs.h <<\_ACEOF
17827 #define __GETOPT_PREFIX rpl_
17828 _ACEOF
17833 GETOPTOBJS='getopt.o getopt1.o'
17840 echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5
17841 echo $ECHO_N "checking whether getpgrp requires zero arguments... $ECHO_C" >&6
17842 if test "${ac_cv_func_getpgrp_void+set}" = set; then
17843 echo $ECHO_N "(cached) $ECHO_C" >&6
17844 else
17845 # Use it with a single arg.
17846 cat >conftest.$ac_ext <<_ACEOF
17847 /* confdefs.h. */
17848 _ACEOF
17849 cat confdefs.h >>conftest.$ac_ext
17850 cat >>conftest.$ac_ext <<_ACEOF
17851 /* end confdefs.h. */
17852 $ac_includes_default
17854 main ()
17856 getpgrp (0);
17858 return 0;
17860 _ACEOF
17861 rm -f conftest.$ac_objext
17862 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17863 (eval $ac_compile) 2>conftest.er1
17864 ac_status=$?
17865 grep -v '^ *+' conftest.er1 >conftest.err
17866 rm -f conftest.er1
17867 cat conftest.err >&5
17868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17869 (exit $ac_status); } &&
17870 { ac_try='test -z "$ac_c_werror_flag"
17871 || test ! -s conftest.err'
17872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17873 (eval $ac_try) 2>&5
17874 ac_status=$?
17875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17876 (exit $ac_status); }; } &&
17877 { ac_try='test -s conftest.$ac_objext'
17878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17879 (eval $ac_try) 2>&5
17880 ac_status=$?
17881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17882 (exit $ac_status); }; }; then
17883 ac_cv_func_getpgrp_void=no
17884 else
17885 echo "$as_me: failed program was:" >&5
17886 sed 's/^/| /' conftest.$ac_ext >&5
17888 ac_cv_func_getpgrp_void=yes
17890 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17893 echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5
17894 echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6
17895 if test $ac_cv_func_getpgrp_void = yes; then
17897 cat >>confdefs.h <<\_ACEOF
17898 #define GETPGRP_VOID 1
17899 _ACEOF
17905 for ac_func in strftime
17907 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17908 echo "$as_me:$LINENO: checking for $ac_func" >&5
17909 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17910 if eval "test \"\${$as_ac_var+set}\" = set"; then
17911 echo $ECHO_N "(cached) $ECHO_C" >&6
17912 else
17913 cat >conftest.$ac_ext <<_ACEOF
17914 /* confdefs.h. */
17915 _ACEOF
17916 cat confdefs.h >>conftest.$ac_ext
17917 cat >>conftest.$ac_ext <<_ACEOF
17918 /* end confdefs.h. */
17919 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17920 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17921 #define $ac_func innocuous_$ac_func
17923 /* System header to define __stub macros and hopefully few prototypes,
17924 which can conflict with char $ac_func (); below.
17925 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17926 <limits.h> exists even on freestanding compilers. */
17928 #ifdef __STDC__
17929 # include <limits.h>
17930 #else
17931 # include <assert.h>
17932 #endif
17934 #undef $ac_func
17936 /* Override any gcc2 internal prototype to avoid an error. */
17937 #ifdef __cplusplus
17938 extern "C"
17940 #endif
17941 /* We use char because int might match the return type of a gcc2
17942 builtin and then its argument prototype would still apply. */
17943 char $ac_func ();
17944 /* The GNU C library defines this for functions which it implements
17945 to always fail with ENOSYS. Some functions are actually named
17946 something starting with __ and the normal name is an alias. */
17947 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17948 choke me
17949 #else
17950 char (*f) () = $ac_func;
17951 #endif
17952 #ifdef __cplusplus
17954 #endif
17957 main ()
17959 return f != $ac_func;
17961 return 0;
17963 _ACEOF
17964 rm -f conftest.$ac_objext conftest$ac_exeext
17965 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17966 (eval $ac_link) 2>conftest.er1
17967 ac_status=$?
17968 grep -v '^ *+' conftest.er1 >conftest.err
17969 rm -f conftest.er1
17970 cat conftest.err >&5
17971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17972 (exit $ac_status); } &&
17973 { ac_try='test -z "$ac_c_werror_flag"
17974 || test ! -s conftest.err'
17975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17976 (eval $ac_try) 2>&5
17977 ac_status=$?
17978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17979 (exit $ac_status); }; } &&
17980 { ac_try='test -s conftest$ac_exeext'
17981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17982 (eval $ac_try) 2>&5
17983 ac_status=$?
17984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17985 (exit $ac_status); }; }; then
17986 eval "$as_ac_var=yes"
17987 else
17988 echo "$as_me: failed program was:" >&5
17989 sed 's/^/| /' conftest.$ac_ext >&5
17991 eval "$as_ac_var=no"
17993 rm -f conftest.err conftest.$ac_objext \
17994 conftest$ac_exeext conftest.$ac_ext
17996 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17997 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17998 if test `eval echo '${'$as_ac_var'}'` = yes; then
17999 cat >>confdefs.h <<_ACEOF
18000 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18001 _ACEOF
18003 else
18004 # strftime is in -lintl on SCO UNIX.
18005 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
18006 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
18007 if test "${ac_cv_lib_intl_strftime+set}" = set; then
18008 echo $ECHO_N "(cached) $ECHO_C" >&6
18009 else
18010 ac_check_lib_save_LIBS=$LIBS
18011 LIBS="-lintl $LIBS"
18012 cat >conftest.$ac_ext <<_ACEOF
18013 /* confdefs.h. */
18014 _ACEOF
18015 cat confdefs.h >>conftest.$ac_ext
18016 cat >>conftest.$ac_ext <<_ACEOF
18017 /* end confdefs.h. */
18019 /* Override any gcc2 internal prototype to avoid an error. */
18020 #ifdef __cplusplus
18021 extern "C"
18022 #endif
18023 /* We use char because int might match the return type of a gcc2
18024 builtin and then its argument prototype would still apply. */
18025 char strftime ();
18027 main ()
18029 strftime ();
18031 return 0;
18033 _ACEOF
18034 rm -f conftest.$ac_objext conftest$ac_exeext
18035 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18036 (eval $ac_link) 2>conftest.er1
18037 ac_status=$?
18038 grep -v '^ *+' conftest.er1 >conftest.err
18039 rm -f conftest.er1
18040 cat conftest.err >&5
18041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18042 (exit $ac_status); } &&
18043 { ac_try='test -z "$ac_c_werror_flag"
18044 || test ! -s conftest.err'
18045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18046 (eval $ac_try) 2>&5
18047 ac_status=$?
18048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18049 (exit $ac_status); }; } &&
18050 { ac_try='test -s conftest$ac_exeext'
18051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18052 (eval $ac_try) 2>&5
18053 ac_status=$?
18054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18055 (exit $ac_status); }; }; then
18056 ac_cv_lib_intl_strftime=yes
18057 else
18058 echo "$as_me: failed program was:" >&5
18059 sed 's/^/| /' conftest.$ac_ext >&5
18061 ac_cv_lib_intl_strftime=no
18063 rm -f conftest.err conftest.$ac_objext \
18064 conftest$ac_exeext conftest.$ac_ext
18065 LIBS=$ac_check_lib_save_LIBS
18067 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
18068 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
18069 if test $ac_cv_lib_intl_strftime = yes; then
18070 cat >>confdefs.h <<\_ACEOF
18071 #define HAVE_STRFTIME 1
18072 _ACEOF
18074 LIBS="-lintl $LIBS"
18078 done
18081 # UNIX98 PTYs.
18083 for ac_func in grantpt
18085 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18086 echo "$as_me:$LINENO: checking for $ac_func" >&5
18087 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18088 if eval "test \"\${$as_ac_var+set}\" = set"; then
18089 echo $ECHO_N "(cached) $ECHO_C" >&6
18090 else
18091 cat >conftest.$ac_ext <<_ACEOF
18092 /* confdefs.h. */
18093 _ACEOF
18094 cat confdefs.h >>conftest.$ac_ext
18095 cat >>conftest.$ac_ext <<_ACEOF
18096 /* end confdefs.h. */
18097 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18098 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18099 #define $ac_func innocuous_$ac_func
18101 /* System header to define __stub macros and hopefully few prototypes,
18102 which can conflict with char $ac_func (); below.
18103 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18104 <limits.h> exists even on freestanding compilers. */
18106 #ifdef __STDC__
18107 # include <limits.h>
18108 #else
18109 # include <assert.h>
18110 #endif
18112 #undef $ac_func
18114 /* Override any gcc2 internal prototype to avoid an error. */
18115 #ifdef __cplusplus
18116 extern "C"
18118 #endif
18119 /* We use char because int might match the return type of a gcc2
18120 builtin and then its argument prototype would still apply. */
18121 char $ac_func ();
18122 /* The GNU C library defines this for functions which it implements
18123 to always fail with ENOSYS. Some functions are actually named
18124 something starting with __ and the normal name is an alias. */
18125 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18126 choke me
18127 #else
18128 char (*f) () = $ac_func;
18129 #endif
18130 #ifdef __cplusplus
18132 #endif
18135 main ()
18137 return f != $ac_func;
18139 return 0;
18141 _ACEOF
18142 rm -f conftest.$ac_objext conftest$ac_exeext
18143 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18144 (eval $ac_link) 2>conftest.er1
18145 ac_status=$?
18146 grep -v '^ *+' conftest.er1 >conftest.err
18147 rm -f conftest.er1
18148 cat conftest.err >&5
18149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18150 (exit $ac_status); } &&
18151 { ac_try='test -z "$ac_c_werror_flag"
18152 || test ! -s conftest.err'
18153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18154 (eval $ac_try) 2>&5
18155 ac_status=$?
18156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18157 (exit $ac_status); }; } &&
18158 { ac_try='test -s conftest$ac_exeext'
18159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18160 (eval $ac_try) 2>&5
18161 ac_status=$?
18162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18163 (exit $ac_status); }; }; then
18164 eval "$as_ac_var=yes"
18165 else
18166 echo "$as_me: failed program was:" >&5
18167 sed 's/^/| /' conftest.$ac_ext >&5
18169 eval "$as_ac_var=no"
18171 rm -f conftest.err conftest.$ac_objext \
18172 conftest$ac_exeext conftest.$ac_ext
18174 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18175 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18176 if test `eval echo '${'$as_ac_var'}'` = yes; then
18177 cat >>confdefs.h <<_ACEOF
18178 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18179 _ACEOF
18182 done
18185 # PTY-related GNU extensions.
18187 for ac_func in getpt
18189 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18190 echo "$as_me:$LINENO: checking for $ac_func" >&5
18191 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18192 if eval "test \"\${$as_ac_var+set}\" = set"; then
18193 echo $ECHO_N "(cached) $ECHO_C" >&6
18194 else
18195 cat >conftest.$ac_ext <<_ACEOF
18196 /* confdefs.h. */
18197 _ACEOF
18198 cat confdefs.h >>conftest.$ac_ext
18199 cat >>conftest.$ac_ext <<_ACEOF
18200 /* end confdefs.h. */
18201 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18202 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18203 #define $ac_func innocuous_$ac_func
18205 /* System header to define __stub macros and hopefully few prototypes,
18206 which can conflict with char $ac_func (); below.
18207 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18208 <limits.h> exists even on freestanding compilers. */
18210 #ifdef __STDC__
18211 # include <limits.h>
18212 #else
18213 # include <assert.h>
18214 #endif
18216 #undef $ac_func
18218 /* Override any gcc2 internal prototype to avoid an error. */
18219 #ifdef __cplusplus
18220 extern "C"
18222 #endif
18223 /* We use char because int might match the return type of a gcc2
18224 builtin and then its argument prototype would still apply. */
18225 char $ac_func ();
18226 /* The GNU C library defines this for functions which it implements
18227 to always fail with ENOSYS. Some functions are actually named
18228 something starting with __ and the normal name is an alias. */
18229 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18230 choke me
18231 #else
18232 char (*f) () = $ac_func;
18233 #endif
18234 #ifdef __cplusplus
18236 #endif
18239 main ()
18241 return f != $ac_func;
18243 return 0;
18245 _ACEOF
18246 rm -f conftest.$ac_objext conftest$ac_exeext
18247 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18248 (eval $ac_link) 2>conftest.er1
18249 ac_status=$?
18250 grep -v '^ *+' conftest.er1 >conftest.err
18251 rm -f conftest.er1
18252 cat conftest.err >&5
18253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18254 (exit $ac_status); } &&
18255 { ac_try='test -z "$ac_c_werror_flag"
18256 || test ! -s conftest.err'
18257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18258 (eval $ac_try) 2>&5
18259 ac_status=$?
18260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18261 (exit $ac_status); }; } &&
18262 { ac_try='test -s conftest$ac_exeext'
18263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18264 (eval $ac_try) 2>&5
18265 ac_status=$?
18266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18267 (exit $ac_status); }; }; then
18268 eval "$as_ac_var=yes"
18269 else
18270 echo "$as_me: failed program was:" >&5
18271 sed 's/^/| /' conftest.$ac_ext >&5
18273 eval "$as_ac_var=no"
18275 rm -f conftest.err conftest.$ac_objext \
18276 conftest$ac_exeext conftest.$ac_ext
18278 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18279 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18280 if test `eval echo '${'$as_ac_var'}'` = yes; then
18281 cat >>confdefs.h <<_ACEOF
18282 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18283 _ACEOF
18286 done
18289 # Check this now, so that we will NOT find the above functions in ncurses.
18290 # That is because we have not set up to link ncurses in lib-src.
18291 # It's better to believe a function is not available
18292 # than to expect to find it in ncurses.
18294 echo "$as_me:$LINENO: checking for tparm in -lncurses" >&5
18295 echo $ECHO_N "checking for tparm in -lncurses... $ECHO_C" >&6
18296 if test "${ac_cv_lib_ncurses_tparm+set}" = set; then
18297 echo $ECHO_N "(cached) $ECHO_C" >&6
18298 else
18299 ac_check_lib_save_LIBS=$LIBS
18300 LIBS="-lncurses $LIBS"
18301 cat >conftest.$ac_ext <<_ACEOF
18302 /* confdefs.h. */
18303 _ACEOF
18304 cat confdefs.h >>conftest.$ac_ext
18305 cat >>conftest.$ac_ext <<_ACEOF
18306 /* end confdefs.h. */
18308 /* Override any gcc2 internal prototype to avoid an error. */
18309 #ifdef __cplusplus
18310 extern "C"
18311 #endif
18312 /* We use char because int might match the return type of a gcc2
18313 builtin and then its argument prototype would still apply. */
18314 char tparm ();
18316 main ()
18318 tparm ();
18320 return 0;
18322 _ACEOF
18323 rm -f conftest.$ac_objext conftest$ac_exeext
18324 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18325 (eval $ac_link) 2>conftest.er1
18326 ac_status=$?
18327 grep -v '^ *+' conftest.er1 >conftest.err
18328 rm -f conftest.er1
18329 cat conftest.err >&5
18330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18331 (exit $ac_status); } &&
18332 { ac_try='test -z "$ac_c_werror_flag"
18333 || test ! -s conftest.err'
18334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18335 (eval $ac_try) 2>&5
18336 ac_status=$?
18337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18338 (exit $ac_status); }; } &&
18339 { ac_try='test -s conftest$ac_exeext'
18340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18341 (eval $ac_try) 2>&5
18342 ac_status=$?
18343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18344 (exit $ac_status); }; }; then
18345 ac_cv_lib_ncurses_tparm=yes
18346 else
18347 echo "$as_me: failed program was:" >&5
18348 sed 's/^/| /' conftest.$ac_ext >&5
18350 ac_cv_lib_ncurses_tparm=no
18352 rm -f conftest.err conftest.$ac_objext \
18353 conftest$ac_exeext conftest.$ac_ext
18354 LIBS=$ac_check_lib_save_LIBS
18356 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tparm" >&5
18357 echo "${ECHO_T}$ac_cv_lib_ncurses_tparm" >&6
18358 if test $ac_cv_lib_ncurses_tparm = yes; then
18359 cat >>confdefs.h <<_ACEOF
18360 #define HAVE_LIBNCURSES 1
18361 _ACEOF
18363 LIBS="-lncurses $LIBS"
18368 # Do we need the Hesiod library to provide the support routines?
18369 if test "$with_hesiod" = yes ; then
18370 # Don't set $LIBS here -- see comments above.
18371 resolv=no
18372 echo "$as_me:$LINENO: checking for res_send" >&5
18373 echo $ECHO_N "checking for res_send... $ECHO_C" >&6
18374 if test "${ac_cv_func_res_send+set}" = set; then
18375 echo $ECHO_N "(cached) $ECHO_C" >&6
18376 else
18377 cat >conftest.$ac_ext <<_ACEOF
18378 /* confdefs.h. */
18379 _ACEOF
18380 cat confdefs.h >>conftest.$ac_ext
18381 cat >>conftest.$ac_ext <<_ACEOF
18382 /* end confdefs.h. */
18383 /* Define res_send to an innocuous variant, in case <limits.h> declares res_send.
18384 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18385 #define res_send innocuous_res_send
18387 /* System header to define __stub macros and hopefully few prototypes,
18388 which can conflict with char res_send (); below.
18389 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18390 <limits.h> exists even on freestanding compilers. */
18392 #ifdef __STDC__
18393 # include <limits.h>
18394 #else
18395 # include <assert.h>
18396 #endif
18398 #undef res_send
18400 /* Override any gcc2 internal prototype to avoid an error. */
18401 #ifdef __cplusplus
18402 extern "C"
18404 #endif
18405 /* We use char because int might match the return type of a gcc2
18406 builtin and then its argument prototype would still apply. */
18407 char res_send ();
18408 /* The GNU C library defines this for functions which it implements
18409 to always fail with ENOSYS. Some functions are actually named
18410 something starting with __ and the normal name is an alias. */
18411 #if defined (__stub_res_send) || defined (__stub___res_send)
18412 choke me
18413 #else
18414 char (*f) () = res_send;
18415 #endif
18416 #ifdef __cplusplus
18418 #endif
18421 main ()
18423 return f != res_send;
18425 return 0;
18427 _ACEOF
18428 rm -f conftest.$ac_objext conftest$ac_exeext
18429 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18430 (eval $ac_link) 2>conftest.er1
18431 ac_status=$?
18432 grep -v '^ *+' conftest.er1 >conftest.err
18433 rm -f conftest.er1
18434 cat conftest.err >&5
18435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18436 (exit $ac_status); } &&
18437 { ac_try='test -z "$ac_c_werror_flag"
18438 || test ! -s conftest.err'
18439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18440 (eval $ac_try) 2>&5
18441 ac_status=$?
18442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18443 (exit $ac_status); }; } &&
18444 { ac_try='test -s conftest$ac_exeext'
18445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18446 (eval $ac_try) 2>&5
18447 ac_status=$?
18448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18449 (exit $ac_status); }; }; then
18450 ac_cv_func_res_send=yes
18451 else
18452 echo "$as_me: failed program was:" >&5
18453 sed 's/^/| /' conftest.$ac_ext >&5
18455 ac_cv_func_res_send=no
18457 rm -f conftest.err conftest.$ac_objext \
18458 conftest$ac_exeext conftest.$ac_ext
18460 echo "$as_me:$LINENO: result: $ac_cv_func_res_send" >&5
18461 echo "${ECHO_T}$ac_cv_func_res_send" >&6
18462 if test $ac_cv_func_res_send = yes; then
18464 else
18465 echo "$as_me:$LINENO: checking for __res_send" >&5
18466 echo $ECHO_N "checking for __res_send... $ECHO_C" >&6
18467 if test "${ac_cv_func___res_send+set}" = set; then
18468 echo $ECHO_N "(cached) $ECHO_C" >&6
18469 else
18470 cat >conftest.$ac_ext <<_ACEOF
18471 /* confdefs.h. */
18472 _ACEOF
18473 cat confdefs.h >>conftest.$ac_ext
18474 cat >>conftest.$ac_ext <<_ACEOF
18475 /* end confdefs.h. */
18476 /* Define __res_send to an innocuous variant, in case <limits.h> declares __res_send.
18477 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18478 #define __res_send innocuous___res_send
18480 /* System header to define __stub macros and hopefully few prototypes,
18481 which can conflict with char __res_send (); below.
18482 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18483 <limits.h> exists even on freestanding compilers. */
18485 #ifdef __STDC__
18486 # include <limits.h>
18487 #else
18488 # include <assert.h>
18489 #endif
18491 #undef __res_send
18493 /* Override any gcc2 internal prototype to avoid an error. */
18494 #ifdef __cplusplus
18495 extern "C"
18497 #endif
18498 /* We use char because int might match the return type of a gcc2
18499 builtin and then its argument prototype would still apply. */
18500 char __res_send ();
18501 /* The GNU C library defines this for functions which it implements
18502 to always fail with ENOSYS. Some functions are actually named
18503 something starting with __ and the normal name is an alias. */
18504 #if defined (__stub___res_send) || defined (__stub_____res_send)
18505 choke me
18506 #else
18507 char (*f) () = __res_send;
18508 #endif
18509 #ifdef __cplusplus
18511 #endif
18514 main ()
18516 return f != __res_send;
18518 return 0;
18520 _ACEOF
18521 rm -f conftest.$ac_objext conftest$ac_exeext
18522 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18523 (eval $ac_link) 2>conftest.er1
18524 ac_status=$?
18525 grep -v '^ *+' conftest.er1 >conftest.err
18526 rm -f conftest.er1
18527 cat conftest.err >&5
18528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18529 (exit $ac_status); } &&
18530 { ac_try='test -z "$ac_c_werror_flag"
18531 || test ! -s conftest.err'
18532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18533 (eval $ac_try) 2>&5
18534 ac_status=$?
18535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18536 (exit $ac_status); }; } &&
18537 { ac_try='test -s conftest$ac_exeext'
18538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18539 (eval $ac_try) 2>&5
18540 ac_status=$?
18541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18542 (exit $ac_status); }; }; then
18543 ac_cv_func___res_send=yes
18544 else
18545 echo "$as_me: failed program was:" >&5
18546 sed 's/^/| /' conftest.$ac_ext >&5
18548 ac_cv_func___res_send=no
18550 rm -f conftest.err conftest.$ac_objext \
18551 conftest$ac_exeext conftest.$ac_ext
18553 echo "$as_me:$LINENO: result: $ac_cv_func___res_send" >&5
18554 echo "${ECHO_T}$ac_cv_func___res_send" >&6
18555 if test $ac_cv_func___res_send = yes; then
18557 else
18558 echo "$as_me:$LINENO: checking for res_send in -lresolv" >&5
18559 echo $ECHO_N "checking for res_send in -lresolv... $ECHO_C" >&6
18560 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
18561 echo $ECHO_N "(cached) $ECHO_C" >&6
18562 else
18563 ac_check_lib_save_LIBS=$LIBS
18564 LIBS="-lresolv $LIBS"
18565 cat >conftest.$ac_ext <<_ACEOF
18566 /* confdefs.h. */
18567 _ACEOF
18568 cat confdefs.h >>conftest.$ac_ext
18569 cat >>conftest.$ac_ext <<_ACEOF
18570 /* end confdefs.h. */
18572 /* Override any gcc2 internal prototype to avoid an error. */
18573 #ifdef __cplusplus
18574 extern "C"
18575 #endif
18576 /* We use char because int might match the return type of a gcc2
18577 builtin and then its argument prototype would still apply. */
18578 char res_send ();
18580 main ()
18582 res_send ();
18584 return 0;
18586 _ACEOF
18587 rm -f conftest.$ac_objext conftest$ac_exeext
18588 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18589 (eval $ac_link) 2>conftest.er1
18590 ac_status=$?
18591 grep -v '^ *+' conftest.er1 >conftest.err
18592 rm -f conftest.er1
18593 cat conftest.err >&5
18594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18595 (exit $ac_status); } &&
18596 { ac_try='test -z "$ac_c_werror_flag"
18597 || test ! -s conftest.err'
18598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18599 (eval $ac_try) 2>&5
18600 ac_status=$?
18601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18602 (exit $ac_status); }; } &&
18603 { ac_try='test -s conftest$ac_exeext'
18604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18605 (eval $ac_try) 2>&5
18606 ac_status=$?
18607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18608 (exit $ac_status); }; }; then
18609 ac_cv_lib_resolv_res_send=yes
18610 else
18611 echo "$as_me: failed program was:" >&5
18612 sed 's/^/| /' conftest.$ac_ext >&5
18614 ac_cv_lib_resolv_res_send=no
18616 rm -f conftest.err conftest.$ac_objext \
18617 conftest$ac_exeext conftest.$ac_ext
18618 LIBS=$ac_check_lib_save_LIBS
18620 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_send" >&5
18621 echo "${ECHO_T}$ac_cv_lib_resolv_res_send" >&6
18622 if test $ac_cv_lib_resolv_res_send = yes; then
18623 resolv=yes
18624 else
18625 echo "$as_me:$LINENO: checking for __res_send in -lresolv" >&5
18626 echo $ECHO_N "checking for __res_send in -lresolv... $ECHO_C" >&6
18627 if test "${ac_cv_lib_resolv___res_send+set}" = set; then
18628 echo $ECHO_N "(cached) $ECHO_C" >&6
18629 else
18630 ac_check_lib_save_LIBS=$LIBS
18631 LIBS="-lresolv $LIBS"
18632 cat >conftest.$ac_ext <<_ACEOF
18633 /* confdefs.h. */
18634 _ACEOF
18635 cat confdefs.h >>conftest.$ac_ext
18636 cat >>conftest.$ac_ext <<_ACEOF
18637 /* end confdefs.h. */
18639 /* Override any gcc2 internal prototype to avoid an error. */
18640 #ifdef __cplusplus
18641 extern "C"
18642 #endif
18643 /* We use char because int might match the return type of a gcc2
18644 builtin and then its argument prototype would still apply. */
18645 char __res_send ();
18647 main ()
18649 __res_send ();
18651 return 0;
18653 _ACEOF
18654 rm -f conftest.$ac_objext conftest$ac_exeext
18655 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18656 (eval $ac_link) 2>conftest.er1
18657 ac_status=$?
18658 grep -v '^ *+' conftest.er1 >conftest.err
18659 rm -f conftest.er1
18660 cat conftest.err >&5
18661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18662 (exit $ac_status); } &&
18663 { ac_try='test -z "$ac_c_werror_flag"
18664 || test ! -s conftest.err'
18665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18666 (eval $ac_try) 2>&5
18667 ac_status=$?
18668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18669 (exit $ac_status); }; } &&
18670 { ac_try='test -s conftest$ac_exeext'
18671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18672 (eval $ac_try) 2>&5
18673 ac_status=$?
18674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18675 (exit $ac_status); }; }; then
18676 ac_cv_lib_resolv___res_send=yes
18677 else
18678 echo "$as_me: failed program was:" >&5
18679 sed 's/^/| /' conftest.$ac_ext >&5
18681 ac_cv_lib_resolv___res_send=no
18683 rm -f conftest.err conftest.$ac_objext \
18684 conftest$ac_exeext conftest.$ac_ext
18685 LIBS=$ac_check_lib_save_LIBS
18687 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv___res_send" >&5
18688 echo "${ECHO_T}$ac_cv_lib_resolv___res_send" >&6
18689 if test $ac_cv_lib_resolv___res_send = yes; then
18690 resolv=yes
18699 if test "$resolv" = yes ; then
18700 RESOLVLIB=-lresolv
18702 cat >>confdefs.h <<\_ACEOF
18703 #define HAVE_LIBRESOLV 1
18704 _ACEOF
18706 else
18707 RESOLVLIB=
18709 echo "$as_me:$LINENO: checking for hes_getmailhost" >&5
18710 echo $ECHO_N "checking for hes_getmailhost... $ECHO_C" >&6
18711 if test "${ac_cv_func_hes_getmailhost+set}" = set; then
18712 echo $ECHO_N "(cached) $ECHO_C" >&6
18713 else
18714 cat >conftest.$ac_ext <<_ACEOF
18715 /* confdefs.h. */
18716 _ACEOF
18717 cat confdefs.h >>conftest.$ac_ext
18718 cat >>conftest.$ac_ext <<_ACEOF
18719 /* end confdefs.h. */
18720 /* Define hes_getmailhost to an innocuous variant, in case <limits.h> declares hes_getmailhost.
18721 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18722 #define hes_getmailhost innocuous_hes_getmailhost
18724 /* System header to define __stub macros and hopefully few prototypes,
18725 which can conflict with char hes_getmailhost (); below.
18726 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18727 <limits.h> exists even on freestanding compilers. */
18729 #ifdef __STDC__
18730 # include <limits.h>
18731 #else
18732 # include <assert.h>
18733 #endif
18735 #undef hes_getmailhost
18737 /* Override any gcc2 internal prototype to avoid an error. */
18738 #ifdef __cplusplus
18739 extern "C"
18741 #endif
18742 /* We use char because int might match the return type of a gcc2
18743 builtin and then its argument prototype would still apply. */
18744 char hes_getmailhost ();
18745 /* The GNU C library defines this for functions which it implements
18746 to always fail with ENOSYS. Some functions are actually named
18747 something starting with __ and the normal name is an alias. */
18748 #if defined (__stub_hes_getmailhost) || defined (__stub___hes_getmailhost)
18749 choke me
18750 #else
18751 char (*f) () = hes_getmailhost;
18752 #endif
18753 #ifdef __cplusplus
18755 #endif
18758 main ()
18760 return f != hes_getmailhost;
18762 return 0;
18764 _ACEOF
18765 rm -f conftest.$ac_objext conftest$ac_exeext
18766 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18767 (eval $ac_link) 2>conftest.er1
18768 ac_status=$?
18769 grep -v '^ *+' conftest.er1 >conftest.err
18770 rm -f conftest.er1
18771 cat conftest.err >&5
18772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18773 (exit $ac_status); } &&
18774 { ac_try='test -z "$ac_c_werror_flag"
18775 || test ! -s conftest.err'
18776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18777 (eval $ac_try) 2>&5
18778 ac_status=$?
18779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18780 (exit $ac_status); }; } &&
18781 { ac_try='test -s conftest$ac_exeext'
18782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18783 (eval $ac_try) 2>&5
18784 ac_status=$?
18785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18786 (exit $ac_status); }; }; then
18787 ac_cv_func_hes_getmailhost=yes
18788 else
18789 echo "$as_me: failed program was:" >&5
18790 sed 's/^/| /' conftest.$ac_ext >&5
18792 ac_cv_func_hes_getmailhost=no
18794 rm -f conftest.err conftest.$ac_objext \
18795 conftest$ac_exeext conftest.$ac_ext
18797 echo "$as_me:$LINENO: result: $ac_cv_func_hes_getmailhost" >&5
18798 echo "${ECHO_T}$ac_cv_func_hes_getmailhost" >&6
18799 if test $ac_cv_func_hes_getmailhost = yes; then
18801 else
18802 echo "$as_me:$LINENO: checking for hes_getmailhost in -lhesiod" >&5
18803 echo $ECHO_N "checking for hes_getmailhost in -lhesiod... $ECHO_C" >&6
18804 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
18805 echo $ECHO_N "(cached) $ECHO_C" >&6
18806 else
18807 ac_check_lib_save_LIBS=$LIBS
18808 LIBS="-lhesiod $RESOLVLIB $LIBS"
18809 cat >conftest.$ac_ext <<_ACEOF
18810 /* confdefs.h. */
18811 _ACEOF
18812 cat confdefs.h >>conftest.$ac_ext
18813 cat >>conftest.$ac_ext <<_ACEOF
18814 /* end confdefs.h. */
18816 /* Override any gcc2 internal prototype to avoid an error. */
18817 #ifdef __cplusplus
18818 extern "C"
18819 #endif
18820 /* We use char because int might match the return type of a gcc2
18821 builtin and then its argument prototype would still apply. */
18822 char hes_getmailhost ();
18824 main ()
18826 hes_getmailhost ();
18828 return 0;
18830 _ACEOF
18831 rm -f conftest.$ac_objext conftest$ac_exeext
18832 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18833 (eval $ac_link) 2>conftest.er1
18834 ac_status=$?
18835 grep -v '^ *+' conftest.er1 >conftest.err
18836 rm -f conftest.er1
18837 cat conftest.err >&5
18838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18839 (exit $ac_status); } &&
18840 { ac_try='test -z "$ac_c_werror_flag"
18841 || test ! -s conftest.err'
18842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18843 (eval $ac_try) 2>&5
18844 ac_status=$?
18845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18846 (exit $ac_status); }; } &&
18847 { ac_try='test -s conftest$ac_exeext'
18848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18849 (eval $ac_try) 2>&5
18850 ac_status=$?
18851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18852 (exit $ac_status); }; }; then
18853 ac_cv_lib_hesiod_hes_getmailhost=yes
18854 else
18855 echo "$as_me: failed program was:" >&5
18856 sed 's/^/| /' conftest.$ac_ext >&5
18858 ac_cv_lib_hesiod_hes_getmailhost=no
18860 rm -f conftest.err conftest.$ac_objext \
18861 conftest$ac_exeext conftest.$ac_ext
18862 LIBS=$ac_check_lib_save_LIBS
18864 echo "$as_me:$LINENO: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
18865 echo "${ECHO_T}$ac_cv_lib_hesiod_hes_getmailhost" >&6
18866 if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then
18868 cat >>confdefs.h <<\_ACEOF
18869 #define HAVE_LIBHESIOD 1
18870 _ACEOF
18872 else
18880 # These tell us which Kerberos-related libraries to use.
18881 if test "${with_kerberos+set}" = set; then
18883 echo "$as_me:$LINENO: checking for com_err in -lcom_err" >&5
18884 echo $ECHO_N "checking for com_err in -lcom_err... $ECHO_C" >&6
18885 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
18886 echo $ECHO_N "(cached) $ECHO_C" >&6
18887 else
18888 ac_check_lib_save_LIBS=$LIBS
18889 LIBS="-lcom_err $LIBS"
18890 cat >conftest.$ac_ext <<_ACEOF
18891 /* confdefs.h. */
18892 _ACEOF
18893 cat confdefs.h >>conftest.$ac_ext
18894 cat >>conftest.$ac_ext <<_ACEOF
18895 /* end confdefs.h. */
18897 /* Override any gcc2 internal prototype to avoid an error. */
18898 #ifdef __cplusplus
18899 extern "C"
18900 #endif
18901 /* We use char because int might match the return type of a gcc2
18902 builtin and then its argument prototype would still apply. */
18903 char com_err ();
18905 main ()
18907 com_err ();
18909 return 0;
18911 _ACEOF
18912 rm -f conftest.$ac_objext conftest$ac_exeext
18913 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18914 (eval $ac_link) 2>conftest.er1
18915 ac_status=$?
18916 grep -v '^ *+' conftest.er1 >conftest.err
18917 rm -f conftest.er1
18918 cat conftest.err >&5
18919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18920 (exit $ac_status); } &&
18921 { ac_try='test -z "$ac_c_werror_flag"
18922 || test ! -s conftest.err'
18923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18924 (eval $ac_try) 2>&5
18925 ac_status=$?
18926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18927 (exit $ac_status); }; } &&
18928 { ac_try='test -s conftest$ac_exeext'
18929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18930 (eval $ac_try) 2>&5
18931 ac_status=$?
18932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18933 (exit $ac_status); }; }; then
18934 ac_cv_lib_com_err_com_err=yes
18935 else
18936 echo "$as_me: failed program was:" >&5
18937 sed 's/^/| /' conftest.$ac_ext >&5
18939 ac_cv_lib_com_err_com_err=no
18941 rm -f conftest.err conftest.$ac_objext \
18942 conftest$ac_exeext conftest.$ac_ext
18943 LIBS=$ac_check_lib_save_LIBS
18945 echo "$as_me:$LINENO: result: $ac_cv_lib_com_err_com_err" >&5
18946 echo "${ECHO_T}$ac_cv_lib_com_err_com_err" >&6
18947 if test $ac_cv_lib_com_err_com_err = yes; then
18948 cat >>confdefs.h <<_ACEOF
18949 #define HAVE_LIBCOM_ERR 1
18950 _ACEOF
18952 LIBS="-lcom_err $LIBS"
18957 echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
18958 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lk5crypto... $ECHO_C" >&6
18959 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
18960 echo $ECHO_N "(cached) $ECHO_C" >&6
18961 else
18962 ac_check_lib_save_LIBS=$LIBS
18963 LIBS="-lk5crypto $LIBS"
18964 cat >conftest.$ac_ext <<_ACEOF
18965 /* confdefs.h. */
18966 _ACEOF
18967 cat confdefs.h >>conftest.$ac_ext
18968 cat >>conftest.$ac_ext <<_ACEOF
18969 /* end confdefs.h. */
18971 /* Override any gcc2 internal prototype to avoid an error. */
18972 #ifdef __cplusplus
18973 extern "C"
18974 #endif
18975 /* We use char because int might match the return type of a gcc2
18976 builtin and then its argument prototype would still apply. */
18977 char mit_des_cbc_encrypt ();
18979 main ()
18981 mit_des_cbc_encrypt ();
18983 return 0;
18985 _ACEOF
18986 rm -f conftest.$ac_objext conftest$ac_exeext
18987 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18988 (eval $ac_link) 2>conftest.er1
18989 ac_status=$?
18990 grep -v '^ *+' conftest.er1 >conftest.err
18991 rm -f conftest.er1
18992 cat conftest.err >&5
18993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18994 (exit $ac_status); } &&
18995 { ac_try='test -z "$ac_c_werror_flag"
18996 || test ! -s conftest.err'
18997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18998 (eval $ac_try) 2>&5
18999 ac_status=$?
19000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19001 (exit $ac_status); }; } &&
19002 { ac_try='test -s conftest$ac_exeext'
19003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19004 (eval $ac_try) 2>&5
19005 ac_status=$?
19006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19007 (exit $ac_status); }; }; then
19008 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
19009 else
19010 echo "$as_me: failed program was:" >&5
19011 sed 's/^/| /' conftest.$ac_ext >&5
19013 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
19015 rm -f conftest.err conftest.$ac_objext \
19016 conftest$ac_exeext conftest.$ac_ext
19017 LIBS=$ac_check_lib_save_LIBS
19019 echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
19020 echo "${ECHO_T}$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6
19021 if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then
19022 cat >>confdefs.h <<_ACEOF
19023 #define HAVE_LIBK5CRYPTO 1
19024 _ACEOF
19026 LIBS="-lk5crypto $LIBS"
19031 echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lcrypto" >&5
19032 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lcrypto... $ECHO_C" >&6
19033 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
19034 echo $ECHO_N "(cached) $ECHO_C" >&6
19035 else
19036 ac_check_lib_save_LIBS=$LIBS
19037 LIBS="-lcrypto $LIBS"
19038 cat >conftest.$ac_ext <<_ACEOF
19039 /* confdefs.h. */
19040 _ACEOF
19041 cat confdefs.h >>conftest.$ac_ext
19042 cat >>conftest.$ac_ext <<_ACEOF
19043 /* end confdefs.h. */
19045 /* Override any gcc2 internal prototype to avoid an error. */
19046 #ifdef __cplusplus
19047 extern "C"
19048 #endif
19049 /* We use char because int might match the return type of a gcc2
19050 builtin and then its argument prototype would still apply. */
19051 char mit_des_cbc_encrypt ();
19053 main ()
19055 mit_des_cbc_encrypt ();
19057 return 0;
19059 _ACEOF
19060 rm -f conftest.$ac_objext conftest$ac_exeext
19061 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19062 (eval $ac_link) 2>conftest.er1
19063 ac_status=$?
19064 grep -v '^ *+' conftest.er1 >conftest.err
19065 rm -f conftest.er1
19066 cat conftest.err >&5
19067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19068 (exit $ac_status); } &&
19069 { ac_try='test -z "$ac_c_werror_flag"
19070 || test ! -s conftest.err'
19071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19072 (eval $ac_try) 2>&5
19073 ac_status=$?
19074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19075 (exit $ac_status); }; } &&
19076 { ac_try='test -s conftest$ac_exeext'
19077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19078 (eval $ac_try) 2>&5
19079 ac_status=$?
19080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19081 (exit $ac_status); }; }; then
19082 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
19083 else
19084 echo "$as_me: failed program was:" >&5
19085 sed 's/^/| /' conftest.$ac_ext >&5
19087 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
19089 rm -f conftest.err conftest.$ac_objext \
19090 conftest$ac_exeext conftest.$ac_ext
19091 LIBS=$ac_check_lib_save_LIBS
19093 echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
19094 echo "${ECHO_T}$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6
19095 if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then
19096 cat >>confdefs.h <<_ACEOF
19097 #define HAVE_LIBCRYPTO 1
19098 _ACEOF
19100 LIBS="-lcrypto $LIBS"
19105 echo "$as_me:$LINENO: checking for krb5_init_context in -lkrb5" >&5
19106 echo $ECHO_N "checking for krb5_init_context in -lkrb5... $ECHO_C" >&6
19107 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
19108 echo $ECHO_N "(cached) $ECHO_C" >&6
19109 else
19110 ac_check_lib_save_LIBS=$LIBS
19111 LIBS="-lkrb5 $LIBS"
19112 cat >conftest.$ac_ext <<_ACEOF
19113 /* confdefs.h. */
19114 _ACEOF
19115 cat confdefs.h >>conftest.$ac_ext
19116 cat >>conftest.$ac_ext <<_ACEOF
19117 /* end confdefs.h. */
19119 /* Override any gcc2 internal prototype to avoid an error. */
19120 #ifdef __cplusplus
19121 extern "C"
19122 #endif
19123 /* We use char because int might match the return type of a gcc2
19124 builtin and then its argument prototype would still apply. */
19125 char krb5_init_context ();
19127 main ()
19129 krb5_init_context ();
19131 return 0;
19133 _ACEOF
19134 rm -f conftest.$ac_objext conftest$ac_exeext
19135 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19136 (eval $ac_link) 2>conftest.er1
19137 ac_status=$?
19138 grep -v '^ *+' conftest.er1 >conftest.err
19139 rm -f conftest.er1
19140 cat conftest.err >&5
19141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19142 (exit $ac_status); } &&
19143 { ac_try='test -z "$ac_c_werror_flag"
19144 || test ! -s conftest.err'
19145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19146 (eval $ac_try) 2>&5
19147 ac_status=$?
19148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19149 (exit $ac_status); }; } &&
19150 { ac_try='test -s conftest$ac_exeext'
19151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19152 (eval $ac_try) 2>&5
19153 ac_status=$?
19154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19155 (exit $ac_status); }; }; then
19156 ac_cv_lib_krb5_krb5_init_context=yes
19157 else
19158 echo "$as_me: failed program was:" >&5
19159 sed 's/^/| /' conftest.$ac_ext >&5
19161 ac_cv_lib_krb5_krb5_init_context=no
19163 rm -f conftest.err conftest.$ac_objext \
19164 conftest$ac_exeext conftest.$ac_ext
19165 LIBS=$ac_check_lib_save_LIBS
19167 echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_krb5_init_context" >&5
19168 echo "${ECHO_T}$ac_cv_lib_krb5_krb5_init_context" >&6
19169 if test $ac_cv_lib_krb5_krb5_init_context = yes; then
19170 cat >>confdefs.h <<_ACEOF
19171 #define HAVE_LIBKRB5 1
19172 _ACEOF
19174 LIBS="-lkrb5 $LIBS"
19178 if test "${with_kerberos5+set}" != set; then
19180 echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes425" >&5
19181 echo $ECHO_N "checking for des_cbc_encrypt in -ldes425... $ECHO_C" >&6
19182 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
19183 echo $ECHO_N "(cached) $ECHO_C" >&6
19184 else
19185 ac_check_lib_save_LIBS=$LIBS
19186 LIBS="-ldes425 $LIBS"
19187 cat >conftest.$ac_ext <<_ACEOF
19188 /* confdefs.h. */
19189 _ACEOF
19190 cat confdefs.h >>conftest.$ac_ext
19191 cat >>conftest.$ac_ext <<_ACEOF
19192 /* end confdefs.h. */
19194 /* Override any gcc2 internal prototype to avoid an error. */
19195 #ifdef __cplusplus
19196 extern "C"
19197 #endif
19198 /* We use char because int might match the return type of a gcc2
19199 builtin and then its argument prototype would still apply. */
19200 char des_cbc_encrypt ();
19202 main ()
19204 des_cbc_encrypt ();
19206 return 0;
19208 _ACEOF
19209 rm -f conftest.$ac_objext conftest$ac_exeext
19210 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19211 (eval $ac_link) 2>conftest.er1
19212 ac_status=$?
19213 grep -v '^ *+' conftest.er1 >conftest.err
19214 rm -f conftest.er1
19215 cat conftest.err >&5
19216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19217 (exit $ac_status); } &&
19218 { ac_try='test -z "$ac_c_werror_flag"
19219 || test ! -s conftest.err'
19220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19221 (eval $ac_try) 2>&5
19222 ac_status=$?
19223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19224 (exit $ac_status); }; } &&
19225 { ac_try='test -s conftest$ac_exeext'
19226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19227 (eval $ac_try) 2>&5
19228 ac_status=$?
19229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19230 (exit $ac_status); }; }; then
19231 ac_cv_lib_des425_des_cbc_encrypt=yes
19232 else
19233 echo "$as_me: failed program was:" >&5
19234 sed 's/^/| /' conftest.$ac_ext >&5
19236 ac_cv_lib_des425_des_cbc_encrypt=no
19238 rm -f conftest.err conftest.$ac_objext \
19239 conftest$ac_exeext conftest.$ac_ext
19240 LIBS=$ac_check_lib_save_LIBS
19242 echo "$as_me:$LINENO: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
19243 echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6
19244 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
19245 cat >>confdefs.h <<_ACEOF
19246 #define HAVE_LIBDES425 1
19247 _ACEOF
19249 LIBS="-ldes425 $LIBS"
19251 else
19253 echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes" >&5
19254 echo $ECHO_N "checking for des_cbc_encrypt in -ldes... $ECHO_C" >&6
19255 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
19256 echo $ECHO_N "(cached) $ECHO_C" >&6
19257 else
19258 ac_check_lib_save_LIBS=$LIBS
19259 LIBS="-ldes $LIBS"
19260 cat >conftest.$ac_ext <<_ACEOF
19261 /* confdefs.h. */
19262 _ACEOF
19263 cat confdefs.h >>conftest.$ac_ext
19264 cat >>conftest.$ac_ext <<_ACEOF
19265 /* end confdefs.h. */
19267 /* Override any gcc2 internal prototype to avoid an error. */
19268 #ifdef __cplusplus
19269 extern "C"
19270 #endif
19271 /* We use char because int might match the return type of a gcc2
19272 builtin and then its argument prototype would still apply. */
19273 char des_cbc_encrypt ();
19275 main ()
19277 des_cbc_encrypt ();
19279 return 0;
19281 _ACEOF
19282 rm -f conftest.$ac_objext conftest$ac_exeext
19283 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19284 (eval $ac_link) 2>conftest.er1
19285 ac_status=$?
19286 grep -v '^ *+' conftest.er1 >conftest.err
19287 rm -f conftest.er1
19288 cat conftest.err >&5
19289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19290 (exit $ac_status); } &&
19291 { ac_try='test -z "$ac_c_werror_flag"
19292 || test ! -s conftest.err'
19293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19294 (eval $ac_try) 2>&5
19295 ac_status=$?
19296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19297 (exit $ac_status); }; } &&
19298 { ac_try='test -s conftest$ac_exeext'
19299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19300 (eval $ac_try) 2>&5
19301 ac_status=$?
19302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19303 (exit $ac_status); }; }; then
19304 ac_cv_lib_des_des_cbc_encrypt=yes
19305 else
19306 echo "$as_me: failed program was:" >&5
19307 sed 's/^/| /' conftest.$ac_ext >&5
19309 ac_cv_lib_des_des_cbc_encrypt=no
19311 rm -f conftest.err conftest.$ac_objext \
19312 conftest$ac_exeext conftest.$ac_ext
19313 LIBS=$ac_check_lib_save_LIBS
19315 echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
19316 echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6
19317 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
19318 cat >>confdefs.h <<_ACEOF
19319 #define HAVE_LIBDES 1
19320 _ACEOF
19322 LIBS="-ldes $LIBS"
19329 echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb4" >&5
19330 echo $ECHO_N "checking for krb_get_cred in -lkrb4... $ECHO_C" >&6
19331 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
19332 echo $ECHO_N "(cached) $ECHO_C" >&6
19333 else
19334 ac_check_lib_save_LIBS=$LIBS
19335 LIBS="-lkrb4 $LIBS"
19336 cat >conftest.$ac_ext <<_ACEOF
19337 /* confdefs.h. */
19338 _ACEOF
19339 cat confdefs.h >>conftest.$ac_ext
19340 cat >>conftest.$ac_ext <<_ACEOF
19341 /* end confdefs.h. */
19343 /* Override any gcc2 internal prototype to avoid an error. */
19344 #ifdef __cplusplus
19345 extern "C"
19346 #endif
19347 /* We use char because int might match the return type of a gcc2
19348 builtin and then its argument prototype would still apply. */
19349 char krb_get_cred ();
19351 main ()
19353 krb_get_cred ();
19355 return 0;
19357 _ACEOF
19358 rm -f conftest.$ac_objext conftest$ac_exeext
19359 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19360 (eval $ac_link) 2>conftest.er1
19361 ac_status=$?
19362 grep -v '^ *+' conftest.er1 >conftest.err
19363 rm -f conftest.er1
19364 cat conftest.err >&5
19365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19366 (exit $ac_status); } &&
19367 { ac_try='test -z "$ac_c_werror_flag"
19368 || test ! -s conftest.err'
19369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19370 (eval $ac_try) 2>&5
19371 ac_status=$?
19372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19373 (exit $ac_status); }; } &&
19374 { ac_try='test -s conftest$ac_exeext'
19375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19376 (eval $ac_try) 2>&5
19377 ac_status=$?
19378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19379 (exit $ac_status); }; }; then
19380 ac_cv_lib_krb4_krb_get_cred=yes
19381 else
19382 echo "$as_me: failed program was:" >&5
19383 sed 's/^/| /' conftest.$ac_ext >&5
19385 ac_cv_lib_krb4_krb_get_cred=no
19387 rm -f conftest.err conftest.$ac_objext \
19388 conftest$ac_exeext conftest.$ac_ext
19389 LIBS=$ac_check_lib_save_LIBS
19391 echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_krb_get_cred" >&5
19392 echo "${ECHO_T}$ac_cv_lib_krb4_krb_get_cred" >&6
19393 if test $ac_cv_lib_krb4_krb_get_cred = yes; then
19394 cat >>confdefs.h <<_ACEOF
19395 #define HAVE_LIBKRB4 1
19396 _ACEOF
19398 LIBS="-lkrb4 $LIBS"
19400 else
19402 echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb" >&5
19403 echo $ECHO_N "checking for krb_get_cred in -lkrb... $ECHO_C" >&6
19404 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
19405 echo $ECHO_N "(cached) $ECHO_C" >&6
19406 else
19407 ac_check_lib_save_LIBS=$LIBS
19408 LIBS="-lkrb $LIBS"
19409 cat >conftest.$ac_ext <<_ACEOF
19410 /* confdefs.h. */
19411 _ACEOF
19412 cat confdefs.h >>conftest.$ac_ext
19413 cat >>conftest.$ac_ext <<_ACEOF
19414 /* end confdefs.h. */
19416 /* Override any gcc2 internal prototype to avoid an error. */
19417 #ifdef __cplusplus
19418 extern "C"
19419 #endif
19420 /* We use char because int might match the return type of a gcc2
19421 builtin and then its argument prototype would still apply. */
19422 char krb_get_cred ();
19424 main ()
19426 krb_get_cred ();
19428 return 0;
19430 _ACEOF
19431 rm -f conftest.$ac_objext conftest$ac_exeext
19432 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19433 (eval $ac_link) 2>conftest.er1
19434 ac_status=$?
19435 grep -v '^ *+' conftest.er1 >conftest.err
19436 rm -f conftest.er1
19437 cat conftest.err >&5
19438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19439 (exit $ac_status); } &&
19440 { ac_try='test -z "$ac_c_werror_flag"
19441 || test ! -s conftest.err'
19442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19443 (eval $ac_try) 2>&5
19444 ac_status=$?
19445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19446 (exit $ac_status); }; } &&
19447 { ac_try='test -s conftest$ac_exeext'
19448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19449 (eval $ac_try) 2>&5
19450 ac_status=$?
19451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19452 (exit $ac_status); }; }; then
19453 ac_cv_lib_krb_krb_get_cred=yes
19454 else
19455 echo "$as_me: failed program was:" >&5
19456 sed 's/^/| /' conftest.$ac_ext >&5
19458 ac_cv_lib_krb_krb_get_cred=no
19460 rm -f conftest.err conftest.$ac_objext \
19461 conftest$ac_exeext conftest.$ac_ext
19462 LIBS=$ac_check_lib_save_LIBS
19464 echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_get_cred" >&5
19465 echo "${ECHO_T}$ac_cv_lib_krb_krb_get_cred" >&6
19466 if test $ac_cv_lib_krb_krb_get_cred = yes; then
19467 cat >>confdefs.h <<_ACEOF
19468 #define HAVE_LIBKRB 1
19469 _ACEOF
19471 LIBS="-lkrb $LIBS"
19479 if test "${with_kerberos5+set}" = set; then
19481 for ac_header in krb5.h
19483 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19484 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19485 echo "$as_me:$LINENO: checking for $ac_header" >&5
19486 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19487 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19488 echo $ECHO_N "(cached) $ECHO_C" >&6
19490 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19491 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19492 else
19493 # Is the header compilable?
19494 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19495 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19496 cat >conftest.$ac_ext <<_ACEOF
19497 /* confdefs.h. */
19498 _ACEOF
19499 cat confdefs.h >>conftest.$ac_ext
19500 cat >>conftest.$ac_ext <<_ACEOF
19501 /* end confdefs.h. */
19502 $ac_includes_default
19503 #include <$ac_header>
19504 _ACEOF
19505 rm -f conftest.$ac_objext
19506 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19507 (eval $ac_compile) 2>conftest.er1
19508 ac_status=$?
19509 grep -v '^ *+' conftest.er1 >conftest.err
19510 rm -f conftest.er1
19511 cat conftest.err >&5
19512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19513 (exit $ac_status); } &&
19514 { ac_try='test -z "$ac_c_werror_flag"
19515 || test ! -s conftest.err'
19516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19517 (eval $ac_try) 2>&5
19518 ac_status=$?
19519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19520 (exit $ac_status); }; } &&
19521 { ac_try='test -s conftest.$ac_objext'
19522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19523 (eval $ac_try) 2>&5
19524 ac_status=$?
19525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19526 (exit $ac_status); }; }; then
19527 ac_header_compiler=yes
19528 else
19529 echo "$as_me: failed program was:" >&5
19530 sed 's/^/| /' conftest.$ac_ext >&5
19532 ac_header_compiler=no
19534 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19535 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19536 echo "${ECHO_T}$ac_header_compiler" >&6
19538 # Is the header present?
19539 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19540 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19541 cat >conftest.$ac_ext <<_ACEOF
19542 /* confdefs.h. */
19543 _ACEOF
19544 cat confdefs.h >>conftest.$ac_ext
19545 cat >>conftest.$ac_ext <<_ACEOF
19546 /* end confdefs.h. */
19547 #include <$ac_header>
19548 _ACEOF
19549 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19550 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19551 ac_status=$?
19552 grep -v '^ *+' conftest.er1 >conftest.err
19553 rm -f conftest.er1
19554 cat conftest.err >&5
19555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19556 (exit $ac_status); } >/dev/null; then
19557 if test -s conftest.err; then
19558 ac_cpp_err=$ac_c_preproc_warn_flag
19559 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19560 else
19561 ac_cpp_err=
19563 else
19564 ac_cpp_err=yes
19566 if test -z "$ac_cpp_err"; then
19567 ac_header_preproc=yes
19568 else
19569 echo "$as_me: failed program was:" >&5
19570 sed 's/^/| /' conftest.$ac_ext >&5
19572 ac_header_preproc=no
19574 rm -f conftest.err conftest.$ac_ext
19575 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19576 echo "${ECHO_T}$ac_header_preproc" >&6
19578 # So? What about this header?
19579 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19580 yes:no: )
19581 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19582 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19583 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19584 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19585 ac_header_preproc=yes
19587 no:yes:* )
19588 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19589 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19590 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19591 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19592 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19593 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19594 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19595 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19596 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19597 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19598 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19599 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19601 cat <<\_ASBOX
19602 ## ------------------------------------------ ##
19603 ## Report this to the AC_PACKAGE_NAME lists. ##
19604 ## ------------------------------------------ ##
19605 _ASBOX
19607 sed "s/^/$as_me: WARNING: /" >&2
19609 esac
19610 echo "$as_me:$LINENO: checking for $ac_header" >&5
19611 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19612 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19613 echo $ECHO_N "(cached) $ECHO_C" >&6
19614 else
19615 eval "$as_ac_Header=\$ac_header_preproc"
19617 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19618 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19621 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19622 cat >>confdefs.h <<_ACEOF
19623 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19624 _ACEOF
19628 done
19630 else
19632 for ac_header in des.h
19634 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19635 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19636 echo "$as_me:$LINENO: checking for $ac_header" >&5
19637 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19638 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19639 echo $ECHO_N "(cached) $ECHO_C" >&6
19641 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19642 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19643 else
19644 # Is the header compilable?
19645 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19646 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19647 cat >conftest.$ac_ext <<_ACEOF
19648 /* confdefs.h. */
19649 _ACEOF
19650 cat confdefs.h >>conftest.$ac_ext
19651 cat >>conftest.$ac_ext <<_ACEOF
19652 /* end confdefs.h. */
19653 $ac_includes_default
19654 #include <$ac_header>
19655 _ACEOF
19656 rm -f conftest.$ac_objext
19657 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19658 (eval $ac_compile) 2>conftest.er1
19659 ac_status=$?
19660 grep -v '^ *+' conftest.er1 >conftest.err
19661 rm -f conftest.er1
19662 cat conftest.err >&5
19663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19664 (exit $ac_status); } &&
19665 { ac_try='test -z "$ac_c_werror_flag"
19666 || test ! -s conftest.err'
19667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19668 (eval $ac_try) 2>&5
19669 ac_status=$?
19670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19671 (exit $ac_status); }; } &&
19672 { ac_try='test -s conftest.$ac_objext'
19673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19674 (eval $ac_try) 2>&5
19675 ac_status=$?
19676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19677 (exit $ac_status); }; }; then
19678 ac_header_compiler=yes
19679 else
19680 echo "$as_me: failed program was:" >&5
19681 sed 's/^/| /' conftest.$ac_ext >&5
19683 ac_header_compiler=no
19685 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19686 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19687 echo "${ECHO_T}$ac_header_compiler" >&6
19689 # Is the header present?
19690 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19691 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19692 cat >conftest.$ac_ext <<_ACEOF
19693 /* confdefs.h. */
19694 _ACEOF
19695 cat confdefs.h >>conftest.$ac_ext
19696 cat >>conftest.$ac_ext <<_ACEOF
19697 /* end confdefs.h. */
19698 #include <$ac_header>
19699 _ACEOF
19700 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19701 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19702 ac_status=$?
19703 grep -v '^ *+' conftest.er1 >conftest.err
19704 rm -f conftest.er1
19705 cat conftest.err >&5
19706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19707 (exit $ac_status); } >/dev/null; then
19708 if test -s conftest.err; then
19709 ac_cpp_err=$ac_c_preproc_warn_flag
19710 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19711 else
19712 ac_cpp_err=
19714 else
19715 ac_cpp_err=yes
19717 if test -z "$ac_cpp_err"; then
19718 ac_header_preproc=yes
19719 else
19720 echo "$as_me: failed program was:" >&5
19721 sed 's/^/| /' conftest.$ac_ext >&5
19723 ac_header_preproc=no
19725 rm -f conftest.err conftest.$ac_ext
19726 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19727 echo "${ECHO_T}$ac_header_preproc" >&6
19729 # So? What about this header?
19730 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19731 yes:no: )
19732 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19733 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19734 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19735 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19736 ac_header_preproc=yes
19738 no:yes:* )
19739 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19740 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19741 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19742 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19743 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19744 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19745 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19746 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19747 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19748 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19749 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19750 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19752 cat <<\_ASBOX
19753 ## ------------------------------------------ ##
19754 ## Report this to the AC_PACKAGE_NAME lists. ##
19755 ## ------------------------------------------ ##
19756 _ASBOX
19758 sed "s/^/$as_me: WARNING: /" >&2
19760 esac
19761 echo "$as_me:$LINENO: checking for $ac_header" >&5
19762 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19763 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19764 echo $ECHO_N "(cached) $ECHO_C" >&6
19765 else
19766 eval "$as_ac_Header=\$ac_header_preproc"
19768 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19769 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19772 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19773 cat >>confdefs.h <<_ACEOF
19774 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19775 _ACEOF
19777 else
19779 for ac_header in kerberosIV/des.h
19781 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19782 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19783 echo "$as_me:$LINENO: checking for $ac_header" >&5
19784 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19785 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19786 echo $ECHO_N "(cached) $ECHO_C" >&6
19788 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19789 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19790 else
19791 # Is the header compilable?
19792 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19793 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19794 cat >conftest.$ac_ext <<_ACEOF
19795 /* confdefs.h. */
19796 _ACEOF
19797 cat confdefs.h >>conftest.$ac_ext
19798 cat >>conftest.$ac_ext <<_ACEOF
19799 /* end confdefs.h. */
19800 $ac_includes_default
19801 #include <$ac_header>
19802 _ACEOF
19803 rm -f conftest.$ac_objext
19804 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19805 (eval $ac_compile) 2>conftest.er1
19806 ac_status=$?
19807 grep -v '^ *+' conftest.er1 >conftest.err
19808 rm -f conftest.er1
19809 cat conftest.err >&5
19810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19811 (exit $ac_status); } &&
19812 { ac_try='test -z "$ac_c_werror_flag"
19813 || test ! -s conftest.err'
19814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19815 (eval $ac_try) 2>&5
19816 ac_status=$?
19817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19818 (exit $ac_status); }; } &&
19819 { ac_try='test -s conftest.$ac_objext'
19820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19821 (eval $ac_try) 2>&5
19822 ac_status=$?
19823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19824 (exit $ac_status); }; }; then
19825 ac_header_compiler=yes
19826 else
19827 echo "$as_me: failed program was:" >&5
19828 sed 's/^/| /' conftest.$ac_ext >&5
19830 ac_header_compiler=no
19832 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19833 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19834 echo "${ECHO_T}$ac_header_compiler" >&6
19836 # Is the header present?
19837 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19838 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19839 cat >conftest.$ac_ext <<_ACEOF
19840 /* confdefs.h. */
19841 _ACEOF
19842 cat confdefs.h >>conftest.$ac_ext
19843 cat >>conftest.$ac_ext <<_ACEOF
19844 /* end confdefs.h. */
19845 #include <$ac_header>
19846 _ACEOF
19847 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19848 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19849 ac_status=$?
19850 grep -v '^ *+' conftest.er1 >conftest.err
19851 rm -f conftest.er1
19852 cat conftest.err >&5
19853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19854 (exit $ac_status); } >/dev/null; then
19855 if test -s conftest.err; then
19856 ac_cpp_err=$ac_c_preproc_warn_flag
19857 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19858 else
19859 ac_cpp_err=
19861 else
19862 ac_cpp_err=yes
19864 if test -z "$ac_cpp_err"; then
19865 ac_header_preproc=yes
19866 else
19867 echo "$as_me: failed program was:" >&5
19868 sed 's/^/| /' conftest.$ac_ext >&5
19870 ac_header_preproc=no
19872 rm -f conftest.err conftest.$ac_ext
19873 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19874 echo "${ECHO_T}$ac_header_preproc" >&6
19876 # So? What about this header?
19877 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19878 yes:no: )
19879 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19880 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19881 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19882 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19883 ac_header_preproc=yes
19885 no:yes:* )
19886 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19887 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19888 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19889 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19890 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19891 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19892 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19893 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19894 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19895 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19896 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19897 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19899 cat <<\_ASBOX
19900 ## ------------------------------------------ ##
19901 ## Report this to the AC_PACKAGE_NAME lists. ##
19902 ## ------------------------------------------ ##
19903 _ASBOX
19905 sed "s/^/$as_me: WARNING: /" >&2
19907 esac
19908 echo "$as_me:$LINENO: checking for $ac_header" >&5
19909 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19910 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19911 echo $ECHO_N "(cached) $ECHO_C" >&6
19912 else
19913 eval "$as_ac_Header=\$ac_header_preproc"
19915 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19916 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19919 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19920 cat >>confdefs.h <<_ACEOF
19921 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19922 _ACEOF
19924 else
19926 for ac_header in kerberos/des.h
19928 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19929 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19930 echo "$as_me:$LINENO: checking for $ac_header" >&5
19931 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19932 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19933 echo $ECHO_N "(cached) $ECHO_C" >&6
19935 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19936 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19937 else
19938 # Is the header compilable?
19939 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19940 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19941 cat >conftest.$ac_ext <<_ACEOF
19942 /* confdefs.h. */
19943 _ACEOF
19944 cat confdefs.h >>conftest.$ac_ext
19945 cat >>conftest.$ac_ext <<_ACEOF
19946 /* end confdefs.h. */
19947 $ac_includes_default
19948 #include <$ac_header>
19949 _ACEOF
19950 rm -f conftest.$ac_objext
19951 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19952 (eval $ac_compile) 2>conftest.er1
19953 ac_status=$?
19954 grep -v '^ *+' conftest.er1 >conftest.err
19955 rm -f conftest.er1
19956 cat conftest.err >&5
19957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19958 (exit $ac_status); } &&
19959 { ac_try='test -z "$ac_c_werror_flag"
19960 || test ! -s conftest.err'
19961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19962 (eval $ac_try) 2>&5
19963 ac_status=$?
19964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19965 (exit $ac_status); }; } &&
19966 { ac_try='test -s conftest.$ac_objext'
19967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19968 (eval $ac_try) 2>&5
19969 ac_status=$?
19970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19971 (exit $ac_status); }; }; then
19972 ac_header_compiler=yes
19973 else
19974 echo "$as_me: failed program was:" >&5
19975 sed 's/^/| /' conftest.$ac_ext >&5
19977 ac_header_compiler=no
19979 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19980 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19981 echo "${ECHO_T}$ac_header_compiler" >&6
19983 # Is the header present?
19984 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19985 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19986 cat >conftest.$ac_ext <<_ACEOF
19987 /* confdefs.h. */
19988 _ACEOF
19989 cat confdefs.h >>conftest.$ac_ext
19990 cat >>conftest.$ac_ext <<_ACEOF
19991 /* end confdefs.h. */
19992 #include <$ac_header>
19993 _ACEOF
19994 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19995 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19996 ac_status=$?
19997 grep -v '^ *+' conftest.er1 >conftest.err
19998 rm -f conftest.er1
19999 cat conftest.err >&5
20000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20001 (exit $ac_status); } >/dev/null; then
20002 if test -s conftest.err; then
20003 ac_cpp_err=$ac_c_preproc_warn_flag
20004 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20005 else
20006 ac_cpp_err=
20008 else
20009 ac_cpp_err=yes
20011 if test -z "$ac_cpp_err"; then
20012 ac_header_preproc=yes
20013 else
20014 echo "$as_me: failed program was:" >&5
20015 sed 's/^/| /' conftest.$ac_ext >&5
20017 ac_header_preproc=no
20019 rm -f conftest.err conftest.$ac_ext
20020 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20021 echo "${ECHO_T}$ac_header_preproc" >&6
20023 # So? What about this header?
20024 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20025 yes:no: )
20026 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20027 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20028 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20029 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20030 ac_header_preproc=yes
20032 no:yes:* )
20033 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20034 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20035 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20036 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20037 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20038 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20039 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20040 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20041 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20042 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20043 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20044 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20046 cat <<\_ASBOX
20047 ## ------------------------------------------ ##
20048 ## Report this to the AC_PACKAGE_NAME lists. ##
20049 ## ------------------------------------------ ##
20050 _ASBOX
20052 sed "s/^/$as_me: WARNING: /" >&2
20054 esac
20055 echo "$as_me:$LINENO: checking for $ac_header" >&5
20056 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20057 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20058 echo $ECHO_N "(cached) $ECHO_C" >&6
20059 else
20060 eval "$as_ac_Header=\$ac_header_preproc"
20062 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20063 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20066 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20067 cat >>confdefs.h <<_ACEOF
20068 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20069 _ACEOF
20073 done
20077 done
20081 done
20084 for ac_header in krb.h
20086 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20087 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20088 echo "$as_me:$LINENO: checking for $ac_header" >&5
20089 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20090 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20091 echo $ECHO_N "(cached) $ECHO_C" >&6
20093 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20094 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20095 else
20096 # Is the header compilable?
20097 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20098 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20099 cat >conftest.$ac_ext <<_ACEOF
20100 /* confdefs.h. */
20101 _ACEOF
20102 cat confdefs.h >>conftest.$ac_ext
20103 cat >>conftest.$ac_ext <<_ACEOF
20104 /* end confdefs.h. */
20105 $ac_includes_default
20106 #include <$ac_header>
20107 _ACEOF
20108 rm -f conftest.$ac_objext
20109 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20110 (eval $ac_compile) 2>conftest.er1
20111 ac_status=$?
20112 grep -v '^ *+' conftest.er1 >conftest.err
20113 rm -f conftest.er1
20114 cat conftest.err >&5
20115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20116 (exit $ac_status); } &&
20117 { ac_try='test -z "$ac_c_werror_flag"
20118 || test ! -s conftest.err'
20119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20120 (eval $ac_try) 2>&5
20121 ac_status=$?
20122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20123 (exit $ac_status); }; } &&
20124 { ac_try='test -s conftest.$ac_objext'
20125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20126 (eval $ac_try) 2>&5
20127 ac_status=$?
20128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20129 (exit $ac_status); }; }; then
20130 ac_header_compiler=yes
20131 else
20132 echo "$as_me: failed program was:" >&5
20133 sed 's/^/| /' conftest.$ac_ext >&5
20135 ac_header_compiler=no
20137 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20138 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20139 echo "${ECHO_T}$ac_header_compiler" >&6
20141 # Is the header present?
20142 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20143 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20144 cat >conftest.$ac_ext <<_ACEOF
20145 /* confdefs.h. */
20146 _ACEOF
20147 cat confdefs.h >>conftest.$ac_ext
20148 cat >>conftest.$ac_ext <<_ACEOF
20149 /* end confdefs.h. */
20150 #include <$ac_header>
20151 _ACEOF
20152 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20153 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20154 ac_status=$?
20155 grep -v '^ *+' conftest.er1 >conftest.err
20156 rm -f conftest.er1
20157 cat conftest.err >&5
20158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20159 (exit $ac_status); } >/dev/null; then
20160 if test -s conftest.err; then
20161 ac_cpp_err=$ac_c_preproc_warn_flag
20162 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20163 else
20164 ac_cpp_err=
20166 else
20167 ac_cpp_err=yes
20169 if test -z "$ac_cpp_err"; then
20170 ac_header_preproc=yes
20171 else
20172 echo "$as_me: failed program was:" >&5
20173 sed 's/^/| /' conftest.$ac_ext >&5
20175 ac_header_preproc=no
20177 rm -f conftest.err conftest.$ac_ext
20178 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20179 echo "${ECHO_T}$ac_header_preproc" >&6
20181 # So? What about this header?
20182 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20183 yes:no: )
20184 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20185 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20186 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20187 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20188 ac_header_preproc=yes
20190 no:yes:* )
20191 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20192 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20193 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20194 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20195 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20196 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20197 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20198 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20199 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20200 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20201 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20202 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20204 cat <<\_ASBOX
20205 ## ------------------------------------------ ##
20206 ## Report this to the AC_PACKAGE_NAME lists. ##
20207 ## ------------------------------------------ ##
20208 _ASBOX
20210 sed "s/^/$as_me: WARNING: /" >&2
20212 esac
20213 echo "$as_me:$LINENO: checking for $ac_header" >&5
20214 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20215 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20216 echo $ECHO_N "(cached) $ECHO_C" >&6
20217 else
20218 eval "$as_ac_Header=\$ac_header_preproc"
20220 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20221 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20224 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20225 cat >>confdefs.h <<_ACEOF
20226 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20227 _ACEOF
20229 else
20231 for ac_header in kerberosIV/krb.h
20233 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20234 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20235 echo "$as_me:$LINENO: checking for $ac_header" >&5
20236 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20237 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20238 echo $ECHO_N "(cached) $ECHO_C" >&6
20240 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20241 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20242 else
20243 # Is the header compilable?
20244 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20245 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20246 cat >conftest.$ac_ext <<_ACEOF
20247 /* confdefs.h. */
20248 _ACEOF
20249 cat confdefs.h >>conftest.$ac_ext
20250 cat >>conftest.$ac_ext <<_ACEOF
20251 /* end confdefs.h. */
20252 $ac_includes_default
20253 #include <$ac_header>
20254 _ACEOF
20255 rm -f conftest.$ac_objext
20256 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20257 (eval $ac_compile) 2>conftest.er1
20258 ac_status=$?
20259 grep -v '^ *+' conftest.er1 >conftest.err
20260 rm -f conftest.er1
20261 cat conftest.err >&5
20262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20263 (exit $ac_status); } &&
20264 { ac_try='test -z "$ac_c_werror_flag"
20265 || test ! -s conftest.err'
20266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20267 (eval $ac_try) 2>&5
20268 ac_status=$?
20269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20270 (exit $ac_status); }; } &&
20271 { ac_try='test -s conftest.$ac_objext'
20272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20273 (eval $ac_try) 2>&5
20274 ac_status=$?
20275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20276 (exit $ac_status); }; }; then
20277 ac_header_compiler=yes
20278 else
20279 echo "$as_me: failed program was:" >&5
20280 sed 's/^/| /' conftest.$ac_ext >&5
20282 ac_header_compiler=no
20284 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20285 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20286 echo "${ECHO_T}$ac_header_compiler" >&6
20288 # Is the header present?
20289 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20290 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20291 cat >conftest.$ac_ext <<_ACEOF
20292 /* confdefs.h. */
20293 _ACEOF
20294 cat confdefs.h >>conftest.$ac_ext
20295 cat >>conftest.$ac_ext <<_ACEOF
20296 /* end confdefs.h. */
20297 #include <$ac_header>
20298 _ACEOF
20299 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20300 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20301 ac_status=$?
20302 grep -v '^ *+' conftest.er1 >conftest.err
20303 rm -f conftest.er1
20304 cat conftest.err >&5
20305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20306 (exit $ac_status); } >/dev/null; then
20307 if test -s conftest.err; then
20308 ac_cpp_err=$ac_c_preproc_warn_flag
20309 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20310 else
20311 ac_cpp_err=
20313 else
20314 ac_cpp_err=yes
20316 if test -z "$ac_cpp_err"; then
20317 ac_header_preproc=yes
20318 else
20319 echo "$as_me: failed program was:" >&5
20320 sed 's/^/| /' conftest.$ac_ext >&5
20322 ac_header_preproc=no
20324 rm -f conftest.err conftest.$ac_ext
20325 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20326 echo "${ECHO_T}$ac_header_preproc" >&6
20328 # So? What about this header?
20329 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20330 yes:no: )
20331 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20332 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20333 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20334 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20335 ac_header_preproc=yes
20337 no:yes:* )
20338 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20339 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20340 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20341 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20342 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20343 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20344 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20345 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20346 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20347 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20348 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20349 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20351 cat <<\_ASBOX
20352 ## ------------------------------------------ ##
20353 ## Report this to the AC_PACKAGE_NAME lists. ##
20354 ## ------------------------------------------ ##
20355 _ASBOX
20357 sed "s/^/$as_me: WARNING: /" >&2
20359 esac
20360 echo "$as_me:$LINENO: checking for $ac_header" >&5
20361 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20362 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20363 echo $ECHO_N "(cached) $ECHO_C" >&6
20364 else
20365 eval "$as_ac_Header=\$ac_header_preproc"
20367 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20368 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20371 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20372 cat >>confdefs.h <<_ACEOF
20373 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20374 _ACEOF
20376 else
20378 for ac_header in kerberos/krb.h
20380 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20381 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20382 echo "$as_me:$LINENO: checking for $ac_header" >&5
20383 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20384 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20385 echo $ECHO_N "(cached) $ECHO_C" >&6
20387 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20388 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20389 else
20390 # Is the header compilable?
20391 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20392 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20393 cat >conftest.$ac_ext <<_ACEOF
20394 /* confdefs.h. */
20395 _ACEOF
20396 cat confdefs.h >>conftest.$ac_ext
20397 cat >>conftest.$ac_ext <<_ACEOF
20398 /* end confdefs.h. */
20399 $ac_includes_default
20400 #include <$ac_header>
20401 _ACEOF
20402 rm -f conftest.$ac_objext
20403 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20404 (eval $ac_compile) 2>conftest.er1
20405 ac_status=$?
20406 grep -v '^ *+' conftest.er1 >conftest.err
20407 rm -f conftest.er1
20408 cat conftest.err >&5
20409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20410 (exit $ac_status); } &&
20411 { ac_try='test -z "$ac_c_werror_flag"
20412 || test ! -s conftest.err'
20413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20414 (eval $ac_try) 2>&5
20415 ac_status=$?
20416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20417 (exit $ac_status); }; } &&
20418 { ac_try='test -s conftest.$ac_objext'
20419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20420 (eval $ac_try) 2>&5
20421 ac_status=$?
20422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20423 (exit $ac_status); }; }; then
20424 ac_header_compiler=yes
20425 else
20426 echo "$as_me: failed program was:" >&5
20427 sed 's/^/| /' conftest.$ac_ext >&5
20429 ac_header_compiler=no
20431 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20432 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20433 echo "${ECHO_T}$ac_header_compiler" >&6
20435 # Is the header present?
20436 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20437 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20438 cat >conftest.$ac_ext <<_ACEOF
20439 /* confdefs.h. */
20440 _ACEOF
20441 cat confdefs.h >>conftest.$ac_ext
20442 cat >>conftest.$ac_ext <<_ACEOF
20443 /* end confdefs.h. */
20444 #include <$ac_header>
20445 _ACEOF
20446 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20447 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20448 ac_status=$?
20449 grep -v '^ *+' conftest.er1 >conftest.err
20450 rm -f conftest.er1
20451 cat conftest.err >&5
20452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20453 (exit $ac_status); } >/dev/null; then
20454 if test -s conftest.err; then
20455 ac_cpp_err=$ac_c_preproc_warn_flag
20456 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20457 else
20458 ac_cpp_err=
20460 else
20461 ac_cpp_err=yes
20463 if test -z "$ac_cpp_err"; then
20464 ac_header_preproc=yes
20465 else
20466 echo "$as_me: failed program was:" >&5
20467 sed 's/^/| /' conftest.$ac_ext >&5
20469 ac_header_preproc=no
20471 rm -f conftest.err conftest.$ac_ext
20472 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20473 echo "${ECHO_T}$ac_header_preproc" >&6
20475 # So? What about this header?
20476 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20477 yes:no: )
20478 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20479 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20480 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20481 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20482 ac_header_preproc=yes
20484 no:yes:* )
20485 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20486 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20487 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20488 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20489 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20490 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20491 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20492 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20493 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20494 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20495 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20496 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20498 cat <<\_ASBOX
20499 ## ------------------------------------------ ##
20500 ## Report this to the AC_PACKAGE_NAME lists. ##
20501 ## ------------------------------------------ ##
20502 _ASBOX
20504 sed "s/^/$as_me: WARNING: /" >&2
20506 esac
20507 echo "$as_me:$LINENO: checking for $ac_header" >&5
20508 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20509 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20510 echo $ECHO_N "(cached) $ECHO_C" >&6
20511 else
20512 eval "$as_ac_Header=\$ac_header_preproc"
20514 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20515 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20518 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20519 cat >>confdefs.h <<_ACEOF
20520 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20521 _ACEOF
20525 done
20529 done
20533 done
20537 for ac_header in com_err.h
20539 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20540 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20541 echo "$as_me:$LINENO: checking for $ac_header" >&5
20542 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20543 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20544 echo $ECHO_N "(cached) $ECHO_C" >&6
20546 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20547 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20548 else
20549 # Is the header compilable?
20550 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20551 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20552 cat >conftest.$ac_ext <<_ACEOF
20553 /* confdefs.h. */
20554 _ACEOF
20555 cat confdefs.h >>conftest.$ac_ext
20556 cat >>conftest.$ac_ext <<_ACEOF
20557 /* end confdefs.h. */
20558 $ac_includes_default
20559 #include <$ac_header>
20560 _ACEOF
20561 rm -f conftest.$ac_objext
20562 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20563 (eval $ac_compile) 2>conftest.er1
20564 ac_status=$?
20565 grep -v '^ *+' conftest.er1 >conftest.err
20566 rm -f conftest.er1
20567 cat conftest.err >&5
20568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20569 (exit $ac_status); } &&
20570 { ac_try='test -z "$ac_c_werror_flag"
20571 || test ! -s conftest.err'
20572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20573 (eval $ac_try) 2>&5
20574 ac_status=$?
20575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20576 (exit $ac_status); }; } &&
20577 { ac_try='test -s conftest.$ac_objext'
20578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20579 (eval $ac_try) 2>&5
20580 ac_status=$?
20581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20582 (exit $ac_status); }; }; then
20583 ac_header_compiler=yes
20584 else
20585 echo "$as_me: failed program was:" >&5
20586 sed 's/^/| /' conftest.$ac_ext >&5
20588 ac_header_compiler=no
20590 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20591 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20592 echo "${ECHO_T}$ac_header_compiler" >&6
20594 # Is the header present?
20595 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20596 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20597 cat >conftest.$ac_ext <<_ACEOF
20598 /* confdefs.h. */
20599 _ACEOF
20600 cat confdefs.h >>conftest.$ac_ext
20601 cat >>conftest.$ac_ext <<_ACEOF
20602 /* end confdefs.h. */
20603 #include <$ac_header>
20604 _ACEOF
20605 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20606 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20607 ac_status=$?
20608 grep -v '^ *+' conftest.er1 >conftest.err
20609 rm -f conftest.er1
20610 cat conftest.err >&5
20611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20612 (exit $ac_status); } >/dev/null; then
20613 if test -s conftest.err; then
20614 ac_cpp_err=$ac_c_preproc_warn_flag
20615 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20616 else
20617 ac_cpp_err=
20619 else
20620 ac_cpp_err=yes
20622 if test -z "$ac_cpp_err"; then
20623 ac_header_preproc=yes
20624 else
20625 echo "$as_me: failed program was:" >&5
20626 sed 's/^/| /' conftest.$ac_ext >&5
20628 ac_header_preproc=no
20630 rm -f conftest.err conftest.$ac_ext
20631 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20632 echo "${ECHO_T}$ac_header_preproc" >&6
20634 # So? What about this header?
20635 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20636 yes:no: )
20637 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20638 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20639 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20640 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20641 ac_header_preproc=yes
20643 no:yes:* )
20644 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20645 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20646 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20647 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20648 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20649 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20650 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20651 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20652 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20653 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20654 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20655 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20657 cat <<\_ASBOX
20658 ## ------------------------------------------ ##
20659 ## Report this to the AC_PACKAGE_NAME lists. ##
20660 ## ------------------------------------------ ##
20661 _ASBOX
20663 sed "s/^/$as_me: WARNING: /" >&2
20665 esac
20666 echo "$as_me:$LINENO: checking for $ac_header" >&5
20667 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20668 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20669 echo $ECHO_N "(cached) $ECHO_C" >&6
20670 else
20671 eval "$as_ac_Header=\$ac_header_preproc"
20673 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20674 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20677 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20678 cat >>confdefs.h <<_ACEOF
20679 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20680 _ACEOF
20684 done
20688 # Solaris requires -lintl if you want strerror (which calls dgettext)
20689 # to return localized messages.
20691 echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
20692 echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6
20693 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
20694 echo $ECHO_N "(cached) $ECHO_C" >&6
20695 else
20696 ac_check_lib_save_LIBS=$LIBS
20697 LIBS="-lintl $LIBS"
20698 cat >conftest.$ac_ext <<_ACEOF
20699 /* confdefs.h. */
20700 _ACEOF
20701 cat confdefs.h >>conftest.$ac_ext
20702 cat >>conftest.$ac_ext <<_ACEOF
20703 /* end confdefs.h. */
20705 /* Override any gcc2 internal prototype to avoid an error. */
20706 #ifdef __cplusplus
20707 extern "C"
20708 #endif
20709 /* We use char because int might match the return type of a gcc2
20710 builtin and then its argument prototype would still apply. */
20711 char dgettext ();
20713 main ()
20715 dgettext ();
20717 return 0;
20719 _ACEOF
20720 rm -f conftest.$ac_objext conftest$ac_exeext
20721 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20722 (eval $ac_link) 2>conftest.er1
20723 ac_status=$?
20724 grep -v '^ *+' conftest.er1 >conftest.err
20725 rm -f conftest.er1
20726 cat conftest.err >&5
20727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20728 (exit $ac_status); } &&
20729 { ac_try='test -z "$ac_c_werror_flag"
20730 || test ! -s conftest.err'
20731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20732 (eval $ac_try) 2>&5
20733 ac_status=$?
20734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20735 (exit $ac_status); }; } &&
20736 { ac_try='test -s conftest$ac_exeext'
20737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20738 (eval $ac_try) 2>&5
20739 ac_status=$?
20740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20741 (exit $ac_status); }; }; then
20742 ac_cv_lib_intl_dgettext=yes
20743 else
20744 echo "$as_me: failed program was:" >&5
20745 sed 's/^/| /' conftest.$ac_ext >&5
20747 ac_cv_lib_intl_dgettext=no
20749 rm -f conftest.err conftest.$ac_objext \
20750 conftest$ac_exeext conftest.$ac_ext
20751 LIBS=$ac_check_lib_save_LIBS
20753 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
20754 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6
20755 if test $ac_cv_lib_intl_dgettext = yes; then
20756 cat >>confdefs.h <<_ACEOF
20757 #define HAVE_LIBINTL 1
20758 _ACEOF
20760 LIBS="-lintl $LIBS"
20765 echo "$as_me:$LINENO: checking whether localtime caches TZ" >&5
20766 echo $ECHO_N "checking whether localtime caches TZ... $ECHO_C" >&6
20767 if test "${emacs_cv_localtime_cache+set}" = set; then
20768 echo $ECHO_N "(cached) $ECHO_C" >&6
20769 else
20770 if test x$ac_cv_func_tzset = xyes; then
20771 if test "$cross_compiling" = yes; then
20772 # If we have tzset, assume the worst when cross-compiling.
20773 emacs_cv_localtime_cache=yes
20774 else
20775 cat >conftest.$ac_ext <<_ACEOF
20776 /* confdefs.h. */
20777 _ACEOF
20778 cat confdefs.h >>conftest.$ac_ext
20779 cat >>conftest.$ac_ext <<_ACEOF
20780 /* end confdefs.h. */
20781 #include <time.h>
20782 extern char **environ;
20783 unset_TZ ()
20785 char **from, **to;
20786 for (to = from = environ; (*to = *from); from++)
20787 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
20788 to++;
20790 char TZ_GMT0[] = "TZ=GMT0";
20791 char TZ_PST8[] = "TZ=PST8";
20792 main()
20794 time_t now = time ((time_t *) 0);
20795 int hour_GMT0, hour_unset;
20796 if (putenv (TZ_GMT0) != 0)
20797 exit (1);
20798 hour_GMT0 = localtime (&now)->tm_hour;
20799 unset_TZ ();
20800 hour_unset = localtime (&now)->tm_hour;
20801 if (putenv (TZ_PST8) != 0)
20802 exit (1);
20803 if (localtime (&now)->tm_hour == hour_GMT0)
20804 exit (1);
20805 unset_TZ ();
20806 if (localtime (&now)->tm_hour != hour_unset)
20807 exit (1);
20808 exit (0);
20810 _ACEOF
20811 rm -f conftest$ac_exeext
20812 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20813 (eval $ac_link) 2>&5
20814 ac_status=$?
20815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20816 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20818 (eval $ac_try) 2>&5
20819 ac_status=$?
20820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20821 (exit $ac_status); }; }; then
20822 emacs_cv_localtime_cache=no
20823 else
20824 echo "$as_me: program exited with status $ac_status" >&5
20825 echo "$as_me: failed program was:" >&5
20826 sed 's/^/| /' conftest.$ac_ext >&5
20828 ( exit $ac_status )
20829 emacs_cv_localtime_cache=yes
20831 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20833 else
20834 # If we lack tzset, report that localtime does not cache TZ,
20835 # since we can't invalidate the cache if we don't have tzset.
20836 emacs_cv_localtime_cache=no
20839 echo "$as_me:$LINENO: result: $emacs_cv_localtime_cache" >&5
20840 echo "${ECHO_T}$emacs_cv_localtime_cache" >&6
20841 if test $emacs_cv_localtime_cache = yes; then
20843 cat >>confdefs.h <<\_ACEOF
20844 #define LOCALTIME_CACHE 1
20845 _ACEOF
20849 if test "x$HAVE_TIMEVAL" = xyes; then
20851 for ac_func in gettimeofday
20853 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20854 echo "$as_me:$LINENO: checking for $ac_func" >&5
20855 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20856 if eval "test \"\${$as_ac_var+set}\" = set"; then
20857 echo $ECHO_N "(cached) $ECHO_C" >&6
20858 else
20859 cat >conftest.$ac_ext <<_ACEOF
20860 /* confdefs.h. */
20861 _ACEOF
20862 cat confdefs.h >>conftest.$ac_ext
20863 cat >>conftest.$ac_ext <<_ACEOF
20864 /* end confdefs.h. */
20865 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20866 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20867 #define $ac_func innocuous_$ac_func
20869 /* System header to define __stub macros and hopefully few prototypes,
20870 which can conflict with char $ac_func (); below.
20871 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20872 <limits.h> exists even on freestanding compilers. */
20874 #ifdef __STDC__
20875 # include <limits.h>
20876 #else
20877 # include <assert.h>
20878 #endif
20880 #undef $ac_func
20882 /* Override any gcc2 internal prototype to avoid an error. */
20883 #ifdef __cplusplus
20884 extern "C"
20886 #endif
20887 /* We use char because int might match the return type of a gcc2
20888 builtin and then its argument prototype would still apply. */
20889 char $ac_func ();
20890 /* The GNU C library defines this for functions which it implements
20891 to always fail with ENOSYS. Some functions are actually named
20892 something starting with __ and the normal name is an alias. */
20893 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20894 choke me
20895 #else
20896 char (*f) () = $ac_func;
20897 #endif
20898 #ifdef __cplusplus
20900 #endif
20903 main ()
20905 return f != $ac_func;
20907 return 0;
20909 _ACEOF
20910 rm -f conftest.$ac_objext conftest$ac_exeext
20911 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20912 (eval $ac_link) 2>conftest.er1
20913 ac_status=$?
20914 grep -v '^ *+' conftest.er1 >conftest.err
20915 rm -f conftest.er1
20916 cat conftest.err >&5
20917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20918 (exit $ac_status); } &&
20919 { ac_try='test -z "$ac_c_werror_flag"
20920 || test ! -s conftest.err'
20921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20922 (eval $ac_try) 2>&5
20923 ac_status=$?
20924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20925 (exit $ac_status); }; } &&
20926 { ac_try='test -s conftest$ac_exeext'
20927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20928 (eval $ac_try) 2>&5
20929 ac_status=$?
20930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20931 (exit $ac_status); }; }; then
20932 eval "$as_ac_var=yes"
20933 else
20934 echo "$as_me: failed program was:" >&5
20935 sed 's/^/| /' conftest.$ac_ext >&5
20937 eval "$as_ac_var=no"
20939 rm -f conftest.err conftest.$ac_objext \
20940 conftest$ac_exeext conftest.$ac_ext
20942 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20943 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20944 if test `eval echo '${'$as_ac_var'}'` = yes; then
20945 cat >>confdefs.h <<_ACEOF
20946 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20947 _ACEOF
20950 done
20952 if test $ac_cv_func_gettimeofday = yes; then
20953 echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments" >&5
20954 echo $ECHO_N "checking whether gettimeofday can accept two arguments... $ECHO_C" >&6
20955 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
20956 echo $ECHO_N "(cached) $ECHO_C" >&6
20957 else
20958 cat >conftest.$ac_ext <<_ACEOF
20959 /* confdefs.h. */
20960 _ACEOF
20961 cat confdefs.h >>conftest.$ac_ext
20962 cat >>conftest.$ac_ext <<_ACEOF
20963 /* end confdefs.h. */
20965 #ifdef TIME_WITH_SYS_TIME
20966 #include <sys/time.h>
20967 #include <time.h>
20968 #else
20969 #ifdef HAVE_SYS_TIME_H
20970 #include <sys/time.h>
20971 #else
20972 #include <time.h>
20973 #endif
20974 #endif
20976 main ()
20978 struct timeval time;
20979 gettimeofday (&time, 0);
20981 return 0;
20983 _ACEOF
20984 rm -f conftest.$ac_objext
20985 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20986 (eval $ac_compile) 2>conftest.er1
20987 ac_status=$?
20988 grep -v '^ *+' conftest.er1 >conftest.err
20989 rm -f conftest.er1
20990 cat conftest.err >&5
20991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20992 (exit $ac_status); } &&
20993 { ac_try='test -z "$ac_c_werror_flag"
20994 || test ! -s conftest.err'
20995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20996 (eval $ac_try) 2>&5
20997 ac_status=$?
20998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20999 (exit $ac_status); }; } &&
21000 { ac_try='test -s conftest.$ac_objext'
21001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21002 (eval $ac_try) 2>&5
21003 ac_status=$?
21004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21005 (exit $ac_status); }; }; then
21006 emacs_cv_gettimeofday_two_arguments=yes
21007 else
21008 echo "$as_me: failed program was:" >&5
21009 sed 's/^/| /' conftest.$ac_ext >&5
21011 emacs_cv_gettimeofday_two_arguments=no
21013 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21015 echo "$as_me:$LINENO: result: $emacs_cv_gettimeofday_two_arguments" >&5
21016 echo "${ECHO_T}$emacs_cv_gettimeofday_two_arguments" >&6
21017 if test $emacs_cv_gettimeofday_two_arguments = no; then
21019 cat >>confdefs.h <<\_ACEOF
21020 #define GETTIMEOFDAY_ONE_ARGUMENT 1
21021 _ACEOF
21027 ok_so_far=yes
21028 echo "$as_me:$LINENO: checking for socket" >&5
21029 echo $ECHO_N "checking for socket... $ECHO_C" >&6
21030 if test "${ac_cv_func_socket+set}" = set; then
21031 echo $ECHO_N "(cached) $ECHO_C" >&6
21032 else
21033 cat >conftest.$ac_ext <<_ACEOF
21034 /* confdefs.h. */
21035 _ACEOF
21036 cat confdefs.h >>conftest.$ac_ext
21037 cat >>conftest.$ac_ext <<_ACEOF
21038 /* end confdefs.h. */
21039 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
21040 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21041 #define socket innocuous_socket
21043 /* System header to define __stub macros and hopefully few prototypes,
21044 which can conflict with char socket (); below.
21045 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21046 <limits.h> exists even on freestanding compilers. */
21048 #ifdef __STDC__
21049 # include <limits.h>
21050 #else
21051 # include <assert.h>
21052 #endif
21054 #undef socket
21056 /* Override any gcc2 internal prototype to avoid an error. */
21057 #ifdef __cplusplus
21058 extern "C"
21060 #endif
21061 /* We use char because int might match the return type of a gcc2
21062 builtin and then its argument prototype would still apply. */
21063 char socket ();
21064 /* The GNU C library defines this for functions which it implements
21065 to always fail with ENOSYS. Some functions are actually named
21066 something starting with __ and the normal name is an alias. */
21067 #if defined (__stub_socket) || defined (__stub___socket)
21068 choke me
21069 #else
21070 char (*f) () = socket;
21071 #endif
21072 #ifdef __cplusplus
21074 #endif
21077 main ()
21079 return f != socket;
21081 return 0;
21083 _ACEOF
21084 rm -f conftest.$ac_objext conftest$ac_exeext
21085 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21086 (eval $ac_link) 2>conftest.er1
21087 ac_status=$?
21088 grep -v '^ *+' conftest.er1 >conftest.err
21089 rm -f conftest.er1
21090 cat conftest.err >&5
21091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21092 (exit $ac_status); } &&
21093 { ac_try='test -z "$ac_c_werror_flag"
21094 || test ! -s conftest.err'
21095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21096 (eval $ac_try) 2>&5
21097 ac_status=$?
21098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21099 (exit $ac_status); }; } &&
21100 { ac_try='test -s conftest$ac_exeext'
21101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21102 (eval $ac_try) 2>&5
21103 ac_status=$?
21104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21105 (exit $ac_status); }; }; then
21106 ac_cv_func_socket=yes
21107 else
21108 echo "$as_me: failed program was:" >&5
21109 sed 's/^/| /' conftest.$ac_ext >&5
21111 ac_cv_func_socket=no
21113 rm -f conftest.err conftest.$ac_objext \
21114 conftest$ac_exeext conftest.$ac_ext
21116 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
21117 echo "${ECHO_T}$ac_cv_func_socket" >&6
21118 if test $ac_cv_func_socket = yes; then
21120 else
21121 ok_so_far=no
21124 if test $ok_so_far = yes; then
21125 if test "${ac_cv_header_netinet_in_h+set}" = set; then
21126 echo "$as_me:$LINENO: checking for netinet/in.h" >&5
21127 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6
21128 if test "${ac_cv_header_netinet_in_h+set}" = set; then
21129 echo $ECHO_N "(cached) $ECHO_C" >&6
21131 echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
21132 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6
21133 else
21134 # Is the header compilable?
21135 echo "$as_me:$LINENO: checking netinet/in.h usability" >&5
21136 echo $ECHO_N "checking netinet/in.h usability... $ECHO_C" >&6
21137 cat >conftest.$ac_ext <<_ACEOF
21138 /* confdefs.h. */
21139 _ACEOF
21140 cat confdefs.h >>conftest.$ac_ext
21141 cat >>conftest.$ac_ext <<_ACEOF
21142 /* end confdefs.h. */
21143 $ac_includes_default
21144 #include <netinet/in.h>
21145 _ACEOF
21146 rm -f conftest.$ac_objext
21147 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21148 (eval $ac_compile) 2>conftest.er1
21149 ac_status=$?
21150 grep -v '^ *+' conftest.er1 >conftest.err
21151 rm -f conftest.er1
21152 cat conftest.err >&5
21153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21154 (exit $ac_status); } &&
21155 { ac_try='test -z "$ac_c_werror_flag"
21156 || test ! -s conftest.err'
21157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21158 (eval $ac_try) 2>&5
21159 ac_status=$?
21160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21161 (exit $ac_status); }; } &&
21162 { ac_try='test -s conftest.$ac_objext'
21163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21164 (eval $ac_try) 2>&5
21165 ac_status=$?
21166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21167 (exit $ac_status); }; }; then
21168 ac_header_compiler=yes
21169 else
21170 echo "$as_me: failed program was:" >&5
21171 sed 's/^/| /' conftest.$ac_ext >&5
21173 ac_header_compiler=no
21175 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21176 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21177 echo "${ECHO_T}$ac_header_compiler" >&6
21179 # Is the header present?
21180 echo "$as_me:$LINENO: checking netinet/in.h presence" >&5
21181 echo $ECHO_N "checking netinet/in.h presence... $ECHO_C" >&6
21182 cat >conftest.$ac_ext <<_ACEOF
21183 /* confdefs.h. */
21184 _ACEOF
21185 cat confdefs.h >>conftest.$ac_ext
21186 cat >>conftest.$ac_ext <<_ACEOF
21187 /* end confdefs.h. */
21188 #include <netinet/in.h>
21189 _ACEOF
21190 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21191 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21192 ac_status=$?
21193 grep -v '^ *+' conftest.er1 >conftest.err
21194 rm -f conftest.er1
21195 cat conftest.err >&5
21196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21197 (exit $ac_status); } >/dev/null; then
21198 if test -s conftest.err; then
21199 ac_cpp_err=$ac_c_preproc_warn_flag
21200 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21201 else
21202 ac_cpp_err=
21204 else
21205 ac_cpp_err=yes
21207 if test -z "$ac_cpp_err"; then
21208 ac_header_preproc=yes
21209 else
21210 echo "$as_me: failed program was:" >&5
21211 sed 's/^/| /' conftest.$ac_ext >&5
21213 ac_header_preproc=no
21215 rm -f conftest.err conftest.$ac_ext
21216 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21217 echo "${ECHO_T}$ac_header_preproc" >&6
21219 # So? What about this header?
21220 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21221 yes:no: )
21222 { echo "$as_me:$LINENO: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&5
21223 echo "$as_me: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21224 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the compiler's result" >&5
21225 echo "$as_me: WARNING: netinet/in.h: proceeding with the compiler's result" >&2;}
21226 ac_header_preproc=yes
21228 no:yes:* )
21229 { echo "$as_me:$LINENO: WARNING: netinet/in.h: present but cannot be compiled" >&5
21230 echo "$as_me: WARNING: netinet/in.h: present but cannot be compiled" >&2;}
21231 { echo "$as_me:$LINENO: WARNING: netinet/in.h: check for missing prerequisite headers?" >&5
21232 echo "$as_me: WARNING: netinet/in.h: check for missing prerequisite headers?" >&2;}
21233 { echo "$as_me:$LINENO: WARNING: netinet/in.h: see the Autoconf documentation" >&5
21234 echo "$as_me: WARNING: netinet/in.h: see the Autoconf documentation" >&2;}
21235 { echo "$as_me:$LINENO: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&5
21236 echo "$as_me: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&2;}
21237 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5
21238 echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;}
21239 { echo "$as_me:$LINENO: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&5
21240 echo "$as_me: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&2;}
21242 cat <<\_ASBOX
21243 ## ------------------------------------------ ##
21244 ## Report this to the AC_PACKAGE_NAME lists. ##
21245 ## ------------------------------------------ ##
21246 _ASBOX
21248 sed "s/^/$as_me: WARNING: /" >&2
21250 esac
21251 echo "$as_me:$LINENO: checking for netinet/in.h" >&5
21252 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6
21253 if test "${ac_cv_header_netinet_in_h+set}" = set; then
21254 echo $ECHO_N "(cached) $ECHO_C" >&6
21255 else
21256 ac_cv_header_netinet_in_h=$ac_header_preproc
21258 echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
21259 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6
21262 if test $ac_cv_header_netinet_in_h = yes; then
21264 else
21265 ok_so_far=no
21270 if test $ok_so_far = yes; then
21271 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
21272 echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
21273 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6
21274 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
21275 echo $ECHO_N "(cached) $ECHO_C" >&6
21277 echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
21278 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6
21279 else
21280 # Is the header compilable?
21281 echo "$as_me:$LINENO: checking arpa/inet.h usability" >&5
21282 echo $ECHO_N "checking arpa/inet.h usability... $ECHO_C" >&6
21283 cat >conftest.$ac_ext <<_ACEOF
21284 /* confdefs.h. */
21285 _ACEOF
21286 cat confdefs.h >>conftest.$ac_ext
21287 cat >>conftest.$ac_ext <<_ACEOF
21288 /* end confdefs.h. */
21289 $ac_includes_default
21290 #include <arpa/inet.h>
21291 _ACEOF
21292 rm -f conftest.$ac_objext
21293 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21294 (eval $ac_compile) 2>conftest.er1
21295 ac_status=$?
21296 grep -v '^ *+' conftest.er1 >conftest.err
21297 rm -f conftest.er1
21298 cat conftest.err >&5
21299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21300 (exit $ac_status); } &&
21301 { ac_try='test -z "$ac_c_werror_flag"
21302 || test ! -s conftest.err'
21303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21304 (eval $ac_try) 2>&5
21305 ac_status=$?
21306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21307 (exit $ac_status); }; } &&
21308 { ac_try='test -s conftest.$ac_objext'
21309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21310 (eval $ac_try) 2>&5
21311 ac_status=$?
21312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21313 (exit $ac_status); }; }; then
21314 ac_header_compiler=yes
21315 else
21316 echo "$as_me: failed program was:" >&5
21317 sed 's/^/| /' conftest.$ac_ext >&5
21319 ac_header_compiler=no
21321 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21322 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21323 echo "${ECHO_T}$ac_header_compiler" >&6
21325 # Is the header present?
21326 echo "$as_me:$LINENO: checking arpa/inet.h presence" >&5
21327 echo $ECHO_N "checking arpa/inet.h presence... $ECHO_C" >&6
21328 cat >conftest.$ac_ext <<_ACEOF
21329 /* confdefs.h. */
21330 _ACEOF
21331 cat confdefs.h >>conftest.$ac_ext
21332 cat >>conftest.$ac_ext <<_ACEOF
21333 /* end confdefs.h. */
21334 #include <arpa/inet.h>
21335 _ACEOF
21336 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21337 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21338 ac_status=$?
21339 grep -v '^ *+' conftest.er1 >conftest.err
21340 rm -f conftest.er1
21341 cat conftest.err >&5
21342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21343 (exit $ac_status); } >/dev/null; then
21344 if test -s conftest.err; then
21345 ac_cpp_err=$ac_c_preproc_warn_flag
21346 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21347 else
21348 ac_cpp_err=
21350 else
21351 ac_cpp_err=yes
21353 if test -z "$ac_cpp_err"; then
21354 ac_header_preproc=yes
21355 else
21356 echo "$as_me: failed program was:" >&5
21357 sed 's/^/| /' conftest.$ac_ext >&5
21359 ac_header_preproc=no
21361 rm -f conftest.err conftest.$ac_ext
21362 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21363 echo "${ECHO_T}$ac_header_preproc" >&6
21365 # So? What about this header?
21366 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21367 yes:no: )
21368 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&5
21369 echo "$as_me: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21370 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the compiler's result" >&5
21371 echo "$as_me: WARNING: arpa/inet.h: proceeding with the compiler's result" >&2;}
21372 ac_header_preproc=yes
21374 no:yes:* )
21375 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: present but cannot be compiled" >&5
21376 echo "$as_me: WARNING: arpa/inet.h: present but cannot be compiled" >&2;}
21377 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&5
21378 echo "$as_me: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&2;}
21379 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: see the Autoconf documentation" >&5
21380 echo "$as_me: WARNING: arpa/inet.h: see the Autoconf documentation" >&2;}
21381 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&5
21382 echo "$as_me: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&2;}
21383 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5
21384 echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;}
21385 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&5
21386 echo "$as_me: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&2;}
21388 cat <<\_ASBOX
21389 ## ------------------------------------------ ##
21390 ## Report this to the AC_PACKAGE_NAME lists. ##
21391 ## ------------------------------------------ ##
21392 _ASBOX
21394 sed "s/^/$as_me: WARNING: /" >&2
21396 esac
21397 echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
21398 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6
21399 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
21400 echo $ECHO_N "(cached) $ECHO_C" >&6
21401 else
21402 ac_cv_header_arpa_inet_h=$ac_header_preproc
21404 echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
21405 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6
21408 if test $ac_cv_header_arpa_inet_h = yes; then
21410 else
21411 ok_so_far=no
21416 if test $ok_so_far = yes; then
21418 cat >>confdefs.h <<\_ACEOF
21419 #define HAVE_INET_SOCKETS 1
21420 _ACEOF
21425 for ac_header in sys/ioctl.h
21427 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21428 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21429 echo "$as_me:$LINENO: checking for $ac_header" >&5
21430 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21431 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21432 echo $ECHO_N "(cached) $ECHO_C" >&6
21434 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21435 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21436 else
21437 # Is the header compilable?
21438 echo "$as_me:$LINENO: checking $ac_header usability" >&5
21439 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21440 cat >conftest.$ac_ext <<_ACEOF
21441 /* confdefs.h. */
21442 _ACEOF
21443 cat confdefs.h >>conftest.$ac_ext
21444 cat >>conftest.$ac_ext <<_ACEOF
21445 /* end confdefs.h. */
21446 $ac_includes_default
21447 #include <$ac_header>
21448 _ACEOF
21449 rm -f conftest.$ac_objext
21450 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21451 (eval $ac_compile) 2>conftest.er1
21452 ac_status=$?
21453 grep -v '^ *+' conftest.er1 >conftest.err
21454 rm -f conftest.er1
21455 cat conftest.err >&5
21456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21457 (exit $ac_status); } &&
21458 { ac_try='test -z "$ac_c_werror_flag"
21459 || test ! -s conftest.err'
21460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21461 (eval $ac_try) 2>&5
21462 ac_status=$?
21463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21464 (exit $ac_status); }; } &&
21465 { ac_try='test -s conftest.$ac_objext'
21466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21467 (eval $ac_try) 2>&5
21468 ac_status=$?
21469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21470 (exit $ac_status); }; }; then
21471 ac_header_compiler=yes
21472 else
21473 echo "$as_me: failed program was:" >&5
21474 sed 's/^/| /' conftest.$ac_ext >&5
21476 ac_header_compiler=no
21478 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21479 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21480 echo "${ECHO_T}$ac_header_compiler" >&6
21482 # Is the header present?
21483 echo "$as_me:$LINENO: checking $ac_header presence" >&5
21484 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21485 cat >conftest.$ac_ext <<_ACEOF
21486 /* confdefs.h. */
21487 _ACEOF
21488 cat confdefs.h >>conftest.$ac_ext
21489 cat >>conftest.$ac_ext <<_ACEOF
21490 /* end confdefs.h. */
21491 #include <$ac_header>
21492 _ACEOF
21493 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21494 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21495 ac_status=$?
21496 grep -v '^ *+' conftest.er1 >conftest.err
21497 rm -f conftest.er1
21498 cat conftest.err >&5
21499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21500 (exit $ac_status); } >/dev/null; then
21501 if test -s conftest.err; then
21502 ac_cpp_err=$ac_c_preproc_warn_flag
21503 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21504 else
21505 ac_cpp_err=
21507 else
21508 ac_cpp_err=yes
21510 if test -z "$ac_cpp_err"; then
21511 ac_header_preproc=yes
21512 else
21513 echo "$as_me: failed program was:" >&5
21514 sed 's/^/| /' conftest.$ac_ext >&5
21516 ac_header_preproc=no
21518 rm -f conftest.err conftest.$ac_ext
21519 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21520 echo "${ECHO_T}$ac_header_preproc" >&6
21522 # So? What about this header?
21523 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21524 yes:no: )
21525 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21526 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21527 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21528 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21529 ac_header_preproc=yes
21531 no:yes:* )
21532 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21533 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21534 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21535 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21536 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21537 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21538 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21539 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21540 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21541 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21542 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21543 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21545 cat <<\_ASBOX
21546 ## ------------------------------------------ ##
21547 ## Report this to the AC_PACKAGE_NAME lists. ##
21548 ## ------------------------------------------ ##
21549 _ASBOX
21551 sed "s/^/$as_me: WARNING: /" >&2
21553 esac
21554 echo "$as_me:$LINENO: checking for $ac_header" >&5
21555 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21556 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21557 echo $ECHO_N "(cached) $ECHO_C" >&6
21558 else
21559 eval "$as_ac_Header=\$ac_header_preproc"
21561 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21562 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21565 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21566 cat >>confdefs.h <<_ACEOF
21567 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21568 _ACEOF
21572 done
21575 if test -f /usr/lpp/X11/bin/smt.exp; then
21577 cat >>confdefs.h <<\_ACEOF
21578 #define HAVE_AIX_SMT_EXP 1
21579 _ACEOF
21583 echo "$as_me:$LINENO: checking whether system supports dynamic ptys" >&5
21584 echo $ECHO_N "checking whether system supports dynamic ptys... $ECHO_C" >&6
21585 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
21586 echo "$as_me:$LINENO: result: yes" >&5
21587 echo "${ECHO_T}yes" >&6
21589 cat >>confdefs.h <<\_ACEOF
21590 #define HAVE_DEV_PTMX 1
21591 _ACEOF
21593 else
21594 echo "$as_me:$LINENO: result: no" >&5
21595 echo "${ECHO_T}no" >&6
21598 echo "$as_me:$LINENO: checking for pid_t" >&5
21599 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
21600 if test "${ac_cv_type_pid_t+set}" = set; then
21601 echo $ECHO_N "(cached) $ECHO_C" >&6
21602 else
21603 cat >conftest.$ac_ext <<_ACEOF
21604 /* confdefs.h. */
21605 _ACEOF
21606 cat confdefs.h >>conftest.$ac_ext
21607 cat >>conftest.$ac_ext <<_ACEOF
21608 /* end confdefs.h. */
21609 $ac_includes_default
21611 main ()
21613 if ((pid_t *) 0)
21614 return 0;
21615 if (sizeof (pid_t))
21616 return 0;
21618 return 0;
21620 _ACEOF
21621 rm -f conftest.$ac_objext
21622 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21623 (eval $ac_compile) 2>conftest.er1
21624 ac_status=$?
21625 grep -v '^ *+' conftest.er1 >conftest.err
21626 rm -f conftest.er1
21627 cat conftest.err >&5
21628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21629 (exit $ac_status); } &&
21630 { ac_try='test -z "$ac_c_werror_flag"
21631 || test ! -s conftest.err'
21632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21633 (eval $ac_try) 2>&5
21634 ac_status=$?
21635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21636 (exit $ac_status); }; } &&
21637 { ac_try='test -s conftest.$ac_objext'
21638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21639 (eval $ac_try) 2>&5
21640 ac_status=$?
21641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21642 (exit $ac_status); }; }; then
21643 ac_cv_type_pid_t=yes
21644 else
21645 echo "$as_me: failed program was:" >&5
21646 sed 's/^/| /' conftest.$ac_ext >&5
21648 ac_cv_type_pid_t=no
21650 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21652 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
21653 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
21654 if test $ac_cv_type_pid_t = yes; then
21656 else
21658 cat >>confdefs.h <<_ACEOF
21659 #define pid_t int
21660 _ACEOF
21666 for ac_header in unistd.h vfork.h
21668 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21669 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21670 echo "$as_me:$LINENO: checking for $ac_header" >&5
21671 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21672 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21673 echo $ECHO_N "(cached) $ECHO_C" >&6
21675 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21676 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21677 else
21678 # Is the header compilable?
21679 echo "$as_me:$LINENO: checking $ac_header usability" >&5
21680 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21681 cat >conftest.$ac_ext <<_ACEOF
21682 /* confdefs.h. */
21683 _ACEOF
21684 cat confdefs.h >>conftest.$ac_ext
21685 cat >>conftest.$ac_ext <<_ACEOF
21686 /* end confdefs.h. */
21687 $ac_includes_default
21688 #include <$ac_header>
21689 _ACEOF
21690 rm -f conftest.$ac_objext
21691 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21692 (eval $ac_compile) 2>conftest.er1
21693 ac_status=$?
21694 grep -v '^ *+' conftest.er1 >conftest.err
21695 rm -f conftest.er1
21696 cat conftest.err >&5
21697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21698 (exit $ac_status); } &&
21699 { ac_try='test -z "$ac_c_werror_flag"
21700 || test ! -s conftest.err'
21701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21702 (eval $ac_try) 2>&5
21703 ac_status=$?
21704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21705 (exit $ac_status); }; } &&
21706 { ac_try='test -s conftest.$ac_objext'
21707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21708 (eval $ac_try) 2>&5
21709 ac_status=$?
21710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21711 (exit $ac_status); }; }; then
21712 ac_header_compiler=yes
21713 else
21714 echo "$as_me: failed program was:" >&5
21715 sed 's/^/| /' conftest.$ac_ext >&5
21717 ac_header_compiler=no
21719 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21720 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21721 echo "${ECHO_T}$ac_header_compiler" >&6
21723 # Is the header present?
21724 echo "$as_me:$LINENO: checking $ac_header presence" >&5
21725 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21726 cat >conftest.$ac_ext <<_ACEOF
21727 /* confdefs.h. */
21728 _ACEOF
21729 cat confdefs.h >>conftest.$ac_ext
21730 cat >>conftest.$ac_ext <<_ACEOF
21731 /* end confdefs.h. */
21732 #include <$ac_header>
21733 _ACEOF
21734 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21735 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21736 ac_status=$?
21737 grep -v '^ *+' conftest.er1 >conftest.err
21738 rm -f conftest.er1
21739 cat conftest.err >&5
21740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21741 (exit $ac_status); } >/dev/null; then
21742 if test -s conftest.err; then
21743 ac_cpp_err=$ac_c_preproc_warn_flag
21744 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21745 else
21746 ac_cpp_err=
21748 else
21749 ac_cpp_err=yes
21751 if test -z "$ac_cpp_err"; then
21752 ac_header_preproc=yes
21753 else
21754 echo "$as_me: failed program was:" >&5
21755 sed 's/^/| /' conftest.$ac_ext >&5
21757 ac_header_preproc=no
21759 rm -f conftest.err conftest.$ac_ext
21760 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21761 echo "${ECHO_T}$ac_header_preproc" >&6
21763 # So? What about this header?
21764 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21765 yes:no: )
21766 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21767 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21768 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21769 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21770 ac_header_preproc=yes
21772 no:yes:* )
21773 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21774 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21775 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21776 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21777 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21778 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21779 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21780 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21781 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21782 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21783 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21784 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21786 cat <<\_ASBOX
21787 ## ------------------------------------------ ##
21788 ## Report this to the AC_PACKAGE_NAME lists. ##
21789 ## ------------------------------------------ ##
21790 _ASBOX
21792 sed "s/^/$as_me: WARNING: /" >&2
21794 esac
21795 echo "$as_me:$LINENO: checking for $ac_header" >&5
21796 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21797 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21798 echo $ECHO_N "(cached) $ECHO_C" >&6
21799 else
21800 eval "$as_ac_Header=\$ac_header_preproc"
21802 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21803 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21806 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21807 cat >>confdefs.h <<_ACEOF
21808 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21809 _ACEOF
21813 done
21817 for ac_func in fork vfork
21819 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21820 echo "$as_me:$LINENO: checking for $ac_func" >&5
21821 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21822 if eval "test \"\${$as_ac_var+set}\" = set"; then
21823 echo $ECHO_N "(cached) $ECHO_C" >&6
21824 else
21825 cat >conftest.$ac_ext <<_ACEOF
21826 /* confdefs.h. */
21827 _ACEOF
21828 cat confdefs.h >>conftest.$ac_ext
21829 cat >>conftest.$ac_ext <<_ACEOF
21830 /* end confdefs.h. */
21831 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21832 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21833 #define $ac_func innocuous_$ac_func
21835 /* System header to define __stub macros and hopefully few prototypes,
21836 which can conflict with char $ac_func (); below.
21837 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21838 <limits.h> exists even on freestanding compilers. */
21840 #ifdef __STDC__
21841 # include <limits.h>
21842 #else
21843 # include <assert.h>
21844 #endif
21846 #undef $ac_func
21848 /* Override any gcc2 internal prototype to avoid an error. */
21849 #ifdef __cplusplus
21850 extern "C"
21852 #endif
21853 /* We use char because int might match the return type of a gcc2
21854 builtin and then its argument prototype would still apply. */
21855 char $ac_func ();
21856 /* The GNU C library defines this for functions which it implements
21857 to always fail with ENOSYS. Some functions are actually named
21858 something starting with __ and the normal name is an alias. */
21859 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21860 choke me
21861 #else
21862 char (*f) () = $ac_func;
21863 #endif
21864 #ifdef __cplusplus
21866 #endif
21869 main ()
21871 return f != $ac_func;
21873 return 0;
21875 _ACEOF
21876 rm -f conftest.$ac_objext conftest$ac_exeext
21877 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21878 (eval $ac_link) 2>conftest.er1
21879 ac_status=$?
21880 grep -v '^ *+' conftest.er1 >conftest.err
21881 rm -f conftest.er1
21882 cat conftest.err >&5
21883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21884 (exit $ac_status); } &&
21885 { ac_try='test -z "$ac_c_werror_flag"
21886 || test ! -s conftest.err'
21887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21888 (eval $ac_try) 2>&5
21889 ac_status=$?
21890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21891 (exit $ac_status); }; } &&
21892 { ac_try='test -s conftest$ac_exeext'
21893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21894 (eval $ac_try) 2>&5
21895 ac_status=$?
21896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21897 (exit $ac_status); }; }; then
21898 eval "$as_ac_var=yes"
21899 else
21900 echo "$as_me: failed program was:" >&5
21901 sed 's/^/| /' conftest.$ac_ext >&5
21903 eval "$as_ac_var=no"
21905 rm -f conftest.err conftest.$ac_objext \
21906 conftest$ac_exeext conftest.$ac_ext
21908 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21909 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21910 if test `eval echo '${'$as_ac_var'}'` = yes; then
21911 cat >>confdefs.h <<_ACEOF
21912 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21913 _ACEOF
21916 done
21918 if test "x$ac_cv_func_fork" = xyes; then
21919 echo "$as_me:$LINENO: checking for working fork" >&5
21920 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
21921 if test "${ac_cv_func_fork_works+set}" = set; then
21922 echo $ECHO_N "(cached) $ECHO_C" >&6
21923 else
21924 if test "$cross_compiling" = yes; then
21925 ac_cv_func_fork_works=cross
21926 else
21927 cat >conftest.$ac_ext <<_ACEOF
21928 /* By Ruediger Kuhlmann. */
21929 #include <sys/types.h>
21930 #if HAVE_UNISTD_H
21931 # include <unistd.h>
21932 #endif
21933 /* Some systems only have a dummy stub for fork() */
21934 int main ()
21936 if (fork() < 0)
21937 exit (1);
21938 exit (0);
21940 _ACEOF
21941 rm -f conftest$ac_exeext
21942 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21943 (eval $ac_link) 2>&5
21944 ac_status=$?
21945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21946 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21948 (eval $ac_try) 2>&5
21949 ac_status=$?
21950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21951 (exit $ac_status); }; }; then
21952 ac_cv_func_fork_works=yes
21953 else
21954 echo "$as_me: program exited with status $ac_status" >&5
21955 echo "$as_me: failed program was:" >&5
21956 sed 's/^/| /' conftest.$ac_ext >&5
21958 ( exit $ac_status )
21959 ac_cv_func_fork_works=no
21961 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21964 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
21965 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
21967 else
21968 ac_cv_func_fork_works=$ac_cv_func_fork
21970 if test "x$ac_cv_func_fork_works" = xcross; then
21971 case $host in
21972 *-*-amigaos* | *-*-msdosdjgpp*)
21973 # Override, as these systems have only a dummy fork() stub
21974 ac_cv_func_fork_works=no
21977 ac_cv_func_fork_works=yes
21979 esac
21980 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
21981 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
21983 ac_cv_func_vfork_works=$ac_cv_func_vfork
21984 if test "x$ac_cv_func_vfork" = xyes; then
21985 echo "$as_me:$LINENO: checking for working vfork" >&5
21986 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
21987 if test "${ac_cv_func_vfork_works+set}" = set; then
21988 echo $ECHO_N "(cached) $ECHO_C" >&6
21989 else
21990 if test "$cross_compiling" = yes; then
21991 ac_cv_func_vfork_works=cross
21992 else
21993 cat >conftest.$ac_ext <<_ACEOF
21994 /* confdefs.h. */
21995 _ACEOF
21996 cat confdefs.h >>conftest.$ac_ext
21997 cat >>conftest.$ac_ext <<_ACEOF
21998 /* end confdefs.h. */
21999 /* Thanks to Paul Eggert for this test. */
22000 #include <stdio.h>
22001 #include <stdlib.h>
22002 #include <sys/types.h>
22003 #include <sys/stat.h>
22004 #include <sys/wait.h>
22005 #if HAVE_UNISTD_H
22006 # include <unistd.h>
22007 #endif
22008 #if HAVE_VFORK_H
22009 # include <vfork.h>
22010 #endif
22011 /* On some sparc systems, changes by the child to local and incoming
22012 argument registers are propagated back to the parent. The compiler
22013 is told about this with #include <vfork.h>, but some compilers
22014 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
22015 static variable whose address is put into a register that is
22016 clobbered by the vfork. */
22017 static void
22018 #ifdef __cplusplus
22019 sparc_address_test (int arg)
22020 # else
22021 sparc_address_test (arg) int arg;
22022 #endif
22024 static pid_t child;
22025 if (!child) {
22026 child = vfork ();
22027 if (child < 0) {
22028 perror ("vfork");
22029 _exit(2);
22031 if (!child) {
22032 arg = getpid();
22033 write(-1, "", 0);
22034 _exit (arg);
22040 main ()
22042 pid_t parent = getpid ();
22043 pid_t child;
22045 sparc_address_test (0);
22047 child = vfork ();
22049 if (child == 0) {
22050 /* Here is another test for sparc vfork register problems. This
22051 test uses lots of local variables, at least as many local
22052 variables as main has allocated so far including compiler
22053 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
22054 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
22055 reuse the register of parent for one of the local variables,
22056 since it will think that parent can't possibly be used any more
22057 in this routine. Assigning to the local variable will thus
22058 munge parent in the parent process. */
22059 pid_t
22060 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
22061 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
22062 /* Convince the compiler that p..p7 are live; otherwise, it might
22063 use the same hardware register for all 8 local variables. */
22064 if (p != p1 || p != p2 || p != p3 || p != p4
22065 || p != p5 || p != p6 || p != p7)
22066 _exit(1);
22068 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
22069 from child file descriptors. If the child closes a descriptor
22070 before it execs or exits, this munges the parent's descriptor
22071 as well. Test for this by closing stdout in the child. */
22072 _exit(close(fileno(stdout)) != 0);
22073 } else {
22074 int status;
22075 struct stat st;
22077 while (wait(&status) != child)
22079 exit(
22080 /* Was there some problem with vforking? */
22081 child < 0
22083 /* Did the child fail? (This shouldn't happen.) */
22084 || status
22086 /* Did the vfork/compiler bug occur? */
22087 || parent != getpid()
22089 /* Did the file descriptor bug occur? */
22090 || fstat(fileno(stdout), &st) != 0
22094 _ACEOF
22095 rm -f conftest$ac_exeext
22096 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22097 (eval $ac_link) 2>&5
22098 ac_status=$?
22099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22100 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22102 (eval $ac_try) 2>&5
22103 ac_status=$?
22104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22105 (exit $ac_status); }; }; then
22106 ac_cv_func_vfork_works=yes
22107 else
22108 echo "$as_me: program exited with status $ac_status" >&5
22109 echo "$as_me: failed program was:" >&5
22110 sed 's/^/| /' conftest.$ac_ext >&5
22112 ( exit $ac_status )
22113 ac_cv_func_vfork_works=no
22115 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22118 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
22119 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
22122 if test "x$ac_cv_func_fork_works" = xcross; then
22123 ac_cv_func_vfork_works=$ac_cv_func_vfork
22124 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
22125 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
22128 if test "x$ac_cv_func_vfork_works" = xyes; then
22130 cat >>confdefs.h <<\_ACEOF
22131 #define HAVE_WORKING_VFORK 1
22132 _ACEOF
22134 else
22136 cat >>confdefs.h <<\_ACEOF
22137 #define vfork fork
22138 _ACEOF
22141 if test "x$ac_cv_func_fork_works" = xyes; then
22143 cat >>confdefs.h <<\_ACEOF
22144 #define HAVE_WORKING_FORK 1
22145 _ACEOF
22150 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
22151 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
22152 if test "${emacs_cv_langinfo_codeset+set}" = set; then
22153 echo $ECHO_N "(cached) $ECHO_C" >&6
22154 else
22155 cat >conftest.$ac_ext <<_ACEOF
22156 /* confdefs.h. */
22157 _ACEOF
22158 cat confdefs.h >>conftest.$ac_ext
22159 cat >>conftest.$ac_ext <<_ACEOF
22160 /* end confdefs.h. */
22161 #include <langinfo.h>
22163 main ()
22165 char* cs = nl_langinfo(CODESET);
22167 return 0;
22169 _ACEOF
22170 rm -f conftest.$ac_objext conftest$ac_exeext
22171 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22172 (eval $ac_link) 2>conftest.er1
22173 ac_status=$?
22174 grep -v '^ *+' conftest.er1 >conftest.err
22175 rm -f conftest.er1
22176 cat conftest.err >&5
22177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22178 (exit $ac_status); } &&
22179 { ac_try='test -z "$ac_c_werror_flag"
22180 || test ! -s conftest.err'
22181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22182 (eval $ac_try) 2>&5
22183 ac_status=$?
22184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22185 (exit $ac_status); }; } &&
22186 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
22192 emacs_cv_langinfo_codeset=yes
22193 else
22194 echo "$as_me: failed program was:" >&5
22195 sed 's/^/| /' conftest.$ac_ext >&5
22197 emacs_cv_langinfo_codeset=no
22199 rm -f conftest.err conftest.$ac_objext \
22200 conftest$ac_exeext conftest.$ac_ext
22203 echo "$as_me:$LINENO: result: $emacs_cv_langinfo_codeset" >&5
22204 echo "${ECHO_T}$emacs_cv_langinfo_codeset" >&6
22205 if test $emacs_cv_langinfo_codeset = yes; then
22207 cat >>confdefs.h <<\_ACEOF
22208 #define HAVE_LANGINFO_CODESET 1
22209 _ACEOF
22213 echo "$as_me:$LINENO: checking for size_t" >&5
22214 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
22215 if test "${ac_cv_type_size_t+set}" = set; then
22216 echo $ECHO_N "(cached) $ECHO_C" >&6
22217 else
22218 cat >conftest.$ac_ext <<_ACEOF
22219 /* confdefs.h. */
22220 _ACEOF
22221 cat confdefs.h >>conftest.$ac_ext
22222 cat >>conftest.$ac_ext <<_ACEOF
22223 /* end confdefs.h. */
22224 $ac_includes_default
22226 main ()
22228 if ((size_t *) 0)
22229 return 0;
22230 if (sizeof (size_t))
22231 return 0;
22233 return 0;
22235 _ACEOF
22236 rm -f conftest.$ac_objext
22237 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22238 (eval $ac_compile) 2>conftest.er1
22239 ac_status=$?
22240 grep -v '^ *+' conftest.er1 >conftest.err
22241 rm -f conftest.er1
22242 cat conftest.err >&5
22243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22244 (exit $ac_status); } &&
22245 { ac_try='test -z "$ac_c_werror_flag"
22246 || test ! -s conftest.err'
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); }; } &&
22252 { ac_try='test -s conftest.$ac_objext'
22253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22254 (eval $ac_try) 2>&5
22255 ac_status=$?
22256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22257 (exit $ac_status); }; }; then
22258 ac_cv_type_size_t=yes
22259 else
22260 echo "$as_me: failed program was:" >&5
22261 sed 's/^/| /' conftest.$ac_ext >&5
22263 ac_cv_type_size_t=no
22265 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22267 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
22268 echo "${ECHO_T}$ac_cv_type_size_t" >&6
22269 if test $ac_cv_type_size_t = yes; then
22271 cat >>confdefs.h <<_ACEOF
22272 #define HAVE_SIZE_T 1
22273 _ACEOF
22279 echo "$as_me:$LINENO: checking for mbstate_t" >&5
22280 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
22281 if test "${ac_cv_type_mbstate_t+set}" = set; then
22282 echo $ECHO_N "(cached) $ECHO_C" >&6
22283 else
22284 cat >conftest.$ac_ext <<_ACEOF
22285 /* confdefs.h. */
22286 _ACEOF
22287 cat confdefs.h >>conftest.$ac_ext
22288 cat >>conftest.$ac_ext <<_ACEOF
22289 /* end confdefs.h. */
22290 $ac_includes_default
22291 # include <wchar.h>
22293 main ()
22295 mbstate_t x; return sizeof x;
22297 return 0;
22299 _ACEOF
22300 rm -f conftest.$ac_objext
22301 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22302 (eval $ac_compile) 2>conftest.er1
22303 ac_status=$?
22304 grep -v '^ *+' conftest.er1 >conftest.err
22305 rm -f conftest.er1
22306 cat conftest.err >&5
22307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22308 (exit $ac_status); } &&
22309 { ac_try='test -z "$ac_c_werror_flag"
22310 || test ! -s conftest.err'
22311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22312 (eval $ac_try) 2>&5
22313 ac_status=$?
22314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22315 (exit $ac_status); }; } &&
22316 { ac_try='test -s conftest.$ac_objext'
22317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22318 (eval $ac_try) 2>&5
22319 ac_status=$?
22320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22321 (exit $ac_status); }; }; then
22322 ac_cv_type_mbstate_t=yes
22323 else
22324 echo "$as_me: failed program was:" >&5
22325 sed 's/^/| /' conftest.$ac_ext >&5
22327 ac_cv_type_mbstate_t=no
22329 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22331 echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
22332 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6
22333 if test $ac_cv_type_mbstate_t = yes; then
22335 cat >>confdefs.h <<\_ACEOF
22336 #define HAVE_MBSTATE_T 1
22337 _ACEOF
22339 else
22341 cat >>confdefs.h <<\_ACEOF
22342 #define mbstate_t int
22343 _ACEOF
22347 echo "$as_me:$LINENO: checking for C restrict keyword" >&5
22348 echo $ECHO_N "checking for C restrict keyword... $ECHO_C" >&6
22349 if test "${emacs_cv_c_restrict+set}" = set; then
22350 echo $ECHO_N "(cached) $ECHO_C" >&6
22351 else
22352 cat >conftest.$ac_ext <<_ACEOF
22353 /* confdefs.h. */
22354 _ACEOF
22355 cat confdefs.h >>conftest.$ac_ext
22356 cat >>conftest.$ac_ext <<_ACEOF
22357 /* end confdefs.h. */
22358 void fred (int *restrict x);
22360 main ()
22364 return 0;
22366 _ACEOF
22367 rm -f conftest.$ac_objext
22368 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22369 (eval $ac_compile) 2>conftest.er1
22370 ac_status=$?
22371 grep -v '^ *+' conftest.er1 >conftest.err
22372 rm -f conftest.er1
22373 cat conftest.err >&5
22374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22375 (exit $ac_status); } &&
22376 { ac_try='test -z "$ac_c_werror_flag"
22377 || test ! -s conftest.err'
22378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22379 (eval $ac_try) 2>&5
22380 ac_status=$?
22381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22382 (exit $ac_status); }; } &&
22383 { ac_try='test -s conftest.$ac_objext'
22384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22385 (eval $ac_try) 2>&5
22386 ac_status=$?
22387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22388 (exit $ac_status); }; }; then
22389 emacs_cv_c_restrict=yes
22390 else
22391 echo "$as_me: failed program was:" >&5
22392 sed 's/^/| /' conftest.$ac_ext >&5
22394 cat >conftest.$ac_ext <<_ACEOF
22395 /* confdefs.h. */
22396 _ACEOF
22397 cat confdefs.h >>conftest.$ac_ext
22398 cat >>conftest.$ac_ext <<_ACEOF
22399 /* end confdefs.h. */
22400 void fred (int *__restrict x);
22402 main ()
22406 return 0;
22408 _ACEOF
22409 rm -f conftest.$ac_objext
22410 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22411 (eval $ac_compile) 2>conftest.er1
22412 ac_status=$?
22413 grep -v '^ *+' conftest.er1 >conftest.err
22414 rm -f conftest.er1
22415 cat conftest.err >&5
22416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22417 (exit $ac_status); } &&
22418 { ac_try='test -z "$ac_c_werror_flag"
22419 || test ! -s conftest.err'
22420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22421 (eval $ac_try) 2>&5
22422 ac_status=$?
22423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22424 (exit $ac_status); }; } &&
22425 { ac_try='test -s conftest.$ac_objext'
22426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22427 (eval $ac_try) 2>&5
22428 ac_status=$?
22429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22430 (exit $ac_status); }; }; then
22431 emacs_cv_c_restrict=__restrict
22432 else
22433 echo "$as_me: failed program was:" >&5
22434 sed 's/^/| /' conftest.$ac_ext >&5
22436 emacs_cv_c_restrict=no
22438 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22440 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22442 echo "$as_me:$LINENO: result: $emacs_cv_c_restrict" >&5
22443 echo "${ECHO_T}$emacs_cv_c_restrict" >&6
22444 case "$emacs_cv_c_restrict" in
22445 yes) emacs_restrict=restrict;;
22446 no) emacs_restrict="";;
22447 *) emacs_restrict="$emacs_cv_c_restrict";;
22448 esac
22449 if test "$emacs_restrict" != __restrict; then
22451 cat >>confdefs.h <<_ACEOF
22452 #define __restrict $emacs_restrict
22453 _ACEOF
22457 echo "$as_me:$LINENO: checking for C restricted array declarations" >&5
22458 echo $ECHO_N "checking for C restricted array declarations... $ECHO_C" >&6
22459 if test "${emacs_cv_c_restrict_arr+set}" = set; then
22460 echo $ECHO_N "(cached) $ECHO_C" >&6
22461 else
22462 cat >conftest.$ac_ext <<_ACEOF
22463 /* confdefs.h. */
22464 _ACEOF
22465 cat confdefs.h >>conftest.$ac_ext
22466 cat >>conftest.$ac_ext <<_ACEOF
22467 /* end confdefs.h. */
22468 void fred (int x[__restrict]);
22470 main ()
22474 return 0;
22476 _ACEOF
22477 rm -f conftest.$ac_objext
22478 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22479 (eval $ac_compile) 2>conftest.er1
22480 ac_status=$?
22481 grep -v '^ *+' conftest.er1 >conftest.err
22482 rm -f conftest.er1
22483 cat conftest.err >&5
22484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22485 (exit $ac_status); } &&
22486 { ac_try='test -z "$ac_c_werror_flag"
22487 || test ! -s conftest.err'
22488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22489 (eval $ac_try) 2>&5
22490 ac_status=$?
22491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22492 (exit $ac_status); }; } &&
22493 { ac_try='test -s conftest.$ac_objext'
22494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22495 (eval $ac_try) 2>&5
22496 ac_status=$?
22497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22498 (exit $ac_status); }; }; then
22499 emacs_cv_c_restrict_arr=yes
22500 else
22501 echo "$as_me: failed program was:" >&5
22502 sed 's/^/| /' conftest.$ac_ext >&5
22504 emacs_cv_c_restrict_arr=no
22506 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22508 echo "$as_me:$LINENO: result: $emacs_cv_c_restrict_arr" >&5
22509 echo "${ECHO_T}$emacs_cv_c_restrict_arr" >&6
22510 if test "$emacs_cv_c_restrict_arr" = yes; then
22512 cat >>confdefs.h <<\_ACEOF
22513 #define __restrict_arr __restrict
22514 _ACEOF
22520 # Set up the CFLAGS for real compilation, so we can substitute it.
22521 CFLAGS="$REAL_CFLAGS"
22522 CPPFLAGS="$REAL_CPPFLAGS"
22524 #### Find out which version of Emacs this is.
22525 version=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
22526 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`
22527 if test x"${version}" = x; then
22528 { { echo "$as_me:$LINENO: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&5
22529 echo "$as_me: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&2;}
22530 { (exit 1); exit 1; }; }
22533 ### Specify what sort of things we'll be editing into Makefile and config.h.
22534 ### Use configuration here uncanonicalized to avoid exceeding size limits.
22570 cat >>confdefs.h <<_ACEOF
22571 #define EMACS_CONFIGURATION "${canonical}"
22572 _ACEOF
22575 cat >>confdefs.h <<_ACEOF
22576 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
22577 _ACEOF
22580 cat >>confdefs.h <<_ACEOF
22581 #define config_machfile "${machfile}"
22582 _ACEOF
22585 cat >>confdefs.h <<_ACEOF
22586 #define config_opsysfile "${opsysfile}"
22587 _ACEOF
22590 cat >>confdefs.h <<_ACEOF
22591 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
22592 _ACEOF
22595 cat >>confdefs.h <<_ACEOF
22596 #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX}
22597 _ACEOF
22600 cat >>confdefs.h <<_ACEOF
22601 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
22602 _ACEOF
22605 cat >>confdefs.h <<_ACEOF
22606 #define UNEXEC_SRC ${UNEXEC_SRC}
22607 _ACEOF
22610 if test "${HAVE_X_WINDOWS}" = "yes" ; then
22612 cat >>confdefs.h <<\_ACEOF
22613 #define HAVE_X_WINDOWS 1
22614 _ACEOF
22617 if test "${USE_X_TOOLKIT}" != "none" ; then
22619 cat >>confdefs.h <<\_ACEOF
22620 #define USE_X_TOOLKIT 1
22621 _ACEOF
22624 if test "${HAVE_X11}" = "yes" ; then
22626 cat >>confdefs.h <<\_ACEOF
22627 #define HAVE_X11 1
22628 _ACEOF
22631 if test "${HAVE_XFREE386}" = "yes" ; then
22633 cat >>confdefs.h <<\_ACEOF
22634 #define HAVE_XFREE386 1
22635 _ACEOF
22638 if test "${HAVE_MENUS}" = "yes" ; then
22640 cat >>confdefs.h <<\_ACEOF
22641 #define HAVE_MENUS 1
22642 _ACEOF
22645 if test "${GNU_MALLOC}" = "yes" ; then
22647 cat >>confdefs.h <<\_ACEOF
22648 #define GNU_MALLOC 1
22649 _ACEOF
22652 if test "${REL_ALLOC}" = "yes" ; then
22654 cat >>confdefs.h <<\_ACEOF
22655 #define REL_ALLOC 1
22656 _ACEOF
22664 #### Report on what we decided to do.
22665 #### Report GTK as a toolkit, even if it doesn't use Xt.
22666 #### It makes printing result more understandable as using GTK sets
22667 #### toolkit_scroll_bars to yes by default.
22668 if test "${HAVE_GTK}" = "yes"; then
22669 USE_X_TOOLKIT=GTK
22672 echo "
22673 Configured for \`${canonical}'.
22675 Where should the build process find the source code? ${srcdir}
22676 What operating system and machine description files should Emacs use?
22677 \`${opsysfile}' and \`${machfile}'
22678 What compiler should emacs be built with? ${CC} ${CFLAGS}
22679 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
22680 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
22681 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
22682 What window system should Emacs use? ${window_system}
22683 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
22685 if test -n "${x_includes}"; then
22686 echo " Where do we find X Windows header files? ${x_includes}"
22687 else
22688 echo " Where do we find X Windows header files? Standard dirs"
22690 if test -n "${x_libraries}"; then
22691 echo " Where do we find X Windows libraries? ${x_libraries}"
22692 else
22693 echo " Where do we find X Windows libraries? Standard dirs"
22696 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
22697 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
22698 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
22699 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
22700 echo " Does Emacs use -lungif? ${HAVE_GIF}"
22701 echo " Does Emacs use -lpng? ${HAVE_PNG}"
22702 echo " Does Emacs use X toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
22703 echo
22705 if test $USE_XASSERTS = yes; then
22706 echo " Compiling with asserts turned on."
22707 CPPFLAGS="$CPPFLAGS -DXASSERTS=1"
22708 echo
22713 # Remove any trailing slashes in these variables.
22714 test "${prefix}" != NONE &&
22715 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
22716 test "${exec_prefix}" != NONE &&
22717 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
22719 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
22720 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
22721 ## from Makefile.c can correctly provide the arg `-traditional' to the
22722 ## C preprocessor.
22724 cat >conftest.$ac_ext <<_ACEOF
22725 /* confdefs.h. */
22726 _ACEOF
22727 cat confdefs.h >>conftest.$ac_ext
22728 cat >>conftest.$ac_ext <<_ACEOF
22729 /* end confdefs.h. */
22730 yes..yes
22731 _ACEOF
22732 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22733 $EGREP "yes..yes" >/dev/null 2>&1; then
22734 CPP_NEED_TRADITIONAL=no
22735 else
22736 CPP_NEED_TRADITIONAL=yes
22738 rm -f conftest*
22741 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"
22742 ac_config_commands="$ac_config_commands default"
22743 cat >confcache <<\_ACEOF
22744 # This file is a shell script that caches the results of configure
22745 # tests run on this system so they can be shared between configure
22746 # scripts and configure runs, see configure's option --config-cache.
22747 # It is not useful on other systems. If it contains results you don't
22748 # want to keep, you may remove or edit it.
22750 # config.status only pays attention to the cache file if you give it
22751 # the --recheck option to rerun configure.
22753 # `ac_cv_env_foo' variables (set or unset) will be overridden when
22754 # loading this file, other *unset* `ac_cv_foo' will be assigned the
22755 # following values.
22757 _ACEOF
22759 # The following way of writing the cache mishandles newlines in values,
22760 # but we know of no workaround that is simple, portable, and efficient.
22761 # So, don't put newlines in cache variables' values.
22762 # Ultrix sh set writes to stderr and can't be redirected directly,
22763 # and sets the high bit in the cache file unless we assign to the vars.
22765 (set) 2>&1 |
22766 case `(ac_space=' '; set | grep ac_space) 2>&1` in
22767 *ac_space=\ *)
22768 # `set' does not quote correctly, so add quotes (double-quote
22769 # substitution turns \\\\ into \\, and sed turns \\ into \).
22770 sed -n \
22771 "s/'/'\\\\''/g;
22772 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22775 # `set' quotes correctly as required by POSIX, so do not add quotes.
22776 sed -n \
22777 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
22779 esac;
22781 sed '
22782 t clear
22783 : clear
22784 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22785 t end
22786 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22787 : end' >>confcache
22788 if diff $cache_file confcache >/dev/null 2>&1; then :; else
22789 if test -w $cache_file; then
22790 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
22791 cat confcache >$cache_file
22792 else
22793 echo "not updating unwritable cache $cache_file"
22796 rm -f confcache
22798 test "x$prefix" = xNONE && prefix=$ac_default_prefix
22799 # Let make expand exec_prefix.
22800 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22802 # VPATH may cause trouble with some makes, so we remove $(srcdir),
22803 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22804 # trailing colons and then remove the whole line if VPATH becomes empty
22805 # (actually we leave an empty line to preserve line numbers).
22806 if test "x$srcdir" = x.; then
22807 ac_vpsub='/^[ ]*VPATH[ ]*=/{
22808 s/:*\$(srcdir):*/:/;
22809 s/:*\${srcdir}:*/:/;
22810 s/:*@srcdir@:*/:/;
22811 s/^\([^=]*=[ ]*\):*/\1/;
22812 s/:*$//;
22813 s/^[^=]*=[ ]*$//;
22817 DEFS=-DHAVE_CONFIG_H
22819 ac_libobjs=
22820 ac_ltlibobjs=
22821 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22822 # 1. Remove the extension, and $U if already installed.
22823 ac_i=`echo "$ac_i" |
22824 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
22825 # 2. Add them.
22826 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
22827 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
22828 done
22829 LIBOBJS=$ac_libobjs
22831 LTLIBOBJS=$ac_ltlibobjs
22835 : ${CONFIG_STATUS=./config.status}
22836 ac_clean_files_save=$ac_clean_files
22837 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22838 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22839 echo "$as_me: creating $CONFIG_STATUS" >&6;}
22840 cat >$CONFIG_STATUS <<_ACEOF
22841 #! $SHELL
22842 # Generated by $as_me.
22843 # Run this file to recreate the current configuration.
22844 # Compiler output produced by configure, useful for debugging
22845 # configure, is in config.log if it exists.
22847 debug=false
22848 ac_cs_recheck=false
22849 ac_cs_silent=false
22850 SHELL=\${CONFIG_SHELL-$SHELL}
22851 _ACEOF
22853 cat >>$CONFIG_STATUS <<\_ACEOF
22854 ## --------------------- ##
22855 ## M4sh Initialization. ##
22856 ## --------------------- ##
22858 # Be Bourne compatible
22859 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22860 emulate sh
22861 NULLCMD=:
22862 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22863 # is contrary to our usage. Disable this feature.
22864 alias -g '${1+"$@"}'='"$@"'
22865 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22866 set -o posix
22868 DUALCASE=1; export DUALCASE # for MKS sh
22870 # Support unset when possible.
22871 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
22872 as_unset=unset
22873 else
22874 as_unset=false
22878 # Work around bugs in pre-3.0 UWIN ksh.
22879 $as_unset ENV MAIL MAILPATH
22880 PS1='$ '
22881 PS2='> '
22882 PS4='+ '
22884 # NLS nuisances.
22885 for as_var in \
22886 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
22887 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
22888 LC_TELEPHONE LC_TIME
22890 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
22891 eval $as_var=C; export $as_var
22892 else
22893 $as_unset $as_var
22895 done
22897 # Required to use basename.
22898 if expr a : '\(a\)' >/dev/null 2>&1; then
22899 as_expr=expr
22900 else
22901 as_expr=false
22904 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
22905 as_basename=basename
22906 else
22907 as_basename=false
22911 # Name of the executable.
22912 as_me=`$as_basename "$0" ||
22913 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22914 X"$0" : 'X\(//\)$' \| \
22915 X"$0" : 'X\(/\)$' \| \
22916 . : '\(.\)' 2>/dev/null ||
22917 echo X/"$0" |
22918 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
22919 /^X\/\(\/\/\)$/{ s//\1/; q; }
22920 /^X\/\(\/\).*/{ s//\1/; q; }
22921 s/.*/./; q'`
22924 # PATH needs CR, and LINENO needs CR and PATH.
22925 # Avoid depending upon Character Ranges.
22926 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22927 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22928 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22929 as_cr_digits='0123456789'
22930 as_cr_alnum=$as_cr_Letters$as_cr_digits
22932 # The user is always right.
22933 if test "${PATH_SEPARATOR+set}" != set; then
22934 echo "#! /bin/sh" >conf$$.sh
22935 echo "exit 0" >>conf$$.sh
22936 chmod +x conf$$.sh
22937 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
22938 PATH_SEPARATOR=';'
22939 else
22940 PATH_SEPARATOR=:
22942 rm -f conf$$.sh
22946 as_lineno_1=$LINENO
22947 as_lineno_2=$LINENO
22948 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
22949 test "x$as_lineno_1" != "x$as_lineno_2" &&
22950 test "x$as_lineno_3" = "x$as_lineno_2" || {
22951 # Find who we are. Look in the path if we contain no path at all
22952 # relative or not.
22953 case $0 in
22954 *[\\/]* ) as_myself=$0 ;;
22955 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22956 for as_dir in $PATH
22958 IFS=$as_save_IFS
22959 test -z "$as_dir" && as_dir=.
22960 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22961 done
22964 esac
22965 # We did not find ourselves, most probably we were run as `sh COMMAND'
22966 # in which case we are not to be found in the path.
22967 if test "x$as_myself" = x; then
22968 as_myself=$0
22970 if test ! -f "$as_myself"; then
22971 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
22972 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
22973 { (exit 1); exit 1; }; }
22975 case $CONFIG_SHELL in
22977 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22978 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
22980 IFS=$as_save_IFS
22981 test -z "$as_dir" && as_dir=.
22982 for as_base in sh bash ksh sh5; do
22983 case $as_dir in
22985 if ("$as_dir/$as_base" -c '
22986 as_lineno_1=$LINENO
22987 as_lineno_2=$LINENO
22988 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
22989 test "x$as_lineno_1" != "x$as_lineno_2" &&
22990 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
22991 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
22992 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
22993 CONFIG_SHELL=$as_dir/$as_base
22994 export CONFIG_SHELL
22995 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
22996 fi;;
22997 esac
22998 done
22999 done
23001 esac
23003 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
23004 # uniformly replaced by the line number. The first 'sed' inserts a
23005 # line-number line before each line; the second 'sed' does the real
23006 # work. The second script uses 'N' to pair each line-number line
23007 # with the numbered line, and appends trailing '-' during
23008 # substitution so that $LINENO is not a special case at line end.
23009 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
23010 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
23011 sed '=' <$as_myself |
23012 sed '
23014 s,$,-,
23015 : loop
23016 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
23017 t loop
23018 s,-$,,
23019 s,^['$as_cr_digits']*\n,,
23020 ' >$as_me.lineno &&
23021 chmod +x $as_me.lineno ||
23022 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
23023 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
23024 { (exit 1); exit 1; }; }
23026 # Don't try to exec as it changes $[0], causing all sort of problems
23027 # (the dirname of $[0] is not the place where we might find the
23028 # original and so on. Autoconf is especially sensible to this).
23029 . ./$as_me.lineno
23030 # Exit status is that of the last command.
23031 exit
23035 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
23036 *c*,-n*) ECHO_N= ECHO_C='
23037 ' ECHO_T=' ' ;;
23038 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
23039 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
23040 esac
23042 if expr a : '\(a\)' >/dev/null 2>&1; then
23043 as_expr=expr
23044 else
23045 as_expr=false
23048 rm -f conf$$ conf$$.exe conf$$.file
23049 echo >conf$$.file
23050 if ln -s conf$$.file conf$$ 2>/dev/null; then
23051 # We could just check for DJGPP; but this test a) works b) is more generic
23052 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
23053 if test -f conf$$.exe; then
23054 # Don't use ln at all; we don't have any links
23055 as_ln_s='cp -p'
23056 else
23057 as_ln_s='ln -s'
23059 elif ln conf$$.file conf$$ 2>/dev/null; then
23060 as_ln_s=ln
23061 else
23062 as_ln_s='cp -p'
23064 rm -f conf$$ conf$$.exe conf$$.file
23066 if mkdir -p . 2>/dev/null; then
23067 as_mkdir_p=:
23068 else
23069 test -d ./-p && rmdir ./-p
23070 as_mkdir_p=false
23073 as_executable_p="test -f"
23075 # Sed expression to map a string onto a valid CPP name.
23076 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
23078 # Sed expression to map a string onto a valid variable name.
23079 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
23082 # IFS
23083 # We need space, tab and new line, in precisely that order.
23084 as_nl='
23086 IFS=" $as_nl"
23088 # CDPATH.
23089 $as_unset CDPATH
23091 exec 6>&1
23093 # Open the log real soon, to keep \$[0] and so on meaningful, and to
23094 # report actual input values of CONFIG_FILES etc. instead of their
23095 # values after options handling. Logging --version etc. is OK.
23096 exec 5>>config.log
23098 echo
23099 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23100 ## Running $as_me. ##
23101 _ASBOX
23102 } >&5
23103 cat >&5 <<_CSEOF
23105 This file was extended by $as_me, which was
23106 generated by GNU Autoconf 2.59. Invocation command line was
23108 CONFIG_FILES = $CONFIG_FILES
23109 CONFIG_HEADERS = $CONFIG_HEADERS
23110 CONFIG_LINKS = $CONFIG_LINKS
23111 CONFIG_COMMANDS = $CONFIG_COMMANDS
23112 $ $0 $@
23114 _CSEOF
23115 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
23116 echo >&5
23117 _ACEOF
23119 # Files that config.status was made for.
23120 if test -n "$ac_config_files"; then
23121 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
23124 if test -n "$ac_config_headers"; then
23125 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
23128 if test -n "$ac_config_links"; then
23129 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
23132 if test -n "$ac_config_commands"; then
23133 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
23136 cat >>$CONFIG_STATUS <<\_ACEOF
23138 ac_cs_usage="\
23139 \`$as_me' instantiates files from templates according to the
23140 current configuration.
23142 Usage: $0 [OPTIONS] [FILE]...
23144 -h, --help print this help, then exit
23145 -V, --version print version number, then exit
23146 -q, --quiet do not print progress messages
23147 -d, --debug don't remove temporary files
23148 --recheck update $as_me by reconfiguring in the same conditions
23149 --file=FILE[:TEMPLATE]
23150 instantiate the configuration file FILE
23151 --header=FILE[:TEMPLATE]
23152 instantiate the configuration header FILE
23154 Configuration files:
23155 $config_files
23157 Configuration headers:
23158 $config_headers
23160 Configuration commands:
23161 $config_commands
23163 Report bugs to <bug-autoconf@gnu.org>."
23164 _ACEOF
23166 cat >>$CONFIG_STATUS <<_ACEOF
23167 ac_cs_version="\\
23168 config.status
23169 configured by $0, generated by GNU Autoconf 2.59,
23170 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
23172 Copyright (C) 2003 Free Software Foundation, Inc.
23173 This config.status script is free software; the Free Software Foundation
23174 gives unlimited permission to copy, distribute and modify it."
23175 srcdir=$srcdir
23176 INSTALL="$INSTALL"
23177 _ACEOF
23179 cat >>$CONFIG_STATUS <<\_ACEOF
23180 # If no file are specified by the user, then we need to provide default
23181 # value. By we need to know if files were specified by the user.
23182 ac_need_defaults=:
23183 while test $# != 0
23185 case $1 in
23186 --*=*)
23187 ac_option=`expr "x$1" : 'x\([^=]*\)='`
23188 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
23189 ac_shift=:
23192 ac_option=$1
23193 ac_optarg=$2
23194 ac_shift=shift
23196 *) # This is not an option, so the user has probably given explicit
23197 # arguments.
23198 ac_option=$1
23199 ac_need_defaults=false;;
23200 esac
23202 case $ac_option in
23203 # Handling of the options.
23204 _ACEOF
23205 cat >>$CONFIG_STATUS <<\_ACEOF
23206 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23207 ac_cs_recheck=: ;;
23208 --version | --vers* | -V )
23209 echo "$ac_cs_version"; exit 0 ;;
23210 --he | --h)
23211 # Conflict between --help and --header
23212 { { echo "$as_me:$LINENO: error: ambiguous option: $1
23213 Try \`$0 --help' for more information." >&5
23214 echo "$as_me: error: ambiguous option: $1
23215 Try \`$0 --help' for more information." >&2;}
23216 { (exit 1); exit 1; }; };;
23217 --help | --hel | -h )
23218 echo "$ac_cs_usage"; exit 0 ;;
23219 --debug | --d* | -d )
23220 debug=: ;;
23221 --file | --fil | --fi | --f )
23222 $ac_shift
23223 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
23224 ac_need_defaults=false;;
23225 --header | --heade | --head | --hea )
23226 $ac_shift
23227 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
23228 ac_need_defaults=false;;
23229 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
23230 | -silent | --silent | --silen | --sile | --sil | --si | --s)
23231 ac_cs_silent=: ;;
23233 # This is an error.
23234 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
23235 Try \`$0 --help' for more information." >&5
23236 echo "$as_me: error: unrecognized option: $1
23237 Try \`$0 --help' for more information." >&2;}
23238 { (exit 1); exit 1; }; } ;;
23240 *) ac_config_targets="$ac_config_targets $1" ;;
23242 esac
23243 shift
23244 done
23246 ac_configure_extra_args=
23248 if $ac_cs_silent; then
23249 exec 6>/dev/null
23250 ac_configure_extra_args="$ac_configure_extra_args --silent"
23253 _ACEOF
23254 cat >>$CONFIG_STATUS <<_ACEOF
23255 if \$ac_cs_recheck; then
23256 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
23257 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23260 _ACEOF
23262 cat >>$CONFIG_STATUS <<_ACEOF
23264 # INIT-COMMANDS section.
23267 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS"
23269 _ACEOF
23273 cat >>$CONFIG_STATUS <<\_ACEOF
23274 for ac_config_target in $ac_config_targets
23276 case "$ac_config_target" in
23277 # Handling of arguments.
23278 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
23279 "lib-src/Makefile.c" ) CONFIG_FILES="$CONFIG_FILES lib-src/Makefile.c:lib-src/Makefile.in" ;;
23280 "oldXMenu/Makefile" ) CONFIG_FILES="$CONFIG_FILES oldXMenu/Makefile" ;;
23281 "man/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
23282 "lwlib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lwlib/Makefile" ;;
23283 "src/Makefile.c" ) CONFIG_FILES="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;;
23284 "lisp/Makefile" ) CONFIG_FILES="$CONFIG_FILES lisp/Makefile" ;;
23285 "lispref/Makefile" ) CONFIG_FILES="$CONFIG_FILES lispref/Makefile" ;;
23286 "lispintro/Makefile" ) CONFIG_FILES="$CONFIG_FILES lispintro/Makefile" ;;
23287 "leim/Makefile" ) CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;;
23288 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
23289 "src/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:src/config.in" ;;
23290 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
23291 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
23292 { (exit 1); exit 1; }; };;
23293 esac
23294 done
23296 # If the user did not use the arguments to specify the items to instantiate,
23297 # then the envvar interface is used. Set only those that are not.
23298 # We use the long form for the default assignment because of an extremely
23299 # bizarre bug on SunOS 4.1.3.
23300 if $ac_need_defaults; then
23301 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23302 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
23303 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
23306 # Have a temporary directory for convenience. Make it in the build tree
23307 # simply because there is no reason to put it here, and in addition,
23308 # creating and moving files from /tmp can sometimes cause problems.
23309 # Create a temporary directory, and hook for its removal unless debugging.
23310 $debug ||
23312 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
23313 trap '{ (exit 1); exit 1; }' 1 2 13 15
23316 # Create a (secure) tmp directory for tmp files.
23319 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
23320 test -n "$tmp" && test -d "$tmp"
23321 } ||
23323 tmp=./confstat$$-$RANDOM
23324 (umask 077 && mkdir $tmp)
23325 } ||
23327 echo "$me: cannot create a temporary directory in ." >&2
23328 { (exit 1); exit 1; }
23331 _ACEOF
23333 cat >>$CONFIG_STATUS <<_ACEOF
23336 # CONFIG_FILES section.
23339 # No need to generate the scripts if there are no CONFIG_FILES.
23340 # This happens for instance when ./config.status config.h
23341 if test -n "\$CONFIG_FILES"; then
23342 # Protect against being on the right side of a sed subst in config.status.
23343 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
23344 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
23345 s,@SHELL@,$SHELL,;t t
23346 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
23347 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
23348 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
23349 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
23350 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
23351 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
23352 s,@exec_prefix@,$exec_prefix,;t t
23353 s,@prefix@,$prefix,;t t
23354 s,@program_transform_name@,$program_transform_name,;t t
23355 s,@bindir@,$bindir,;t t
23356 s,@sbindir@,$sbindir,;t t
23357 s,@libexecdir@,$libexecdir,;t t
23358 s,@datadir@,$datadir,;t t
23359 s,@sysconfdir@,$sysconfdir,;t t
23360 s,@sharedstatedir@,$sharedstatedir,;t t
23361 s,@localstatedir@,$localstatedir,;t t
23362 s,@libdir@,$libdir,;t t
23363 s,@includedir@,$includedir,;t t
23364 s,@oldincludedir@,$oldincludedir,;t t
23365 s,@infodir@,$infodir,;t t
23366 s,@mandir@,$mandir,;t t
23367 s,@build_alias@,$build_alias,;t t
23368 s,@host_alias@,$host_alias,;t t
23369 s,@target_alias@,$target_alias,;t t
23370 s,@DEFS@,$DEFS,;t t
23371 s,@ECHO_C@,$ECHO_C,;t t
23372 s,@ECHO_N@,$ECHO_N,;t t
23373 s,@ECHO_T@,$ECHO_T,;t t
23374 s,@LIBS@,$LIBS,;t t
23375 s,@MAINT@,$MAINT,;t t
23376 s,@build@,$build,;t t
23377 s,@build_cpu@,$build_cpu,;t t
23378 s,@build_vendor@,$build_vendor,;t t
23379 s,@build_os@,$build_os,;t t
23380 s,@host@,$host,;t t
23381 s,@host_cpu@,$host_cpu,;t t
23382 s,@host_vendor@,$host_vendor,;t t
23383 s,@host_os@,$host_os,;t t
23384 s,@CC@,$CC,;t t
23385 s,@CFLAGS@,$CFLAGS,;t t
23386 s,@LDFLAGS@,$LDFLAGS,;t t
23387 s,@CPPFLAGS@,$CPPFLAGS,;t t
23388 s,@ac_ct_CC@,$ac_ct_CC,;t t
23389 s,@EXEEXT@,$EXEEXT,;t t
23390 s,@OBJEXT@,$OBJEXT,;t t
23391 s,@CPP@,$CPP,;t t
23392 s,@EGREP@,$EGREP,;t t
23393 s,@LN_S@,$LN_S,;t t
23394 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
23395 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
23396 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
23397 s,@RANLIB@,$RANLIB,;t t
23398 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
23399 s,@INSTALL_INFO@,$INSTALL_INFO,;t t
23400 s,@GZIP_PROG@,$GZIP_PROG,;t t
23401 s,@LIBSOUND@,$LIBSOUND,;t t
23402 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
23403 s,@ALSA_CFLAGS@,$ALSA_CFLAGS,;t t
23404 s,@ALSA_LIBS@,$ALSA_LIBS,;t t
23405 s,@CFLAGS_SOUND@,$CFLAGS_SOUND,;t t
23406 s,@SET_MAKE@,$SET_MAKE,;t t
23407 s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
23408 s,@GTK_LIBS@,$GTK_LIBS,;t t
23409 s,@ALLOCA@,$ALLOCA,;t t
23410 s,@liblockfile@,$liblockfile,;t t
23411 s,@LIBOBJS@,$LIBOBJS,;t t
23412 s,@NEED_SETGID@,$NEED_SETGID,;t t
23413 s,@KMEM_GROUP@,$KMEM_GROUP,;t t
23414 s,@GETLOADAVG_LIBS@,$GETLOADAVG_LIBS,;t t
23415 s,@GETOPT_H@,$GETOPT_H,;t t
23416 s,@GETOPTOBJS@,$GETOPTOBJS,;t t
23417 s,@version@,$version,;t t
23418 s,@configuration@,$configuration,;t t
23419 s,@canonical@,$canonical,;t t
23420 s,@srcdir@,$srcdir,;t t
23421 s,@lispdir@,$lispdir,;t t
23422 s,@locallisppath@,$locallisppath,;t t
23423 s,@lisppath@,$lisppath,;t t
23424 s,@x_default_search_path@,$x_default_search_path,;t t
23425 s,@etcdir@,$etcdir,;t t
23426 s,@archlibdir@,$archlibdir,;t t
23427 s,@docdir@,$docdir,;t t
23428 s,@bitmapdir@,$bitmapdir,;t t
23429 s,@gamedir@,$gamedir,;t t
23430 s,@gameuser@,$gameuser,;t t
23431 s,@c_switch_system@,$c_switch_system,;t t
23432 s,@c_switch_machine@,$c_switch_machine,;t t
23433 s,@LD_SWITCH_X_SITE@,$LD_SWITCH_X_SITE,;t t
23434 s,@LD_SWITCH_X_SITE_AUX@,$LD_SWITCH_X_SITE_AUX,;t t
23435 s,@C_SWITCH_X_SITE@,$C_SWITCH_X_SITE,;t t
23436 s,@X_TOOLKIT_TYPE@,$X_TOOLKIT_TYPE,;t t
23437 s,@machfile@,$machfile,;t t
23438 s,@opsysfile@,$opsysfile,;t t
23439 s,@carbon_appdir@,$carbon_appdir,;t t
23440 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
23441 CEOF
23443 _ACEOF
23445 cat >>$CONFIG_STATUS <<\_ACEOF
23446 # Split the substitutions into bite-sized pieces for seds with
23447 # small command number limits, like on Digital OSF/1 and HP-UX.
23448 ac_max_sed_lines=48
23449 ac_sed_frag=1 # Number of current file.
23450 ac_beg=1 # First line for current file.
23451 ac_end=$ac_max_sed_lines # Line after last line for current file.
23452 ac_more_lines=:
23453 ac_sed_cmds=
23454 while $ac_more_lines; do
23455 if test $ac_beg -gt 1; then
23456 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
23457 else
23458 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
23460 if test ! -s $tmp/subs.frag; then
23461 ac_more_lines=false
23462 else
23463 # The purpose of the label and of the branching condition is to
23464 # speed up the sed processing (if there are no `@' at all, there
23465 # is no need to browse any of the substitutions).
23466 # These are the two extra sed commands mentioned above.
23467 (echo ':t
23468 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
23469 if test -z "$ac_sed_cmds"; then
23470 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
23471 else
23472 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
23474 ac_sed_frag=`expr $ac_sed_frag + 1`
23475 ac_beg=$ac_end
23476 ac_end=`expr $ac_end + $ac_max_sed_lines`
23478 done
23479 if test -z "$ac_sed_cmds"; then
23480 ac_sed_cmds=cat
23482 fi # test -n "$CONFIG_FILES"
23484 _ACEOF
23485 cat >>$CONFIG_STATUS <<\_ACEOF
23486 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
23487 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23488 case $ac_file in
23489 - | *:- | *:-:* ) # input from stdin
23490 cat >$tmp/stdin
23491 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23492 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23493 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23494 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23495 * ) ac_file_in=$ac_file.in ;;
23496 esac
23498 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
23499 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
23500 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23501 X"$ac_file" : 'X\(//\)[^/]' \| \
23502 X"$ac_file" : 'X\(//\)$' \| \
23503 X"$ac_file" : 'X\(/\)' \| \
23504 . : '\(.\)' 2>/dev/null ||
23505 echo X"$ac_file" |
23506 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23507 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23508 /^X\(\/\/\)$/{ s//\1/; q; }
23509 /^X\(\/\).*/{ s//\1/; q; }
23510 s/.*/./; q'`
23511 { if $as_mkdir_p; then
23512 mkdir -p "$ac_dir"
23513 else
23514 as_dir="$ac_dir"
23515 as_dirs=
23516 while test ! -d "$as_dir"; do
23517 as_dirs="$as_dir $as_dirs"
23518 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23519 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23520 X"$as_dir" : 'X\(//\)[^/]' \| \
23521 X"$as_dir" : 'X\(//\)$' \| \
23522 X"$as_dir" : 'X\(/\)' \| \
23523 . : '\(.\)' 2>/dev/null ||
23524 echo X"$as_dir" |
23525 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23526 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23527 /^X\(\/\/\)$/{ s//\1/; q; }
23528 /^X\(\/\).*/{ s//\1/; q; }
23529 s/.*/./; q'`
23530 done
23531 test ! -n "$as_dirs" || mkdir $as_dirs
23532 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23533 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23534 { (exit 1); exit 1; }; }; }
23536 ac_builddir=.
23538 if test "$ac_dir" != .; then
23539 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23540 # A "../" for each directory in $ac_dir_suffix.
23541 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23542 else
23543 ac_dir_suffix= ac_top_builddir=
23546 case $srcdir in
23547 .) # No --srcdir option. We are building in place.
23548 ac_srcdir=.
23549 if test -z "$ac_top_builddir"; then
23550 ac_top_srcdir=.
23551 else
23552 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23553 fi ;;
23554 [\\/]* | ?:[\\/]* ) # Absolute path.
23555 ac_srcdir=$srcdir$ac_dir_suffix;
23556 ac_top_srcdir=$srcdir ;;
23557 *) # Relative path.
23558 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23559 ac_top_srcdir=$ac_top_builddir$srcdir ;;
23560 esac
23562 # Do not use `cd foo && pwd` to compute absolute paths, because
23563 # the directories may not exist.
23564 case `pwd` in
23565 .) ac_abs_builddir="$ac_dir";;
23567 case "$ac_dir" in
23568 .) ac_abs_builddir=`pwd`;;
23569 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
23570 *) ac_abs_builddir=`pwd`/"$ac_dir";;
23571 esac;;
23572 esac
23573 case $ac_abs_builddir in
23574 .) ac_abs_top_builddir=${ac_top_builddir}.;;
23576 case ${ac_top_builddir}. in
23577 .) ac_abs_top_builddir=$ac_abs_builddir;;
23578 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
23579 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
23580 esac;;
23581 esac
23582 case $ac_abs_builddir in
23583 .) ac_abs_srcdir=$ac_srcdir;;
23585 case $ac_srcdir in
23586 .) ac_abs_srcdir=$ac_abs_builddir;;
23587 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
23588 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
23589 esac;;
23590 esac
23591 case $ac_abs_builddir in
23592 .) ac_abs_top_srcdir=$ac_top_srcdir;;
23594 case $ac_top_srcdir in
23595 .) ac_abs_top_srcdir=$ac_abs_builddir;;
23596 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
23597 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
23598 esac;;
23599 esac
23602 case $INSTALL in
23603 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
23604 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
23605 esac
23607 if test x"$ac_file" != x-; then
23608 { echo "$as_me:$LINENO: creating $ac_file" >&5
23609 echo "$as_me: creating $ac_file" >&6;}
23610 rm -f "$ac_file"
23612 # Let's still pretend it is `configure' which instantiates (i.e., don't
23613 # use $as_me), people would be surprised to read:
23614 # /* config.h. Generated by config.status. */
23615 if test x"$ac_file" = x-; then
23616 configure_input=
23617 else
23618 configure_input="$ac_file. "
23620 configure_input=$configure_input"Generated from `echo $ac_file_in |
23621 sed 's,.*/,,'` by configure."
23623 # First look for the input files in the build tree, otherwise in the
23624 # src tree.
23625 ac_file_inputs=`IFS=:
23626 for f in $ac_file_in; do
23627 case $f in
23628 -) echo $tmp/stdin ;;
23629 [\\/$]*)
23630 # Absolute (can't be DOS-style, as IFS=:)
23631 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23632 echo "$as_me: error: cannot find input file: $f" >&2;}
23633 { (exit 1); exit 1; }; }
23634 echo "$f";;
23635 *) # Relative
23636 if test -f "$f"; then
23637 # Build tree
23638 echo "$f"
23639 elif test -f "$srcdir/$f"; then
23640 # Source tree
23641 echo "$srcdir/$f"
23642 else
23643 # /dev/null tree
23644 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23645 echo "$as_me: error: cannot find input file: $f" >&2;}
23646 { (exit 1); exit 1; }; }
23647 fi;;
23648 esac
23649 done` || { (exit 1); exit 1; }
23650 _ACEOF
23651 cat >>$CONFIG_STATUS <<_ACEOF
23652 sed "$ac_vpsub
23653 $extrasub
23654 _ACEOF
23655 cat >>$CONFIG_STATUS <<\_ACEOF
23657 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23658 s,@configure_input@,$configure_input,;t t
23659 s,@srcdir@,$ac_srcdir,;t t
23660 s,@abs_srcdir@,$ac_abs_srcdir,;t t
23661 s,@top_srcdir@,$ac_top_srcdir,;t t
23662 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
23663 s,@builddir@,$ac_builddir,;t t
23664 s,@abs_builddir@,$ac_abs_builddir,;t t
23665 s,@top_builddir@,$ac_top_builddir,;t t
23666 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
23667 s,@INSTALL@,$ac_INSTALL,;t t
23668 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
23669 rm -f $tmp/stdin
23670 if test x"$ac_file" != x-; then
23671 mv $tmp/out $ac_file
23672 else
23673 cat $tmp/out
23674 rm -f $tmp/out
23677 done
23678 _ACEOF
23679 cat >>$CONFIG_STATUS <<\_ACEOF
23682 # CONFIG_HEADER section.
23685 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
23686 # NAME is the cpp macro being defined and VALUE is the value it is being given.
23688 # ac_d sets the value in "#define NAME VALUE" lines.
23689 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
23690 ac_dB='[ ].*$,\1#\2'
23691 ac_dC=' '
23692 ac_dD=',;t'
23693 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
23694 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
23695 ac_uB='$,\1#\2define\3'
23696 ac_uC=' '
23697 ac_uD=',;t'
23699 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
23700 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23701 case $ac_file in
23702 - | *:- | *:-:* ) # input from stdin
23703 cat >$tmp/stdin
23704 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23705 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23706 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23707 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23708 * ) ac_file_in=$ac_file.in ;;
23709 esac
23711 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
23712 echo "$as_me: creating $ac_file" >&6;}
23714 # First look for the input files in the build tree, otherwise in the
23715 # src tree.
23716 ac_file_inputs=`IFS=:
23717 for f in $ac_file_in; do
23718 case $f in
23719 -) echo $tmp/stdin ;;
23720 [\\/$]*)
23721 # Absolute (can't be DOS-style, as IFS=:)
23722 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23723 echo "$as_me: error: cannot find input file: $f" >&2;}
23724 { (exit 1); exit 1; }; }
23725 # Do quote $f, to prevent DOS paths from being IFS'd.
23726 echo "$f";;
23727 *) # Relative
23728 if test -f "$f"; then
23729 # Build tree
23730 echo "$f"
23731 elif test -f "$srcdir/$f"; then
23732 # Source tree
23733 echo "$srcdir/$f"
23734 else
23735 # /dev/null tree
23736 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23737 echo "$as_me: error: cannot find input file: $f" >&2;}
23738 { (exit 1); exit 1; }; }
23739 fi;;
23740 esac
23741 done` || { (exit 1); exit 1; }
23742 # Remove the trailing spaces.
23743 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
23745 _ACEOF
23747 # Transform confdefs.h into two sed scripts, `conftest.defines' and
23748 # `conftest.undefs', that substitutes the proper values into
23749 # config.h.in to produce config.h. The first handles `#define'
23750 # templates, and the second `#undef' templates.
23751 # And first: Protect against being on the right side of a sed subst in
23752 # config.status. Protect against being in an unquoted here document
23753 # in config.status.
23754 rm -f conftest.defines conftest.undefs
23755 # Using a here document instead of a string reduces the quoting nightmare.
23756 # Putting comments in sed scripts is not portable.
23758 # `end' is used to avoid that the second main sed command (meant for
23759 # 0-ary CPP macros) applies to n-ary macro definitions.
23760 # See the Autoconf documentation for `clear'.
23761 cat >confdef2sed.sed <<\_ACEOF
23762 s/[\\&,]/\\&/g
23763 s,[\\$`],\\&,g
23764 t clear
23765 : clear
23766 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
23767 t end
23768 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
23769 : end
23770 _ACEOF
23771 # If some macros were called several times there might be several times
23772 # the same #defines, which is useless. Nevertheless, we may not want to
23773 # sort them, since we want the *last* AC-DEFINE to be honored.
23774 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
23775 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
23776 rm -f confdef2sed.sed
23778 # This sed command replaces #undef with comments. This is necessary, for
23779 # example, in the case of _POSIX_SOURCE, which is predefined and required
23780 # on some systems where configure will not decide to define it.
23781 cat >>conftest.undefs <<\_ACEOF
23782 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
23783 _ACEOF
23785 # Break up conftest.defines because some shells have a limit on the size
23786 # of here documents, and old seds have small limits too (100 cmds).
23787 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
23788 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
23789 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
23790 echo ' :' >>$CONFIG_STATUS
23791 rm -f conftest.tail
23792 while grep . conftest.defines >/dev/null
23794 # Write a limited-size here document to $tmp/defines.sed.
23795 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
23796 # Speed up: don't consider the non `#define' lines.
23797 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
23798 # Work around the forget-to-reset-the-flag bug.
23799 echo 't clr' >>$CONFIG_STATUS
23800 echo ': clr' >>$CONFIG_STATUS
23801 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
23802 echo 'CEOF
23803 sed -f $tmp/defines.sed $tmp/in >$tmp/out
23804 rm -f $tmp/in
23805 mv $tmp/out $tmp/in
23806 ' >>$CONFIG_STATUS
23807 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
23808 rm -f conftest.defines
23809 mv conftest.tail conftest.defines
23810 done
23811 rm -f conftest.defines
23812 echo ' fi # grep' >>$CONFIG_STATUS
23813 echo >>$CONFIG_STATUS
23815 # Break up conftest.undefs because some shells have a limit on the size
23816 # of here documents, and old seds have small limits too (100 cmds).
23817 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
23818 rm -f conftest.tail
23819 while grep . conftest.undefs >/dev/null
23821 # Write a limited-size here document to $tmp/undefs.sed.
23822 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
23823 # Speed up: don't consider the non `#undef'
23824 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
23825 # Work around the forget-to-reset-the-flag bug.
23826 echo 't clr' >>$CONFIG_STATUS
23827 echo ': clr' >>$CONFIG_STATUS
23828 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
23829 echo 'CEOF
23830 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
23831 rm -f $tmp/in
23832 mv $tmp/out $tmp/in
23833 ' >>$CONFIG_STATUS
23834 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
23835 rm -f conftest.undefs
23836 mv conftest.tail conftest.undefs
23837 done
23838 rm -f conftest.undefs
23840 cat >>$CONFIG_STATUS <<\_ACEOF
23841 # Let's still pretend it is `configure' which instantiates (i.e., don't
23842 # use $as_me), people would be surprised to read:
23843 # /* config.h. Generated by config.status. */
23844 if test x"$ac_file" = x-; then
23845 echo "/* Generated by configure. */" >$tmp/config.h
23846 else
23847 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
23849 cat $tmp/in >>$tmp/config.h
23850 rm -f $tmp/in
23851 if test x"$ac_file" != x-; then
23852 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
23853 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
23854 echo "$as_me: $ac_file is unchanged" >&6;}
23855 else
23856 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
23857 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23858 X"$ac_file" : 'X\(//\)[^/]' \| \
23859 X"$ac_file" : 'X\(//\)$' \| \
23860 X"$ac_file" : 'X\(/\)' \| \
23861 . : '\(.\)' 2>/dev/null ||
23862 echo X"$ac_file" |
23863 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23864 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23865 /^X\(\/\/\)$/{ s//\1/; q; }
23866 /^X\(\/\).*/{ s//\1/; q; }
23867 s/.*/./; q'`
23868 { if $as_mkdir_p; then
23869 mkdir -p "$ac_dir"
23870 else
23871 as_dir="$ac_dir"
23872 as_dirs=
23873 while test ! -d "$as_dir"; do
23874 as_dirs="$as_dir $as_dirs"
23875 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23876 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23877 X"$as_dir" : 'X\(//\)[^/]' \| \
23878 X"$as_dir" : 'X\(//\)$' \| \
23879 X"$as_dir" : 'X\(/\)' \| \
23880 . : '\(.\)' 2>/dev/null ||
23881 echo X"$as_dir" |
23882 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23883 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23884 /^X\(\/\/\)$/{ s//\1/; q; }
23885 /^X\(\/\).*/{ s//\1/; q; }
23886 s/.*/./; q'`
23887 done
23888 test ! -n "$as_dirs" || mkdir $as_dirs
23889 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23890 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23891 { (exit 1); exit 1; }; }; }
23893 rm -f $ac_file
23894 mv $tmp/config.h $ac_file
23896 else
23897 cat $tmp/config.h
23898 rm -f $tmp/config.h
23900 done
23901 _ACEOF
23902 cat >>$CONFIG_STATUS <<\_ACEOF
23905 # CONFIG_COMMANDS section.
23907 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
23908 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
23909 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
23910 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
23911 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23912 X"$ac_dest" : 'X\(//\)[^/]' \| \
23913 X"$ac_dest" : 'X\(//\)$' \| \
23914 X"$ac_dest" : 'X\(/\)' \| \
23915 . : '\(.\)' 2>/dev/null ||
23916 echo X"$ac_dest" |
23917 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23918 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23919 /^X\(\/\/\)$/{ s//\1/; q; }
23920 /^X\(\/\).*/{ s//\1/; q; }
23921 s/.*/./; q'`
23922 { if $as_mkdir_p; then
23923 mkdir -p "$ac_dir"
23924 else
23925 as_dir="$ac_dir"
23926 as_dirs=
23927 while test ! -d "$as_dir"; do
23928 as_dirs="$as_dir $as_dirs"
23929 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23930 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23931 X"$as_dir" : 'X\(//\)[^/]' \| \
23932 X"$as_dir" : 'X\(//\)$' \| \
23933 X"$as_dir" : 'X\(/\)' \| \
23934 . : '\(.\)' 2>/dev/null ||
23935 echo X"$as_dir" |
23936 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23937 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23938 /^X\(\/\/\)$/{ s//\1/; q; }
23939 /^X\(\/\).*/{ s//\1/; q; }
23940 s/.*/./; q'`
23941 done
23942 test ! -n "$as_dirs" || mkdir $as_dirs
23943 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23944 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23945 { (exit 1); exit 1; }; }; }
23947 ac_builddir=.
23949 if test "$ac_dir" != .; then
23950 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23951 # A "../" for each directory in $ac_dir_suffix.
23952 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23953 else
23954 ac_dir_suffix= ac_top_builddir=
23957 case $srcdir in
23958 .) # No --srcdir option. We are building in place.
23959 ac_srcdir=.
23960 if test -z "$ac_top_builddir"; then
23961 ac_top_srcdir=.
23962 else
23963 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23964 fi ;;
23965 [\\/]* | ?:[\\/]* ) # Absolute path.
23966 ac_srcdir=$srcdir$ac_dir_suffix;
23967 ac_top_srcdir=$srcdir ;;
23968 *) # Relative path.
23969 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23970 ac_top_srcdir=$ac_top_builddir$srcdir ;;
23971 esac
23973 # Do not use `cd foo && pwd` to compute absolute paths, because
23974 # the directories may not exist.
23975 case `pwd` in
23976 .) ac_abs_builddir="$ac_dir";;
23978 case "$ac_dir" in
23979 .) ac_abs_builddir=`pwd`;;
23980 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
23981 *) ac_abs_builddir=`pwd`/"$ac_dir";;
23982 esac;;
23983 esac
23984 case $ac_abs_builddir in
23985 .) ac_abs_top_builddir=${ac_top_builddir}.;;
23987 case ${ac_top_builddir}. in
23988 .) ac_abs_top_builddir=$ac_abs_builddir;;
23989 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
23990 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
23991 esac;;
23992 esac
23993 case $ac_abs_builddir in
23994 .) ac_abs_srcdir=$ac_srcdir;;
23996 case $ac_srcdir in
23997 .) ac_abs_srcdir=$ac_abs_builddir;;
23998 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
23999 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
24000 esac;;
24001 esac
24002 case $ac_abs_builddir in
24003 .) ac_abs_top_srcdir=$ac_top_srcdir;;
24005 case $ac_top_srcdir in
24006 .) ac_abs_top_srcdir=$ac_abs_builddir;;
24007 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
24008 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
24009 esac;;
24010 esac
24013 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
24014 echo "$as_me: executing $ac_dest commands" >&6;}
24015 case $ac_dest in
24016 default )
24018 ### Make the necessary directories, if they don't exist.
24019 for dir in etc lisp ; do
24020 test -d ${dir} || mkdir ${dir}
24021 done
24023 # Build src/Makefile from ${srcdir}/src/Makefile.c
24024 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
24025 # This must be done after src/config.h is built, since we rely on that file.
24027 # Now get this: Some word that is part of the ${srcdir} directory name
24028 # or the ${configuration} value might, just might, happen to be an
24029 # identifier like `sun4' or `i386' or something, and be predefined by
24030 # the C preprocessor to some helpful value like 1, or maybe the empty
24031 # string. Needless to say consequent macro substitutions are less
24032 # than conducive to the makefile finding the correct directory.
24033 undefs="`echo $top_srcdir $configuration $canonical |
24034 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
24035 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g' \
24038 echo creating src/epaths.h
24039 ${MAKE-make} epaths-force
24041 # As of 2000-11-19, newest development versions of GNU cpp preprocess
24042 # `..' to `. .' unless invoked with -traditional
24044 if test "x$GCC" = xyes && test "x$CPP_NEED_TRADITIONAL" = xyes; then
24045 CPPFLAGS="$CPPFLAGS -traditional"
24048 echo creating lib-src/Makefile
24049 ( cd lib-src
24050 rm -f junk.c junk1.c junk2.c
24051 sed -e '/start of cpp stuff/q' \
24052 < Makefile.c > junk1.c
24053 sed -e '1,/start of cpp stuff/d'\
24054 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
24055 < Makefile.c > junk.c
24056 $CPP $undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
24057 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
24058 cat junk1.c junk2.c > Makefile.new
24059 rm -f junk.c junk1.c junk2.c
24060 chmod 444 Makefile.new
24061 mv -f Makefile.new Makefile
24064 echo creating src/Makefile
24065 ( cd src
24066 rm -f junk.c junk1.c junk2.c
24067 sed -e '/start of cpp stuff/q' \
24068 < Makefile.c > junk1.c
24069 sed -e '1,/start of cpp stuff/d'\
24070 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
24071 < Makefile.c > junk.c
24072 $CPP $undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
24073 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
24074 cat junk1.c junk2.c > Makefile.new
24075 rm -f junk.c junk1.c junk2.c
24076 chmod 444 Makefile.new
24077 mv -f Makefile.new Makefile
24080 if test ! -f src/.gdbinit && test -f $srcdir/src/.gdbinit; then
24081 echo creating src/.gdbinit
24082 echo source $srcdir/src/.gdbinit > src/.gdbinit
24085 # This is how we know whether to re-run configure in certain cases.
24086 touch src/config.stamp
24089 esac
24090 done
24091 _ACEOF
24093 cat >>$CONFIG_STATUS <<\_ACEOF
24095 { (exit 0); exit 0; }
24096 _ACEOF
24097 chmod +x $CONFIG_STATUS
24098 ac_clean_files=$ac_clean_files_save
24101 # configure is writing to config.log, and then calls config.status.
24102 # config.status does its own redirection, appending to config.log.
24103 # Unfortunately, on DOS this fails, as config.log is still kept open
24104 # by configure, so config.status won't be able to write to it; its
24105 # output is simply discarded. So we exec the FD to /dev/null,
24106 # effectively closing config.log, so it can be properly (re)opened and
24107 # appended to by config.status. When coming back to configure, we
24108 # need to make the FD available again.
24109 if test "$no_create" != yes; then
24110 ac_cs_success=:
24111 ac_config_status_args=
24112 test "$silent" = yes &&
24113 ac_config_status_args="$ac_config_status_args --quiet"
24114 exec 5>/dev/null
24115 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
24116 exec 5>>config.log
24117 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24118 # would make configure fail if this is the last instruction.
24119 $ac_cs_success || { (exit 1); exit 1; }