(readevalloop): Abort if START non-nil for non-buffer input.
[bpt/emacs.git] / configure
... / ...
CommitLineData
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.59.
4#
5# Copyright (C) 2003, 2006 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## --------------------- ##
11
12# Be Bourne compatible
13if 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+"$@"}'='"$@"'
19elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20 set -o posix
21fi
22DUALCASE=1; export DUALCASE # for MKS sh
23
24# Support unset when possible.
25if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26 as_unset=unset
27else
28 as_unset=false
29fi
30
31
32# Work around bugs in pre-3.0 UWIN ksh.
33$as_unset ENV MAIL MAILPATH
34PS1='$ '
35PS2='> '
36PS4='+ '
37
38# NLS nuisances.
39for 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
43do
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
48 fi
49done
50
51# Required to use basename.
52if expr a : '\(a\)' >/dev/null 2>&1; then
53 as_expr=expr
54else
55 as_expr=false
56fi
57
58if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59 as_basename=basename
60else
61 as_basename=false
62fi
63
64
65# Name of the executable.
66as_me=`$as_basename "$0" ||
67$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
71echo X/"$0" |
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
75 s/.*/./; q'`
76
77
78# PATH needs CR, and LINENO needs CR and PATH.
79# Avoid depending upon Character Ranges.
80as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83as_cr_digits='0123456789'
84as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86# The user is always right.
87if 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=:
95 fi
96 rm -f conf$$.sh
97fi
98
99
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
110for as_dir in $PATH
111do
112 IFS=$as_save_IFS
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115done
116
117 ;;
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
123 fi
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; }; }
127 fi
128 case $CONFIG_SHELL in
129 '')
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132do
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
137 /*)
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
152done
153;;
154 esac
155
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 '
166 N
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; }; }
177
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
184}
185
186
187case `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= ;;
192esac
193
194if expr a : '\(a\)' >/dev/null 2>&1; then
195 as_expr=expr
196else
197 as_expr=false
198fi
199
200rm -f conf$$ conf$$.exe conf$$.file
201echo >conf$$.file
202if 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'
210 fi
211elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213else
214 as_ln_s='cp -p'
215fi
216rm -f conf$$ conf$$.exe conf$$.file
217
218if mkdir -p . 2>/dev/null; then
219 as_mkdir_p=:
220else
221 test -d ./-p && rmdir ./-p
222 as_mkdir_p=false
223fi
224
225as_executable_p="test -f"
226
227# Sed expression to map a string onto a valid CPP name.
228as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
229
230# Sed expression to map a string onto a valid variable name.
231as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
232
233
234# IFS
235# We need space, tab and new line, in precisely that order.
236as_nl='
237'
238IFS=" $as_nl"
239
240# CDPATH.
241$as_unset CDPATH
242
243
244# Name of the host.
245# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246# so uname gets run too.
247ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
248
249exec 6>&1
250
251#
252# Initializations.
253#
254ac_default_prefix=/usr/local
255ac_config_libobj_dir=.
256cross_compiling=no
257subdirs=
258MFLAGS=
259MAKEFLAGS=
260SHELL=${CONFIG_SHELL-/bin/sh}
261
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}
266
267# Identity of this package.
268PACKAGE_NAME=
269PACKAGE_TARNAME=
270PACKAGE_VERSION=
271PACKAGE_STRING=
272PACKAGE_BUGREPORT=
273
274ac_unique_file="src/lisp.h"
275ac_config_libobj_dir=src
276# Factoring default headers for most tests.
277ac_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"
312
313ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS MAINT build build_cpu build_vendor build_os host host_cpu host_vendor host_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP EGREP LN_S INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA RANLIB ac_ct_RANLIB INSTALL_INFO GZIP_PROG LIBSOUND SET_MAKE PKG_CONFIG GTK_CFLAGS GTK_LIBS ALLOCA liblockfile LIBOBJS NEED_SETGID KMEM_GROUP GETLOADAVG_LIBS GETOPT_H GETOPTOBJS version configuration canonical srcdir lispdir locallisppath lisppath x_default_search_path etcdir archlibdir docdir bitmapdir gamedir gameuser c_switch_system c_switch_machine LD_SWITCH_X_SITE LD_SWITCH_X_SITE_AUX C_SWITCH_X_SITE X_TOOLKIT_TYPE machfile opsysfile carbon_appdir LTLIBOBJS'
314ac_subst_files=''
315
316# Initialize some variables set by options.
317ac_init_help=
318ac_init_version=false
319# The variables have the same names as the options, with
320# dashes changed to underlines.
321cache_file=/dev/null
322exec_prefix=NONE
323no_create=
324no_recursion=
325prefix=NONE
326program_prefix=NONE
327program_suffix=NONE
328program_transform_name=s,x,x,
329silent=
330site=
331srcdir=
332verbose=
333x_includes=NONE
334x_libraries=NONE
335
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.
341bindir='${exec_prefix}/bin'
342sbindir='${exec_prefix}/sbin'
343libexecdir='${exec_prefix}/libexec'
344datadir='${prefix}/share'
345sysconfdir='${prefix}/etc'
346sharedstatedir='${prefix}/com'
347localstatedir='${prefix}/var'
348libdir='${exec_prefix}/lib'
349includedir='${prefix}/include'
350oldincludedir='/usr/include'
351infodir='${prefix}/info'
352mandir='${prefix}/man'
353
354ac_prev=
355for ac_option
356do
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
362 fi
363
364 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
365
366 # Accept the important Cygnus configure options, so we can diagnose typos.
367
368 case $ac_option in
369
370 -bindir | --bindir | --bindi | --bind | --bin | --bi)
371 ac_prev=bindir ;;
372 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
373 bindir=$ac_optarg ;;
374
375 -build | --build | --buil | --bui | --bu)
376 ac_prev=build_alias ;;
377 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
378 build_alias=$ac_optarg ;;
379
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 ;;
386
387 --config-cache | -C)
388 cache_file=config.cache ;;
389
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 ;;
395
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" ;;
404
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'" ;;
417
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 ;;
426
427 -gas | --gas | --ga | --g)
428 # Obsolete; use --with-gas.
429 with_gas=yes ;;
430
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 ;;
437
438 -host | --host | --hos | --ho)
439 ac_prev=host_alias ;;
440 -host=* | --host=* | --hos=* | --ho=*)
441 host_alias=$ac_optarg ;;
442
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 ;;
449
450 -infodir | --infodir | --infodi | --infod | --info | --inf)
451 ac_prev=infodir ;;
452 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
453 infodir=$ac_optarg ;;
454
455 -libdir | --libdir | --libdi | --libd)
456 ac_prev=libdir ;;
457 -libdir=* | --libdir=* | --libdi=* | --libd=*)
458 libdir=$ac_optarg ;;
459
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 ;;
466
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 ;;
475
476 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
477 ac_prev=mandir ;;
478 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
479 mandir=$ac_optarg ;;
480
481 -nfp | --nfp | --nf)
482 # Obsolete; use --without-fp.
483 with_fp=no ;;
484
485 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
486 | --no-cr | --no-c | -n)
487 no_create=yes ;;
488
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 ;;
492
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 ;;
501
502 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
503 ac_prev=prefix ;;
504 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
505 prefix=$ac_optarg ;;
506
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 ;;
513
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 ;;
520
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 ;;
537
538 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
539 | -silent | --silent | --silen | --sile | --sil)
540 silent=yes ;;
541
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 ;;
547
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 ;;
558
559 -site | --site | --sit)
560 ac_prev=site ;;
561 -site=* | --site=* | --sit=*)
562 site=$ac_optarg ;;
563
564 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
565 ac_prev=srcdir ;;
566 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
567 srcdir=$ac_optarg ;;
568
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 ;;
575
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 ;;
580
581 -v | -verbose | --verbose | --verbos | --verbo | --verb)
582 verbose=yes ;;
583
584 -version | --version | --versio | --versi | --vers | -V)
585 ac_init_version=: ;;
586
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'" ;;
599
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" ;;
608
609 --x)
610 # Obsolete; use --with-x.
611 with_x=yes ;;
612
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 ;;
619
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 ;;
626
627 -*) { echo "$as_me: error: unrecognized option: $ac_option
628Try \`$0 --help' for more information." >&2
629 { (exit 1); exit 1; }; }
630 ;;
631
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 ;;
641
642 *)
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}
648 ;;
649
650 esac
651done
652
653if 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; }; }
657fi
658
659# Be sure to have absolute paths.
660for ac_var in exec_prefix prefix
661do
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
668done
669
670# Be sure to have absolute paths.
671for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
672 localstatedir libdir includedir oldincludedir infodir mandir
673do
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
680done
681
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.
685build=$build_alias
686host=$host_alias
687target=$target_alias
688
689# FIXME: To remove some day.
690if 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
697 fi
698fi
699
700ac_tool_prefix=
701test -n "$host_alias" && ac_tool_prefix=$host_alias-
702
703test "$silent" = yes && exec 6>/dev/null
704
705
706# Find the source files, if location was not specified.
707if 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 ||
716echo 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=..
725 fi
726else
727 ac_srcdir_defaulted=no
728fi
729if 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; }; }
736 fi
737fi
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; }; }
741srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
742ac_env_build_alias_set=${build_alias+set}
743ac_env_build_alias_value=$build_alias
744ac_cv_env_build_alias_set=${build_alias+set}
745ac_cv_env_build_alias_value=$build_alias
746ac_env_host_alias_set=${host_alias+set}
747ac_env_host_alias_value=$host_alias
748ac_cv_env_host_alias_set=${host_alias+set}
749ac_cv_env_host_alias_value=$host_alias
750ac_env_target_alias_set=${target_alias+set}
751ac_env_target_alias_value=$target_alias
752ac_cv_env_target_alias_set=${target_alias+set}
753ac_cv_env_target_alias_value=$target_alias
754ac_env_CC_set=${CC+set}
755ac_env_CC_value=$CC
756ac_cv_env_CC_set=${CC+set}
757ac_cv_env_CC_value=$CC
758ac_env_CFLAGS_set=${CFLAGS+set}
759ac_env_CFLAGS_value=$CFLAGS
760ac_cv_env_CFLAGS_set=${CFLAGS+set}
761ac_cv_env_CFLAGS_value=$CFLAGS
762ac_env_LDFLAGS_set=${LDFLAGS+set}
763ac_env_LDFLAGS_value=$LDFLAGS
764ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
765ac_cv_env_LDFLAGS_value=$LDFLAGS
766ac_env_CPPFLAGS_set=${CPPFLAGS+set}
767ac_env_CPPFLAGS_value=$CPPFLAGS
768ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
769ac_cv_env_CPPFLAGS_value=$CPPFLAGS
770ac_env_CPP_set=${CPP+set}
771ac_env_CPP_value=$CPP
772ac_cv_env_CPP_set=${CPP+set}
773ac_cv_env_CPP_value=$CPP
774
775#
776# Report the --help message.
777#
778if 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.
783
784Usage: $0 [OPTION]... [VAR=VALUE]...
785
786To assign environment variables (e.g., CC, CFLAGS...), specify them as
787VAR=VALUE. See below for descriptions of some of the useful variables.
788
789Defaults for the options are specified in brackets.
790
791Configuration:
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 \`..']
801
802_ACEOF
803
804 cat <<_ACEOF
805Installation 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]
810
811By default, \`make install' will install all the files in
812\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
813an installation prefix other than \`$ac_default_prefix' using \`--prefix',
814for instance \`--prefix=\$HOME'.
815
816For better control, use the options below.
817
818Fine 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
832
833 cat <<\_ACEOF
834
835Program 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
839
840X features:
841 --x-includes=DIR X include files are in DIR
842 --x-libraries=DIR X library files are in DIR
843
844System 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
848fi
849
850if test -n "$ac_init_help"; then
851
852 cat <<\_ACEOF
853
854Optional 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
866
867Optional 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
890
891Some 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
899
900Use these variables to override the choices made by `configure' or to help
901it to find libraries and programs with nonstandard names/locations.
902
903_ACEOF
904fi
905
906if 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=.
912
913if 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'`
917else
918 ac_dir_suffix= ac_top_builddir=
919fi
920
921case $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 ;;
935esac
936
937# Do not use `cd foo && pwd` to compute absolute paths, because
938# the directories may not exist.
939case `pwd` in
940.) ac_abs_builddir="$ac_dir";;
941*)
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;;
947esac
948case $ac_abs_builddir in
949.) ac_abs_top_builddir=${ac_top_builddir}.;;
950*)
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;;
956esac
957case $ac_abs_builddir in
958.) ac_abs_srcdir=$ac_srcdir;;
959*)
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;;
965esac
966case $ac_abs_builddir in
967.) ac_abs_top_srcdir=$ac_top_srcdir;;
968*)
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;;
974esac
975
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
990 fi
991 cd $ac_popdir
992 done
993fi
994
995test -n "$ac_init_help" && exit 0
996if $ac_init_version; then
997 cat <<\_ACEOF
998
999Copyright (C) 2003 Free Software Foundation, Inc.
1000This configure script is free software; the Free Software Foundation
1001gives unlimited permission to copy, distribute and modify it.
1002_ACEOF
1003 exit 0
1004fi
1005exec 5>config.log
1006cat >&5 <<_ACEOF
1007This file contains any messages produced by compilers while
1008running configure, to aid debugging if configure makes a mistake.
1009
1010It was created by $as_me, which was
1011generated by GNU Autoconf 2.59. Invocation command line was
1012
1013 $ $0 $@
1014
1015_ACEOF
1016{
1017cat <<_ASUNAME
1018## --------- ##
1019## Platform. ##
1020## --------- ##
1021
1022hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1023uname -m = `(uname -m) 2>/dev/null || echo unknown`
1024uname -r = `(uname -r) 2>/dev/null || echo unknown`
1025uname -s = `(uname -s) 2>/dev/null || echo unknown`
1026uname -v = `(uname -v) 2>/dev/null || echo unknown`
1027
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`
1030
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`
1034hostinfo = `(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`
1038
1039_ASUNAME
1040
1041as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1042for as_dir in $PATH
1043do
1044 IFS=$as_save_IFS
1045 test -z "$as_dir" && as_dir=.
1046 echo "PATH: $as_dir"
1047done
1048
1049} >&5
1050
1051cat >&5 <<_ACEOF
1052
1053
1054## ----------- ##
1055## Core tests. ##
1056## ----------- ##
1057
1058_ACEOF
1059
1060
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.
1066ac_configure_args=
1067ac_configure_args0=
1068ac_configure_args1=
1069ac_sep=
1070ac_must_keep_next=false
1071for ac_pass in 1 2
1072do
1073 for ac_arg
1074 do
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'" ;;
1085 2)
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
1098 ;;
1099 -* ) ac_must_keep_next=true ;;
1100 esac
1101 fi
1102 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1103 # Get rid of the leading space.
1104 ac_sep=" "
1105 ;;
1106 esac
1107 done
1108done
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; }
1111
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.
1117trap 'exit_status=$?
1118 # Save into config.log some information that might help in debugging.
1119 {
1120 echo
1121
1122 cat <<\_ASBOX
1123## ---------------- ##
1124## Cache variables. ##
1125## ---------------- ##
1126_ASBOX
1127 echo
1128 # The following way of writing the cache mishandles newlines in values,
1129{
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"
1136 ;;
1137 *)
1138 sed -n \
1139 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1140 ;;
1141 esac;
1142}
1143 echo
1144
1145 cat <<\_ASBOX
1146## ----------------- ##
1147## Output variables. ##
1148## ----------------- ##
1149_ASBOX
1150 echo
1151 for ac_var in $ac_subst_vars
1152 do
1153 eval ac_val=$`echo $ac_var`
1154 echo "$ac_var='"'"'$ac_val'"'"'"
1155 done | sort
1156 echo
1157
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
1166 do
1167 eval ac_val=$`echo $ac_var`
1168 echo "$ac_var='"'"'$ac_val'"'"'"
1169 done | sort
1170 echo
1171 fi
1172
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
1182 fi
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
1190 ' 0
1191for ac_signal in 1 2 13 15; do
1192 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1193done
1194ac_signal=0
1195
1196# confdefs.h avoids OS command line length limits that DEFS can exceed.
1197rm -rf conftest* confdefs.h
1198# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1199echo >confdefs.h
1200
1201# Predefined preprocessor variables.
1202
1203cat >>confdefs.h <<_ACEOF
1204#define PACKAGE_NAME "$PACKAGE_NAME"
1205_ACEOF
1206
1207
1208cat >>confdefs.h <<_ACEOF
1209#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1210_ACEOF
1211
1212
1213cat >>confdefs.h <<_ACEOF
1214#define PACKAGE_VERSION "$PACKAGE_VERSION"
1215_ACEOF
1216
1217
1218cat >>confdefs.h <<_ACEOF
1219#define PACKAGE_STRING "$PACKAGE_STRING"
1220_ACEOF
1221
1222
1223cat >>confdefs.h <<_ACEOF
1224#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1225_ACEOF
1226
1227
1228# Let the site file select an alternate cache file if it wants to.
1229# Prefer explicitly selected file to automatically selected ones.
1230if 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"
1235 fi
1236fi
1237for 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
1240echo "$as_me: loading site script $ac_site_file" >&6;}
1241 sed 's/^/| /' "$ac_site_file" >&5
1242 . "$ac_site_file"
1243 fi
1244done
1245
1246if 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
1251echo "$as_me: loading cache $cache_file" >&6;}
1252 case $cache_file in
1253 [\\/]* | ?:[\\/]* ) . $cache_file;;
1254 *) . ./$cache_file;;
1255 esac
1256 fi
1257else
1258 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1259echo "$as_me: creating cache $cache_file" >&6;}
1260 >$cache_file
1261fi
1262
1263# Check that the precious variables saved in the cache have kept the same
1264# value.
1265ac_cache_corrupted=false
1266for 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
1275echo "$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
1279echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1280 ac_cache_corrupted=: ;;
1281 ,);;
1282 *)
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
1285echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1286 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1287echo "$as_me: former value: $ac_old_val" >&2;}
1288 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1289echo "$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
1304 fi
1305done
1306if $ac_cache_corrupted; then
1307 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1308echo "$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
1310echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1311 { (exit 1); exit 1; }; }
1312fi
1313
1314ac_ext=c
1315ac_cpp='$CPP $CPPFLAGS'
1316ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1317ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1318ac_compiler_gnu=$ac_cv_c_compiler_gnu
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
1339
1340
1341test "$program_prefix" != NONE &&
1342 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1343# Use a double $ so make ignores it.
1344test "$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.
1348cat <<\_ACEOF >conftest.sed
1349s/[\\$]/&&/g;s/;s,x,x,$//
1350_ACEOF
1351program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1352rm conftest.sed
1353
1354
1355lispdir='${datadir}/emacs/${version}/lisp'
1356locallisppath='${datadir}/emacs/${version}/site-lisp:'\
1357'${datadir}/emacs/site-lisp:${datadir}/emacs/${version}/leim'
1358lisppath='${locallisppath}:${lispdir}'
1359etcdir='${datadir}/emacs/${version}/etc'
1360archlibdir='${libexecdir}/emacs/${version}/${configuration}'
1361docdir='${datadir}/emacs/${version}/etc'
1362gamedir='${localstatedir}/games/emacs'
1363
1364gameuser=games
1365
1366
1367# Check whether --with-gcc or --without-gcc was given.
1368if test "${with_gcc+set}" = set; then
1369 withval="$with_gcc"
1370
1371fi;
1372
1373# Check whether --with-pop or --without-pop was given.
1374if 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
1380
1381else :
1382fi
1383else
1384 cat >>confdefs.h <<\_ACEOF
1385#define MAIL_USE_POP 1
1386_ACEOF
1387
1388fi;
1389
1390
1391# Check whether --with-kerberos or --without-kerberos was given.
1392if test "${with_kerberos+set}" = set; then
1393 withval="$with_kerberos"
1394 cat >>confdefs.h <<\_ACEOF
1395#define KERBEROS 1
1396_ACEOF
1397
1398fi;
1399
1400
1401# Check whether --with-kerberos5 or --without-kerberos5 was given.
1402if 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
1410
1411 fi
1412fi
1413
1414cat >>confdefs.h <<\_ACEOF
1415#define KERBEROS5 1
1416_ACEOF
1417
1418fi;
1419
1420# Check whether --with-hesiod or --without-hesiod was given.
1421if test "${with_hesiod+set}" = set; then
1422 withval="$with_hesiod"
1423
1424cat >>confdefs.h <<\_ACEOF
1425#define HESIOD 1
1426_ACEOF
1427
1428fi;
1429
1430
1431# Check whether --with-sound or --without-sound was given.
1432if test "${with_sound+set}" = set; then
1433 withval="$with_sound"
1434
1435fi;
1436
1437
1438# Check whether --with-x-toolkit or --without-x-toolkit was given.
1439if 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 ;;
1448 * )
1449{ { echo "$as_me:$LINENO: error: \`--with-x-toolkit=$withval' is invalid\;
1450this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
1451Currently, \`yes', \`athena' and \`lucid' are synonyms." >&5
1452echo "$as_me: error: \`--with-x-toolkit=$withval' is invalid\;
1453this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
1454Currently, \`yes', \`athena' and \`lucid' are synonyms." >&2;}
1455 { (exit 1); exit 1; }; }
1456 ;;
1457 esac
1458 with_x_toolkit=$val
1459
1460fi;
1461
1462# Check whether --with-xpm or --without-xpm was given.
1463if test "${with_xpm+set}" = set; then
1464 withval="$with_xpm"
1465
1466fi;
1467
1468# Check whether --with-jpeg or --without-jpeg was given.
1469if test "${with_jpeg+set}" = set; then
1470 withval="$with_jpeg"
1471
1472fi;
1473
1474# Check whether --with-tiff or --without-tiff was given.
1475if test "${with_tiff+set}" = set; then
1476 withval="$with_tiff"
1477
1478fi;
1479
1480# Check whether --with-gif or --without-gif was given.
1481if test "${with_gif+set}" = set; then
1482 withval="$with_gif"
1483
1484fi;
1485
1486# Check whether --with-png or --without-png was given.
1487if test "${with_png+set}" = set; then
1488 withval="$with_png"
1489
1490fi;
1491
1492# Check whether --with-gtk or --without-gtk was given.
1493if test "${with_gtk+set}" = set; then
1494 withval="$with_gtk"
1495
1496fi;
1497
1498# Check whether --with-pkg-config-prog or --without-pkg-config-prog was given.
1499if test "${with_pkg_config_prog+set}" = set; then
1500 withval="$with_pkg_config_prog"
1501
1502fi;
1503
1504# Check whether --with-toolkit-scroll-bars or --without-toolkit-scroll-bars was given.
1505if test "${with_toolkit_scroll_bars+set}" = set; then
1506 withval="$with_toolkit_scroll_bars"
1507
1508fi;
1509
1510# Check whether --with-xim or --without-xim was given.
1511if test "${with_xim+set}" = set; then
1512 withval="$with_xim"
1513
1514fi;
1515
1516# Check whether --with-carbon or --without-carbon was given.
1517if test "${with_carbon+set}" = set; then
1518 withval="$with_carbon"
1519
1520fi;
1521# Check whether --enable-carbon-app or --disable-carbon-app was given.
1522if test "${enable_carbon_app+set}" = set; then
1523 enableval="$enable_carbon_app"
1524 carbon_appdir_x=${enableval}
1525fi;
1526
1527# Check whether --enable-asserts or --disable-asserts was given.
1528if test "${enable_asserts+set}" = set; then
1529 enableval="$enable_asserts"
1530 USE_XASSERTS=$enableval
1531else
1532 USE_XASSERTS=no
1533fi;
1534
1535# Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1536if test "${enable_maintainer_mode+set}" = set; then
1537 enableval="$enable_maintainer_mode"
1538 USE_MAINTAINER_MODE=$enableval
1539else
1540 USE_MAINTAINER_MODE=no
1541fi;
1542if test $USE_MAINTAINER_MODE = yes; then
1543 MAINT=
1544else
1545 MAINT=#
1546fi
1547
1548
1549# Check whether --enable-locallisppath or --disable-locallisppath was given.
1550if test "${enable_locallisppath+set}" = set; then
1551 enableval="$enable_locallisppath"
1552 if test "${enableval}" = "no"; then
1553 locallisppath=
1554elif test "${enableval}" != "yes"; then
1555 locallisppath=${enableval}
1556fi
1557fi;
1558
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).
1564unset CDPATH
1565case "${srcdir}" in
1566 /* ) ;;
1567 . )
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)`"
1578 fi
1579 ;;
1580 * ) srcdir="`(cd ${srcdir}; pwd)`" ;;
1581esac
1582
1583#### Check if the source directory already has a configured system in it.
1584if 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
1592echo "$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;}
1598fi
1599
1600#### Given the configuration name, set machfile and opsysfile to the
1601#### names of the m/*.h and s/*.h files we should use.
1602
1603### Canonicalize the configuration name.
1604
1605ac_aux_dir=
1606for 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
1619 fi
1620done
1621if test -z "$ac_aux_dir"; then
1622 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1623echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1624 { (exit 1); exit 1; }; }
1625fi
1626ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1627ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1628ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1629
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
1633echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1634 { (exit 1); exit 1; }; }
1635
1636echo "$as_me:$LINENO: checking build system type" >&5
1637echo $ECHO_N "checking build system type... $ECHO_C" >&6
1638if test "${ac_cv_build+set}" = set; then
1639 echo $ECHO_N "(cached) $ECHO_C" >&6
1640else
1641 ac_cv_build_alias=$build_alias
1642test -z "$ac_cv_build_alias" &&
1643 ac_cv_build_alias=`$ac_config_guess`
1644test -z "$ac_cv_build_alias" &&
1645 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1646echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1647 { (exit 1); exit 1; }; }
1648ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1649 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1650echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1651 { (exit 1); exit 1; }; }
1652
1653fi
1654echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1655echo "${ECHO_T}$ac_cv_build" >&6
1656build=$ac_cv_build
1657build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1658build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1659build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1660
1661
1662echo "$as_me:$LINENO: checking host system type" >&5
1663echo $ECHO_N "checking host system type... $ECHO_C" >&6
1664if test "${ac_cv_host+set}" = set; then
1665 echo $ECHO_N "(cached) $ECHO_C" >&6
1666else
1667 ac_cv_host_alias=$host_alias
1668test -z "$ac_cv_host_alias" &&
1669 ac_cv_host_alias=$ac_cv_build_alias
1670ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1671 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1672echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1673 { (exit 1); exit 1; }; }
1674
1675fi
1676echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1677echo "${ECHO_T}$ac_cv_host" >&6
1678host=$ac_cv_host
1679host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1680host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1681host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1682
1683
1684canonical=$host
1685configuration=${host_alias-$host}
1686
1687
1688
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.
1692
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.
1701###
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.
1707###
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'."
1711
1712machine='' opsys='' unported=no
1713case "${canonical}" in
1714
1715 ## FreeBSD ports
1716 *-*-freebsd* )
1717 opsys=freebsd
1718 case "${canonical}" in
1719 alpha*-*-freebsd*) machine=alpha ;;
1720 i[3456]86-*-freebsd*) machine=intel386 ;;
1721 amd64-*-freebsd*|x86_64-*-freebsd*) machine=amdx86-64 ;;
1722 esac
1723 ;;
1724
1725 ## NetBSD ports
1726 *-*-netbsd* )
1727 opsys=netbsd
1728 if test -f /usr/lib/crti.o; then
1729
1730cat >>confdefs.h <<\_ACEOF
1731#define HAVE_CRTIN
1732_ACEOF
1733
1734 fi
1735
1736 case "${canonical}" in
1737 alpha*-*-netbsd*) machine=alpha ;;
1738 i[3456]86-*-netbsd*) machine=intel386 ;;
1739 m68k-*-netbsd*)
1740 # This is somewhat bogus.
1741 machine=hp9000s300 ;;
1742 powerpc-apple-netbsd*) machine=macppc ;;
1743 mips-*-netbsd*) machine=pmax ;;
1744 mipsel-*-netbsd*) machine=pmax ;;
1745 mipseb-*-netbsd*) machine=pmax ;;
1746 ns32k-*-netbsd*) machine=ns32000 ;;
1747 powerpc-*-netbsd*) machine=macppc ;;
1748 sparc*-*-netbsd*) machine=sparc ;;
1749 vax-*-netbsd*) machine=vax ;;
1750 arm-*-netbsd*) machine=arm ;;
1751 esac
1752 ;;
1753
1754 ## OpenBSD ports
1755 *-*-openbsd* )
1756 opsys=openbsd
1757 case "${canonical}" in
1758 alpha*-*-openbsd*) machine=alpha ;;
1759 i386-*-openbsd*) machine=intel386 ;;
1760 m68k-*-openbsd*) machine=hp9000s300 ;;
1761 mipsel-*-openbsd*) machine=pmax ;;
1762 ns32k-*-openbsd*) machine=ns32000 ;;
1763 sparc-*-openbsd*) machine=sparc ;;
1764 vax-*-openbsd*) machine=vax ;;
1765 esac
1766 ;;
1767
1768 ## LynxOS ports
1769 *-*-lynxos* )
1770 opsys=lynxos
1771 case "${canonical}" in
1772 i[3456]86-*-lynxos*) machine=intel386 ;;
1773 powerpc-*-lynxos*) machine=powerpc ;;
1774 esac
1775 ;;
1776
1777 ## Acorn RISCiX:
1778 arm-acorn-riscix1.1* )
1779 machine=acorn opsys=riscix1-1
1780 ;;
1781 arm-acorn-riscix1.2* | arm-acorn-riscix )
1782 ## This name is riscix12 instead of riscix1.2
1783 ## to avoid a file name conflict on MSDOS.
1784 machine=acorn opsys=riscix12
1785 ;;
1786
1787 ## BSDI ports
1788 *-*-bsdi* )
1789 opsys=bsdi
1790 case "${canonical}" in
1791 i[345]86-*-bsdi*) machine=intel386 ;;
1792 sparc-*-bsdi*) machine=sparc ;;
1793 powerpc-*-bsdi*) machine=macppc ;;
1794 esac
1795 case "${canonical}" in
1796 *-*-bsd386* | *-*-bsdi1* ) opsys=bsd386 ;;
1797 *-*-bsdi2.0* ) opsys=bsdos2 ;;
1798 *-*-bsdi2* ) opsys=bsdos2-1 ;;
1799 *-*-bsdi3* ) opsys=bsdos3 ;;
1800 *-*-bsdi[45]* ) opsys=bsdos4 ;;
1801 esac
1802 ;;
1803
1804 ## Alliant machines
1805 ## Strictly speaking, we need the version of the alliant operating
1806 ## system to choose the right machine file, but currently the
1807 ## configuration name doesn't tell us enough to choose the right
1808 ## one; we need to give alliants their own operating system name to
1809 ## do this right. When someone cares, they can help us.
1810 fx80-alliant-* )
1811 machine=alliant4 opsys=bsd4-2
1812 ;;
1813 i860-alliant-* )
1814 machine=alliant-2800 opsys=bsd4-3
1815 ;;
1816
1817 ## Alpha (DEC) machines.
1818 alpha*-dec-osf* )
1819 machine=alpha opsys=osf1
1820 # This is needed to find X11R6.1 libraries for certain tests.
1821 NON_GCC_LINK_TEST_OPTIONS=-Wl,-rpath,/usr/X11R6/lib
1822 GCC_LINK_TEST_OPTIONS=-Wl,-rpath,/usr/X11R6/lib
1823 # NON_GNU_CPP is necessary on 5.0 to avoid mangling src/Makefile
1824 # due to non-traditional preprocessing with the current compiler
1825 # defaults. OSF 4 can also have that compiler version, and there
1826 # seems always to have been a usable /usr/bin/cpp.
1827 NON_GNU_CPP=/usr/bin/cpp
1828 case "${canonical}" in
1829 alpha*-dec-osf[5-9]*)
1830 opsys=osf5-0 ;;
1831 esac
1832 ;;
1833
1834 alpha*-*-linux-gnu* )
1835 machine=alpha opsys=gnu-linux
1836 ;;
1837
1838 arm*-*-linux-gnu* )
1839 machine=arm opsys=gnu-linux
1840 ;;
1841
1842 ## Altos 3068
1843 m68*-altos-sysv* )
1844 machine=altos opsys=usg5-2
1845 ;;
1846
1847 ## Amdahl UTS
1848 580-amdahl-sysv* )
1849 machine=amdahl opsys=usg5-2-2
1850 ;;
1851
1852 ## Apollo, Domain/OS
1853 m68*-apollo-* )
1854 machine=apollo opsys=bsd4-3
1855 ;;
1856
1857 ## AT&T 3b2, 3b5, 3b15, 3b20
1858 we32k-att-sysv* )
1859 machine=att3b opsys=usg5-2-2
1860 ;;
1861
1862 ## AT&T 3b1 - The Mighty Unix PC!
1863 m68*-att-sysv* )
1864 machine=7300 opsys=usg5-2-2
1865 ;;
1866
1867 ## Bull dpx20
1868 rs6000-bull-bosx* )
1869 machine=ibmrs6000 opsys=aix3-2
1870 ;;
1871
1872 ## Bull dpx2
1873 m68*-bull-sysv3* )
1874 machine=dpx2 opsys=usg5-3
1875 ;;
1876
1877 ## Bull sps7
1878 m68*-bull-sysv2* )
1879 machine=sps7 opsys=usg5-2
1880 ;;
1881
1882 ## CCI 5/32, 6/32 -- see "Tahoe".
1883
1884 ## Celerity
1885 ## I don't know what configuration name to use for this; config.sub
1886 ## doesn't seem to know anything about it. Hey, Celerity users, get
1887 ## in touch with us!
1888 celerity-celerity-bsd* )
1889 machine=celerity opsys=bsd4-2
1890 ;;
1891
1892 ## Clipper
1893 ## What operating systems does this chip run that Emacs has been
1894 ## tested on?
1895 clipper-* )
1896 machine=clipper
1897 ## We'll use the catch-all code at the bottom to guess the
1898 ## operating system.
1899 ;;
1900
1901 ## Compaq Nonstop
1902 mips-compaq-nonstopux* )
1903 machine=nonstopux opsys=nonstopux
1904 ;;
1905
1906 ## Convex
1907 *-convex-bsd* | *-convex-convexos* )
1908 machine=convex opsys=bsd4-3
1909 ## Prevents spurious white space in makefiles - d.m.cooke@larc.nasa.gov
1910 NON_GNU_CPP="cc -E -P"
1911 ;;
1912
1913 ## Cubix QBx/386
1914 i[3456]86-cubix-sysv* )
1915 machine=intel386 opsys=usg5-3
1916 ;;
1917
1918 ## Cydra 5
1919 cydra*-cydrome-sysv* )
1920 machine=cydra5 opsys=usg5-3
1921 ;;
1922
1923 ## Data General AViiON Machines
1924 ## DG changed naming conventions with the release of 5.4.4.10, they
1925 ## dropped the initial 5.4 but left the intervening R. Because of the
1926 ## R this shouldn't conflict with older versions of the OS (which I
1927 ## think were named like dgux4.*). In addition, DG new AViiONs series
1928 ## uses either Motorola M88k or Intel Pentium CPUs.
1929 m88k-dg-dguxR4.* | m88k-dg-dgux4* )
1930 machine=aviion opsys=dgux4
1931 ;;
1932 m88k-dg-dgux5.4R3* | m88k-dg-dgux5.4.3* )
1933 ## This name is dgux5-4-3 instead of dgux5-4r3
1934 ## to avoid a file name conflict on MSDOS.
1935 machine=aviion opsys=dgux5-4-3
1936 ;;
1937 m88k-dg-dgux5.4R2* | m88k-dg-dgux5.4.2* )
1938 machine=aviion opsys=dgux5-4r2
1939 ;;
1940 m88k-dg-dgux* )
1941 machine=aviion opsys=dgux
1942 ;;
1943
1944 ## Data General AViiON Intel (x86) Machines
1945 ## Exists from 5.4.3 (current i586-dg-dguxR4.11)
1946 ## Ehud Karni, 1998-may-30, ehud@unix.simonwiesel.co.il
1947 i[345]86-dg-dguxR4* )
1948 machine=aviion-intel opsys=dgux4
1949 ;;
1950
1951 ## DECstations
1952 mips-dec-ultrix[0-3].* | mips-dec-ultrix4.0* | mips-dec-bsd4.2* )
1953 machine=pmax opsys=bsd4-2
1954 ;;
1955 mips-dec-ultrix4.[12]* | mips-dec-bsd* )
1956 machine=pmax opsys=bsd4-3
1957 ;;
1958 mips-dec-ultrix* )
1959 machine=pmax opsys=ultrix4-3
1960 ;;
1961 mips-dec-osf* )
1962 machine=pmax opsys=osf1
1963 ;;
1964 mips-dec-mach_bsd4.3* )
1965 machine=pmax opsys=mach-bsd4-3
1966 ;;
1967
1968 ## Motorola Delta machines
1969 m68k-motorola-sysv* | m68000-motorola-sysv* )
1970 machine=delta opsys=usg5-3
1971 if test -z "`type gnucc | grep 'not found'`"
1972 then
1973 if test -s /etc/167config
1974 then CC="gnucc -m68040"
1975 else CC="gnucc -m68881"
1976 fi
1977 else
1978 if test -z "`type gcc | grep 'not found'`"
1979 then CC=gcc
1980 else CC=cc
1981 fi
1982 fi
1983 ;;
1984 m88k-motorola-sysv4* )
1985 # jbotte@bnr.ca says that UNIX_System_V <hostName> 4.0 R40V4.3 m88k mc88110
1986 # needs POSIX_SIGNALS and therefore needs usg5-4-2.
1987 # I hope there are not other 4.0 versions for this machine
1988 # which really need usg5-4 instead.
1989 machine=delta88k opsys=usg5-4-2
1990 ;;
1991 m88k-motorola-sysv* | m88k-motorola-m88kbcs* )
1992 machine=delta88k opsys=usg5-3
1993 ;;
1994
1995 ## Dual machines
1996 m68*-dual-sysv* )
1997 machine=dual opsys=usg5-2
1998 ;;
1999 m68*-dual-uniplus* )
2000 machine=dual opsys=unipl5-2
2001 ;;
2002
2003 ## Elxsi 6400
2004 elxsi-elxsi-sysv* )
2005 machine=elxsi opsys=usg5-2
2006 ;;
2007
2008 ## Encore machines
2009 ns16k-encore-bsd* )
2010 machine=ns16000 opsys=umax
2011 ;;
2012
2013 ## The GEC 63 - apparently, this port isn't really finished yet.
2014 # I'm sure we finished off the last of the machines, though. -- fx
2015
2016 ## Gould Power Node and NP1
2017 pn-gould-bsd4.2* )
2018 machine=gould opsys=bsd4-2
2019 ;;
2020 pn-gould-bsd4.3* )
2021 machine=gould opsys=bsd4-3
2022 ;;
2023 np1-gould-bsd* )
2024 machine=gould-np1 opsys=bsd4-3
2025 ;;
2026
2027 ## Harris Night Hawk machines running CX/UX (a 5000 looks just like a 4000
2028 ## as far as Emacs is concerned).
2029 m88k-harris-cxux* )
2030 # Build needs to be different on 7.0 and later releases
2031 case "`uname -r`" in
2032 [56].[0-9] ) machine=nh4000 opsys=cxux ;;
2033 [7].[0-9] ) machine=nh4000 opsys=cxux7 ;;
2034 esac
2035 NON_GNU_CPP="/lib/cpp"
2036 ;;
2037 ## Harris ecx or gcx running CX/UX (Series 1200, Series 3000)
2038 m68k-harris-cxux* )
2039 machine=nh3000 opsys=cxux
2040 ;;
2041 ## Harris power pc NightHawk running Power UNIX (Series 6000)
2042 powerpc-harris-powerunix )
2043 machine=nh6000 opsys=powerunix
2044 NON_GNU_CPP="cc -Xo -E -P"
2045 ;;
2046 ## SR2001/SR2201 running HI-UX/MPP
2047 hppa1.1-hitachi-hiuxmpp* )
2048 machine=sr2k opsys=hiuxmpp
2049 ;;
2050 hppa1.1-hitachi-hiuxwe2* )
2051 machine=sr2k opsys=hiuxwe2
2052 ;;
2053 ## Honeywell XPS100
2054 xps*-honeywell-sysv* )
2055 machine=xps100 opsys=usg5-2
2056 ;;
2057
2058 ## HP 9000 series 200 or 300
2059 m68*-hp-bsd* )
2060 machine=hp9000s300 opsys=bsd4-3
2061 ;;
2062 ## HP/UX 7, 8, 9, and 10 are supported on these machines.
2063 m68*-hp-hpux* )
2064 case "`uname -r`" in
2065 ## Someone's system reports A.B8.05 for this.
2066 ## I wonder what other possibilities there are.
2067 *.B8.* ) machine=hp9000s300 opsys=hpux8 ;;
2068 *.08.* ) machine=hp9000s300 opsys=hpux8 ;;
2069 *.09.* ) machine=hp9000s300 opsys=hpux9 ;;
2070 *.1[0-9].* ) machine=hp9000s300 opsys=hpux9shr ;;
2071 *) machine=hp9000s300 opsys=hpux ;;
2072 esac
2073 ;;
2074
2075 ## HP 9000 series 700 and 800, running HP/UX
2076 hppa*-hp-hpux7* )
2077 machine=hp800 opsys=hpux
2078 ;;
2079 hppa*-hp-hpux8* )
2080 machine=hp800 opsys=hpux8
2081 ;;
2082 hppa*-hp-hpux9shr* )
2083 machine=hp800 opsys=hpux9shr
2084 ;;
2085 hppa*-hp-hpux9* )
2086 machine=hp800 opsys=hpux9
2087 ;;
2088 hppa*-hp-hpux10.2* )
2089 machine=hp800 opsys=hpux10-20
2090 ;;
2091 hppa*-hp-hpux10* )
2092 machine=hp800 opsys=hpux10
2093 ;;
2094 hppa*-hp-hpux1[1-9]* )
2095 machine=hp800 opsys=hpux11
2096 CFLAGS="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
2097 ;;
2098
2099 hppa*-*-linux-gnu* )
2100 machine=hp800 opsys=gnu-linux
2101 ;;
2102
2103 ## HP 9000 series 700 and 800, running HP/UX
2104 hppa*-hp-hpux* )
2105 ## Cross-compilation? Nah!
2106 case "`uname -r`" in
2107 ## Someone's system reports A.B8.05 for this.
2108 ## I wonder what other possibilities there are.
2109 *.B8.* ) machine=hp800 opsys=hpux8 ;;
2110 *.08.* ) machine=hp800 opsys=hpux8 ;;
2111 *.09.* ) machine=hp800 opsys=hpux9 ;;
2112 *) machine=hp800 opsys=hpux10 ;;
2113 esac
2114 ;;
2115 hppa*-*-nextstep* )
2116 machine=hp800 opsys=nextstep
2117 ;;
2118
2119 ## Orion machines
2120 orion-orion-bsd* )
2121 machine=orion opsys=bsd4-2
2122 ;;
2123 clipper-orion-bsd* )
2124 machine=orion105 opsys=bsd4-2
2125 ;;
2126
2127 ## IBM machines
2128 i[3456]86-ibm-aix1.1* )
2129 machine=ibmps2-aix opsys=usg5-2-2
2130 ;;
2131 i[3456]86-ibm-aix1.[23]* | i[3456]86-ibm-aix* )
2132 machine=ibmps2-aix opsys=usg5-3
2133 ;;
2134 i370-ibm-aix*)
2135 machine=ibm370aix opsys=usg5-3
2136 ;;
2137 s390-*-linux-gnu* )
2138 machine=ibms390 opsys=gnu-linux
2139 ;;
2140 s390x-*-linux-gnu* )
2141 machine=ibms390x opsys=gnu-linux
2142 ;;
2143 rs6000-ibm-aix3.1* | powerpc-ibm-aix3.1* )
2144 machine=ibmrs6000 opsys=aix3-1
2145 ;;
2146 rs6000-ibm-aix3.2.5 | powerpc-ibm-aix3.2.5 )
2147 machine=ibmrs6000 opsys=aix3-2-5
2148 ;;
2149 rs6000-ibm-aix4.1* | powerpc-ibm-aix4.1* )
2150 machine=ibmrs6000 opsys=aix4-1
2151 ;;
2152 rs6000-ibm-aix4.2* | powerpc-ibm-aix4.2* )
2153 machine=ibmrs6000 opsys=aix4-2
2154 ;;
2155 rs6000-ibm-aix5* | powerpc-ibm-aix5* )
2156 machine=ibmrs6000 opsys=aix4-2
2157 ;;
2158 rs6000-ibm-aix4.0* | powerpc-ibm-aix4.0* )
2159 machine=ibmrs6000 opsys=aix4
2160 ;;
2161 rs6000-ibm-aix4* | powerpc-ibm-aix4* )
2162 machine=ibmrs6000 opsys=aix4-1
2163 ;;
2164 rs6000-ibm-aix* | powerpc-ibm-aix* )
2165 machine=ibmrs6000 opsys=aix3-2
2166 ;;
2167 romp-ibm-bsd4.3* )
2168 machine=ibmrt opsys=bsd4-3
2169 ;;
2170 romp-ibm-bsd4.2* )
2171 machine=ibmrt opsys=bsd4-2
2172 ;;
2173 romp-ibm-aos4.3* )
2174 machine=ibmrt opsys=bsd4-3
2175 ;;
2176 romp-ibm-aos4.2* )
2177 machine=ibmrt opsys=bsd4-2
2178 ;;
2179 romp-ibm-aos* )
2180 machine=ibmrt opsys=bsd4-3
2181 ;;
2182 romp-ibm-bsd* )
2183 machine=ibmrt opsys=bsd4-3
2184 ;;
2185 romp-ibm-aix* )
2186 machine=ibmrt-aix opsys=usg5-2-2
2187 ;;
2188
2189 ## Integrated Solutions `Optimum V'
2190 m68*-isi-bsd4.2* )
2191 machine=isi-ov opsys=bsd4-2
2192 ;;
2193 m68*-isi-bsd4.3* )
2194 machine=isi-ov opsys=bsd4-3
2195 ;;
2196
2197 ## Intel 386 machines where we do care about the manufacturer
2198 i[3456]86-intsys-sysv* )
2199 machine=is386 opsys=usg5-2-2
2200 ;;
2201
2202 ## Prime EXL
2203 i[3456]86-prime-sysv* )
2204 machine=i386 opsys=usg5-3
2205 ;;
2206
2207 ## Sequent Symmetry running Dynix
2208 i[3456]86-sequent-bsd* )
2209 machine=symmetry opsys=bsd4-3
2210 ;;
2211
2212 ## Sequent Symmetry running ptx 4, which is a modified SVR4.
2213 i[3456]86-sequent-ptx4* | i[3456]86-sequent-sysv4* )
2214 machine=sequent-ptx opsys=ptx4
2215 NON_GNU_CPP=/lib/cpp
2216 ;;
2217
2218 ## Sequent Symmetry running DYNIX/ptx
2219 ## Use the old cpp rather than the newer ANSI one.
2220 i[3456]86-sequent-ptx* )
2221 machine=sequent-ptx opsys=ptx
2222 NON_GNU_CPP="/lib/cpp"
2223 ;;
2224
2225 ## ncr machine running svr4.3.
2226 i[3456]86-ncr-sysv4.3 )
2227 machine=ncr386 opsys=usg5-4-3
2228 ;;
2229
2230 ## Unspecified sysv on an ncr machine defaults to svr4.2.
2231 ## (Plain usg5-4 doesn't turn on POSIX signals, which we need.)
2232 i[3456]86-ncr-sysv* )
2233 machine=ncr386 opsys=usg5-4-2
2234 ;;
2235
2236 ## Intel Paragon OSF/1
2237 i860-intel-osf1* )
2238 machine=paragon opsys=osf1 NON_GNU_CPP=/usr/mach/lib/cpp
2239 ;;
2240
2241 ## Intel 860
2242 i860-*-sysv4* )
2243 machine=i860 opsys=usg5-4
2244 NON_GNU_CC="/bin/cc" # Ie, not the one in /usr/ucb/cc.
2245 NON_GNU_CPP="/usr/ccs/lib/cpp" # cc -E tokenizes macro expansion.
2246 ;;
2247
2248 ## Macintosh PowerPC
2249 powerpc*-*-linux-gnu* )
2250 machine=macppc opsys=gnu-linux
2251 ;;
2252
2253 ## Masscomp machines
2254 m68*-masscomp-rtu* )
2255 machine=masscomp opsys=rtu
2256 ;;
2257
2258 ## Megatest machines
2259 m68*-megatest-bsd* )
2260 machine=mega68 opsys=bsd4-2
2261 ;;
2262
2263 ## Workstations sold by MIPS
2264 ## This is not necessarily all workstations using the MIPS processor -
2265 ## Irises are produced by SGI, and DECstations by DEC.
2266
2267 ## etc/MACHINES lists mips.h and mips4.h as possible machine files,
2268 ## and usg5-2-2 and bsd4-3 as possible OS files. The only guidance
2269 ## it gives for choosing between the alternatives seems to be "Use
2270 ## -machine=mips4 for RISCOS version 4; use -opsystem=bsd4-3 with
2271 ## the BSD world." I'll assume that these are instructions for
2272 ## handling two odd situations, and that every other situation
2273 ## should use mips.h and usg5-2-2, they being listed first.
2274 mips-mips-usg* )
2275 machine=mips4
2276 ## Fall through to the general code at the bottom to decide on the OS.
2277 ;;
2278 mips-mips-riscos4* )
2279 machine=mips4 opsys=bsd4-3
2280 NON_GNU_CC="cc -systype bsd43"
2281 NON_GNU_CPP="cc -systype bsd43 -E"
2282 ;;
2283 mips-mips-riscos5* )
2284 machine=mips4 opsys=riscos5
2285 NON_GNU_CC="cc -systype bsd43"
2286 NON_GNU_CPP="cc -systype bsd43 -E"
2287 ;;
2288 mips-mips-bsd* )
2289 machine=mips opsys=bsd4-3
2290 ;;
2291 mips-mips-* )
2292 machine=mips opsys=usg5-2-2
2293 ;;
2294
2295 ## NeXT
2296 m68*-next-* | m68k-*-nextstep* )
2297 machine=m68k opsys=nextstep
2298 ;;
2299
2300 ## The complete machine from National Semiconductor
2301 ns32k-ns-genix* )
2302 machine=ns32000 opsys=usg5-2
2303 ;;
2304
2305 ## NCR machines
2306 m68*-ncr-sysv2* | m68*-ncr-sysvr2* )
2307 machine=tower32 opsys=usg5-2-2
2308 ;;
2309 m68*-ncr-sysv3* | m68*-ncr-sysvr3* )
2310 machine=tower32v3 opsys=usg5-3
2311 ;;
2312
2313 ## NEC EWS4800
2314 mips-nec-sysv4*)
2315 machine=ews4800 opsys=ux4800
2316 ;;
2317
2318 ## Nixdorf Targon 31
2319 m68*-nixdorf-sysv* )
2320 machine=targon31 opsys=usg5-2-2
2321 ;;
2322
2323 ## Nu (TI or LMI)
2324 m68*-nu-sysv* )
2325 machine=nu opsys=usg5-2
2326 ;;
2327
2328 ## Plexus
2329 m68*-plexus-sysv* )
2330 machine=plexus opsys=usg5-2
2331 ;;
2332
2333 ## Pyramid machines
2334 ## I don't really have any idea what sort of processor the Pyramid has,
2335 ## so I'm assuming it is its own architecture.
2336 pyramid-pyramid-bsd* )
2337 machine=pyramid opsys=bsd4-2
2338 ;;
2339
2340 ## Sequent Balance
2341 ns32k-sequent-bsd4.2* )
2342 machine=sequent opsys=bsd4-2
2343 ;;
2344 ns32k-sequent-bsd4.3* )
2345 machine=sequent opsys=bsd4-3
2346 ;;
2347
2348 ## Siemens Nixdorf
2349 mips-siemens-sysv* | mips-sni-sysv*)
2350 machine=mips-siemens opsys=usg5-4
2351 NON_GNU_CC=/usr/ccs/bin/cc
2352 NON_GNU_CPP=/usr/ccs/lib/cpp
2353 ;;
2354
2355 ## Silicon Graphics machines
2356 ## Iris 2500 and Iris 2500 Turbo (aka the Iris 3030)
2357 m68*-sgi-iris3.5* )
2358 machine=irist opsys=iris3-5
2359 ;;
2360 m68*-sgi-iris3.6* | m68*-sgi-iris*)
2361 machine=irist opsys=iris3-6
2362 ;;
2363 ## Iris 4D
2364 mips-sgi-irix3* )
2365 machine=iris4d opsys=irix3-3
2366 ;;
2367 mips-sgi-irix4* )
2368 machine=iris4d opsys=irix4-0
2369 ;;
2370 mips-sgi-irix6.5 )
2371 machine=iris4d opsys=irix6-5
2372 # Without defining _LANGUAGE_C, things get masked out in the headers
2373 # so that, for instance, grepping for `free' in stdlib.h fails and
2374 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
2375 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
2376 NON_GCC_TEST_OPTIONS="-D_LANGUAGE_C"
2377 ;;
2378 mips-sgi-irix6* )
2379 machine=iris4d opsys=irix6-0
2380 # It's not clear whether -D_LANGUAGE_C is necessary as it is for 6.5,
2381 # but presumably it does no harm.
2382 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
2383 # -32 probably isn't necessary in later v.6s -- anyone know which?
2384 NON_GCC_TEST_OPTIONS=-32
2385 ;;
2386 mips-sgi-irix5.[01]* )
2387 machine=iris4d opsys=irix5-0
2388 ;;
2389 mips-sgi-irix5* | mips-sgi-irix* )
2390 machine=iris4d opsys=irix5-2
2391 ;;
2392
2393 ## SONY machines
2394 m68*-sony-bsd4.2* )
2395 machine=news opsys=bsd4-2
2396 ;;
2397 m68*-sony-bsd4.3* )
2398 machine=news opsys=bsd4-3
2399 ;;
2400 m68*-sony-newsos3* | m68*-sony-news3*)
2401 machine=news opsys=bsd4-3
2402 ;;
2403 mips-sony-bsd* | mips-sony-newsos4* | mips-sony-news4*)
2404 machine=news-risc opsys=bsd4-3
2405 ;;
2406 mips-sony-newsos6* )
2407 machine=news-r6 opsys=newsos6
2408 ;;
2409 mips-sony-news* )
2410 machine=news-risc opsys=newsos5
2411 ;;
2412
2413 ## Stride
2414 m68*-stride-sysv* )
2415 machine=stride opsys=usg5-2
2416 ;;
2417
2418 ## Suns
2419 sparc-*-linux-gnu* | sparc64-*-linux-gnu* )
2420 machine=sparc opsys=gnu-linux
2421 ;;
2422
2423 *-auspex-sunos* | *-sun-sunos* | *-sun-bsd* | *-sun-solaris* \
2424 | i[3456]86-*-solaris2* | i[3456]86-*-sunos5* | powerpc*-*-solaris2* \
2425 | rs6000-*-solaris2*)
2426 case "${canonical}" in
2427 m68*-sunos1* ) machine=sun1 ;;
2428 m68*-sunos2* ) machine=sun2 ;;
2429 m68* ) machine=sun3 ;;
2430 i[3456]86-sun-sunos[34]* ) machine=sun386 ;;
2431 i[3456]86-*-* ) machine=intel386 ;;
2432 powerpcle* ) machine=powerpcle ;;
2433 powerpc* | rs6000* ) machine=ibmrs6000 ;;
2434 sparc* ) machine=sparc ;;
2435 * ) unported=yes ;;
2436 esac
2437 case "${canonical}" in
2438 ## The Sun386 didn't get past 4.0.
2439 i[3456]86-*-sunos4 ) opsys=sunos4-0 ;;
2440 *-sunos4.0* ) opsys=sunos4-0 ;;
2441 *-sunos4.1.[3-9]*noshare )
2442 ## This name is sunos413 instead of sunos4-1-3
2443 ## to avoid a file name conflict on MSDOS.
2444 opsys=sunos413
2445 NON_GNU_CPP=/usr/lib/cpp
2446 NON_GCC_TEST_OPTIONS=-Bstatic
2447 GCC_TEST_OPTIONS=-static
2448 ;;
2449 *-sunos4.1.[3-9]* | *-sunos4shr*)
2450 opsys=sunos4shr
2451 NON_GNU_CPP=/usr/lib/cpp
2452 ;;
2453 *-sunos4* | *-sunos )
2454 opsys=sunos4-1
2455 NON_GCC_TEST_OPTIONS=-Bstatic
2456 GCC_TEST_OPTIONS=-static
2457 ;;
2458 *-sunos5.3* | *-solaris2.3* )
2459 opsys=sol2-3
2460 NON_GNU_CPP=/usr/ccs/lib/cpp
2461 ;;
2462 *-sunos5.4* | *-solaris2.4* )
2463 opsys=sol2-4
2464 NON_GNU_CPP=/usr/ccs/lib/cpp
2465 RANLIB="ar -ts"
2466 ;;
2467 *-sunos5.5* | *-solaris2.5* )
2468 opsys=sol2-5
2469 NON_GNU_CPP=/usr/ccs/lib/cpp
2470 RANLIB="ar -ts"
2471 ;;
2472 *-sunos5.6* | *-solaris2.6* )
2473 opsys=sol2-6
2474 NON_GNU_CPP=/usr/ccs/lib/cpp
2475 RANLIB="ar -ts"
2476 ;;
2477 *-sunos5* | *-solaris* )
2478 opsys=sol2-6
2479 NON_GNU_CPP=/usr/ccs/lib/cpp
2480 ;;
2481 * ) opsys=bsd4-2 ;;
2482 esac
2483 ## Watch out for a compiler that we know will not work.
2484 case "${canonical}" in
2485 *-solaris* | *-sunos5* )
2486 if [ "x$CC" = x/usr/ucb/cc ]; then
2487 ## /usr/ucb/cc doesn't work;
2488 ## we should find some other compiler that does work.
2489 unset CC
2490 fi
2491 ;;
2492 *) ;;
2493 esac
2494 ;;
2495 sparc-*-nextstep* )
2496 machine=sparc opsys=nextstep
2497 ;;
2498
2499 ## Tadpole 68k
2500 m68*-tadpole-sysv* )
2501 machine=tad68k opsys=usg5-3
2502 ;;
2503
2504 ## Tahoe machines
2505 tahoe-tahoe-bsd4.2* )
2506 machine=tahoe opsys=bsd4-2
2507 ;;
2508 tahoe-tahoe-bsd4.3* )
2509 machine=tahoe opsys=bsd4-3
2510 ;;
2511
2512 ## Tandem Integrity S2
2513 mips-tandem-sysv* )
2514 machine=tandem-s2 opsys=usg5-3
2515 ;;
2516
2517 ## Tektronix XD88
2518 m88k-tektronix-sysv3* )
2519 machine=tekxd88 opsys=usg5-3
2520 ;;
2521
2522 ## Tektronix 16000 box (6130?)
2523 ns16k-tektronix-bsd* )
2524 machine=ns16000 opsys=bsd4-2
2525 ;;
2526 ## Tektronix 4300
2527 ## src/m/tek4300.h hints that this is a m68k machine.
2528 m68*-tektronix-bsd* )
2529 machine=tek4300 opsys=bsd4-3
2530 ;;
2531
2532 ## Titan P2 or P3
2533 ## We seem to have lost the machine-description file titan.h!
2534 titan-titan-sysv* )
2535 machine=titan opsys=usg5-3
2536 ;;
2537
2538 ## Ustation E30 (SS5E)
2539 m68*-unisys-uniplus* )
2540 machine=ustation opsystem=unipl5-2
2541 ;;
2542
2543 ## Vaxen.
2544 vax-dec-* )
2545 machine=vax
2546 case "${canonical}" in
2547 *-bsd4.1* ) opsys=bsd4-1 ;;
2548 *-bsd4.2* | *-ultrix[0-3].* | *-ultrix4.0* ) opsys=bsd4-2 ;;
2549 *-bsd4.3* | *-ultrix* ) opsys=bsd4-3 ;;
2550 *-sysv[01]* | *-sysvr[01]* ) opsys=usg5-0 ;;
2551 *-sysv2* | *-sysvr2* ) opsys=usg5-2 ;;
2552 *-vms* ) opsys=vms ;;
2553 * ) unported=yes
2554 esac
2555 ;;
2556
2557 ## Whitechapel MG1
2558 ns16k-whitechapel-* )
2559 machine=mg1
2560 ## We don't know what sort of OS runs on these; we'll let the
2561 ## operating system guessing code below try.
2562 ;;
2563
2564 ## Wicat
2565 m68*-wicat-sysv* )
2566 machine=wicat opsys=usg5-2
2567 ;;
2568
2569 ## IA-64
2570 ia64*-*-linux* )
2571 machine=ia64 opsys=gnu-linux
2572 ;;
2573
2574 ## Intel 386 machines where we don't care about the manufacturer
2575 i[3456]86-*-* )
2576 machine=intel386
2577 case "${canonical}" in
2578 *-cygwin ) opsys=cygwin ;;
2579 *-darwin* ) opsys=darwin
2580 CPP="${CC-cc} -E -no-cpp-precomp"
2581 ;;
2582 *-isc1.* | *-isc2.[01]* ) opsys=386-ix ;;
2583 *-isc2.2* ) opsys=isc2-2 ;;
2584 *-isc4.0* ) opsys=isc4-0 ;;
2585 *-isc4.* ) opsys=isc4-1
2586 GCC_TEST_OPTIONS=-posix
2587 NON_GCC_TEST_OPTIONS=-Xp
2588 ;;
2589 *-isc* ) opsys=isc3-0 ;;
2590 *-esix5* ) opsys=esix5r4; NON_GNU_CPP=/usr/lib/cpp ;;
2591 *-esix* ) opsys=esix ;;
2592 *-xenix* ) opsys=xenix ;;
2593 *-linux-gnu* ) opsys=gnu-linux ;;
2594 *-sco3.2v4* ) opsys=sco4 ; NON_GNU_CPP=/lib/cpp ;;
2595 *-sco3.2v5* ) opsys=sco5
2596 NON_GNU_CPP=/lib/cpp
2597 # Prevent -belf from being passed to $CPP.
2598 # /lib/cpp does not accept it.
2599 OVERRIDE_CPPFLAGS=" "
2600 ;;
2601 *-sysv4.2uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
2602 *-sysv5uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
2603 *-sysv5OpenUNIX* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
2604 *-386bsd* ) opsys=386bsd ;;
2605 *-nextstep* ) opsys=nextstep ;;
2606 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
2607 esac
2608 ;;
2609
2610 ## m68k Linux-based GNU system
2611 m68k-*-linux-gnu* )
2612 machine=m68k opsys=gnu-linux
2613 ;;
2614
2615 ## Mips Linux-based GNU system
2616 mips-*-linux-gnu* | mipsel-*-linux-gnu* )
2617 machine=mips opsys=gnu-linux
2618 ;;
2619
2620 ## UXP/DS
2621 sparc-fujitsu-sysv4* )
2622 machine=sparc opsys=uxpds
2623 NON_GNU_CPP=/usr/ccs/lib/cpp
2624 RANLIB="ar -ts"
2625 ;;
2626
2627 ## UXP/V
2628 f301-fujitsu-uxpv4.1)
2629 machine=f301 opsys=uxpv
2630 ;;
2631
2632 ## Darwin / Mac OS X
2633 powerpc-apple-darwin* )
2634 machine=powermac opsys=darwin
2635 # Define CPP as follows to make autoconf work correctly.
2636 CPP="${CC-cc} -E -no-cpp-precomp"
2637 # Use fink packages if available.
2638 if test -d /sw/include && test -d /sw/lib; then
2639 GCC_TEST_OPTIONS="-I/sw/include -L/sw/lib"
2640 CPP="${CPP} ${GCC_TEST_OPTIONS}"
2641 NON_GCC_TEST_OPTIONS=${GCC_TEST_OPTIONS}
2642 fi
2643 ;;
2644
2645 ## AMD x86-64 Linux-based GNU system
2646 x86_64-*-linux-gnu* )
2647 machine=amdx86-64 opsys=gnu-linux
2648 ;;
2649
2650 * )
2651 unported=yes
2652 ;;
2653esac
2654
2655### If the code above didn't choose an operating system, just choose
2656### an operating system based on the configuration name. You really
2657### only want to use this when you have no idea what the right
2658### operating system is; if you know what operating systems a machine
2659### runs, it's cleaner to make it explicit in the case statement
2660### above.
2661if test x"${opsys}" = x; then
2662 case "${canonical}" in
2663 *-gnu* ) opsys=gnu ;;
2664 *-bsd4.[01] ) opsys=bsd4-1 ;;
2665 *-bsd4.2 ) opsys=bsd4-2 ;;
2666 *-bsd4.3 ) opsys=bsd4-3 ;;
2667 *-sysv0 | *-sysvr0 ) opsys=usg5-0 ;;
2668 *-sysv2 | *-sysvr2 ) opsys=usg5-2 ;;
2669 *-sysv2.2 | *-sysvr2.2 ) opsys=usg5-2-2 ;;
2670 *-sysv3* | *-sysvr3* ) opsys=usg5-3 ;;
2671 *-sysv4.2uw* ) opsys=unixware ;;
2672 *-sysv5uw* ) opsys=unixware ;;
2673 *-sysv5OpenUNIX* ) opsys=unixware ;;
2674 *-sysv4.1* | *-sysvr4.1* )
2675 NON_GNU_CPP=/usr/lib/cpp
2676 opsys=usg5-4 ;;
2677 *-sysv4.[2-9]* | *-sysvr4.[2-9]* )
2678 if [ x$NON_GNU_CPP = x ]; then
2679 if [ -f /usr/ccs/lib/cpp ]; then
2680 NON_GNU_CPP=/usr/ccs/lib/cpp
2681 else
2682 NON_GNU_CPP=/lib/cpp
2683 fi
2684 fi
2685 opsys=usg5-4-2 ;;
2686 *-sysv4* | *-sysvr4* ) opsys=usg5-4 ;;
2687 * )
2688 unported=yes
2689 ;;
2690 esac
2691fi
2692
2693
2694
2695if test $unported = yes; then
2696 { { echo "$as_me:$LINENO: error: Emacs hasn't been ported to \`${canonical}' systems.
2697Check \`etc/MACHINES' for recognized configuration names." >&5
2698echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems.
2699Check \`etc/MACHINES' for recognized configuration names." >&2;}
2700 { (exit 1); exit 1; }; }
2701fi
2702
2703machfile="m/${machine}.h"
2704opsysfile="s/${opsys}.h"
2705
2706
2707#### Choose a compiler.
2708test -n "$CC" && cc_specified=yes
2709
2710# Save the value of CFLAGS that the user specified.
2711SPECIFIED_CFLAGS="$CFLAGS"
2712
2713case ${with_gcc} in
2714 "yes" ) CC="gcc" GCC=yes ;;
2715 "no" ) : ${CC=cc} ;;
2716 * )
2717esac
2718ac_ext=c
2719ac_cpp='$CPP $CPPFLAGS'
2720ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2721ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2722ac_compiler_gnu=$ac_cv_c_compiler_gnu
2723if test -n "$ac_tool_prefix"; then
2724 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2725set dummy ${ac_tool_prefix}gcc; ac_word=$2
2726echo "$as_me:$LINENO: checking for $ac_word" >&5
2727echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2728if test "${ac_cv_prog_CC+set}" = set; then
2729 echo $ECHO_N "(cached) $ECHO_C" >&6
2730else
2731 if test -n "$CC"; then
2732 ac_cv_prog_CC="$CC" # Let the user override the test.
2733else
2734as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2735for as_dir in $PATH
2736do
2737 IFS=$as_save_IFS
2738 test -z "$as_dir" && as_dir=.
2739 for ac_exec_ext in '' $ac_executable_extensions; do
2740 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2741 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2742 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2743 break 2
2744 fi
2745done
2746done
2747
2748fi
2749fi
2750CC=$ac_cv_prog_CC
2751if test -n "$CC"; then
2752 echo "$as_me:$LINENO: result: $CC" >&5
2753echo "${ECHO_T}$CC" >&6
2754else
2755 echo "$as_me:$LINENO: result: no" >&5
2756echo "${ECHO_T}no" >&6
2757fi
2758
2759fi
2760if test -z "$ac_cv_prog_CC"; then
2761 ac_ct_CC=$CC
2762 # Extract the first word of "gcc", so it can be a program name with args.
2763set dummy gcc; ac_word=$2
2764echo "$as_me:$LINENO: checking for $ac_word" >&5
2765echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2766if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2767 echo $ECHO_N "(cached) $ECHO_C" >&6
2768else
2769 if test -n "$ac_ct_CC"; then
2770 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2771else
2772as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2773for as_dir in $PATH
2774do
2775 IFS=$as_save_IFS
2776 test -z "$as_dir" && as_dir=.
2777 for ac_exec_ext in '' $ac_executable_extensions; do
2778 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2779 ac_cv_prog_ac_ct_CC="gcc"
2780 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2781 break 2
2782 fi
2783done
2784done
2785
2786fi
2787fi
2788ac_ct_CC=$ac_cv_prog_ac_ct_CC
2789if test -n "$ac_ct_CC"; then
2790 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2791echo "${ECHO_T}$ac_ct_CC" >&6
2792else
2793 echo "$as_me:$LINENO: result: no" >&5
2794echo "${ECHO_T}no" >&6
2795fi
2796
2797 CC=$ac_ct_CC
2798else
2799 CC="$ac_cv_prog_CC"
2800fi
2801
2802if test -z "$CC"; then
2803 if test -n "$ac_tool_prefix"; then
2804 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2805set dummy ${ac_tool_prefix}cc; ac_word=$2
2806echo "$as_me:$LINENO: checking for $ac_word" >&5
2807echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2808if test "${ac_cv_prog_CC+set}" = set; then
2809 echo $ECHO_N "(cached) $ECHO_C" >&6
2810else
2811 if test -n "$CC"; then
2812 ac_cv_prog_CC="$CC" # Let the user override the test.
2813else
2814as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2815for as_dir in $PATH
2816do
2817 IFS=$as_save_IFS
2818 test -z "$as_dir" && as_dir=.
2819 for ac_exec_ext in '' $ac_executable_extensions; do
2820 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2821 ac_cv_prog_CC="${ac_tool_prefix}cc"
2822 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2823 break 2
2824 fi
2825done
2826done
2827
2828fi
2829fi
2830CC=$ac_cv_prog_CC
2831if test -n "$CC"; then
2832 echo "$as_me:$LINENO: result: $CC" >&5
2833echo "${ECHO_T}$CC" >&6
2834else
2835 echo "$as_me:$LINENO: result: no" >&5
2836echo "${ECHO_T}no" >&6
2837fi
2838
2839fi
2840if test -z "$ac_cv_prog_CC"; then
2841 ac_ct_CC=$CC
2842 # Extract the first word of "cc", so it can be a program name with args.
2843set dummy cc; ac_word=$2
2844echo "$as_me:$LINENO: checking for $ac_word" >&5
2845echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2846if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2847 echo $ECHO_N "(cached) $ECHO_C" >&6
2848else
2849 if test -n "$ac_ct_CC"; then
2850 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2851else
2852as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2853for as_dir in $PATH
2854do
2855 IFS=$as_save_IFS
2856 test -z "$as_dir" && as_dir=.
2857 for ac_exec_ext in '' $ac_executable_extensions; do
2858 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2859 ac_cv_prog_ac_ct_CC="cc"
2860 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2861 break 2
2862 fi
2863done
2864done
2865
2866fi
2867fi
2868ac_ct_CC=$ac_cv_prog_ac_ct_CC
2869if test -n "$ac_ct_CC"; then
2870 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2871echo "${ECHO_T}$ac_ct_CC" >&6
2872else
2873 echo "$as_me:$LINENO: result: no" >&5
2874echo "${ECHO_T}no" >&6
2875fi
2876
2877 CC=$ac_ct_CC
2878else
2879 CC="$ac_cv_prog_CC"
2880fi
2881
2882fi
2883if test -z "$CC"; then
2884 # Extract the first word of "cc", so it can be a program name with args.
2885set dummy cc; ac_word=$2
2886echo "$as_me:$LINENO: checking for $ac_word" >&5
2887echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2888if test "${ac_cv_prog_CC+set}" = set; then
2889 echo $ECHO_N "(cached) $ECHO_C" >&6
2890else
2891 if test -n "$CC"; then
2892 ac_cv_prog_CC="$CC" # Let the user override the test.
2893else
2894 ac_prog_rejected=no
2895as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2896for as_dir in $PATH
2897do
2898 IFS=$as_save_IFS
2899 test -z "$as_dir" && as_dir=.
2900 for ac_exec_ext in '' $ac_executable_extensions; do
2901 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2902 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2903 ac_prog_rejected=yes
2904 continue
2905 fi
2906 ac_cv_prog_CC="cc"
2907 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2908 break 2
2909 fi
2910done
2911done
2912
2913if test $ac_prog_rejected = yes; then
2914 # We found a bogon in the path, so make sure we never use it.
2915 set dummy $ac_cv_prog_CC
2916 shift
2917 if test $# != 0; then
2918 # We chose a different compiler from the bogus one.
2919 # However, it has the same basename, so the bogon will be chosen
2920 # first if we set CC to just the basename; use the full file name.
2921 shift
2922 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2923 fi
2924fi
2925fi
2926fi
2927CC=$ac_cv_prog_CC
2928if test -n "$CC"; then
2929 echo "$as_me:$LINENO: result: $CC" >&5
2930echo "${ECHO_T}$CC" >&6
2931else
2932 echo "$as_me:$LINENO: result: no" >&5
2933echo "${ECHO_T}no" >&6
2934fi
2935
2936fi
2937if test -z "$CC"; then
2938 if test -n "$ac_tool_prefix"; then
2939 for ac_prog in cl
2940 do
2941 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2942set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2943echo "$as_me:$LINENO: checking for $ac_word" >&5
2944echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2945if test "${ac_cv_prog_CC+set}" = set; then
2946 echo $ECHO_N "(cached) $ECHO_C" >&6
2947else
2948 if test -n "$CC"; then
2949 ac_cv_prog_CC="$CC" # Let the user override the test.
2950else
2951as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2952for as_dir in $PATH
2953do
2954 IFS=$as_save_IFS
2955 test -z "$as_dir" && as_dir=.
2956 for ac_exec_ext in '' $ac_executable_extensions; do
2957 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2958 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2959 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2960 break 2
2961 fi
2962done
2963done
2964
2965fi
2966fi
2967CC=$ac_cv_prog_CC
2968if test -n "$CC"; then
2969 echo "$as_me:$LINENO: result: $CC" >&5
2970echo "${ECHO_T}$CC" >&6
2971else
2972 echo "$as_me:$LINENO: result: no" >&5
2973echo "${ECHO_T}no" >&6
2974fi
2975
2976 test -n "$CC" && break
2977 done
2978fi
2979if test -z "$CC"; then
2980 ac_ct_CC=$CC
2981 for ac_prog in cl
2982do
2983 # Extract the first word of "$ac_prog", so it can be a program name with args.
2984set dummy $ac_prog; ac_word=$2
2985echo "$as_me:$LINENO: checking for $ac_word" >&5
2986echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2987if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2988 echo $ECHO_N "(cached) $ECHO_C" >&6
2989else
2990 if test -n "$ac_ct_CC"; then
2991 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2992else
2993as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2994for as_dir in $PATH
2995do
2996 IFS=$as_save_IFS
2997 test -z "$as_dir" && as_dir=.
2998 for ac_exec_ext in '' $ac_executable_extensions; do
2999 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3000 ac_cv_prog_ac_ct_CC="$ac_prog"
3001 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3002 break 2
3003 fi
3004done
3005done
3006
3007fi
3008fi
3009ac_ct_CC=$ac_cv_prog_ac_ct_CC
3010if test -n "$ac_ct_CC"; then
3011 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3012echo "${ECHO_T}$ac_ct_CC" >&6
3013else
3014 echo "$as_me:$LINENO: result: no" >&5
3015echo "${ECHO_T}no" >&6
3016fi
3017
3018 test -n "$ac_ct_CC" && break
3019done
3020
3021 CC=$ac_ct_CC
3022fi
3023
3024fi
3025
3026
3027test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3028See \`config.log' for more details." >&5
3029echo "$as_me: error: no acceptable C compiler found in \$PATH
3030See \`config.log' for more details." >&2;}
3031 { (exit 1); exit 1; }; }
3032
3033# Provide some information about the compiler.
3034echo "$as_me:$LINENO:" \
3035 "checking for C compiler version" >&5
3036ac_compiler=`set X $ac_compile; echo $2`
3037{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3038 (eval $ac_compiler --version </dev/null >&5) 2>&5
3039 ac_status=$?
3040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3041 (exit $ac_status); }
3042{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3043 (eval $ac_compiler -v </dev/null >&5) 2>&5
3044 ac_status=$?
3045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3046 (exit $ac_status); }
3047{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3048 (eval $ac_compiler -V </dev/null >&5) 2>&5
3049 ac_status=$?
3050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3051 (exit $ac_status); }
3052
3053cat >conftest.$ac_ext <<_ACEOF
3054/* confdefs.h. */
3055_ACEOF
3056cat confdefs.h >>conftest.$ac_ext
3057cat >>conftest.$ac_ext <<_ACEOF
3058/* end confdefs.h. */
3059
3060int
3061main ()
3062{
3063
3064 ;
3065 return 0;
3066}
3067_ACEOF
3068ac_clean_files_save=$ac_clean_files
3069ac_clean_files="$ac_clean_files a.out a.exe b.out"
3070# Try to create an executable without -o first, disregard a.out.
3071# It will help us diagnose broken compilers, and finding out an intuition
3072# of exeext.
3073echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3074echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
3075ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3076if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
3077 (eval $ac_link_default) 2>&5
3078 ac_status=$?
3079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3080 (exit $ac_status); }; then
3081 # Find the output, starting from the most likely. This scheme is
3082# not robust to junk in `.', hence go to wildcards (a.*) only as a last
3083# resort.
3084
3085# Be careful to initialize this variable, since it used to be cached.
3086# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
3087ac_cv_exeext=
3088# b.out is created by i960 compilers.
3089for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
3090do
3091 test -f "$ac_file" || continue
3092 case $ac_file in
3093 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
3094 ;;
3095 conftest.$ac_ext )
3096 # This is the source file.
3097 ;;
3098 [ab].out )
3099 # We found the default executable, but exeext='' is most
3100 # certainly right.
3101 break;;
3102 *.* )
3103 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3104 # FIXME: I believe we export ac_cv_exeext for Libtool,
3105 # but it would be cool to find out if it's true. Does anybody
3106 # maintain Libtool? --akim.
3107 export ac_cv_exeext
3108 break;;
3109 * )
3110 break;;
3111 esac
3112done
3113else
3114 echo "$as_me: failed program was:" >&5
3115sed 's/^/| /' conftest.$ac_ext >&5
3116
3117{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
3118See \`config.log' for more details." >&5
3119echo "$as_me: error: C compiler cannot create executables
3120See \`config.log' for more details." >&2;}
3121 { (exit 77); exit 77; }; }
3122fi
3123
3124ac_exeext=$ac_cv_exeext
3125echo "$as_me:$LINENO: result: $ac_file" >&5
3126echo "${ECHO_T}$ac_file" >&6
3127
3128# Check the compiler produces executables we can run. If not, either
3129# the compiler is broken, or we cross compile.
3130echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3131echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
3132# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3133# If not cross compiling, check that we can run a simple program.
3134if test "$cross_compiling" != yes; then
3135 if { ac_try='./$ac_file'
3136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3137 (eval $ac_try) 2>&5
3138 ac_status=$?
3139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3140 (exit $ac_status); }; }; then
3141 cross_compiling=no
3142 else
3143 if test "$cross_compiling" = maybe; then
3144 cross_compiling=yes
3145 else
3146 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3147If you meant to cross compile, use \`--host'.
3148See \`config.log' for more details." >&5
3149echo "$as_me: error: cannot run C compiled programs.
3150If you meant to cross compile, use \`--host'.
3151See \`config.log' for more details." >&2;}
3152 { (exit 1); exit 1; }; }
3153 fi
3154 fi
3155fi
3156echo "$as_me:$LINENO: result: yes" >&5
3157echo "${ECHO_T}yes" >&6
3158
3159rm -f a.out a.exe conftest$ac_cv_exeext b.out
3160ac_clean_files=$ac_clean_files_save
3161# Check the compiler produces executables we can run. If not, either
3162# the compiler is broken, or we cross compile.
3163echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3164echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
3165echo "$as_me:$LINENO: result: $cross_compiling" >&5
3166echo "${ECHO_T}$cross_compiling" >&6
3167
3168echo "$as_me:$LINENO: checking for suffix of executables" >&5
3169echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
3170if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3171 (eval $ac_link) 2>&5
3172 ac_status=$?
3173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3174 (exit $ac_status); }; then
3175 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3176# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3177# work properly (i.e., refer to `conftest.exe'), while it won't with
3178# `rm'.
3179for ac_file in conftest.exe conftest conftest.*; do
3180 test -f "$ac_file" || continue
3181 case $ac_file in
3182 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
3183 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3184 export ac_cv_exeext
3185 break;;
3186 * ) break;;
3187 esac
3188done
3189else
3190 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3191See \`config.log' for more details." >&5
3192echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3193See \`config.log' for more details." >&2;}
3194 { (exit 1); exit 1; }; }
3195fi
3196
3197rm -f conftest$ac_cv_exeext
3198echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3199echo "${ECHO_T}$ac_cv_exeext" >&6
3200
3201rm -f conftest.$ac_ext
3202EXEEXT=$ac_cv_exeext
3203ac_exeext=$EXEEXT
3204echo "$as_me:$LINENO: checking for suffix of object files" >&5
3205echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
3206if test "${ac_cv_objext+set}" = set; then
3207 echo $ECHO_N "(cached) $ECHO_C" >&6
3208else
3209 cat >conftest.$ac_ext <<_ACEOF
3210/* confdefs.h. */
3211_ACEOF
3212cat confdefs.h >>conftest.$ac_ext
3213cat >>conftest.$ac_ext <<_ACEOF
3214/* end confdefs.h. */
3215
3216int
3217main ()
3218{
3219
3220 ;
3221 return 0;
3222}
3223_ACEOF
3224rm -f conftest.o conftest.obj
3225if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3226 (eval $ac_compile) 2>&5
3227 ac_status=$?
3228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3229 (exit $ac_status); }; then
3230 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
3231 case $ac_file in
3232 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
3233 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3234 break;;
3235 esac
3236done
3237else
3238 echo "$as_me: failed program was:" >&5
3239sed 's/^/| /' conftest.$ac_ext >&5
3240
3241{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3242See \`config.log' for more details." >&5
3243echo "$as_me: error: cannot compute suffix of object files: cannot compile
3244See \`config.log' for more details." >&2;}
3245 { (exit 1); exit 1; }; }
3246fi
3247
3248rm -f conftest.$ac_cv_objext conftest.$ac_ext
3249fi
3250echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3251echo "${ECHO_T}$ac_cv_objext" >&6
3252OBJEXT=$ac_cv_objext
3253ac_objext=$OBJEXT
3254echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3255echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3256if test "${ac_cv_c_compiler_gnu+set}" = set; then
3257 echo $ECHO_N "(cached) $ECHO_C" >&6
3258else
3259 cat >conftest.$ac_ext <<_ACEOF
3260/* confdefs.h. */
3261_ACEOF
3262cat confdefs.h >>conftest.$ac_ext
3263cat >>conftest.$ac_ext <<_ACEOF
3264/* end confdefs.h. */
3265
3266int
3267main ()
3268{
3269#ifndef __GNUC__
3270 choke me
3271#endif
3272
3273 ;
3274 return 0;
3275}
3276_ACEOF
3277rm -f conftest.$ac_objext
3278if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3279 (eval $ac_compile) 2>conftest.er1
3280 ac_status=$?
3281 grep -v '^ *+' conftest.er1 >conftest.err
3282 rm -f conftest.er1
3283 cat conftest.err >&5
3284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3285 (exit $ac_status); } &&
3286 { ac_try='test -z "$ac_c_werror_flag"
3287 || test ! -s conftest.err'
3288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3289 (eval $ac_try) 2>&5
3290 ac_status=$?
3291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3292 (exit $ac_status); }; } &&
3293 { ac_try='test -s conftest.$ac_objext'
3294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3295 (eval $ac_try) 2>&5
3296 ac_status=$?
3297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3298 (exit $ac_status); }; }; then
3299 ac_compiler_gnu=yes
3300else
3301 echo "$as_me: failed program was:" >&5
3302sed 's/^/| /' conftest.$ac_ext >&5
3303
3304ac_compiler_gnu=no
3305fi
3306rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3307ac_cv_c_compiler_gnu=$ac_compiler_gnu
3308
3309fi
3310echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3311echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3312GCC=`test $ac_compiler_gnu = yes && echo yes`
3313ac_test_CFLAGS=${CFLAGS+set}
3314ac_save_CFLAGS=$CFLAGS
3315CFLAGS="-g"
3316echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3317echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3318if test "${ac_cv_prog_cc_g+set}" = set; then
3319 echo $ECHO_N "(cached) $ECHO_C" >&6
3320else
3321 cat >conftest.$ac_ext <<_ACEOF
3322/* confdefs.h. */
3323_ACEOF
3324cat confdefs.h >>conftest.$ac_ext
3325cat >>conftest.$ac_ext <<_ACEOF
3326/* end confdefs.h. */
3327
3328int
3329main ()
3330{
3331
3332 ;
3333 return 0;
3334}
3335_ACEOF
3336rm -f conftest.$ac_objext
3337if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3338 (eval $ac_compile) 2>conftest.er1
3339 ac_status=$?
3340 grep -v '^ *+' conftest.er1 >conftest.err
3341 rm -f conftest.er1
3342 cat conftest.err >&5
3343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3344 (exit $ac_status); } &&
3345 { ac_try='test -z "$ac_c_werror_flag"
3346 || test ! -s conftest.err'
3347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3348 (eval $ac_try) 2>&5
3349 ac_status=$?
3350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3351 (exit $ac_status); }; } &&
3352 { ac_try='test -s conftest.$ac_objext'
3353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3354 (eval $ac_try) 2>&5
3355 ac_status=$?
3356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3357 (exit $ac_status); }; }; then
3358 ac_cv_prog_cc_g=yes
3359else
3360 echo "$as_me: failed program was:" >&5
3361sed 's/^/| /' conftest.$ac_ext >&5
3362
3363ac_cv_prog_cc_g=no
3364fi
3365rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3366fi
3367echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3368echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3369if test "$ac_test_CFLAGS" = set; then
3370 CFLAGS=$ac_save_CFLAGS
3371elif test $ac_cv_prog_cc_g = yes; then
3372 if test "$GCC" = yes; then
3373 CFLAGS="-g -O2"
3374 else
3375 CFLAGS="-g"
3376 fi
3377else
3378 if test "$GCC" = yes; then
3379 CFLAGS="-O2"
3380 else
3381 CFLAGS=
3382 fi
3383fi
3384echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3385echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3386if test "${ac_cv_prog_cc_stdc+set}" = set; then
3387 echo $ECHO_N "(cached) $ECHO_C" >&6
3388else
3389 ac_cv_prog_cc_stdc=no
3390ac_save_CC=$CC
3391cat >conftest.$ac_ext <<_ACEOF
3392/* confdefs.h. */
3393_ACEOF
3394cat confdefs.h >>conftest.$ac_ext
3395cat >>conftest.$ac_ext <<_ACEOF
3396/* end confdefs.h. */
3397#include <stdarg.h>
3398#include <stdio.h>
3399#include <sys/types.h>
3400#include <sys/stat.h>
3401/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3402struct buf { int x; };
3403FILE * (*rcsopen) (struct buf *, struct stat *, int);
3404static char *e (p, i)
3405 char **p;
3406 int i;
3407{
3408 return p[i];
3409}
3410static char *f (char * (*g) (char **, int), char **p, ...)
3411{
3412 char *s;
3413 va_list v;
3414 va_start (v,p);
3415 s = g (p, va_arg (v,int));
3416 va_end (v);
3417 return s;
3418}
3419
3420/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3421 function prototypes and stuff, but not '\xHH' hex character constants.
3422 These don't provoke an error unfortunately, instead are silently treated
3423 as 'x'. The following induces an error, until -std1 is added to get
3424 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3425 array size at least. It's necessary to write '\x00'==0 to get something
3426 that's true only with -std1. */
3427int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3428
3429int test (int i, double x);
3430struct s1 {int (*f) (int a);};
3431struct s2 {int (*f) (double a);};
3432int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3433int argc;
3434char **argv;
3435int
3436main ()
3437{
3438return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3439 ;
3440 return 0;
3441}
3442_ACEOF
3443# Don't try gcc -ansi; that turns off useful extensions and
3444# breaks some systems' header files.
3445# AIX -qlanglvl=ansi
3446# Ultrix and OSF/1 -std1
3447# HP-UX 10.20 and later -Ae
3448# HP-UX older versions -Aa -D_HPUX_SOURCE
3449# SVR4 -Xc -D__EXTENSIONS__
3450for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3451do
3452 CC="$ac_save_CC $ac_arg"
3453 rm -f conftest.$ac_objext
3454if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3455 (eval $ac_compile) 2>conftest.er1
3456 ac_status=$?
3457 grep -v '^ *+' conftest.er1 >conftest.err
3458 rm -f conftest.er1
3459 cat conftest.err >&5
3460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3461 (exit $ac_status); } &&
3462 { ac_try='test -z "$ac_c_werror_flag"
3463 || test ! -s conftest.err'
3464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3465 (eval $ac_try) 2>&5
3466 ac_status=$?
3467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3468 (exit $ac_status); }; } &&
3469 { ac_try='test -s conftest.$ac_objext'
3470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3471 (eval $ac_try) 2>&5
3472 ac_status=$?
3473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3474 (exit $ac_status); }; }; then
3475 ac_cv_prog_cc_stdc=$ac_arg
3476break
3477else
3478 echo "$as_me: failed program was:" >&5
3479sed 's/^/| /' conftest.$ac_ext >&5
3480
3481fi
3482rm -f conftest.err conftest.$ac_objext
3483done
3484rm -f conftest.$ac_ext conftest.$ac_objext
3485CC=$ac_save_CC
3486
3487fi
3488
3489case "x$ac_cv_prog_cc_stdc" in
3490 x|xno)
3491 echo "$as_me:$LINENO: result: none needed" >&5
3492echo "${ECHO_T}none needed" >&6 ;;
3493 *)
3494 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3495echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3496 CC="$CC $ac_cv_prog_cc_stdc" ;;
3497esac
3498
3499# Some people use a C++ compiler to compile C. Since we use `exit',
3500# in C++ we need to declare it. In case someone uses the same compiler
3501# for both compiling C and C++ we need to have the C++ compiler decide
3502# the declaration of exit, since it's the most demanding environment.
3503cat >conftest.$ac_ext <<_ACEOF
3504#ifndef __cplusplus
3505 choke me
3506#endif
3507_ACEOF
3508rm -f conftest.$ac_objext
3509if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3510 (eval $ac_compile) 2>conftest.er1
3511 ac_status=$?
3512 grep -v '^ *+' conftest.er1 >conftest.err
3513 rm -f conftest.er1
3514 cat conftest.err >&5
3515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3516 (exit $ac_status); } &&
3517 { ac_try='test -z "$ac_c_werror_flag"
3518 || test ! -s conftest.err'
3519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3520 (eval $ac_try) 2>&5
3521 ac_status=$?
3522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3523 (exit $ac_status); }; } &&
3524 { ac_try='test -s conftest.$ac_objext'
3525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3526 (eval $ac_try) 2>&5
3527 ac_status=$?
3528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3529 (exit $ac_status); }; }; then
3530 for ac_declaration in \
3531 '' \
3532 'extern "C" void std::exit (int) throw (); using std::exit;' \
3533 'extern "C" void std::exit (int); using std::exit;' \
3534 'extern "C" void exit (int) throw ();' \
3535 'extern "C" void exit (int);' \
3536 'void exit (int);'
3537do
3538 cat >conftest.$ac_ext <<_ACEOF
3539/* confdefs.h. */
3540_ACEOF
3541cat confdefs.h >>conftest.$ac_ext
3542cat >>conftest.$ac_ext <<_ACEOF
3543/* end confdefs.h. */
3544$ac_declaration
3545#include <stdlib.h>
3546int
3547main ()
3548{
3549exit (42);
3550 ;
3551 return 0;
3552}
3553_ACEOF
3554rm -f conftest.$ac_objext
3555if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3556 (eval $ac_compile) 2>conftest.er1
3557 ac_status=$?
3558 grep -v '^ *+' conftest.er1 >conftest.err
3559 rm -f conftest.er1
3560 cat conftest.err >&5
3561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3562 (exit $ac_status); } &&
3563 { ac_try='test -z "$ac_c_werror_flag"
3564 || test ! -s conftest.err'
3565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3566 (eval $ac_try) 2>&5
3567 ac_status=$?
3568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3569 (exit $ac_status); }; } &&
3570 { ac_try='test -s conftest.$ac_objext'
3571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3572 (eval $ac_try) 2>&5
3573 ac_status=$?
3574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3575 (exit $ac_status); }; }; then
3576 :
3577else
3578 echo "$as_me: failed program was:" >&5
3579sed 's/^/| /' conftest.$ac_ext >&5
3580
3581continue
3582fi
3583rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3584 cat >conftest.$ac_ext <<_ACEOF
3585/* confdefs.h. */
3586_ACEOF
3587cat confdefs.h >>conftest.$ac_ext
3588cat >>conftest.$ac_ext <<_ACEOF
3589/* end confdefs.h. */
3590$ac_declaration
3591int
3592main ()
3593{
3594exit (42);
3595 ;
3596 return 0;
3597}
3598_ACEOF
3599rm -f conftest.$ac_objext
3600if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3601 (eval $ac_compile) 2>conftest.er1
3602 ac_status=$?
3603 grep -v '^ *+' conftest.er1 >conftest.err
3604 rm -f conftest.er1
3605 cat conftest.err >&5
3606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3607 (exit $ac_status); } &&
3608 { ac_try='test -z "$ac_c_werror_flag"
3609 || test ! -s conftest.err'
3610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3611 (eval $ac_try) 2>&5
3612 ac_status=$?
3613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3614 (exit $ac_status); }; } &&
3615 { ac_try='test -s conftest.$ac_objext'
3616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3617 (eval $ac_try) 2>&5
3618 ac_status=$?
3619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3620 (exit $ac_status); }; }; then
3621 break
3622else
3623 echo "$as_me: failed program was:" >&5
3624sed 's/^/| /' conftest.$ac_ext >&5
3625
3626fi
3627rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3628done
3629rm -f conftest*
3630if test -n "$ac_declaration"; then
3631 echo '#ifdef __cplusplus' >>confdefs.h
3632 echo $ac_declaration >>confdefs.h
3633 echo '#endif' >>confdefs.h
3634fi
3635
3636else
3637 echo "$as_me: failed program was:" >&5
3638sed 's/^/| /' conftest.$ac_ext >&5
3639
3640fi
3641rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3642ac_ext=c
3643ac_cpp='$CPP $CPPFLAGS'
3644ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3645ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3646ac_compiler_gnu=$ac_cv_c_compiler_gnu
3647
3648
3649# On Suns, sometimes $CPP names a directory.
3650if test -n "$CPP" && test -d "$CPP"; then
3651 CPP=
3652fi
3653
3654#### Some systems specify a CPP to use unless we are using GCC.
3655#### Now that we know whether we are using GCC, we can decide whether
3656#### to use that one.
3657if test "x$NON_GNU_CPP" != x && test x$GCC != xyes && test "x$CPP" = x
3658then
3659 CPP="$NON_GNU_CPP"
3660fi
3661
3662#### Some systems specify a CC to use unless we are using GCC.
3663#### Now that we know whether we are using GCC, we can decide whether
3664#### to use that one.
3665if test "x$NON_GNU_CC" != x && test x$GCC != xyes &&
3666 test x$cc_specified != xyes
3667then
3668 CC="$NON_GNU_CC"
3669fi
3670
3671if test x$GCC = xyes && test "x$GCC_TEST_OPTIONS" != x
3672then
3673 CC="$CC $GCC_TEST_OPTIONS"
3674fi
3675
3676if test x$GCC = x && test "x$NON_GCC_TEST_OPTIONS" != x
3677then
3678 CC="$CC $NON_GCC_TEST_OPTIONS"
3679fi
3680
3681
3682ac_ext=c
3683ac_cpp='$CPP $CPPFLAGS'
3684ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3685ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3686ac_compiler_gnu=$ac_cv_c_compiler_gnu
3687echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3688echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3689# On Suns, sometimes $CPP names a directory.
3690if test -n "$CPP" && test -d "$CPP"; then
3691 CPP=
3692fi
3693if test -z "$CPP"; then
3694 if test "${ac_cv_prog_CPP+set}" = set; then
3695 echo $ECHO_N "(cached) $ECHO_C" >&6
3696else
3697 # Double quotes because CPP needs to be expanded
3698 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3699 do
3700 ac_preproc_ok=false
3701for ac_c_preproc_warn_flag in '' yes
3702do
3703 # Use a header file that comes with gcc, so configuring glibc
3704 # with a fresh cross-compiler works.
3705 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3706 # <limits.h> exists even on freestanding compilers.
3707 # On the NeXT, cc -E runs the code through the compiler's parser,
3708 # not just through cpp. "Syntax error" is here to catch this case.
3709 cat >conftest.$ac_ext <<_ACEOF
3710/* confdefs.h. */
3711_ACEOF
3712cat confdefs.h >>conftest.$ac_ext
3713cat >>conftest.$ac_ext <<_ACEOF
3714/* end confdefs.h. */
3715#ifdef __STDC__
3716# include <limits.h>
3717#else
3718# include <assert.h>
3719#endif
3720 Syntax error
3721_ACEOF
3722if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3723 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3724 ac_status=$?
3725 grep -v '^ *+' conftest.er1 >conftest.err
3726 rm -f conftest.er1
3727 cat conftest.err >&5
3728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3729 (exit $ac_status); } >/dev/null; then
3730 if test -s conftest.err; then
3731 ac_cpp_err=$ac_c_preproc_warn_flag
3732 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3733 else
3734 ac_cpp_err=
3735 fi
3736else
3737 ac_cpp_err=yes
3738fi
3739if test -z "$ac_cpp_err"; then
3740 :
3741else
3742 echo "$as_me: failed program was:" >&5
3743sed 's/^/| /' conftest.$ac_ext >&5
3744
3745 # Broken: fails on valid input.
3746continue
3747fi
3748rm -f conftest.err conftest.$ac_ext
3749
3750 # OK, works on sane cases. Now check whether non-existent headers
3751 # can be detected and how.
3752 cat >conftest.$ac_ext <<_ACEOF
3753/* confdefs.h. */
3754_ACEOF
3755cat confdefs.h >>conftest.$ac_ext
3756cat >>conftest.$ac_ext <<_ACEOF
3757/* end confdefs.h. */
3758#include <ac_nonexistent.h>
3759_ACEOF
3760if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3761 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3762 ac_status=$?
3763 grep -v '^ *+' conftest.er1 >conftest.err
3764 rm -f conftest.er1
3765 cat conftest.err >&5
3766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3767 (exit $ac_status); } >/dev/null; then
3768 if test -s conftest.err; then
3769 ac_cpp_err=$ac_c_preproc_warn_flag
3770 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3771 else
3772 ac_cpp_err=
3773 fi
3774else
3775 ac_cpp_err=yes
3776fi
3777if test -z "$ac_cpp_err"; then
3778 # Broken: success on invalid input.
3779continue
3780else
3781 echo "$as_me: failed program was:" >&5
3782sed 's/^/| /' conftest.$ac_ext >&5
3783
3784 # Passes both tests.
3785ac_preproc_ok=:
3786break
3787fi
3788rm -f conftest.err conftest.$ac_ext
3789
3790done
3791# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3792rm -f conftest.err conftest.$ac_ext
3793if $ac_preproc_ok; then
3794 break
3795fi
3796
3797 done
3798 ac_cv_prog_CPP=$CPP
3799
3800fi
3801 CPP=$ac_cv_prog_CPP
3802else
3803 ac_cv_prog_CPP=$CPP
3804fi
3805echo "$as_me:$LINENO: result: $CPP" >&5
3806echo "${ECHO_T}$CPP" >&6
3807ac_preproc_ok=false
3808for ac_c_preproc_warn_flag in '' yes
3809do
3810 # Use a header file that comes with gcc, so configuring glibc
3811 # with a fresh cross-compiler works.
3812 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3813 # <limits.h> exists even on freestanding compilers.
3814 # On the NeXT, cc -E runs the code through the compiler's parser,
3815 # not just through cpp. "Syntax error" is here to catch this case.
3816 cat >conftest.$ac_ext <<_ACEOF
3817/* confdefs.h. */
3818_ACEOF
3819cat confdefs.h >>conftest.$ac_ext
3820cat >>conftest.$ac_ext <<_ACEOF
3821/* end confdefs.h. */
3822#ifdef __STDC__
3823# include <limits.h>
3824#else
3825# include <assert.h>
3826#endif
3827 Syntax error
3828_ACEOF
3829if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3830 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3831 ac_status=$?
3832 grep -v '^ *+' conftest.er1 >conftest.err
3833 rm -f conftest.er1
3834 cat conftest.err >&5
3835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3836 (exit $ac_status); } >/dev/null; then
3837 if test -s conftest.err; then
3838 ac_cpp_err=$ac_c_preproc_warn_flag
3839 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3840 else
3841 ac_cpp_err=
3842 fi
3843else
3844 ac_cpp_err=yes
3845fi
3846if test -z "$ac_cpp_err"; then
3847 :
3848else
3849 echo "$as_me: failed program was:" >&5
3850sed 's/^/| /' conftest.$ac_ext >&5
3851
3852 # Broken: fails on valid input.
3853continue
3854fi
3855rm -f conftest.err conftest.$ac_ext
3856
3857 # OK, works on sane cases. Now check whether non-existent headers
3858 # can be detected and how.
3859 cat >conftest.$ac_ext <<_ACEOF
3860/* confdefs.h. */
3861_ACEOF
3862cat confdefs.h >>conftest.$ac_ext
3863cat >>conftest.$ac_ext <<_ACEOF
3864/* end confdefs.h. */
3865#include <ac_nonexistent.h>
3866_ACEOF
3867if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3868 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3869 ac_status=$?
3870 grep -v '^ *+' conftest.er1 >conftest.err
3871 rm -f conftest.er1
3872 cat conftest.err >&5
3873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3874 (exit $ac_status); } >/dev/null; then
3875 if test -s conftest.err; then
3876 ac_cpp_err=$ac_c_preproc_warn_flag
3877 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3878 else
3879 ac_cpp_err=
3880 fi
3881else
3882 ac_cpp_err=yes
3883fi
3884if test -z "$ac_cpp_err"; then
3885 # Broken: success on invalid input.
3886continue
3887else
3888 echo "$as_me: failed program was:" >&5
3889sed 's/^/| /' conftest.$ac_ext >&5
3890
3891 # Passes both tests.
3892ac_preproc_ok=:
3893break
3894fi
3895rm -f conftest.err conftest.$ac_ext
3896
3897done
3898# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3899rm -f conftest.err conftest.$ac_ext
3900if $ac_preproc_ok; then
3901 :
3902else
3903 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3904See \`config.log' for more details." >&5
3905echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3906See \`config.log' for more details." >&2;}
3907 { (exit 1); exit 1; }; }
3908fi
3909
3910ac_ext=c
3911ac_cpp='$CPP $CPPFLAGS'
3912ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3913ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3914ac_compiler_gnu=$ac_cv_c_compiler_gnu
3915
3916
3917echo "$as_me:$LINENO: checking for egrep" >&5
3918echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3919if test "${ac_cv_prog_egrep+set}" = set; then
3920 echo $ECHO_N "(cached) $ECHO_C" >&6
3921else
3922 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3923 then ac_cv_prog_egrep='grep -E'
3924 else ac_cv_prog_egrep='egrep'
3925 fi
3926fi
3927echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3928echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3929 EGREP=$ac_cv_prog_egrep
3930
3931
3932
3933echo "$as_me:$LINENO: checking for AIX" >&5
3934echo $ECHO_N "checking for AIX... $ECHO_C" >&6
3935cat >conftest.$ac_ext <<_ACEOF
3936/* confdefs.h. */
3937_ACEOF
3938cat confdefs.h >>conftest.$ac_ext
3939cat >>conftest.$ac_ext <<_ACEOF
3940/* end confdefs.h. */
3941#ifdef _AIX
3942 yes
3943#endif
3944
3945_ACEOF
3946if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3947 $EGREP "yes" >/dev/null 2>&1; then
3948 echo "$as_me:$LINENO: result: yes" >&5
3949echo "${ECHO_T}yes" >&6
3950cat >>confdefs.h <<\_ACEOF
3951#define _ALL_SOURCE 1
3952_ACEOF
3953
3954else
3955 echo "$as_me:$LINENO: result: no" >&5
3956echo "${ECHO_T}no" >&6
3957fi
3958rm -f conftest*
3959
3960
3961
3962cat >>confdefs.h <<\_ACEOF
3963#define _GNU_SOURCE 1
3964_ACEOF
3965
3966
3967
3968### Use -Wno-pointer-sign if the compiler supports it
3969echo "$as_me:$LINENO: checking whether gcc understands -Wno-pointer-sign" >&5
3970echo $ECHO_N "checking whether gcc understands -Wno-pointer-sign... $ECHO_C" >&6
3971SAVE_CFLAGS="$CFLAGS"
3972CFLAGS="$CFLAGS -Wno-pointer-sign"
3973cat >conftest.$ac_ext <<_ACEOF
3974/* confdefs.h. */
3975_ACEOF
3976cat confdefs.h >>conftest.$ac_ext
3977cat >>conftest.$ac_ext <<_ACEOF
3978/* end confdefs.h. */
3979
3980int
3981main ()
3982{
3983
3984 ;
3985 return 0;
3986}
3987_ACEOF
3988rm -f conftest.$ac_objext
3989if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3990 (eval $ac_compile) 2>conftest.er1
3991 ac_status=$?
3992 grep -v '^ *+' conftest.er1 >conftest.err
3993 rm -f conftest.er1
3994 cat conftest.err >&5
3995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3996 (exit $ac_status); } &&
3997 { ac_try='test -z "$ac_c_werror_flag"
3998 || test ! -s conftest.err'
3999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4000 (eval $ac_try) 2>&5
4001 ac_status=$?
4002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4003 (exit $ac_status); }; } &&
4004 { ac_try='test -s conftest.$ac_objext'
4005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4006 (eval $ac_try) 2>&5
4007 ac_status=$?
4008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4009 (exit $ac_status); }; }; then
4010 has_option=yes
4011else
4012 echo "$as_me: failed program was:" >&5
4013sed 's/^/| /' conftest.$ac_ext >&5
4014
4015has_option=no
4016fi
4017rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4018if test $has_option = yes; then
4019 C_WARNINGS_SWITCH="-Wno-pointer-sign $C_WARNINGS_SWITCH"
4020fi
4021echo "$as_me:$LINENO: result: $has_option" >&5
4022echo "${ECHO_T}$has_option" >&6
4023CFLAGS="$SAVE_CFLAGS"
4024unset has_option
4025unset SAVE_CFLAGS
4026
4027#### Some other nice autoconf tests.
4028
4029echo "$as_me:$LINENO: checking whether ln -s works" >&5
4030echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4031LN_S=$as_ln_s
4032if test "$LN_S" = "ln -s"; then
4033 echo "$as_me:$LINENO: result: yes" >&5
4034echo "${ECHO_T}yes" >&6
4035else
4036 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4037echo "${ECHO_T}no, using $LN_S" >&6
4038fi
4039
4040ac_ext=c
4041ac_cpp='$CPP $CPPFLAGS'
4042ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4043ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4044ac_compiler_gnu=$ac_cv_c_compiler_gnu
4045echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4046echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
4047# On Suns, sometimes $CPP names a directory.
4048if test -n "$CPP" && test -d "$CPP"; then
4049 CPP=
4050fi
4051if test -z "$CPP"; then
4052 if test "${ac_cv_prog_CPP+set}" = set; then
4053 echo $ECHO_N "(cached) $ECHO_C" >&6
4054else
4055 # Double quotes because CPP needs to be expanded
4056 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4057 do
4058 ac_preproc_ok=false
4059for ac_c_preproc_warn_flag in '' yes
4060do
4061 # Use a header file that comes with gcc, so configuring glibc
4062 # with a fresh cross-compiler works.
4063 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4064 # <limits.h> exists even on freestanding compilers.
4065 # On the NeXT, cc -E runs the code through the compiler's parser,
4066 # not just through cpp. "Syntax error" is here to catch this case.
4067 cat >conftest.$ac_ext <<_ACEOF
4068/* confdefs.h. */
4069_ACEOF
4070cat confdefs.h >>conftest.$ac_ext
4071cat >>conftest.$ac_ext <<_ACEOF
4072/* end confdefs.h. */
4073#ifdef __STDC__
4074# include <limits.h>
4075#else
4076# include <assert.h>
4077#endif
4078 Syntax error
4079_ACEOF
4080if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4081 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4082 ac_status=$?
4083 grep -v '^ *+' conftest.er1 >conftest.err
4084 rm -f conftest.er1
4085 cat conftest.err >&5
4086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4087 (exit $ac_status); } >/dev/null; then
4088 if test -s conftest.err; then
4089 ac_cpp_err=$ac_c_preproc_warn_flag
4090 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4091 else
4092 ac_cpp_err=
4093 fi
4094else
4095 ac_cpp_err=yes
4096fi
4097if test -z "$ac_cpp_err"; then
4098 :
4099else
4100 echo "$as_me: failed program was:" >&5
4101sed 's/^/| /' conftest.$ac_ext >&5
4102
4103 # Broken: fails on valid input.
4104continue
4105fi
4106rm -f conftest.err conftest.$ac_ext
4107
4108 # OK, works on sane cases. Now check whether non-existent headers
4109 # can be detected and how.
4110 cat >conftest.$ac_ext <<_ACEOF
4111/* confdefs.h. */
4112_ACEOF
4113cat confdefs.h >>conftest.$ac_ext
4114cat >>conftest.$ac_ext <<_ACEOF
4115/* end confdefs.h. */
4116#include <ac_nonexistent.h>
4117_ACEOF
4118if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4119 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4120 ac_status=$?
4121 grep -v '^ *+' conftest.er1 >conftest.err
4122 rm -f conftest.er1
4123 cat conftest.err >&5
4124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4125 (exit $ac_status); } >/dev/null; then
4126 if test -s conftest.err; then
4127 ac_cpp_err=$ac_c_preproc_warn_flag
4128 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4129 else
4130 ac_cpp_err=
4131 fi
4132else
4133 ac_cpp_err=yes
4134fi
4135if test -z "$ac_cpp_err"; then
4136 # Broken: success on invalid input.
4137continue
4138else
4139 echo "$as_me: failed program was:" >&5
4140sed 's/^/| /' conftest.$ac_ext >&5
4141
4142 # Passes both tests.
4143ac_preproc_ok=:
4144break
4145fi
4146rm -f conftest.err conftest.$ac_ext
4147
4148done
4149# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4150rm -f conftest.err conftest.$ac_ext
4151if $ac_preproc_ok; then
4152 break
4153fi
4154
4155 done
4156 ac_cv_prog_CPP=$CPP
4157
4158fi
4159 CPP=$ac_cv_prog_CPP
4160else
4161 ac_cv_prog_CPP=$CPP
4162fi
4163echo "$as_me:$LINENO: result: $CPP" >&5
4164echo "${ECHO_T}$CPP" >&6
4165ac_preproc_ok=false
4166for ac_c_preproc_warn_flag in '' yes
4167do
4168 # Use a header file that comes with gcc, so configuring glibc
4169 # with a fresh cross-compiler works.
4170 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4171 # <limits.h> exists even on freestanding compilers.
4172 # On the NeXT, cc -E runs the code through the compiler's parser,
4173 # not just through cpp. "Syntax error" is here to catch this case.
4174 cat >conftest.$ac_ext <<_ACEOF
4175/* confdefs.h. */
4176_ACEOF
4177cat confdefs.h >>conftest.$ac_ext
4178cat >>conftest.$ac_ext <<_ACEOF
4179/* end confdefs.h. */
4180#ifdef __STDC__
4181# include <limits.h>
4182#else
4183# include <assert.h>
4184#endif
4185 Syntax error
4186_ACEOF
4187if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4188 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4189 ac_status=$?
4190 grep -v '^ *+' conftest.er1 >conftest.err
4191 rm -f conftest.er1
4192 cat conftest.err >&5
4193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4194 (exit $ac_status); } >/dev/null; then
4195 if test -s conftest.err; then
4196 ac_cpp_err=$ac_c_preproc_warn_flag
4197 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4198 else
4199 ac_cpp_err=
4200 fi
4201else
4202 ac_cpp_err=yes
4203fi
4204if test -z "$ac_cpp_err"; then
4205 :
4206else
4207 echo "$as_me: failed program was:" >&5
4208sed 's/^/| /' conftest.$ac_ext >&5
4209
4210 # Broken: fails on valid input.
4211continue
4212fi
4213rm -f conftest.err conftest.$ac_ext
4214
4215 # OK, works on sane cases. Now check whether non-existent headers
4216 # can be detected and how.
4217 cat >conftest.$ac_ext <<_ACEOF
4218/* confdefs.h. */
4219_ACEOF
4220cat confdefs.h >>conftest.$ac_ext
4221cat >>conftest.$ac_ext <<_ACEOF
4222/* end confdefs.h. */
4223#include <ac_nonexistent.h>
4224_ACEOF
4225if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4226 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4227 ac_status=$?
4228 grep -v '^ *+' conftest.er1 >conftest.err
4229 rm -f conftest.er1
4230 cat conftest.err >&5
4231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4232 (exit $ac_status); } >/dev/null; then
4233 if test -s conftest.err; then
4234 ac_cpp_err=$ac_c_preproc_warn_flag
4235 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4236 else
4237 ac_cpp_err=
4238 fi
4239else
4240 ac_cpp_err=yes
4241fi
4242if test -z "$ac_cpp_err"; then
4243 # Broken: success on invalid input.
4244continue
4245else
4246 echo "$as_me: failed program was:" >&5
4247sed 's/^/| /' conftest.$ac_ext >&5
4248
4249 # Passes both tests.
4250ac_preproc_ok=:
4251break
4252fi
4253rm -f conftest.err conftest.$ac_ext
4254
4255done
4256# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4257rm -f conftest.err conftest.$ac_ext
4258if $ac_preproc_ok; then
4259 :
4260else
4261 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4262See \`config.log' for more details." >&5
4263echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4264See \`config.log' for more details." >&2;}
4265 { (exit 1); exit 1; }; }
4266fi
4267
4268ac_ext=c
4269ac_cpp='$CPP $CPPFLAGS'
4270ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4271ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4272ac_compiler_gnu=$ac_cv_c_compiler_gnu
4273
4274# Find a good install program. We prefer a C program (faster),
4275# so one script is as good as another. But avoid the broken or
4276# incompatible versions:
4277# SysV /etc/install, /usr/sbin/install
4278# SunOS /usr/etc/install
4279# IRIX /sbin/install
4280# AIX /bin/install
4281# AmigaOS /C/install, which installs bootblocks on floppy discs
4282# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4283# AFS /usr/afsws/bin/install, which mishandles nonexistent args
4284# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4285# OS/2's system install, which has a completely different semantic
4286# ./install, which can be erroneously created by make from ./install.sh.
4287echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4288echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
4289if test -z "$INSTALL"; then
4290if test "${ac_cv_path_install+set}" = set; then
4291 echo $ECHO_N "(cached) $ECHO_C" >&6
4292else
4293 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4294for as_dir in $PATH
4295do
4296 IFS=$as_save_IFS
4297 test -z "$as_dir" && as_dir=.
4298 # Account for people who put trailing slashes in PATH elements.
4299case $as_dir/ in
4300 ./ | .// | /cC/* | \
4301 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4302 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4303 /usr/ucb/* ) ;;
4304 *)
4305 # OSF1 and SCO ODT 3.0 have their own names for install.
4306 # Don't use installbsd from OSF since it installs stuff as root
4307 # by default.
4308 for ac_prog in ginstall scoinst install; do
4309 for ac_exec_ext in '' $ac_executable_extensions; do
4310 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4311 if test $ac_prog = install &&
4312 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4313 # AIX install. It has an incompatible calling convention.
4314 :
4315 elif test $ac_prog = install &&
4316 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4317 # program-specific install script used by HP pwplus--don't use.
4318 :
4319 else
4320 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4321 break 3
4322 fi
4323 fi
4324 done
4325 done
4326 ;;
4327esac
4328done
4329
4330
4331fi
4332 if test "${ac_cv_path_install+set}" = set; then
4333 INSTALL=$ac_cv_path_install
4334 else
4335 # As a last resort, use the slow shell script. We don't cache a
4336 # path for INSTALL within a source directory, because that will
4337 # break other packages using the cache if that directory is
4338 # removed, or if the path is relative.
4339 INSTALL=$ac_install_sh
4340 fi
4341fi
4342echo "$as_me:$LINENO: result: $INSTALL" >&5
4343echo "${ECHO_T}$INSTALL" >&6
4344
4345# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4346# It thinks the first close brace ends the variable substitution.
4347test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4348
4349test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4350
4351test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4352
4353if test "x$RANLIB" = x; then
4354 if test -n "$ac_tool_prefix"; then
4355 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4356set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4357echo "$as_me:$LINENO: checking for $ac_word" >&5
4358echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4359if test "${ac_cv_prog_RANLIB+set}" = set; then
4360 echo $ECHO_N "(cached) $ECHO_C" >&6
4361else
4362 if test -n "$RANLIB"; then
4363 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4364else
4365as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4366for as_dir in $PATH
4367do
4368 IFS=$as_save_IFS
4369 test -z "$as_dir" && as_dir=.
4370 for ac_exec_ext in '' $ac_executable_extensions; do
4371 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4372 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4373 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4374 break 2
4375 fi
4376done
4377done
4378
4379fi
4380fi
4381RANLIB=$ac_cv_prog_RANLIB
4382if test -n "$RANLIB"; then
4383 echo "$as_me:$LINENO: result: $RANLIB" >&5
4384echo "${ECHO_T}$RANLIB" >&6
4385else
4386 echo "$as_me:$LINENO: result: no" >&5
4387echo "${ECHO_T}no" >&6
4388fi
4389
4390fi
4391if test -z "$ac_cv_prog_RANLIB"; then
4392 ac_ct_RANLIB=$RANLIB
4393 # Extract the first word of "ranlib", so it can be a program name with args.
4394set dummy ranlib; ac_word=$2
4395echo "$as_me:$LINENO: checking for $ac_word" >&5
4396echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4397if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4398 echo $ECHO_N "(cached) $ECHO_C" >&6
4399else
4400 if test -n "$ac_ct_RANLIB"; then
4401 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4402else
4403as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4404for as_dir in $PATH
4405do
4406 IFS=$as_save_IFS
4407 test -z "$as_dir" && as_dir=.
4408 for ac_exec_ext in '' $ac_executable_extensions; do
4409 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4410 ac_cv_prog_ac_ct_RANLIB="ranlib"
4411 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4412 break 2
4413 fi
4414done
4415done
4416
4417 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4418fi
4419fi
4420ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4421if test -n "$ac_ct_RANLIB"; then
4422 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4423echo "${ECHO_T}$ac_ct_RANLIB" >&6
4424else
4425 echo "$as_me:$LINENO: result: no" >&5
4426echo "${ECHO_T}no" >&6
4427fi
4428
4429 RANLIB=$ac_ct_RANLIB
4430else
4431 RANLIB="$ac_cv_prog_RANLIB"
4432fi
4433
4434fi
4435# Extract the first word of "install-info", so it can be a program name with args.
4436set dummy install-info; ac_word=$2
4437echo "$as_me:$LINENO: checking for $ac_word" >&5
4438echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4439if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
4440 echo $ECHO_N "(cached) $ECHO_C" >&6
4441else
4442 case $INSTALL_INFO in
4443 [\\/]* | ?:[\\/]*)
4444 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
4445 ;;
4446 *)
4447 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4448for as_dir in $PATH
4449do
4450 IFS=$as_save_IFS
4451 test -z "$as_dir" && as_dir=.
4452 for ac_exec_ext in '' $ac_executable_extensions; do
4453 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4454 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
4455 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4456 break 2
4457 fi
4458done
4459done
4460
4461 ;;
4462esac
4463fi
4464INSTALL_INFO=$ac_cv_path_INSTALL_INFO
4465
4466if test -n "$INSTALL_INFO"; then
4467 echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
4468echo "${ECHO_T}$INSTALL_INFO" >&6
4469else
4470 echo "$as_me:$LINENO: result: no" >&5
4471echo "${ECHO_T}no" >&6
4472fi
4473
4474# Extract the first word of "install-info", so it can be a program name with args.
4475set dummy install-info; ac_word=$2
4476echo "$as_me:$LINENO: checking for $ac_word" >&5
4477echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4478if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
4479 echo $ECHO_N "(cached) $ECHO_C" >&6
4480else
4481 case $INSTALL_INFO in
4482 [\\/]* | ?:[\\/]*)
4483 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
4484 ;;
4485 *)
4486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4487for as_dir in /usr/sbin
4488do
4489 IFS=$as_save_IFS
4490 test -z "$as_dir" && as_dir=.
4491 for ac_exec_ext in '' $ac_executable_extensions; do
4492 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4493 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
4494 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4495 break 2
4496 fi
4497done
4498done
4499
4500 ;;
4501esac
4502fi
4503INSTALL_INFO=$ac_cv_path_INSTALL_INFO
4504
4505if test -n "$INSTALL_INFO"; then
4506 echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
4507echo "${ECHO_T}$INSTALL_INFO" >&6
4508else
4509 echo "$as_me:$LINENO: result: no" >&5
4510echo "${ECHO_T}no" >&6
4511fi
4512
4513# Extract the first word of "install-info", so it can be a program name with args.
4514set dummy install-info; ac_word=$2
4515echo "$as_me:$LINENO: checking for $ac_word" >&5
4516echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4517if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
4518 echo $ECHO_N "(cached) $ECHO_C" >&6
4519else
4520 case $INSTALL_INFO in
4521 [\\/]* | ?:[\\/]*)
4522 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
4523 ;;
4524 *)
4525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4526for as_dir in /sbin
4527do
4528 IFS=$as_save_IFS
4529 test -z "$as_dir" && as_dir=.
4530 for ac_exec_ext in '' $ac_executable_extensions; do
4531 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4532 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
4533 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4534 break 2
4535 fi
4536done
4537done
4538
4539 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO=":"
4540 ;;
4541esac
4542fi
4543INSTALL_INFO=$ac_cv_path_INSTALL_INFO
4544
4545if test -n "$INSTALL_INFO"; then
4546 echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
4547echo "${ECHO_T}$INSTALL_INFO" >&6
4548else
4549 echo "$as_me:$LINENO: result: no" >&5
4550echo "${ECHO_T}no" >&6
4551fi
4552
4553# Extract the first word of "gzip", so it can be a program name with args.
4554set dummy gzip; ac_word=$2
4555echo "$as_me:$LINENO: checking for $ac_word" >&5
4556echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4557if test "${ac_cv_path_GZIP_PROG+set}" = set; then
4558 echo $ECHO_N "(cached) $ECHO_C" >&6
4559else
4560 case $GZIP_PROG in
4561 [\\/]* | ?:[\\/]*)
4562 ac_cv_path_GZIP_PROG="$GZIP_PROG" # Let the user override the test with a path.
4563 ;;
4564 *)
4565 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4566for as_dir in $PATH
4567do
4568 IFS=$as_save_IFS
4569 test -z "$as_dir" && as_dir=.
4570 for ac_exec_ext in '' $ac_executable_extensions; do
4571 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4572 ac_cv_path_GZIP_PROG="$as_dir/$ac_word$ac_exec_ext"
4573 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4574 break 2
4575 fi
4576done
4577done
4578
4579 ;;
4580esac
4581fi
4582GZIP_PROG=$ac_cv_path_GZIP_PROG
4583
4584if test -n "$GZIP_PROG"; then
4585 echo "$as_me:$LINENO: result: $GZIP_PROG" >&5
4586echo "${ECHO_T}$GZIP_PROG" >&6
4587else
4588 echo "$as_me:$LINENO: result: no" >&5
4589echo "${ECHO_T}no" >&6
4590fi
4591
4592
4593
4594if test x$GCC = xyes && test "x$GCC_LINK_TEST_OPTIONS" != x
4595then
4596 ac_link="$ac_link $GCC_LINK_TEST_OPTIONS"
4597fi
4598
4599if test x$GCC = x && test "x$NON_GCC_LINK_TEST_OPTIONS" != x
4600then
4601 ac_link="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
4602fi
4603
4604
4605late_LDFLAGS=$LDFLAGS
4606if test "$GCC" = yes; then
4607 LDFLAGS="$LDFLAGS -Wl,-znocombreloc"
4608else
4609 LDFLAGS="$LDFLAGS -znocombreloc"
4610fi
4611
4612echo "$as_me:$LINENO: checking for -znocombreloc" >&5
4613echo $ECHO_N "checking for -znocombreloc... $ECHO_C" >&6
4614cat >conftest.$ac_ext <<_ACEOF
4615main(){return 0;}
4616_ACEOF
4617rm -f conftest.$ac_objext conftest$ac_exeext
4618if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4619 (eval $ac_link) 2>conftest.er1
4620 ac_status=$?
4621 grep -v '^ *+' conftest.er1 >conftest.err
4622 rm -f conftest.er1
4623 cat conftest.err >&5
4624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4625 (exit $ac_status); } &&
4626 { ac_try='test -z "$ac_c_werror_flag"
4627 || test ! -s conftest.err'
4628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4629 (eval $ac_try) 2>&5
4630 ac_status=$?
4631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4632 (exit $ac_status); }; } &&
4633 { ac_try='test -s conftest$ac_exeext'
4634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4635 (eval $ac_try) 2>&5
4636 ac_status=$?
4637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4638 (exit $ac_status); }; }; then
4639 echo "$as_me:$LINENO: result: yes" >&5
4640echo "${ECHO_T}yes" >&6
4641else
4642 echo "$as_me: failed program was:" >&5
4643sed 's/^/| /' conftest.$ac_ext >&5
4644
4645LDFLAGS=$late_LDFLAGS
4646 echo "$as_me:$LINENO: result: no" >&5
4647echo "${ECHO_T}no" >&6
4648fi
4649rm -f conftest.err conftest.$ac_objext \
4650 conftest$ac_exeext conftest.$ac_ext
4651
4652#### Extract some information from the operating system and machine files.
4653
4654{ echo "$as_me:$LINENO: checking the machine- and system-dependent files to find out
4655 - which libraries the lib-src programs will want, and
4656 - whether the GNU malloc routines are usable..." >&5
4657echo "$as_me: checking the machine- and system-dependent files to find out
4658 - which libraries the lib-src programs will want, and
4659 - whether the GNU malloc routines are usable..." >&6;}
4660
4661### First figure out CFLAGS (which we use for running the compiler here)
4662### and REAL_CFLAGS (which we use for real compilation).
4663### The two are the same except on a few systems, where they are made
4664### different to work around various lossages. For example,
4665### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
4666### as implying static linking.
4667
4668### If the CFLAGS env var is specified, we use that value
4669### instead of the default.
4670
4671### It's not important that this name contain the PID; you can't run
4672### two configures in the same directory and have anything work
4673### anyway.
4674tempcname="conftest.c"
4675
4676echo '
4677#include "'${srcdir}'/src/'${opsysfile}'"
4678#include "'${srcdir}'/src/'${machfile}'"
4679#ifndef LIBS_MACHINE
4680#define LIBS_MACHINE
4681#endif
4682#ifndef LIBS_SYSTEM
4683#define LIBS_SYSTEM
4684#endif
4685#ifndef C_SWITCH_SYSTEM
4686#define C_SWITCH_SYSTEM
4687#endif
4688#ifndef C_SWITCH_MACHINE
4689#define C_SWITCH_MACHINE
4690#endif
4691configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM
4692configure___ c_switch_system=C_SWITCH_SYSTEM
4693configure___ c_switch_machine=C_SWITCH_MACHINE
4694
4695#ifndef LIB_X11_LIB
4696#define LIB_X11_LIB -lX11
4697#endif
4698
4699#ifndef LIBX11_MACHINE
4700#define LIBX11_MACHINE
4701#endif
4702
4703#ifndef LIBX11_SYSTEM
4704#define LIBX11_SYSTEM
4705#endif
4706configure___ LIBX=LIB_X11_LIB LIBX11_MACHINE LIBX11_SYSTEM
4707
4708#ifdef UNEXEC
4709configure___ unexec=UNEXEC
4710#else
4711configure___ unexec=unexec.o
4712#endif
4713
4714#ifdef SYSTEM_MALLOC
4715configure___ system_malloc=yes
4716#else
4717configure___ system_malloc=no
4718#endif
4719
4720#ifdef USE_MMAP_FOR_BUFFERS
4721configure___ use_mmap_for_buffers=yes
4722#else
4723configure___ use_mmap_for_buffers=no
4724#endif
4725
4726#ifndef C_DEBUG_SWITCH
4727#define C_DEBUG_SWITCH -g
4728#endif
4729
4730#ifndef C_OPTIMIZE_SWITCH
4731#ifdef __GNUC__
4732#define C_OPTIMIZE_SWITCH -O2
4733#else
4734#define C_OPTIMIZE_SWITCH -O
4735#endif
4736#endif
4737
4738#ifndef C_WARNINGS_SWITCH
4739#define C_WARNINGS_SWITCH ${C_WARNINGS_SWITCH}
4740#endif
4741
4742#ifndef LD_SWITCH_MACHINE
4743#define LD_SWITCH_MACHINE
4744#endif
4745
4746#ifndef LD_SWITCH_SYSTEM
4747#define LD_SWITCH_SYSTEM
4748#endif
4749
4750#ifndef LD_SWITCH_X_SITE_AUX
4751#define LD_SWITCH_X_SITE_AUX
4752#endif
4753
4754configure___ ld_switch_system=LD_SWITCH_SYSTEM
4755configure___ ld_switch_machine=LD_SWITCH_MACHINE
4756
4757#ifdef THIS_IS_CONFIGURE
4758
4759/* Get the CFLAGS for tests in configure. */
4760#ifdef __GNUC__
4761configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
4762#else
4763configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
4764#endif
4765
4766#else /* not THIS_IS_CONFIGURE */
4767
4768/* Get the CFLAGS for real compilation. */
4769#ifdef __GNUC__
4770configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH C_WARNINGS_SWITCH '${SPECIFIED_CFLAGS}'
4771#else
4772configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
4773#endif
4774
4775#endif /* not THIS_IS_CONFIGURE */
4776' > ${tempcname}
4777
4778# The value of CPP is a quoted variable reference, so we need to do this
4779# to get its actual value...
4780CPP=`eval "echo $CPP"`
4781eval `${CPP} -Isrc ${tempcname} \
4782 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
4783if test "x$SPECIFIED_CFLAGS" = x; then
4784 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
4785 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
4786else
4787 REAL_CFLAGS="$CFLAGS"
4788fi
4789rm ${tempcname}
4790
4791ac_link="$ac_link $ld_switch_machine $ld_switch_system"
4792
4793### Make sure subsequent tests use flags consistent with the build flags.
4794
4795if test x"${OVERRIDE_CPPFLAGS}" != x; then
4796 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
4797else
4798 CPPFLAGS="$c_switch_system $c_switch_machine $CPPFLAGS"
4799fi
4800
4801
4802
4803# Check whether --enable-largefile or --disable-largefile was given.
4804if test "${enable_largefile+set}" = set; then
4805 enableval="$enable_largefile"
4806
4807fi;
4808if test "$enable_largefile" != no; then
4809
4810 echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
4811echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
4812if test "${ac_cv_sys_largefile_CC+set}" = set; then
4813 echo $ECHO_N "(cached) $ECHO_C" >&6
4814else
4815 ac_cv_sys_largefile_CC=no
4816 if test "$GCC" != yes; then
4817 ac_save_CC=$CC
4818 while :; do
4819 # IRIX 6.2 and later do not support large files by default,
4820 # so use the C compiler's -n32 option if that helps.
4821 cat >conftest.$ac_ext <<_ACEOF
4822/* confdefs.h. */
4823_ACEOF
4824cat confdefs.h >>conftest.$ac_ext
4825cat >>conftest.$ac_ext <<_ACEOF
4826/* end confdefs.h. */
4827#include <sys/types.h>
4828 /* Check that off_t can represent 2**63 - 1 correctly.
4829 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4830 since some C++ compilers masquerading as C compilers
4831 incorrectly reject 9223372036854775807. */
4832#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4833 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4834 && LARGE_OFF_T % 2147483647 == 1)
4835 ? 1 : -1];
4836int
4837main ()
4838{
4839
4840 ;
4841 return 0;
4842}
4843_ACEOF
4844 rm -f conftest.$ac_objext
4845if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4846 (eval $ac_compile) 2>conftest.er1
4847 ac_status=$?
4848 grep -v '^ *+' conftest.er1 >conftest.err
4849 rm -f conftest.er1
4850 cat conftest.err >&5
4851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4852 (exit $ac_status); } &&
4853 { ac_try='test -z "$ac_c_werror_flag"
4854 || test ! -s conftest.err'
4855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4856 (eval $ac_try) 2>&5
4857 ac_status=$?
4858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4859 (exit $ac_status); }; } &&
4860 { ac_try='test -s conftest.$ac_objext'
4861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4862 (eval $ac_try) 2>&5
4863 ac_status=$?
4864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4865 (exit $ac_status); }; }; then
4866 break
4867else
4868 echo "$as_me: failed program was:" >&5
4869sed 's/^/| /' conftest.$ac_ext >&5
4870
4871fi
4872rm -f conftest.err conftest.$ac_objext
4873 CC="$CC -n32"
4874 rm -f conftest.$ac_objext
4875if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4876 (eval $ac_compile) 2>conftest.er1
4877 ac_status=$?
4878 grep -v '^ *+' conftest.er1 >conftest.err
4879 rm -f conftest.er1
4880 cat conftest.err >&5
4881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4882 (exit $ac_status); } &&
4883 { ac_try='test -z "$ac_c_werror_flag"
4884 || test ! -s conftest.err'
4885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4886 (eval $ac_try) 2>&5
4887 ac_status=$?
4888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4889 (exit $ac_status); }; } &&
4890 { ac_try='test -s conftest.$ac_objext'
4891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4892 (eval $ac_try) 2>&5
4893 ac_status=$?
4894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4895 (exit $ac_status); }; }; then
4896 ac_cv_sys_largefile_CC=' -n32'; break
4897else
4898 echo "$as_me: failed program was:" >&5
4899sed 's/^/| /' conftest.$ac_ext >&5
4900
4901fi
4902rm -f conftest.err conftest.$ac_objext
4903 break
4904 done
4905 CC=$ac_save_CC
4906 rm -f conftest.$ac_ext
4907 fi
4908fi
4909echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
4910echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
4911 if test "$ac_cv_sys_largefile_CC" != no; then
4912 CC=$CC$ac_cv_sys_largefile_CC
4913 fi
4914
4915 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4916echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
4917if test "${ac_cv_sys_file_offset_bits+set}" = set; then
4918 echo $ECHO_N "(cached) $ECHO_C" >&6
4919else
4920 while :; do
4921 ac_cv_sys_file_offset_bits=no
4922 cat >conftest.$ac_ext <<_ACEOF
4923/* confdefs.h. */
4924_ACEOF
4925cat confdefs.h >>conftest.$ac_ext
4926cat >>conftest.$ac_ext <<_ACEOF
4927/* end confdefs.h. */
4928#include <sys/types.h>
4929 /* Check that off_t can represent 2**63 - 1 correctly.
4930 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4931 since some C++ compilers masquerading as C compilers
4932 incorrectly reject 9223372036854775807. */
4933#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4934 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4935 && LARGE_OFF_T % 2147483647 == 1)
4936 ? 1 : -1];
4937int
4938main ()
4939{
4940
4941 ;
4942 return 0;
4943}
4944_ACEOF
4945rm -f conftest.$ac_objext
4946if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4947 (eval $ac_compile) 2>conftest.er1
4948 ac_status=$?
4949 grep -v '^ *+' conftest.er1 >conftest.err
4950 rm -f conftest.er1
4951 cat conftest.err >&5
4952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4953 (exit $ac_status); } &&
4954 { ac_try='test -z "$ac_c_werror_flag"
4955 || test ! -s conftest.err'
4956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4957 (eval $ac_try) 2>&5
4958 ac_status=$?
4959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4960 (exit $ac_status); }; } &&
4961 { ac_try='test -s conftest.$ac_objext'
4962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4963 (eval $ac_try) 2>&5
4964 ac_status=$?
4965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4966 (exit $ac_status); }; }; then
4967 break
4968else
4969 echo "$as_me: failed program was:" >&5
4970sed 's/^/| /' conftest.$ac_ext >&5
4971
4972fi
4973rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4974 cat >conftest.$ac_ext <<_ACEOF
4975/* confdefs.h. */
4976_ACEOF
4977cat confdefs.h >>conftest.$ac_ext
4978cat >>conftest.$ac_ext <<_ACEOF
4979/* end confdefs.h. */
4980#define _FILE_OFFSET_BITS 64
4981#include <sys/types.h>
4982 /* Check that off_t can represent 2**63 - 1 correctly.
4983 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4984 since some C++ compilers masquerading as C compilers
4985 incorrectly reject 9223372036854775807. */
4986#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4987 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4988 && LARGE_OFF_T % 2147483647 == 1)
4989 ? 1 : -1];
4990int
4991main ()
4992{
4993
4994 ;
4995 return 0;
4996}
4997_ACEOF
4998rm -f conftest.$ac_objext
4999if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5000 (eval $ac_compile) 2>conftest.er1
5001 ac_status=$?
5002 grep -v '^ *+' conftest.er1 >conftest.err
5003 rm -f conftest.er1
5004 cat conftest.err >&5
5005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5006 (exit $ac_status); } &&
5007 { ac_try='test -z "$ac_c_werror_flag"
5008 || test ! -s conftest.err'
5009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5010 (eval $ac_try) 2>&5
5011 ac_status=$?
5012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5013 (exit $ac_status); }; } &&
5014 { ac_try='test -s conftest.$ac_objext'
5015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5016 (eval $ac_try) 2>&5
5017 ac_status=$?
5018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5019 (exit $ac_status); }; }; then
5020 ac_cv_sys_file_offset_bits=64; break
5021else
5022 echo "$as_me: failed program was:" >&5
5023sed 's/^/| /' conftest.$ac_ext >&5
5024
5025fi
5026rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5027 break
5028done
5029fi
5030echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
5031echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
5032if test "$ac_cv_sys_file_offset_bits" != no; then
5033
5034cat >>confdefs.h <<_ACEOF
5035#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5036_ACEOF
5037
5038fi
5039rm -f conftest*
5040 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
5041echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
5042if test "${ac_cv_sys_large_files+set}" = set; then
5043 echo $ECHO_N "(cached) $ECHO_C" >&6
5044else
5045 while :; do
5046 ac_cv_sys_large_files=no
5047 cat >conftest.$ac_ext <<_ACEOF
5048/* confdefs.h. */
5049_ACEOF
5050cat confdefs.h >>conftest.$ac_ext
5051cat >>conftest.$ac_ext <<_ACEOF
5052/* end confdefs.h. */
5053#include <sys/types.h>
5054 /* Check that off_t can represent 2**63 - 1 correctly.
5055 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5056 since some C++ compilers masquerading as C compilers
5057 incorrectly reject 9223372036854775807. */
5058#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5059 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5060 && LARGE_OFF_T % 2147483647 == 1)
5061 ? 1 : -1];
5062int
5063main ()
5064{
5065
5066 ;
5067 return 0;
5068}
5069_ACEOF
5070rm -f conftest.$ac_objext
5071if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5072 (eval $ac_compile) 2>conftest.er1
5073 ac_status=$?
5074 grep -v '^ *+' conftest.er1 >conftest.err
5075 rm -f conftest.er1
5076 cat conftest.err >&5
5077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5078 (exit $ac_status); } &&
5079 { ac_try='test -z "$ac_c_werror_flag"
5080 || test ! -s conftest.err'
5081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5082 (eval $ac_try) 2>&5
5083 ac_status=$?
5084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5085 (exit $ac_status); }; } &&
5086 { ac_try='test -s conftest.$ac_objext'
5087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5088 (eval $ac_try) 2>&5
5089 ac_status=$?
5090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5091 (exit $ac_status); }; }; then
5092 break
5093else
5094 echo "$as_me: failed program was:" >&5
5095sed 's/^/| /' conftest.$ac_ext >&5
5096
5097fi
5098rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5099 cat >conftest.$ac_ext <<_ACEOF
5100/* confdefs.h. */
5101_ACEOF
5102cat confdefs.h >>conftest.$ac_ext
5103cat >>conftest.$ac_ext <<_ACEOF
5104/* end confdefs.h. */
5105#define _LARGE_FILES 1
5106#include <sys/types.h>
5107 /* Check that off_t can represent 2**63 - 1 correctly.
5108 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5109 since some C++ compilers masquerading as C compilers
5110 incorrectly reject 9223372036854775807. */
5111#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5112 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5113 && LARGE_OFF_T % 2147483647 == 1)
5114 ? 1 : -1];
5115int
5116main ()
5117{
5118
5119 ;
5120 return 0;
5121}
5122_ACEOF
5123rm -f conftest.$ac_objext
5124if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5125 (eval $ac_compile) 2>conftest.er1
5126 ac_status=$?
5127 grep -v '^ *+' conftest.er1 >conftest.err
5128 rm -f conftest.er1
5129 cat conftest.err >&5
5130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5131 (exit $ac_status); } &&
5132 { ac_try='test -z "$ac_c_werror_flag"
5133 || test ! -s conftest.err'
5134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5135 (eval $ac_try) 2>&5
5136 ac_status=$?
5137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5138 (exit $ac_status); }; } &&
5139 { ac_try='test -s conftest.$ac_objext'
5140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5141 (eval $ac_try) 2>&5
5142 ac_status=$?
5143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5144 (exit $ac_status); }; }; then
5145 ac_cv_sys_large_files=1; break
5146else
5147 echo "$as_me: failed program was:" >&5
5148sed 's/^/| /' conftest.$ac_ext >&5
5149
5150fi
5151rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5152 break
5153done
5154fi
5155echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
5156echo "${ECHO_T}$ac_cv_sys_large_files" >&6
5157if test "$ac_cv_sys_large_files" != no; then
5158
5159cat >>confdefs.h <<_ACEOF
5160#define _LARGE_FILES $ac_cv_sys_large_files
5161_ACEOF
5162
5163fi
5164rm -f conftest*
5165fi
5166
5167
5168if test "${with_sound}" != "no"; then
5169 # Sound support for GNU/Linux and the free BSDs.
5170 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5171echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5172if test "${ac_cv_header_stdc+set}" = set; then
5173 echo $ECHO_N "(cached) $ECHO_C" >&6
5174else
5175 cat >conftest.$ac_ext <<_ACEOF
5176/* confdefs.h. */
5177_ACEOF
5178cat confdefs.h >>conftest.$ac_ext
5179cat >>conftest.$ac_ext <<_ACEOF
5180/* end confdefs.h. */
5181#include <stdlib.h>
5182#include <stdarg.h>
5183#include <string.h>
5184#include <float.h>
5185
5186int
5187main ()
5188{
5189
5190 ;
5191 return 0;
5192}
5193_ACEOF
5194rm -f conftest.$ac_objext
5195if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5196 (eval $ac_compile) 2>conftest.er1
5197 ac_status=$?
5198 grep -v '^ *+' conftest.er1 >conftest.err
5199 rm -f conftest.er1
5200 cat conftest.err >&5
5201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5202 (exit $ac_status); } &&
5203 { ac_try='test -z "$ac_c_werror_flag"
5204 || test ! -s conftest.err'
5205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5206 (eval $ac_try) 2>&5
5207 ac_status=$?
5208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5209 (exit $ac_status); }; } &&
5210 { ac_try='test -s conftest.$ac_objext'
5211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5212 (eval $ac_try) 2>&5
5213 ac_status=$?
5214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5215 (exit $ac_status); }; }; then
5216 ac_cv_header_stdc=yes
5217else
5218 echo "$as_me: failed program was:" >&5
5219sed 's/^/| /' conftest.$ac_ext >&5
5220
5221ac_cv_header_stdc=no
5222fi
5223rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5224
5225if test $ac_cv_header_stdc = yes; then
5226 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5227 cat >conftest.$ac_ext <<_ACEOF
5228/* confdefs.h. */
5229_ACEOF
5230cat confdefs.h >>conftest.$ac_ext
5231cat >>conftest.$ac_ext <<_ACEOF
5232/* end confdefs.h. */
5233#include <string.h>
5234
5235_ACEOF
5236if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5237 $EGREP "memchr" >/dev/null 2>&1; then
5238 :
5239else
5240 ac_cv_header_stdc=no
5241fi
5242rm -f conftest*
5243
5244fi
5245
5246if test $ac_cv_header_stdc = yes; then
5247 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5248 cat >conftest.$ac_ext <<_ACEOF
5249/* confdefs.h. */
5250_ACEOF
5251cat confdefs.h >>conftest.$ac_ext
5252cat >>conftest.$ac_ext <<_ACEOF
5253/* end confdefs.h. */
5254#include <stdlib.h>
5255
5256_ACEOF
5257if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5258 $EGREP "free" >/dev/null 2>&1; then
5259 :
5260else
5261 ac_cv_header_stdc=no
5262fi
5263rm -f conftest*
5264
5265fi
5266
5267if test $ac_cv_header_stdc = yes; then
5268 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5269 if test "$cross_compiling" = yes; then
5270 :
5271else
5272 cat >conftest.$ac_ext <<_ACEOF
5273/* confdefs.h. */
5274_ACEOF
5275cat confdefs.h >>conftest.$ac_ext
5276cat >>conftest.$ac_ext <<_ACEOF
5277/* end confdefs.h. */
5278#include <ctype.h>
5279#if ((' ' & 0x0FF) == 0x020)
5280# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5281# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5282#else
5283# define ISLOWER(c) \
5284 (('a' <= (c) && (c) <= 'i') \
5285 || ('j' <= (c) && (c) <= 'r') \
5286 || ('s' <= (c) && (c) <= 'z'))
5287# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5288#endif
5289
5290#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5291int
5292main ()
5293{
5294 int i;
5295 for (i = 0; i < 256; i++)
5296 if (XOR (islower (i), ISLOWER (i))
5297 || toupper (i) != TOUPPER (i))
5298 exit(2);
5299 exit (0);
5300}
5301_ACEOF
5302rm -f conftest$ac_exeext
5303if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5304 (eval $ac_link) 2>&5
5305 ac_status=$?
5306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5307 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5309 (eval $ac_try) 2>&5
5310 ac_status=$?
5311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5312 (exit $ac_status); }; }; then
5313 :
5314else
5315 echo "$as_me: program exited with status $ac_status" >&5
5316echo "$as_me: failed program was:" >&5
5317sed 's/^/| /' conftest.$ac_ext >&5
5318
5319( exit $ac_status )
5320ac_cv_header_stdc=no
5321fi
5322rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5323fi
5324fi
5325fi
5326echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5327echo "${ECHO_T}$ac_cv_header_stdc" >&6
5328if test $ac_cv_header_stdc = yes; then
5329
5330cat >>confdefs.h <<\_ACEOF
5331#define STDC_HEADERS 1
5332_ACEOF
5333
5334fi
5335
5336# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5337
5338
5339
5340
5341
5342
5343
5344
5345
5346for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5347 inttypes.h stdint.h unistd.h
5348do
5349as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5350echo "$as_me:$LINENO: checking for $ac_header" >&5
5351echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5352if eval "test \"\${$as_ac_Header+set}\" = set"; then
5353 echo $ECHO_N "(cached) $ECHO_C" >&6
5354else
5355 cat >conftest.$ac_ext <<_ACEOF
5356/* confdefs.h. */
5357_ACEOF
5358cat confdefs.h >>conftest.$ac_ext
5359cat >>conftest.$ac_ext <<_ACEOF
5360/* end confdefs.h. */
5361$ac_includes_default
5362
5363#include <$ac_header>
5364_ACEOF
5365rm -f conftest.$ac_objext
5366if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5367 (eval $ac_compile) 2>conftest.er1
5368 ac_status=$?
5369 grep -v '^ *+' conftest.er1 >conftest.err
5370 rm -f conftest.er1
5371 cat conftest.err >&5
5372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5373 (exit $ac_status); } &&
5374 { ac_try='test -z "$ac_c_werror_flag"
5375 || test ! -s conftest.err'
5376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5377 (eval $ac_try) 2>&5
5378 ac_status=$?
5379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5380 (exit $ac_status); }; } &&
5381 { ac_try='test -s conftest.$ac_objext'
5382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5383 (eval $ac_try) 2>&5
5384 ac_status=$?
5385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5386 (exit $ac_status); }; }; then
5387 eval "$as_ac_Header=yes"
5388else
5389 echo "$as_me: failed program was:" >&5
5390sed 's/^/| /' conftest.$ac_ext >&5
5391
5392eval "$as_ac_Header=no"
5393fi
5394rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5395fi
5396echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5397echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5398if test `eval echo '${'$as_ac_Header'}'` = yes; then
5399 cat >>confdefs.h <<_ACEOF
5400#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5401_ACEOF
5402
5403fi
5404
5405done
5406
5407
5408
5409
5410
5411for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
5412do
5413as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5414if eval "test \"\${$as_ac_Header+set}\" = set"; then
5415 echo "$as_me:$LINENO: checking for $ac_header" >&5
5416echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5417if eval "test \"\${$as_ac_Header+set}\" = set"; then
5418 echo $ECHO_N "(cached) $ECHO_C" >&6
5419fi
5420echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5421echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5422else
5423 # Is the header compilable?
5424echo "$as_me:$LINENO: checking $ac_header usability" >&5
5425echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5426cat >conftest.$ac_ext <<_ACEOF
5427/* confdefs.h. */
5428_ACEOF
5429cat confdefs.h >>conftest.$ac_ext
5430cat >>conftest.$ac_ext <<_ACEOF
5431/* end confdefs.h. */
5432$ac_includes_default
5433#include <$ac_header>
5434_ACEOF
5435rm -f conftest.$ac_objext
5436if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5437 (eval $ac_compile) 2>conftest.er1
5438 ac_status=$?
5439 grep -v '^ *+' conftest.er1 >conftest.err
5440 rm -f conftest.er1
5441 cat conftest.err >&5
5442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5443 (exit $ac_status); } &&
5444 { ac_try='test -z "$ac_c_werror_flag"
5445 || test ! -s conftest.err'
5446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5447 (eval $ac_try) 2>&5
5448 ac_status=$?
5449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5450 (exit $ac_status); }; } &&
5451 { ac_try='test -s conftest.$ac_objext'
5452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5453 (eval $ac_try) 2>&5
5454 ac_status=$?
5455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5456 (exit $ac_status); }; }; then
5457 ac_header_compiler=yes
5458else
5459 echo "$as_me: failed program was:" >&5
5460sed 's/^/| /' conftest.$ac_ext >&5
5461
5462ac_header_compiler=no
5463fi
5464rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5465echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5466echo "${ECHO_T}$ac_header_compiler" >&6
5467
5468# Is the header present?
5469echo "$as_me:$LINENO: checking $ac_header presence" >&5
5470echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5471cat >conftest.$ac_ext <<_ACEOF
5472/* confdefs.h. */
5473_ACEOF
5474cat confdefs.h >>conftest.$ac_ext
5475cat >>conftest.$ac_ext <<_ACEOF
5476/* end confdefs.h. */
5477#include <$ac_header>
5478_ACEOF
5479if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5480 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5481 ac_status=$?
5482 grep -v '^ *+' conftest.er1 >conftest.err
5483 rm -f conftest.er1
5484 cat conftest.err >&5
5485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5486 (exit $ac_status); } >/dev/null; then
5487 if test -s conftest.err; then
5488 ac_cpp_err=$ac_c_preproc_warn_flag
5489 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5490 else
5491 ac_cpp_err=
5492 fi
5493else
5494 ac_cpp_err=yes
5495fi
5496if test -z "$ac_cpp_err"; then
5497 ac_header_preproc=yes
5498else
5499 echo "$as_me: failed program was:" >&5
5500sed 's/^/| /' conftest.$ac_ext >&5
5501
5502 ac_header_preproc=no
5503fi
5504rm -f conftest.err conftest.$ac_ext
5505echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5506echo "${ECHO_T}$ac_header_preproc" >&6
5507
5508# So? What about this header?
5509case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5510 yes:no: )
5511 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5512echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5513 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5514echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5515 ac_header_preproc=yes
5516 ;;
5517 no:yes:* )
5518 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5519echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5520 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5521echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5522 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5523echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5524 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5525echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5526 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5527echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5528 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5529echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5530 (
5531 cat <<\_ASBOX
5532## ------------------------------------------ ##
5533## Report this to the AC_PACKAGE_NAME lists. ##
5534## ------------------------------------------ ##
5535_ASBOX
5536 ) |
5537 sed "s/^/$as_me: WARNING: /" >&2
5538 ;;
5539esac
5540echo "$as_me:$LINENO: checking for $ac_header" >&5
5541echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5542if eval "test \"\${$as_ac_Header+set}\" = set"; then
5543 echo $ECHO_N "(cached) $ECHO_C" >&6
5544else
5545 eval "$as_ac_Header=\$ac_header_preproc"
5546fi
5547echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5548echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5549
5550fi
5551if test `eval echo '${'$as_ac_Header'}'` = yes; then
5552 cat >>confdefs.h <<_ACEOF
5553#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5554_ACEOF
5555
5556fi
5557
5558done
5559
5560 # Emulation library used on NetBSD.
5561 echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
5562echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6
5563if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
5564 echo $ECHO_N "(cached) $ECHO_C" >&6
5565else
5566 ac_check_lib_save_LIBS=$LIBS
5567LIBS="-lossaudio $LIBS"
5568cat >conftest.$ac_ext <<_ACEOF
5569/* confdefs.h. */
5570_ACEOF
5571cat confdefs.h >>conftest.$ac_ext
5572cat >>conftest.$ac_ext <<_ACEOF
5573/* end confdefs.h. */
5574
5575/* Override any gcc2 internal prototype to avoid an error. */
5576#ifdef __cplusplus
5577extern "C"
5578#endif
5579/* We use char because int might match the return type of a gcc2
5580 builtin and then its argument prototype would still apply. */
5581char _oss_ioctl ();
5582int
5583main ()
5584{
5585_oss_ioctl ();
5586 ;
5587 return 0;
5588}
5589_ACEOF
5590rm -f conftest.$ac_objext conftest$ac_exeext
5591if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5592 (eval $ac_link) 2>conftest.er1
5593 ac_status=$?
5594 grep -v '^ *+' conftest.er1 >conftest.err
5595 rm -f conftest.er1
5596 cat conftest.err >&5
5597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5598 (exit $ac_status); } &&
5599 { ac_try='test -z "$ac_c_werror_flag"
5600 || test ! -s conftest.err'
5601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5602 (eval $ac_try) 2>&5
5603 ac_status=$?
5604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5605 (exit $ac_status); }; } &&
5606 { ac_try='test -s conftest$ac_exeext'
5607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5608 (eval $ac_try) 2>&5
5609 ac_status=$?
5610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5611 (exit $ac_status); }; }; then
5612 ac_cv_lib_ossaudio__oss_ioctl=yes
5613else
5614 echo "$as_me: failed program was:" >&5
5615sed 's/^/| /' conftest.$ac_ext >&5
5616
5617ac_cv_lib_ossaudio__oss_ioctl=no
5618fi
5619rm -f conftest.err conftest.$ac_objext \
5620 conftest$ac_exeext conftest.$ac_ext
5621LIBS=$ac_check_lib_save_LIBS
5622fi
5623echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
5624echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6
5625if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
5626 LIBSOUND=-lossaudio
5627else
5628 LIBSOUND=
5629fi
5630
5631
5632fi
5633
5634
5635
5636
5637
5638
5639
5640
5641
5642
5643
5644
5645
5646
5647
5648
5649
5650
5651
5652
5653
5654
5655
5656
5657
5658
5659for ac_header in sys/select.h sys/timeb.h sys/time.h unistd.h utime.h \
5660 linux/version.h sys/systeminfo.h termios.h limits.h string.h stdlib.h \
5661 termcap.h stdio_ext.h fcntl.h strings.h coff.h pty.h sys/mman.h \
5662 sys/param.h sys/vlimit.h sys/resource.h locale.h sys/_mbstate_t.h \
5663 sys/utsname.h pwd.h
5664do
5665as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5666if eval "test \"\${$as_ac_Header+set}\" = set"; then
5667 echo "$as_me:$LINENO: checking for $ac_header" >&5
5668echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5669if eval "test \"\${$as_ac_Header+set}\" = set"; then
5670 echo $ECHO_N "(cached) $ECHO_C" >&6
5671fi
5672echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5673echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5674else
5675 # Is the header compilable?
5676echo "$as_me:$LINENO: checking $ac_header usability" >&5
5677echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5678cat >conftest.$ac_ext <<_ACEOF
5679/* confdefs.h. */
5680_ACEOF
5681cat confdefs.h >>conftest.$ac_ext
5682cat >>conftest.$ac_ext <<_ACEOF
5683/* end confdefs.h. */
5684$ac_includes_default
5685#include <$ac_header>
5686_ACEOF
5687rm -f conftest.$ac_objext
5688if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5689 (eval $ac_compile) 2>conftest.er1
5690 ac_status=$?
5691 grep -v '^ *+' conftest.er1 >conftest.err
5692 rm -f conftest.er1
5693 cat conftest.err >&5
5694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5695 (exit $ac_status); } &&
5696 { ac_try='test -z "$ac_c_werror_flag"
5697 || test ! -s conftest.err'
5698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5699 (eval $ac_try) 2>&5
5700 ac_status=$?
5701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5702 (exit $ac_status); }; } &&
5703 { ac_try='test -s conftest.$ac_objext'
5704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5705 (eval $ac_try) 2>&5
5706 ac_status=$?
5707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5708 (exit $ac_status); }; }; then
5709 ac_header_compiler=yes
5710else
5711 echo "$as_me: failed program was:" >&5
5712sed 's/^/| /' conftest.$ac_ext >&5
5713
5714ac_header_compiler=no
5715fi
5716rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5717echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5718echo "${ECHO_T}$ac_header_compiler" >&6
5719
5720# Is the header present?
5721echo "$as_me:$LINENO: checking $ac_header presence" >&5
5722echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5723cat >conftest.$ac_ext <<_ACEOF
5724/* confdefs.h. */
5725_ACEOF
5726cat confdefs.h >>conftest.$ac_ext
5727cat >>conftest.$ac_ext <<_ACEOF
5728/* end confdefs.h. */
5729#include <$ac_header>
5730_ACEOF
5731if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5732 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5733 ac_status=$?
5734 grep -v '^ *+' conftest.er1 >conftest.err
5735 rm -f conftest.er1
5736 cat conftest.err >&5
5737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5738 (exit $ac_status); } >/dev/null; then
5739 if test -s conftest.err; then
5740 ac_cpp_err=$ac_c_preproc_warn_flag
5741 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5742 else
5743 ac_cpp_err=
5744 fi
5745else
5746 ac_cpp_err=yes
5747fi
5748if test -z "$ac_cpp_err"; then
5749 ac_header_preproc=yes
5750else
5751 echo "$as_me: failed program was:" >&5
5752sed 's/^/| /' conftest.$ac_ext >&5
5753
5754 ac_header_preproc=no
5755fi
5756rm -f conftest.err conftest.$ac_ext
5757echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5758echo "${ECHO_T}$ac_header_preproc" >&6
5759
5760# So? What about this header?
5761case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5762 yes:no: )
5763 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5764echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5765 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5766echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5767 ac_header_preproc=yes
5768 ;;
5769 no:yes:* )
5770 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5771echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5772 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5773echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5774 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5775echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5776 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5777echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5778 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5779echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5780 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5781echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5782 (
5783 cat <<\_ASBOX
5784## ------------------------------------------ ##
5785## Report this to the AC_PACKAGE_NAME lists. ##
5786## ------------------------------------------ ##
5787_ASBOX
5788 ) |
5789 sed "s/^/$as_me: WARNING: /" >&2
5790 ;;
5791esac
5792echo "$as_me:$LINENO: checking for $ac_header" >&5
5793echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5794if eval "test \"\${$as_ac_Header+set}\" = set"; then
5795 echo $ECHO_N "(cached) $ECHO_C" >&6
5796else
5797 eval "$as_ac_Header=\$ac_header_preproc"
5798fi
5799echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5800echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5801
5802fi
5803if test `eval echo '${'$as_ac_Header'}'` = yes; then
5804 cat >>confdefs.h <<_ACEOF
5805#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5806_ACEOF
5807
5808fi
5809
5810done
5811
5812
5813echo "$as_me:$LINENO: checking if personality LINUX32 can be set" >&5
5814echo $ECHO_N "checking if personality LINUX32 can be set... $ECHO_C" >&6
5815cat >conftest.$ac_ext <<_ACEOF
5816/* confdefs.h. */
5817_ACEOF
5818cat confdefs.h >>conftest.$ac_ext
5819cat >>conftest.$ac_ext <<_ACEOF
5820/* end confdefs.h. */
5821#include <sys/personality.h>
5822int
5823main ()
5824{
5825personality (PER_LINUX32)
5826 ;
5827 return 0;
5828}
5829_ACEOF
5830rm -f conftest.$ac_objext
5831if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5832 (eval $ac_compile) 2>conftest.er1
5833 ac_status=$?
5834 grep -v '^ *+' conftest.er1 >conftest.err
5835 rm -f conftest.er1
5836 cat conftest.err >&5
5837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5838 (exit $ac_status); } &&
5839 { ac_try='test -z "$ac_c_werror_flag"
5840 || test ! -s conftest.err'
5841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5842 (eval $ac_try) 2>&5
5843 ac_status=$?
5844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5845 (exit $ac_status); }; } &&
5846 { ac_try='test -s conftest.$ac_objext'
5847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5848 (eval $ac_try) 2>&5
5849 ac_status=$?
5850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5851 (exit $ac_status); }; }; then
5852 emacs_cv_personality_linux32=yes
5853else
5854 echo "$as_me: failed program was:" >&5
5855sed 's/^/| /' conftest.$ac_ext >&5
5856
5857emacs_cv_personality_linux32=no
5858fi
5859rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5860echo "$as_me:$LINENO: result: $emacs_cv_personality_linux32" >&5
5861echo "${ECHO_T}$emacs_cv_personality_linux32" >&6
5862
5863if test $emacs_cv_personality_linux32 = yes; then
5864
5865cat >>confdefs.h <<\_ACEOF
5866#define HAVE_PERSONALITY_LINUX32 1
5867_ACEOF
5868
5869fi
5870
5871
5872for ac_header in term.h
5873do
5874as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5875echo "$as_me:$LINENO: checking for $ac_header" >&5
5876echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5877if eval "test \"\${$as_ac_Header+set}\" = set"; then
5878 echo $ECHO_N "(cached) $ECHO_C" >&6
5879else
5880 cat >conftest.$ac_ext <<_ACEOF
5881/* confdefs.h. */
5882_ACEOF
5883cat confdefs.h >>conftest.$ac_ext
5884cat >>conftest.$ac_ext <<_ACEOF
5885/* end confdefs.h. */
5886#include <$ac_header>
5887_ACEOF
5888if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5889 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5890 ac_status=$?
5891 grep -v '^ *+' conftest.er1 >conftest.err
5892 rm -f conftest.er1
5893 cat conftest.err >&5
5894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5895 (exit $ac_status); } >/dev/null; then
5896 if test -s conftest.err; then
5897 ac_cpp_err=$ac_c_preproc_warn_flag
5898 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5899 else
5900 ac_cpp_err=
5901 fi
5902else
5903 ac_cpp_err=yes
5904fi
5905if test -z "$ac_cpp_err"; then
5906 eval "$as_ac_Header=yes"
5907else
5908 echo "$as_me: failed program was:" >&5
5909sed 's/^/| /' conftest.$ac_ext >&5
5910
5911 eval "$as_ac_Header=no"
5912fi
5913rm -f conftest.err conftest.$ac_ext
5914fi
5915echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5916echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5917if test `eval echo '${'$as_ac_Header'}'` = yes; then
5918 cat >>confdefs.h <<_ACEOF
5919#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5920_ACEOF
5921
5922fi
5923
5924done
5925
5926echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5927echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5928if test "${ac_cv_header_stdc+set}" = set; then
5929 echo $ECHO_N "(cached) $ECHO_C" >&6
5930else
5931 cat >conftest.$ac_ext <<_ACEOF
5932/* confdefs.h. */
5933_ACEOF
5934cat confdefs.h >>conftest.$ac_ext
5935cat >>conftest.$ac_ext <<_ACEOF
5936/* end confdefs.h. */
5937#include <stdlib.h>
5938#include <stdarg.h>
5939#include <string.h>
5940#include <float.h>
5941
5942int
5943main ()
5944{
5945
5946 ;
5947 return 0;
5948}
5949_ACEOF
5950rm -f conftest.$ac_objext
5951if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5952 (eval $ac_compile) 2>conftest.er1
5953 ac_status=$?
5954 grep -v '^ *+' conftest.er1 >conftest.err
5955 rm -f conftest.er1
5956 cat conftest.err >&5
5957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5958 (exit $ac_status); } &&
5959 { ac_try='test -z "$ac_c_werror_flag"
5960 || test ! -s conftest.err'
5961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5962 (eval $ac_try) 2>&5
5963 ac_status=$?
5964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5965 (exit $ac_status); }; } &&
5966 { ac_try='test -s conftest.$ac_objext'
5967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5968 (eval $ac_try) 2>&5
5969 ac_status=$?
5970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5971 (exit $ac_status); }; }; then
5972 ac_cv_header_stdc=yes
5973else
5974 echo "$as_me: failed program was:" >&5
5975sed 's/^/| /' conftest.$ac_ext >&5
5976
5977ac_cv_header_stdc=no
5978fi
5979rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5980
5981if test $ac_cv_header_stdc = yes; then
5982 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5983 cat >conftest.$ac_ext <<_ACEOF
5984/* confdefs.h. */
5985_ACEOF
5986cat confdefs.h >>conftest.$ac_ext
5987cat >>conftest.$ac_ext <<_ACEOF
5988/* end confdefs.h. */
5989#include <string.h>
5990
5991_ACEOF
5992if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5993 $EGREP "memchr" >/dev/null 2>&1; then
5994 :
5995else
5996 ac_cv_header_stdc=no
5997fi
5998rm -f conftest*
5999
6000fi
6001
6002if test $ac_cv_header_stdc = yes; then
6003 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6004 cat >conftest.$ac_ext <<_ACEOF
6005/* confdefs.h. */
6006_ACEOF
6007cat confdefs.h >>conftest.$ac_ext
6008cat >>conftest.$ac_ext <<_ACEOF
6009/* end confdefs.h. */
6010#include <stdlib.h>
6011
6012_ACEOF
6013if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6014 $EGREP "free" >/dev/null 2>&1; then
6015 :
6016else
6017 ac_cv_header_stdc=no
6018fi
6019rm -f conftest*
6020
6021fi
6022
6023if test $ac_cv_header_stdc = yes; then
6024 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6025 if test "$cross_compiling" = yes; then
6026 :
6027else
6028 cat >conftest.$ac_ext <<_ACEOF
6029/* confdefs.h. */
6030_ACEOF
6031cat confdefs.h >>conftest.$ac_ext
6032cat >>conftest.$ac_ext <<_ACEOF
6033/* end confdefs.h. */
6034#include <ctype.h>
6035#if ((' ' & 0x0FF) == 0x020)
6036# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6037# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6038#else
6039# define ISLOWER(c) \
6040 (('a' <= (c) && (c) <= 'i') \
6041 || ('j' <= (c) && (c) <= 'r') \
6042 || ('s' <= (c) && (c) <= 'z'))
6043# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6044#endif
6045
6046#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6047int
6048main ()
6049{
6050 int i;
6051 for (i = 0; i < 256; i++)
6052 if (XOR (islower (i), ISLOWER (i))
6053 || toupper (i) != TOUPPER (i))
6054 exit(2);
6055 exit (0);
6056}
6057_ACEOF
6058rm -f conftest$ac_exeext
6059if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6060 (eval $ac_link) 2>&5
6061 ac_status=$?
6062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6063 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6065 (eval $ac_try) 2>&5
6066 ac_status=$?
6067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6068 (exit $ac_status); }; }; then
6069 :
6070else
6071 echo "$as_me: program exited with status $ac_status" >&5
6072echo "$as_me: failed program was:" >&5
6073sed 's/^/| /' conftest.$ac_ext >&5
6074
6075( exit $ac_status )
6076ac_cv_header_stdc=no
6077fi
6078rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6079fi
6080fi
6081fi
6082echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6083echo "${ECHO_T}$ac_cv_header_stdc" >&6
6084if test $ac_cv_header_stdc = yes; then
6085
6086cat >>confdefs.h <<\_ACEOF
6087#define STDC_HEADERS 1
6088_ACEOF
6089
6090fi
6091
6092echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
6093echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
6094if test "${ac_cv_header_time+set}" = set; then
6095 echo $ECHO_N "(cached) $ECHO_C" >&6
6096else
6097 cat >conftest.$ac_ext <<_ACEOF
6098/* confdefs.h. */
6099_ACEOF
6100cat confdefs.h >>conftest.$ac_ext
6101cat >>conftest.$ac_ext <<_ACEOF
6102/* end confdefs.h. */
6103#include <sys/types.h>
6104#include <sys/time.h>
6105#include <time.h>
6106
6107int
6108main ()
6109{
6110if ((struct tm *) 0)
6111return 0;
6112 ;
6113 return 0;
6114}
6115_ACEOF
6116rm -f conftest.$ac_objext
6117if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6118 (eval $ac_compile) 2>conftest.er1
6119 ac_status=$?
6120 grep -v '^ *+' conftest.er1 >conftest.err
6121 rm -f conftest.er1
6122 cat conftest.err >&5
6123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6124 (exit $ac_status); } &&
6125 { ac_try='test -z "$ac_c_werror_flag"
6126 || test ! -s conftest.err'
6127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6128 (eval $ac_try) 2>&5
6129 ac_status=$?
6130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6131 (exit $ac_status); }; } &&
6132 { ac_try='test -s conftest.$ac_objext'
6133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6134 (eval $ac_try) 2>&5
6135 ac_status=$?
6136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6137 (exit $ac_status); }; }; then
6138 ac_cv_header_time=yes
6139else
6140 echo "$as_me: failed program was:" >&5
6141sed 's/^/| /' conftest.$ac_ext >&5
6142
6143ac_cv_header_time=no
6144fi
6145rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6146fi
6147echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
6148echo "${ECHO_T}$ac_cv_header_time" >&6
6149if test $ac_cv_header_time = yes; then
6150
6151cat >>confdefs.h <<\_ACEOF
6152#define TIME_WITH_SYS_TIME 1
6153_ACEOF
6154
6155fi
6156
6157echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
6158echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6
6159if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
6160 echo $ECHO_N "(cached) $ECHO_C" >&6
6161else
6162 cat >conftest.$ac_ext <<_ACEOF
6163/* confdefs.h. */
6164_ACEOF
6165cat confdefs.h >>conftest.$ac_ext
6166cat >>conftest.$ac_ext <<_ACEOF
6167/* end confdefs.h. */
6168$ac_includes_default
6169int
6170main ()
6171{
6172#ifndef sys_siglist
6173 char *p = (char *) sys_siglist;
6174#endif
6175
6176 ;
6177 return 0;
6178}
6179_ACEOF
6180rm -f conftest.$ac_objext
6181if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6182 (eval $ac_compile) 2>conftest.er1
6183 ac_status=$?
6184 grep -v '^ *+' conftest.er1 >conftest.err
6185 rm -f conftest.er1
6186 cat conftest.err >&5
6187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6188 (exit $ac_status); } &&
6189 { ac_try='test -z "$ac_c_werror_flag"
6190 || test ! -s conftest.err'
6191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6192 (eval $ac_try) 2>&5
6193 ac_status=$?
6194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6195 (exit $ac_status); }; } &&
6196 { ac_try='test -s conftest.$ac_objext'
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
6202 ac_cv_have_decl_sys_siglist=yes
6203else
6204 echo "$as_me: failed program was:" >&5
6205sed 's/^/| /' conftest.$ac_ext >&5
6206
6207ac_cv_have_decl_sys_siglist=no
6208fi
6209rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6210fi
6211echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
6212echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6
6213if test $ac_cv_have_decl_sys_siglist = yes; then
6214
6215cat >>confdefs.h <<_ACEOF
6216#define HAVE_DECL_SYS_SIGLIST 1
6217_ACEOF
6218
6219
6220else
6221 cat >>confdefs.h <<_ACEOF
6222#define HAVE_DECL_SYS_SIGLIST 0
6223_ACEOF
6224
6225
6226fi
6227
6228
6229if test $ac_cv_have_decl_sys_siglist != yes; then
6230 # For Tru64, at least:
6231 echo "$as_me:$LINENO: checking whether __sys_siglist is declared" >&5
6232echo $ECHO_N "checking whether __sys_siglist is declared... $ECHO_C" >&6
6233if test "${ac_cv_have_decl___sys_siglist+set}" = set; then
6234 echo $ECHO_N "(cached) $ECHO_C" >&6
6235else
6236 cat >conftest.$ac_ext <<_ACEOF
6237/* confdefs.h. */
6238_ACEOF
6239cat confdefs.h >>conftest.$ac_ext
6240cat >>conftest.$ac_ext <<_ACEOF
6241/* end confdefs.h. */
6242$ac_includes_default
6243int
6244main ()
6245{
6246#ifndef __sys_siglist
6247 char *p = (char *) __sys_siglist;
6248#endif
6249
6250 ;
6251 return 0;
6252}
6253_ACEOF
6254rm -f conftest.$ac_objext
6255if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6256 (eval $ac_compile) 2>conftest.er1
6257 ac_status=$?
6258 grep -v '^ *+' conftest.er1 >conftest.err
6259 rm -f conftest.er1
6260 cat conftest.err >&5
6261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6262 (exit $ac_status); } &&
6263 { ac_try='test -z "$ac_c_werror_flag"
6264 || test ! -s conftest.err'
6265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6266 (eval $ac_try) 2>&5
6267 ac_status=$?
6268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6269 (exit $ac_status); }; } &&
6270 { ac_try='test -s conftest.$ac_objext'
6271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6272 (eval $ac_try) 2>&5
6273 ac_status=$?
6274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6275 (exit $ac_status); }; }; then
6276 ac_cv_have_decl___sys_siglist=yes
6277else
6278 echo "$as_me: failed program was:" >&5
6279sed 's/^/| /' conftest.$ac_ext >&5
6280
6281ac_cv_have_decl___sys_siglist=no
6282fi
6283rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6284fi
6285echo "$as_me:$LINENO: result: $ac_cv_have_decl___sys_siglist" >&5
6286echo "${ECHO_T}$ac_cv_have_decl___sys_siglist" >&6
6287if test $ac_cv_have_decl___sys_siglist = yes; then
6288
6289cat >>confdefs.h <<_ACEOF
6290#define HAVE_DECL___SYS_SIGLIST 1
6291_ACEOF
6292
6293
6294else
6295 cat >>confdefs.h <<_ACEOF
6296#define HAVE_DECL___SYS_SIGLIST 0
6297_ACEOF
6298
6299
6300fi
6301
6302
6303 if test $ac_cv_have_decl___sys_siglist = yes; then
6304
6305cat >>confdefs.h <<\_ACEOF
6306#define sys_siglist __sys_siglist
6307_ACEOF
6308
6309 fi
6310fi
6311echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
6312echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
6313if test "${ac_cv_header_sys_wait_h+set}" = set; then
6314 echo $ECHO_N "(cached) $ECHO_C" >&6
6315else
6316 cat >conftest.$ac_ext <<_ACEOF
6317/* confdefs.h. */
6318_ACEOF
6319cat confdefs.h >>conftest.$ac_ext
6320cat >>conftest.$ac_ext <<_ACEOF
6321/* end confdefs.h. */
6322#include <sys/types.h>
6323#include <sys/wait.h>
6324#ifndef WEXITSTATUS
6325# define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
6326#endif
6327#ifndef WIFEXITED
6328# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
6329#endif
6330
6331int
6332main ()
6333{
6334 int s;
6335 wait (&s);
6336 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
6337 ;
6338 return 0;
6339}
6340_ACEOF
6341rm -f conftest.$ac_objext
6342if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6343 (eval $ac_compile) 2>conftest.er1
6344 ac_status=$?
6345 grep -v '^ *+' conftest.er1 >conftest.err
6346 rm -f conftest.er1
6347 cat conftest.err >&5
6348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6349 (exit $ac_status); } &&
6350 { ac_try='test -z "$ac_c_werror_flag"
6351 || test ! -s conftest.err'
6352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6353 (eval $ac_try) 2>&5
6354 ac_status=$?
6355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6356 (exit $ac_status); }; } &&
6357 { ac_try='test -s conftest.$ac_objext'
6358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6359 (eval $ac_try) 2>&5
6360 ac_status=$?
6361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6362 (exit $ac_status); }; }; then
6363 ac_cv_header_sys_wait_h=yes
6364else
6365 echo "$as_me: failed program was:" >&5
6366sed 's/^/| /' conftest.$ac_ext >&5
6367
6368ac_cv_header_sys_wait_h=no
6369fi
6370rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6371fi
6372echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
6373echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
6374if test $ac_cv_header_sys_wait_h = yes; then
6375
6376cat >>confdefs.h <<\_ACEOF
6377#define HAVE_SYS_WAIT_H 1
6378_ACEOF
6379
6380fi
6381
6382
6383echo "$as_me:$LINENO: checking for struct utimbuf" >&5
6384echo $ECHO_N "checking for struct utimbuf... $ECHO_C" >&6
6385if test "${emacs_cv_struct_utimbuf+set}" = set; then
6386 echo $ECHO_N "(cached) $ECHO_C" >&6
6387else
6388 cat >conftest.$ac_ext <<_ACEOF
6389/* confdefs.h. */
6390_ACEOF
6391cat confdefs.h >>conftest.$ac_ext
6392cat >>conftest.$ac_ext <<_ACEOF
6393/* end confdefs.h. */
6394#ifdef TIME_WITH_SYS_TIME
6395#include <sys/time.h>
6396#include <time.h>
6397#else
6398#ifdef HAVE_SYS_TIME_H
6399#include <sys/time.h>
6400#else
6401#include <time.h>
6402#endif
6403#endif
6404#ifdef HAVE_UTIME_H
6405#include <utime.h>
6406#endif
6407int
6408main ()
6409{
6410static struct utimbuf x; x.actime = x.modtime;
6411 ;
6412 return 0;
6413}
6414_ACEOF
6415rm -f conftest.$ac_objext
6416if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6417 (eval $ac_compile) 2>conftest.er1
6418 ac_status=$?
6419 grep -v '^ *+' conftest.er1 >conftest.err
6420 rm -f conftest.er1
6421 cat conftest.err >&5
6422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6423 (exit $ac_status); } &&
6424 { ac_try='test -z "$ac_c_werror_flag"
6425 || test ! -s conftest.err'
6426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6427 (eval $ac_try) 2>&5
6428 ac_status=$?
6429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6430 (exit $ac_status); }; } &&
6431 { ac_try='test -s conftest.$ac_objext'
6432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6433 (eval $ac_try) 2>&5
6434 ac_status=$?
6435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6436 (exit $ac_status); }; }; then
6437 emacs_cv_struct_utimbuf=yes
6438else
6439 echo "$as_me: failed program was:" >&5
6440sed 's/^/| /' conftest.$ac_ext >&5
6441
6442emacs_cv_struct_utimbuf=no
6443fi
6444rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6445fi
6446echo "$as_me:$LINENO: result: $emacs_cv_struct_utimbuf" >&5
6447echo "${ECHO_T}$emacs_cv_struct_utimbuf" >&6
6448if test $emacs_cv_struct_utimbuf = yes; then
6449
6450cat >>confdefs.h <<\_ACEOF
6451#define HAVE_STRUCT_UTIMBUF 1
6452_ACEOF
6453
6454fi
6455
6456echo "$as_me:$LINENO: checking return type of signal handlers" >&5
6457echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
6458if test "${ac_cv_type_signal+set}" = set; then
6459 echo $ECHO_N "(cached) $ECHO_C" >&6
6460else
6461 cat >conftest.$ac_ext <<_ACEOF
6462/* confdefs.h. */
6463_ACEOF
6464cat confdefs.h >>conftest.$ac_ext
6465cat >>conftest.$ac_ext <<_ACEOF
6466/* end confdefs.h. */
6467#include <sys/types.h>
6468#include <signal.h>
6469#ifdef signal
6470# undef signal
6471#endif
6472#ifdef __cplusplus
6473extern "C" void (*signal (int, void (*)(int)))(int);
6474#else
6475void (*signal ()) ();
6476#endif
6477
6478int
6479main ()
6480{
6481int i;
6482 ;
6483 return 0;
6484}
6485_ACEOF
6486rm -f conftest.$ac_objext
6487if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6488 (eval $ac_compile) 2>conftest.er1
6489 ac_status=$?
6490 grep -v '^ *+' conftest.er1 >conftest.err
6491 rm -f conftest.er1
6492 cat conftest.err >&5
6493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6494 (exit $ac_status); } &&
6495 { ac_try='test -z "$ac_c_werror_flag"
6496 || test ! -s conftest.err'
6497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6498 (eval $ac_try) 2>&5
6499 ac_status=$?
6500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6501 (exit $ac_status); }; } &&
6502 { ac_try='test -s conftest.$ac_objext'
6503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6504 (eval $ac_try) 2>&5
6505 ac_status=$?
6506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6507 (exit $ac_status); }; }; then
6508 ac_cv_type_signal=void
6509else
6510 echo "$as_me: failed program was:" >&5
6511sed 's/^/| /' conftest.$ac_ext >&5
6512
6513ac_cv_type_signal=int
6514fi
6515rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6516fi
6517echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
6518echo "${ECHO_T}$ac_cv_type_signal" >&6
6519
6520cat >>confdefs.h <<_ACEOF
6521#define RETSIGTYPE $ac_cv_type_signal
6522_ACEOF
6523
6524
6525
6526echo "$as_me:$LINENO: checking for speed_t" >&5
6527echo $ECHO_N "checking for speed_t... $ECHO_C" >&6
6528if test "${emacs_cv_speed_t+set}" = set; then
6529 echo $ECHO_N "(cached) $ECHO_C" >&6
6530else
6531 cat >conftest.$ac_ext <<_ACEOF
6532/* confdefs.h. */
6533_ACEOF
6534cat confdefs.h >>conftest.$ac_ext
6535cat >>conftest.$ac_ext <<_ACEOF
6536/* end confdefs.h. */
6537#include <termios.h>
6538int
6539main ()
6540{
6541speed_t x = 1;
6542 ;
6543 return 0;
6544}
6545_ACEOF
6546rm -f conftest.$ac_objext
6547if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6548 (eval $ac_compile) 2>conftest.er1
6549 ac_status=$?
6550 grep -v '^ *+' conftest.er1 >conftest.err
6551 rm -f conftest.er1
6552 cat conftest.err >&5
6553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6554 (exit $ac_status); } &&
6555 { ac_try='test -z "$ac_c_werror_flag"
6556 || test ! -s conftest.err'
6557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6558 (eval $ac_try) 2>&5
6559 ac_status=$?
6560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6561 (exit $ac_status); }; } &&
6562 { ac_try='test -s conftest.$ac_objext'
6563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6564 (eval $ac_try) 2>&5
6565 ac_status=$?
6566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6567 (exit $ac_status); }; }; then
6568 emacs_cv_speed_t=yes
6569else
6570 echo "$as_me: failed program was:" >&5
6571sed 's/^/| /' conftest.$ac_ext >&5
6572
6573emacs_cv_speed_t=no
6574fi
6575rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6576fi
6577echo "$as_me:$LINENO: result: $emacs_cv_speed_t" >&5
6578echo "${ECHO_T}$emacs_cv_speed_t" >&6
6579if test $emacs_cv_speed_t = yes; then
6580
6581cat >>confdefs.h <<\_ACEOF
6582#define HAVE_SPEED_T 1
6583_ACEOF
6584
6585fi
6586
6587echo "$as_me:$LINENO: checking for struct timeval" >&5
6588echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6
6589if test "${emacs_cv_struct_timeval+set}" = set; then
6590 echo $ECHO_N "(cached) $ECHO_C" >&6
6591else
6592 cat >conftest.$ac_ext <<_ACEOF
6593/* confdefs.h. */
6594_ACEOF
6595cat confdefs.h >>conftest.$ac_ext
6596cat >>conftest.$ac_ext <<_ACEOF
6597/* end confdefs.h. */
6598#ifdef TIME_WITH_SYS_TIME
6599#include <sys/time.h>
6600#include <time.h>
6601#else
6602#ifdef HAVE_SYS_TIME_H
6603#include <sys/time.h>
6604#else
6605#include <time.h>
6606#endif
6607#endif
6608int
6609main ()
6610{
6611static struct timeval x; x.tv_sec = x.tv_usec;
6612 ;
6613 return 0;
6614}
6615_ACEOF
6616rm -f conftest.$ac_objext
6617if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6618 (eval $ac_compile) 2>conftest.er1
6619 ac_status=$?
6620 grep -v '^ *+' conftest.er1 >conftest.err
6621 rm -f conftest.er1
6622 cat conftest.err >&5
6623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6624 (exit $ac_status); } &&
6625 { ac_try='test -z "$ac_c_werror_flag"
6626 || test ! -s conftest.err'
6627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6628 (eval $ac_try) 2>&5
6629 ac_status=$?
6630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6631 (exit $ac_status); }; } &&
6632 { ac_try='test -s conftest.$ac_objext'
6633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6634 (eval $ac_try) 2>&5
6635 ac_status=$?
6636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6637 (exit $ac_status); }; }; then
6638 emacs_cv_struct_timeval=yes
6639else
6640 echo "$as_me: failed program was:" >&5
6641sed 's/^/| /' conftest.$ac_ext >&5
6642
6643emacs_cv_struct_timeval=no
6644fi
6645rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6646fi
6647echo "$as_me:$LINENO: result: $emacs_cv_struct_timeval" >&5
6648echo "${ECHO_T}$emacs_cv_struct_timeval" >&6
6649HAVE_TIMEVAL=$emacs_cv_struct_timeval
6650if test $emacs_cv_struct_timeval = yes; then
6651
6652cat >>confdefs.h <<\_ACEOF
6653#define HAVE_TIMEVAL 1
6654_ACEOF
6655
6656fi
6657
6658echo "$as_me:$LINENO: checking for struct exception" >&5
6659echo $ECHO_N "checking for struct exception... $ECHO_C" >&6
6660if test "${emacs_cv_struct_exception+set}" = set; then
6661 echo $ECHO_N "(cached) $ECHO_C" >&6
6662else
6663 cat >conftest.$ac_ext <<_ACEOF
6664/* confdefs.h. */
6665_ACEOF
6666cat confdefs.h >>conftest.$ac_ext
6667cat >>conftest.$ac_ext <<_ACEOF
6668/* end confdefs.h. */
6669#include <math.h>
6670int
6671main ()
6672{
6673static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
6674 ;
6675 return 0;
6676}
6677_ACEOF
6678rm -f conftest.$ac_objext
6679if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6680 (eval $ac_compile) 2>conftest.er1
6681 ac_status=$?
6682 grep -v '^ *+' conftest.er1 >conftest.err
6683 rm -f conftest.er1
6684 cat conftest.err >&5
6685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6686 (exit $ac_status); } &&
6687 { ac_try='test -z "$ac_c_werror_flag"
6688 || test ! -s conftest.err'
6689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6690 (eval $ac_try) 2>&5
6691 ac_status=$?
6692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6693 (exit $ac_status); }; } &&
6694 { ac_try='test -s conftest.$ac_objext'
6695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6696 (eval $ac_try) 2>&5
6697 ac_status=$?
6698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6699 (exit $ac_status); }; }; then
6700 emacs_cv_struct_exception=yes
6701else
6702 echo "$as_me: failed program was:" >&5
6703sed 's/^/| /' conftest.$ac_ext >&5
6704
6705emacs_cv_struct_exception=no
6706fi
6707rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6708fi
6709echo "$as_me:$LINENO: result: $emacs_cv_struct_exception" >&5
6710echo "${ECHO_T}$emacs_cv_struct_exception" >&6
6711HAVE_EXCEPTION=$emacs_cv_struct_exception
6712if test $emacs_cv_struct_exception != yes; then
6713
6714cat >>confdefs.h <<\_ACEOF
6715#define NO_MATHERR 1
6716_ACEOF
6717
6718fi
6719
6720
6721for ac_header in sys/socket.h
6722do
6723as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6724if eval "test \"\${$as_ac_Header+set}\" = set"; then
6725 echo "$as_me:$LINENO: checking for $ac_header" >&5
6726echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6727if eval "test \"\${$as_ac_Header+set}\" = set"; then
6728 echo $ECHO_N "(cached) $ECHO_C" >&6
6729fi
6730echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6731echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6732else
6733 # Is the header compilable?
6734echo "$as_me:$LINENO: checking $ac_header usability" >&5
6735echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6736cat >conftest.$ac_ext <<_ACEOF
6737/* confdefs.h. */
6738_ACEOF
6739cat confdefs.h >>conftest.$ac_ext
6740cat >>conftest.$ac_ext <<_ACEOF
6741/* end confdefs.h. */
6742$ac_includes_default
6743#include <$ac_header>
6744_ACEOF
6745rm -f conftest.$ac_objext
6746if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6747 (eval $ac_compile) 2>conftest.er1
6748 ac_status=$?
6749 grep -v '^ *+' conftest.er1 >conftest.err
6750 rm -f conftest.er1
6751 cat conftest.err >&5
6752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6753 (exit $ac_status); } &&
6754 { ac_try='test -z "$ac_c_werror_flag"
6755 || test ! -s conftest.err'
6756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6757 (eval $ac_try) 2>&5
6758 ac_status=$?
6759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6760 (exit $ac_status); }; } &&
6761 { ac_try='test -s conftest.$ac_objext'
6762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6763 (eval $ac_try) 2>&5
6764 ac_status=$?
6765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6766 (exit $ac_status); }; }; then
6767 ac_header_compiler=yes
6768else
6769 echo "$as_me: failed program was:" >&5
6770sed 's/^/| /' conftest.$ac_ext >&5
6771
6772ac_header_compiler=no
6773fi
6774rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6775echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6776echo "${ECHO_T}$ac_header_compiler" >&6
6777
6778# Is the header present?
6779echo "$as_me:$LINENO: checking $ac_header presence" >&5
6780echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6781cat >conftest.$ac_ext <<_ACEOF
6782/* confdefs.h. */
6783_ACEOF
6784cat confdefs.h >>conftest.$ac_ext
6785cat >>conftest.$ac_ext <<_ACEOF
6786/* end confdefs.h. */
6787#include <$ac_header>
6788_ACEOF
6789if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6790 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6791 ac_status=$?
6792 grep -v '^ *+' conftest.er1 >conftest.err
6793 rm -f conftest.er1
6794 cat conftest.err >&5
6795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6796 (exit $ac_status); } >/dev/null; then
6797 if test -s conftest.err; then
6798 ac_cpp_err=$ac_c_preproc_warn_flag
6799 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6800 else
6801 ac_cpp_err=
6802 fi
6803else
6804 ac_cpp_err=yes
6805fi
6806if test -z "$ac_cpp_err"; then
6807 ac_header_preproc=yes
6808else
6809 echo "$as_me: failed program was:" >&5
6810sed 's/^/| /' conftest.$ac_ext >&5
6811
6812 ac_header_preproc=no
6813fi
6814rm -f conftest.err conftest.$ac_ext
6815echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6816echo "${ECHO_T}$ac_header_preproc" >&6
6817
6818# So? What about this header?
6819case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6820 yes:no: )
6821 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6822echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6823 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6824echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6825 ac_header_preproc=yes
6826 ;;
6827 no:yes:* )
6828 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6829echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6830 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6831echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6832 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6833echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6834 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6835echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6836 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6837echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6838 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6839echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6840 (
6841 cat <<\_ASBOX
6842## ------------------------------------------ ##
6843## Report this to the AC_PACKAGE_NAME lists. ##
6844## ------------------------------------------ ##
6845_ASBOX
6846 ) |
6847 sed "s/^/$as_me: WARNING: /" >&2
6848 ;;
6849esac
6850echo "$as_me:$LINENO: checking for $ac_header" >&5
6851echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6852if eval "test \"\${$as_ac_Header+set}\" = set"; then
6853 echo $ECHO_N "(cached) $ECHO_C" >&6
6854else
6855 eval "$as_ac_Header=\$ac_header_preproc"
6856fi
6857echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6858echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6859
6860fi
6861if test `eval echo '${'$as_ac_Header'}'` = yes; then
6862 cat >>confdefs.h <<_ACEOF
6863#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6864_ACEOF
6865
6866fi
6867
6868done
6869
6870
6871for ac_header in net/if.h
6872do
6873as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6874echo "$as_me:$LINENO: checking for $ac_header" >&5
6875echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6876if eval "test \"\${$as_ac_Header+set}\" = set"; then
6877 echo $ECHO_N "(cached) $ECHO_C" >&6
6878else
6879 cat >conftest.$ac_ext <<_ACEOF
6880/* confdefs.h. */
6881_ACEOF
6882cat confdefs.h >>conftest.$ac_ext
6883cat >>conftest.$ac_ext <<_ACEOF
6884/* end confdefs.h. */
6885$ac_includes_default
6886#if HAVE_SYS_SOCKET_H
6887#include <sys/socket.h>
6888#endif
6889
6890#include <$ac_header>
6891_ACEOF
6892rm -f conftest.$ac_objext
6893if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6894 (eval $ac_compile) 2>conftest.er1
6895 ac_status=$?
6896 grep -v '^ *+' conftest.er1 >conftest.err
6897 rm -f conftest.er1
6898 cat conftest.err >&5
6899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6900 (exit $ac_status); } &&
6901 { ac_try='test -z "$ac_c_werror_flag"
6902 || test ! -s conftest.err'
6903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6904 (eval $ac_try) 2>&5
6905 ac_status=$?
6906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6907 (exit $ac_status); }; } &&
6908 { ac_try='test -s conftest.$ac_objext'
6909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6910 (eval $ac_try) 2>&5
6911 ac_status=$?
6912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6913 (exit $ac_status); }; }; then
6914 eval "$as_ac_Header=yes"
6915else
6916 echo "$as_me: failed program was:" >&5
6917sed 's/^/| /' conftest.$ac_ext >&5
6918
6919eval "$as_ac_Header=no"
6920fi
6921rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6922fi
6923echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6924echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6925if test `eval echo '${'$as_ac_Header'}'` = yes; then
6926 cat >>confdefs.h <<_ACEOF
6927#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6928_ACEOF
6929
6930fi
6931
6932done
6933
6934
6935echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
6936echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
6937if test "${ac_cv_struct_tm+set}" = set; then
6938 echo $ECHO_N "(cached) $ECHO_C" >&6
6939else
6940 cat >conftest.$ac_ext <<_ACEOF
6941/* confdefs.h. */
6942_ACEOF
6943cat confdefs.h >>conftest.$ac_ext
6944cat >>conftest.$ac_ext <<_ACEOF
6945/* end confdefs.h. */
6946#include <sys/types.h>
6947#include <time.h>
6948
6949int
6950main ()
6951{
6952struct tm *tp; tp->tm_sec;
6953 ;
6954 return 0;
6955}
6956_ACEOF
6957rm -f conftest.$ac_objext
6958if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6959 (eval $ac_compile) 2>conftest.er1
6960 ac_status=$?
6961 grep -v '^ *+' conftest.er1 >conftest.err
6962 rm -f conftest.er1
6963 cat conftest.err >&5
6964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6965 (exit $ac_status); } &&
6966 { ac_try='test -z "$ac_c_werror_flag"
6967 || test ! -s conftest.err'
6968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6969 (eval $ac_try) 2>&5
6970 ac_status=$?
6971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6972 (exit $ac_status); }; } &&
6973 { ac_try='test -s conftest.$ac_objext'
6974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6975 (eval $ac_try) 2>&5
6976 ac_status=$?
6977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6978 (exit $ac_status); }; }; then
6979 ac_cv_struct_tm=time.h
6980else
6981 echo "$as_me: failed program was:" >&5
6982sed 's/^/| /' conftest.$ac_ext >&5
6983
6984ac_cv_struct_tm=sys/time.h
6985fi
6986rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6987fi
6988echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
6989echo "${ECHO_T}$ac_cv_struct_tm" >&6
6990if test $ac_cv_struct_tm = sys/time.h; then
6991
6992cat >>confdefs.h <<\_ACEOF
6993#define TM_IN_SYS_TIME 1
6994_ACEOF
6995
6996fi
6997
6998echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
6999echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
7000if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
7001 echo $ECHO_N "(cached) $ECHO_C" >&6
7002else
7003 cat >conftest.$ac_ext <<_ACEOF
7004/* confdefs.h. */
7005_ACEOF
7006cat confdefs.h >>conftest.$ac_ext
7007cat >>conftest.$ac_ext <<_ACEOF
7008/* end confdefs.h. */
7009#include <sys/types.h>
7010#include <$ac_cv_struct_tm>
7011
7012
7013int
7014main ()
7015{
7016static struct tm ac_aggr;
7017if (ac_aggr.tm_zone)
7018return 0;
7019 ;
7020 return 0;
7021}
7022_ACEOF
7023rm -f conftest.$ac_objext
7024if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7025 (eval $ac_compile) 2>conftest.er1
7026 ac_status=$?
7027 grep -v '^ *+' conftest.er1 >conftest.err
7028 rm -f conftest.er1
7029 cat conftest.err >&5
7030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7031 (exit $ac_status); } &&
7032 { ac_try='test -z "$ac_c_werror_flag"
7033 || test ! -s conftest.err'
7034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7035 (eval $ac_try) 2>&5
7036 ac_status=$?
7037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7038 (exit $ac_status); }; } &&
7039 { ac_try='test -s conftest.$ac_objext'
7040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7041 (eval $ac_try) 2>&5
7042 ac_status=$?
7043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7044 (exit $ac_status); }; }; then
7045 ac_cv_member_struct_tm_tm_zone=yes
7046else
7047 echo "$as_me: failed program was:" >&5
7048sed 's/^/| /' conftest.$ac_ext >&5
7049
7050cat >conftest.$ac_ext <<_ACEOF
7051/* confdefs.h. */
7052_ACEOF
7053cat confdefs.h >>conftest.$ac_ext
7054cat >>conftest.$ac_ext <<_ACEOF
7055/* end confdefs.h. */
7056#include <sys/types.h>
7057#include <$ac_cv_struct_tm>
7058
7059
7060int
7061main ()
7062{
7063static struct tm ac_aggr;
7064if (sizeof ac_aggr.tm_zone)
7065return 0;
7066 ;
7067 return 0;
7068}
7069_ACEOF
7070rm -f conftest.$ac_objext
7071if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7072 (eval $ac_compile) 2>conftest.er1
7073 ac_status=$?
7074 grep -v '^ *+' conftest.er1 >conftest.err
7075 rm -f conftest.er1
7076 cat conftest.err >&5
7077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7078 (exit $ac_status); } &&
7079 { ac_try='test -z "$ac_c_werror_flag"
7080 || test ! -s conftest.err'
7081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7082 (eval $ac_try) 2>&5
7083 ac_status=$?
7084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7085 (exit $ac_status); }; } &&
7086 { ac_try='test -s conftest.$ac_objext'
7087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7088 (eval $ac_try) 2>&5
7089 ac_status=$?
7090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7091 (exit $ac_status); }; }; then
7092 ac_cv_member_struct_tm_tm_zone=yes
7093else
7094 echo "$as_me: failed program was:" >&5
7095sed 's/^/| /' conftest.$ac_ext >&5
7096
7097ac_cv_member_struct_tm_tm_zone=no
7098fi
7099rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7100fi
7101rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7102fi
7103echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
7104echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
7105if test $ac_cv_member_struct_tm_tm_zone = yes; then
7106
7107cat >>confdefs.h <<_ACEOF
7108#define HAVE_STRUCT_TM_TM_ZONE 1
7109_ACEOF
7110
7111
7112fi
7113
7114if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
7115
7116cat >>confdefs.h <<\_ACEOF
7117#define HAVE_TM_ZONE 1
7118_ACEOF
7119
7120else
7121 echo "$as_me:$LINENO: checking for tzname" >&5
7122echo $ECHO_N "checking for tzname... $ECHO_C" >&6
7123if test "${ac_cv_var_tzname+set}" = set; then
7124 echo $ECHO_N "(cached) $ECHO_C" >&6
7125else
7126 cat >conftest.$ac_ext <<_ACEOF
7127/* confdefs.h. */
7128_ACEOF
7129cat confdefs.h >>conftest.$ac_ext
7130cat >>conftest.$ac_ext <<_ACEOF
7131/* end confdefs.h. */
7132#include <time.h>
7133#ifndef tzname /* For SGI. */
7134extern char *tzname[]; /* RS6000 and others reject char **tzname. */
7135#endif
7136
7137int
7138main ()
7139{
7140atoi(*tzname);
7141 ;
7142 return 0;
7143}
7144_ACEOF
7145rm -f conftest.$ac_objext conftest$ac_exeext
7146if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7147 (eval $ac_link) 2>conftest.er1
7148 ac_status=$?
7149 grep -v '^ *+' conftest.er1 >conftest.err
7150 rm -f conftest.er1
7151 cat conftest.err >&5
7152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7153 (exit $ac_status); } &&
7154 { ac_try='test -z "$ac_c_werror_flag"
7155 || test ! -s conftest.err'
7156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7157 (eval $ac_try) 2>&5
7158 ac_status=$?
7159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7160 (exit $ac_status); }; } &&
7161 { ac_try='test -s conftest$ac_exeext'
7162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7163 (eval $ac_try) 2>&5
7164 ac_status=$?
7165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7166 (exit $ac_status); }; }; then
7167 ac_cv_var_tzname=yes
7168else
7169 echo "$as_me: failed program was:" >&5
7170sed 's/^/| /' conftest.$ac_ext >&5
7171
7172ac_cv_var_tzname=no
7173fi
7174rm -f conftest.err conftest.$ac_objext \
7175 conftest$ac_exeext conftest.$ac_ext
7176fi
7177echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
7178echo "${ECHO_T}$ac_cv_var_tzname" >&6
7179 if test $ac_cv_var_tzname = yes; then
7180
7181cat >>confdefs.h <<\_ACEOF
7182#define HAVE_TZNAME 1
7183_ACEOF
7184
7185 fi
7186fi
7187
7188echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
7189echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6
7190if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
7191 echo $ECHO_N "(cached) $ECHO_C" >&6
7192else
7193 cat >conftest.$ac_ext <<_ACEOF
7194/* confdefs.h. */
7195_ACEOF
7196cat confdefs.h >>conftest.$ac_ext
7197cat >>conftest.$ac_ext <<_ACEOF
7198/* end confdefs.h. */
7199#include <time.h>
7200
7201int
7202main ()
7203{
7204static struct tm ac_aggr;
7205if (ac_aggr.tm_gmtoff)
7206return 0;
7207 ;
7208 return 0;
7209}
7210_ACEOF
7211rm -f conftest.$ac_objext
7212if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7213 (eval $ac_compile) 2>conftest.er1
7214 ac_status=$?
7215 grep -v '^ *+' conftest.er1 >conftest.err
7216 rm -f conftest.er1
7217 cat conftest.err >&5
7218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7219 (exit $ac_status); } &&
7220 { ac_try='test -z "$ac_c_werror_flag"
7221 || test ! -s conftest.err'
7222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7223 (eval $ac_try) 2>&5
7224 ac_status=$?
7225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7226 (exit $ac_status); }; } &&
7227 { ac_try='test -s conftest.$ac_objext'
7228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7229 (eval $ac_try) 2>&5
7230 ac_status=$?
7231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7232 (exit $ac_status); }; }; then
7233 ac_cv_member_struct_tm_tm_gmtoff=yes
7234else
7235 echo "$as_me: failed program was:" >&5
7236sed 's/^/| /' conftest.$ac_ext >&5
7237
7238cat >conftest.$ac_ext <<_ACEOF
7239/* confdefs.h. */
7240_ACEOF
7241cat confdefs.h >>conftest.$ac_ext
7242cat >>conftest.$ac_ext <<_ACEOF
7243/* end confdefs.h. */
7244#include <time.h>
7245
7246int
7247main ()
7248{
7249static struct tm ac_aggr;
7250if (sizeof ac_aggr.tm_gmtoff)
7251return 0;
7252 ;
7253 return 0;
7254}
7255_ACEOF
7256rm -f conftest.$ac_objext
7257if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7258 (eval $ac_compile) 2>conftest.er1
7259 ac_status=$?
7260 grep -v '^ *+' conftest.er1 >conftest.err
7261 rm -f conftest.er1
7262 cat conftest.err >&5
7263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7264 (exit $ac_status); } &&
7265 { ac_try='test -z "$ac_c_werror_flag"
7266 || test ! -s conftest.err'
7267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7268 (eval $ac_try) 2>&5
7269 ac_status=$?
7270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7271 (exit $ac_status); }; } &&
7272 { ac_try='test -s conftest.$ac_objext'
7273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7274 (eval $ac_try) 2>&5
7275 ac_status=$?
7276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7277 (exit $ac_status); }; }; then
7278 ac_cv_member_struct_tm_tm_gmtoff=yes
7279else
7280 echo "$as_me: failed program was:" >&5
7281sed 's/^/| /' conftest.$ac_ext >&5
7282
7283ac_cv_member_struct_tm_tm_gmtoff=no
7284fi
7285rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7286fi
7287rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7288fi
7289echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
7290echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6
7291if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
7292
7293cat >>confdefs.h <<\_ACEOF
7294#define HAVE_TM_GMTOFF 1
7295_ACEOF
7296
7297fi
7298
7299echo "$as_me:$LINENO: checking for struct ifreq.ifr_flags" >&5
7300echo $ECHO_N "checking for struct ifreq.ifr_flags... $ECHO_C" >&6
7301if test "${ac_cv_member_struct_ifreq_ifr_flags+set}" = set; then
7302 echo $ECHO_N "(cached) $ECHO_C" >&6
7303else
7304 cat >conftest.$ac_ext <<_ACEOF
7305/* confdefs.h. */
7306_ACEOF
7307cat confdefs.h >>conftest.$ac_ext
7308cat >>conftest.$ac_ext <<_ACEOF
7309/* end confdefs.h. */
7310$ac_includes_default
7311#if HAVE_SYS_SOCKET_H
7312#include <sys/socket.h>
7313#endif
7314#if HAVE_NET_IF_H
7315#include <net/if.h>
7316#endif
7317
7318int
7319main ()
7320{
7321static struct ifreq ac_aggr;
7322if (ac_aggr.ifr_flags)
7323return 0;
7324 ;
7325 return 0;
7326}
7327_ACEOF
7328rm -f conftest.$ac_objext
7329if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7330 (eval $ac_compile) 2>conftest.er1
7331 ac_status=$?
7332 grep -v '^ *+' conftest.er1 >conftest.err
7333 rm -f conftest.er1
7334 cat conftest.err >&5
7335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7336 (exit $ac_status); } &&
7337 { ac_try='test -z "$ac_c_werror_flag"
7338 || test ! -s conftest.err'
7339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7340 (eval $ac_try) 2>&5
7341 ac_status=$?
7342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7343 (exit $ac_status); }; } &&
7344 { ac_try='test -s conftest.$ac_objext'
7345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7346 (eval $ac_try) 2>&5
7347 ac_status=$?
7348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7349 (exit $ac_status); }; }; then
7350 ac_cv_member_struct_ifreq_ifr_flags=yes
7351else
7352 echo "$as_me: failed program was:" >&5
7353sed 's/^/| /' conftest.$ac_ext >&5
7354
7355cat >conftest.$ac_ext <<_ACEOF
7356/* confdefs.h. */
7357_ACEOF
7358cat confdefs.h >>conftest.$ac_ext
7359cat >>conftest.$ac_ext <<_ACEOF
7360/* end confdefs.h. */
7361$ac_includes_default
7362#if HAVE_SYS_SOCKET_H
7363#include <sys/socket.h>
7364#endif
7365#if HAVE_NET_IF_H
7366#include <net/if.h>
7367#endif
7368
7369int
7370main ()
7371{
7372static struct ifreq ac_aggr;
7373if (sizeof ac_aggr.ifr_flags)
7374return 0;
7375 ;
7376 return 0;
7377}
7378_ACEOF
7379rm -f conftest.$ac_objext
7380if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7381 (eval $ac_compile) 2>conftest.er1
7382 ac_status=$?
7383 grep -v '^ *+' conftest.er1 >conftest.err
7384 rm -f conftest.er1
7385 cat conftest.err >&5
7386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7387 (exit $ac_status); } &&
7388 { ac_try='test -z "$ac_c_werror_flag"
7389 || test ! -s conftest.err'
7390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7391 (eval $ac_try) 2>&5
7392 ac_status=$?
7393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7394 (exit $ac_status); }; } &&
7395 { ac_try='test -s conftest.$ac_objext'
7396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7397 (eval $ac_try) 2>&5
7398 ac_status=$?
7399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7400 (exit $ac_status); }; }; then
7401 ac_cv_member_struct_ifreq_ifr_flags=yes
7402else
7403 echo "$as_me: failed program was:" >&5
7404sed 's/^/| /' conftest.$ac_ext >&5
7405
7406ac_cv_member_struct_ifreq_ifr_flags=no
7407fi
7408rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7409fi
7410rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7411fi
7412echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_flags" >&5
7413echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_flags" >&6
7414if test $ac_cv_member_struct_ifreq_ifr_flags = yes; then
7415
7416cat >>confdefs.h <<_ACEOF
7417#define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
7418_ACEOF
7419
7420
7421fi
7422echo "$as_me:$LINENO: checking for struct ifreq.ifr_hwaddr" >&5
7423echo $ECHO_N "checking for struct ifreq.ifr_hwaddr... $ECHO_C" >&6
7424if test "${ac_cv_member_struct_ifreq_ifr_hwaddr+set}" = set; then
7425 echo $ECHO_N "(cached) $ECHO_C" >&6
7426else
7427 cat >conftest.$ac_ext <<_ACEOF
7428/* confdefs.h. */
7429_ACEOF
7430cat confdefs.h >>conftest.$ac_ext
7431cat >>conftest.$ac_ext <<_ACEOF
7432/* end confdefs.h. */
7433$ac_includes_default
7434#if HAVE_SYS_SOCKET_H
7435#include <sys/socket.h>
7436#endif
7437#if HAVE_NET_IF_H
7438#include <net/if.h>
7439#endif
7440
7441int
7442main ()
7443{
7444static struct ifreq ac_aggr;
7445if (ac_aggr.ifr_hwaddr)
7446return 0;
7447 ;
7448 return 0;
7449}
7450_ACEOF
7451rm -f conftest.$ac_objext
7452if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7453 (eval $ac_compile) 2>conftest.er1
7454 ac_status=$?
7455 grep -v '^ *+' conftest.er1 >conftest.err
7456 rm -f conftest.er1
7457 cat conftest.err >&5
7458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7459 (exit $ac_status); } &&
7460 { ac_try='test -z "$ac_c_werror_flag"
7461 || test ! -s conftest.err'
7462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7463 (eval $ac_try) 2>&5
7464 ac_status=$?
7465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7466 (exit $ac_status); }; } &&
7467 { ac_try='test -s conftest.$ac_objext'
7468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7469 (eval $ac_try) 2>&5
7470 ac_status=$?
7471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7472 (exit $ac_status); }; }; then
7473 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
7474else
7475 echo "$as_me: failed program was:" >&5
7476sed 's/^/| /' conftest.$ac_ext >&5
7477
7478cat >conftest.$ac_ext <<_ACEOF
7479/* confdefs.h. */
7480_ACEOF
7481cat confdefs.h >>conftest.$ac_ext
7482cat >>conftest.$ac_ext <<_ACEOF
7483/* end confdefs.h. */
7484$ac_includes_default
7485#if HAVE_SYS_SOCKET_H
7486#include <sys/socket.h>
7487#endif
7488#if HAVE_NET_IF_H
7489#include <net/if.h>
7490#endif
7491
7492int
7493main ()
7494{
7495static struct ifreq ac_aggr;
7496if (sizeof ac_aggr.ifr_hwaddr)
7497return 0;
7498 ;
7499 return 0;
7500}
7501_ACEOF
7502rm -f conftest.$ac_objext
7503if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7504 (eval $ac_compile) 2>conftest.er1
7505 ac_status=$?
7506 grep -v '^ *+' conftest.er1 >conftest.err
7507 rm -f conftest.er1
7508 cat conftest.err >&5
7509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7510 (exit $ac_status); } &&
7511 { ac_try='test -z "$ac_c_werror_flag"
7512 || test ! -s conftest.err'
7513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7514 (eval $ac_try) 2>&5
7515 ac_status=$?
7516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7517 (exit $ac_status); }; } &&
7518 { ac_try='test -s conftest.$ac_objext'
7519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7520 (eval $ac_try) 2>&5
7521 ac_status=$?
7522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7523 (exit $ac_status); }; }; then
7524 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
7525else
7526 echo "$as_me: failed program was:" >&5
7527sed 's/^/| /' conftest.$ac_ext >&5
7528
7529ac_cv_member_struct_ifreq_ifr_hwaddr=no
7530fi
7531rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7532fi
7533rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7534fi
7535echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_hwaddr" >&5
7536echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_hwaddr" >&6
7537if test $ac_cv_member_struct_ifreq_ifr_hwaddr = yes; then
7538
7539cat >>confdefs.h <<_ACEOF
7540#define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
7541_ACEOF
7542
7543
7544fi
7545echo "$as_me:$LINENO: checking for struct ifreq.ifr_netmask" >&5
7546echo $ECHO_N "checking for struct ifreq.ifr_netmask... $ECHO_C" >&6
7547if test "${ac_cv_member_struct_ifreq_ifr_netmask+set}" = set; then
7548 echo $ECHO_N "(cached) $ECHO_C" >&6
7549else
7550 cat >conftest.$ac_ext <<_ACEOF
7551/* confdefs.h. */
7552_ACEOF
7553cat confdefs.h >>conftest.$ac_ext
7554cat >>conftest.$ac_ext <<_ACEOF
7555/* end confdefs.h. */
7556$ac_includes_default
7557#if HAVE_SYS_SOCKET_H
7558#include <sys/socket.h>
7559#endif
7560#if HAVE_NET_IF_H
7561#include <net/if.h>
7562#endif
7563
7564int
7565main ()
7566{
7567static struct ifreq ac_aggr;
7568if (ac_aggr.ifr_netmask)
7569return 0;
7570 ;
7571 return 0;
7572}
7573_ACEOF
7574rm -f conftest.$ac_objext
7575if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7576 (eval $ac_compile) 2>conftest.er1
7577 ac_status=$?
7578 grep -v '^ *+' conftest.er1 >conftest.err
7579 rm -f conftest.er1
7580 cat conftest.err >&5
7581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7582 (exit $ac_status); } &&
7583 { ac_try='test -z "$ac_c_werror_flag"
7584 || test ! -s conftest.err'
7585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7586 (eval $ac_try) 2>&5
7587 ac_status=$?
7588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7589 (exit $ac_status); }; } &&
7590 { ac_try='test -s conftest.$ac_objext'
7591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7592 (eval $ac_try) 2>&5
7593 ac_status=$?
7594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7595 (exit $ac_status); }; }; then
7596 ac_cv_member_struct_ifreq_ifr_netmask=yes
7597else
7598 echo "$as_me: failed program was:" >&5
7599sed 's/^/| /' conftest.$ac_ext >&5
7600
7601cat >conftest.$ac_ext <<_ACEOF
7602/* confdefs.h. */
7603_ACEOF
7604cat confdefs.h >>conftest.$ac_ext
7605cat >>conftest.$ac_ext <<_ACEOF
7606/* end confdefs.h. */
7607$ac_includes_default
7608#if HAVE_SYS_SOCKET_H
7609#include <sys/socket.h>
7610#endif
7611#if HAVE_NET_IF_H
7612#include <net/if.h>
7613#endif
7614
7615int
7616main ()
7617{
7618static struct ifreq ac_aggr;
7619if (sizeof ac_aggr.ifr_netmask)
7620return 0;
7621 ;
7622 return 0;
7623}
7624_ACEOF
7625rm -f conftest.$ac_objext
7626if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7627 (eval $ac_compile) 2>conftest.er1
7628 ac_status=$?
7629 grep -v '^ *+' conftest.er1 >conftest.err
7630 rm -f conftest.er1
7631 cat conftest.err >&5
7632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7633 (exit $ac_status); } &&
7634 { ac_try='test -z "$ac_c_werror_flag"
7635 || test ! -s conftest.err'
7636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7637 (eval $ac_try) 2>&5
7638 ac_status=$?
7639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7640 (exit $ac_status); }; } &&
7641 { ac_try='test -s conftest.$ac_objext'
7642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7643 (eval $ac_try) 2>&5
7644 ac_status=$?
7645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7646 (exit $ac_status); }; }; then
7647 ac_cv_member_struct_ifreq_ifr_netmask=yes
7648else
7649 echo "$as_me: failed program was:" >&5
7650sed 's/^/| /' conftest.$ac_ext >&5
7651
7652ac_cv_member_struct_ifreq_ifr_netmask=no
7653fi
7654rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7655fi
7656rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7657fi
7658echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_netmask" >&5
7659echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_netmask" >&6
7660if test $ac_cv_member_struct_ifreq_ifr_netmask = yes; then
7661
7662cat >>confdefs.h <<_ACEOF
7663#define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
7664_ACEOF
7665
7666
7667fi
7668echo "$as_me:$LINENO: checking for struct ifreq.ifr_broadaddr" >&5
7669echo $ECHO_N "checking for struct ifreq.ifr_broadaddr... $ECHO_C" >&6
7670if test "${ac_cv_member_struct_ifreq_ifr_broadaddr+set}" = set; then
7671 echo $ECHO_N "(cached) $ECHO_C" >&6
7672else
7673 cat >conftest.$ac_ext <<_ACEOF
7674/* confdefs.h. */
7675_ACEOF
7676cat confdefs.h >>conftest.$ac_ext
7677cat >>conftest.$ac_ext <<_ACEOF
7678/* end confdefs.h. */
7679$ac_includes_default
7680#if HAVE_SYS_SOCKET_H
7681#include <sys/socket.h>
7682#endif
7683#if HAVE_NET_IF_H
7684#include <net/if.h>
7685#endif
7686
7687int
7688main ()
7689{
7690static struct ifreq ac_aggr;
7691if (ac_aggr.ifr_broadaddr)
7692return 0;
7693 ;
7694 return 0;
7695}
7696_ACEOF
7697rm -f conftest.$ac_objext
7698if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7699 (eval $ac_compile) 2>conftest.er1
7700 ac_status=$?
7701 grep -v '^ *+' conftest.er1 >conftest.err
7702 rm -f conftest.er1
7703 cat conftest.err >&5
7704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7705 (exit $ac_status); } &&
7706 { ac_try='test -z "$ac_c_werror_flag"
7707 || test ! -s conftest.err'
7708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7709 (eval $ac_try) 2>&5
7710 ac_status=$?
7711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7712 (exit $ac_status); }; } &&
7713 { ac_try='test -s conftest.$ac_objext'
7714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7715 (eval $ac_try) 2>&5
7716 ac_status=$?
7717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7718 (exit $ac_status); }; }; then
7719 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
7720else
7721 echo "$as_me: failed program was:" >&5
7722sed 's/^/| /' conftest.$ac_ext >&5
7723
7724cat >conftest.$ac_ext <<_ACEOF
7725/* confdefs.h. */
7726_ACEOF
7727cat confdefs.h >>conftest.$ac_ext
7728cat >>conftest.$ac_ext <<_ACEOF
7729/* end confdefs.h. */
7730$ac_includes_default
7731#if HAVE_SYS_SOCKET_H
7732#include <sys/socket.h>
7733#endif
7734#if HAVE_NET_IF_H
7735#include <net/if.h>
7736#endif
7737
7738int
7739main ()
7740{
7741static struct ifreq ac_aggr;
7742if (sizeof ac_aggr.ifr_broadaddr)
7743return 0;
7744 ;
7745 return 0;
7746}
7747_ACEOF
7748rm -f conftest.$ac_objext
7749if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7750 (eval $ac_compile) 2>conftest.er1
7751 ac_status=$?
7752 grep -v '^ *+' conftest.er1 >conftest.err
7753 rm -f conftest.er1
7754 cat conftest.err >&5
7755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7756 (exit $ac_status); } &&
7757 { ac_try='test -z "$ac_c_werror_flag"
7758 || test ! -s conftest.err'
7759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7760 (eval $ac_try) 2>&5
7761 ac_status=$?
7762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7763 (exit $ac_status); }; } &&
7764 { ac_try='test -s conftest.$ac_objext'
7765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7766 (eval $ac_try) 2>&5
7767 ac_status=$?
7768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7769 (exit $ac_status); }; }; then
7770 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
7771else
7772 echo "$as_me: failed program was:" >&5
7773sed 's/^/| /' conftest.$ac_ext >&5
7774
7775ac_cv_member_struct_ifreq_ifr_broadaddr=no
7776fi
7777rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7778fi
7779rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7780fi
7781echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_broadaddr" >&5
7782echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_broadaddr" >&6
7783if test $ac_cv_member_struct_ifreq_ifr_broadaddr = yes; then
7784
7785cat >>confdefs.h <<_ACEOF
7786#define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
7787_ACEOF
7788
7789
7790fi
7791echo "$as_me:$LINENO: checking for struct ifreq.ifr_addr" >&5
7792echo $ECHO_N "checking for struct ifreq.ifr_addr... $ECHO_C" >&6
7793if test "${ac_cv_member_struct_ifreq_ifr_addr+set}" = set; then
7794 echo $ECHO_N "(cached) $ECHO_C" >&6
7795else
7796 cat >conftest.$ac_ext <<_ACEOF
7797/* confdefs.h. */
7798_ACEOF
7799cat confdefs.h >>conftest.$ac_ext
7800cat >>conftest.$ac_ext <<_ACEOF
7801/* end confdefs.h. */
7802$ac_includes_default
7803#if HAVE_SYS_SOCKET_H
7804#include <sys/socket.h>
7805#endif
7806#if HAVE_NET_IF_H
7807#include <net/if.h>
7808#endif
7809
7810int
7811main ()
7812{
7813static struct ifreq ac_aggr;
7814if (ac_aggr.ifr_addr)
7815return 0;
7816 ;
7817 return 0;
7818}
7819_ACEOF
7820rm -f conftest.$ac_objext
7821if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7822 (eval $ac_compile) 2>conftest.er1
7823 ac_status=$?
7824 grep -v '^ *+' conftest.er1 >conftest.err
7825 rm -f conftest.er1
7826 cat conftest.err >&5
7827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7828 (exit $ac_status); } &&
7829 { ac_try='test -z "$ac_c_werror_flag"
7830 || test ! -s conftest.err'
7831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7832 (eval $ac_try) 2>&5
7833 ac_status=$?
7834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7835 (exit $ac_status); }; } &&
7836 { ac_try='test -s conftest.$ac_objext'
7837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7838 (eval $ac_try) 2>&5
7839 ac_status=$?
7840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7841 (exit $ac_status); }; }; then
7842 ac_cv_member_struct_ifreq_ifr_addr=yes
7843else
7844 echo "$as_me: failed program was:" >&5
7845sed 's/^/| /' conftest.$ac_ext >&5
7846
7847cat >conftest.$ac_ext <<_ACEOF
7848/* confdefs.h. */
7849_ACEOF
7850cat confdefs.h >>conftest.$ac_ext
7851cat >>conftest.$ac_ext <<_ACEOF
7852/* end confdefs.h. */
7853$ac_includes_default
7854#if HAVE_SYS_SOCKET_H
7855#include <sys/socket.h>
7856#endif
7857#if HAVE_NET_IF_H
7858#include <net/if.h>
7859#endif
7860
7861int
7862main ()
7863{
7864static struct ifreq ac_aggr;
7865if (sizeof ac_aggr.ifr_addr)
7866return 0;
7867 ;
7868 return 0;
7869}
7870_ACEOF
7871rm -f conftest.$ac_objext
7872if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7873 (eval $ac_compile) 2>conftest.er1
7874 ac_status=$?
7875 grep -v '^ *+' conftest.er1 >conftest.err
7876 rm -f conftest.er1
7877 cat conftest.err >&5
7878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7879 (exit $ac_status); } &&
7880 { ac_try='test -z "$ac_c_werror_flag"
7881 || test ! -s conftest.err'
7882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7883 (eval $ac_try) 2>&5
7884 ac_status=$?
7885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7886 (exit $ac_status); }; } &&
7887 { ac_try='test -s conftest.$ac_objext'
7888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7889 (eval $ac_try) 2>&5
7890 ac_status=$?
7891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7892 (exit $ac_status); }; }; then
7893 ac_cv_member_struct_ifreq_ifr_addr=yes
7894else
7895 echo "$as_me: failed program was:" >&5
7896sed 's/^/| /' conftest.$ac_ext >&5
7897
7898ac_cv_member_struct_ifreq_ifr_addr=no
7899fi
7900rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7901fi
7902rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7903fi
7904echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_addr" >&5
7905echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_addr" >&6
7906if test $ac_cv_member_struct_ifreq_ifr_addr = yes; then
7907
7908cat >>confdefs.h <<_ACEOF
7909#define HAVE_STRUCT_IFREQ_IFR_ADDR 1
7910_ACEOF
7911
7912
7913fi
7914
7915
7916
7917echo "$as_me:$LINENO: checking for function prototypes" >&5
7918echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
7919if test "$ac_cv_prog_cc_stdc" != no; then
7920 echo "$as_me:$LINENO: result: yes" >&5
7921echo "${ECHO_T}yes" >&6
7922
7923cat >>confdefs.h <<\_ACEOF
7924#define PROTOTYPES 1
7925_ACEOF
7926
7927
7928cat >>confdefs.h <<\_ACEOF
7929#define __PROTOTYPES 1
7930_ACEOF
7931
7932else
7933 echo "$as_me:$LINENO: result: no" >&5
7934echo "${ECHO_T}no" >&6
7935fi
7936
7937echo "$as_me:$LINENO: checking for working volatile" >&5
7938echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
7939if test "${ac_cv_c_volatile+set}" = set; then
7940 echo $ECHO_N "(cached) $ECHO_C" >&6
7941else
7942 cat >conftest.$ac_ext <<_ACEOF
7943/* confdefs.h. */
7944_ACEOF
7945cat confdefs.h >>conftest.$ac_ext
7946cat >>conftest.$ac_ext <<_ACEOF
7947/* end confdefs.h. */
7948
7949int
7950main ()
7951{
7952
7953volatile int x;
7954int * volatile y;
7955 ;
7956 return 0;
7957}
7958_ACEOF
7959rm -f conftest.$ac_objext
7960if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7961 (eval $ac_compile) 2>conftest.er1
7962 ac_status=$?
7963 grep -v '^ *+' conftest.er1 >conftest.err
7964 rm -f conftest.er1
7965 cat conftest.err >&5
7966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7967 (exit $ac_status); } &&
7968 { ac_try='test -z "$ac_c_werror_flag"
7969 || test ! -s conftest.err'
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); }; } &&
7975 { ac_try='test -s conftest.$ac_objext'
7976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7977 (eval $ac_try) 2>&5
7978 ac_status=$?
7979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7980 (exit $ac_status); }; }; then
7981 ac_cv_c_volatile=yes
7982else
7983 echo "$as_me: failed program was:" >&5
7984sed 's/^/| /' conftest.$ac_ext >&5
7985
7986ac_cv_c_volatile=no
7987fi
7988rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7989fi
7990echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
7991echo "${ECHO_T}$ac_cv_c_volatile" >&6
7992if test $ac_cv_c_volatile = no; then
7993
7994cat >>confdefs.h <<\_ACEOF
7995#define volatile
7996_ACEOF
7997
7998fi
7999
8000echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8001echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
8002if test "${ac_cv_c_const+set}" = set; then
8003 echo $ECHO_N "(cached) $ECHO_C" >&6
8004else
8005 cat >conftest.$ac_ext <<_ACEOF
8006/* confdefs.h. */
8007_ACEOF
8008cat confdefs.h >>conftest.$ac_ext
8009cat >>conftest.$ac_ext <<_ACEOF
8010/* end confdefs.h. */
8011
8012int
8013main ()
8014{
8015/* FIXME: Include the comments suggested by Paul. */
8016#ifndef __cplusplus
8017 /* Ultrix mips cc rejects this. */
8018 typedef int charset[2];
8019 const charset x;
8020 /* SunOS 4.1.1 cc rejects this. */
8021 char const *const *ccp;
8022 char **p;
8023 /* NEC SVR4.0.2 mips cc rejects this. */
8024 struct point {int x, y;};
8025 static struct point const zero = {0,0};
8026 /* AIX XL C 1.02.0.0 rejects this.
8027 It does not let you subtract one const X* pointer from another in
8028 an arm of an if-expression whose if-part is not a constant
8029 expression */
8030 const char *g = "string";
8031 ccp = &g + (g ? g-g : 0);
8032 /* HPUX 7.0 cc rejects these. */
8033 ++ccp;
8034 p = (char**) ccp;
8035 ccp = (char const *const *) p;
8036 { /* SCO 3.2v4 cc rejects this. */
8037 char *t;
8038 char const *s = 0 ? (char *) 0 : (char const *) 0;
8039
8040 *t++ = 0;
8041 }
8042 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8043 int x[] = {25, 17};
8044 const int *foo = &x[0];
8045 ++foo;
8046 }
8047 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8048 typedef const int *iptr;
8049 iptr p = 0;
8050 ++p;
8051 }
8052 { /* AIX XL C 1.02.0.0 rejects this saying
8053 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8054 struct s { int j; const int *ap[3]; };
8055 struct s *b; b->j = 5;
8056 }
8057 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8058 const int foo = 10;
8059 }
8060#endif
8061
8062 ;
8063 return 0;
8064}
8065_ACEOF
8066rm -f conftest.$ac_objext
8067if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8068 (eval $ac_compile) 2>conftest.er1
8069 ac_status=$?
8070 grep -v '^ *+' conftest.er1 >conftest.err
8071 rm -f conftest.er1
8072 cat conftest.err >&5
8073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8074 (exit $ac_status); } &&
8075 { ac_try='test -z "$ac_c_werror_flag"
8076 || test ! -s conftest.err'
8077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8078 (eval $ac_try) 2>&5
8079 ac_status=$?
8080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8081 (exit $ac_status); }; } &&
8082 { ac_try='test -s conftest.$ac_objext'
8083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8084 (eval $ac_try) 2>&5
8085 ac_status=$?
8086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8087 (exit $ac_status); }; }; then
8088 ac_cv_c_const=yes
8089else
8090 echo "$as_me: failed program was:" >&5
8091sed 's/^/| /' conftest.$ac_ext >&5
8092
8093ac_cv_c_const=no
8094fi
8095rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8096fi
8097echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8098echo "${ECHO_T}$ac_cv_c_const" >&6
8099if test $ac_cv_c_const = no; then
8100
8101cat >>confdefs.h <<\_ACEOF
8102#define const
8103_ACEOF
8104
8105fi
8106
8107echo "$as_me:$LINENO: checking for void * support" >&5
8108echo $ECHO_N "checking for void * support... $ECHO_C" >&6
8109if test "${emacs_cv_void_star+set}" = set; then
8110 echo $ECHO_N "(cached) $ECHO_C" >&6
8111else
8112 cat >conftest.$ac_ext <<_ACEOF
8113/* confdefs.h. */
8114_ACEOF
8115cat confdefs.h >>conftest.$ac_ext
8116cat >>conftest.$ac_ext <<_ACEOF
8117/* end confdefs.h. */
8118
8119int
8120main ()
8121{
8122void * foo;
8123 ;
8124 return 0;
8125}
8126_ACEOF
8127rm -f conftest.$ac_objext
8128if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8129 (eval $ac_compile) 2>conftest.er1
8130 ac_status=$?
8131 grep -v '^ *+' conftest.er1 >conftest.err
8132 rm -f conftest.er1
8133 cat conftest.err >&5
8134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8135 (exit $ac_status); } &&
8136 { ac_try='test -z "$ac_c_werror_flag"
8137 || test ! -s conftest.err'
8138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8139 (eval $ac_try) 2>&5
8140 ac_status=$?
8141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8142 (exit $ac_status); }; } &&
8143 { ac_try='test -s conftest.$ac_objext'
8144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8145 (eval $ac_try) 2>&5
8146 ac_status=$?
8147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8148 (exit $ac_status); }; }; then
8149 emacs_cv_void_star=yes
8150else
8151 echo "$as_me: failed program was:" >&5
8152sed 's/^/| /' conftest.$ac_ext >&5
8153
8154emacs_cv_void_star=no
8155fi
8156rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8157fi
8158echo "$as_me:$LINENO: result: $emacs_cv_void_star" >&5
8159echo "${ECHO_T}$emacs_cv_void_star" >&6
8160if test $emacs_cv_void_star = yes; then
8161 cat >>confdefs.h <<\_ACEOF
8162#define POINTER_TYPE void
8163_ACEOF
8164
8165else
8166 cat >>confdefs.h <<\_ACEOF
8167#define POINTER_TYPE char
8168_ACEOF
8169
8170fi
8171
8172
8173
8174
8175
8176echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8177echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
8178set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
8179if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
8180 echo $ECHO_N "(cached) $ECHO_C" >&6
8181else
8182 cat >conftest.make <<\_ACEOF
8183all:
8184 @echo 'ac_maketemp="$(MAKE)"'
8185_ACEOF
8186# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8187eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
8188if test -n "$ac_maketemp"; then
8189 eval ac_cv_prog_make_${ac_make}_set=yes
8190else
8191 eval ac_cv_prog_make_${ac_make}_set=no
8192fi
8193rm -f conftest.make
8194fi
8195if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
8196 echo "$as_me:$LINENO: result: yes" >&5
8197echo "${ECHO_T}yes" >&6
8198 SET_MAKE=
8199else
8200 echo "$as_me:$LINENO: result: no" >&5
8201echo "${ECHO_T}no" >&6
8202 SET_MAKE="MAKE=${MAKE-make}"
8203fi
8204
8205
8206echo "$as_me:$LINENO: checking for long file names" >&5
8207echo $ECHO_N "checking for long file names... $ECHO_C" >&6
8208if test "${ac_cv_sys_long_file_names+set}" = set; then
8209 echo $ECHO_N "(cached) $ECHO_C" >&6
8210else
8211 ac_cv_sys_long_file_names=yes
8212# Test for long file names in all the places we know might matter:
8213# . the current directory, where building will happen
8214# $prefix/lib where we will be installing things
8215# $exec_prefix/lib likewise
8216# eval it to expand exec_prefix.
8217# $TMPDIR if set, where it might want to write temporary files
8218# if $TMPDIR is not set:
8219# /tmp where it might want to write temporary files
8220# /var/tmp likewise
8221# /usr/tmp likewise
8222if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
8223 ac_tmpdirs=$TMPDIR
8224else
8225 ac_tmpdirs='/tmp /var/tmp /usr/tmp'
8226fi
8227for ac_dir in . $ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
8228 test -d $ac_dir || continue
8229 test -w $ac_dir || continue # It is less confusing to not echo anything here.
8230 ac_xdir=$ac_dir/cf$$
8231 (umask 077 && mkdir $ac_xdir 2>/dev/null) || continue
8232 ac_tf1=$ac_xdir/conftest9012345
8233 ac_tf2=$ac_xdir/conftest9012346
8234 (echo 1 >$ac_tf1) 2>/dev/null
8235 (echo 2 >$ac_tf2) 2>/dev/null
8236 ac_val=`cat $ac_tf1 2>/dev/null`
8237 if test ! -f $ac_tf1 || test "$ac_val" != 1; then
8238 ac_cv_sys_long_file_names=no
8239 rm -rf $ac_xdir 2>/dev/null
8240 break
8241 fi
8242 rm -rf $ac_xdir 2>/dev/null
8243done
8244fi
8245echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
8246echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6
8247if test $ac_cv_sys_long_file_names = yes; then
8248
8249cat >>confdefs.h <<\_ACEOF
8250#define HAVE_LONG_FILE_NAMES 1
8251_ACEOF
8252
8253fi
8254
8255
8256#### Choose a window system.
8257
8258echo "$as_me:$LINENO: checking for X" >&5
8259echo $ECHO_N "checking for X... $ECHO_C" >&6
8260
8261
8262# Check whether --with-x or --without-x was given.
8263if test "${with_x+set}" = set; then
8264 withval="$with_x"
8265
8266fi;
8267# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
8268if test "x$with_x" = xno; then
8269 # The user explicitly disabled X.
8270 have_x=disabled
8271else
8272 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
8273 # Both variables are already set.
8274 have_x=yes
8275 else
8276 if test "${ac_cv_have_x+set}" = set; then
8277 echo $ECHO_N "(cached) $ECHO_C" >&6
8278else
8279 # One or both of the vars are not set, and there is no cached value.
8280ac_x_includes=no ac_x_libraries=no
8281rm -fr conftest.dir
8282if mkdir conftest.dir; then
8283 cd conftest.dir
8284 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
8285 cat >Imakefile <<'_ACEOF'
8286acfindx:
8287 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
8288_ACEOF
8289 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
8290 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8291 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
8292 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
8293 for ac_extension in a so sl; do
8294 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
8295 test -f $ac_im_libdir/libX11.$ac_extension; then
8296 ac_im_usrlibdir=$ac_im_libdir; break
8297 fi
8298 done
8299 # Screen out bogus values from the imake configuration. They are
8300 # bogus both because they are the default anyway, and because
8301 # using them would break gcc on systems where it needs fixed includes.
8302 case $ac_im_incroot in
8303 /usr/include) ;;
8304 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
8305 esac
8306 case $ac_im_usrlibdir in
8307 /usr/lib | /lib) ;;
8308 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
8309 esac
8310 fi
8311 cd ..
8312 rm -fr conftest.dir
8313fi
8314
8315# Standard set of common directories for X headers.
8316# Check X11 before X11Rn because it is often a symlink to the current release.
8317ac_x_header_dirs='
8318/usr/X11/include
8319/usr/X11R6/include
8320/usr/X11R5/include
8321/usr/X11R4/include
8322
8323/usr/include/X11
8324/usr/include/X11R6
8325/usr/include/X11R5
8326/usr/include/X11R4
8327
8328/usr/local/X11/include
8329/usr/local/X11R6/include
8330/usr/local/X11R5/include
8331/usr/local/X11R4/include
8332
8333/usr/local/include/X11
8334/usr/local/include/X11R6
8335/usr/local/include/X11R5
8336/usr/local/include/X11R4
8337
8338/usr/X386/include
8339/usr/x386/include
8340/usr/XFree86/include/X11
8341
8342/usr/include
8343/usr/local/include
8344/usr/unsupported/include
8345/usr/athena/include
8346/usr/local/x11r5/include
8347/usr/lpp/Xamples/include
8348
8349/usr/openwin/include
8350/usr/openwin/share/include'
8351
8352if test "$ac_x_includes" = no; then
8353 # Guess where to find include files, by looking for Intrinsic.h.
8354 # First, try using that file with no special directory specified.
8355 cat >conftest.$ac_ext <<_ACEOF
8356/* confdefs.h. */
8357_ACEOF
8358cat confdefs.h >>conftest.$ac_ext
8359cat >>conftest.$ac_ext <<_ACEOF
8360/* end confdefs.h. */
8361#include <X11/Intrinsic.h>
8362_ACEOF
8363if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8364 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8365 ac_status=$?
8366 grep -v '^ *+' conftest.er1 >conftest.err
8367 rm -f conftest.er1
8368 cat conftest.err >&5
8369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8370 (exit $ac_status); } >/dev/null; then
8371 if test -s conftest.err; then
8372 ac_cpp_err=$ac_c_preproc_warn_flag
8373 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8374 else
8375 ac_cpp_err=
8376 fi
8377else
8378 ac_cpp_err=yes
8379fi
8380if test -z "$ac_cpp_err"; then
8381 # We can compile using X headers with no special include directory.
8382ac_x_includes=
8383else
8384 echo "$as_me: failed program was:" >&5
8385sed 's/^/| /' conftest.$ac_ext >&5
8386
8387 for ac_dir in $ac_x_header_dirs; do
8388 if test -r "$ac_dir/X11/Intrinsic.h"; then
8389 ac_x_includes=$ac_dir
8390 break
8391 fi
8392done
8393fi
8394rm -f conftest.err conftest.$ac_ext
8395fi # $ac_x_includes = no
8396
8397if test "$ac_x_libraries" = no; then
8398 # Check for the libraries.
8399 # See if we find them without any special options.
8400 # Don't add to $LIBS permanently.
8401 ac_save_LIBS=$LIBS
8402 LIBS="-lXt $LIBS"
8403 cat >conftest.$ac_ext <<_ACEOF
8404/* confdefs.h. */
8405_ACEOF
8406cat confdefs.h >>conftest.$ac_ext
8407cat >>conftest.$ac_ext <<_ACEOF
8408/* end confdefs.h. */
8409#include <X11/Intrinsic.h>
8410int
8411main ()
8412{
8413XtMalloc (0)
8414 ;
8415 return 0;
8416}
8417_ACEOF
8418rm -f conftest.$ac_objext conftest$ac_exeext
8419if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8420 (eval $ac_link) 2>conftest.er1
8421 ac_status=$?
8422 grep -v '^ *+' conftest.er1 >conftest.err
8423 rm -f conftest.er1
8424 cat conftest.err >&5
8425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8426 (exit $ac_status); } &&
8427 { ac_try='test -z "$ac_c_werror_flag"
8428 || test ! -s conftest.err'
8429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8430 (eval $ac_try) 2>&5
8431 ac_status=$?
8432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8433 (exit $ac_status); }; } &&
8434 { ac_try='test -s conftest$ac_exeext'
8435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8436 (eval $ac_try) 2>&5
8437 ac_status=$?
8438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8439 (exit $ac_status); }; }; then
8440 LIBS=$ac_save_LIBS
8441# We can link X programs with no special library path.
8442ac_x_libraries=
8443else
8444 echo "$as_me: failed program was:" >&5
8445sed 's/^/| /' conftest.$ac_ext >&5
8446
8447LIBS=$ac_save_LIBS
8448for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
8449do
8450 # Don't even attempt the hair of trying to link an X program!
8451 for ac_extension in a so sl; do
8452 if test -r $ac_dir/libXt.$ac_extension; then
8453 ac_x_libraries=$ac_dir
8454 break 2
8455 fi
8456 done
8457done
8458fi
8459rm -f conftest.err conftest.$ac_objext \
8460 conftest$ac_exeext conftest.$ac_ext
8461fi # $ac_x_libraries = no
8462
8463if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
8464 # Didn't find X anywhere. Cache the known absence of X.
8465 ac_cv_have_x="have_x=no"
8466else
8467 # Record where we found X for the cache.
8468 ac_cv_have_x="have_x=yes \
8469 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
8470fi
8471fi
8472
8473 fi
8474 eval "$ac_cv_have_x"
8475fi # $with_x != no
8476
8477if test "$have_x" != yes; then
8478 echo "$as_me:$LINENO: result: $have_x" >&5
8479echo "${ECHO_T}$have_x" >&6
8480 no_x=yes
8481else
8482 # If each of the values was on the command line, it overrides each guess.
8483 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
8484 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
8485 # Update the cache value to reflect the command line values.
8486 ac_cv_have_x="have_x=yes \
8487 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
8488 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
8489echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
8490fi
8491
8492if test "$no_x" = yes; then
8493 window_system=none
8494else
8495 window_system=x11
8496fi
8497
8498if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
8499 LD_SWITCH_X_SITE=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
8500 LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
8501 x_default_search_path=""
8502 for x_library in `echo ${x_libraries} | sed -e "s/:/ /g"`; do
8503 x_search_path="\
8504${x_library}/X11/%L/%T/%N%C%S:\
8505${x_library}/X11/%l/%T/%N%C%S:\
8506${x_library}/X11/%T/%N%C%S:\
8507${x_library}/X11/%L/%T/%N%S:\
8508${x_library}/X11/%l/%T/%N%S:\
8509${x_library}/X11/%T/%N%S"
8510 if test x"${x_default_search_path}" = x; then
8511 x_default_search_path=${x_search_path}
8512 else
8513 x_default_search_path="${x_search_path}:${x_default_search_path}"
8514 fi
8515 done
8516fi
8517if test "${x_includes}" != NONE && test -n "${x_includes}"; then
8518 C_SWITCH_X_SITE=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
8519fi
8520
8521if test x"${x_includes}" = x; then
8522 bitmapdir=/usr/include/X11/bitmaps
8523else
8524 # accumulate include directories that have X11 bitmap subdirectories
8525 bmd_acc="dummyval"
8526 for bmd in `echo ${x_includes} | sed -e "s/:/ /g"`; do
8527 if test -d "${bmd}/X11/bitmaps"; then
8528 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
8529 fi
8530 if test -d "${bmd}/bitmaps"; then
8531 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
8532 fi
8533 done
8534 if test ${bmd_acc} != "dummyval"; then
8535 bitmapdir=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
8536 fi
8537fi
8538
8539HAVE_CARBON=no
8540if test "${with_carbon}" != no; then
8541 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
8542 echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
8543echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6
8544if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
8545 echo $ECHO_N "(cached) $ECHO_C" >&6
8546fi
8547echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
8548echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6
8549else
8550 # Is the header compilable?
8551echo "$as_me:$LINENO: checking Carbon/Carbon.h usability" >&5
8552echo $ECHO_N "checking Carbon/Carbon.h usability... $ECHO_C" >&6
8553cat >conftest.$ac_ext <<_ACEOF
8554/* confdefs.h. */
8555_ACEOF
8556cat confdefs.h >>conftest.$ac_ext
8557cat >>conftest.$ac_ext <<_ACEOF
8558/* end confdefs.h. */
8559$ac_includes_default
8560#include <Carbon/Carbon.h>
8561_ACEOF
8562rm -f conftest.$ac_objext
8563if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8564 (eval $ac_compile) 2>conftest.er1
8565 ac_status=$?
8566 grep -v '^ *+' conftest.er1 >conftest.err
8567 rm -f conftest.er1
8568 cat conftest.err >&5
8569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8570 (exit $ac_status); } &&
8571 { ac_try='test -z "$ac_c_werror_flag"
8572 || test ! -s conftest.err'
8573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8574 (eval $ac_try) 2>&5
8575 ac_status=$?
8576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8577 (exit $ac_status); }; } &&
8578 { ac_try='test -s conftest.$ac_objext'
8579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8580 (eval $ac_try) 2>&5
8581 ac_status=$?
8582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8583 (exit $ac_status); }; }; then
8584 ac_header_compiler=yes
8585else
8586 echo "$as_me: failed program was:" >&5
8587sed 's/^/| /' conftest.$ac_ext >&5
8588
8589ac_header_compiler=no
8590fi
8591rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8592echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8593echo "${ECHO_T}$ac_header_compiler" >&6
8594
8595# Is the header present?
8596echo "$as_me:$LINENO: checking Carbon/Carbon.h presence" >&5
8597echo $ECHO_N "checking Carbon/Carbon.h presence... $ECHO_C" >&6
8598cat >conftest.$ac_ext <<_ACEOF
8599/* confdefs.h. */
8600_ACEOF
8601cat confdefs.h >>conftest.$ac_ext
8602cat >>conftest.$ac_ext <<_ACEOF
8603/* end confdefs.h. */
8604#include <Carbon/Carbon.h>
8605_ACEOF
8606if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8607 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8608 ac_status=$?
8609 grep -v '^ *+' conftest.er1 >conftest.err
8610 rm -f conftest.er1
8611 cat conftest.err >&5
8612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8613 (exit $ac_status); } >/dev/null; then
8614 if test -s conftest.err; then
8615 ac_cpp_err=$ac_c_preproc_warn_flag
8616 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8617 else
8618 ac_cpp_err=
8619 fi
8620else
8621 ac_cpp_err=yes
8622fi
8623if test -z "$ac_cpp_err"; then
8624 ac_header_preproc=yes
8625else
8626 echo "$as_me: failed program was:" >&5
8627sed 's/^/| /' conftest.$ac_ext >&5
8628
8629 ac_header_preproc=no
8630fi
8631rm -f conftest.err conftest.$ac_ext
8632echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8633echo "${ECHO_T}$ac_header_preproc" >&6
8634
8635# So? What about this header?
8636case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8637 yes:no: )
8638 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&5
8639echo "$as_me: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8640 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&5
8641echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&2;}
8642 ac_header_preproc=yes
8643 ;;
8644 no:yes:* )
8645 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&5
8646echo "$as_me: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&2;}
8647 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&5
8648echo "$as_me: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&2;}
8649 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&5
8650echo "$as_me: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&2;}
8651 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&5
8652echo "$as_me: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&2;}
8653 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5
8654echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;}
8655 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&5
8656echo "$as_me: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&2;}
8657 (
8658 cat <<\_ASBOX
8659## ------------------------------------------ ##
8660## Report this to the AC_PACKAGE_NAME lists. ##
8661## ------------------------------------------ ##
8662_ASBOX
8663 ) |
8664 sed "s/^/$as_me: WARNING: /" >&2
8665 ;;
8666esac
8667echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
8668echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6
8669if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
8670 echo $ECHO_N "(cached) $ECHO_C" >&6
8671else
8672 ac_cv_header_Carbon_Carbon_h=$ac_header_preproc
8673fi
8674echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
8675echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6
8676
8677fi
8678if test $ac_cv_header_Carbon_Carbon_h = yes; then
8679 HAVE_CARBON=yes
8680fi
8681
8682
8683fi
8684if test "${window_system}" = x11 && test "${HAVE_CARBON}" = yes; then
8685 if test "${with_carbon+set}" != set \
8686 && test "${carbon_appdir_x+set}" != set; then
8687 HAVE_CARBON=no
8688 fi
8689fi
8690if test "${HAVE_CARBON}" = yes; then
8691 window_system=mac
8692fi
8693
8694case "${window_system}" in
8695 x11 )
8696 HAVE_X_WINDOWS=yes
8697 HAVE_X11=yes
8698 case "${with_x_toolkit}" in
8699 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
8700 motif ) USE_X_TOOLKIT=MOTIF ;;
8701 gtk ) with_gtk=yes
8702 USE_X_TOOLKIT=none ;;
8703 no ) USE_X_TOOLKIT=none ;;
8704 * ) USE_X_TOOLKIT=maybe ;;
8705 esac
8706 ;;
8707 mac | none )
8708 HAVE_X_WINDOWS=no
8709 HAVE_X11=no
8710 USE_X_TOOLKIT=none
8711 ;;
8712esac
8713
8714### If we're using X11, we should use the X menu package.
8715HAVE_MENUS=no
8716case ${HAVE_X11} in
8717 yes ) HAVE_MENUS=yes ;;
8718esac
8719
8720if test "${opsys}" = "hpux9"; then
8721 case "${x_libraries}" in
8722 *X11R4* )
8723 opsysfile="s/hpux9-x11r4.h"
8724 ;;
8725 esac
8726fi
8727
8728if test "${opsys}" = "hpux9shr"; then
8729 case "${x_libraries}" in
8730 *X11R4* )
8731 opsysfile="s/hpux9shxr4.h"
8732 ;;
8733 esac
8734fi
8735
8736### Compute the unexec source name from the object name.
8737UNEXEC_SRC="`echo ${unexec} | sed 's/\.o/.c/'`"
8738
8739# Do the opsystem or machine files prohibit the use of the GNU malloc?
8740# Assume not, until told otherwise.
8741GNU_MALLOC=yes
8742doug_lea_malloc=yes
8743echo "$as_me:$LINENO: checking for malloc_get_state" >&5
8744echo $ECHO_N "checking for malloc_get_state... $ECHO_C" >&6
8745if test "${ac_cv_func_malloc_get_state+set}" = set; then
8746 echo $ECHO_N "(cached) $ECHO_C" >&6
8747else
8748 cat >conftest.$ac_ext <<_ACEOF
8749/* confdefs.h. */
8750_ACEOF
8751cat confdefs.h >>conftest.$ac_ext
8752cat >>conftest.$ac_ext <<_ACEOF
8753/* end confdefs.h. */
8754/* Define malloc_get_state to an innocuous variant, in case <limits.h> declares malloc_get_state.
8755 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8756#define malloc_get_state innocuous_malloc_get_state
8757
8758/* System header to define __stub macros and hopefully few prototypes,
8759 which can conflict with char malloc_get_state (); below.
8760 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8761 <limits.h> exists even on freestanding compilers. */
8762
8763#ifdef __STDC__
8764# include <limits.h>
8765#else
8766# include <assert.h>
8767#endif
8768
8769#undef malloc_get_state
8770
8771/* Override any gcc2 internal prototype to avoid an error. */
8772#ifdef __cplusplus
8773extern "C"
8774{
8775#endif
8776/* We use char because int might match the return type of a gcc2
8777 builtin and then its argument prototype would still apply. */
8778char malloc_get_state ();
8779/* The GNU C library defines this for functions which it implements
8780 to always fail with ENOSYS. Some functions are actually named
8781 something starting with __ and the normal name is an alias. */
8782#if defined (__stub_malloc_get_state) || defined (__stub___malloc_get_state)
8783choke me
8784#else
8785char (*f) () = malloc_get_state;
8786#endif
8787#ifdef __cplusplus
8788}
8789#endif
8790
8791int
8792main ()
8793{
8794return f != malloc_get_state;
8795 ;
8796 return 0;
8797}
8798_ACEOF
8799rm -f conftest.$ac_objext conftest$ac_exeext
8800if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8801 (eval $ac_link) 2>conftest.er1
8802 ac_status=$?
8803 grep -v '^ *+' conftest.er1 >conftest.err
8804 rm -f conftest.er1
8805 cat conftest.err >&5
8806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8807 (exit $ac_status); } &&
8808 { ac_try='test -z "$ac_c_werror_flag"
8809 || test ! -s conftest.err'
8810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8811 (eval $ac_try) 2>&5
8812 ac_status=$?
8813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8814 (exit $ac_status); }; } &&
8815 { ac_try='test -s conftest$ac_exeext'
8816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8817 (eval $ac_try) 2>&5
8818 ac_status=$?
8819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8820 (exit $ac_status); }; }; then
8821 ac_cv_func_malloc_get_state=yes
8822else
8823 echo "$as_me: failed program was:" >&5
8824sed 's/^/| /' conftest.$ac_ext >&5
8825
8826ac_cv_func_malloc_get_state=no
8827fi
8828rm -f conftest.err conftest.$ac_objext \
8829 conftest$ac_exeext conftest.$ac_ext
8830fi
8831echo "$as_me:$LINENO: result: $ac_cv_func_malloc_get_state" >&5
8832echo "${ECHO_T}$ac_cv_func_malloc_get_state" >&6
8833if test $ac_cv_func_malloc_get_state = yes; then
8834 :
8835else
8836 doug_lea_malloc=no
8837fi
8838
8839echo "$as_me:$LINENO: checking for malloc_set_state" >&5
8840echo $ECHO_N "checking for malloc_set_state... $ECHO_C" >&6
8841if test "${ac_cv_func_malloc_set_state+set}" = set; then
8842 echo $ECHO_N "(cached) $ECHO_C" >&6
8843else
8844 cat >conftest.$ac_ext <<_ACEOF
8845/* confdefs.h. */
8846_ACEOF
8847cat confdefs.h >>conftest.$ac_ext
8848cat >>conftest.$ac_ext <<_ACEOF
8849/* end confdefs.h. */
8850/* Define malloc_set_state to an innocuous variant, in case <limits.h> declares malloc_set_state.
8851 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8852#define malloc_set_state innocuous_malloc_set_state
8853
8854/* System header to define __stub macros and hopefully few prototypes,
8855 which can conflict with char malloc_set_state (); below.
8856 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8857 <limits.h> exists even on freestanding compilers. */
8858
8859#ifdef __STDC__
8860# include <limits.h>
8861#else
8862# include <assert.h>
8863#endif
8864
8865#undef malloc_set_state
8866
8867/* Override any gcc2 internal prototype to avoid an error. */
8868#ifdef __cplusplus
8869extern "C"
8870{
8871#endif
8872/* We use char because int might match the return type of a gcc2
8873 builtin and then its argument prototype would still apply. */
8874char malloc_set_state ();
8875/* The GNU C library defines this for functions which it implements
8876 to always fail with ENOSYS. Some functions are actually named
8877 something starting with __ and the normal name is an alias. */
8878#if defined (__stub_malloc_set_state) || defined (__stub___malloc_set_state)
8879choke me
8880#else
8881char (*f) () = malloc_set_state;
8882#endif
8883#ifdef __cplusplus
8884}
8885#endif
8886
8887int
8888main ()
8889{
8890return f != malloc_set_state;
8891 ;
8892 return 0;
8893}
8894_ACEOF
8895rm -f conftest.$ac_objext conftest$ac_exeext
8896if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8897 (eval $ac_link) 2>conftest.er1
8898 ac_status=$?
8899 grep -v '^ *+' conftest.er1 >conftest.err
8900 rm -f conftest.er1
8901 cat conftest.err >&5
8902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8903 (exit $ac_status); } &&
8904 { ac_try='test -z "$ac_c_werror_flag"
8905 || test ! -s conftest.err'
8906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8907 (eval $ac_try) 2>&5
8908 ac_status=$?
8909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8910 (exit $ac_status); }; } &&
8911 { ac_try='test -s conftest$ac_exeext'
8912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8913 (eval $ac_try) 2>&5
8914 ac_status=$?
8915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8916 (exit $ac_status); }; }; then
8917 ac_cv_func_malloc_set_state=yes
8918else
8919 echo "$as_me: failed program was:" >&5
8920sed 's/^/| /' conftest.$ac_ext >&5
8921
8922ac_cv_func_malloc_set_state=no
8923fi
8924rm -f conftest.err conftest.$ac_objext \
8925 conftest$ac_exeext conftest.$ac_ext
8926fi
8927echo "$as_me:$LINENO: result: $ac_cv_func_malloc_set_state" >&5
8928echo "${ECHO_T}$ac_cv_func_malloc_set_state" >&6
8929if test $ac_cv_func_malloc_set_state = yes; then
8930 :
8931else
8932 doug_lea_malloc=no
8933fi
8934
8935echo "$as_me:$LINENO: checking whether __after_morecore_hook exists" >&5
8936echo $ECHO_N "checking whether __after_morecore_hook exists... $ECHO_C" >&6
8937if test "${emacs_cv_var___after_morecore_hook+set}" = set; then
8938 echo $ECHO_N "(cached) $ECHO_C" >&6
8939else
8940 cat >conftest.$ac_ext <<_ACEOF
8941/* confdefs.h. */
8942_ACEOF
8943cat confdefs.h >>conftest.$ac_ext
8944cat >>conftest.$ac_ext <<_ACEOF
8945/* end confdefs.h. */
8946extern void (* __after_morecore_hook)();
8947int
8948main ()
8949{
8950__after_morecore_hook = 0
8951 ;
8952 return 0;
8953}
8954_ACEOF
8955rm -f conftest.$ac_objext conftest$ac_exeext
8956if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8957 (eval $ac_link) 2>conftest.er1
8958 ac_status=$?
8959 grep -v '^ *+' conftest.er1 >conftest.err
8960 rm -f conftest.er1
8961 cat conftest.err >&5
8962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8963 (exit $ac_status); } &&
8964 { ac_try='test -z "$ac_c_werror_flag"
8965 || test ! -s conftest.err'
8966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8967 (eval $ac_try) 2>&5
8968 ac_status=$?
8969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8970 (exit $ac_status); }; } &&
8971 { ac_try='test -s conftest$ac_exeext'
8972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8973 (eval $ac_try) 2>&5
8974 ac_status=$?
8975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8976 (exit $ac_status); }; }; then
8977 emacs_cv_var___after_morecore_hook=yes
8978else
8979 echo "$as_me: failed program was:" >&5
8980sed 's/^/| /' conftest.$ac_ext >&5
8981
8982emacs_cv_var___after_morecore_hook=no
8983fi
8984rm -f conftest.err conftest.$ac_objext \
8985 conftest$ac_exeext conftest.$ac_ext
8986fi
8987echo "$as_me:$LINENO: result: $emacs_cv_var___after_morecore_hook" >&5
8988echo "${ECHO_T}$emacs_cv_var___after_morecore_hook" >&6
8989if test $emacs_cv_var___after_morecore_hook = no; then
8990 doug_lea_malloc=no
8991fi
8992if test "${system_malloc}" = "yes"; then
8993 GNU_MALLOC=no
8994 GNU_MALLOC_reason="
8995 (The GNU allocators don't work with this system configuration.)"
8996fi
8997if test "$doug_lea_malloc" = "yes" ; then
8998 if test "$GNU_MALLOC" = yes ; then
8999 GNU_MALLOC_reason="
9000 (Using Doug Lea's new malloc from the GNU C Library.)"
9001 fi
9002
9003cat >>confdefs.h <<\_ACEOF
9004#define DOUG_LEA_MALLOC 1
9005_ACEOF
9006
9007fi
9008
9009if test x"${REL_ALLOC}" = x; then
9010 REL_ALLOC=${GNU_MALLOC}
9011fi
9012
9013
9014
9015
9016for ac_header in stdlib.h unistd.h
9017do
9018as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9019if eval "test \"\${$as_ac_Header+set}\" = set"; then
9020 echo "$as_me:$LINENO: checking for $ac_header" >&5
9021echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9022if eval "test \"\${$as_ac_Header+set}\" = set"; then
9023 echo $ECHO_N "(cached) $ECHO_C" >&6
9024fi
9025echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9026echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9027else
9028 # Is the header compilable?
9029echo "$as_me:$LINENO: checking $ac_header usability" >&5
9030echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9031cat >conftest.$ac_ext <<_ACEOF
9032/* confdefs.h. */
9033_ACEOF
9034cat confdefs.h >>conftest.$ac_ext
9035cat >>conftest.$ac_ext <<_ACEOF
9036/* end confdefs.h. */
9037$ac_includes_default
9038#include <$ac_header>
9039_ACEOF
9040rm -f conftest.$ac_objext
9041if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9042 (eval $ac_compile) 2>conftest.er1
9043 ac_status=$?
9044 grep -v '^ *+' conftest.er1 >conftest.err
9045 rm -f conftest.er1
9046 cat conftest.err >&5
9047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9048 (exit $ac_status); } &&
9049 { ac_try='test -z "$ac_c_werror_flag"
9050 || test ! -s conftest.err'
9051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9052 (eval $ac_try) 2>&5
9053 ac_status=$?
9054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9055 (exit $ac_status); }; } &&
9056 { ac_try='test -s conftest.$ac_objext'
9057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9058 (eval $ac_try) 2>&5
9059 ac_status=$?
9060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9061 (exit $ac_status); }; }; then
9062 ac_header_compiler=yes
9063else
9064 echo "$as_me: failed program was:" >&5
9065sed 's/^/| /' conftest.$ac_ext >&5
9066
9067ac_header_compiler=no
9068fi
9069rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9070echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9071echo "${ECHO_T}$ac_header_compiler" >&6
9072
9073# Is the header present?
9074echo "$as_me:$LINENO: checking $ac_header presence" >&5
9075echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9076cat >conftest.$ac_ext <<_ACEOF
9077/* confdefs.h. */
9078_ACEOF
9079cat confdefs.h >>conftest.$ac_ext
9080cat >>conftest.$ac_ext <<_ACEOF
9081/* end confdefs.h. */
9082#include <$ac_header>
9083_ACEOF
9084if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9085 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9086 ac_status=$?
9087 grep -v '^ *+' conftest.er1 >conftest.err
9088 rm -f conftest.er1
9089 cat conftest.err >&5
9090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9091 (exit $ac_status); } >/dev/null; then
9092 if test -s conftest.err; then
9093 ac_cpp_err=$ac_c_preproc_warn_flag
9094 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9095 else
9096 ac_cpp_err=
9097 fi
9098else
9099 ac_cpp_err=yes
9100fi
9101if test -z "$ac_cpp_err"; then
9102 ac_header_preproc=yes
9103else
9104 echo "$as_me: failed program was:" >&5
9105sed 's/^/| /' conftest.$ac_ext >&5
9106
9107 ac_header_preproc=no
9108fi
9109rm -f conftest.err conftest.$ac_ext
9110echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9111echo "${ECHO_T}$ac_header_preproc" >&6
9112
9113# So? What about this header?
9114case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9115 yes:no: )
9116 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9117echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9118 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9119echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9120 ac_header_preproc=yes
9121 ;;
9122 no:yes:* )
9123 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9124echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9125 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9126echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9127 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9128echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9129 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9130echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9131 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9132echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9133 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9134echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9135 (
9136 cat <<\_ASBOX
9137## ------------------------------------------ ##
9138## Report this to the AC_PACKAGE_NAME lists. ##
9139## ------------------------------------------ ##
9140_ASBOX
9141 ) |
9142 sed "s/^/$as_me: WARNING: /" >&2
9143 ;;
9144esac
9145echo "$as_me:$LINENO: checking for $ac_header" >&5
9146echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9147if eval "test \"\${$as_ac_Header+set}\" = set"; then
9148 echo $ECHO_N "(cached) $ECHO_C" >&6
9149else
9150 eval "$as_ac_Header=\$ac_header_preproc"
9151fi
9152echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9153echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9154
9155fi
9156if test `eval echo '${'$as_ac_Header'}'` = yes; then
9157 cat >>confdefs.h <<_ACEOF
9158#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9159_ACEOF
9160
9161fi
9162
9163done
9164
9165
9166for ac_func in getpagesize
9167do
9168as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9169echo "$as_me:$LINENO: checking for $ac_func" >&5
9170echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9171if eval "test \"\${$as_ac_var+set}\" = set"; then
9172 echo $ECHO_N "(cached) $ECHO_C" >&6
9173else
9174 cat >conftest.$ac_ext <<_ACEOF
9175/* confdefs.h. */
9176_ACEOF
9177cat confdefs.h >>conftest.$ac_ext
9178cat >>conftest.$ac_ext <<_ACEOF
9179/* end confdefs.h. */
9180/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9181 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9182#define $ac_func innocuous_$ac_func
9183
9184/* System header to define __stub macros and hopefully few prototypes,
9185 which can conflict with char $ac_func (); below.
9186 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9187 <limits.h> exists even on freestanding compilers. */
9188
9189#ifdef __STDC__
9190# include <limits.h>
9191#else
9192# include <assert.h>
9193#endif
9194
9195#undef $ac_func
9196
9197/* Override any gcc2 internal prototype to avoid an error. */
9198#ifdef __cplusplus
9199extern "C"
9200{
9201#endif
9202/* We use char because int might match the return type of a gcc2
9203 builtin and then its argument prototype would still apply. */
9204char $ac_func ();
9205/* The GNU C library defines this for functions which it implements
9206 to always fail with ENOSYS. Some functions are actually named
9207 something starting with __ and the normal name is an alias. */
9208#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9209choke me
9210#else
9211char (*f) () = $ac_func;
9212#endif
9213#ifdef __cplusplus
9214}
9215#endif
9216
9217int
9218main ()
9219{
9220return f != $ac_func;
9221 ;
9222 return 0;
9223}
9224_ACEOF
9225rm -f conftest.$ac_objext conftest$ac_exeext
9226if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9227 (eval $ac_link) 2>conftest.er1
9228 ac_status=$?
9229 grep -v '^ *+' conftest.er1 >conftest.err
9230 rm -f conftest.er1
9231 cat conftest.err >&5
9232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9233 (exit $ac_status); } &&
9234 { ac_try='test -z "$ac_c_werror_flag"
9235 || test ! -s conftest.err'
9236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9237 (eval $ac_try) 2>&5
9238 ac_status=$?
9239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9240 (exit $ac_status); }; } &&
9241 { ac_try='test -s conftest$ac_exeext'
9242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9243 (eval $ac_try) 2>&5
9244 ac_status=$?
9245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9246 (exit $ac_status); }; }; then
9247 eval "$as_ac_var=yes"
9248else
9249 echo "$as_me: failed program was:" >&5
9250sed 's/^/| /' conftest.$ac_ext >&5
9251
9252eval "$as_ac_var=no"
9253fi
9254rm -f conftest.err conftest.$ac_objext \
9255 conftest$ac_exeext conftest.$ac_ext
9256fi
9257echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9258echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9259if test `eval echo '${'$as_ac_var'}'` = yes; then
9260 cat >>confdefs.h <<_ACEOF
9261#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9262_ACEOF
9263
9264fi
9265done
9266
9267echo "$as_me:$LINENO: checking for working mmap" >&5
9268echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
9269if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
9270 echo $ECHO_N "(cached) $ECHO_C" >&6
9271else
9272 if test "$cross_compiling" = yes; then
9273 ac_cv_func_mmap_fixed_mapped=no
9274else
9275 cat >conftest.$ac_ext <<_ACEOF
9276/* confdefs.h. */
9277_ACEOF
9278cat confdefs.h >>conftest.$ac_ext
9279cat >>conftest.$ac_ext <<_ACEOF
9280/* end confdefs.h. */
9281$ac_includes_default
9282/* malloc might have been renamed as rpl_malloc. */
9283#undef malloc
9284
9285/* Thanks to Mike Haertel and Jim Avera for this test.
9286 Here is a matrix of mmap possibilities:
9287 mmap private not fixed
9288 mmap private fixed at somewhere currently unmapped
9289 mmap private fixed at somewhere already mapped
9290 mmap shared not fixed
9291 mmap shared fixed at somewhere currently unmapped
9292 mmap shared fixed at somewhere already mapped
9293 For private mappings, we should verify that changes cannot be read()
9294 back from the file, nor mmap's back from the file at a different
9295 address. (There have been systems where private was not correctly
9296 implemented like the infamous i386 svr4.0, and systems where the
9297 VM page cache was not coherent with the file system buffer cache
9298 like early versions of FreeBSD and possibly contemporary NetBSD.)
9299 For shared mappings, we should conversely verify that changes get
9300 propagated back to all the places they're supposed to be.
9301
9302 Grep wants private fixed already mapped.
9303 The main things grep needs to know about mmap are:
9304 * does it exist and is it safe to write into the mmap'd area
9305 * how to use it (BSD variants) */
9306
9307#include <fcntl.h>
9308#include <sys/mman.h>
9309
9310#if !STDC_HEADERS && !HAVE_STDLIB_H
9311char *malloc ();
9312#endif
9313
9314/* This mess was copied from the GNU getpagesize.h. */
9315#if !HAVE_GETPAGESIZE
9316/* Assume that all systems that can run configure have sys/param.h. */
9317# if !HAVE_SYS_PARAM_H
9318# define HAVE_SYS_PARAM_H 1
9319# endif
9320
9321# ifdef _SC_PAGESIZE
9322# define getpagesize() sysconf(_SC_PAGESIZE)
9323# else /* no _SC_PAGESIZE */
9324# if HAVE_SYS_PARAM_H
9325# include <sys/param.h>
9326# ifdef EXEC_PAGESIZE
9327# define getpagesize() EXEC_PAGESIZE
9328# else /* no EXEC_PAGESIZE */
9329# ifdef NBPG
9330# define getpagesize() NBPG * CLSIZE
9331# ifndef CLSIZE
9332# define CLSIZE 1
9333# endif /* no CLSIZE */
9334# else /* no NBPG */
9335# ifdef NBPC
9336# define getpagesize() NBPC
9337# else /* no NBPC */
9338# ifdef PAGESIZE
9339# define getpagesize() PAGESIZE
9340# endif /* PAGESIZE */
9341# endif /* no NBPC */
9342# endif /* no NBPG */
9343# endif /* no EXEC_PAGESIZE */
9344# else /* no HAVE_SYS_PARAM_H */
9345# define getpagesize() 8192 /* punt totally */
9346# endif /* no HAVE_SYS_PARAM_H */
9347# endif /* no _SC_PAGESIZE */
9348
9349#endif /* no HAVE_GETPAGESIZE */
9350
9351int
9352main ()
9353{
9354 char *data, *data2, *data3;
9355 int i, pagesize;
9356 int fd;
9357
9358 pagesize = getpagesize ();
9359
9360 /* First, make a file with some known garbage in it. */
9361 data = (char *) malloc (pagesize);
9362 if (!data)
9363 exit (1);
9364 for (i = 0; i < pagesize; ++i)
9365 *(data + i) = rand ();
9366 umask (0);
9367 fd = creat ("conftest.mmap", 0600);
9368 if (fd < 0)
9369 exit (1);
9370 if (write (fd, data, pagesize) != pagesize)
9371 exit (1);
9372 close (fd);
9373
9374 /* Next, try to mmap the file at a fixed address which already has
9375 something else allocated at it. If we can, also make sure that
9376 we see the same garbage. */
9377 fd = open ("conftest.mmap", O_RDWR);
9378 if (fd < 0)
9379 exit (1);
9380 data2 = (char *) malloc (2 * pagesize);
9381 if (!data2)
9382 exit (1);
9383 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
9384 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
9385 MAP_PRIVATE | MAP_FIXED, fd, 0L))
9386 exit (1);
9387 for (i = 0; i < pagesize; ++i)
9388 if (*(data + i) != *(data2 + i))
9389 exit (1);
9390
9391 /* Finally, make sure that changes to the mapped area do not
9392 percolate back to the file as seen by read(). (This is a bug on
9393 some variants of i386 svr4.0.) */
9394 for (i = 0; i < pagesize; ++i)
9395 *(data2 + i) = *(data2 + i) + 1;
9396 data3 = (char *) malloc (pagesize);
9397 if (!data3)
9398 exit (1);
9399 if (read (fd, data3, pagesize) != pagesize)
9400 exit (1);
9401 for (i = 0; i < pagesize; ++i)
9402 if (*(data + i) != *(data3 + i))
9403 exit (1);
9404 close (fd);
9405 exit (0);
9406}
9407_ACEOF
9408rm -f conftest$ac_exeext
9409if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9410 (eval $ac_link) 2>&5
9411 ac_status=$?
9412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9413 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9415 (eval $ac_try) 2>&5
9416 ac_status=$?
9417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9418 (exit $ac_status); }; }; then
9419 ac_cv_func_mmap_fixed_mapped=yes
9420else
9421 echo "$as_me: program exited with status $ac_status" >&5
9422echo "$as_me: failed program was:" >&5
9423sed 's/^/| /' conftest.$ac_ext >&5
9424
9425( exit $ac_status )
9426ac_cv_func_mmap_fixed_mapped=no
9427fi
9428rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9429fi
9430fi
9431echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
9432echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
9433if test $ac_cv_func_mmap_fixed_mapped = yes; then
9434
9435cat >>confdefs.h <<\_ACEOF
9436#define HAVE_MMAP 1
9437_ACEOF
9438
9439fi
9440rm -f conftest.mmap
9441
9442if test $use_mmap_for_buffers = yes; then
9443 REL_ALLOC=no
9444fi
9445
9446LIBS="$libsrc_libs $LIBS"
9447
9448
9449echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
9450echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
9451if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
9452 echo $ECHO_N "(cached) $ECHO_C" >&6
9453else
9454 ac_check_lib_save_LIBS=$LIBS
9455LIBS="-ldnet $LIBS"
9456cat >conftest.$ac_ext <<_ACEOF
9457/* confdefs.h. */
9458_ACEOF
9459cat confdefs.h >>conftest.$ac_ext
9460cat >>conftest.$ac_ext <<_ACEOF
9461/* end confdefs.h. */
9462
9463/* Override any gcc2 internal prototype to avoid an error. */
9464#ifdef __cplusplus
9465extern "C"
9466#endif
9467/* We use char because int might match the return type of a gcc2
9468 builtin and then its argument prototype would still apply. */
9469char dnet_ntoa ();
9470int
9471main ()
9472{
9473dnet_ntoa ();
9474 ;
9475 return 0;
9476}
9477_ACEOF
9478rm -f conftest.$ac_objext conftest$ac_exeext
9479if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9480 (eval $ac_link) 2>conftest.er1
9481 ac_status=$?
9482 grep -v '^ *+' conftest.er1 >conftest.err
9483 rm -f conftest.er1
9484 cat conftest.err >&5
9485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9486 (exit $ac_status); } &&
9487 { ac_try='test -z "$ac_c_werror_flag"
9488 || test ! -s conftest.err'
9489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9490 (eval $ac_try) 2>&5
9491 ac_status=$?
9492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9493 (exit $ac_status); }; } &&
9494 { ac_try='test -s conftest$ac_exeext'
9495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9496 (eval $ac_try) 2>&5
9497 ac_status=$?
9498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9499 (exit $ac_status); }; }; then
9500 ac_cv_lib_dnet_dnet_ntoa=yes
9501else
9502 echo "$as_me: failed program was:" >&5
9503sed 's/^/| /' conftest.$ac_ext >&5
9504
9505ac_cv_lib_dnet_dnet_ntoa=no
9506fi
9507rm -f conftest.err conftest.$ac_objext \
9508 conftest$ac_exeext conftest.$ac_ext
9509LIBS=$ac_check_lib_save_LIBS
9510fi
9511echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
9512echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
9513if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
9514 cat >>confdefs.h <<_ACEOF
9515#define HAVE_LIBDNET 1
9516_ACEOF
9517
9518 LIBS="-ldnet $LIBS"
9519
9520fi
9521
9522
9523echo "$as_me:$LINENO: checking for main in -lXbsd" >&5
9524echo $ECHO_N "checking for main in -lXbsd... $ECHO_C" >&6
9525if test "${ac_cv_lib_Xbsd_main+set}" = set; then
9526 echo $ECHO_N "(cached) $ECHO_C" >&6
9527else
9528 ac_check_lib_save_LIBS=$LIBS
9529LIBS="-lXbsd $LIBS"
9530cat >conftest.$ac_ext <<_ACEOF
9531/* confdefs.h. */
9532_ACEOF
9533cat confdefs.h >>conftest.$ac_ext
9534cat >>conftest.$ac_ext <<_ACEOF
9535/* end confdefs.h. */
9536
9537
9538int
9539main ()
9540{
9541main ();
9542 ;
9543 return 0;
9544}
9545_ACEOF
9546rm -f conftest.$ac_objext conftest$ac_exeext
9547if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9548 (eval $ac_link) 2>conftest.er1
9549 ac_status=$?
9550 grep -v '^ *+' conftest.er1 >conftest.err
9551 rm -f conftest.er1
9552 cat conftest.err >&5
9553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9554 (exit $ac_status); } &&
9555 { ac_try='test -z "$ac_c_werror_flag"
9556 || test ! -s conftest.err'
9557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9558 (eval $ac_try) 2>&5
9559 ac_status=$?
9560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9561 (exit $ac_status); }; } &&
9562 { ac_try='test -s conftest$ac_exeext'
9563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9564 (eval $ac_try) 2>&5
9565 ac_status=$?
9566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9567 (exit $ac_status); }; }; then
9568 ac_cv_lib_Xbsd_main=yes
9569else
9570 echo "$as_me: failed program was:" >&5
9571sed 's/^/| /' conftest.$ac_ext >&5
9572
9573ac_cv_lib_Xbsd_main=no
9574fi
9575rm -f conftest.err conftest.$ac_objext \
9576 conftest$ac_exeext conftest.$ac_ext
9577LIBS=$ac_check_lib_save_LIBS
9578fi
9579echo "$as_me:$LINENO: result: $ac_cv_lib_Xbsd_main" >&5
9580echo "${ECHO_T}$ac_cv_lib_Xbsd_main" >&6
9581if test $ac_cv_lib_Xbsd_main = yes; then
9582 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
9583fi
9584
9585
9586
9587echo "$as_me:$LINENO: checking for cma_open in -lpthreads" >&5
9588echo $ECHO_N "checking for cma_open in -lpthreads... $ECHO_C" >&6
9589if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then
9590 echo $ECHO_N "(cached) $ECHO_C" >&6
9591else
9592 ac_check_lib_save_LIBS=$LIBS
9593LIBS="-lpthreads $LIBS"
9594cat >conftest.$ac_ext <<_ACEOF
9595/* confdefs.h. */
9596_ACEOF
9597cat confdefs.h >>conftest.$ac_ext
9598cat >>conftest.$ac_ext <<_ACEOF
9599/* end confdefs.h. */
9600
9601/* Override any gcc2 internal prototype to avoid an error. */
9602#ifdef __cplusplus
9603extern "C"
9604#endif
9605/* We use char because int might match the return type of a gcc2
9606 builtin and then its argument prototype would still apply. */
9607char cma_open ();
9608int
9609main ()
9610{
9611cma_open ();
9612 ;
9613 return 0;
9614}
9615_ACEOF
9616rm -f conftest.$ac_objext conftest$ac_exeext
9617if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9618 (eval $ac_link) 2>conftest.er1
9619 ac_status=$?
9620 grep -v '^ *+' conftest.er1 >conftest.err
9621 rm -f conftest.er1
9622 cat conftest.err >&5
9623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9624 (exit $ac_status); } &&
9625 { ac_try='test -z "$ac_c_werror_flag"
9626 || test ! -s conftest.err'
9627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9628 (eval $ac_try) 2>&5
9629 ac_status=$?
9630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9631 (exit $ac_status); }; } &&
9632 { ac_try='test -s conftest$ac_exeext'
9633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9634 (eval $ac_try) 2>&5
9635 ac_status=$?
9636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9637 (exit $ac_status); }; }; then
9638 ac_cv_lib_pthreads_cma_open=yes
9639else
9640 echo "$as_me: failed program was:" >&5
9641sed 's/^/| /' conftest.$ac_ext >&5
9642
9643ac_cv_lib_pthreads_cma_open=no
9644fi
9645rm -f conftest.err conftest.$ac_objext \
9646 conftest$ac_exeext conftest.$ac_ext
9647LIBS=$ac_check_lib_save_LIBS
9648fi
9649echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_cma_open" >&5
9650echo "${ECHO_T}$ac_cv_lib_pthreads_cma_open" >&6
9651if test $ac_cv_lib_pthreads_cma_open = yes; then
9652 cat >>confdefs.h <<_ACEOF
9653#define HAVE_LIBPTHREADS 1
9654_ACEOF
9655
9656 LIBS="-lpthreads $LIBS"
9657
9658fi
9659
9660
9661echo "$as_me:$LINENO: checking for XFree86 in /usr/X386" >&5
9662echo $ECHO_N "checking for XFree86 in /usr/X386... $ECHO_C" >&6
9663if test -d /usr/X386/include; then
9664 HAVE_XFREE386=yes
9665 : ${C_SWITCH_X_SITE="-I/usr/X386/include"}
9666else
9667 HAVE_XFREE386=no
9668fi
9669echo "$as_me:$LINENO: result: $HAVE_XFREE386" >&5
9670echo "${ECHO_T}$HAVE_XFREE386" >&6
9671
9672
9673case ${host_os} in
9674aix*)
9675 echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
9676echo $ECHO_N "checking for -bbigtoc option... $ECHO_C" >&6
9677if test "${gdb_cv_bigtoc+set}" = set; then
9678 echo $ECHO_N "(cached) $ECHO_C" >&6
9679else
9680
9681 case $GCC in
9682 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
9683 *) gdb_cv_bigtoc=-bbigtoc ;;
9684 esac
9685
9686 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
9687 cat >conftest.$ac_ext <<_ACEOF
9688/* confdefs.h. */
9689_ACEOF
9690cat confdefs.h >>conftest.$ac_ext
9691cat >>conftest.$ac_ext <<_ACEOF
9692/* end confdefs.h. */
9693
9694int
9695main ()
9696{
9697int i;
9698 ;
9699 return 0;
9700}
9701_ACEOF
9702rm -f conftest.$ac_objext conftest$ac_exeext
9703if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9704 (eval $ac_link) 2>conftest.er1
9705 ac_status=$?
9706 grep -v '^ *+' conftest.er1 >conftest.err
9707 rm -f conftest.er1
9708 cat conftest.err >&5
9709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9710 (exit $ac_status); } &&
9711 { ac_try='test -z "$ac_c_werror_flag"
9712 || test ! -s conftest.err'
9713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9714 (eval $ac_try) 2>&5
9715 ac_status=$?
9716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9717 (exit $ac_status); }; } &&
9718 { ac_try='test -s conftest$ac_exeext'
9719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9720 (eval $ac_try) 2>&5
9721 ac_status=$?
9722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9723 (exit $ac_status); }; }; then
9724 :
9725else
9726 echo "$as_me: failed program was:" >&5
9727sed 's/^/| /' conftest.$ac_ext >&5
9728
9729gdb_cv_bigtoc=
9730fi
9731rm -f conftest.err conftest.$ac_objext \
9732 conftest$ac_exeext conftest.$ac_ext
9733
9734fi
9735echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
9736echo "${ECHO_T}$gdb_cv_bigtoc" >&6
9737 ;;
9738esac
9739
9740# Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
9741# used for the tests that follow. We set them back to REAL_CFLAGS and
9742# REAL_CPPFLAGS later on.
9743
9744REAL_CPPFLAGS="$CPPFLAGS"
9745
9746if test "${HAVE_X11}" = "yes"; then
9747 DEFS="$C_SWITCH_X_SITE $DEFS"
9748 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
9749 LIBS="$LIBX $LIBS"
9750 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
9751 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
9752
9753 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
9754 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
9755 # but it's more convenient here to set LD_RUN_PATH
9756 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
9757 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
9758 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
9759 export LD_RUN_PATH
9760 fi
9761
9762 if test "${opsys}" = "gnu-linux"; then
9763 echo "$as_me:$LINENO: checking whether X on GNU/Linux needs -b to link" >&5
9764echo $ECHO_N "checking whether X on GNU/Linux needs -b to link... $ECHO_C" >&6
9765 cat >conftest.$ac_ext <<_ACEOF
9766/* confdefs.h. */
9767_ACEOF
9768cat confdefs.h >>conftest.$ac_ext
9769cat >>conftest.$ac_ext <<_ACEOF
9770/* end confdefs.h. */
9771
9772int
9773main ()
9774{
9775XOpenDisplay ("foo");
9776 ;
9777 return 0;
9778}
9779_ACEOF
9780rm -f conftest.$ac_objext conftest$ac_exeext
9781if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9782 (eval $ac_link) 2>conftest.er1
9783 ac_status=$?
9784 grep -v '^ *+' conftest.er1 >conftest.err
9785 rm -f conftest.er1
9786 cat conftest.err >&5
9787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9788 (exit $ac_status); } &&
9789 { ac_try='test -z "$ac_c_werror_flag"
9790 || test ! -s conftest.err'
9791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9792 (eval $ac_try) 2>&5
9793 ac_status=$?
9794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9795 (exit $ac_status); }; } &&
9796 { ac_try='test -s conftest$ac_exeext'
9797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9798 (eval $ac_try) 2>&5
9799 ac_status=$?
9800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9801 (exit $ac_status); }; }; then
9802 xlinux_first_failure=no
9803else
9804 echo "$as_me: failed program was:" >&5
9805sed 's/^/| /' conftest.$ac_ext >&5
9806
9807xlinux_first_failure=yes
9808fi
9809rm -f conftest.err conftest.$ac_objext \
9810 conftest$ac_exeext conftest.$ac_ext
9811 if test "${xlinux_first_failure}" = "yes"; then
9812 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE"
9813 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE"
9814 OLD_CPPFLAGS="$CPPFLAGS"
9815 OLD_LIBS="$LIBS"
9816 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout"
9817 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout"
9818 CPPFLAGS="$CPPFLAGS -b i486-linuxaout"
9819 LIBS="$LIBS -b i486-linuxaout"
9820 cat >conftest.$ac_ext <<_ACEOF
9821/* confdefs.h. */
9822_ACEOF
9823cat confdefs.h >>conftest.$ac_ext
9824cat >>conftest.$ac_ext <<_ACEOF
9825/* end confdefs.h. */
9826
9827int
9828main ()
9829{
9830XOpenDisplay ("foo");
9831 ;
9832 return 0;
9833}
9834_ACEOF
9835rm -f conftest.$ac_objext conftest$ac_exeext
9836if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9837 (eval $ac_link) 2>conftest.er1
9838 ac_status=$?
9839 grep -v '^ *+' conftest.er1 >conftest.err
9840 rm -f conftest.er1
9841 cat conftest.err >&5
9842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9843 (exit $ac_status); } &&
9844 { ac_try='test -z "$ac_c_werror_flag"
9845 || test ! -s conftest.err'
9846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9847 (eval $ac_try) 2>&5
9848 ac_status=$?
9849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9850 (exit $ac_status); }; } &&
9851 { ac_try='test -s conftest$ac_exeext'
9852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9853 (eval $ac_try) 2>&5
9854 ac_status=$?
9855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9856 (exit $ac_status); }; }; then
9857 xlinux_second_failure=no
9858else
9859 echo "$as_me: failed program was:" >&5
9860sed 's/^/| /' conftest.$ac_ext >&5
9861
9862xlinux_second_failure=yes
9863fi
9864rm -f conftest.err conftest.$ac_objext \
9865 conftest$ac_exeext conftest.$ac_ext
9866 if test "${xlinux_second_failure}" = "yes"; then
9867 # If we get the same failure with -b, there is no use adding -b.
9868 # So take it out. This plays safe.
9869 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
9870 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
9871 CPPFLAGS="$OLD_CPPFLAGS"
9872 LIBS="$OLD_LIBS"
9873 echo "$as_me:$LINENO: result: no" >&5
9874echo "${ECHO_T}no" >&6
9875 else
9876 echo "$as_me:$LINENO: result: yes" >&5
9877echo "${ECHO_T}yes" >&6
9878 fi
9879 else
9880 echo "$as_me:$LINENO: result: no" >&5
9881echo "${ECHO_T}no" >&6
9882 fi
9883 fi
9884
9885 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
9886 # header files included from there.
9887 echo "$as_me:$LINENO: checking for Xkb" >&5
9888echo $ECHO_N "checking for Xkb... $ECHO_C" >&6
9889 cat >conftest.$ac_ext <<_ACEOF
9890/* confdefs.h. */
9891_ACEOF
9892cat confdefs.h >>conftest.$ac_ext
9893cat >>conftest.$ac_ext <<_ACEOF
9894/* end confdefs.h. */
9895#include <X11/Xlib.h>
9896#include <X11/XKBlib.h>
9897int
9898main ()
9899{
9900XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
9901 ;
9902 return 0;
9903}
9904_ACEOF
9905rm -f conftest.$ac_objext conftest$ac_exeext
9906if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9907 (eval $ac_link) 2>conftest.er1
9908 ac_status=$?
9909 grep -v '^ *+' conftest.er1 >conftest.err
9910 rm -f conftest.er1
9911 cat conftest.err >&5
9912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9913 (exit $ac_status); } &&
9914 { ac_try='test -z "$ac_c_werror_flag"
9915 || test ! -s conftest.err'
9916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9917 (eval $ac_try) 2>&5
9918 ac_status=$?
9919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9920 (exit $ac_status); }; } &&
9921 { ac_try='test -s conftest$ac_exeext'
9922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9923 (eval $ac_try) 2>&5
9924 ac_status=$?
9925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9926 (exit $ac_status); }; }; then
9927 emacs_xkb=yes
9928else
9929 echo "$as_me: failed program was:" >&5
9930sed 's/^/| /' conftest.$ac_ext >&5
9931
9932emacs_xkb=no
9933fi
9934rm -f conftest.err conftest.$ac_objext \
9935 conftest$ac_exeext conftest.$ac_ext
9936 echo "$as_me:$LINENO: result: $emacs_xkb" >&5
9937echo "${ECHO_T}$emacs_xkb" >&6
9938 if test $emacs_xkb = yes; then
9939
9940cat >>confdefs.h <<\_ACEOF
9941#define HAVE_XKBGETKEYBOARD 1
9942_ACEOF
9943
9944 fi
9945
9946
9947
9948
9949
9950for ac_func in XrmSetDatabase XScreenResourceString \
9951XScreenNumberOfScreen XSetWMProtocols
9952do
9953as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9954echo "$as_me:$LINENO: checking for $ac_func" >&5
9955echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9956if eval "test \"\${$as_ac_var+set}\" = set"; then
9957 echo $ECHO_N "(cached) $ECHO_C" >&6
9958else
9959 cat >conftest.$ac_ext <<_ACEOF
9960/* confdefs.h. */
9961_ACEOF
9962cat confdefs.h >>conftest.$ac_ext
9963cat >>conftest.$ac_ext <<_ACEOF
9964/* end confdefs.h. */
9965/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9966 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9967#define $ac_func innocuous_$ac_func
9968
9969/* System header to define __stub macros and hopefully few prototypes,
9970 which can conflict with char $ac_func (); below.
9971 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9972 <limits.h> exists even on freestanding compilers. */
9973
9974#ifdef __STDC__
9975# include <limits.h>
9976#else
9977# include <assert.h>
9978#endif
9979
9980#undef $ac_func
9981
9982/* Override any gcc2 internal prototype to avoid an error. */
9983#ifdef __cplusplus
9984extern "C"
9985{
9986#endif
9987/* We use char because int might match the return type of a gcc2
9988 builtin and then its argument prototype would still apply. */
9989char $ac_func ();
9990/* The GNU C library defines this for functions which it implements
9991 to always fail with ENOSYS. Some functions are actually named
9992 something starting with __ and the normal name is an alias. */
9993#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9994choke me
9995#else
9996char (*f) () = $ac_func;
9997#endif
9998#ifdef __cplusplus
9999}
10000#endif
10001
10002int
10003main ()
10004{
10005return f != $ac_func;
10006 ;
10007 return 0;
10008}
10009_ACEOF
10010rm -f conftest.$ac_objext conftest$ac_exeext
10011if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10012 (eval $ac_link) 2>conftest.er1
10013 ac_status=$?
10014 grep -v '^ *+' conftest.er1 >conftest.err
10015 rm -f conftest.er1
10016 cat conftest.err >&5
10017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10018 (exit $ac_status); } &&
10019 { ac_try='test -z "$ac_c_werror_flag"
10020 || test ! -s conftest.err'
10021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10022 (eval $ac_try) 2>&5
10023 ac_status=$?
10024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10025 (exit $ac_status); }; } &&
10026 { ac_try='test -s conftest$ac_exeext'
10027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10028 (eval $ac_try) 2>&5
10029 ac_status=$?
10030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10031 (exit $ac_status); }; }; then
10032 eval "$as_ac_var=yes"
10033else
10034 echo "$as_me: failed program was:" >&5
10035sed 's/^/| /' conftest.$ac_ext >&5
10036
10037eval "$as_ac_var=no"
10038fi
10039rm -f conftest.err conftest.$ac_objext \
10040 conftest$ac_exeext conftest.$ac_ext
10041fi
10042echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10043echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10044if test `eval echo '${'$as_ac_var'}'` = yes; then
10045 cat >>confdefs.h <<_ACEOF
10046#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10047_ACEOF
10048
10049fi
10050done
10051
10052fi
10053
10054if test "${window_system}" = "x11"; then
10055 echo "$as_me:$LINENO: checking X11 version 6" >&5
10056echo $ECHO_N "checking X11 version 6... $ECHO_C" >&6
10057 if test "${emacs_cv_x11_version_6+set}" = set; then
10058 echo $ECHO_N "(cached) $ECHO_C" >&6
10059else
10060 cat >conftest.$ac_ext <<_ACEOF
10061/* confdefs.h. */
10062_ACEOF
10063cat confdefs.h >>conftest.$ac_ext
10064cat >>conftest.$ac_ext <<_ACEOF
10065/* end confdefs.h. */
10066#include <X11/Xlib.h>
10067int
10068main ()
10069{
10070#if XlibSpecificationRelease < 6
10071fail;
10072#endif
10073
10074 ;
10075 return 0;
10076}
10077_ACEOF
10078rm -f conftest.$ac_objext conftest$ac_exeext
10079if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10080 (eval $ac_link) 2>conftest.er1
10081 ac_status=$?
10082 grep -v '^ *+' conftest.er1 >conftest.err
10083 rm -f conftest.er1
10084 cat conftest.err >&5
10085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10086 (exit $ac_status); } &&
10087 { ac_try='test -z "$ac_c_werror_flag"
10088 || test ! -s conftest.err'
10089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10090 (eval $ac_try) 2>&5
10091 ac_status=$?
10092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10093 (exit $ac_status); }; } &&
10094 { ac_try='test -s conftest$ac_exeext'
10095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10096 (eval $ac_try) 2>&5
10097 ac_status=$?
10098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10099 (exit $ac_status); }; }; then
10100 emacs_cv_x11_version_6=yes
10101else
10102 echo "$as_me: failed program was:" >&5
10103sed 's/^/| /' conftest.$ac_ext >&5
10104
10105emacs_cv_x11_version_6=no
10106fi
10107rm -f conftest.err conftest.$ac_objext \
10108 conftest$ac_exeext conftest.$ac_ext
10109fi
10110
10111 if test $emacs_cv_x11_version_6 = yes; then
10112 echo "$as_me:$LINENO: result: 6 or newer" >&5
10113echo "${ECHO_T}6 or newer" >&6
10114
10115cat >>confdefs.h <<\_ACEOF
10116#define HAVE_X11R6 1
10117_ACEOF
10118
10119 else
10120 echo "$as_me:$LINENO: result: before 6" >&5
10121echo "${ECHO_T}before 6" >&6
10122 fi
10123fi
10124
10125if test "${window_system}" = "x11"; then
10126 echo "$as_me:$LINENO: checking X11 version 5" >&5
10127echo $ECHO_N "checking X11 version 5... $ECHO_C" >&6
10128 if test "${emacs_cv_x11_version_5+set}" = set; then
10129 echo $ECHO_N "(cached) $ECHO_C" >&6
10130else
10131 cat >conftest.$ac_ext <<_ACEOF
10132/* confdefs.h. */
10133_ACEOF
10134cat confdefs.h >>conftest.$ac_ext
10135cat >>conftest.$ac_ext <<_ACEOF
10136/* end confdefs.h. */
10137#include <X11/Xlib.h>
10138int
10139main ()
10140{
10141#if XlibSpecificationRelease < 5
10142fail;
10143#endif
10144
10145 ;
10146 return 0;
10147}
10148_ACEOF
10149rm -f conftest.$ac_objext conftest$ac_exeext
10150if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10151 (eval $ac_link) 2>conftest.er1
10152 ac_status=$?
10153 grep -v '^ *+' conftest.er1 >conftest.err
10154 rm -f conftest.er1
10155 cat conftest.err >&5
10156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10157 (exit $ac_status); } &&
10158 { ac_try='test -z "$ac_c_werror_flag"
10159 || test ! -s conftest.err'
10160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10161 (eval $ac_try) 2>&5
10162 ac_status=$?
10163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10164 (exit $ac_status); }; } &&
10165 { ac_try='test -s conftest$ac_exeext'
10166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10167 (eval $ac_try) 2>&5
10168 ac_status=$?
10169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10170 (exit $ac_status); }; }; then
10171 emacs_cv_x11_version_5=yes
10172else
10173 echo "$as_me: failed program was:" >&5
10174sed 's/^/| /' conftest.$ac_ext >&5
10175
10176emacs_cv_x11_version_5=no
10177fi
10178rm -f conftest.err conftest.$ac_objext \
10179 conftest$ac_exeext conftest.$ac_ext
10180fi
10181
10182 if test $emacs_cv_x11_version_5 = yes; then
10183 echo "$as_me:$LINENO: result: 5 or newer" >&5
10184echo "${ECHO_T}5 or newer" >&6
10185 HAVE_X11R5=yes
10186
10187cat >>confdefs.h <<\_ACEOF
10188#define HAVE_X11R5 1
10189_ACEOF
10190
10191 else
10192 HAVE_X11R5=no
10193 echo "$as_me:$LINENO: result: before 5" >&5
10194echo "${ECHO_T}before 5" >&6
10195 fi
10196fi
10197
10198
10199
10200HAVE_GTK=no
10201if test "${with_gtk}" = "yes" || test "$USE_X_TOOLKIT" = "gtk"; then
10202 if test "$USE_X_TOOLKIT" != "none" && test "$USE_X_TOOLKIT" != "maybe"; then
10203 { { echo "$as_me:$LINENO: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&5
10204echo "$as_me: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&2;}
10205 { (exit 1); exit 1; }; };
10206 fi
10207 GLIB_REQUIRED=2.4
10208 GTK_REQUIRED=2.4
10209 GTK_MODULES="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
10210
10211 if test "X${with_pkg_config_prog}" != X; then
10212 PKG_CONFIG="${with_pkg_config_prog}"
10213 fi
10214
10215 succeeded=no
10216
10217 if test -z "$PKG_CONFIG"; then
10218 # Extract the first word of "pkg-config", so it can be a program name with args.
10219set dummy pkg-config; ac_word=$2
10220echo "$as_me:$LINENO: checking for $ac_word" >&5
10221echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10222if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
10223 echo $ECHO_N "(cached) $ECHO_C" >&6
10224else
10225 case $PKG_CONFIG in
10226 [\\/]* | ?:[\\/]*)
10227 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10228 ;;
10229 *)
10230 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10231for as_dir in $PATH
10232do
10233 IFS=$as_save_IFS
10234 test -z "$as_dir" && as_dir=.
10235 for ac_exec_ext in '' $ac_executable_extensions; do
10236 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10237 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10238 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10239 break 2
10240 fi
10241done
10242done
10243
10244 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10245 ;;
10246esac
10247fi
10248PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10249
10250if test -n "$PKG_CONFIG"; then
10251 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
10252echo "${ECHO_T}$PKG_CONFIG" >&6
10253else
10254 echo "$as_me:$LINENO: result: no" >&5
10255echo "${ECHO_T}no" >&6
10256fi
10257
10258 fi
10259
10260 if test "$PKG_CONFIG" = "no" ; then
10261 echo "*** The pkg-config script could not be found. Make sure it is"
10262 echo "*** in your path, or give the full path to pkg-config with"
10263 echo "*** the PKG_CONFIG environment variable or --with-pkg-config-prog."
10264 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
10265 else
10266 PKG_CONFIG_MIN_VERSION=0.9.0
10267 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10268 echo "$as_me:$LINENO: checking for $GTK_MODULES" >&5
10269echo $ECHO_N "checking for $GTK_MODULES... $ECHO_C" >&6
10270
10271 if $PKG_CONFIG --exists "$GTK_MODULES" ; then
10272 echo "$as_me:$LINENO: result: yes" >&5
10273echo "${ECHO_T}yes" >&6
10274 succeeded=yes
10275
10276 echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
10277echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6
10278 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"`
10279 echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
10280echo "${ECHO_T}$GTK_CFLAGS" >&6
10281
10282 echo "$as_me:$LINENO: checking GTK_LIBS" >&5
10283echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6
10284 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"`
10285 echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
10286echo "${ECHO_T}$GTK_LIBS" >&6
10287 else
10288 GTK_CFLAGS=""
10289 GTK_LIBS=""
10290 ## If we have a custom action on failure, don't print errors, but
10291 ## do set a variable so people can do so.
10292 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
10293 echo $GTK_PKG_ERRORS
10294 fi
10295
10296
10297
10298 else
10299 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10300 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10301 fi
10302 fi
10303
10304 if test $succeeded = yes; then
10305 :
10306 else
10307 { { 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
10308echo "$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;}
10309 { (exit 1); exit 1; }; }
10310 fi
10311
10312
10313
10314 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS"
10315 CFLAGS="$CFLAGS $GTK_CFLAGS"
10316 LIBS="$GTK_LIBS $LIBS"
10317 HAVE_GTK=yes
10318
10319cat >>confdefs.h <<\_ACEOF
10320#define HAVE_GTK 1
10321_ACEOF
10322
10323 USE_X_TOOLKIT=none
10324
10325 if test "$with_toolkit_scroll_bars" != no; then
10326 with_toolkit_scroll_bars=yes
10327 fi
10328
10329 HAVE_GTK_MULTIDISPLAY=no
10330
10331for ac_func in gdk_display_open
10332do
10333as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10334echo "$as_me:$LINENO: checking for $ac_func" >&5
10335echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10336if eval "test \"\${$as_ac_var+set}\" = set"; then
10337 echo $ECHO_N "(cached) $ECHO_C" >&6
10338else
10339 cat >conftest.$ac_ext <<_ACEOF
10340/* confdefs.h. */
10341_ACEOF
10342cat confdefs.h >>conftest.$ac_ext
10343cat >>conftest.$ac_ext <<_ACEOF
10344/* end confdefs.h. */
10345/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10346 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10347#define $ac_func innocuous_$ac_func
10348
10349/* System header to define __stub macros and hopefully few prototypes,
10350 which can conflict with char $ac_func (); below.
10351 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10352 <limits.h> exists even on freestanding compilers. */
10353
10354#ifdef __STDC__
10355# include <limits.h>
10356#else
10357# include <assert.h>
10358#endif
10359
10360#undef $ac_func
10361
10362/* Override any gcc2 internal prototype to avoid an error. */
10363#ifdef __cplusplus
10364extern "C"
10365{
10366#endif
10367/* We use char because int might match the return type of a gcc2
10368 builtin and then its argument prototype would still apply. */
10369char $ac_func ();
10370/* The GNU C library defines this for functions which it implements
10371 to always fail with ENOSYS. Some functions are actually named
10372 something starting with __ and the normal name is an alias. */
10373#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10374choke me
10375#else
10376char (*f) () = $ac_func;
10377#endif
10378#ifdef __cplusplus
10379}
10380#endif
10381
10382int
10383main ()
10384{
10385return f != $ac_func;
10386 ;
10387 return 0;
10388}
10389_ACEOF
10390rm -f conftest.$ac_objext conftest$ac_exeext
10391if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10392 (eval $ac_link) 2>conftest.er1
10393 ac_status=$?
10394 grep -v '^ *+' conftest.er1 >conftest.err
10395 rm -f conftest.er1
10396 cat conftest.err >&5
10397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10398 (exit $ac_status); } &&
10399 { ac_try='test -z "$ac_c_werror_flag"
10400 || test ! -s conftest.err'
10401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10402 (eval $ac_try) 2>&5
10403 ac_status=$?
10404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10405 (exit $ac_status); }; } &&
10406 { ac_try='test -s conftest$ac_exeext'
10407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10408 (eval $ac_try) 2>&5
10409 ac_status=$?
10410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10411 (exit $ac_status); }; }; then
10412 eval "$as_ac_var=yes"
10413else
10414 echo "$as_me: failed program was:" >&5
10415sed 's/^/| /' conftest.$ac_ext >&5
10416
10417eval "$as_ac_var=no"
10418fi
10419rm -f conftest.err conftest.$ac_objext \
10420 conftest$ac_exeext conftest.$ac_ext
10421fi
10422echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10423echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10424if test `eval echo '${'$as_ac_var'}'` = yes; then
10425 cat >>confdefs.h <<_ACEOF
10426#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10427_ACEOF
10428 HAVE_GTK_MULTIDISPLAY=yes
10429fi
10430done
10431
10432 if test "${HAVE_GTK_MULTIDISPLAY}" = "yes"; then
10433
10434cat >>confdefs.h <<\_ACEOF
10435#define HAVE_GTK_MULTIDISPLAY 1
10436_ACEOF
10437
10438 fi
10439 HAVE_GTK_FILE_SELECTION=no
10440
10441for ac_func in gtk_file_selection_new
10442do
10443as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10444echo "$as_me:$LINENO: checking for $ac_func" >&5
10445echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10446if eval "test \"\${$as_ac_var+set}\" = set"; then
10447 echo $ECHO_N "(cached) $ECHO_C" >&6
10448else
10449 cat >conftest.$ac_ext <<_ACEOF
10450/* confdefs.h. */
10451_ACEOF
10452cat confdefs.h >>conftest.$ac_ext
10453cat >>conftest.$ac_ext <<_ACEOF
10454/* end confdefs.h. */
10455/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10456 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10457#define $ac_func innocuous_$ac_func
10458
10459/* System header to define __stub macros and hopefully few prototypes,
10460 which can conflict with char $ac_func (); below.
10461 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10462 <limits.h> exists even on freestanding compilers. */
10463
10464#ifdef __STDC__
10465# include <limits.h>
10466#else
10467# include <assert.h>
10468#endif
10469
10470#undef $ac_func
10471
10472/* Override any gcc2 internal prototype to avoid an error. */
10473#ifdef __cplusplus
10474extern "C"
10475{
10476#endif
10477/* We use char because int might match the return type of a gcc2
10478 builtin and then its argument prototype would still apply. */
10479char $ac_func ();
10480/* The GNU C library defines this for functions which it implements
10481 to always fail with ENOSYS. Some functions are actually named
10482 something starting with __ and the normal name is an alias. */
10483#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10484choke me
10485#else
10486char (*f) () = $ac_func;
10487#endif
10488#ifdef __cplusplus
10489}
10490#endif
10491
10492int
10493main ()
10494{
10495return f != $ac_func;
10496 ;
10497 return 0;
10498}
10499_ACEOF
10500rm -f conftest.$ac_objext conftest$ac_exeext
10501if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10502 (eval $ac_link) 2>conftest.er1
10503 ac_status=$?
10504 grep -v '^ *+' conftest.er1 >conftest.err
10505 rm -f conftest.er1
10506 cat conftest.err >&5
10507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10508 (exit $ac_status); } &&
10509 { ac_try='test -z "$ac_c_werror_flag"
10510 || test ! -s conftest.err'
10511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10512 (eval $ac_try) 2>&5
10513 ac_status=$?
10514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10515 (exit $ac_status); }; } &&
10516 { ac_try='test -s conftest$ac_exeext'
10517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10518 (eval $ac_try) 2>&5
10519 ac_status=$?
10520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10521 (exit $ac_status); }; }; then
10522 eval "$as_ac_var=yes"
10523else
10524 echo "$as_me: failed program was:" >&5
10525sed 's/^/| /' conftest.$ac_ext >&5
10526
10527eval "$as_ac_var=no"
10528fi
10529rm -f conftest.err conftest.$ac_objext \
10530 conftest$ac_exeext conftest.$ac_ext
10531fi
10532echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10533echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10534if test `eval echo '${'$as_ac_var'}'` = yes; then
10535 cat >>confdefs.h <<_ACEOF
10536#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10537_ACEOF
10538 HAVE_GTK_FILE_SELECTION=yes
10539fi
10540done
10541
10542
10543 HAVE_GTK_FILE_CHOOSER=no
10544
10545for ac_func in gtk_file_chooser_dialog_new
10546do
10547as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10548echo "$as_me:$LINENO: checking for $ac_func" >&5
10549echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10550if eval "test \"\${$as_ac_var+set}\" = set"; then
10551 echo $ECHO_N "(cached) $ECHO_C" >&6
10552else
10553 cat >conftest.$ac_ext <<_ACEOF
10554/* confdefs.h. */
10555_ACEOF
10556cat confdefs.h >>conftest.$ac_ext
10557cat >>conftest.$ac_ext <<_ACEOF
10558/* end confdefs.h. */
10559/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10560 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10561#define $ac_func innocuous_$ac_func
10562
10563/* System header to define __stub macros and hopefully few prototypes,
10564 which can conflict with char $ac_func (); below.
10565 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10566 <limits.h> exists even on freestanding compilers. */
10567
10568#ifdef __STDC__
10569# include <limits.h>
10570#else
10571# include <assert.h>
10572#endif
10573
10574#undef $ac_func
10575
10576/* Override any gcc2 internal prototype to avoid an error. */
10577#ifdef __cplusplus
10578extern "C"
10579{
10580#endif
10581/* We use char because int might match the return type of a gcc2
10582 builtin and then its argument prototype would still apply. */
10583char $ac_func ();
10584/* The GNU C library defines this for functions which it implements
10585 to always fail with ENOSYS. Some functions are actually named
10586 something starting with __ and the normal name is an alias. */
10587#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10588choke me
10589#else
10590char (*f) () = $ac_func;
10591#endif
10592#ifdef __cplusplus
10593}
10594#endif
10595
10596int
10597main ()
10598{
10599return f != $ac_func;
10600 ;
10601 return 0;
10602}
10603_ACEOF
10604rm -f conftest.$ac_objext conftest$ac_exeext
10605if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10606 (eval $ac_link) 2>conftest.er1
10607 ac_status=$?
10608 grep -v '^ *+' conftest.er1 >conftest.err
10609 rm -f conftest.er1
10610 cat conftest.err >&5
10611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10612 (exit $ac_status); } &&
10613 { ac_try='test -z "$ac_c_werror_flag"
10614 || test ! -s conftest.err'
10615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10616 (eval $ac_try) 2>&5
10617 ac_status=$?
10618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10619 (exit $ac_status); }; } &&
10620 { ac_try='test -s conftest$ac_exeext'
10621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10622 (eval $ac_try) 2>&5
10623 ac_status=$?
10624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10625 (exit $ac_status); }; }; then
10626 eval "$as_ac_var=yes"
10627else
10628 echo "$as_me: failed program was:" >&5
10629sed 's/^/| /' conftest.$ac_ext >&5
10630
10631eval "$as_ac_var=no"
10632fi
10633rm -f conftest.err conftest.$ac_objext \
10634 conftest$ac_exeext conftest.$ac_ext
10635fi
10636echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10637echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10638if test `eval echo '${'$as_ac_var'}'` = yes; then
10639 cat >>confdefs.h <<_ACEOF
10640#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10641_ACEOF
10642 HAVE_GTK_FILE_CHOOSER=yes
10643fi
10644done
10645
10646
10647 if test "$HAVE_GTK_FILE_SELECTION" = yes \
10648 && test "$HAVE_GTK_FILE_CHOOSER" = yes; then
10649
10650cat >>confdefs.h <<\_ACEOF
10651#define HAVE_GTK_FILE_BOTH 1
10652_ACEOF
10653
10654 fi
10655
10656 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
10657 HAVE_GTK_AND_PTHREAD=no
10658
10659for ac_header in pthread.h
10660do
10661as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10662if eval "test \"\${$as_ac_Header+set}\" = set"; then
10663 echo "$as_me:$LINENO: checking for $ac_header" >&5
10664echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10665if eval "test \"\${$as_ac_Header+set}\" = set"; then
10666 echo $ECHO_N "(cached) $ECHO_C" >&6
10667fi
10668echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10669echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10670else
10671 # Is the header compilable?
10672echo "$as_me:$LINENO: checking $ac_header usability" >&5
10673echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10674cat >conftest.$ac_ext <<_ACEOF
10675/* confdefs.h. */
10676_ACEOF
10677cat confdefs.h >>conftest.$ac_ext
10678cat >>conftest.$ac_ext <<_ACEOF
10679/* end confdefs.h. */
10680$ac_includes_default
10681#include <$ac_header>
10682_ACEOF
10683rm -f conftest.$ac_objext
10684if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10685 (eval $ac_compile) 2>conftest.er1
10686 ac_status=$?
10687 grep -v '^ *+' conftest.er1 >conftest.err
10688 rm -f conftest.er1
10689 cat conftest.err >&5
10690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10691 (exit $ac_status); } &&
10692 { ac_try='test -z "$ac_c_werror_flag"
10693 || test ! -s conftest.err'
10694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10695 (eval $ac_try) 2>&5
10696 ac_status=$?
10697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10698 (exit $ac_status); }; } &&
10699 { ac_try='test -s conftest.$ac_objext'
10700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10701 (eval $ac_try) 2>&5
10702 ac_status=$?
10703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10704 (exit $ac_status); }; }; then
10705 ac_header_compiler=yes
10706else
10707 echo "$as_me: failed program was:" >&5
10708sed 's/^/| /' conftest.$ac_ext >&5
10709
10710ac_header_compiler=no
10711fi
10712rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10713echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10714echo "${ECHO_T}$ac_header_compiler" >&6
10715
10716# Is the header present?
10717echo "$as_me:$LINENO: checking $ac_header presence" >&5
10718echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10719cat >conftest.$ac_ext <<_ACEOF
10720/* confdefs.h. */
10721_ACEOF
10722cat confdefs.h >>conftest.$ac_ext
10723cat >>conftest.$ac_ext <<_ACEOF
10724/* end confdefs.h. */
10725#include <$ac_header>
10726_ACEOF
10727if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10728 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10729 ac_status=$?
10730 grep -v '^ *+' conftest.er1 >conftest.err
10731 rm -f conftest.er1
10732 cat conftest.err >&5
10733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10734 (exit $ac_status); } >/dev/null; then
10735 if test -s conftest.err; then
10736 ac_cpp_err=$ac_c_preproc_warn_flag
10737 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10738 else
10739 ac_cpp_err=
10740 fi
10741else
10742 ac_cpp_err=yes
10743fi
10744if test -z "$ac_cpp_err"; then
10745 ac_header_preproc=yes
10746else
10747 echo "$as_me: failed program was:" >&5
10748sed 's/^/| /' conftest.$ac_ext >&5
10749
10750 ac_header_preproc=no
10751fi
10752rm -f conftest.err conftest.$ac_ext
10753echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10754echo "${ECHO_T}$ac_header_preproc" >&6
10755
10756# So? What about this header?
10757case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10758 yes:no: )
10759 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10760echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10761 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10762echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10763 ac_header_preproc=yes
10764 ;;
10765 no:yes:* )
10766 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10767echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10768 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10769echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10770 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10771echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10772 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10773echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10774 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10775echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10776 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10777echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10778 (
10779 cat <<\_ASBOX
10780## ------------------------------------------ ##
10781## Report this to the AC_PACKAGE_NAME lists. ##
10782## ------------------------------------------ ##
10783_ASBOX
10784 ) |
10785 sed "s/^/$as_me: WARNING: /" >&2
10786 ;;
10787esac
10788echo "$as_me:$LINENO: checking for $ac_header" >&5
10789echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10790if eval "test \"\${$as_ac_Header+set}\" = set"; then
10791 echo $ECHO_N "(cached) $ECHO_C" >&6
10792else
10793 eval "$as_ac_Header=\$ac_header_preproc"
10794fi
10795echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10796echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10797
10798fi
10799if test `eval echo '${'$as_ac_Header'}'` = yes; then
10800 cat >>confdefs.h <<_ACEOF
10801#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10802_ACEOF
10803
10804fi
10805
10806done
10807
10808 if test "$ac_cv_header_pthread_h"; then
10809 echo "$as_me:$LINENO: checking for pthread_self in -lpthread" >&5
10810echo $ECHO_N "checking for pthread_self in -lpthread... $ECHO_C" >&6
10811if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then
10812 echo $ECHO_N "(cached) $ECHO_C" >&6
10813else
10814 ac_check_lib_save_LIBS=$LIBS
10815LIBS="-lpthread $LIBS"
10816cat >conftest.$ac_ext <<_ACEOF
10817/* confdefs.h. */
10818_ACEOF
10819cat confdefs.h >>conftest.$ac_ext
10820cat >>conftest.$ac_ext <<_ACEOF
10821/* end confdefs.h. */
10822
10823/* Override any gcc2 internal prototype to avoid an error. */
10824#ifdef __cplusplus
10825extern "C"
10826#endif
10827/* We use char because int might match the return type of a gcc2
10828 builtin and then its argument prototype would still apply. */
10829char pthread_self ();
10830int
10831main ()
10832{
10833pthread_self ();
10834 ;
10835 return 0;
10836}
10837_ACEOF
10838rm -f conftest.$ac_objext conftest$ac_exeext
10839if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10840 (eval $ac_link) 2>conftest.er1
10841 ac_status=$?
10842 grep -v '^ *+' conftest.er1 >conftest.err
10843 rm -f conftest.er1
10844 cat conftest.err >&5
10845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10846 (exit $ac_status); } &&
10847 { ac_try='test -z "$ac_c_werror_flag"
10848 || test ! -s conftest.err'
10849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10850 (eval $ac_try) 2>&5
10851 ac_status=$?
10852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10853 (exit $ac_status); }; } &&
10854 { ac_try='test -s conftest$ac_exeext'
10855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10856 (eval $ac_try) 2>&5
10857 ac_status=$?
10858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10859 (exit $ac_status); }; }; then
10860 ac_cv_lib_pthread_pthread_self=yes
10861else
10862 echo "$as_me: failed program was:" >&5
10863sed 's/^/| /' conftest.$ac_ext >&5
10864
10865ac_cv_lib_pthread_pthread_self=no
10866fi
10867rm -f conftest.err conftest.$ac_objext \
10868 conftest$ac_exeext conftest.$ac_ext
10869LIBS=$ac_check_lib_save_LIBS
10870fi
10871echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_self" >&5
10872echo "${ECHO_T}$ac_cv_lib_pthread_pthread_self" >&6
10873if test $ac_cv_lib_pthread_pthread_self = yes; then
10874 HAVE_GTK_AND_PTHREAD=yes
10875fi
10876
10877 fi
10878 if test "$HAVE_GTK_AND_PTHREAD" = yes; then
10879 GTK_LIBS="$GTK_LIBS -lpthread"
10880
10881cat >>confdefs.h <<\_ACEOF
10882#define HAVE_GTK_AND_PTHREAD 1
10883_ACEOF
10884
10885 fi
10886 fi
10887fi
10888
10889if test x"${USE_X_TOOLKIT}" = xmaybe; then
10890 if test x"${HAVE_X11R5}" = xyes; then
10891 echo "$as_me:$LINENO: checking X11 version 5 with Xaw" >&5
10892echo $ECHO_N "checking X11 version 5 with Xaw... $ECHO_C" >&6
10893 if test "${emacs_cv_x11_version_5_with_xaw+set}" = set; then
10894 echo $ECHO_N "(cached) $ECHO_C" >&6
10895else
10896 cat >conftest.$ac_ext <<_ACEOF
10897/* confdefs.h. */
10898_ACEOF
10899cat confdefs.h >>conftest.$ac_ext
10900cat >>conftest.$ac_ext <<_ACEOF
10901/* end confdefs.h. */
10902
10903#include <X11/Intrinsic.h>
10904#include <X11/Xaw/Simple.h>
10905int
10906main ()
10907{
10908
10909 ;
10910 return 0;
10911}
10912_ACEOF
10913rm -f conftest.$ac_objext conftest$ac_exeext
10914if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10915 (eval $ac_link) 2>conftest.er1
10916 ac_status=$?
10917 grep -v '^ *+' conftest.er1 >conftest.err
10918 rm -f conftest.er1
10919 cat conftest.err >&5
10920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10921 (exit $ac_status); } &&
10922 { ac_try='test -z "$ac_c_werror_flag"
10923 || test ! -s conftest.err'
10924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10925 (eval $ac_try) 2>&5
10926 ac_status=$?
10927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10928 (exit $ac_status); }; } &&
10929 { ac_try='test -s conftest$ac_exeext'
10930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10931 (eval $ac_try) 2>&5
10932 ac_status=$?
10933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10934 (exit $ac_status); }; }; then
10935 emacs_cv_x11_version_5_with_xaw=yes
10936else
10937 echo "$as_me: failed program was:" >&5
10938sed 's/^/| /' conftest.$ac_ext >&5
10939
10940emacs_cv_x11_version_5_with_xaw=no
10941fi
10942rm -f conftest.err conftest.$ac_objext \
10943 conftest$ac_exeext conftest.$ac_ext
10944fi
10945
10946 if test $emacs_cv_x11_version_5_with_xaw = yes; then
10947 echo "$as_me:$LINENO: result: 5 or newer, with Xaw; use toolkit by default" >&5
10948echo "${ECHO_T}5 or newer, with Xaw; use toolkit by default" >&6
10949 USE_X_TOOLKIT=LUCID
10950 else
10951 echo "$as_me:$LINENO: result: before 5 or no Xaw; do not use toolkit by default" >&5
10952echo "${ECHO_T}before 5 or no Xaw; do not use toolkit by default" >&6
10953 USE_X_TOOLKIT=none
10954 fi
10955 else
10956 USE_X_TOOLKIT=none
10957 fi
10958fi
10959
10960X_TOOLKIT_TYPE=$USE_X_TOOLKIT
10961
10962if test "${USE_X_TOOLKIT}" != "none"; then
10963 echo "$as_me:$LINENO: checking X11 toolkit version" >&5
10964echo $ECHO_N "checking X11 toolkit version... $ECHO_C" >&6
10965 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then
10966 echo $ECHO_N "(cached) $ECHO_C" >&6
10967else
10968 cat >conftest.$ac_ext <<_ACEOF
10969/* confdefs.h. */
10970_ACEOF
10971cat confdefs.h >>conftest.$ac_ext
10972cat >>conftest.$ac_ext <<_ACEOF
10973/* end confdefs.h. */
10974#include <X11/Intrinsic.h>
10975int
10976main ()
10977{
10978#if XtSpecificationRelease < 6
10979fail;
10980#endif
10981
10982 ;
10983 return 0;
10984}
10985_ACEOF
10986rm -f conftest.$ac_objext conftest$ac_exeext
10987if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10988 (eval $ac_link) 2>conftest.er1
10989 ac_status=$?
10990 grep -v '^ *+' conftest.er1 >conftest.err
10991 rm -f conftest.er1
10992 cat conftest.err >&5
10993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10994 (exit $ac_status); } &&
10995 { ac_try='test -z "$ac_c_werror_flag"
10996 || test ! -s conftest.err'
10997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10998 (eval $ac_try) 2>&5
10999 ac_status=$?
11000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11001 (exit $ac_status); }; } &&
11002 { ac_try='test -s conftest$ac_exeext'
11003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11004 (eval $ac_try) 2>&5
11005 ac_status=$?
11006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11007 (exit $ac_status); }; }; then
11008 emacs_cv_x11_toolkit_version_6=yes
11009else
11010 echo "$as_me: failed program was:" >&5
11011sed 's/^/| /' conftest.$ac_ext >&5
11012
11013emacs_cv_x11_toolkit_version_6=no
11014fi
11015rm -f conftest.err conftest.$ac_objext \
11016 conftest$ac_exeext conftest.$ac_ext
11017fi
11018
11019 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
11020 if test $emacs_cv_x11_toolkit_version_6 = yes; then
11021 echo "$as_me:$LINENO: result: 6 or newer" >&5
11022echo "${ECHO_T}6 or newer" >&6
11023
11024cat >>confdefs.h <<\_ACEOF
11025#define HAVE_X11XTR6 1
11026_ACEOF
11027
11028 else
11029 echo "$as_me:$LINENO: result: before 6" >&5
11030echo "${ECHO_T}before 6" >&6
11031 fi
11032
11033 OLDLIBS="$LIBS"
11034 if test x$HAVE_X11XTR6 = xyes; then
11035 LIBS="-lXt -lSM -lICE $LIBS"
11036 else
11037 LIBS="-lXt $LIBS"
11038 fi
11039
11040echo "$as_me:$LINENO: checking for XmuConvertStandardSelection in -lXmu" >&5
11041echo $ECHO_N "checking for XmuConvertStandardSelection in -lXmu... $ECHO_C" >&6
11042if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then
11043 echo $ECHO_N "(cached) $ECHO_C" >&6
11044else
11045 ac_check_lib_save_LIBS=$LIBS
11046LIBS="-lXmu $LIBS"
11047cat >conftest.$ac_ext <<_ACEOF
11048/* confdefs.h. */
11049_ACEOF
11050cat confdefs.h >>conftest.$ac_ext
11051cat >>conftest.$ac_ext <<_ACEOF
11052/* end confdefs.h. */
11053
11054/* Override any gcc2 internal prototype to avoid an error. */
11055#ifdef __cplusplus
11056extern "C"
11057#endif
11058/* We use char because int might match the return type of a gcc2
11059 builtin and then its argument prototype would still apply. */
11060char XmuConvertStandardSelection ();
11061int
11062main ()
11063{
11064XmuConvertStandardSelection ();
11065 ;
11066 return 0;
11067}
11068_ACEOF
11069rm -f conftest.$ac_objext conftest$ac_exeext
11070if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11071 (eval $ac_link) 2>conftest.er1
11072 ac_status=$?
11073 grep -v '^ *+' conftest.er1 >conftest.err
11074 rm -f conftest.er1
11075 cat conftest.err >&5
11076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11077 (exit $ac_status); } &&
11078 { ac_try='test -z "$ac_c_werror_flag"
11079 || test ! -s conftest.err'
11080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11081 (eval $ac_try) 2>&5
11082 ac_status=$?
11083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11084 (exit $ac_status); }; } &&
11085 { ac_try='test -s conftest$ac_exeext'
11086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11087 (eval $ac_try) 2>&5
11088 ac_status=$?
11089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11090 (exit $ac_status); }; }; then
11091 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
11092else
11093 echo "$as_me: failed program was:" >&5
11094sed 's/^/| /' conftest.$ac_ext >&5
11095
11096ac_cv_lib_Xmu_XmuConvertStandardSelection=no
11097fi
11098rm -f conftest.err conftest.$ac_objext \
11099 conftest$ac_exeext conftest.$ac_ext
11100LIBS=$ac_check_lib_save_LIBS
11101fi
11102echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
11103echo "${ECHO_T}$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6
11104if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then
11105 cat >>confdefs.h <<_ACEOF
11106#define HAVE_LIBXMU 1
11107_ACEOF
11108
11109 LIBS="-lXmu $LIBS"
11110
11111fi
11112
11113 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
11114fi
11115
11116# On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
11117if test "${HAVE_X11}" = "yes"; then
11118 if test "${USE_X_TOOLKIT}" != "none"; then
11119
11120echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
11121echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
11122if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
11123 echo $ECHO_N "(cached) $ECHO_C" >&6
11124else
11125 ac_check_lib_save_LIBS=$LIBS
11126LIBS="-lXext $LIBS"
11127cat >conftest.$ac_ext <<_ACEOF
11128/* confdefs.h. */
11129_ACEOF
11130cat confdefs.h >>conftest.$ac_ext
11131cat >>conftest.$ac_ext <<_ACEOF
11132/* end confdefs.h. */
11133
11134/* Override any gcc2 internal prototype to avoid an error. */
11135#ifdef __cplusplus
11136extern "C"
11137#endif
11138/* We use char because int might match the return type of a gcc2
11139 builtin and then its argument prototype would still apply. */
11140char XShapeQueryExtension ();
11141int
11142main ()
11143{
11144XShapeQueryExtension ();
11145 ;
11146 return 0;
11147}
11148_ACEOF
11149rm -f conftest.$ac_objext conftest$ac_exeext
11150if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11151 (eval $ac_link) 2>conftest.er1
11152 ac_status=$?
11153 grep -v '^ *+' conftest.er1 >conftest.err
11154 rm -f conftest.er1
11155 cat conftest.err >&5
11156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11157 (exit $ac_status); } &&
11158 { ac_try='test -z "$ac_c_werror_flag"
11159 || test ! -s conftest.err'
11160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11161 (eval $ac_try) 2>&5
11162 ac_status=$?
11163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11164 (exit $ac_status); }; } &&
11165 { ac_try='test -s conftest$ac_exeext'
11166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11167 (eval $ac_try) 2>&5
11168 ac_status=$?
11169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11170 (exit $ac_status); }; }; then
11171 ac_cv_lib_Xext_XShapeQueryExtension=yes
11172else
11173 echo "$as_me: failed program was:" >&5
11174sed 's/^/| /' conftest.$ac_ext >&5
11175
11176ac_cv_lib_Xext_XShapeQueryExtension=no
11177fi
11178rm -f conftest.err conftest.$ac_objext \
11179 conftest$ac_exeext conftest.$ac_ext
11180LIBS=$ac_check_lib_save_LIBS
11181fi
11182echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
11183echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
11184if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
11185 cat >>confdefs.h <<_ACEOF
11186#define HAVE_LIBXEXT 1
11187_ACEOF
11188
11189 LIBS="-lXext $LIBS"
11190
11191fi
11192
11193 fi
11194fi
11195
11196if test "${USE_X_TOOLKIT}" = "MOTIF"; then
11197 echo "$as_me:$LINENO: checking for Motif version 2.1" >&5
11198echo $ECHO_N "checking for Motif version 2.1... $ECHO_C" >&6
11199if test "${emacs_cv_motif_version_2_1+set}" = set; then
11200 echo $ECHO_N "(cached) $ECHO_C" >&6
11201else
11202 cat >conftest.$ac_ext <<_ACEOF
11203/* confdefs.h. */
11204_ACEOF
11205cat confdefs.h >>conftest.$ac_ext
11206cat >>conftest.$ac_ext <<_ACEOF
11207/* end confdefs.h. */
11208#include <Xm/Xm.h>
11209int
11210main ()
11211{
11212#if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
11213int x = 5;
11214#else
11215Motif version prior to 2.1.
11216#endif
11217 ;
11218 return 0;
11219}
11220_ACEOF
11221rm -f conftest.$ac_objext
11222if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11223 (eval $ac_compile) 2>conftest.er1
11224 ac_status=$?
11225 grep -v '^ *+' conftest.er1 >conftest.err
11226 rm -f conftest.er1
11227 cat conftest.err >&5
11228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11229 (exit $ac_status); } &&
11230 { ac_try='test -z "$ac_c_werror_flag"
11231 || test ! -s conftest.err'
11232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11233 (eval $ac_try) 2>&5
11234 ac_status=$?
11235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11236 (exit $ac_status); }; } &&
11237 { ac_try='test -s conftest.$ac_objext'
11238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11239 (eval $ac_try) 2>&5
11240 ac_status=$?
11241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11242 (exit $ac_status); }; }; then
11243 emacs_cv_motif_version_2_1=yes
11244else
11245 echo "$as_me: failed program was:" >&5
11246sed 's/^/| /' conftest.$ac_ext >&5
11247
11248emacs_cv_motif_version_2_1=no
11249fi
11250rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11251fi
11252echo "$as_me:$LINENO: result: $emacs_cv_motif_version_2_1" >&5
11253echo "${ECHO_T}$emacs_cv_motif_version_2_1" >&6
11254 HAVE_MOTIF_2_1=$emacs_cv_motif_version_2_1
11255 if test $emacs_cv_motif_version_2_1 = yes; then
11256 HAVE_LIBXP=no
11257
11258cat >>confdefs.h <<\_ACEOF
11259#define HAVE_MOTIF_2_1 1
11260_ACEOF
11261
11262 echo "$as_me:$LINENO: checking for XpCreateContext in -lXp" >&5
11263echo $ECHO_N "checking for XpCreateContext in -lXp... $ECHO_C" >&6
11264if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then
11265 echo $ECHO_N "(cached) $ECHO_C" >&6
11266else
11267 ac_check_lib_save_LIBS=$LIBS
11268LIBS="-lXp $LIBS"
11269cat >conftest.$ac_ext <<_ACEOF
11270/* confdefs.h. */
11271_ACEOF
11272cat confdefs.h >>conftest.$ac_ext
11273cat >>conftest.$ac_ext <<_ACEOF
11274/* end confdefs.h. */
11275
11276/* Override any gcc2 internal prototype to avoid an error. */
11277#ifdef __cplusplus
11278extern "C"
11279#endif
11280/* We use char because int might match the return type of a gcc2
11281 builtin and then its argument prototype would still apply. */
11282char XpCreateContext ();
11283int
11284main ()
11285{
11286XpCreateContext ();
11287 ;
11288 return 0;
11289}
11290_ACEOF
11291rm -f conftest.$ac_objext conftest$ac_exeext
11292if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11293 (eval $ac_link) 2>conftest.er1
11294 ac_status=$?
11295 grep -v '^ *+' conftest.er1 >conftest.err
11296 rm -f conftest.er1
11297 cat conftest.err >&5
11298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11299 (exit $ac_status); } &&
11300 { ac_try='test -z "$ac_c_werror_flag"
11301 || test ! -s conftest.err'
11302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11303 (eval $ac_try) 2>&5
11304 ac_status=$?
11305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11306 (exit $ac_status); }; } &&
11307 { ac_try='test -s conftest$ac_exeext'
11308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11309 (eval $ac_try) 2>&5
11310 ac_status=$?
11311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11312 (exit $ac_status); }; }; then
11313 ac_cv_lib_Xp_XpCreateContext=yes
11314else
11315 echo "$as_me: failed program was:" >&5
11316sed 's/^/| /' conftest.$ac_ext >&5
11317
11318ac_cv_lib_Xp_XpCreateContext=no
11319fi
11320rm -f conftest.err conftest.$ac_objext \
11321 conftest$ac_exeext conftest.$ac_ext
11322LIBS=$ac_check_lib_save_LIBS
11323fi
11324echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpCreateContext" >&5
11325echo "${ECHO_T}$ac_cv_lib_Xp_XpCreateContext" >&6
11326if test $ac_cv_lib_Xp_XpCreateContext = yes; then
11327 HAVE_LIBXP=yes
11328fi
11329
11330 if test ${HAVE_LIBXP} = yes; then
11331
11332cat >>confdefs.h <<\_ACEOF
11333#define HAVE_LIBXP 1
11334_ACEOF
11335
11336 fi
11337 else
11338 echo "$as_me:$LINENO: checking for LessTif where some systems put it" >&5
11339echo $ECHO_N "checking for LessTif where some systems put it... $ECHO_C" >&6
11340if test "${emacs_cv_lesstif+set}" = set; then
11341 echo $ECHO_N "(cached) $ECHO_C" >&6
11342else
11343 # We put this in CFLAGS temporarily to precede other -I options
11344 # that might be in CFLAGS temporarily.
11345 # We put this in CPPFLAGS where it precedes the other -I options.
11346 OLD_CPPFLAGS=$CPPFLAGS
11347 OLD_CFLAGS=$CFLAGS
11348 CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
11349 CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
11350 cat >conftest.$ac_ext <<_ACEOF
11351/* confdefs.h. */
11352_ACEOF
11353cat confdefs.h >>conftest.$ac_ext
11354cat >>conftest.$ac_ext <<_ACEOF
11355/* end confdefs.h. */
11356#include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
11357int
11358main ()
11359{
11360int x = 5;
11361 ;
11362 return 0;
11363}
11364_ACEOF
11365rm -f conftest.$ac_objext
11366if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11367 (eval $ac_compile) 2>conftest.er1
11368 ac_status=$?
11369 grep -v '^ *+' conftest.er1 >conftest.err
11370 rm -f conftest.er1
11371 cat conftest.err >&5
11372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11373 (exit $ac_status); } &&
11374 { ac_try='test -z "$ac_c_werror_flag"
11375 || test ! -s conftest.err'
11376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11377 (eval $ac_try) 2>&5
11378 ac_status=$?
11379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11380 (exit $ac_status); }; } &&
11381 { ac_try='test -s conftest.$ac_objext'
11382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11383 (eval $ac_try) 2>&5
11384 ac_status=$?
11385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11386 (exit $ac_status); }; }; then
11387 emacs_cv_lesstif=yes
11388else
11389 echo "$as_me: failed program was:" >&5
11390sed 's/^/| /' conftest.$ac_ext >&5
11391
11392emacs_cv_lesstif=no
11393fi
11394rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11395fi
11396echo "$as_me:$LINENO: result: $emacs_cv_lesstif" >&5
11397echo "${ECHO_T}$emacs_cv_lesstif" >&6
11398 if test $emacs_cv_lesstif = yes; then
11399 # Make sure this -I option remains in CPPFLAGS after it is set
11400 # back to REAL_CPPFLAGS.
11401 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
11402 # have those other -I options anyway. Ultimately, having this
11403 # directory ultimately in CPPFLAGS will be enough.
11404 REAL_CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
11405 LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
11406 else
11407 CFLAGS=$OLD_CFLAGS
11408 CPPFLAGS=$OLD_CPPFLAGS
11409 fi
11410 fi
11411fi
11412
11413### Is -lXaw3d available?
11414HAVE_XAW3D=no
11415if test "${HAVE_X11}" = "yes"; then
11416 if test "${USE_X_TOOLKIT}" != "none" && test "${with_toolkit_scroll_bars}" != "no"; then
11417 echo "$as_me:$LINENO: checking for X11/Xaw3d/Scrollbar.h" >&5
11418echo $ECHO_N "checking for X11/Xaw3d/Scrollbar.h... $ECHO_C" >&6
11419if test "${ac_cv_header_X11_Xaw3d_Scrollbar_h+set}" = set; then
11420 echo $ECHO_N "(cached) $ECHO_C" >&6
11421else
11422 cat >conftest.$ac_ext <<_ACEOF
11423/* confdefs.h. */
11424_ACEOF
11425cat confdefs.h >>conftest.$ac_ext
11426cat >>conftest.$ac_ext <<_ACEOF
11427/* end confdefs.h. */
11428#include <X11/Xaw3d/Scrollbar.h>
11429_ACEOF
11430if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11431 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11432 ac_status=$?
11433 grep -v '^ *+' conftest.er1 >conftest.err
11434 rm -f conftest.er1
11435 cat conftest.err >&5
11436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11437 (exit $ac_status); } >/dev/null; then
11438 if test -s conftest.err; then
11439 ac_cpp_err=$ac_c_preproc_warn_flag
11440 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11441 else
11442 ac_cpp_err=
11443 fi
11444else
11445 ac_cpp_err=yes
11446fi
11447if test -z "$ac_cpp_err"; then
11448 ac_cv_header_X11_Xaw3d_Scrollbar_h=yes
11449else
11450 echo "$as_me: failed program was:" >&5
11451sed 's/^/| /' conftest.$ac_ext >&5
11452
11453 ac_cv_header_X11_Xaw3d_Scrollbar_h=no
11454fi
11455rm -f conftest.err conftest.$ac_ext
11456fi
11457echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xaw3d_Scrollbar_h" >&5
11458echo "${ECHO_T}$ac_cv_header_X11_Xaw3d_Scrollbar_h" >&6
11459if test $ac_cv_header_X11_Xaw3d_Scrollbar_h = yes; then
11460 echo "$as_me:$LINENO: checking for XawScrollbarSetThumb in -lXaw3d" >&5
11461echo $ECHO_N "checking for XawScrollbarSetThumb in -lXaw3d... $ECHO_C" >&6
11462if test "${ac_cv_lib_Xaw3d_XawScrollbarSetThumb+set}" = set; then
11463 echo $ECHO_N "(cached) $ECHO_C" >&6
11464else
11465 ac_check_lib_save_LIBS=$LIBS
11466LIBS="-lXaw3d $LIBS"
11467cat >conftest.$ac_ext <<_ACEOF
11468/* confdefs.h. */
11469_ACEOF
11470cat confdefs.h >>conftest.$ac_ext
11471cat >>conftest.$ac_ext <<_ACEOF
11472/* end confdefs.h. */
11473
11474/* Override any gcc2 internal prototype to avoid an error. */
11475#ifdef __cplusplus
11476extern "C"
11477#endif
11478/* We use char because int might match the return type of a gcc2
11479 builtin and then its argument prototype would still apply. */
11480char XawScrollbarSetThumb ();
11481int
11482main ()
11483{
11484XawScrollbarSetThumb ();
11485 ;
11486 return 0;
11487}
11488_ACEOF
11489rm -f conftest.$ac_objext conftest$ac_exeext
11490if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11491 (eval $ac_link) 2>conftest.er1
11492 ac_status=$?
11493 grep -v '^ *+' conftest.er1 >conftest.err
11494 rm -f conftest.er1
11495 cat conftest.err >&5
11496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11497 (exit $ac_status); } &&
11498 { ac_try='test -z "$ac_c_werror_flag"
11499 || test ! -s conftest.err'
11500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11501 (eval $ac_try) 2>&5
11502 ac_status=$?
11503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11504 (exit $ac_status); }; } &&
11505 { ac_try='test -s conftest$ac_exeext'
11506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11507 (eval $ac_try) 2>&5
11508 ac_status=$?
11509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11510 (exit $ac_status); }; }; then
11511 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=yes
11512else
11513 echo "$as_me: failed program was:" >&5
11514sed 's/^/| /' conftest.$ac_ext >&5
11515
11516ac_cv_lib_Xaw3d_XawScrollbarSetThumb=no
11517fi
11518rm -f conftest.err conftest.$ac_objext \
11519 conftest$ac_exeext conftest.$ac_ext
11520LIBS=$ac_check_lib_save_LIBS
11521fi
11522echo "$as_me:$LINENO: result: $ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&5
11523echo "${ECHO_T}$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&6
11524if test $ac_cv_lib_Xaw3d_XawScrollbarSetThumb = yes; then
11525 HAVE_XAW3D=yes
11526fi
11527
11528fi
11529
11530
11531 if test "${HAVE_XAW3D}" = "yes"; then
11532
11533cat >>confdefs.h <<\_ACEOF
11534#define HAVE_XAW3D 1
11535_ACEOF
11536
11537 fi
11538 fi
11539fi
11540
11541
11542
11543USE_TOOLKIT_SCROLL_BARS=no
11544if test "${with_toolkit_scroll_bars}" != "no"; then
11545 if test "${USE_X_TOOLKIT}" != "none"; then
11546 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
11547 cat >>confdefs.h <<\_ACEOF
11548#define USE_TOOLKIT_SCROLL_BARS 1
11549_ACEOF
11550
11551 HAVE_XAW3D=no
11552 USE_TOOLKIT_SCROLL_BARS=yes
11553 elif test "${HAVE_XAW3D}" = "yes"; then
11554 cat >>confdefs.h <<\_ACEOF
11555#define USE_TOOLKIT_SCROLL_BARS 1
11556_ACEOF
11557
11558 USE_TOOLKIT_SCROLL_BARS=yes
11559 fi
11560 elif test "${HAVE_GTK}" = "yes"; then
11561 cat >>confdefs.h <<\_ACEOF
11562#define USE_TOOLKIT_SCROLL_BARS 1
11563_ACEOF
11564
11565 USE_TOOLKIT_SCROLL_BARS=yes
11566 elif test "${HAVE_CARBON}" = "yes"; then
11567 cat >>confdefs.h <<\_ACEOF
11568#define USE_TOOLKIT_SCROLL_BARS 1
11569_ACEOF
11570
11571 USE_TOOLKIT_SCROLL_BARS=yes
11572 fi
11573fi
11574
11575cat >conftest.$ac_ext <<_ACEOF
11576/* confdefs.h. */
11577_ACEOF
11578cat confdefs.h >>conftest.$ac_ext
11579cat >>conftest.$ac_ext <<_ACEOF
11580/* end confdefs.h. */
11581
11582 #include <X11/Xlib.h>
11583 #include <X11/Xresource.h>
11584int
11585main ()
11586{
11587XIMProc callback;
11588 ;
11589 return 0;
11590}
11591_ACEOF
11592rm -f conftest.$ac_objext
11593if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11594 (eval $ac_compile) 2>conftest.er1
11595 ac_status=$?
11596 grep -v '^ *+' conftest.er1 >conftest.err
11597 rm -f conftest.er1
11598 cat conftest.err >&5
11599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11600 (exit $ac_status); } &&
11601 { ac_try='test -z "$ac_c_werror_flag"
11602 || test ! -s conftest.err'
11603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11604 (eval $ac_try) 2>&5
11605 ac_status=$?
11606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11607 (exit $ac_status); }; } &&
11608 { ac_try='test -s conftest.$ac_objext'
11609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11610 (eval $ac_try) 2>&5
11611 ac_status=$?
11612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11613 (exit $ac_status); }; }; then
11614 HAVE_XIM=yes
11615
11616cat >>confdefs.h <<\_ACEOF
11617#define HAVE_XIM 1
11618_ACEOF
11619
11620else
11621 echo "$as_me: failed program was:" >&5
11622sed 's/^/| /' conftest.$ac_ext >&5
11623
11624HAVE_XIM=no
11625fi
11626rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11627
11628
11629if test "${with_xim}" != "no"; then
11630
11631cat >>confdefs.h <<\_ACEOF
11632#define USE_XIM 1
11633_ACEOF
11634
11635fi
11636
11637
11638if test "${HAVE_XIM}" != "no"; then
11639 late_CFLAGS=$CFLAGS
11640 if test "$GCC" = yes; then
11641 CFLAGS="$CFLAGS --pedantic-errors"
11642 fi
11643 cat >conftest.$ac_ext <<_ACEOF
11644/* confdefs.h. */
11645_ACEOF
11646cat confdefs.h >>conftest.$ac_ext
11647cat >>conftest.$ac_ext <<_ACEOF
11648/* end confdefs.h. */
11649
11650#include <X11/Xlib.h>
11651#include <X11/Xresource.h>
11652int
11653main ()
11654{
11655Display *display;
11656XrmDatabase db;
11657char *res_name;
11658char *res_class;
11659XIMProc callback;
11660XPointer *client_data;
11661#ifndef __GNUC__
11662/* If we're not using GCC, it's probably not XFree86, and this is
11663 probably right, but we can't use something like --pedantic-errors. */
11664extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
11665 char*, XIMProc, XPointer*);
11666#endif
11667(void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
11668 client_data);
11669 ;
11670 return 0;
11671}
11672_ACEOF
11673rm -f conftest.$ac_objext
11674if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11675 (eval $ac_compile) 2>conftest.er1
11676 ac_status=$?
11677 grep -v '^ *+' conftest.er1 >conftest.err
11678 rm -f conftest.er1
11679 cat conftest.err >&5
11680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11681 (exit $ac_status); } &&
11682 { ac_try='test -z "$ac_c_werror_flag"
11683 || test ! -s conftest.err'
11684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11685 (eval $ac_try) 2>&5
11686 ac_status=$?
11687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11688 (exit $ac_status); }; } &&
11689 { ac_try='test -s conftest.$ac_objext'
11690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11691 (eval $ac_try) 2>&5
11692 ac_status=$?
11693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11694 (exit $ac_status); }; }; then
11695 emacs_cv_arg6_star=yes
11696else
11697 echo "$as_me: failed program was:" >&5
11698sed 's/^/| /' conftest.$ac_ext >&5
11699
11700fi
11701rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11702
11703 if test "$emacs_cv_arg6_star" = yes; then
11704 cat >>confdefs.h <<\_ACEOF
11705#define XRegisterIMInstantiateCallback_arg6 XPointer*
11706_ACEOF
11707
11708 else
11709 cat >>confdefs.h <<\_ACEOF
11710#define XRegisterIMInstantiateCallback_arg6 XPointer
11711_ACEOF
11712
11713 fi
11714 CFLAGS=$late_CFLAGS
11715fi
11716
11717### Use -lXpm if available, unless `--with-xpm=no'.
11718HAVE_XPM=no
11719if test "${HAVE_X11}" = "yes"; then
11720 if test "${with_xpm}" != "no"; then
11721 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
11722 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
11723echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
11724if test "${ac_cv_header_X11_xpm_h+set}" = set; then
11725 echo $ECHO_N "(cached) $ECHO_C" >&6
11726fi
11727echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
11728echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
11729else
11730 # Is the header compilable?
11731echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
11732echo $ECHO_N "checking X11/xpm.h usability... $ECHO_C" >&6
11733cat >conftest.$ac_ext <<_ACEOF
11734/* confdefs.h. */
11735_ACEOF
11736cat confdefs.h >>conftest.$ac_ext
11737cat >>conftest.$ac_ext <<_ACEOF
11738/* end confdefs.h. */
11739$ac_includes_default
11740#include <X11/xpm.h>
11741_ACEOF
11742rm -f conftest.$ac_objext
11743if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11744 (eval $ac_compile) 2>conftest.er1
11745 ac_status=$?
11746 grep -v '^ *+' conftest.er1 >conftest.err
11747 rm -f conftest.er1
11748 cat conftest.err >&5
11749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11750 (exit $ac_status); } &&
11751 { ac_try='test -z "$ac_c_werror_flag"
11752 || test ! -s conftest.err'
11753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11754 (eval $ac_try) 2>&5
11755 ac_status=$?
11756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11757 (exit $ac_status); }; } &&
11758 { ac_try='test -s conftest.$ac_objext'
11759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11760 (eval $ac_try) 2>&5
11761 ac_status=$?
11762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11763 (exit $ac_status); }; }; then
11764 ac_header_compiler=yes
11765else
11766 echo "$as_me: failed program was:" >&5
11767sed 's/^/| /' conftest.$ac_ext >&5
11768
11769ac_header_compiler=no
11770fi
11771rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11772echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11773echo "${ECHO_T}$ac_header_compiler" >&6
11774
11775# Is the header present?
11776echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
11777echo $ECHO_N "checking X11/xpm.h presence... $ECHO_C" >&6
11778cat >conftest.$ac_ext <<_ACEOF
11779/* confdefs.h. */
11780_ACEOF
11781cat confdefs.h >>conftest.$ac_ext
11782cat >>conftest.$ac_ext <<_ACEOF
11783/* end confdefs.h. */
11784#include <X11/xpm.h>
11785_ACEOF
11786if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11787 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11788 ac_status=$?
11789 grep -v '^ *+' conftest.er1 >conftest.err
11790 rm -f conftest.er1
11791 cat conftest.err >&5
11792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11793 (exit $ac_status); } >/dev/null; then
11794 if test -s conftest.err; then
11795 ac_cpp_err=$ac_c_preproc_warn_flag
11796 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11797 else
11798 ac_cpp_err=
11799 fi
11800else
11801 ac_cpp_err=yes
11802fi
11803if test -z "$ac_cpp_err"; then
11804 ac_header_preproc=yes
11805else
11806 echo "$as_me: failed program was:" >&5
11807sed 's/^/| /' conftest.$ac_ext >&5
11808
11809 ac_header_preproc=no
11810fi
11811rm -f conftest.err conftest.$ac_ext
11812echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11813echo "${ECHO_T}$ac_header_preproc" >&6
11814
11815# So? What about this header?
11816case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11817 yes:no: )
11818 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
11819echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11820 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the compiler's result" >&5
11821echo "$as_me: WARNING: X11/xpm.h: proceeding with the compiler's result" >&2;}
11822 ac_header_preproc=yes
11823 ;;
11824 no:yes:* )
11825 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
11826echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
11827 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5
11828echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;}
11829 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: see the Autoconf documentation" >&5
11830echo "$as_me: WARNING: X11/xpm.h: see the Autoconf documentation" >&2;}
11831 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&5
11832echo "$as_me: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
11833 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
11834echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
11835 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&5
11836echo "$as_me: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&2;}
11837 (
11838 cat <<\_ASBOX
11839## ------------------------------------------ ##
11840## Report this to the AC_PACKAGE_NAME lists. ##
11841## ------------------------------------------ ##
11842_ASBOX
11843 ) |
11844 sed "s/^/$as_me: WARNING: /" >&2
11845 ;;
11846esac
11847echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
11848echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
11849if test "${ac_cv_header_X11_xpm_h+set}" = set; then
11850 echo $ECHO_N "(cached) $ECHO_C" >&6
11851else
11852 ac_cv_header_X11_xpm_h=$ac_header_preproc
11853fi
11854echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
11855echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
11856
11857fi
11858if test $ac_cv_header_X11_xpm_h = yes; then
11859 echo "$as_me:$LINENO: checking for XpmReadFileToPixmap in -lXpm" >&5
11860echo $ECHO_N "checking for XpmReadFileToPixmap in -lXpm... $ECHO_C" >&6
11861if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
11862 echo $ECHO_N "(cached) $ECHO_C" >&6
11863else
11864 ac_check_lib_save_LIBS=$LIBS
11865LIBS="-lXpm -lX11 $LIBS"
11866cat >conftest.$ac_ext <<_ACEOF
11867/* confdefs.h. */
11868_ACEOF
11869cat confdefs.h >>conftest.$ac_ext
11870cat >>conftest.$ac_ext <<_ACEOF
11871/* end confdefs.h. */
11872
11873/* Override any gcc2 internal prototype to avoid an error. */
11874#ifdef __cplusplus
11875extern "C"
11876#endif
11877/* We use char because int might match the return type of a gcc2
11878 builtin and then its argument prototype would still apply. */
11879char XpmReadFileToPixmap ();
11880int
11881main ()
11882{
11883XpmReadFileToPixmap ();
11884 ;
11885 return 0;
11886}
11887_ACEOF
11888rm -f conftest.$ac_objext conftest$ac_exeext
11889if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11890 (eval $ac_link) 2>conftest.er1
11891 ac_status=$?
11892 grep -v '^ *+' conftest.er1 >conftest.err
11893 rm -f conftest.er1
11894 cat conftest.err >&5
11895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11896 (exit $ac_status); } &&
11897 { ac_try='test -z "$ac_c_werror_flag"
11898 || test ! -s conftest.err'
11899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11900 (eval $ac_try) 2>&5
11901 ac_status=$?
11902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11903 (exit $ac_status); }; } &&
11904 { ac_try='test -s conftest$ac_exeext'
11905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11906 (eval $ac_try) 2>&5
11907 ac_status=$?
11908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11909 (exit $ac_status); }; }; then
11910 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
11911else
11912 echo "$as_me: failed program was:" >&5
11913sed 's/^/| /' conftest.$ac_ext >&5
11914
11915ac_cv_lib_Xpm_XpmReadFileToPixmap=no
11916fi
11917rm -f conftest.err conftest.$ac_objext \
11918 conftest$ac_exeext conftest.$ac_ext
11919LIBS=$ac_check_lib_save_LIBS
11920fi
11921echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
11922echo "${ECHO_T}$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6
11923if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
11924 HAVE_XPM=yes
11925fi
11926
11927fi
11928
11929
11930 if test "${HAVE_XPM}" = "yes"; then
11931 echo "$as_me:$LINENO: checking for XpmReturnAllocPixels preprocessor define" >&5
11932echo $ECHO_N "checking for XpmReturnAllocPixels preprocessor define... $ECHO_C" >&6
11933 cat >conftest.$ac_ext <<_ACEOF
11934/* confdefs.h. */
11935_ACEOF
11936cat confdefs.h >>conftest.$ac_ext
11937cat >>conftest.$ac_ext <<_ACEOF
11938/* end confdefs.h. */
11939#include "X11/xpm.h"
11940#ifndef XpmReturnAllocPixels
11941no_return_alloc_pixels
11942#endif
11943
11944_ACEOF
11945if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11946 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then
11947 HAVE_XPM=no
11948else
11949 HAVE_XPM=yes
11950fi
11951rm -f conftest*
11952
11953
11954 if test "${HAVE_XPM}" = "yes"; then
11955 echo "$as_me:$LINENO: result: yes" >&5
11956echo "${ECHO_T}yes" >&6
11957 else
11958 echo "$as_me:$LINENO: result: no" >&5
11959echo "${ECHO_T}no" >&6
11960 fi
11961 fi
11962 fi
11963
11964 if test "${HAVE_XPM}" = "yes"; then
11965
11966cat >>confdefs.h <<\_ACEOF
11967#define HAVE_XPM 1
11968_ACEOF
11969
11970 fi
11971fi
11972
11973### Use -ljpeg if available, unless `--with-jpeg=no'.
11974HAVE_JPEG=no
11975if test "${HAVE_X11}" = "yes"; then
11976 if test "${with_jpeg}" != "no"; then
11977 if test "${ac_cv_header_jerror_h+set}" = set; then
11978 echo "$as_me:$LINENO: checking for jerror.h" >&5
11979echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6
11980if test "${ac_cv_header_jerror_h+set}" = set; then
11981 echo $ECHO_N "(cached) $ECHO_C" >&6
11982fi
11983echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
11984echo "${ECHO_T}$ac_cv_header_jerror_h" >&6
11985else
11986 # Is the header compilable?
11987echo "$as_me:$LINENO: checking jerror.h usability" >&5
11988echo $ECHO_N "checking jerror.h usability... $ECHO_C" >&6
11989cat >conftest.$ac_ext <<_ACEOF
11990/* confdefs.h. */
11991_ACEOF
11992cat confdefs.h >>conftest.$ac_ext
11993cat >>conftest.$ac_ext <<_ACEOF
11994/* end confdefs.h. */
11995$ac_includes_default
11996#include <jerror.h>
11997_ACEOF
11998rm -f conftest.$ac_objext
11999if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12000 (eval $ac_compile) 2>conftest.er1
12001 ac_status=$?
12002 grep -v '^ *+' conftest.er1 >conftest.err
12003 rm -f conftest.er1
12004 cat conftest.err >&5
12005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12006 (exit $ac_status); } &&
12007 { ac_try='test -z "$ac_c_werror_flag"
12008 || test ! -s conftest.err'
12009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12010 (eval $ac_try) 2>&5
12011 ac_status=$?
12012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12013 (exit $ac_status); }; } &&
12014 { ac_try='test -s conftest.$ac_objext'
12015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12016 (eval $ac_try) 2>&5
12017 ac_status=$?
12018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12019 (exit $ac_status); }; }; then
12020 ac_header_compiler=yes
12021else
12022 echo "$as_me: failed program was:" >&5
12023sed 's/^/| /' conftest.$ac_ext >&5
12024
12025ac_header_compiler=no
12026fi
12027rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12028echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12029echo "${ECHO_T}$ac_header_compiler" >&6
12030
12031# Is the header present?
12032echo "$as_me:$LINENO: checking jerror.h presence" >&5
12033echo $ECHO_N "checking jerror.h presence... $ECHO_C" >&6
12034cat >conftest.$ac_ext <<_ACEOF
12035/* confdefs.h. */
12036_ACEOF
12037cat confdefs.h >>conftest.$ac_ext
12038cat >>conftest.$ac_ext <<_ACEOF
12039/* end confdefs.h. */
12040#include <jerror.h>
12041_ACEOF
12042if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12043 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12044 ac_status=$?
12045 grep -v '^ *+' conftest.er1 >conftest.err
12046 rm -f conftest.er1
12047 cat conftest.err >&5
12048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12049 (exit $ac_status); } >/dev/null; then
12050 if test -s conftest.err; then
12051 ac_cpp_err=$ac_c_preproc_warn_flag
12052 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12053 else
12054 ac_cpp_err=
12055 fi
12056else
12057 ac_cpp_err=yes
12058fi
12059if test -z "$ac_cpp_err"; then
12060 ac_header_preproc=yes
12061else
12062 echo "$as_me: failed program was:" >&5
12063sed 's/^/| /' conftest.$ac_ext >&5
12064
12065 ac_header_preproc=no
12066fi
12067rm -f conftest.err conftest.$ac_ext
12068echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12069echo "${ECHO_T}$ac_header_preproc" >&6
12070
12071# So? What about this header?
12072case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12073 yes:no: )
12074 { echo "$as_me:$LINENO: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&5
12075echo "$as_me: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12076 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the compiler's result" >&5
12077echo "$as_me: WARNING: jerror.h: proceeding with the compiler's result" >&2;}
12078 ac_header_preproc=yes
12079 ;;
12080 no:yes:* )
12081 { echo "$as_me:$LINENO: WARNING: jerror.h: present but cannot be compiled" >&5
12082echo "$as_me: WARNING: jerror.h: present but cannot be compiled" >&2;}
12083 { echo "$as_me:$LINENO: WARNING: jerror.h: check for missing prerequisite headers?" >&5
12084echo "$as_me: WARNING: jerror.h: check for missing prerequisite headers?" >&2;}
12085 { echo "$as_me:$LINENO: WARNING: jerror.h: see the Autoconf documentation" >&5
12086echo "$as_me: WARNING: jerror.h: see the Autoconf documentation" >&2;}
12087 { echo "$as_me:$LINENO: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&5
12088echo "$as_me: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&2;}
12089 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result" >&5
12090echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result" >&2;}
12091 { echo "$as_me:$LINENO: WARNING: jerror.h: in the future, the compiler will take precedence" >&5
12092echo "$as_me: WARNING: jerror.h: in the future, the compiler will take precedence" >&2;}
12093 (
12094 cat <<\_ASBOX
12095## ------------------------------------------ ##
12096## Report this to the AC_PACKAGE_NAME lists. ##
12097## ------------------------------------------ ##
12098_ASBOX
12099 ) |
12100 sed "s/^/$as_me: WARNING: /" >&2
12101 ;;
12102esac
12103echo "$as_me:$LINENO: checking for jerror.h" >&5
12104echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6
12105if test "${ac_cv_header_jerror_h+set}" = set; then
12106 echo $ECHO_N "(cached) $ECHO_C" >&6
12107else
12108 ac_cv_header_jerror_h=$ac_header_preproc
12109fi
12110echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
12111echo "${ECHO_T}$ac_cv_header_jerror_h" >&6
12112
12113fi
12114if test $ac_cv_header_jerror_h = yes; then
12115 echo "$as_me:$LINENO: checking for jpeg_destroy_compress in -ljpeg" >&5
12116echo $ECHO_N "checking for jpeg_destroy_compress in -ljpeg... $ECHO_C" >&6
12117if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
12118 echo $ECHO_N "(cached) $ECHO_C" >&6
12119else
12120 ac_check_lib_save_LIBS=$LIBS
12121LIBS="-ljpeg $LIBS"
12122cat >conftest.$ac_ext <<_ACEOF
12123/* confdefs.h. */
12124_ACEOF
12125cat confdefs.h >>conftest.$ac_ext
12126cat >>conftest.$ac_ext <<_ACEOF
12127/* end confdefs.h. */
12128
12129/* Override any gcc2 internal prototype to avoid an error. */
12130#ifdef __cplusplus
12131extern "C"
12132#endif
12133/* We use char because int might match the return type of a gcc2
12134 builtin and then its argument prototype would still apply. */
12135char jpeg_destroy_compress ();
12136int
12137main ()
12138{
12139jpeg_destroy_compress ();
12140 ;
12141 return 0;
12142}
12143_ACEOF
12144rm -f conftest.$ac_objext conftest$ac_exeext
12145if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12146 (eval $ac_link) 2>conftest.er1
12147 ac_status=$?
12148 grep -v '^ *+' conftest.er1 >conftest.err
12149 rm -f conftest.er1
12150 cat conftest.err >&5
12151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12152 (exit $ac_status); } &&
12153 { ac_try='test -z "$ac_c_werror_flag"
12154 || test ! -s conftest.err'
12155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12156 (eval $ac_try) 2>&5
12157 ac_status=$?
12158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12159 (exit $ac_status); }; } &&
12160 { ac_try='test -s conftest$ac_exeext'
12161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12162 (eval $ac_try) 2>&5
12163 ac_status=$?
12164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12165 (exit $ac_status); }; }; then
12166 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
12167else
12168 echo "$as_me: failed program was:" >&5
12169sed 's/^/| /' conftest.$ac_ext >&5
12170
12171ac_cv_lib_jpeg_jpeg_destroy_compress=no
12172fi
12173rm -f conftest.err conftest.$ac_objext \
12174 conftest$ac_exeext conftest.$ac_ext
12175LIBS=$ac_check_lib_save_LIBS
12176fi
12177echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
12178echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6
12179if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then
12180 HAVE_JPEG=yes
12181fi
12182
12183fi
12184
12185
12186 fi
12187
12188
12189 if test "${HAVE_JPEG}" = "yes"; then
12190 cat >>confdefs.h <<\_ACEOF
12191#define HAVE_JPEG 1
12192_ACEOF
12193
12194 cat >conftest.$ac_ext <<_ACEOF
12195/* confdefs.h. */
12196_ACEOF
12197cat confdefs.h >>conftest.$ac_ext
12198cat >>conftest.$ac_ext <<_ACEOF
12199/* end confdefs.h. */
12200#include <jpeglib.h>
12201 version=JPEG_LIB_VERSION
12202
12203_ACEOF
12204if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12205 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then
12206 cat >>confdefs.h <<\_ACEOF
12207#define HAVE_JPEG 1
12208_ACEOF
12209
12210else
12211 { echo "$as_me:$LINENO: WARNING: libjpeg found, but not version 6b or later" >&5
12212echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
12213 HAVE_JPEG=no
12214fi
12215rm -f conftest*
12216
12217 fi
12218fi
12219
12220### Use -lpng if available, unless `--with-png=no'.
12221HAVE_PNG=no
12222if test "${HAVE_X11}" = "yes"; then
12223 if test "${with_png}" != "no"; then
12224 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
12225 # in /usr/include/libpng.
12226
12227
12228for ac_header in png.h libpng/png.h
12229do
12230as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12231if eval "test \"\${$as_ac_Header+set}\" = set"; then
12232 echo "$as_me:$LINENO: checking for $ac_header" >&5
12233echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12234if eval "test \"\${$as_ac_Header+set}\" = set"; then
12235 echo $ECHO_N "(cached) $ECHO_C" >&6
12236fi
12237echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12238echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12239else
12240 # Is the header compilable?
12241echo "$as_me:$LINENO: checking $ac_header usability" >&5
12242echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12243cat >conftest.$ac_ext <<_ACEOF
12244/* confdefs.h. */
12245_ACEOF
12246cat confdefs.h >>conftest.$ac_ext
12247cat >>conftest.$ac_ext <<_ACEOF
12248/* end confdefs.h. */
12249$ac_includes_default
12250#include <$ac_header>
12251_ACEOF
12252rm -f conftest.$ac_objext
12253if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12254 (eval $ac_compile) 2>conftest.er1
12255 ac_status=$?
12256 grep -v '^ *+' conftest.er1 >conftest.err
12257 rm -f conftest.er1
12258 cat conftest.err >&5
12259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12260 (exit $ac_status); } &&
12261 { ac_try='test -z "$ac_c_werror_flag"
12262 || test ! -s conftest.err'
12263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12264 (eval $ac_try) 2>&5
12265 ac_status=$?
12266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12267 (exit $ac_status); }; } &&
12268 { ac_try='test -s conftest.$ac_objext'
12269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12270 (eval $ac_try) 2>&5
12271 ac_status=$?
12272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12273 (exit $ac_status); }; }; then
12274 ac_header_compiler=yes
12275else
12276 echo "$as_me: failed program was:" >&5
12277sed 's/^/| /' conftest.$ac_ext >&5
12278
12279ac_header_compiler=no
12280fi
12281rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12282echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12283echo "${ECHO_T}$ac_header_compiler" >&6
12284
12285# Is the header present?
12286echo "$as_me:$LINENO: checking $ac_header presence" >&5
12287echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12288cat >conftest.$ac_ext <<_ACEOF
12289/* confdefs.h. */
12290_ACEOF
12291cat confdefs.h >>conftest.$ac_ext
12292cat >>conftest.$ac_ext <<_ACEOF
12293/* end confdefs.h. */
12294#include <$ac_header>
12295_ACEOF
12296if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12297 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12298 ac_status=$?
12299 grep -v '^ *+' conftest.er1 >conftest.err
12300 rm -f conftest.er1
12301 cat conftest.err >&5
12302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12303 (exit $ac_status); } >/dev/null; then
12304 if test -s conftest.err; then
12305 ac_cpp_err=$ac_c_preproc_warn_flag
12306 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12307 else
12308 ac_cpp_err=
12309 fi
12310else
12311 ac_cpp_err=yes
12312fi
12313if test -z "$ac_cpp_err"; then
12314 ac_header_preproc=yes
12315else
12316 echo "$as_me: failed program was:" >&5
12317sed 's/^/| /' conftest.$ac_ext >&5
12318
12319 ac_header_preproc=no
12320fi
12321rm -f conftest.err conftest.$ac_ext
12322echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12323echo "${ECHO_T}$ac_header_preproc" >&6
12324
12325# So? What about this header?
12326case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12327 yes:no: )
12328 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12329echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12330 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12331echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12332 ac_header_preproc=yes
12333 ;;
12334 no:yes:* )
12335 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12336echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12337 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12338echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12339 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12340echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12341 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12342echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12343 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12344echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12345 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12346echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12347 (
12348 cat <<\_ASBOX
12349## ------------------------------------------ ##
12350## Report this to the AC_PACKAGE_NAME lists. ##
12351## ------------------------------------------ ##
12352_ASBOX
12353 ) |
12354 sed "s/^/$as_me: WARNING: /" >&2
12355 ;;
12356esac
12357echo "$as_me:$LINENO: checking for $ac_header" >&5
12358echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12359if eval "test \"\${$as_ac_Header+set}\" = set"; then
12360 echo $ECHO_N "(cached) $ECHO_C" >&6
12361else
12362 eval "$as_ac_Header=\$ac_header_preproc"
12363fi
12364echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12365echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12366
12367fi
12368if test `eval echo '${'$as_ac_Header'}'` = yes; then
12369 cat >>confdefs.h <<_ACEOF
12370#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12371_ACEOF
12372
12373fi
12374
12375done
12376
12377 if test "$ac_cv_header_png_h" = yes || test "$ac_cv_header_libpng_png_h" = yes ; then
12378 echo "$as_me:$LINENO: checking for png_get_channels in -lpng" >&5
12379echo $ECHO_N "checking for png_get_channels in -lpng... $ECHO_C" >&6
12380if test "${ac_cv_lib_png_png_get_channels+set}" = set; then
12381 echo $ECHO_N "(cached) $ECHO_C" >&6
12382else
12383 ac_check_lib_save_LIBS=$LIBS
12384LIBS="-lpng -lz -lm $LIBS"
12385cat >conftest.$ac_ext <<_ACEOF
12386/* confdefs.h. */
12387_ACEOF
12388cat confdefs.h >>conftest.$ac_ext
12389cat >>conftest.$ac_ext <<_ACEOF
12390/* end confdefs.h. */
12391
12392/* Override any gcc2 internal prototype to avoid an error. */
12393#ifdef __cplusplus
12394extern "C"
12395#endif
12396/* We use char because int might match the return type of a gcc2
12397 builtin and then its argument prototype would still apply. */
12398char png_get_channels ();
12399int
12400main ()
12401{
12402png_get_channels ();
12403 ;
12404 return 0;
12405}
12406_ACEOF
12407rm -f conftest.$ac_objext conftest$ac_exeext
12408if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12409 (eval $ac_link) 2>conftest.er1
12410 ac_status=$?
12411 grep -v '^ *+' conftest.er1 >conftest.err
12412 rm -f conftest.er1
12413 cat conftest.err >&5
12414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12415 (exit $ac_status); } &&
12416 { ac_try='test -z "$ac_c_werror_flag"
12417 || test ! -s conftest.err'
12418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12419 (eval $ac_try) 2>&5
12420 ac_status=$?
12421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12422 (exit $ac_status); }; } &&
12423 { ac_try='test -s conftest$ac_exeext'
12424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12425 (eval $ac_try) 2>&5
12426 ac_status=$?
12427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12428 (exit $ac_status); }; }; then
12429 ac_cv_lib_png_png_get_channels=yes
12430else
12431 echo "$as_me: failed program was:" >&5
12432sed 's/^/| /' conftest.$ac_ext >&5
12433
12434ac_cv_lib_png_png_get_channels=no
12435fi
12436rm -f conftest.err conftest.$ac_objext \
12437 conftest$ac_exeext conftest.$ac_ext
12438LIBS=$ac_check_lib_save_LIBS
12439fi
12440echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_get_channels" >&5
12441echo "${ECHO_T}$ac_cv_lib_png_png_get_channels" >&6
12442if test $ac_cv_lib_png_png_get_channels = yes; then
12443 HAVE_PNG=yes
12444fi
12445
12446 fi
12447 fi
12448
12449 if test "${HAVE_PNG}" = "yes"; then
12450
12451cat >>confdefs.h <<\_ACEOF
12452#define HAVE_PNG 1
12453_ACEOF
12454
12455 fi
12456fi
12457
12458### Use -ltiff if available, unless `--with-tiff=no'.
12459HAVE_TIFF=no
12460if test "${HAVE_X11}" = "yes"; then
12461 if test "${with_tiff}" != "no"; then
12462 if test "${ac_cv_header_tiffio_h+set}" = set; then
12463 echo "$as_me:$LINENO: checking for tiffio.h" >&5
12464echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
12465if test "${ac_cv_header_tiffio_h+set}" = set; then
12466 echo $ECHO_N "(cached) $ECHO_C" >&6
12467fi
12468echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
12469echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
12470else
12471 # Is the header compilable?
12472echo "$as_me:$LINENO: checking tiffio.h usability" >&5
12473echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6
12474cat >conftest.$ac_ext <<_ACEOF
12475/* confdefs.h. */
12476_ACEOF
12477cat confdefs.h >>conftest.$ac_ext
12478cat >>conftest.$ac_ext <<_ACEOF
12479/* end confdefs.h. */
12480$ac_includes_default
12481#include <tiffio.h>
12482_ACEOF
12483rm -f conftest.$ac_objext
12484if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12485 (eval $ac_compile) 2>conftest.er1
12486 ac_status=$?
12487 grep -v '^ *+' conftest.er1 >conftest.err
12488 rm -f conftest.er1
12489 cat conftest.err >&5
12490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12491 (exit $ac_status); } &&
12492 { ac_try='test -z "$ac_c_werror_flag"
12493 || test ! -s conftest.err'
12494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12495 (eval $ac_try) 2>&5
12496 ac_status=$?
12497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12498 (exit $ac_status); }; } &&
12499 { ac_try='test -s conftest.$ac_objext'
12500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12501 (eval $ac_try) 2>&5
12502 ac_status=$?
12503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12504 (exit $ac_status); }; }; then
12505 ac_header_compiler=yes
12506else
12507 echo "$as_me: failed program was:" >&5
12508sed 's/^/| /' conftest.$ac_ext >&5
12509
12510ac_header_compiler=no
12511fi
12512rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12513echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12514echo "${ECHO_T}$ac_header_compiler" >&6
12515
12516# Is the header present?
12517echo "$as_me:$LINENO: checking tiffio.h presence" >&5
12518echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6
12519cat >conftest.$ac_ext <<_ACEOF
12520/* confdefs.h. */
12521_ACEOF
12522cat confdefs.h >>conftest.$ac_ext
12523cat >>conftest.$ac_ext <<_ACEOF
12524/* end confdefs.h. */
12525#include <tiffio.h>
12526_ACEOF
12527if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12528 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12529 ac_status=$?
12530 grep -v '^ *+' conftest.er1 >conftest.err
12531 rm -f conftest.er1
12532 cat conftest.err >&5
12533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12534 (exit $ac_status); } >/dev/null; then
12535 if test -s conftest.err; then
12536 ac_cpp_err=$ac_c_preproc_warn_flag
12537 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12538 else
12539 ac_cpp_err=
12540 fi
12541else
12542 ac_cpp_err=yes
12543fi
12544if test -z "$ac_cpp_err"; then
12545 ac_header_preproc=yes
12546else
12547 echo "$as_me: failed program was:" >&5
12548sed 's/^/| /' conftest.$ac_ext >&5
12549
12550 ac_header_preproc=no
12551fi
12552rm -f conftest.err conftest.$ac_ext
12553echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12554echo "${ECHO_T}$ac_header_preproc" >&6
12555
12556# So? What about this header?
12557case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12558 yes:no: )
12559 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
12560echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12561 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
12562echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
12563 ac_header_preproc=yes
12564 ;;
12565 no:yes:* )
12566 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
12567echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
12568 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
12569echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
12570 { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
12571echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
12572 { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
12573echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
12574 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
12575echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
12576 { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
12577echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
12578 (
12579 cat <<\_ASBOX
12580## ------------------------------------------ ##
12581## Report this to the AC_PACKAGE_NAME lists. ##
12582## ------------------------------------------ ##
12583_ASBOX
12584 ) |
12585 sed "s/^/$as_me: WARNING: /" >&2
12586 ;;
12587esac
12588echo "$as_me:$LINENO: checking for tiffio.h" >&5
12589echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
12590if test "${ac_cv_header_tiffio_h+set}" = set; then
12591 echo $ECHO_N "(cached) $ECHO_C" >&6
12592else
12593 ac_cv_header_tiffio_h=$ac_header_preproc
12594fi
12595echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
12596echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
12597
12598fi
12599if test $ac_cv_header_tiffio_h = yes; then
12600 tifflibs="-lz -lm"
12601 # At least one tiff package requires the jpeg library.
12602 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
12603 echo "$as_me:$LINENO: checking for TIFFGetVersion in -ltiff" >&5
12604echo $ECHO_N "checking for TIFFGetVersion in -ltiff... $ECHO_C" >&6
12605if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
12606 echo $ECHO_N "(cached) $ECHO_C" >&6
12607else
12608 ac_check_lib_save_LIBS=$LIBS
12609LIBS="-ltiff $tifflibs $LIBS"
12610cat >conftest.$ac_ext <<_ACEOF
12611/* confdefs.h. */
12612_ACEOF
12613cat confdefs.h >>conftest.$ac_ext
12614cat >>conftest.$ac_ext <<_ACEOF
12615/* end confdefs.h. */
12616
12617/* Override any gcc2 internal prototype to avoid an error. */
12618#ifdef __cplusplus
12619extern "C"
12620#endif
12621/* We use char because int might match the return type of a gcc2
12622 builtin and then its argument prototype would still apply. */
12623char TIFFGetVersion ();
12624int
12625main ()
12626{
12627TIFFGetVersion ();
12628 ;
12629 return 0;
12630}
12631_ACEOF
12632rm -f conftest.$ac_objext conftest$ac_exeext
12633if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12634 (eval $ac_link) 2>conftest.er1
12635 ac_status=$?
12636 grep -v '^ *+' conftest.er1 >conftest.err
12637 rm -f conftest.er1
12638 cat conftest.err >&5
12639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12640 (exit $ac_status); } &&
12641 { ac_try='test -z "$ac_c_werror_flag"
12642 || test ! -s conftest.err'
12643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12644 (eval $ac_try) 2>&5
12645 ac_status=$?
12646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12647 (exit $ac_status); }; } &&
12648 { ac_try='test -s conftest$ac_exeext'
12649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12650 (eval $ac_try) 2>&5
12651 ac_status=$?
12652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12653 (exit $ac_status); }; }; then
12654 ac_cv_lib_tiff_TIFFGetVersion=yes
12655else
12656 echo "$as_me: failed program was:" >&5
12657sed 's/^/| /' conftest.$ac_ext >&5
12658
12659ac_cv_lib_tiff_TIFFGetVersion=no
12660fi
12661rm -f conftest.err conftest.$ac_objext \
12662 conftest$ac_exeext conftest.$ac_ext
12663LIBS=$ac_check_lib_save_LIBS
12664fi
12665echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
12666echo "${ECHO_T}$ac_cv_lib_tiff_TIFFGetVersion" >&6
12667if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then
12668 HAVE_TIFF=yes
12669fi
12670
12671fi
12672
12673
12674 fi
12675
12676 if test "${HAVE_TIFF}" = "yes"; then
12677
12678cat >>confdefs.h <<\_ACEOF
12679#define HAVE_TIFF 1
12680_ACEOF
12681
12682 fi
12683fi
12684
12685### Use -lgif if available, unless `--with-gif=no'.
12686HAVE_GIF=no
12687if test "${HAVE_X11}" = "yes"; then
12688 if test "${with_gif}" != "no"; then
12689 if test "${ac_cv_header_gif_lib_h+set}" = set; then
12690 echo "$as_me:$LINENO: checking for gif_lib.h" >&5
12691echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6
12692if test "${ac_cv_header_gif_lib_h+set}" = set; then
12693 echo $ECHO_N "(cached) $ECHO_C" >&6
12694fi
12695echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
12696echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6
12697else
12698 # Is the header compilable?
12699echo "$as_me:$LINENO: checking gif_lib.h usability" >&5
12700echo $ECHO_N "checking gif_lib.h usability... $ECHO_C" >&6
12701cat >conftest.$ac_ext <<_ACEOF
12702/* confdefs.h. */
12703_ACEOF
12704cat confdefs.h >>conftest.$ac_ext
12705cat >>conftest.$ac_ext <<_ACEOF
12706/* end confdefs.h. */
12707$ac_includes_default
12708#include <gif_lib.h>
12709_ACEOF
12710rm -f conftest.$ac_objext
12711if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12712 (eval $ac_compile) 2>conftest.er1
12713 ac_status=$?
12714 grep -v '^ *+' conftest.er1 >conftest.err
12715 rm -f conftest.er1
12716 cat conftest.err >&5
12717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12718 (exit $ac_status); } &&
12719 { ac_try='test -z "$ac_c_werror_flag"
12720 || test ! -s conftest.err'
12721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12722 (eval $ac_try) 2>&5
12723 ac_status=$?
12724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12725 (exit $ac_status); }; } &&
12726 { ac_try='test -s conftest.$ac_objext'
12727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12728 (eval $ac_try) 2>&5
12729 ac_status=$?
12730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12731 (exit $ac_status); }; }; then
12732 ac_header_compiler=yes
12733else
12734 echo "$as_me: failed program was:" >&5
12735sed 's/^/| /' conftest.$ac_ext >&5
12736
12737ac_header_compiler=no
12738fi
12739rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12740echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12741echo "${ECHO_T}$ac_header_compiler" >&6
12742
12743# Is the header present?
12744echo "$as_me:$LINENO: checking gif_lib.h presence" >&5
12745echo $ECHO_N "checking gif_lib.h presence... $ECHO_C" >&6
12746cat >conftest.$ac_ext <<_ACEOF
12747/* confdefs.h. */
12748_ACEOF
12749cat confdefs.h >>conftest.$ac_ext
12750cat >>conftest.$ac_ext <<_ACEOF
12751/* end confdefs.h. */
12752#include <gif_lib.h>
12753_ACEOF
12754if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12755 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12756 ac_status=$?
12757 grep -v '^ *+' conftest.er1 >conftest.err
12758 rm -f conftest.er1
12759 cat conftest.err >&5
12760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12761 (exit $ac_status); } >/dev/null; then
12762 if test -s conftest.err; then
12763 ac_cpp_err=$ac_c_preproc_warn_flag
12764 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12765 else
12766 ac_cpp_err=
12767 fi
12768else
12769 ac_cpp_err=yes
12770fi
12771if test -z "$ac_cpp_err"; then
12772 ac_header_preproc=yes
12773else
12774 echo "$as_me: failed program was:" >&5
12775sed 's/^/| /' conftest.$ac_ext >&5
12776
12777 ac_header_preproc=no
12778fi
12779rm -f conftest.err conftest.$ac_ext
12780echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12781echo "${ECHO_T}$ac_header_preproc" >&6
12782
12783# So? What about this header?
12784case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12785 yes:no: )
12786 { echo "$as_me:$LINENO: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&5
12787echo "$as_me: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12788 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the compiler's result" >&5
12789echo "$as_me: WARNING: gif_lib.h: proceeding with the compiler's result" >&2;}
12790 ac_header_preproc=yes
12791 ;;
12792 no:yes:* )
12793 { echo "$as_me:$LINENO: WARNING: gif_lib.h: present but cannot be compiled" >&5
12794echo "$as_me: WARNING: gif_lib.h: present but cannot be compiled" >&2;}
12795 { echo "$as_me:$LINENO: WARNING: gif_lib.h: check for missing prerequisite headers?" >&5
12796echo "$as_me: WARNING: gif_lib.h: check for missing prerequisite headers?" >&2;}
12797 { echo "$as_me:$LINENO: WARNING: gif_lib.h: see the Autoconf documentation" >&5
12798echo "$as_me: WARNING: gif_lib.h: see the Autoconf documentation" >&2;}
12799 { echo "$as_me:$LINENO: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&5
12800echo "$as_me: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&2;}
12801 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5
12802echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;}
12803 { echo "$as_me:$LINENO: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&5
12804echo "$as_me: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&2;}
12805 (
12806 cat <<\_ASBOX
12807## ------------------------------------------ ##
12808## Report this to the AC_PACKAGE_NAME lists. ##
12809## ------------------------------------------ ##
12810_ASBOX
12811 ) |
12812 sed "s/^/$as_me: WARNING: /" >&2
12813 ;;
12814esac
12815echo "$as_me:$LINENO: checking for gif_lib.h" >&5
12816echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6
12817if test "${ac_cv_header_gif_lib_h+set}" = set; then
12818 echo $ECHO_N "(cached) $ECHO_C" >&6
12819else
12820 ac_cv_header_gif_lib_h=$ac_header_preproc
12821fi
12822echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
12823echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6
12824
12825fi
12826if test $ac_cv_header_gif_lib_h = yes; then
12827 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
12828# Earlier versions can crash Emacs.
12829 echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lungif" >&5
12830echo $ECHO_N "checking for EGifPutExtensionLast in -lungif... $ECHO_C" >&6
12831if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then
12832 echo $ECHO_N "(cached) $ECHO_C" >&6
12833else
12834 ac_check_lib_save_LIBS=$LIBS
12835LIBS="-lungif $LIBS"
12836cat >conftest.$ac_ext <<_ACEOF
12837/* confdefs.h. */
12838_ACEOF
12839cat confdefs.h >>conftest.$ac_ext
12840cat >>conftest.$ac_ext <<_ACEOF
12841/* end confdefs.h. */
12842
12843/* Override any gcc2 internal prototype to avoid an error. */
12844#ifdef __cplusplus
12845extern "C"
12846#endif
12847/* We use char because int might match the return type of a gcc2
12848 builtin and then its argument prototype would still apply. */
12849char EGifPutExtensionLast ();
12850int
12851main ()
12852{
12853EGifPutExtensionLast ();
12854 ;
12855 return 0;
12856}
12857_ACEOF
12858rm -f conftest.$ac_objext conftest$ac_exeext
12859if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12860 (eval $ac_link) 2>conftest.er1
12861 ac_status=$?
12862 grep -v '^ *+' conftest.er1 >conftest.err
12863 rm -f conftest.er1
12864 cat conftest.err >&5
12865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12866 (exit $ac_status); } &&
12867 { ac_try='test -z "$ac_c_werror_flag"
12868 || test ! -s conftest.err'
12869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12870 (eval $ac_try) 2>&5
12871 ac_status=$?
12872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12873 (exit $ac_status); }; } &&
12874 { ac_try='test -s conftest$ac_exeext'
12875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12876 (eval $ac_try) 2>&5
12877 ac_status=$?
12878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12879 (exit $ac_status); }; }; then
12880 ac_cv_lib_ungif_EGifPutExtensionLast=yes
12881else
12882 echo "$as_me: failed program was:" >&5
12883sed 's/^/| /' conftest.$ac_ext >&5
12884
12885ac_cv_lib_ungif_EGifPutExtensionLast=no
12886fi
12887rm -f conftest.err conftest.$ac_objext \
12888 conftest$ac_exeext conftest.$ac_ext
12889LIBS=$ac_check_lib_save_LIBS
12890fi
12891echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
12892echo "${ECHO_T}$ac_cv_lib_ungif_EGifPutExtensionLast" >&6
12893if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then
12894 HAVE_GIF=yes
12895fi
12896
12897fi
12898
12899
12900 fi
12901
12902 if test "${HAVE_GIF}" = "yes"; then
12903
12904cat >>confdefs.h <<\_ACEOF
12905#define HAVE_GIF 1
12906_ACEOF
12907
12908 fi
12909fi
12910
12911if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
12912 echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
12913echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6
12914if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
12915 echo $ECHO_N "(cached) $ECHO_C" >&6
12916fi
12917echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
12918echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6
12919else
12920 # Is the header compilable?
12921echo "$as_me:$LINENO: checking malloc/malloc.h usability" >&5
12922echo $ECHO_N "checking malloc/malloc.h usability... $ECHO_C" >&6
12923cat >conftest.$ac_ext <<_ACEOF
12924/* confdefs.h. */
12925_ACEOF
12926cat confdefs.h >>conftest.$ac_ext
12927cat >>conftest.$ac_ext <<_ACEOF
12928/* end confdefs.h. */
12929$ac_includes_default
12930#include <malloc/malloc.h>
12931_ACEOF
12932rm -f conftest.$ac_objext
12933if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12934 (eval $ac_compile) 2>conftest.er1
12935 ac_status=$?
12936 grep -v '^ *+' conftest.er1 >conftest.err
12937 rm -f conftest.er1
12938 cat conftest.err >&5
12939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12940 (exit $ac_status); } &&
12941 { ac_try='test -z "$ac_c_werror_flag"
12942 || test ! -s conftest.err'
12943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12944 (eval $ac_try) 2>&5
12945 ac_status=$?
12946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12947 (exit $ac_status); }; } &&
12948 { ac_try='test -s conftest.$ac_objext'
12949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12950 (eval $ac_try) 2>&5
12951 ac_status=$?
12952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12953 (exit $ac_status); }; }; then
12954 ac_header_compiler=yes
12955else
12956 echo "$as_me: failed program was:" >&5
12957sed 's/^/| /' conftest.$ac_ext >&5
12958
12959ac_header_compiler=no
12960fi
12961rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12962echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12963echo "${ECHO_T}$ac_header_compiler" >&6
12964
12965# Is the header present?
12966echo "$as_me:$LINENO: checking malloc/malloc.h presence" >&5
12967echo $ECHO_N "checking malloc/malloc.h presence... $ECHO_C" >&6
12968cat >conftest.$ac_ext <<_ACEOF
12969/* confdefs.h. */
12970_ACEOF
12971cat confdefs.h >>conftest.$ac_ext
12972cat >>conftest.$ac_ext <<_ACEOF
12973/* end confdefs.h. */
12974#include <malloc/malloc.h>
12975_ACEOF
12976if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12977 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12978 ac_status=$?
12979 grep -v '^ *+' conftest.er1 >conftest.err
12980 rm -f conftest.er1
12981 cat conftest.err >&5
12982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12983 (exit $ac_status); } >/dev/null; then
12984 if test -s conftest.err; then
12985 ac_cpp_err=$ac_c_preproc_warn_flag
12986 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12987 else
12988 ac_cpp_err=
12989 fi
12990else
12991 ac_cpp_err=yes
12992fi
12993if test -z "$ac_cpp_err"; then
12994 ac_header_preproc=yes
12995else
12996 echo "$as_me: failed program was:" >&5
12997sed 's/^/| /' conftest.$ac_ext >&5
12998
12999 ac_header_preproc=no
13000fi
13001rm -f conftest.err conftest.$ac_ext
13002echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13003echo "${ECHO_T}$ac_header_preproc" >&6
13004
13005# So? What about this header?
13006case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13007 yes:no: )
13008 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&5
13009echo "$as_me: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13010 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&5
13011echo "$as_me: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&2;}
13012 ac_header_preproc=yes
13013 ;;
13014 no:yes:* )
13015 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: present but cannot be compiled" >&5
13016echo "$as_me: WARNING: malloc/malloc.h: present but cannot be compiled" >&2;}
13017 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&5
13018echo "$as_me: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&2;}
13019 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: see the Autoconf documentation" >&5
13020echo "$as_me: WARNING: malloc/malloc.h: see the Autoconf documentation" >&2;}
13021 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&5
13022echo "$as_me: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&2;}
13023 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&5
13024echo "$as_me: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&2;}
13025 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&5
13026echo "$as_me: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&2;}
13027 (
13028 cat <<\_ASBOX
13029## ------------------------------------------ ##
13030## Report this to the AC_PACKAGE_NAME lists. ##
13031## ------------------------------------------ ##
13032_ASBOX
13033 ) |
13034 sed "s/^/$as_me: WARNING: /" >&2
13035 ;;
13036esac
13037echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
13038echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6
13039if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
13040 echo $ECHO_N "(cached) $ECHO_C" >&6
13041else
13042 ac_cv_header_malloc_malloc_h=$ac_header_preproc
13043fi
13044echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
13045echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6
13046
13047fi
13048if test $ac_cv_header_malloc_malloc_h = yes; then
13049
13050cat >>confdefs.h <<\_ACEOF
13051#define HAVE_MALLOC_MALLOC_H 1
13052_ACEOF
13053
13054fi
13055
13056
13057
13058### Use Mac OS X Carbon API to implement GUI.
13059if test "${HAVE_CARBON}" = "yes"; then
13060
13061cat >>confdefs.h <<\_ACEOF
13062#define HAVE_CARBON 1
13063_ACEOF
13064
13065 ## Specify the install directory
13066 carbon_appdir=
13067 if test "${carbon_appdir_x}" != ""; then
13068 case ${carbon_appdir_x} in
13069 y | ye | yes) carbon_appdir=/Applications ;;
13070 * ) carbon_appdir=${carbon_appdir_x} ;;
13071 esac
13072 fi
13073 # We also have mouse menus.
13074 HAVE_MENUS=yes
13075
13076 tmp_CFLAGS="$CFLAGS"
13077 CFLAGS="$CFLAGS -framework Carbon"
13078 echo "$as_me:$LINENO: checking for CancelMenuTracking" >&5
13079echo $ECHO_N "checking for CancelMenuTracking... $ECHO_C" >&6
13080if test "${ac_cv_func_CancelMenuTracking+set}" = set; then
13081 echo $ECHO_N "(cached) $ECHO_C" >&6
13082else
13083 cat >conftest.$ac_ext <<_ACEOF
13084/* confdefs.h. */
13085_ACEOF
13086cat confdefs.h >>conftest.$ac_ext
13087cat >>conftest.$ac_ext <<_ACEOF
13088/* end confdefs.h. */
13089/* Define CancelMenuTracking to an innocuous variant, in case <limits.h> declares CancelMenuTracking.
13090 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13091#define CancelMenuTracking innocuous_CancelMenuTracking
13092
13093/* System header to define __stub macros and hopefully few prototypes,
13094 which can conflict with char CancelMenuTracking (); below.
13095 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13096 <limits.h> exists even on freestanding compilers. */
13097
13098#ifdef __STDC__
13099# include <limits.h>
13100#else
13101# include <assert.h>
13102#endif
13103
13104#undef CancelMenuTracking
13105
13106/* Override any gcc2 internal prototype to avoid an error. */
13107#ifdef __cplusplus
13108extern "C"
13109{
13110#endif
13111/* We use char because int might match the return type of a gcc2
13112 builtin and then its argument prototype would still apply. */
13113char CancelMenuTracking ();
13114/* The GNU C library defines this for functions which it implements
13115 to always fail with ENOSYS. Some functions are actually named
13116 something starting with __ and the normal name is an alias. */
13117#if defined (__stub_CancelMenuTracking) || defined (__stub___CancelMenuTracking)
13118choke me
13119#else
13120char (*f) () = CancelMenuTracking;
13121#endif
13122#ifdef __cplusplus
13123}
13124#endif
13125
13126int
13127main ()
13128{
13129return f != CancelMenuTracking;
13130 ;
13131 return 0;
13132}
13133_ACEOF
13134rm -f conftest.$ac_objext conftest$ac_exeext
13135if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13136 (eval $ac_link) 2>conftest.er1
13137 ac_status=$?
13138 grep -v '^ *+' conftest.er1 >conftest.err
13139 rm -f conftest.er1
13140 cat conftest.err >&5
13141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13142 (exit $ac_status); } &&
13143 { ac_try='test -z "$ac_c_werror_flag"
13144 || test ! -s conftest.err'
13145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13146 (eval $ac_try) 2>&5
13147 ac_status=$?
13148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13149 (exit $ac_status); }; } &&
13150 { ac_try='test -s conftest$ac_exeext'
13151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13152 (eval $ac_try) 2>&5
13153 ac_status=$?
13154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13155 (exit $ac_status); }; }; then
13156 ac_cv_func_CancelMenuTracking=yes
13157else
13158 echo "$as_me: failed program was:" >&5
13159sed 's/^/| /' conftest.$ac_ext >&5
13160
13161ac_cv_func_CancelMenuTracking=no
13162fi
13163rm -f conftest.err conftest.$ac_objext \
13164 conftest$ac_exeext conftest.$ac_ext
13165fi
13166echo "$as_me:$LINENO: result: $ac_cv_func_CancelMenuTracking" >&5
13167echo "${ECHO_T}$ac_cv_func_CancelMenuTracking" >&6
13168if test $ac_cv_func_CancelMenuTracking = yes; then
13169 have_cmt=yes
13170else
13171 have_cmt=no
13172fi
13173
13174 if test "$have_cmt" = yes; then
13175
13176cat >>confdefs.h <<\_ACEOF
13177#define HAVE_CANCELMENUTRACKING 1
13178_ACEOF
13179
13180 fi
13181 CFLAGS="$tmp_CFLAGS"
13182fi
13183
13184### Use session management (-lSM -lICE) if available
13185HAVE_X_SM=no
13186if test "${HAVE_X11}" = "yes"; then
13187 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
13188 echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
13189echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6
13190if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
13191 echo $ECHO_N "(cached) $ECHO_C" >&6
13192fi
13193echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
13194echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6
13195else
13196 # Is the header compilable?
13197echo "$as_me:$LINENO: checking X11/SM/SMlib.h usability" >&5
13198echo $ECHO_N "checking X11/SM/SMlib.h usability... $ECHO_C" >&6
13199cat >conftest.$ac_ext <<_ACEOF
13200/* confdefs.h. */
13201_ACEOF
13202cat confdefs.h >>conftest.$ac_ext
13203cat >>conftest.$ac_ext <<_ACEOF
13204/* end confdefs.h. */
13205$ac_includes_default
13206#include <X11/SM/SMlib.h>
13207_ACEOF
13208rm -f conftest.$ac_objext
13209if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13210 (eval $ac_compile) 2>conftest.er1
13211 ac_status=$?
13212 grep -v '^ *+' conftest.er1 >conftest.err
13213 rm -f conftest.er1
13214 cat conftest.err >&5
13215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13216 (exit $ac_status); } &&
13217 { ac_try='test -z "$ac_c_werror_flag"
13218 || test ! -s conftest.err'
13219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13220 (eval $ac_try) 2>&5
13221 ac_status=$?
13222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13223 (exit $ac_status); }; } &&
13224 { ac_try='test -s conftest.$ac_objext'
13225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13226 (eval $ac_try) 2>&5
13227 ac_status=$?
13228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13229 (exit $ac_status); }; }; then
13230 ac_header_compiler=yes
13231else
13232 echo "$as_me: failed program was:" >&5
13233sed 's/^/| /' conftest.$ac_ext >&5
13234
13235ac_header_compiler=no
13236fi
13237rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13238echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13239echo "${ECHO_T}$ac_header_compiler" >&6
13240
13241# Is the header present?
13242echo "$as_me:$LINENO: checking X11/SM/SMlib.h presence" >&5
13243echo $ECHO_N "checking X11/SM/SMlib.h presence... $ECHO_C" >&6
13244cat >conftest.$ac_ext <<_ACEOF
13245/* confdefs.h. */
13246_ACEOF
13247cat confdefs.h >>conftest.$ac_ext
13248cat >>conftest.$ac_ext <<_ACEOF
13249/* end confdefs.h. */
13250#include <X11/SM/SMlib.h>
13251_ACEOF
13252if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13253 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13254 ac_status=$?
13255 grep -v '^ *+' conftest.er1 >conftest.err
13256 rm -f conftest.er1
13257 cat conftest.err >&5
13258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13259 (exit $ac_status); } >/dev/null; then
13260 if test -s conftest.err; then
13261 ac_cpp_err=$ac_c_preproc_warn_flag
13262 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13263 else
13264 ac_cpp_err=
13265 fi
13266else
13267 ac_cpp_err=yes
13268fi
13269if test -z "$ac_cpp_err"; then
13270 ac_header_preproc=yes
13271else
13272 echo "$as_me: failed program was:" >&5
13273sed 's/^/| /' conftest.$ac_ext >&5
13274
13275 ac_header_preproc=no
13276fi
13277rm -f conftest.err conftest.$ac_ext
13278echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13279echo "${ECHO_T}$ac_header_preproc" >&6
13280
13281# So? What about this header?
13282case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13283 yes:no: )
13284 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
13285echo "$as_me: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13286 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&5
13287echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&2;}
13288 ac_header_preproc=yes
13289 ;;
13290 no:yes:* )
13291 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&5
13292echo "$as_me: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&2;}
13293 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&5
13294echo "$as_me: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&2;}
13295 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&5
13296echo "$as_me: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&2;}
13297 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&5
13298echo "$as_me: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
13299 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
13300echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;}
13301 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&5
13302echo "$as_me: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&2;}
13303 (
13304 cat <<\_ASBOX
13305## ------------------------------------------ ##
13306## Report this to the AC_PACKAGE_NAME lists. ##
13307## ------------------------------------------ ##
13308_ASBOX
13309 ) |
13310 sed "s/^/$as_me: WARNING: /" >&2
13311 ;;
13312esac
13313echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
13314echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6
13315if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
13316 echo $ECHO_N "(cached) $ECHO_C" >&6
13317else
13318 ac_cv_header_X11_SM_SMlib_h=$ac_header_preproc
13319fi
13320echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
13321echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6
13322
13323fi
13324if test $ac_cv_header_X11_SM_SMlib_h = yes; then
13325 echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
13326echo $ECHO_N "checking for SmcOpenConnection in -lSM... $ECHO_C" >&6
13327if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
13328 echo $ECHO_N "(cached) $ECHO_C" >&6
13329else
13330 ac_check_lib_save_LIBS=$LIBS
13331LIBS="-lSM -lICE $LIBS"
13332cat >conftest.$ac_ext <<_ACEOF
13333/* confdefs.h. */
13334_ACEOF
13335cat confdefs.h >>conftest.$ac_ext
13336cat >>conftest.$ac_ext <<_ACEOF
13337/* end confdefs.h. */
13338
13339/* Override any gcc2 internal prototype to avoid an error. */
13340#ifdef __cplusplus
13341extern "C"
13342#endif
13343/* We use char because int might match the return type of a gcc2
13344 builtin and then its argument prototype would still apply. */
13345char SmcOpenConnection ();
13346int
13347main ()
13348{
13349SmcOpenConnection ();
13350 ;
13351 return 0;
13352}
13353_ACEOF
13354rm -f conftest.$ac_objext conftest$ac_exeext
13355if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13356 (eval $ac_link) 2>conftest.er1
13357 ac_status=$?
13358 grep -v '^ *+' conftest.er1 >conftest.err
13359 rm -f conftest.er1
13360 cat conftest.err >&5
13361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13362 (exit $ac_status); } &&
13363 { ac_try='test -z "$ac_c_werror_flag"
13364 || test ! -s conftest.err'
13365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13366 (eval $ac_try) 2>&5
13367 ac_status=$?
13368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13369 (exit $ac_status); }; } &&
13370 { ac_try='test -s conftest$ac_exeext'
13371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13372 (eval $ac_try) 2>&5
13373 ac_status=$?
13374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13375 (exit $ac_status); }; }; then
13376 ac_cv_lib_SM_SmcOpenConnection=yes
13377else
13378 echo "$as_me: failed program was:" >&5
13379sed 's/^/| /' conftest.$ac_ext >&5
13380
13381ac_cv_lib_SM_SmcOpenConnection=no
13382fi
13383rm -f conftest.err conftest.$ac_objext \
13384 conftest$ac_exeext conftest.$ac_ext
13385LIBS=$ac_check_lib_save_LIBS
13386fi
13387echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
13388echo "${ECHO_T}$ac_cv_lib_SM_SmcOpenConnection" >&6
13389if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
13390 HAVE_X_SM=yes
13391fi
13392
13393fi
13394
13395
13396
13397 if test "${HAVE_X_SM}" = "yes"; then
13398
13399cat >>confdefs.h <<\_ACEOF
13400#define HAVE_X_SM 1
13401_ACEOF
13402
13403 case "$LIBS" in
13404 *-lSM*) ;;
13405 *) LIBS="-lSM -lICE $LIBS" ;;
13406 esac
13407 fi
13408fi
13409
13410# If netdb.h doesn't declare h_errno, we must declare it by hand.
13411echo "$as_me:$LINENO: checking whether netdb declares h_errno" >&5
13412echo $ECHO_N "checking whether netdb declares h_errno... $ECHO_C" >&6
13413if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then
13414 echo $ECHO_N "(cached) $ECHO_C" >&6
13415else
13416 cat >conftest.$ac_ext <<_ACEOF
13417/* confdefs.h. */
13418_ACEOF
13419cat confdefs.h >>conftest.$ac_ext
13420cat >>conftest.$ac_ext <<_ACEOF
13421/* end confdefs.h. */
13422#include <netdb.h>
13423int
13424main ()
13425{
13426return h_errno;
13427 ;
13428 return 0;
13429}
13430_ACEOF
13431rm -f conftest.$ac_objext conftest$ac_exeext
13432if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13433 (eval $ac_link) 2>conftest.er1
13434 ac_status=$?
13435 grep -v '^ *+' conftest.er1 >conftest.err
13436 rm -f conftest.er1
13437 cat conftest.err >&5
13438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13439 (exit $ac_status); } &&
13440 { ac_try='test -z "$ac_c_werror_flag"
13441 || test ! -s conftest.err'
13442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13443 (eval $ac_try) 2>&5
13444 ac_status=$?
13445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13446 (exit $ac_status); }; } &&
13447 { ac_try='test -s conftest$ac_exeext'
13448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13449 (eval $ac_try) 2>&5
13450 ac_status=$?
13451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13452 (exit $ac_status); }; }; then
13453 emacs_cv_netdb_declares_h_errno=yes
13454else
13455 echo "$as_me: failed program was:" >&5
13456sed 's/^/| /' conftest.$ac_ext >&5
13457
13458emacs_cv_netdb_declares_h_errno=no
13459fi
13460rm -f conftest.err conftest.$ac_objext \
13461 conftest$ac_exeext conftest.$ac_ext
13462fi
13463echo "$as_me:$LINENO: result: $emacs_cv_netdb_declares_h_errno" >&5
13464echo "${ECHO_T}$emacs_cv_netdb_declares_h_errno" >&6
13465if test $emacs_cv_netdb_declares_h_errno = yes; then
13466
13467cat >>confdefs.h <<\_ACEOF
13468#define HAVE_H_ERRNO 1
13469_ACEOF
13470
13471fi
13472
13473# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
13474# for constant arguments. Useless!
13475echo "$as_me:$LINENO: checking for working alloca.h" >&5
13476echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
13477if test "${ac_cv_working_alloca_h+set}" = set; then
13478 echo $ECHO_N "(cached) $ECHO_C" >&6
13479else
13480 cat >conftest.$ac_ext <<_ACEOF
13481/* confdefs.h. */
13482_ACEOF
13483cat confdefs.h >>conftest.$ac_ext
13484cat >>conftest.$ac_ext <<_ACEOF
13485/* end confdefs.h. */
13486#include <alloca.h>
13487int
13488main ()
13489{
13490char *p = (char *) alloca (2 * sizeof (int));
13491 ;
13492 return 0;
13493}
13494_ACEOF
13495rm -f conftest.$ac_objext conftest$ac_exeext
13496if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13497 (eval $ac_link) 2>conftest.er1
13498 ac_status=$?
13499 grep -v '^ *+' conftest.er1 >conftest.err
13500 rm -f conftest.er1
13501 cat conftest.err >&5
13502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13503 (exit $ac_status); } &&
13504 { ac_try='test -z "$ac_c_werror_flag"
13505 || test ! -s conftest.err'
13506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13507 (eval $ac_try) 2>&5
13508 ac_status=$?
13509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13510 (exit $ac_status); }; } &&
13511 { ac_try='test -s conftest$ac_exeext'
13512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13513 (eval $ac_try) 2>&5
13514 ac_status=$?
13515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13516 (exit $ac_status); }; }; then
13517 ac_cv_working_alloca_h=yes
13518else
13519 echo "$as_me: failed program was:" >&5
13520sed 's/^/| /' conftest.$ac_ext >&5
13521
13522ac_cv_working_alloca_h=no
13523fi
13524rm -f conftest.err conftest.$ac_objext \
13525 conftest$ac_exeext conftest.$ac_ext
13526fi
13527echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
13528echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
13529if test $ac_cv_working_alloca_h = yes; then
13530
13531cat >>confdefs.h <<\_ACEOF
13532#define HAVE_ALLOCA_H 1
13533_ACEOF
13534
13535fi
13536
13537echo "$as_me:$LINENO: checking for alloca" >&5
13538echo $ECHO_N "checking for alloca... $ECHO_C" >&6
13539if test "${ac_cv_func_alloca_works+set}" = set; then
13540 echo $ECHO_N "(cached) $ECHO_C" >&6
13541else
13542 cat >conftest.$ac_ext <<_ACEOF
13543/* confdefs.h. */
13544_ACEOF
13545cat confdefs.h >>conftest.$ac_ext
13546cat >>conftest.$ac_ext <<_ACEOF
13547/* end confdefs.h. */
13548#ifdef __GNUC__
13549# define alloca __builtin_alloca
13550#else
13551# ifdef _MSC_VER
13552# include <malloc.h>
13553# define alloca _alloca
13554# else
13555# if HAVE_ALLOCA_H
13556# include <alloca.h>
13557# else
13558# ifdef _AIX
13559 #pragma alloca
13560# else
13561# ifndef alloca /* predefined by HP cc +Olibcalls */
13562char *alloca ();
13563# endif
13564# endif
13565# endif
13566# endif
13567#endif
13568
13569int
13570main ()
13571{
13572char *p = (char *) alloca (1);
13573 ;
13574 return 0;
13575}
13576_ACEOF
13577rm -f conftest.$ac_objext conftest$ac_exeext
13578if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13579 (eval $ac_link) 2>conftest.er1
13580 ac_status=$?
13581 grep -v '^ *+' conftest.er1 >conftest.err
13582 rm -f conftest.er1
13583 cat conftest.err >&5
13584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13585 (exit $ac_status); } &&
13586 { ac_try='test -z "$ac_c_werror_flag"
13587 || test ! -s conftest.err'
13588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13589 (eval $ac_try) 2>&5
13590 ac_status=$?
13591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13592 (exit $ac_status); }; } &&
13593 { ac_try='test -s conftest$ac_exeext'
13594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13595 (eval $ac_try) 2>&5
13596 ac_status=$?
13597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13598 (exit $ac_status); }; }; then
13599 ac_cv_func_alloca_works=yes
13600else
13601 echo "$as_me: failed program was:" >&5
13602sed 's/^/| /' conftest.$ac_ext >&5
13603
13604ac_cv_func_alloca_works=no
13605fi
13606rm -f conftest.err conftest.$ac_objext \
13607 conftest$ac_exeext conftest.$ac_ext
13608fi
13609echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
13610echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
13611
13612if test $ac_cv_func_alloca_works = yes; then
13613
13614cat >>confdefs.h <<\_ACEOF
13615#define HAVE_ALLOCA 1
13616_ACEOF
13617
13618else
13619 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
13620# that cause trouble. Some versions do not even contain alloca or
13621# contain a buggy version. If you still want to use their alloca,
13622# use ar to extract alloca.o from them instead of compiling alloca.c.
13623
13624ALLOCA=alloca.$ac_objext
13625
13626cat >>confdefs.h <<\_ACEOF
13627#define C_ALLOCA 1
13628_ACEOF
13629
13630
13631echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
13632echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
13633if test "${ac_cv_os_cray+set}" = set; then
13634 echo $ECHO_N "(cached) $ECHO_C" >&6
13635else
13636 cat >conftest.$ac_ext <<_ACEOF
13637/* confdefs.h. */
13638_ACEOF
13639cat confdefs.h >>conftest.$ac_ext
13640cat >>conftest.$ac_ext <<_ACEOF
13641/* end confdefs.h. */
13642#if defined(CRAY) && ! defined(CRAY2)
13643webecray
13644#else
13645wenotbecray
13646#endif
13647
13648_ACEOF
13649if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13650 $EGREP "webecray" >/dev/null 2>&1; then
13651 ac_cv_os_cray=yes
13652else
13653 ac_cv_os_cray=no
13654fi
13655rm -f conftest*
13656
13657fi
13658echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
13659echo "${ECHO_T}$ac_cv_os_cray" >&6
13660if test $ac_cv_os_cray = yes; then
13661 for ac_func in _getb67 GETB67 getb67; do
13662 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13663echo "$as_me:$LINENO: checking for $ac_func" >&5
13664echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13665if eval "test \"\${$as_ac_var+set}\" = set"; then
13666 echo $ECHO_N "(cached) $ECHO_C" >&6
13667else
13668 cat >conftest.$ac_ext <<_ACEOF
13669/* confdefs.h. */
13670_ACEOF
13671cat confdefs.h >>conftest.$ac_ext
13672cat >>conftest.$ac_ext <<_ACEOF
13673/* end confdefs.h. */
13674/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13675 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13676#define $ac_func innocuous_$ac_func
13677
13678/* System header to define __stub macros and hopefully few prototypes,
13679 which can conflict with char $ac_func (); below.
13680 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13681 <limits.h> exists even on freestanding compilers. */
13682
13683#ifdef __STDC__
13684# include <limits.h>
13685#else
13686# include <assert.h>
13687#endif
13688
13689#undef $ac_func
13690
13691/* Override any gcc2 internal prototype to avoid an error. */
13692#ifdef __cplusplus
13693extern "C"
13694{
13695#endif
13696/* We use char because int might match the return type of a gcc2
13697 builtin and then its argument prototype would still apply. */
13698char $ac_func ();
13699/* The GNU C library defines this for functions which it implements
13700 to always fail with ENOSYS. Some functions are actually named
13701 something starting with __ and the normal name is an alias. */
13702#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13703choke me
13704#else
13705char (*f) () = $ac_func;
13706#endif
13707#ifdef __cplusplus
13708}
13709#endif
13710
13711int
13712main ()
13713{
13714return f != $ac_func;
13715 ;
13716 return 0;
13717}
13718_ACEOF
13719rm -f conftest.$ac_objext conftest$ac_exeext
13720if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13721 (eval $ac_link) 2>conftest.er1
13722 ac_status=$?
13723 grep -v '^ *+' conftest.er1 >conftest.err
13724 rm -f conftest.er1
13725 cat conftest.err >&5
13726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13727 (exit $ac_status); } &&
13728 { ac_try='test -z "$ac_c_werror_flag"
13729 || test ! -s conftest.err'
13730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13731 (eval $ac_try) 2>&5
13732 ac_status=$?
13733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13734 (exit $ac_status); }; } &&
13735 { ac_try='test -s conftest$ac_exeext'
13736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13737 (eval $ac_try) 2>&5
13738 ac_status=$?
13739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13740 (exit $ac_status); }; }; then
13741 eval "$as_ac_var=yes"
13742else
13743 echo "$as_me: failed program was:" >&5
13744sed 's/^/| /' conftest.$ac_ext >&5
13745
13746eval "$as_ac_var=no"
13747fi
13748rm -f conftest.err conftest.$ac_objext \
13749 conftest$ac_exeext conftest.$ac_ext
13750fi
13751echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13752echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13753if test `eval echo '${'$as_ac_var'}'` = yes; then
13754
13755cat >>confdefs.h <<_ACEOF
13756#define CRAY_STACKSEG_END $ac_func
13757_ACEOF
13758
13759 break
13760fi
13761
13762 done
13763fi
13764
13765echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
13766echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
13767if test "${ac_cv_c_stack_direction+set}" = set; then
13768 echo $ECHO_N "(cached) $ECHO_C" >&6
13769else
13770 if test "$cross_compiling" = yes; then
13771 ac_cv_c_stack_direction=0
13772else
13773 cat >conftest.$ac_ext <<_ACEOF
13774/* confdefs.h. */
13775_ACEOF
13776cat confdefs.h >>conftest.$ac_ext
13777cat >>conftest.$ac_ext <<_ACEOF
13778/* end confdefs.h. */
13779int
13780find_stack_direction ()
13781{
13782 static char *addr = 0;
13783 auto char dummy;
13784 if (addr == 0)
13785 {
13786 addr = &dummy;
13787 return find_stack_direction ();
13788 }
13789 else
13790 return (&dummy > addr) ? 1 : -1;
13791}
13792
13793int
13794main ()
13795{
13796 exit (find_stack_direction () < 0);
13797}
13798_ACEOF
13799rm -f conftest$ac_exeext
13800if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13801 (eval $ac_link) 2>&5
13802 ac_status=$?
13803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13804 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13806 (eval $ac_try) 2>&5
13807 ac_status=$?
13808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13809 (exit $ac_status); }; }; then
13810 ac_cv_c_stack_direction=1
13811else
13812 echo "$as_me: program exited with status $ac_status" >&5
13813echo "$as_me: failed program was:" >&5
13814sed 's/^/| /' conftest.$ac_ext >&5
13815
13816( exit $ac_status )
13817ac_cv_c_stack_direction=-1
13818fi
13819rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13820fi
13821fi
13822echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
13823echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
13824
13825cat >>confdefs.h <<_ACEOF
13826#define STACK_DIRECTION $ac_cv_c_stack_direction
13827_ACEOF
13828
13829
13830fi
13831
13832
13833# fmod, logb, and frexp are found in -lm on most systems.
13834# On HPUX 9.01, -lm does not contain logb, so check for sqrt.
13835
13836echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
13837echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6
13838if test "${ac_cv_lib_m_sqrt+set}" = set; then
13839 echo $ECHO_N "(cached) $ECHO_C" >&6
13840else
13841 ac_check_lib_save_LIBS=$LIBS
13842LIBS="-lm $LIBS"
13843cat >conftest.$ac_ext <<_ACEOF
13844/* confdefs.h. */
13845_ACEOF
13846cat confdefs.h >>conftest.$ac_ext
13847cat >>conftest.$ac_ext <<_ACEOF
13848/* end confdefs.h. */
13849
13850/* Override any gcc2 internal prototype to avoid an error. */
13851#ifdef __cplusplus
13852extern "C"
13853#endif
13854/* We use char because int might match the return type of a gcc2
13855 builtin and then its argument prototype would still apply. */
13856char sqrt ();
13857int
13858main ()
13859{
13860sqrt ();
13861 ;
13862 return 0;
13863}
13864_ACEOF
13865rm -f conftest.$ac_objext conftest$ac_exeext
13866if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13867 (eval $ac_link) 2>conftest.er1
13868 ac_status=$?
13869 grep -v '^ *+' conftest.er1 >conftest.err
13870 rm -f conftest.er1
13871 cat conftest.err >&5
13872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13873 (exit $ac_status); } &&
13874 { ac_try='test -z "$ac_c_werror_flag"
13875 || test ! -s conftest.err'
13876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13877 (eval $ac_try) 2>&5
13878 ac_status=$?
13879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13880 (exit $ac_status); }; } &&
13881 { ac_try='test -s conftest$ac_exeext'
13882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13883 (eval $ac_try) 2>&5
13884 ac_status=$?
13885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13886 (exit $ac_status); }; }; then
13887 ac_cv_lib_m_sqrt=yes
13888else
13889 echo "$as_me: failed program was:" >&5
13890sed 's/^/| /' conftest.$ac_ext >&5
13891
13892ac_cv_lib_m_sqrt=no
13893fi
13894rm -f conftest.err conftest.$ac_objext \
13895 conftest$ac_exeext conftest.$ac_ext
13896LIBS=$ac_check_lib_save_LIBS
13897fi
13898echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
13899echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6
13900if test $ac_cv_lib_m_sqrt = yes; then
13901 cat >>confdefs.h <<_ACEOF
13902#define HAVE_LIBM 1
13903_ACEOF
13904
13905 LIBS="-lm $LIBS"
13906
13907fi
13908
13909
13910# Check for mail-locking functions in a "mail" library. Probably this should
13911# have the same check as for liblockfile below.
13912
13913echo "$as_me:$LINENO: checking for maillock in -lmail" >&5
13914echo $ECHO_N "checking for maillock in -lmail... $ECHO_C" >&6
13915if test "${ac_cv_lib_mail_maillock+set}" = set; then
13916 echo $ECHO_N "(cached) $ECHO_C" >&6
13917else
13918 ac_check_lib_save_LIBS=$LIBS
13919LIBS="-lmail $LIBS"
13920cat >conftest.$ac_ext <<_ACEOF
13921/* confdefs.h. */
13922_ACEOF
13923cat confdefs.h >>conftest.$ac_ext
13924cat >>conftest.$ac_ext <<_ACEOF
13925/* end confdefs.h. */
13926
13927/* Override any gcc2 internal prototype to avoid an error. */
13928#ifdef __cplusplus
13929extern "C"
13930#endif
13931/* We use char because int might match the return type of a gcc2
13932 builtin and then its argument prototype would still apply. */
13933char maillock ();
13934int
13935main ()
13936{
13937maillock ();
13938 ;
13939 return 0;
13940}
13941_ACEOF
13942rm -f conftest.$ac_objext conftest$ac_exeext
13943if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13944 (eval $ac_link) 2>conftest.er1
13945 ac_status=$?
13946 grep -v '^ *+' conftest.er1 >conftest.err
13947 rm -f conftest.er1
13948 cat conftest.err >&5
13949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13950 (exit $ac_status); } &&
13951 { ac_try='test -z "$ac_c_werror_flag"
13952 || test ! -s conftest.err'
13953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13954 (eval $ac_try) 2>&5
13955 ac_status=$?
13956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13957 (exit $ac_status); }; } &&
13958 { ac_try='test -s conftest$ac_exeext'
13959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13960 (eval $ac_try) 2>&5
13961 ac_status=$?
13962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13963 (exit $ac_status); }; }; then
13964 ac_cv_lib_mail_maillock=yes
13965else
13966 echo "$as_me: failed program was:" >&5
13967sed 's/^/| /' conftest.$ac_ext >&5
13968
13969ac_cv_lib_mail_maillock=no
13970fi
13971rm -f conftest.err conftest.$ac_objext \
13972 conftest$ac_exeext conftest.$ac_ext
13973LIBS=$ac_check_lib_save_LIBS
13974fi
13975echo "$as_me:$LINENO: result: $ac_cv_lib_mail_maillock" >&5
13976echo "${ECHO_T}$ac_cv_lib_mail_maillock" >&6
13977if test $ac_cv_lib_mail_maillock = yes; then
13978 cat >>confdefs.h <<_ACEOF
13979#define HAVE_LIBMAIL 1
13980_ACEOF
13981
13982 LIBS="-lmail $LIBS"
13983
13984fi
13985
13986
13987echo "$as_me:$LINENO: checking for maillock in -llockfile" >&5
13988echo $ECHO_N "checking for maillock in -llockfile... $ECHO_C" >&6
13989if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
13990 echo $ECHO_N "(cached) $ECHO_C" >&6
13991else
13992 ac_check_lib_save_LIBS=$LIBS
13993LIBS="-llockfile $LIBS"
13994cat >conftest.$ac_ext <<_ACEOF
13995/* confdefs.h. */
13996_ACEOF
13997cat confdefs.h >>conftest.$ac_ext
13998cat >>conftest.$ac_ext <<_ACEOF
13999/* end confdefs.h. */
14000
14001/* Override any gcc2 internal prototype to avoid an error. */
14002#ifdef __cplusplus
14003extern "C"
14004#endif
14005/* We use char because int might match the return type of a gcc2
14006 builtin and then its argument prototype would still apply. */
14007char maillock ();
14008int
14009main ()
14010{
14011maillock ();
14012 ;
14013 return 0;
14014}
14015_ACEOF
14016rm -f conftest.$ac_objext conftest$ac_exeext
14017if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14018 (eval $ac_link) 2>conftest.er1
14019 ac_status=$?
14020 grep -v '^ *+' conftest.er1 >conftest.err
14021 rm -f conftest.er1
14022 cat conftest.err >&5
14023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14024 (exit $ac_status); } &&
14025 { ac_try='test -z "$ac_c_werror_flag"
14026 || test ! -s conftest.err'
14027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14028 (eval $ac_try) 2>&5
14029 ac_status=$?
14030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14031 (exit $ac_status); }; } &&
14032 { ac_try='test -s conftest$ac_exeext'
14033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14034 (eval $ac_try) 2>&5
14035 ac_status=$?
14036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14037 (exit $ac_status); }; }; then
14038 ac_cv_lib_lockfile_maillock=yes
14039else
14040 echo "$as_me: failed program was:" >&5
14041sed 's/^/| /' conftest.$ac_ext >&5
14042
14043ac_cv_lib_lockfile_maillock=no
14044fi
14045rm -f conftest.err conftest.$ac_objext \
14046 conftest$ac_exeext conftest.$ac_ext
14047LIBS=$ac_check_lib_save_LIBS
14048fi
14049echo "$as_me:$LINENO: result: $ac_cv_lib_lockfile_maillock" >&5
14050echo "${ECHO_T}$ac_cv_lib_lockfile_maillock" >&6
14051if test $ac_cv_lib_lockfile_maillock = yes; then
14052 cat >>confdefs.h <<_ACEOF
14053#define HAVE_LIBLOCKFILE 1
14054_ACEOF
14055
14056 LIBS="-llockfile $LIBS"
14057
14058fi
14059
14060# If we have the shared liblockfile, assume we must use it for mail
14061# locking (e.g. Debian). If we couldn't link against liblockfile
14062# (no liblockfile.a installed), ensure that we don't need to.
14063if test "$ac_cv_lib_lockfile_maillock" = no; then
14064 # Extract the first word of "liblockfile.so", so it can be a program name with args.
14065set dummy liblockfile.so; ac_word=$2
14066echo "$as_me:$LINENO: checking for $ac_word" >&5
14067echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14068if test "${ac_cv_prog_liblockfile+set}" = set; then
14069 echo $ECHO_N "(cached) $ECHO_C" >&6
14070else
14071 if test -n "$liblockfile"; then
14072 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
14073else
14074as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14075as_dummy="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
14076for as_dir in $as_dummy
14077do
14078 IFS=$as_save_IFS
14079 test -z "$as_dir" && as_dir=.
14080 for ac_exec_ext in '' $ac_executable_extensions; do
14081 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14082 ac_cv_prog_liblockfile="yes"
14083 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14084 break 2
14085 fi
14086done
14087done
14088
14089 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no"
14090fi
14091fi
14092liblockfile=$ac_cv_prog_liblockfile
14093if test -n "$liblockfile"; then
14094 echo "$as_me:$LINENO: result: $liblockfile" >&5
14095echo "${ECHO_T}$liblockfile" >&6
14096else
14097 echo "$as_me:$LINENO: result: no" >&5
14098echo "${ECHO_T}no" >&6
14099fi
14100
14101 if test $ac_cv_prog_liblockfile = yes; then
14102 { { echo "$as_me:$LINENO: error: Shared liblockfile found but can't link against it.
14103This probably means that movemail could lose mail.
14104There may be a \`development' package to install containing liblockfile." >&5
14105echo "$as_me: error: Shared liblockfile found but can't link against it.
14106This probably means that movemail could lose mail.
14107There may be a \`development' package to install containing liblockfile." >&2;}
14108 { (exit 1); exit 1; }; }
14109 else :
14110 fi
14111fi
14112
14113for ac_func in touchlock
14114do
14115as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14116echo "$as_me:$LINENO: checking for $ac_func" >&5
14117echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14118if eval "test \"\${$as_ac_var+set}\" = set"; then
14119 echo $ECHO_N "(cached) $ECHO_C" >&6
14120else
14121 cat >conftest.$ac_ext <<_ACEOF
14122/* confdefs.h. */
14123_ACEOF
14124cat confdefs.h >>conftest.$ac_ext
14125cat >>conftest.$ac_ext <<_ACEOF
14126/* end confdefs.h. */
14127/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14128 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14129#define $ac_func innocuous_$ac_func
14130
14131/* System header to define __stub macros and hopefully few prototypes,
14132 which can conflict with char $ac_func (); below.
14133 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14134 <limits.h> exists even on freestanding compilers. */
14135
14136#ifdef __STDC__
14137# include <limits.h>
14138#else
14139# include <assert.h>
14140#endif
14141
14142#undef $ac_func
14143
14144/* Override any gcc2 internal prototype to avoid an error. */
14145#ifdef __cplusplus
14146extern "C"
14147{
14148#endif
14149/* We use char because int might match the return type of a gcc2
14150 builtin and then its argument prototype would still apply. */
14151char $ac_func ();
14152/* The GNU C library defines this for functions which it implements
14153 to always fail with ENOSYS. Some functions are actually named
14154 something starting with __ and the normal name is an alias. */
14155#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14156choke me
14157#else
14158char (*f) () = $ac_func;
14159#endif
14160#ifdef __cplusplus
14161}
14162#endif
14163
14164int
14165main ()
14166{
14167return f != $ac_func;
14168 ;
14169 return 0;
14170}
14171_ACEOF
14172rm -f conftest.$ac_objext conftest$ac_exeext
14173if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14174 (eval $ac_link) 2>conftest.er1
14175 ac_status=$?
14176 grep -v '^ *+' conftest.er1 >conftest.err
14177 rm -f conftest.er1
14178 cat conftest.err >&5
14179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14180 (exit $ac_status); } &&
14181 { ac_try='test -z "$ac_c_werror_flag"
14182 || test ! -s conftest.err'
14183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14184 (eval $ac_try) 2>&5
14185 ac_status=$?
14186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14187 (exit $ac_status); }; } &&
14188 { ac_try='test -s conftest$ac_exeext'
14189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14190 (eval $ac_try) 2>&5
14191 ac_status=$?
14192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14193 (exit $ac_status); }; }; then
14194 eval "$as_ac_var=yes"
14195else
14196 echo "$as_me: failed program was:" >&5
14197sed 's/^/| /' conftest.$ac_ext >&5
14198
14199eval "$as_ac_var=no"
14200fi
14201rm -f conftest.err conftest.$ac_objext \
14202 conftest$ac_exeext conftest.$ac_ext
14203fi
14204echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14205echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14206if test `eval echo '${'$as_ac_var'}'` = yes; then
14207 cat >>confdefs.h <<_ACEOF
14208#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14209_ACEOF
14210
14211fi
14212done
14213
14214
14215for ac_header in maillock.h
14216do
14217as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14218if eval "test \"\${$as_ac_Header+set}\" = set"; then
14219 echo "$as_me:$LINENO: checking for $ac_header" >&5
14220echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14221if eval "test \"\${$as_ac_Header+set}\" = set"; then
14222 echo $ECHO_N "(cached) $ECHO_C" >&6
14223fi
14224echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14225echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14226else
14227 # Is the header compilable?
14228echo "$as_me:$LINENO: checking $ac_header usability" >&5
14229echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14230cat >conftest.$ac_ext <<_ACEOF
14231/* confdefs.h. */
14232_ACEOF
14233cat confdefs.h >>conftest.$ac_ext
14234cat >>conftest.$ac_ext <<_ACEOF
14235/* end confdefs.h. */
14236$ac_includes_default
14237#include <$ac_header>
14238_ACEOF
14239rm -f conftest.$ac_objext
14240if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14241 (eval $ac_compile) 2>conftest.er1
14242 ac_status=$?
14243 grep -v '^ *+' conftest.er1 >conftest.err
14244 rm -f conftest.er1
14245 cat conftest.err >&5
14246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14247 (exit $ac_status); } &&
14248 { ac_try='test -z "$ac_c_werror_flag"
14249 || test ! -s conftest.err'
14250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14251 (eval $ac_try) 2>&5
14252 ac_status=$?
14253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14254 (exit $ac_status); }; } &&
14255 { ac_try='test -s conftest.$ac_objext'
14256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14257 (eval $ac_try) 2>&5
14258 ac_status=$?
14259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14260 (exit $ac_status); }; }; then
14261 ac_header_compiler=yes
14262else
14263 echo "$as_me: failed program was:" >&5
14264sed 's/^/| /' conftest.$ac_ext >&5
14265
14266ac_header_compiler=no
14267fi
14268rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14269echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14270echo "${ECHO_T}$ac_header_compiler" >&6
14271
14272# Is the header present?
14273echo "$as_me:$LINENO: checking $ac_header presence" >&5
14274echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14275cat >conftest.$ac_ext <<_ACEOF
14276/* confdefs.h. */
14277_ACEOF
14278cat confdefs.h >>conftest.$ac_ext
14279cat >>conftest.$ac_ext <<_ACEOF
14280/* end confdefs.h. */
14281#include <$ac_header>
14282_ACEOF
14283if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14284 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14285 ac_status=$?
14286 grep -v '^ *+' conftest.er1 >conftest.err
14287 rm -f conftest.er1
14288 cat conftest.err >&5
14289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14290 (exit $ac_status); } >/dev/null; then
14291 if test -s conftest.err; then
14292 ac_cpp_err=$ac_c_preproc_warn_flag
14293 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14294 else
14295 ac_cpp_err=
14296 fi
14297else
14298 ac_cpp_err=yes
14299fi
14300if test -z "$ac_cpp_err"; then
14301 ac_header_preproc=yes
14302else
14303 echo "$as_me: failed program was:" >&5
14304sed 's/^/| /' conftest.$ac_ext >&5
14305
14306 ac_header_preproc=no
14307fi
14308rm -f conftest.err conftest.$ac_ext
14309echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14310echo "${ECHO_T}$ac_header_preproc" >&6
14311
14312# So? What about this header?
14313case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14314 yes:no: )
14315 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14316echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14317 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14318echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14319 ac_header_preproc=yes
14320 ;;
14321 no:yes:* )
14322 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14323echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14324 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14325echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14326 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14327echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14328 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14329echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14330 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14331echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14332 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14333echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14334 (
14335 cat <<\_ASBOX
14336## ------------------------------------------ ##
14337## Report this to the AC_PACKAGE_NAME lists. ##
14338## ------------------------------------------ ##
14339_ASBOX
14340 ) |
14341 sed "s/^/$as_me: WARNING: /" >&2
14342 ;;
14343esac
14344echo "$as_me:$LINENO: checking for $ac_header" >&5
14345echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14346if eval "test \"\${$as_ac_Header+set}\" = set"; then
14347 echo $ECHO_N "(cached) $ECHO_C" >&6
14348else
14349 eval "$as_ac_Header=\$ac_header_preproc"
14350fi
14351echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14352echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14353
14354fi
14355if test `eval echo '${'$as_ac_Header'}'` = yes; then
14356 cat >>confdefs.h <<_ACEOF
14357#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14358_ACEOF
14359
14360fi
14361
14362done
14363
14364
14365
14366
14367
14368
14369
14370
14371
14372
14373
14374
14375
14376
14377
14378
14379
14380
14381
14382
14383
14384
14385
14386
14387
14388
14389
14390
14391
14392
14393
14394
14395
14396
14397
14398
14399
14400
14401
14402
14403
14404
14405
14406
14407
14408
14409
14410
14411
14412
14413
14414
14415
14416
14417
14418
14419
14420
14421
14422
14423
14424
14425
14426
14427
14428
14429
14430
14431
14432
14433for ac_func in gethostname getdomainname dup2 \
14434rename closedir mkdir rmdir sysinfo getrusage get_current_dir_name \
14435random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime res_init setsid \
14436strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \
14437utimes setrlimit setpgid getcwd getwd shutdown getaddrinfo \
14438__fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
14439sendto recvfrom getsockopt setsockopt getsockname getpeername \
14440gai_strerror mkstemp getline getdelim mremap memmove fsync bzero \
14441memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign
14442do
14443as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14444echo "$as_me:$LINENO: checking for $ac_func" >&5
14445echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14446if eval "test \"\${$as_ac_var+set}\" = set"; then
14447 echo $ECHO_N "(cached) $ECHO_C" >&6
14448else
14449 cat >conftest.$ac_ext <<_ACEOF
14450/* confdefs.h. */
14451_ACEOF
14452cat confdefs.h >>conftest.$ac_ext
14453cat >>conftest.$ac_ext <<_ACEOF
14454/* end confdefs.h. */
14455/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14456 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14457#define $ac_func innocuous_$ac_func
14458
14459/* System header to define __stub macros and hopefully few prototypes,
14460 which can conflict with char $ac_func (); below.
14461 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14462 <limits.h> exists even on freestanding compilers. */
14463
14464#ifdef __STDC__
14465# include <limits.h>
14466#else
14467# include <assert.h>
14468#endif
14469
14470#undef $ac_func
14471
14472/* Override any gcc2 internal prototype to avoid an error. */
14473#ifdef __cplusplus
14474extern "C"
14475{
14476#endif
14477/* We use char because int might match the return type of a gcc2
14478 builtin and then its argument prototype would still apply. */
14479char $ac_func ();
14480/* The GNU C library defines this for functions which it implements
14481 to always fail with ENOSYS. Some functions are actually named
14482 something starting with __ and the normal name is an alias. */
14483#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14484choke me
14485#else
14486char (*f) () = $ac_func;
14487#endif
14488#ifdef __cplusplus
14489}
14490#endif
14491
14492int
14493main ()
14494{
14495return f != $ac_func;
14496 ;
14497 return 0;
14498}
14499_ACEOF
14500rm -f conftest.$ac_objext conftest$ac_exeext
14501if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14502 (eval $ac_link) 2>conftest.er1
14503 ac_status=$?
14504 grep -v '^ *+' conftest.er1 >conftest.err
14505 rm -f conftest.er1
14506 cat conftest.err >&5
14507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14508 (exit $ac_status); } &&
14509 { ac_try='test -z "$ac_c_werror_flag"
14510 || test ! -s conftest.err'
14511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14512 (eval $ac_try) 2>&5
14513 ac_status=$?
14514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14515 (exit $ac_status); }; } &&
14516 { ac_try='test -s conftest$ac_exeext'
14517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14518 (eval $ac_try) 2>&5
14519 ac_status=$?
14520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14521 (exit $ac_status); }; }; then
14522 eval "$as_ac_var=yes"
14523else
14524 echo "$as_me: failed program was:" >&5
14525sed 's/^/| /' conftest.$ac_ext >&5
14526
14527eval "$as_ac_var=no"
14528fi
14529rm -f conftest.err conftest.$ac_objext \
14530 conftest$ac_exeext conftest.$ac_ext
14531fi
14532echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14533echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14534if test `eval echo '${'$as_ac_var'}'` = yes; then
14535 cat >>confdefs.h <<_ACEOF
14536#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14537_ACEOF
14538
14539fi
14540done
14541
14542
14543
14544for ac_header in sys/un.h
14545do
14546as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14547if eval "test \"\${$as_ac_Header+set}\" = set"; then
14548 echo "$as_me:$LINENO: checking for $ac_header" >&5
14549echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14550if eval "test \"\${$as_ac_Header+set}\" = set"; then
14551 echo $ECHO_N "(cached) $ECHO_C" >&6
14552fi
14553echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14554echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14555else
14556 # Is the header compilable?
14557echo "$as_me:$LINENO: checking $ac_header usability" >&5
14558echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14559cat >conftest.$ac_ext <<_ACEOF
14560/* confdefs.h. */
14561_ACEOF
14562cat confdefs.h >>conftest.$ac_ext
14563cat >>conftest.$ac_ext <<_ACEOF
14564/* end confdefs.h. */
14565$ac_includes_default
14566#include <$ac_header>
14567_ACEOF
14568rm -f conftest.$ac_objext
14569if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14570 (eval $ac_compile) 2>conftest.er1
14571 ac_status=$?
14572 grep -v '^ *+' conftest.er1 >conftest.err
14573 rm -f conftest.er1
14574 cat conftest.err >&5
14575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14576 (exit $ac_status); } &&
14577 { ac_try='test -z "$ac_c_werror_flag"
14578 || test ! -s conftest.err'
14579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14580 (eval $ac_try) 2>&5
14581 ac_status=$?
14582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14583 (exit $ac_status); }; } &&
14584 { ac_try='test -s conftest.$ac_objext'
14585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14586 (eval $ac_try) 2>&5
14587 ac_status=$?
14588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14589 (exit $ac_status); }; }; then
14590 ac_header_compiler=yes
14591else
14592 echo "$as_me: failed program was:" >&5
14593sed 's/^/| /' conftest.$ac_ext >&5
14594
14595ac_header_compiler=no
14596fi
14597rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14598echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14599echo "${ECHO_T}$ac_header_compiler" >&6
14600
14601# Is the header present?
14602echo "$as_me:$LINENO: checking $ac_header presence" >&5
14603echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14604cat >conftest.$ac_ext <<_ACEOF
14605/* confdefs.h. */
14606_ACEOF
14607cat confdefs.h >>conftest.$ac_ext
14608cat >>conftest.$ac_ext <<_ACEOF
14609/* end confdefs.h. */
14610#include <$ac_header>
14611_ACEOF
14612if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14613 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14614 ac_status=$?
14615 grep -v '^ *+' conftest.er1 >conftest.err
14616 rm -f conftest.er1
14617 cat conftest.err >&5
14618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14619 (exit $ac_status); } >/dev/null; then
14620 if test -s conftest.err; then
14621 ac_cpp_err=$ac_c_preproc_warn_flag
14622 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14623 else
14624 ac_cpp_err=
14625 fi
14626else
14627 ac_cpp_err=yes
14628fi
14629if test -z "$ac_cpp_err"; then
14630 ac_header_preproc=yes
14631else
14632 echo "$as_me: failed program was:" >&5
14633sed 's/^/| /' conftest.$ac_ext >&5
14634
14635 ac_header_preproc=no
14636fi
14637rm -f conftest.err conftest.$ac_ext
14638echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14639echo "${ECHO_T}$ac_header_preproc" >&6
14640
14641# So? What about this header?
14642case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14643 yes:no: )
14644 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14645echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14646 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14647echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14648 ac_header_preproc=yes
14649 ;;
14650 no:yes:* )
14651 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14652echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14653 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14654echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14655 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14656echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14657 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14658echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14659 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14660echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14661 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14662echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14663 (
14664 cat <<\_ASBOX
14665## ------------------------------------------ ##
14666## Report this to the AC_PACKAGE_NAME lists. ##
14667## ------------------------------------------ ##
14668_ASBOX
14669 ) |
14670 sed "s/^/$as_me: WARNING: /" >&2
14671 ;;
14672esac
14673echo "$as_me:$LINENO: checking for $ac_header" >&5
14674echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14675if eval "test \"\${$as_ac_Header+set}\" = set"; then
14676 echo $ECHO_N "(cached) $ECHO_C" >&6
14677else
14678 eval "$as_ac_Header=\$ac_header_preproc"
14679fi
14680echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14681echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14682
14683fi
14684if test `eval echo '${'$as_ac_Header'}'` = yes; then
14685 cat >>confdefs.h <<_ACEOF
14686#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14687_ACEOF
14688
14689fi
14690
14691done
14692
14693
14694
14695
14696
14697for ac_header in stdlib.h sys/time.h unistd.h
14698do
14699as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14700if eval "test \"\${$as_ac_Header+set}\" = set"; then
14701 echo "$as_me:$LINENO: checking for $ac_header" >&5
14702echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14703if eval "test \"\${$as_ac_Header+set}\" = set"; then
14704 echo $ECHO_N "(cached) $ECHO_C" >&6
14705fi
14706echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14707echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14708else
14709 # Is the header compilable?
14710echo "$as_me:$LINENO: checking $ac_header usability" >&5
14711echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14712cat >conftest.$ac_ext <<_ACEOF
14713/* confdefs.h. */
14714_ACEOF
14715cat confdefs.h >>conftest.$ac_ext
14716cat >>conftest.$ac_ext <<_ACEOF
14717/* end confdefs.h. */
14718$ac_includes_default
14719#include <$ac_header>
14720_ACEOF
14721rm -f conftest.$ac_objext
14722if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14723 (eval $ac_compile) 2>conftest.er1
14724 ac_status=$?
14725 grep -v '^ *+' conftest.er1 >conftest.err
14726 rm -f conftest.er1
14727 cat conftest.err >&5
14728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14729 (exit $ac_status); } &&
14730 { ac_try='test -z "$ac_c_werror_flag"
14731 || test ! -s conftest.err'
14732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14733 (eval $ac_try) 2>&5
14734 ac_status=$?
14735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14736 (exit $ac_status); }; } &&
14737 { ac_try='test -s conftest.$ac_objext'
14738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14739 (eval $ac_try) 2>&5
14740 ac_status=$?
14741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14742 (exit $ac_status); }; }; then
14743 ac_header_compiler=yes
14744else
14745 echo "$as_me: failed program was:" >&5
14746sed 's/^/| /' conftest.$ac_ext >&5
14747
14748ac_header_compiler=no
14749fi
14750rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14751echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14752echo "${ECHO_T}$ac_header_compiler" >&6
14753
14754# Is the header present?
14755echo "$as_me:$LINENO: checking $ac_header presence" >&5
14756echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14757cat >conftest.$ac_ext <<_ACEOF
14758/* confdefs.h. */
14759_ACEOF
14760cat confdefs.h >>conftest.$ac_ext
14761cat >>conftest.$ac_ext <<_ACEOF
14762/* end confdefs.h. */
14763#include <$ac_header>
14764_ACEOF
14765if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14766 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14767 ac_status=$?
14768 grep -v '^ *+' conftest.er1 >conftest.err
14769 rm -f conftest.er1
14770 cat conftest.err >&5
14771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14772 (exit $ac_status); } >/dev/null; then
14773 if test -s conftest.err; then
14774 ac_cpp_err=$ac_c_preproc_warn_flag
14775 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14776 else
14777 ac_cpp_err=
14778 fi
14779else
14780 ac_cpp_err=yes
14781fi
14782if test -z "$ac_cpp_err"; then
14783 ac_header_preproc=yes
14784else
14785 echo "$as_me: failed program was:" >&5
14786sed 's/^/| /' conftest.$ac_ext >&5
14787
14788 ac_header_preproc=no
14789fi
14790rm -f conftest.err conftest.$ac_ext
14791echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14792echo "${ECHO_T}$ac_header_preproc" >&6
14793
14794# So? What about this header?
14795case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14796 yes:no: )
14797 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14798echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14799 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14800echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14801 ac_header_preproc=yes
14802 ;;
14803 no:yes:* )
14804 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14805echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14806 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14807echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14808 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14809echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14810 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14811echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14812 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14813echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14814 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14815echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14816 (
14817 cat <<\_ASBOX
14818## ------------------------------------------ ##
14819## Report this to the AC_PACKAGE_NAME lists. ##
14820## ------------------------------------------ ##
14821_ASBOX
14822 ) |
14823 sed "s/^/$as_me: WARNING: /" >&2
14824 ;;
14825esac
14826echo "$as_me:$LINENO: checking for $ac_header" >&5
14827echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14828if eval "test \"\${$as_ac_Header+set}\" = set"; then
14829 echo $ECHO_N "(cached) $ECHO_C" >&6
14830else
14831 eval "$as_ac_Header=\$ac_header_preproc"
14832fi
14833echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14834echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14835
14836fi
14837if test `eval echo '${'$as_ac_Header'}'` = yes; then
14838 cat >>confdefs.h <<_ACEOF
14839#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14840_ACEOF
14841
14842fi
14843
14844done
14845
14846
14847for ac_func in alarm
14848do
14849as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14850echo "$as_me:$LINENO: checking for $ac_func" >&5
14851echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14852if eval "test \"\${$as_ac_var+set}\" = set"; then
14853 echo $ECHO_N "(cached) $ECHO_C" >&6
14854else
14855 cat >conftest.$ac_ext <<_ACEOF
14856/* confdefs.h. */
14857_ACEOF
14858cat confdefs.h >>conftest.$ac_ext
14859cat >>conftest.$ac_ext <<_ACEOF
14860/* end confdefs.h. */
14861/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14862 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14863#define $ac_func innocuous_$ac_func
14864
14865/* System header to define __stub macros and hopefully few prototypes,
14866 which can conflict with char $ac_func (); below.
14867 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14868 <limits.h> exists even on freestanding compilers. */
14869
14870#ifdef __STDC__
14871# include <limits.h>
14872#else
14873# include <assert.h>
14874#endif
14875
14876#undef $ac_func
14877
14878/* Override any gcc2 internal prototype to avoid an error. */
14879#ifdef __cplusplus
14880extern "C"
14881{
14882#endif
14883/* We use char because int might match the return type of a gcc2
14884 builtin and then its argument prototype would still apply. */
14885char $ac_func ();
14886/* The GNU C library defines this for functions which it implements
14887 to always fail with ENOSYS. Some functions are actually named
14888 something starting with __ and the normal name is an alias. */
14889#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14890choke me
14891#else
14892char (*f) () = $ac_func;
14893#endif
14894#ifdef __cplusplus
14895}
14896#endif
14897
14898int
14899main ()
14900{
14901return f != $ac_func;
14902 ;
14903 return 0;
14904}
14905_ACEOF
14906rm -f conftest.$ac_objext conftest$ac_exeext
14907if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14908 (eval $ac_link) 2>conftest.er1
14909 ac_status=$?
14910 grep -v '^ *+' conftest.er1 >conftest.err
14911 rm -f conftest.er1
14912 cat conftest.err >&5
14913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14914 (exit $ac_status); } &&
14915 { ac_try='test -z "$ac_c_werror_flag"
14916 || test ! -s conftest.err'
14917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14918 (eval $ac_try) 2>&5
14919 ac_status=$?
14920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14921 (exit $ac_status); }; } &&
14922 { ac_try='test -s conftest$ac_exeext'
14923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14924 (eval $ac_try) 2>&5
14925 ac_status=$?
14926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14927 (exit $ac_status); }; }; then
14928 eval "$as_ac_var=yes"
14929else
14930 echo "$as_me: failed program was:" >&5
14931sed 's/^/| /' conftest.$ac_ext >&5
14932
14933eval "$as_ac_var=no"
14934fi
14935rm -f conftest.err conftest.$ac_objext \
14936 conftest$ac_exeext conftest.$ac_ext
14937fi
14938echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14939echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14940if test `eval echo '${'$as_ac_var'}'` = yes; then
14941 cat >>confdefs.h <<_ACEOF
14942#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14943_ACEOF
14944
14945fi
14946done
14947
14948echo "$as_me:$LINENO: checking for working mktime" >&5
14949echo $ECHO_N "checking for working mktime... $ECHO_C" >&6
14950if test "${ac_cv_func_working_mktime+set}" = set; then
14951 echo $ECHO_N "(cached) $ECHO_C" >&6
14952else
14953 if test "$cross_compiling" = yes; then
14954 ac_cv_func_working_mktime=no
14955else
14956 cat >conftest.$ac_ext <<_ACEOF
14957/* confdefs.h. */
14958_ACEOF
14959cat confdefs.h >>conftest.$ac_ext
14960cat >>conftest.$ac_ext <<_ACEOF
14961/* end confdefs.h. */
14962/* Test program from Paul Eggert and Tony Leneis. */
14963#if TIME_WITH_SYS_TIME
14964# include <sys/time.h>
14965# include <time.h>
14966#else
14967# if HAVE_SYS_TIME_H
14968# include <sys/time.h>
14969# else
14970# include <time.h>
14971# endif
14972#endif
14973
14974#if HAVE_STDLIB_H
14975# include <stdlib.h>
14976#endif
14977
14978#if HAVE_UNISTD_H
14979# include <unistd.h>
14980#endif
14981
14982#if !HAVE_ALARM
14983# define alarm(X) /* empty */
14984#endif
14985
14986/* Work around redefinition to rpl_putenv by other config tests. */
14987#undef putenv
14988
14989static time_t time_t_max;
14990static time_t time_t_min;
14991
14992/* Values we'll use to set the TZ environment variable. */
14993static char *tz_strings[] = {
14994 (char *) 0, "TZ=GMT0", "TZ=JST-9",
14995 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
14996};
14997#define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
14998
14999/* Fail if mktime fails to convert a date in the spring-forward gap.
15000 Based on a problem report from Andreas Jaeger. */
15001static void
15002spring_forward_gap ()
15003{
15004 /* glibc (up to about 1998-10-07) failed this test. */
15005 struct tm tm;
15006
15007 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
15008 instead of "TZ=America/Vancouver" in order to detect the bug even
15009 on systems that don't support the Olson extension, or don't have the
15010 full zoneinfo tables installed. */
15011 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
15012
15013 tm.tm_year = 98;
15014 tm.tm_mon = 3;
15015 tm.tm_mday = 5;
15016 tm.tm_hour = 2;
15017 tm.tm_min = 0;
15018 tm.tm_sec = 0;
15019 tm.tm_isdst = -1;
15020 if (mktime (&tm) == (time_t)-1)
15021 exit (1);
15022}
15023
15024static void
15025mktime_test1 (now)
15026 time_t now;
15027{
15028 struct tm *lt;
15029 if ((lt = localtime (&now)) && mktime (lt) != now)
15030 exit (1);
15031}
15032
15033static void
15034mktime_test (now)
15035 time_t now;
15036{
15037 mktime_test1 (now);
15038 mktime_test1 ((time_t) (time_t_max - now));
15039 mktime_test1 ((time_t) (time_t_min + now));
15040}
15041
15042static void
15043irix_6_4_bug ()
15044{
15045 /* Based on code from Ariel Faigon. */
15046 struct tm tm;
15047 tm.tm_year = 96;
15048 tm.tm_mon = 3;
15049 tm.tm_mday = 0;
15050 tm.tm_hour = 0;
15051 tm.tm_min = 0;
15052 tm.tm_sec = 0;
15053 tm.tm_isdst = -1;
15054 mktime (&tm);
15055 if (tm.tm_mon != 2 || tm.tm_mday != 31)
15056 exit (1);
15057}
15058
15059static void
15060bigtime_test (j)
15061 int j;
15062{
15063 struct tm tm;
15064 time_t now;
15065 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
15066 now = mktime (&tm);
15067 if (now != (time_t) -1)
15068 {
15069 struct tm *lt = localtime (&now);
15070 if (! (lt
15071 && lt->tm_year == tm.tm_year
15072 && lt->tm_mon == tm.tm_mon
15073 && lt->tm_mday == tm.tm_mday
15074 && lt->tm_hour == tm.tm_hour
15075 && lt->tm_min == tm.tm_min
15076 && lt->tm_sec == tm.tm_sec
15077 && lt->tm_yday == tm.tm_yday
15078 && lt->tm_wday == tm.tm_wday
15079 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
15080 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
15081 exit (1);
15082 }
15083}
15084
15085int
15086main ()
15087{
15088 time_t t, delta;
15089 int i, j;
15090
15091 /* This test makes some buggy mktime implementations loop.
15092 Give up after 60 seconds; a mktime slower than that
15093 isn't worth using anyway. */
15094 alarm (60);
15095
15096 for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
15097 continue;
15098 time_t_max--;
15099 if ((time_t) -1 < 0)
15100 for (time_t_min = -1; (time_t) (time_t_min * 2) < 0; time_t_min *= 2)
15101 continue;
15102 delta = time_t_max / 997; /* a suitable prime number */
15103 for (i = 0; i < N_STRINGS; i++)
15104 {
15105 if (tz_strings[i])
15106 putenv (tz_strings[i]);
15107
15108 for (t = 0; t <= time_t_max - delta; t += delta)
15109 mktime_test (t);
15110 mktime_test ((time_t) 1);
15111 mktime_test ((time_t) (60 * 60));
15112 mktime_test ((time_t) (60 * 60 * 24));
15113
15114 for (j = 1; 0 < j; j *= 2)
15115 bigtime_test (j);
15116 bigtime_test (j - 1);
15117 }
15118 irix_6_4_bug ();
15119 spring_forward_gap ();
15120 exit (0);
15121}
15122_ACEOF
15123rm -f conftest$ac_exeext
15124if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15125 (eval $ac_link) 2>&5
15126 ac_status=$?
15127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15128 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15130 (eval $ac_try) 2>&5
15131 ac_status=$?
15132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15133 (exit $ac_status); }; }; then
15134 ac_cv_func_working_mktime=yes
15135else
15136 echo "$as_me: program exited with status $ac_status" >&5
15137echo "$as_me: failed program was:" >&5
15138sed 's/^/| /' conftest.$ac_ext >&5
15139
15140( exit $ac_status )
15141ac_cv_func_working_mktime=no
15142fi
15143rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15144fi
15145fi
15146echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
15147echo "${ECHO_T}$ac_cv_func_working_mktime" >&6
15148if test $ac_cv_func_working_mktime = no; then
15149 case $LIBOBJS in
15150 "mktime.$ac_objext" | \
15151 *" mktime.$ac_objext" | \
15152 "mktime.$ac_objext "* | \
15153 *" mktime.$ac_objext "* ) ;;
15154 *) LIBOBJS="$LIBOBJS mktime.$ac_objext" ;;
15155esac
15156
15157fi
15158
15159if test "$ac_cv_func_working_mktime" = no; then
15160
15161cat >>confdefs.h <<\_ACEOF
15162#define BROKEN_MKTIME 1
15163_ACEOF
15164
15165fi
15166
15167ac_have_func=no # yes means we've found a way to get the load average.
15168
15169# Make sure getloadavg.c is where it belongs, at configure-time.
15170test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" ||
15171 { { echo "$as_me:$LINENO: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&5
15172echo "$as_me: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&2;}
15173 { (exit 1); exit 1; }; }
15174
15175ac_save_LIBS=$LIBS
15176
15177# Check for getloadavg, but be sure not to touch the cache variable.
15178(echo "$as_me:$LINENO: checking for getloadavg" >&5
15179echo $ECHO_N "checking for getloadavg... $ECHO_C" >&6
15180if test "${ac_cv_func_getloadavg+set}" = set; then
15181 echo $ECHO_N "(cached) $ECHO_C" >&6
15182else
15183 cat >conftest.$ac_ext <<_ACEOF
15184/* confdefs.h. */
15185_ACEOF
15186cat confdefs.h >>conftest.$ac_ext
15187cat >>conftest.$ac_ext <<_ACEOF
15188/* end confdefs.h. */
15189/* Define getloadavg to an innocuous variant, in case <limits.h> declares getloadavg.
15190 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15191#define getloadavg innocuous_getloadavg
15192
15193/* System header to define __stub macros and hopefully few prototypes,
15194 which can conflict with char getloadavg (); below.
15195 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15196 <limits.h> exists even on freestanding compilers. */
15197
15198#ifdef __STDC__
15199# include <limits.h>
15200#else
15201# include <assert.h>
15202#endif
15203
15204#undef getloadavg
15205
15206/* Override any gcc2 internal prototype to avoid an error. */
15207#ifdef __cplusplus
15208extern "C"
15209{
15210#endif
15211/* We use char because int might match the return type of a gcc2
15212 builtin and then its argument prototype would still apply. */
15213char getloadavg ();
15214/* The GNU C library defines this for functions which it implements
15215 to always fail with ENOSYS. Some functions are actually named
15216 something starting with __ and the normal name is an alias. */
15217#if defined (__stub_getloadavg) || defined (__stub___getloadavg)
15218choke me
15219#else
15220char (*f) () = getloadavg;
15221#endif
15222#ifdef __cplusplus
15223}
15224#endif
15225
15226int
15227main ()
15228{
15229return f != getloadavg;
15230 ;
15231 return 0;
15232}
15233_ACEOF
15234rm -f conftest.$ac_objext conftest$ac_exeext
15235if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15236 (eval $ac_link) 2>conftest.er1
15237 ac_status=$?
15238 grep -v '^ *+' conftest.er1 >conftest.err
15239 rm -f conftest.er1
15240 cat conftest.err >&5
15241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15242 (exit $ac_status); } &&
15243 { ac_try='test -z "$ac_c_werror_flag"
15244 || test ! -s conftest.err'
15245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15246 (eval $ac_try) 2>&5
15247 ac_status=$?
15248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15249 (exit $ac_status); }; } &&
15250 { ac_try='test -s conftest$ac_exeext'
15251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15252 (eval $ac_try) 2>&5
15253 ac_status=$?
15254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15255 (exit $ac_status); }; }; then
15256 ac_cv_func_getloadavg=yes
15257else
15258 echo "$as_me: failed program was:" >&5
15259sed 's/^/| /' conftest.$ac_ext >&5
15260
15261ac_cv_func_getloadavg=no
15262fi
15263rm -f conftest.err conftest.$ac_objext \
15264 conftest$ac_exeext conftest.$ac_ext
15265fi
15266echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg" >&5
15267echo "${ECHO_T}$ac_cv_func_getloadavg" >&6
15268if test $ac_cv_func_getloadavg = yes; then
15269 exit 0
15270else
15271 exit 1
15272fi
15273) && ac_have_func=yes
15274
15275# On HPUX9, an unprivileged user can get load averages through this function.
15276
15277for ac_func in pstat_getdynamic
15278do
15279as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15280echo "$as_me:$LINENO: checking for $ac_func" >&5
15281echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15282if eval "test \"\${$as_ac_var+set}\" = set"; then
15283 echo $ECHO_N "(cached) $ECHO_C" >&6
15284else
15285 cat >conftest.$ac_ext <<_ACEOF
15286/* confdefs.h. */
15287_ACEOF
15288cat confdefs.h >>conftest.$ac_ext
15289cat >>conftest.$ac_ext <<_ACEOF
15290/* end confdefs.h. */
15291/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15292 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15293#define $ac_func innocuous_$ac_func
15294
15295/* System header to define __stub macros and hopefully few prototypes,
15296 which can conflict with char $ac_func (); below.
15297 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15298 <limits.h> exists even on freestanding compilers. */
15299
15300#ifdef __STDC__
15301# include <limits.h>
15302#else
15303# include <assert.h>
15304#endif
15305
15306#undef $ac_func
15307
15308/* Override any gcc2 internal prototype to avoid an error. */
15309#ifdef __cplusplus
15310extern "C"
15311{
15312#endif
15313/* We use char because int might match the return type of a gcc2
15314 builtin and then its argument prototype would still apply. */
15315char $ac_func ();
15316/* The GNU C library defines this for functions which it implements
15317 to always fail with ENOSYS. Some functions are actually named
15318 something starting with __ and the normal name is an alias. */
15319#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15320choke me
15321#else
15322char (*f) () = $ac_func;
15323#endif
15324#ifdef __cplusplus
15325}
15326#endif
15327
15328int
15329main ()
15330{
15331return f != $ac_func;
15332 ;
15333 return 0;
15334}
15335_ACEOF
15336rm -f conftest.$ac_objext conftest$ac_exeext
15337if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15338 (eval $ac_link) 2>conftest.er1
15339 ac_status=$?
15340 grep -v '^ *+' conftest.er1 >conftest.err
15341 rm -f conftest.er1
15342 cat conftest.err >&5
15343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15344 (exit $ac_status); } &&
15345 { ac_try='test -z "$ac_c_werror_flag"
15346 || test ! -s conftest.err'
15347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15348 (eval $ac_try) 2>&5
15349 ac_status=$?
15350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15351 (exit $ac_status); }; } &&
15352 { ac_try='test -s conftest$ac_exeext'
15353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15354 (eval $ac_try) 2>&5
15355 ac_status=$?
15356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15357 (exit $ac_status); }; }; then
15358 eval "$as_ac_var=yes"
15359else
15360 echo "$as_me: failed program was:" >&5
15361sed 's/^/| /' conftest.$ac_ext >&5
15362
15363eval "$as_ac_var=no"
15364fi
15365rm -f conftest.err conftest.$ac_objext \
15366 conftest$ac_exeext conftest.$ac_ext
15367fi
15368echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15369echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15370if test `eval echo '${'$as_ac_var'}'` = yes; then
15371 cat >>confdefs.h <<_ACEOF
15372#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15373_ACEOF
15374
15375fi
15376done
15377
15378
15379# Solaris has libkstat which does not require root.
15380
15381echo "$as_me:$LINENO: checking for kstat_open in -lkstat" >&5
15382echo $ECHO_N "checking for kstat_open in -lkstat... $ECHO_C" >&6
15383if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
15384 echo $ECHO_N "(cached) $ECHO_C" >&6
15385else
15386 ac_check_lib_save_LIBS=$LIBS
15387LIBS="-lkstat $LIBS"
15388cat >conftest.$ac_ext <<_ACEOF
15389/* confdefs.h. */
15390_ACEOF
15391cat confdefs.h >>conftest.$ac_ext
15392cat >>conftest.$ac_ext <<_ACEOF
15393/* end confdefs.h. */
15394
15395/* Override any gcc2 internal prototype to avoid an error. */
15396#ifdef __cplusplus
15397extern "C"
15398#endif
15399/* We use char because int might match the return type of a gcc2
15400 builtin and then its argument prototype would still apply. */
15401char kstat_open ();
15402int
15403main ()
15404{
15405kstat_open ();
15406 ;
15407 return 0;
15408}
15409_ACEOF
15410rm -f conftest.$ac_objext conftest$ac_exeext
15411if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15412 (eval $ac_link) 2>conftest.er1
15413 ac_status=$?
15414 grep -v '^ *+' conftest.er1 >conftest.err
15415 rm -f conftest.er1
15416 cat conftest.err >&5
15417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15418 (exit $ac_status); } &&
15419 { ac_try='test -z "$ac_c_werror_flag"
15420 || test ! -s conftest.err'
15421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15422 (eval $ac_try) 2>&5
15423 ac_status=$?
15424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15425 (exit $ac_status); }; } &&
15426 { ac_try='test -s conftest$ac_exeext'
15427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15428 (eval $ac_try) 2>&5
15429 ac_status=$?
15430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15431 (exit $ac_status); }; }; then
15432 ac_cv_lib_kstat_kstat_open=yes
15433else
15434 echo "$as_me: failed program was:" >&5
15435sed 's/^/| /' conftest.$ac_ext >&5
15436
15437ac_cv_lib_kstat_kstat_open=no
15438fi
15439rm -f conftest.err conftest.$ac_objext \
15440 conftest$ac_exeext conftest.$ac_ext
15441LIBS=$ac_check_lib_save_LIBS
15442fi
15443echo "$as_me:$LINENO: result: $ac_cv_lib_kstat_kstat_open" >&5
15444echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6
15445if test $ac_cv_lib_kstat_kstat_open = yes; then
15446 cat >>confdefs.h <<_ACEOF
15447#define HAVE_LIBKSTAT 1
15448_ACEOF
15449
15450 LIBS="-lkstat $LIBS"
15451
15452fi
15453
15454test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes
15455
15456# Some systems with -lutil have (and need) -lkvm as well, some do not.
15457# On Solaris, -lkvm requires nlist from -lelf, so check that first
15458# to get the right answer into the cache.
15459# For kstat on solaris, we need libelf to force the definition of SVR4 below.
15460if test $ac_have_func = no; then
15461 echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
15462echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
15463if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
15464 echo $ECHO_N "(cached) $ECHO_C" >&6
15465else
15466 ac_check_lib_save_LIBS=$LIBS
15467LIBS="-lelf $LIBS"
15468cat >conftest.$ac_ext <<_ACEOF
15469/* confdefs.h. */
15470_ACEOF
15471cat confdefs.h >>conftest.$ac_ext
15472cat >>conftest.$ac_ext <<_ACEOF
15473/* end confdefs.h. */
15474
15475/* Override any gcc2 internal prototype to avoid an error. */
15476#ifdef __cplusplus
15477extern "C"
15478#endif
15479/* We use char because int might match the return type of a gcc2
15480 builtin and then its argument prototype would still apply. */
15481char elf_begin ();
15482int
15483main ()
15484{
15485elf_begin ();
15486 ;
15487 return 0;
15488}
15489_ACEOF
15490rm -f conftest.$ac_objext conftest$ac_exeext
15491if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15492 (eval $ac_link) 2>conftest.er1
15493 ac_status=$?
15494 grep -v '^ *+' conftest.er1 >conftest.err
15495 rm -f conftest.er1
15496 cat conftest.err >&5
15497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15498 (exit $ac_status); } &&
15499 { ac_try='test -z "$ac_c_werror_flag"
15500 || test ! -s conftest.err'
15501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15502 (eval $ac_try) 2>&5
15503 ac_status=$?
15504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15505 (exit $ac_status); }; } &&
15506 { ac_try='test -s conftest$ac_exeext'
15507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15508 (eval $ac_try) 2>&5
15509 ac_status=$?
15510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15511 (exit $ac_status); }; }; then
15512 ac_cv_lib_elf_elf_begin=yes
15513else
15514 echo "$as_me: failed program was:" >&5
15515sed 's/^/| /' conftest.$ac_ext >&5
15516
15517ac_cv_lib_elf_elf_begin=no
15518fi
15519rm -f conftest.err conftest.$ac_objext \
15520 conftest$ac_exeext conftest.$ac_ext
15521LIBS=$ac_check_lib_save_LIBS
15522fi
15523echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
15524echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
15525if test $ac_cv_lib_elf_elf_begin = yes; then
15526 LIBS="-lelf $LIBS"
15527fi
15528
15529fi
15530if test $ac_have_func = no; then
15531 echo "$as_me:$LINENO: checking for kvm_open in -lkvm" >&5
15532echo $ECHO_N "checking for kvm_open in -lkvm... $ECHO_C" >&6
15533if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
15534 echo $ECHO_N "(cached) $ECHO_C" >&6
15535else
15536 ac_check_lib_save_LIBS=$LIBS
15537LIBS="-lkvm $LIBS"
15538cat >conftest.$ac_ext <<_ACEOF
15539/* confdefs.h. */
15540_ACEOF
15541cat confdefs.h >>conftest.$ac_ext
15542cat >>conftest.$ac_ext <<_ACEOF
15543/* end confdefs.h. */
15544
15545/* Override any gcc2 internal prototype to avoid an error. */
15546#ifdef __cplusplus
15547extern "C"
15548#endif
15549/* We use char because int might match the return type of a gcc2
15550 builtin and then its argument prototype would still apply. */
15551char kvm_open ();
15552int
15553main ()
15554{
15555kvm_open ();
15556 ;
15557 return 0;
15558}
15559_ACEOF
15560rm -f conftest.$ac_objext conftest$ac_exeext
15561if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15562 (eval $ac_link) 2>conftest.er1
15563 ac_status=$?
15564 grep -v '^ *+' conftest.er1 >conftest.err
15565 rm -f conftest.er1
15566 cat conftest.err >&5
15567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15568 (exit $ac_status); } &&
15569 { ac_try='test -z "$ac_c_werror_flag"
15570 || test ! -s conftest.err'
15571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15572 (eval $ac_try) 2>&5
15573 ac_status=$?
15574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15575 (exit $ac_status); }; } &&
15576 { ac_try='test -s conftest$ac_exeext'
15577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15578 (eval $ac_try) 2>&5
15579 ac_status=$?
15580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15581 (exit $ac_status); }; }; then
15582 ac_cv_lib_kvm_kvm_open=yes
15583else
15584 echo "$as_me: failed program was:" >&5
15585sed 's/^/| /' conftest.$ac_ext >&5
15586
15587ac_cv_lib_kvm_kvm_open=no
15588fi
15589rm -f conftest.err conftest.$ac_objext \
15590 conftest$ac_exeext conftest.$ac_ext
15591LIBS=$ac_check_lib_save_LIBS
15592fi
15593echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_kvm_open" >&5
15594echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6
15595if test $ac_cv_lib_kvm_kvm_open = yes; then
15596 LIBS="-lkvm $LIBS"
15597fi
15598
15599 # Check for the 4.4BSD definition of getloadavg.
15600 echo "$as_me:$LINENO: checking for getloadavg in -lutil" >&5
15601echo $ECHO_N "checking for getloadavg in -lutil... $ECHO_C" >&6
15602if test "${ac_cv_lib_util_getloadavg+set}" = set; then
15603 echo $ECHO_N "(cached) $ECHO_C" >&6
15604else
15605 ac_check_lib_save_LIBS=$LIBS
15606LIBS="-lutil $LIBS"
15607cat >conftest.$ac_ext <<_ACEOF
15608/* confdefs.h. */
15609_ACEOF
15610cat confdefs.h >>conftest.$ac_ext
15611cat >>conftest.$ac_ext <<_ACEOF
15612/* end confdefs.h. */
15613
15614/* Override any gcc2 internal prototype to avoid an error. */
15615#ifdef __cplusplus
15616extern "C"
15617#endif
15618/* We use char because int might match the return type of a gcc2
15619 builtin and then its argument prototype would still apply. */
15620char getloadavg ();
15621int
15622main ()
15623{
15624getloadavg ();
15625 ;
15626 return 0;
15627}
15628_ACEOF
15629rm -f conftest.$ac_objext conftest$ac_exeext
15630if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15631 (eval $ac_link) 2>conftest.er1
15632 ac_status=$?
15633 grep -v '^ *+' conftest.er1 >conftest.err
15634 rm -f conftest.er1
15635 cat conftest.err >&5
15636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15637 (exit $ac_status); } &&
15638 { ac_try='test -z "$ac_c_werror_flag"
15639 || test ! -s conftest.err'
15640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15641 (eval $ac_try) 2>&5
15642 ac_status=$?
15643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15644 (exit $ac_status); }; } &&
15645 { ac_try='test -s conftest$ac_exeext'
15646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15647 (eval $ac_try) 2>&5
15648 ac_status=$?
15649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15650 (exit $ac_status); }; }; then
15651 ac_cv_lib_util_getloadavg=yes
15652else
15653 echo "$as_me: failed program was:" >&5
15654sed 's/^/| /' conftest.$ac_ext >&5
15655
15656ac_cv_lib_util_getloadavg=no
15657fi
15658rm -f conftest.err conftest.$ac_objext \
15659 conftest$ac_exeext conftest.$ac_ext
15660LIBS=$ac_check_lib_save_LIBS
15661fi
15662echo "$as_me:$LINENO: result: $ac_cv_lib_util_getloadavg" >&5
15663echo "${ECHO_T}$ac_cv_lib_util_getloadavg" >&6
15664if test $ac_cv_lib_util_getloadavg = yes; then
15665 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
15666fi
15667
15668fi
15669
15670if test $ac_have_func = no; then
15671 # There is a commonly available library for RS/6000 AIX.
15672 # Since it is not a standard part of AIX, it might be installed locally.
15673 ac_getloadavg_LIBS=$LIBS
15674 LIBS="-L/usr/local/lib $LIBS"
15675 echo "$as_me:$LINENO: checking for getloadavg in -lgetloadavg" >&5
15676echo $ECHO_N "checking for getloadavg in -lgetloadavg... $ECHO_C" >&6
15677if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
15678 echo $ECHO_N "(cached) $ECHO_C" >&6
15679else
15680 ac_check_lib_save_LIBS=$LIBS
15681LIBS="-lgetloadavg $LIBS"
15682cat >conftest.$ac_ext <<_ACEOF
15683/* confdefs.h. */
15684_ACEOF
15685cat confdefs.h >>conftest.$ac_ext
15686cat >>conftest.$ac_ext <<_ACEOF
15687/* end confdefs.h. */
15688
15689/* Override any gcc2 internal prototype to avoid an error. */
15690#ifdef __cplusplus
15691extern "C"
15692#endif
15693/* We use char because int might match the return type of a gcc2
15694 builtin and then its argument prototype would still apply. */
15695char getloadavg ();
15696int
15697main ()
15698{
15699getloadavg ();
15700 ;
15701 return 0;
15702}
15703_ACEOF
15704rm -f conftest.$ac_objext conftest$ac_exeext
15705if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15706 (eval $ac_link) 2>conftest.er1
15707 ac_status=$?
15708 grep -v '^ *+' conftest.er1 >conftest.err
15709 rm -f conftest.er1
15710 cat conftest.err >&5
15711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15712 (exit $ac_status); } &&
15713 { ac_try='test -z "$ac_c_werror_flag"
15714 || test ! -s conftest.err'
15715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15716 (eval $ac_try) 2>&5
15717 ac_status=$?
15718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15719 (exit $ac_status); }; } &&
15720 { ac_try='test -s conftest$ac_exeext'
15721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15722 (eval $ac_try) 2>&5
15723 ac_status=$?
15724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15725 (exit $ac_status); }; }; then
15726 ac_cv_lib_getloadavg_getloadavg=yes
15727else
15728 echo "$as_me: failed program was:" >&5
15729sed 's/^/| /' conftest.$ac_ext >&5
15730
15731ac_cv_lib_getloadavg_getloadavg=no
15732fi
15733rm -f conftest.err conftest.$ac_objext \
15734 conftest$ac_exeext conftest.$ac_ext
15735LIBS=$ac_check_lib_save_LIBS
15736fi
15737echo "$as_me:$LINENO: result: $ac_cv_lib_getloadavg_getloadavg" >&5
15738echo "${ECHO_T}$ac_cv_lib_getloadavg_getloadavg" >&6
15739if test $ac_cv_lib_getloadavg_getloadavg = yes; then
15740 LIBS="-lgetloadavg $LIBS"
15741else
15742 LIBS=$ac_getloadavg_LIBS
15743fi
15744
15745fi
15746
15747# Make sure it is really in the library, if we think we found it,
15748# otherwise set up the replacement function.
15749
15750for ac_func in getloadavg
15751do
15752as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15753echo "$as_me:$LINENO: checking for $ac_func" >&5
15754echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15755if eval "test \"\${$as_ac_var+set}\" = set"; then
15756 echo $ECHO_N "(cached) $ECHO_C" >&6
15757else
15758 cat >conftest.$ac_ext <<_ACEOF
15759/* confdefs.h. */
15760_ACEOF
15761cat confdefs.h >>conftest.$ac_ext
15762cat >>conftest.$ac_ext <<_ACEOF
15763/* end confdefs.h. */
15764/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15765 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15766#define $ac_func innocuous_$ac_func
15767
15768/* System header to define __stub macros and hopefully few prototypes,
15769 which can conflict with char $ac_func (); below.
15770 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15771 <limits.h> exists even on freestanding compilers. */
15772
15773#ifdef __STDC__
15774# include <limits.h>
15775#else
15776# include <assert.h>
15777#endif
15778
15779#undef $ac_func
15780
15781/* Override any gcc2 internal prototype to avoid an error. */
15782#ifdef __cplusplus
15783extern "C"
15784{
15785#endif
15786/* We use char because int might match the return type of a gcc2
15787 builtin and then its argument prototype would still apply. */
15788char $ac_func ();
15789/* The GNU C library defines this for functions which it implements
15790 to always fail with ENOSYS. Some functions are actually named
15791 something starting with __ and the normal name is an alias. */
15792#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15793choke me
15794#else
15795char (*f) () = $ac_func;
15796#endif
15797#ifdef __cplusplus
15798}
15799#endif
15800
15801int
15802main ()
15803{
15804return f != $ac_func;
15805 ;
15806 return 0;
15807}
15808_ACEOF
15809rm -f conftest.$ac_objext conftest$ac_exeext
15810if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15811 (eval $ac_link) 2>conftest.er1
15812 ac_status=$?
15813 grep -v '^ *+' conftest.er1 >conftest.err
15814 rm -f conftest.er1
15815 cat conftest.err >&5
15816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15817 (exit $ac_status); } &&
15818 { ac_try='test -z "$ac_c_werror_flag"
15819 || test ! -s conftest.err'
15820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15821 (eval $ac_try) 2>&5
15822 ac_status=$?
15823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15824 (exit $ac_status); }; } &&
15825 { ac_try='test -s conftest$ac_exeext'
15826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15827 (eval $ac_try) 2>&5
15828 ac_status=$?
15829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15830 (exit $ac_status); }; }; then
15831 eval "$as_ac_var=yes"
15832else
15833 echo "$as_me: failed program was:" >&5
15834sed 's/^/| /' conftest.$ac_ext >&5
15835
15836eval "$as_ac_var=no"
15837fi
15838rm -f conftest.err conftest.$ac_objext \
15839 conftest$ac_exeext conftest.$ac_ext
15840fi
15841echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15842echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15843if test `eval echo '${'$as_ac_var'}'` = yes; then
15844 cat >>confdefs.h <<_ACEOF
15845#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15846_ACEOF
15847
15848else
15849 case $LIBOBJS in
15850 "getloadavg.$ac_objext" | \
15851 *" getloadavg.$ac_objext" | \
15852 "getloadavg.$ac_objext "* | \
15853 *" getloadavg.$ac_objext "* ) ;;
15854 *) LIBOBJS="$LIBOBJS getloadavg.$ac_objext" ;;
15855esac
15856
15857
15858cat >>confdefs.h <<\_ACEOF
15859#define C_GETLOADAVG 1
15860_ACEOF
15861
15862# Figure out what our getloadavg.c needs.
15863ac_have_func=no
15864if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
15865 echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
15866echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
15867if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
15868 echo $ECHO_N "(cached) $ECHO_C" >&6
15869fi
15870echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
15871echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
15872else
15873 # Is the header compilable?
15874echo "$as_me:$LINENO: checking sys/dg_sys_info.h usability" >&5
15875echo $ECHO_N "checking sys/dg_sys_info.h usability... $ECHO_C" >&6
15876cat >conftest.$ac_ext <<_ACEOF
15877/* confdefs.h. */
15878_ACEOF
15879cat confdefs.h >>conftest.$ac_ext
15880cat >>conftest.$ac_ext <<_ACEOF
15881/* end confdefs.h. */
15882$ac_includes_default
15883#include <sys/dg_sys_info.h>
15884_ACEOF
15885rm -f conftest.$ac_objext
15886if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15887 (eval $ac_compile) 2>conftest.er1
15888 ac_status=$?
15889 grep -v '^ *+' conftest.er1 >conftest.err
15890 rm -f conftest.er1
15891 cat conftest.err >&5
15892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15893 (exit $ac_status); } &&
15894 { ac_try='test -z "$ac_c_werror_flag"
15895 || test ! -s conftest.err'
15896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15897 (eval $ac_try) 2>&5
15898 ac_status=$?
15899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15900 (exit $ac_status); }; } &&
15901 { ac_try='test -s conftest.$ac_objext'
15902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15903 (eval $ac_try) 2>&5
15904 ac_status=$?
15905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15906 (exit $ac_status); }; }; then
15907 ac_header_compiler=yes
15908else
15909 echo "$as_me: failed program was:" >&5
15910sed 's/^/| /' conftest.$ac_ext >&5
15911
15912ac_header_compiler=no
15913fi
15914rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15915echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15916echo "${ECHO_T}$ac_header_compiler" >&6
15917
15918# Is the header present?
15919echo "$as_me:$LINENO: checking sys/dg_sys_info.h presence" >&5
15920echo $ECHO_N "checking sys/dg_sys_info.h presence... $ECHO_C" >&6
15921cat >conftest.$ac_ext <<_ACEOF
15922/* confdefs.h. */
15923_ACEOF
15924cat confdefs.h >>conftest.$ac_ext
15925cat >>conftest.$ac_ext <<_ACEOF
15926/* end confdefs.h. */
15927#include <sys/dg_sys_info.h>
15928_ACEOF
15929if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15930 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15931 ac_status=$?
15932 grep -v '^ *+' conftest.er1 >conftest.err
15933 rm -f conftest.er1
15934 cat conftest.err >&5
15935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15936 (exit $ac_status); } >/dev/null; then
15937 if test -s conftest.err; then
15938 ac_cpp_err=$ac_c_preproc_warn_flag
15939 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15940 else
15941 ac_cpp_err=
15942 fi
15943else
15944 ac_cpp_err=yes
15945fi
15946if test -z "$ac_cpp_err"; then
15947 ac_header_preproc=yes
15948else
15949 echo "$as_me: failed program was:" >&5
15950sed 's/^/| /' conftest.$ac_ext >&5
15951
15952 ac_header_preproc=no
15953fi
15954rm -f conftest.err conftest.$ac_ext
15955echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15956echo "${ECHO_T}$ac_header_preproc" >&6
15957
15958# So? What about this header?
15959case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15960 yes:no: )
15961 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&5
15962echo "$as_me: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15963 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&5
15964echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&2;}
15965 ac_header_preproc=yes
15966 ;;
15967 no:yes:* )
15968 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&5
15969echo "$as_me: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&2;}
15970 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&5
15971echo "$as_me: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&2;}
15972 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&5
15973echo "$as_me: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&2;}
15974 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&5
15975echo "$as_me: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&2;}
15976 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
15977echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;}
15978 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&5
15979echo "$as_me: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&2;}
15980 (
15981 cat <<\_ASBOX
15982## ------------------------------------------ ##
15983## Report this to the AC_PACKAGE_NAME lists. ##
15984## ------------------------------------------ ##
15985_ASBOX
15986 ) |
15987 sed "s/^/$as_me: WARNING: /" >&2
15988 ;;
15989esac
15990echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
15991echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
15992if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
15993 echo $ECHO_N "(cached) $ECHO_C" >&6
15994else
15995 ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc
15996fi
15997echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
15998echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
15999
16000fi
16001if test $ac_cv_header_sys_dg_sys_info_h = yes; then
16002 ac_have_func=yes
16003
16004cat >>confdefs.h <<\_ACEOF
16005#define DGUX 1
16006_ACEOF
16007
16008
16009echo "$as_me:$LINENO: checking for dg_sys_info in -ldgc" >&5
16010echo $ECHO_N "checking for dg_sys_info in -ldgc... $ECHO_C" >&6
16011if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
16012 echo $ECHO_N "(cached) $ECHO_C" >&6
16013else
16014 ac_check_lib_save_LIBS=$LIBS
16015LIBS="-ldgc $LIBS"
16016cat >conftest.$ac_ext <<_ACEOF
16017/* confdefs.h. */
16018_ACEOF
16019cat confdefs.h >>conftest.$ac_ext
16020cat >>conftest.$ac_ext <<_ACEOF
16021/* end confdefs.h. */
16022
16023/* Override any gcc2 internal prototype to avoid an error. */
16024#ifdef __cplusplus
16025extern "C"
16026#endif
16027/* We use char because int might match the return type of a gcc2
16028 builtin and then its argument prototype would still apply. */
16029char dg_sys_info ();
16030int
16031main ()
16032{
16033dg_sys_info ();
16034 ;
16035 return 0;
16036}
16037_ACEOF
16038rm -f conftest.$ac_objext conftest$ac_exeext
16039if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16040 (eval $ac_link) 2>conftest.er1
16041 ac_status=$?
16042 grep -v '^ *+' conftest.er1 >conftest.err
16043 rm -f conftest.er1
16044 cat conftest.err >&5
16045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16046 (exit $ac_status); } &&
16047 { ac_try='test -z "$ac_c_werror_flag"
16048 || test ! -s conftest.err'
16049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16050 (eval $ac_try) 2>&5
16051 ac_status=$?
16052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16053 (exit $ac_status); }; } &&
16054 { ac_try='test -s conftest$ac_exeext'
16055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16056 (eval $ac_try) 2>&5
16057 ac_status=$?
16058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16059 (exit $ac_status); }; }; then
16060 ac_cv_lib_dgc_dg_sys_info=yes
16061else
16062 echo "$as_me: failed program was:" >&5
16063sed 's/^/| /' conftest.$ac_ext >&5
16064
16065ac_cv_lib_dgc_dg_sys_info=no
16066fi
16067rm -f conftest.err conftest.$ac_objext \
16068 conftest$ac_exeext conftest.$ac_ext
16069LIBS=$ac_check_lib_save_LIBS
16070fi
16071echo "$as_me:$LINENO: result: $ac_cv_lib_dgc_dg_sys_info" >&5
16072echo "${ECHO_T}$ac_cv_lib_dgc_dg_sys_info" >&6
16073if test $ac_cv_lib_dgc_dg_sys_info = yes; then
16074 cat >>confdefs.h <<_ACEOF
16075#define HAVE_LIBDGC 1
16076_ACEOF
16077
16078 LIBS="-ldgc $LIBS"
16079
16080fi
16081
16082fi
16083
16084
16085
16086if test "${ac_cv_header_locale_h+set}" = set; then
16087 echo "$as_me:$LINENO: checking for locale.h" >&5
16088echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
16089if test "${ac_cv_header_locale_h+set}" = set; then
16090 echo $ECHO_N "(cached) $ECHO_C" >&6
16091fi
16092echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
16093echo "${ECHO_T}$ac_cv_header_locale_h" >&6
16094else
16095 # Is the header compilable?
16096echo "$as_me:$LINENO: checking locale.h usability" >&5
16097echo $ECHO_N "checking locale.h usability... $ECHO_C" >&6
16098cat >conftest.$ac_ext <<_ACEOF
16099/* confdefs.h. */
16100_ACEOF
16101cat confdefs.h >>conftest.$ac_ext
16102cat >>conftest.$ac_ext <<_ACEOF
16103/* end confdefs.h. */
16104$ac_includes_default
16105#include <locale.h>
16106_ACEOF
16107rm -f conftest.$ac_objext
16108if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16109 (eval $ac_compile) 2>conftest.er1
16110 ac_status=$?
16111 grep -v '^ *+' conftest.er1 >conftest.err
16112 rm -f conftest.er1
16113 cat conftest.err >&5
16114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16115 (exit $ac_status); } &&
16116 { ac_try='test -z "$ac_c_werror_flag"
16117 || test ! -s conftest.err'
16118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16119 (eval $ac_try) 2>&5
16120 ac_status=$?
16121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16122 (exit $ac_status); }; } &&
16123 { ac_try='test -s conftest.$ac_objext'
16124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16125 (eval $ac_try) 2>&5
16126 ac_status=$?
16127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16128 (exit $ac_status); }; }; then
16129 ac_header_compiler=yes
16130else
16131 echo "$as_me: failed program was:" >&5
16132sed 's/^/| /' conftest.$ac_ext >&5
16133
16134ac_header_compiler=no
16135fi
16136rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16137echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16138echo "${ECHO_T}$ac_header_compiler" >&6
16139
16140# Is the header present?
16141echo "$as_me:$LINENO: checking locale.h presence" >&5
16142echo $ECHO_N "checking locale.h presence... $ECHO_C" >&6
16143cat >conftest.$ac_ext <<_ACEOF
16144/* confdefs.h. */
16145_ACEOF
16146cat confdefs.h >>conftest.$ac_ext
16147cat >>conftest.$ac_ext <<_ACEOF
16148/* end confdefs.h. */
16149#include <locale.h>
16150_ACEOF
16151if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16152 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16153 ac_status=$?
16154 grep -v '^ *+' conftest.er1 >conftest.err
16155 rm -f conftest.er1
16156 cat conftest.err >&5
16157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16158 (exit $ac_status); } >/dev/null; then
16159 if test -s conftest.err; then
16160 ac_cpp_err=$ac_c_preproc_warn_flag
16161 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16162 else
16163 ac_cpp_err=
16164 fi
16165else
16166 ac_cpp_err=yes
16167fi
16168if test -z "$ac_cpp_err"; then
16169 ac_header_preproc=yes
16170else
16171 echo "$as_me: failed program was:" >&5
16172sed 's/^/| /' conftest.$ac_ext >&5
16173
16174 ac_header_preproc=no
16175fi
16176rm -f conftest.err conftest.$ac_ext
16177echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16178echo "${ECHO_T}$ac_header_preproc" >&6
16179
16180# So? What about this header?
16181case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16182 yes:no: )
16183 { echo "$as_me:$LINENO: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&5
16184echo "$as_me: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16185 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the compiler's result" >&5
16186echo "$as_me: WARNING: locale.h: proceeding with the compiler's result" >&2;}
16187 ac_header_preproc=yes
16188 ;;
16189 no:yes:* )
16190 { echo "$as_me:$LINENO: WARNING: locale.h: present but cannot be compiled" >&5
16191echo "$as_me: WARNING: locale.h: present but cannot be compiled" >&2;}
16192 { echo "$as_me:$LINENO: WARNING: locale.h: check for missing prerequisite headers?" >&5
16193echo "$as_me: WARNING: locale.h: check for missing prerequisite headers?" >&2;}
16194 { echo "$as_me:$LINENO: WARNING: locale.h: see the Autoconf documentation" >&5
16195echo "$as_me: WARNING: locale.h: see the Autoconf documentation" >&2;}
16196 { echo "$as_me:$LINENO: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&5
16197echo "$as_me: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&2;}
16198 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
16199echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;}
16200 { echo "$as_me:$LINENO: WARNING: locale.h: in the future, the compiler will take precedence" >&5
16201echo "$as_me: WARNING: locale.h: in the future, the compiler will take precedence" >&2;}
16202 (
16203 cat <<\_ASBOX
16204## ------------------------------------------ ##
16205## Report this to the AC_PACKAGE_NAME lists. ##
16206## ------------------------------------------ ##
16207_ASBOX
16208 ) |
16209 sed "s/^/$as_me: WARNING: /" >&2
16210 ;;
16211esac
16212echo "$as_me:$LINENO: checking for locale.h" >&5
16213echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
16214if test "${ac_cv_header_locale_h+set}" = set; then
16215 echo $ECHO_N "(cached) $ECHO_C" >&6
16216else
16217 ac_cv_header_locale_h=$ac_header_preproc
16218fi
16219echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
16220echo "${ECHO_T}$ac_cv_header_locale_h" >&6
16221
16222fi
16223
16224
16225
16226for ac_func in setlocale
16227do
16228as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16229echo "$as_me:$LINENO: checking for $ac_func" >&5
16230echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16231if eval "test \"\${$as_ac_var+set}\" = set"; then
16232 echo $ECHO_N "(cached) $ECHO_C" >&6
16233else
16234 cat >conftest.$ac_ext <<_ACEOF
16235/* confdefs.h. */
16236_ACEOF
16237cat confdefs.h >>conftest.$ac_ext
16238cat >>conftest.$ac_ext <<_ACEOF
16239/* end confdefs.h. */
16240/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16241 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16242#define $ac_func innocuous_$ac_func
16243
16244/* System header to define __stub macros and hopefully few prototypes,
16245 which can conflict with char $ac_func (); below.
16246 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16247 <limits.h> exists even on freestanding compilers. */
16248
16249#ifdef __STDC__
16250# include <limits.h>
16251#else
16252# include <assert.h>
16253#endif
16254
16255#undef $ac_func
16256
16257/* Override any gcc2 internal prototype to avoid an error. */
16258#ifdef __cplusplus
16259extern "C"
16260{
16261#endif
16262/* We use char because int might match the return type of a gcc2
16263 builtin and then its argument prototype would still apply. */
16264char $ac_func ();
16265/* The GNU C library defines this for functions which it implements
16266 to always fail with ENOSYS. Some functions are actually named
16267 something starting with __ and the normal name is an alias. */
16268#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16269choke me
16270#else
16271char (*f) () = $ac_func;
16272#endif
16273#ifdef __cplusplus
16274}
16275#endif
16276
16277int
16278main ()
16279{
16280return f != $ac_func;
16281 ;
16282 return 0;
16283}
16284_ACEOF
16285rm -f conftest.$ac_objext conftest$ac_exeext
16286if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16287 (eval $ac_link) 2>conftest.er1
16288 ac_status=$?
16289 grep -v '^ *+' conftest.er1 >conftest.err
16290 rm -f conftest.er1
16291 cat conftest.err >&5
16292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16293 (exit $ac_status); } &&
16294 { ac_try='test -z "$ac_c_werror_flag"
16295 || test ! -s conftest.err'
16296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16297 (eval $ac_try) 2>&5
16298 ac_status=$?
16299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16300 (exit $ac_status); }; } &&
16301 { ac_try='test -s conftest$ac_exeext'
16302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16303 (eval $ac_try) 2>&5
16304 ac_status=$?
16305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16306 (exit $ac_status); }; }; then
16307 eval "$as_ac_var=yes"
16308else
16309 echo "$as_me: failed program was:" >&5
16310sed 's/^/| /' conftest.$ac_ext >&5
16311
16312eval "$as_ac_var=no"
16313fi
16314rm -f conftest.err conftest.$ac_objext \
16315 conftest$ac_exeext conftest.$ac_ext
16316fi
16317echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16318echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16319if test `eval echo '${'$as_ac_var'}'` = yes; then
16320 cat >>confdefs.h <<_ACEOF
16321#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16322_ACEOF
16323
16324fi
16325done
16326
16327
16328# We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
16329# uses stabs), but it is still SVR4. We cannot check for <elf.h> because
16330# Irix 4.0.5F has the header but not the library.
16331if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
16332 ac_have_func=yes
16333
16334cat >>confdefs.h <<\_ACEOF
16335#define SVR4 1
16336_ACEOF
16337
16338fi
16339
16340if test $ac_have_func = no; then
16341 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
16342 echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
16343echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6
16344if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
16345 echo $ECHO_N "(cached) $ECHO_C" >&6
16346fi
16347echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
16348echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6
16349else
16350 # Is the header compilable?
16351echo "$as_me:$LINENO: checking inq_stats/cpustats.h usability" >&5
16352echo $ECHO_N "checking inq_stats/cpustats.h usability... $ECHO_C" >&6
16353cat >conftest.$ac_ext <<_ACEOF
16354/* confdefs.h. */
16355_ACEOF
16356cat confdefs.h >>conftest.$ac_ext
16357cat >>conftest.$ac_ext <<_ACEOF
16358/* end confdefs.h. */
16359$ac_includes_default
16360#include <inq_stats/cpustats.h>
16361_ACEOF
16362rm -f conftest.$ac_objext
16363if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16364 (eval $ac_compile) 2>conftest.er1
16365 ac_status=$?
16366 grep -v '^ *+' conftest.er1 >conftest.err
16367 rm -f conftest.er1
16368 cat conftest.err >&5
16369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16370 (exit $ac_status); } &&
16371 { ac_try='test -z "$ac_c_werror_flag"
16372 || test ! -s conftest.err'
16373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16374 (eval $ac_try) 2>&5
16375 ac_status=$?
16376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16377 (exit $ac_status); }; } &&
16378 { ac_try='test -s conftest.$ac_objext'
16379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16380 (eval $ac_try) 2>&5
16381 ac_status=$?
16382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16383 (exit $ac_status); }; }; then
16384 ac_header_compiler=yes
16385else
16386 echo "$as_me: failed program was:" >&5
16387sed 's/^/| /' conftest.$ac_ext >&5
16388
16389ac_header_compiler=no
16390fi
16391rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16392echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16393echo "${ECHO_T}$ac_header_compiler" >&6
16394
16395# Is the header present?
16396echo "$as_me:$LINENO: checking inq_stats/cpustats.h presence" >&5
16397echo $ECHO_N "checking inq_stats/cpustats.h presence... $ECHO_C" >&6
16398cat >conftest.$ac_ext <<_ACEOF
16399/* confdefs.h. */
16400_ACEOF
16401cat confdefs.h >>conftest.$ac_ext
16402cat >>conftest.$ac_ext <<_ACEOF
16403/* end confdefs.h. */
16404#include <inq_stats/cpustats.h>
16405_ACEOF
16406if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16407 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16408 ac_status=$?
16409 grep -v '^ *+' conftest.er1 >conftest.err
16410 rm -f conftest.er1
16411 cat conftest.err >&5
16412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16413 (exit $ac_status); } >/dev/null; then
16414 if test -s conftest.err; then
16415 ac_cpp_err=$ac_c_preproc_warn_flag
16416 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16417 else
16418 ac_cpp_err=
16419 fi
16420else
16421 ac_cpp_err=yes
16422fi
16423if test -z "$ac_cpp_err"; then
16424 ac_header_preproc=yes
16425else
16426 echo "$as_me: failed program was:" >&5
16427sed 's/^/| /' conftest.$ac_ext >&5
16428
16429 ac_header_preproc=no
16430fi
16431rm -f conftest.err conftest.$ac_ext
16432echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16433echo "${ECHO_T}$ac_header_preproc" >&6
16434
16435# So? What about this header?
16436case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16437 yes:no: )
16438 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
16439echo "$as_me: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16440 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&5
16441echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&2;}
16442 ac_header_preproc=yes
16443 ;;
16444 no:yes:* )
16445 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&5
16446echo "$as_me: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&2;}
16447 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&5
16448echo "$as_me: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&2;}
16449 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&5
16450echo "$as_me: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&2;}
16451 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
16452echo "$as_me: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
16453 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
16454echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;}
16455 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&5
16456echo "$as_me: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&2;}
16457 (
16458 cat <<\_ASBOX
16459## ------------------------------------------ ##
16460## Report this to the AC_PACKAGE_NAME lists. ##
16461## ------------------------------------------ ##
16462_ASBOX
16463 ) |
16464 sed "s/^/$as_me: WARNING: /" >&2
16465 ;;
16466esac
16467echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
16468echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6
16469if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
16470 echo $ECHO_N "(cached) $ECHO_C" >&6
16471else
16472 ac_cv_header_inq_stats_cpustats_h=$ac_header_preproc
16473fi
16474echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
16475echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6
16476
16477fi
16478if test $ac_cv_header_inq_stats_cpustats_h = yes; then
16479 ac_have_func=yes
16480
16481cat >>confdefs.h <<\_ACEOF
16482#define UMAX 1
16483_ACEOF
16484
16485
16486cat >>confdefs.h <<\_ACEOF
16487#define UMAX4_3 1
16488_ACEOF
16489
16490fi
16491
16492
16493fi
16494
16495if test $ac_have_func = no; then
16496 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
16497 echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
16498echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6
16499if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
16500 echo $ECHO_N "(cached) $ECHO_C" >&6
16501fi
16502echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
16503echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6
16504else
16505 # Is the header compilable?
16506echo "$as_me:$LINENO: checking sys/cpustats.h usability" >&5
16507echo $ECHO_N "checking sys/cpustats.h usability... $ECHO_C" >&6
16508cat >conftest.$ac_ext <<_ACEOF
16509/* confdefs.h. */
16510_ACEOF
16511cat confdefs.h >>conftest.$ac_ext
16512cat >>conftest.$ac_ext <<_ACEOF
16513/* end confdefs.h. */
16514$ac_includes_default
16515#include <sys/cpustats.h>
16516_ACEOF
16517rm -f conftest.$ac_objext
16518if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16519 (eval $ac_compile) 2>conftest.er1
16520 ac_status=$?
16521 grep -v '^ *+' conftest.er1 >conftest.err
16522 rm -f conftest.er1
16523 cat conftest.err >&5
16524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16525 (exit $ac_status); } &&
16526 { ac_try='test -z "$ac_c_werror_flag"
16527 || test ! -s conftest.err'
16528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16529 (eval $ac_try) 2>&5
16530 ac_status=$?
16531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16532 (exit $ac_status); }; } &&
16533 { ac_try='test -s conftest.$ac_objext'
16534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16535 (eval $ac_try) 2>&5
16536 ac_status=$?
16537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16538 (exit $ac_status); }; }; then
16539 ac_header_compiler=yes
16540else
16541 echo "$as_me: failed program was:" >&5
16542sed 's/^/| /' conftest.$ac_ext >&5
16543
16544ac_header_compiler=no
16545fi
16546rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16547echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16548echo "${ECHO_T}$ac_header_compiler" >&6
16549
16550# Is the header present?
16551echo "$as_me:$LINENO: checking sys/cpustats.h presence" >&5
16552echo $ECHO_N "checking sys/cpustats.h presence... $ECHO_C" >&6
16553cat >conftest.$ac_ext <<_ACEOF
16554/* confdefs.h. */
16555_ACEOF
16556cat confdefs.h >>conftest.$ac_ext
16557cat >>conftest.$ac_ext <<_ACEOF
16558/* end confdefs.h. */
16559#include <sys/cpustats.h>
16560_ACEOF
16561if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16562 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16563 ac_status=$?
16564 grep -v '^ *+' conftest.er1 >conftest.err
16565 rm -f conftest.er1
16566 cat conftest.err >&5
16567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16568 (exit $ac_status); } >/dev/null; then
16569 if test -s conftest.err; then
16570 ac_cpp_err=$ac_c_preproc_warn_flag
16571 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16572 else
16573 ac_cpp_err=
16574 fi
16575else
16576 ac_cpp_err=yes
16577fi
16578if test -z "$ac_cpp_err"; then
16579 ac_header_preproc=yes
16580else
16581 echo "$as_me: failed program was:" >&5
16582sed 's/^/| /' conftest.$ac_ext >&5
16583
16584 ac_header_preproc=no
16585fi
16586rm -f conftest.err conftest.$ac_ext
16587echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16588echo "${ECHO_T}$ac_header_preproc" >&6
16589
16590# So? What about this header?
16591case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16592 yes:no: )
16593 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
16594echo "$as_me: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16595 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&5
16596echo "$as_me: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&2;}
16597 ac_header_preproc=yes
16598 ;;
16599 no:yes:* )
16600 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: present but cannot be compiled" >&5
16601echo "$as_me: WARNING: sys/cpustats.h: present but cannot be compiled" >&2;}
16602 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&5
16603echo "$as_me: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&2;}
16604 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: see the Autoconf documentation" >&5
16605echo "$as_me: WARNING: sys/cpustats.h: see the Autoconf documentation" >&2;}
16606 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
16607echo "$as_me: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
16608 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
16609echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;}
16610 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&5
16611echo "$as_me: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&2;}
16612 (
16613 cat <<\_ASBOX
16614## ------------------------------------------ ##
16615## Report this to the AC_PACKAGE_NAME lists. ##
16616## ------------------------------------------ ##
16617_ASBOX
16618 ) |
16619 sed "s/^/$as_me: WARNING: /" >&2
16620 ;;
16621esac
16622echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
16623echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6
16624if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
16625 echo $ECHO_N "(cached) $ECHO_C" >&6
16626else
16627 ac_cv_header_sys_cpustats_h=$ac_header_preproc
16628fi
16629echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
16630echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6
16631
16632fi
16633if test $ac_cv_header_sys_cpustats_h = yes; then
16634 ac_have_func=yes; cat >>confdefs.h <<\_ACEOF
16635#define UMAX 1
16636_ACEOF
16637
16638fi
16639
16640
16641fi
16642
16643if test $ac_have_func = no; then
16644
16645for ac_header in mach/mach.h
16646do
16647as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16648if eval "test \"\${$as_ac_Header+set}\" = set"; then
16649 echo "$as_me:$LINENO: checking for $ac_header" >&5
16650echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16651if eval "test \"\${$as_ac_Header+set}\" = set"; then
16652 echo $ECHO_N "(cached) $ECHO_C" >&6
16653fi
16654echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16655echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16656else
16657 # Is the header compilable?
16658echo "$as_me:$LINENO: checking $ac_header usability" >&5
16659echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16660cat >conftest.$ac_ext <<_ACEOF
16661/* confdefs.h. */
16662_ACEOF
16663cat confdefs.h >>conftest.$ac_ext
16664cat >>conftest.$ac_ext <<_ACEOF
16665/* end confdefs.h. */
16666$ac_includes_default
16667#include <$ac_header>
16668_ACEOF
16669rm -f conftest.$ac_objext
16670if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16671 (eval $ac_compile) 2>conftest.er1
16672 ac_status=$?
16673 grep -v '^ *+' conftest.er1 >conftest.err
16674 rm -f conftest.er1
16675 cat conftest.err >&5
16676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16677 (exit $ac_status); } &&
16678 { ac_try='test -z "$ac_c_werror_flag"
16679 || test ! -s conftest.err'
16680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16681 (eval $ac_try) 2>&5
16682 ac_status=$?
16683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16684 (exit $ac_status); }; } &&
16685 { ac_try='test -s conftest.$ac_objext'
16686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16687 (eval $ac_try) 2>&5
16688 ac_status=$?
16689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16690 (exit $ac_status); }; }; then
16691 ac_header_compiler=yes
16692else
16693 echo "$as_me: failed program was:" >&5
16694sed 's/^/| /' conftest.$ac_ext >&5
16695
16696ac_header_compiler=no
16697fi
16698rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16699echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16700echo "${ECHO_T}$ac_header_compiler" >&6
16701
16702# Is the header present?
16703echo "$as_me:$LINENO: checking $ac_header presence" >&5
16704echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16705cat >conftest.$ac_ext <<_ACEOF
16706/* confdefs.h. */
16707_ACEOF
16708cat confdefs.h >>conftest.$ac_ext
16709cat >>conftest.$ac_ext <<_ACEOF
16710/* end confdefs.h. */
16711#include <$ac_header>
16712_ACEOF
16713if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16714 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16715 ac_status=$?
16716 grep -v '^ *+' conftest.er1 >conftest.err
16717 rm -f conftest.er1
16718 cat conftest.err >&5
16719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16720 (exit $ac_status); } >/dev/null; then
16721 if test -s conftest.err; then
16722 ac_cpp_err=$ac_c_preproc_warn_flag
16723 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16724 else
16725 ac_cpp_err=
16726 fi
16727else
16728 ac_cpp_err=yes
16729fi
16730if test -z "$ac_cpp_err"; then
16731 ac_header_preproc=yes
16732else
16733 echo "$as_me: failed program was:" >&5
16734sed 's/^/| /' conftest.$ac_ext >&5
16735
16736 ac_header_preproc=no
16737fi
16738rm -f conftest.err conftest.$ac_ext
16739echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16740echo "${ECHO_T}$ac_header_preproc" >&6
16741
16742# So? What about this header?
16743case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16744 yes:no: )
16745 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16746echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16747 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16748echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16749 ac_header_preproc=yes
16750 ;;
16751 no:yes:* )
16752 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16753echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16754 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16755echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16756 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16757echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16758 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16759echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16760 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16761echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16762 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16763echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16764 (
16765 cat <<\_ASBOX
16766## ------------------------------------------ ##
16767## Report this to the AC_PACKAGE_NAME lists. ##
16768## ------------------------------------------ ##
16769_ASBOX
16770 ) |
16771 sed "s/^/$as_me: WARNING: /" >&2
16772 ;;
16773esac
16774echo "$as_me:$LINENO: checking for $ac_header" >&5
16775echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16776if eval "test \"\${$as_ac_Header+set}\" = set"; then
16777 echo $ECHO_N "(cached) $ECHO_C" >&6
16778else
16779 eval "$as_ac_Header=\$ac_header_preproc"
16780fi
16781echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16782echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16783
16784fi
16785if test `eval echo '${'$as_ac_Header'}'` = yes; then
16786 cat >>confdefs.h <<_ACEOF
16787#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16788_ACEOF
16789
16790fi
16791
16792done
16793
16794fi
16795
16796
16797for ac_header in nlist.h
16798do
16799as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16800if eval "test \"\${$as_ac_Header+set}\" = set"; then
16801 echo "$as_me:$LINENO: checking for $ac_header" >&5
16802echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16803if eval "test \"\${$as_ac_Header+set}\" = set"; then
16804 echo $ECHO_N "(cached) $ECHO_C" >&6
16805fi
16806echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16807echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16808else
16809 # Is the header compilable?
16810echo "$as_me:$LINENO: checking $ac_header usability" >&5
16811echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16812cat >conftest.$ac_ext <<_ACEOF
16813/* confdefs.h. */
16814_ACEOF
16815cat confdefs.h >>conftest.$ac_ext
16816cat >>conftest.$ac_ext <<_ACEOF
16817/* end confdefs.h. */
16818$ac_includes_default
16819#include <$ac_header>
16820_ACEOF
16821rm -f conftest.$ac_objext
16822if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16823 (eval $ac_compile) 2>conftest.er1
16824 ac_status=$?
16825 grep -v '^ *+' conftest.er1 >conftest.err
16826 rm -f conftest.er1
16827 cat conftest.err >&5
16828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16829 (exit $ac_status); } &&
16830 { ac_try='test -z "$ac_c_werror_flag"
16831 || test ! -s conftest.err'
16832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16833 (eval $ac_try) 2>&5
16834 ac_status=$?
16835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16836 (exit $ac_status); }; } &&
16837 { ac_try='test -s conftest.$ac_objext'
16838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16839 (eval $ac_try) 2>&5
16840 ac_status=$?
16841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16842 (exit $ac_status); }; }; then
16843 ac_header_compiler=yes
16844else
16845 echo "$as_me: failed program was:" >&5
16846sed 's/^/| /' conftest.$ac_ext >&5
16847
16848ac_header_compiler=no
16849fi
16850rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16851echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16852echo "${ECHO_T}$ac_header_compiler" >&6
16853
16854# Is the header present?
16855echo "$as_me:$LINENO: checking $ac_header presence" >&5
16856echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16857cat >conftest.$ac_ext <<_ACEOF
16858/* confdefs.h. */
16859_ACEOF
16860cat confdefs.h >>conftest.$ac_ext
16861cat >>conftest.$ac_ext <<_ACEOF
16862/* end confdefs.h. */
16863#include <$ac_header>
16864_ACEOF
16865if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16866 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16867 ac_status=$?
16868 grep -v '^ *+' conftest.er1 >conftest.err
16869 rm -f conftest.er1
16870 cat conftest.err >&5
16871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16872 (exit $ac_status); } >/dev/null; then
16873 if test -s conftest.err; then
16874 ac_cpp_err=$ac_c_preproc_warn_flag
16875 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16876 else
16877 ac_cpp_err=
16878 fi
16879else
16880 ac_cpp_err=yes
16881fi
16882if test -z "$ac_cpp_err"; then
16883 ac_header_preproc=yes
16884else
16885 echo "$as_me: failed program was:" >&5
16886sed 's/^/| /' conftest.$ac_ext >&5
16887
16888 ac_header_preproc=no
16889fi
16890rm -f conftest.err conftest.$ac_ext
16891echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16892echo "${ECHO_T}$ac_header_preproc" >&6
16893
16894# So? What about this header?
16895case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16896 yes:no: )
16897 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16898echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16899 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16900echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16901 ac_header_preproc=yes
16902 ;;
16903 no:yes:* )
16904 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16905echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16906 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16907echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16908 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16909echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16910 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16911echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16912 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16913echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16914 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16915echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16916 (
16917 cat <<\_ASBOX
16918## ------------------------------------------ ##
16919## Report this to the AC_PACKAGE_NAME lists. ##
16920## ------------------------------------------ ##
16921_ASBOX
16922 ) |
16923 sed "s/^/$as_me: WARNING: /" >&2
16924 ;;
16925esac
16926echo "$as_me:$LINENO: checking for $ac_header" >&5
16927echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16928if eval "test \"\${$as_ac_Header+set}\" = set"; then
16929 echo $ECHO_N "(cached) $ECHO_C" >&6
16930else
16931 eval "$as_ac_Header=\$ac_header_preproc"
16932fi
16933echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16934echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16935
16936fi
16937if test `eval echo '${'$as_ac_Header'}'` = yes; then
16938 cat >>confdefs.h <<_ACEOF
16939#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16940_ACEOF
16941 echo "$as_me:$LINENO: checking for struct nlist.n_un.n_name" >&5
16942echo $ECHO_N "checking for struct nlist.n_un.n_name... $ECHO_C" >&6
16943if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
16944 echo $ECHO_N "(cached) $ECHO_C" >&6
16945else
16946 cat >conftest.$ac_ext <<_ACEOF
16947/* confdefs.h. */
16948_ACEOF
16949cat confdefs.h >>conftest.$ac_ext
16950cat >>conftest.$ac_ext <<_ACEOF
16951/* end confdefs.h. */
16952#include <nlist.h>
16953
16954int
16955main ()
16956{
16957static struct nlist ac_aggr;
16958if (ac_aggr.n_un.n_name)
16959return 0;
16960 ;
16961 return 0;
16962}
16963_ACEOF
16964rm -f conftest.$ac_objext
16965if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16966 (eval $ac_compile) 2>conftest.er1
16967 ac_status=$?
16968 grep -v '^ *+' conftest.er1 >conftest.err
16969 rm -f conftest.er1
16970 cat conftest.err >&5
16971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16972 (exit $ac_status); } &&
16973 { ac_try='test -z "$ac_c_werror_flag"
16974 || test ! -s conftest.err'
16975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16976 (eval $ac_try) 2>&5
16977 ac_status=$?
16978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16979 (exit $ac_status); }; } &&
16980 { ac_try='test -s conftest.$ac_objext'
16981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16982 (eval $ac_try) 2>&5
16983 ac_status=$?
16984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16985 (exit $ac_status); }; }; then
16986 ac_cv_member_struct_nlist_n_un_n_name=yes
16987else
16988 echo "$as_me: failed program was:" >&5
16989sed 's/^/| /' conftest.$ac_ext >&5
16990
16991cat >conftest.$ac_ext <<_ACEOF
16992/* confdefs.h. */
16993_ACEOF
16994cat confdefs.h >>conftest.$ac_ext
16995cat >>conftest.$ac_ext <<_ACEOF
16996/* end confdefs.h. */
16997#include <nlist.h>
16998
16999int
17000main ()
17001{
17002static struct nlist ac_aggr;
17003if (sizeof ac_aggr.n_un.n_name)
17004return 0;
17005 ;
17006 return 0;
17007}
17008_ACEOF
17009rm -f conftest.$ac_objext
17010if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17011 (eval $ac_compile) 2>conftest.er1
17012 ac_status=$?
17013 grep -v '^ *+' conftest.er1 >conftest.err
17014 rm -f conftest.er1
17015 cat conftest.err >&5
17016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17017 (exit $ac_status); } &&
17018 { ac_try='test -z "$ac_c_werror_flag"
17019 || test ! -s conftest.err'
17020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17021 (eval $ac_try) 2>&5
17022 ac_status=$?
17023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17024 (exit $ac_status); }; } &&
17025 { ac_try='test -s conftest.$ac_objext'
17026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17027 (eval $ac_try) 2>&5
17028 ac_status=$?
17029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17030 (exit $ac_status); }; }; then
17031 ac_cv_member_struct_nlist_n_un_n_name=yes
17032else
17033 echo "$as_me: failed program was:" >&5
17034sed 's/^/| /' conftest.$ac_ext >&5
17035
17036ac_cv_member_struct_nlist_n_un_n_name=no
17037fi
17038rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17039fi
17040rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17041fi
17042echo "$as_me:$LINENO: result: $ac_cv_member_struct_nlist_n_un_n_name" >&5
17043echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6
17044if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
17045
17046cat >>confdefs.h <<_ACEOF
17047#define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
17048_ACEOF
17049
17050
17051cat >>confdefs.h <<\_ACEOF
17052#define NLIST_NAME_UNION 1
17053_ACEOF
17054
17055fi
17056
17057
17058fi
17059
17060done
17061
17062fi
17063done
17064
17065
17066# Some definitions of getloadavg require that the program be installed setgid.
17067echo "$as_me:$LINENO: checking whether getloadavg requires setgid" >&5
17068echo $ECHO_N "checking whether getloadavg requires setgid... $ECHO_C" >&6
17069if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
17070 echo $ECHO_N "(cached) $ECHO_C" >&6
17071else
17072 cat >conftest.$ac_ext <<_ACEOF
17073/* confdefs.h. */
17074_ACEOF
17075cat confdefs.h >>conftest.$ac_ext
17076cat >>conftest.$ac_ext <<_ACEOF
17077/* end confdefs.h. */
17078#include "$srcdir/$ac_config_libobj_dir/getloadavg.c"
17079#ifdef LDAV_PRIVILEGED
17080Yowza Am I SETGID yet
17081#endif
17082_ACEOF
17083if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17084 $EGREP "Yowza Am I SETGID yet" >/dev/null 2>&1; then
17085 ac_cv_func_getloadavg_setgid=yes
17086else
17087 ac_cv_func_getloadavg_setgid=no
17088fi
17089rm -f conftest*
17090
17091fi
17092echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg_setgid" >&5
17093echo "${ECHO_T}$ac_cv_func_getloadavg_setgid" >&6
17094if test $ac_cv_func_getloadavg_setgid = yes; then
17095 NEED_SETGID=true
17096
17097cat >>confdefs.h <<\_ACEOF
17098#define GETLOADAVG_PRIVILEGED 1
17099_ACEOF
17100
17101else
17102 NEED_SETGID=false
17103fi
17104
17105if test $ac_cv_func_getloadavg_setgid = yes; then
17106 echo "$as_me:$LINENO: checking group of /dev/kmem" >&5
17107echo $ECHO_N "checking group of /dev/kmem... $ECHO_C" >&6
17108if test "${ac_cv_group_kmem+set}" = set; then
17109 echo $ECHO_N "(cached) $ECHO_C" >&6
17110else
17111 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
17112 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
17113 # If we got an error (system does not support symlinks), try without -L.
17114 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
17115 ac_cv_group_kmem=`echo $ac_ls_output \
17116 | sed -ne 's/[ ][ ]*/ /g;
17117 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
17118 / /s/.* //;p;'`
17119
17120fi
17121echo "$as_me:$LINENO: result: $ac_cv_group_kmem" >&5
17122echo "${ECHO_T}$ac_cv_group_kmem" >&6
17123 KMEM_GROUP=$ac_cv_group_kmem
17124fi
17125if test "x$ac_save_LIBS" = x; then
17126 GETLOADAVG_LIBS=$LIBS
17127else
17128 GETLOADAVG_LIBS=`echo "$LIBS" | sed "s!$ac_save_LIBS!!"`
17129fi
17130LIBS=$ac_save_LIBS
17131
17132
17133
17134echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
17135echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
17136if test "${ac_cv_sys_largefile_source+set}" = set; then
17137 echo $ECHO_N "(cached) $ECHO_C" >&6
17138else
17139 while :; do
17140 ac_cv_sys_largefile_source=no
17141 cat >conftest.$ac_ext <<_ACEOF
17142/* confdefs.h. */
17143_ACEOF
17144cat confdefs.h >>conftest.$ac_ext
17145cat >>conftest.$ac_ext <<_ACEOF
17146/* end confdefs.h. */
17147#include <stdio.h>
17148int
17149main ()
17150{
17151return !fseeko;
17152 ;
17153 return 0;
17154}
17155_ACEOF
17156rm -f conftest.$ac_objext
17157if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17158 (eval $ac_compile) 2>conftest.er1
17159 ac_status=$?
17160 grep -v '^ *+' conftest.er1 >conftest.err
17161 rm -f conftest.er1
17162 cat conftest.err >&5
17163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17164 (exit $ac_status); } &&
17165 { ac_try='test -z "$ac_c_werror_flag"
17166 || test ! -s conftest.err'
17167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17168 (eval $ac_try) 2>&5
17169 ac_status=$?
17170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17171 (exit $ac_status); }; } &&
17172 { ac_try='test -s conftest.$ac_objext'
17173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17174 (eval $ac_try) 2>&5
17175 ac_status=$?
17176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17177 (exit $ac_status); }; }; then
17178 break
17179else
17180 echo "$as_me: failed program was:" >&5
17181sed 's/^/| /' conftest.$ac_ext >&5
17182
17183fi
17184rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17185 cat >conftest.$ac_ext <<_ACEOF
17186/* confdefs.h. */
17187_ACEOF
17188cat confdefs.h >>conftest.$ac_ext
17189cat >>conftest.$ac_ext <<_ACEOF
17190/* end confdefs.h. */
17191#define _LARGEFILE_SOURCE 1
17192#include <stdio.h>
17193int
17194main ()
17195{
17196return !fseeko;
17197 ;
17198 return 0;
17199}
17200_ACEOF
17201rm -f conftest.$ac_objext
17202if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17203 (eval $ac_compile) 2>conftest.er1
17204 ac_status=$?
17205 grep -v '^ *+' conftest.er1 >conftest.err
17206 rm -f conftest.er1
17207 cat conftest.err >&5
17208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17209 (exit $ac_status); } &&
17210 { ac_try='test -z "$ac_c_werror_flag"
17211 || test ! -s conftest.err'
17212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17213 (eval $ac_try) 2>&5
17214 ac_status=$?
17215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17216 (exit $ac_status); }; } &&
17217 { ac_try='test -s conftest.$ac_objext'
17218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17219 (eval $ac_try) 2>&5
17220 ac_status=$?
17221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17222 (exit $ac_status); }; }; then
17223 ac_cv_sys_largefile_source=1; break
17224else
17225 echo "$as_me: failed program was:" >&5
17226sed 's/^/| /' conftest.$ac_ext >&5
17227
17228fi
17229rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17230 break
17231done
17232fi
17233echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
17234echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
17235if test "$ac_cv_sys_largefile_source" != no; then
17236
17237cat >>confdefs.h <<_ACEOF
17238#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
17239_ACEOF
17240
17241fi
17242rm -f conftest*
17243
17244# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
17245# in glibc 2.1.3, but that breaks too many other things.
17246# If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
17247echo "$as_me:$LINENO: checking for fseeko" >&5
17248echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
17249if test "${ac_cv_func_fseeko+set}" = set; then
17250 echo $ECHO_N "(cached) $ECHO_C" >&6
17251else
17252 cat >conftest.$ac_ext <<_ACEOF
17253/* confdefs.h. */
17254_ACEOF
17255cat confdefs.h >>conftest.$ac_ext
17256cat >>conftest.$ac_ext <<_ACEOF
17257/* end confdefs.h. */
17258#include <stdio.h>
17259int
17260main ()
17261{
17262return fseeko && fseeko (stdin, 0, 0);
17263 ;
17264 return 0;
17265}
17266_ACEOF
17267rm -f conftest.$ac_objext conftest$ac_exeext
17268if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17269 (eval $ac_link) 2>conftest.er1
17270 ac_status=$?
17271 grep -v '^ *+' conftest.er1 >conftest.err
17272 rm -f conftest.er1
17273 cat conftest.err >&5
17274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17275 (exit $ac_status); } &&
17276 { ac_try='test -z "$ac_c_werror_flag"
17277 || test ! -s conftest.err'
17278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17279 (eval $ac_try) 2>&5
17280 ac_status=$?
17281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17282 (exit $ac_status); }; } &&
17283 { ac_try='test -s conftest$ac_exeext'
17284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17285 (eval $ac_try) 2>&5
17286 ac_status=$?
17287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17288 (exit $ac_status); }; }; then
17289 ac_cv_func_fseeko=yes
17290else
17291 echo "$as_me: failed program was:" >&5
17292sed 's/^/| /' conftest.$ac_ext >&5
17293
17294ac_cv_func_fseeko=no
17295fi
17296rm -f conftest.err conftest.$ac_objext \
17297 conftest$ac_exeext conftest.$ac_ext
17298fi
17299echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5
17300echo "${ECHO_T}$ac_cv_func_fseeko" >&6
17301if test $ac_cv_func_fseeko = yes; then
17302
17303cat >>confdefs.h <<\_ACEOF
17304#define HAVE_FSEEKO 1
17305_ACEOF
17306
17307fi
17308
17309
17310# Configure getopt.
17311# getopt.m4 serial 10
17312
17313# The getopt module assume you want GNU getopt, with getopt_long etc,
17314# rather than vanilla POSIX getopt. This means your your code should
17315# always include <getopt.h> for the getopt prototypes.
17316
17317
17318
17319
17320
17321
17322
17323
17324
17325
17326
17327# Prerequisites of lib/getopt*.
17328
17329
17330
17331
17332 GETOPT_H=
17333
17334for ac_header in getopt.h
17335do
17336as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17337if eval "test \"\${$as_ac_Header+set}\" = set"; then
17338 echo "$as_me:$LINENO: checking for $ac_header" >&5
17339echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17340if eval "test \"\${$as_ac_Header+set}\" = set"; then
17341 echo $ECHO_N "(cached) $ECHO_C" >&6
17342fi
17343echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17344echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17345else
17346 # Is the header compilable?
17347echo "$as_me:$LINENO: checking $ac_header usability" >&5
17348echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17349cat >conftest.$ac_ext <<_ACEOF
17350/* confdefs.h. */
17351_ACEOF
17352cat confdefs.h >>conftest.$ac_ext
17353cat >>conftest.$ac_ext <<_ACEOF
17354/* end confdefs.h. */
17355$ac_includes_default
17356#include <$ac_header>
17357_ACEOF
17358rm -f conftest.$ac_objext
17359if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17360 (eval $ac_compile) 2>conftest.er1
17361 ac_status=$?
17362 grep -v '^ *+' conftest.er1 >conftest.err
17363 rm -f conftest.er1
17364 cat conftest.err >&5
17365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17366 (exit $ac_status); } &&
17367 { ac_try='test -z "$ac_c_werror_flag"
17368 || test ! -s conftest.err'
17369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17370 (eval $ac_try) 2>&5
17371 ac_status=$?
17372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17373 (exit $ac_status); }; } &&
17374 { ac_try='test -s conftest.$ac_objext'
17375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17376 (eval $ac_try) 2>&5
17377 ac_status=$?
17378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17379 (exit $ac_status); }; }; then
17380 ac_header_compiler=yes
17381else
17382 echo "$as_me: failed program was:" >&5
17383sed 's/^/| /' conftest.$ac_ext >&5
17384
17385ac_header_compiler=no
17386fi
17387rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17388echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17389echo "${ECHO_T}$ac_header_compiler" >&6
17390
17391# Is the header present?
17392echo "$as_me:$LINENO: checking $ac_header presence" >&5
17393echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17394cat >conftest.$ac_ext <<_ACEOF
17395/* confdefs.h. */
17396_ACEOF
17397cat confdefs.h >>conftest.$ac_ext
17398cat >>conftest.$ac_ext <<_ACEOF
17399/* end confdefs.h. */
17400#include <$ac_header>
17401_ACEOF
17402if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17403 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17404 ac_status=$?
17405 grep -v '^ *+' conftest.er1 >conftest.err
17406 rm -f conftest.er1
17407 cat conftest.err >&5
17408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17409 (exit $ac_status); } >/dev/null; then
17410 if test -s conftest.err; then
17411 ac_cpp_err=$ac_c_preproc_warn_flag
17412 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17413 else
17414 ac_cpp_err=
17415 fi
17416else
17417 ac_cpp_err=yes
17418fi
17419if test -z "$ac_cpp_err"; then
17420 ac_header_preproc=yes
17421else
17422 echo "$as_me: failed program was:" >&5
17423sed 's/^/| /' conftest.$ac_ext >&5
17424
17425 ac_header_preproc=no
17426fi
17427rm -f conftest.err conftest.$ac_ext
17428echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17429echo "${ECHO_T}$ac_header_preproc" >&6
17430
17431# So? What about this header?
17432case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17433 yes:no: )
17434 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17435echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17436 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17437echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17438 ac_header_preproc=yes
17439 ;;
17440 no:yes:* )
17441 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17442echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17443 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17444echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17445 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17446echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17447 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17448echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17449 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17450echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17451 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17452echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17453 (
17454 cat <<\_ASBOX
17455## ------------------------------------------ ##
17456## Report this to the AC_PACKAGE_NAME lists. ##
17457## ------------------------------------------ ##
17458_ASBOX
17459 ) |
17460 sed "s/^/$as_me: WARNING: /" >&2
17461 ;;
17462esac
17463echo "$as_me:$LINENO: checking for $ac_header" >&5
17464echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17465if eval "test \"\${$as_ac_Header+set}\" = set"; then
17466 echo $ECHO_N "(cached) $ECHO_C" >&6
17467else
17468 eval "$as_ac_Header=\$ac_header_preproc"
17469fi
17470echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17471echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17472
17473fi
17474if test `eval echo '${'$as_ac_Header'}'` = yes; then
17475 cat >>confdefs.h <<_ACEOF
17476#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17477_ACEOF
17478
17479else
17480 GETOPT_H=getopt.h
17481fi
17482
17483done
17484
17485 if test -z "$GETOPT_H"; then
17486
17487for ac_func in getopt_long_only
17488do
17489as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17490echo "$as_me:$LINENO: checking for $ac_func" >&5
17491echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17492if eval "test \"\${$as_ac_var+set}\" = set"; then
17493 echo $ECHO_N "(cached) $ECHO_C" >&6
17494else
17495 cat >conftest.$ac_ext <<_ACEOF
17496/* confdefs.h. */
17497_ACEOF
17498cat confdefs.h >>conftest.$ac_ext
17499cat >>conftest.$ac_ext <<_ACEOF
17500/* end confdefs.h. */
17501/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17502 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17503#define $ac_func innocuous_$ac_func
17504
17505/* System header to define __stub macros and hopefully few prototypes,
17506 which can conflict with char $ac_func (); below.
17507 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17508 <limits.h> exists even on freestanding compilers. */
17509
17510#ifdef __STDC__
17511# include <limits.h>
17512#else
17513# include <assert.h>
17514#endif
17515
17516#undef $ac_func
17517
17518/* Override any gcc2 internal prototype to avoid an error. */
17519#ifdef __cplusplus
17520extern "C"
17521{
17522#endif
17523/* We use char because int might match the return type of a gcc2
17524 builtin and then its argument prototype would still apply. */
17525char $ac_func ();
17526/* The GNU C library defines this for functions which it implements
17527 to always fail with ENOSYS. Some functions are actually named
17528 something starting with __ and the normal name is an alias. */
17529#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17530choke me
17531#else
17532char (*f) () = $ac_func;
17533#endif
17534#ifdef __cplusplus
17535}
17536#endif
17537
17538int
17539main ()
17540{
17541return f != $ac_func;
17542 ;
17543 return 0;
17544}
17545_ACEOF
17546rm -f conftest.$ac_objext conftest$ac_exeext
17547if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17548 (eval $ac_link) 2>conftest.er1
17549 ac_status=$?
17550 grep -v '^ *+' conftest.er1 >conftest.err
17551 rm -f conftest.er1
17552 cat conftest.err >&5
17553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17554 (exit $ac_status); } &&
17555 { ac_try='test -z "$ac_c_werror_flag"
17556 || test ! -s conftest.err'
17557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17558 (eval $ac_try) 2>&5
17559 ac_status=$?
17560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17561 (exit $ac_status); }; } &&
17562 { ac_try='test -s conftest$ac_exeext'
17563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17564 (eval $ac_try) 2>&5
17565 ac_status=$?
17566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17567 (exit $ac_status); }; }; then
17568 eval "$as_ac_var=yes"
17569else
17570 echo "$as_me: failed program was:" >&5
17571sed 's/^/| /' conftest.$ac_ext >&5
17572
17573eval "$as_ac_var=no"
17574fi
17575rm -f conftest.err conftest.$ac_objext \
17576 conftest$ac_exeext conftest.$ac_ext
17577fi
17578echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17579echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17580if test `eval echo '${'$as_ac_var'}'` = yes; then
17581 cat >>confdefs.h <<_ACEOF
17582#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17583_ACEOF
17584
17585else
17586 GETOPT_H=getopt.h
17587fi
17588done
17589
17590 fi
17591
17592 if test -z "$GETOPT_H"; then
17593 echo "$as_me:$LINENO: checking whether optreset is declared" >&5
17594echo $ECHO_N "checking whether optreset is declared... $ECHO_C" >&6
17595if test "${ac_cv_have_decl_optreset+set}" = set; then
17596 echo $ECHO_N "(cached) $ECHO_C" >&6
17597else
17598 cat >conftest.$ac_ext <<_ACEOF
17599/* confdefs.h. */
17600_ACEOF
17601cat confdefs.h >>conftest.$ac_ext
17602cat >>conftest.$ac_ext <<_ACEOF
17603/* end confdefs.h. */
17604#include <getopt.h>
17605
17606int
17607main ()
17608{
17609#ifndef optreset
17610 char *p = (char *) optreset;
17611#endif
17612
17613 ;
17614 return 0;
17615}
17616_ACEOF
17617rm -f conftest.$ac_objext
17618if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17619 (eval $ac_compile) 2>conftest.er1
17620 ac_status=$?
17621 grep -v '^ *+' conftest.er1 >conftest.err
17622 rm -f conftest.er1
17623 cat conftest.err >&5
17624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17625 (exit $ac_status); } &&
17626 { ac_try='test -z "$ac_c_werror_flag"
17627 || test ! -s conftest.err'
17628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17629 (eval $ac_try) 2>&5
17630 ac_status=$?
17631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17632 (exit $ac_status); }; } &&
17633 { ac_try='test -s conftest.$ac_objext'
17634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17635 (eval $ac_try) 2>&5
17636 ac_status=$?
17637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17638 (exit $ac_status); }; }; then
17639 ac_cv_have_decl_optreset=yes
17640else
17641 echo "$as_me: failed program was:" >&5
17642sed 's/^/| /' conftest.$ac_ext >&5
17643
17644ac_cv_have_decl_optreset=no
17645fi
17646rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17647fi
17648echo "$as_me:$LINENO: result: $ac_cv_have_decl_optreset" >&5
17649echo "${ECHO_T}$ac_cv_have_decl_optreset" >&6
17650if test $ac_cv_have_decl_optreset = yes; then
17651 GETOPT_H=getopt.h
17652fi
17653
17654 fi
17655
17656 if test -z "$GETOPT_H"; then
17657 echo "$as_me:$LINENO: checking for working GNU getopt function" >&5
17658echo $ECHO_N "checking for working GNU getopt function... $ECHO_C" >&6
17659if test "${gl_cv_func_gnu_getopt+set}" = set; then
17660 echo $ECHO_N "(cached) $ECHO_C" >&6
17661else
17662 if test "$cross_compiling" = yes; then
17663 echo "$as_me:$LINENO: checking whether getopt_clip is declared" >&5
17664echo $ECHO_N "checking whether getopt_clip is declared... $ECHO_C" >&6
17665if test "${ac_cv_have_decl_getopt_clip+set}" = set; then
17666 echo $ECHO_N "(cached) $ECHO_C" >&6
17667else
17668 cat >conftest.$ac_ext <<_ACEOF
17669/* confdefs.h. */
17670_ACEOF
17671cat confdefs.h >>conftest.$ac_ext
17672cat >>conftest.$ac_ext <<_ACEOF
17673/* end confdefs.h. */
17674#include <getopt.h>
17675
17676int
17677main ()
17678{
17679#ifndef getopt_clip
17680 char *p = (char *) getopt_clip;
17681#endif
17682
17683 ;
17684 return 0;
17685}
17686_ACEOF
17687rm -f conftest.$ac_objext
17688if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17689 (eval $ac_compile) 2>conftest.er1
17690 ac_status=$?
17691 grep -v '^ *+' conftest.er1 >conftest.err
17692 rm -f conftest.er1
17693 cat conftest.err >&5
17694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17695 (exit $ac_status); } &&
17696 { ac_try='test -z "$ac_c_werror_flag"
17697 || test ! -s conftest.err'
17698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17699 (eval $ac_try) 2>&5
17700 ac_status=$?
17701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17702 (exit $ac_status); }; } &&
17703 { ac_try='test -s conftest.$ac_objext'
17704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17705 (eval $ac_try) 2>&5
17706 ac_status=$?
17707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17708 (exit $ac_status); }; }; then
17709 ac_cv_have_decl_getopt_clip=yes
17710else
17711 echo "$as_me: failed program was:" >&5
17712sed 's/^/| /' conftest.$ac_ext >&5
17713
17714ac_cv_have_decl_getopt_clip=no
17715fi
17716rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17717fi
17718echo "$as_me:$LINENO: result: $ac_cv_have_decl_getopt_clip" >&5
17719echo "${ECHO_T}$ac_cv_have_decl_getopt_clip" >&6
17720if test $ac_cv_have_decl_getopt_clip = yes; then
17721 gl_cv_func_gnu_getopt=no
17722else
17723 gl_cv_func_gnu_getopt=yes
17724fi
17725
17726else
17727 cat >conftest.$ac_ext <<_ACEOF
17728/* confdefs.h. */
17729_ACEOF
17730cat confdefs.h >>conftest.$ac_ext
17731cat >>conftest.$ac_ext <<_ACEOF
17732/* end confdefs.h. */
17733#include <getopt.h>
17734int
17735main ()
17736{
17737
17738 char *myargv[3];
17739 myargv[0] = "conftest";
17740 myargv[1] = "-+";
17741 myargv[2] = 0;
17742 return getopt (2, myargv, "+a") != '?';
17743
17744 ;
17745 return 0;
17746}
17747_ACEOF
17748rm -f conftest$ac_exeext
17749if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17750 (eval $ac_link) 2>&5
17751 ac_status=$?
17752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17753 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17755 (eval $ac_try) 2>&5
17756 ac_status=$?
17757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17758 (exit $ac_status); }; }; then
17759 gl_cv_func_gnu_getopt=yes
17760else
17761 echo "$as_me: program exited with status $ac_status" >&5
17762echo "$as_me: failed program was:" >&5
17763sed 's/^/| /' conftest.$ac_ext >&5
17764
17765( exit $ac_status )
17766gl_cv_func_gnu_getopt=no
17767fi
17768rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17769fi
17770fi
17771echo "$as_me:$LINENO: result: $gl_cv_func_gnu_getopt" >&5
17772echo "${ECHO_T}$gl_cv_func_gnu_getopt" >&6
17773 if test "$gl_cv_func_gnu_getopt" = "no"; then
17774 GETOPT_H=getopt.h
17775 fi
17776 fi
17777
17778
17779
17780 if test -n "$GETOPT_H"; then
17781
17782
17783 GETOPT_H=getopt.h
17784
17785cat >>confdefs.h <<\_ACEOF
17786#define __GETOPT_PREFIX rpl_
17787_ACEOF
17788
17789
17790
17791 :
17792 GETOPTOBJS='getopt.o getopt1.o'
17793
17794fi
17795
17796
17797
17798
17799echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5
17800echo $ECHO_N "checking whether getpgrp requires zero arguments... $ECHO_C" >&6
17801if test "${ac_cv_func_getpgrp_void+set}" = set; then
17802 echo $ECHO_N "(cached) $ECHO_C" >&6
17803else
17804 # Use it with a single arg.
17805cat >conftest.$ac_ext <<_ACEOF
17806/* confdefs.h. */
17807_ACEOF
17808cat confdefs.h >>conftest.$ac_ext
17809cat >>conftest.$ac_ext <<_ACEOF
17810/* end confdefs.h. */
17811$ac_includes_default
17812int
17813main ()
17814{
17815getpgrp (0);
17816 ;
17817 return 0;
17818}
17819_ACEOF
17820rm -f conftest.$ac_objext
17821if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17822 (eval $ac_compile) 2>conftest.er1
17823 ac_status=$?
17824 grep -v '^ *+' conftest.er1 >conftest.err
17825 rm -f conftest.er1
17826 cat conftest.err >&5
17827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17828 (exit $ac_status); } &&
17829 { ac_try='test -z "$ac_c_werror_flag"
17830 || test ! -s conftest.err'
17831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17832 (eval $ac_try) 2>&5
17833 ac_status=$?
17834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17835 (exit $ac_status); }; } &&
17836 { ac_try='test -s conftest.$ac_objext'
17837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17838 (eval $ac_try) 2>&5
17839 ac_status=$?
17840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17841 (exit $ac_status); }; }; then
17842 ac_cv_func_getpgrp_void=no
17843else
17844 echo "$as_me: failed program was:" >&5
17845sed 's/^/| /' conftest.$ac_ext >&5
17846
17847ac_cv_func_getpgrp_void=yes
17848fi
17849rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17850
17851fi
17852echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5
17853echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6
17854if test $ac_cv_func_getpgrp_void = yes; then
17855
17856cat >>confdefs.h <<\_ACEOF
17857#define GETPGRP_VOID 1
17858_ACEOF
17859
17860fi
17861
17862
17863
17864for ac_func in strftime
17865do
17866as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17867echo "$as_me:$LINENO: checking for $ac_func" >&5
17868echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17869if eval "test \"\${$as_ac_var+set}\" = set"; then
17870 echo $ECHO_N "(cached) $ECHO_C" >&6
17871else
17872 cat >conftest.$ac_ext <<_ACEOF
17873/* confdefs.h. */
17874_ACEOF
17875cat confdefs.h >>conftest.$ac_ext
17876cat >>conftest.$ac_ext <<_ACEOF
17877/* end confdefs.h. */
17878/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17879 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17880#define $ac_func innocuous_$ac_func
17881
17882/* System header to define __stub macros and hopefully few prototypes,
17883 which can conflict with char $ac_func (); below.
17884 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17885 <limits.h> exists even on freestanding compilers. */
17886
17887#ifdef __STDC__
17888# include <limits.h>
17889#else
17890# include <assert.h>
17891#endif
17892
17893#undef $ac_func
17894
17895/* Override any gcc2 internal prototype to avoid an error. */
17896#ifdef __cplusplus
17897extern "C"
17898{
17899#endif
17900/* We use char because int might match the return type of a gcc2
17901 builtin and then its argument prototype would still apply. */
17902char $ac_func ();
17903/* The GNU C library defines this for functions which it implements
17904 to always fail with ENOSYS. Some functions are actually named
17905 something starting with __ and the normal name is an alias. */
17906#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17907choke me
17908#else
17909char (*f) () = $ac_func;
17910#endif
17911#ifdef __cplusplus
17912}
17913#endif
17914
17915int
17916main ()
17917{
17918return f != $ac_func;
17919 ;
17920 return 0;
17921}
17922_ACEOF
17923rm -f conftest.$ac_objext conftest$ac_exeext
17924if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17925 (eval $ac_link) 2>conftest.er1
17926 ac_status=$?
17927 grep -v '^ *+' conftest.er1 >conftest.err
17928 rm -f conftest.er1
17929 cat conftest.err >&5
17930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17931 (exit $ac_status); } &&
17932 { ac_try='test -z "$ac_c_werror_flag"
17933 || test ! -s conftest.err'
17934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17935 (eval $ac_try) 2>&5
17936 ac_status=$?
17937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17938 (exit $ac_status); }; } &&
17939 { ac_try='test -s conftest$ac_exeext'
17940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17941 (eval $ac_try) 2>&5
17942 ac_status=$?
17943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17944 (exit $ac_status); }; }; then
17945 eval "$as_ac_var=yes"
17946else
17947 echo "$as_me: failed program was:" >&5
17948sed 's/^/| /' conftest.$ac_ext >&5
17949
17950eval "$as_ac_var=no"
17951fi
17952rm -f conftest.err conftest.$ac_objext \
17953 conftest$ac_exeext conftest.$ac_ext
17954fi
17955echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17956echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17957if test `eval echo '${'$as_ac_var'}'` = yes; then
17958 cat >>confdefs.h <<_ACEOF
17959#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17960_ACEOF
17961
17962else
17963 # strftime is in -lintl on SCO UNIX.
17964echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
17965echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
17966if test "${ac_cv_lib_intl_strftime+set}" = set; then
17967 echo $ECHO_N "(cached) $ECHO_C" >&6
17968else
17969 ac_check_lib_save_LIBS=$LIBS
17970LIBS="-lintl $LIBS"
17971cat >conftest.$ac_ext <<_ACEOF
17972/* confdefs.h. */
17973_ACEOF
17974cat confdefs.h >>conftest.$ac_ext
17975cat >>conftest.$ac_ext <<_ACEOF
17976/* end confdefs.h. */
17977
17978/* Override any gcc2 internal prototype to avoid an error. */
17979#ifdef __cplusplus
17980extern "C"
17981#endif
17982/* We use char because int might match the return type of a gcc2
17983 builtin and then its argument prototype would still apply. */
17984char strftime ();
17985int
17986main ()
17987{
17988strftime ();
17989 ;
17990 return 0;
17991}
17992_ACEOF
17993rm -f conftest.$ac_objext conftest$ac_exeext
17994if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17995 (eval $ac_link) 2>conftest.er1
17996 ac_status=$?
17997 grep -v '^ *+' conftest.er1 >conftest.err
17998 rm -f conftest.er1
17999 cat conftest.err >&5
18000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18001 (exit $ac_status); } &&
18002 { ac_try='test -z "$ac_c_werror_flag"
18003 || test ! -s conftest.err'
18004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18005 (eval $ac_try) 2>&5
18006 ac_status=$?
18007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18008 (exit $ac_status); }; } &&
18009 { ac_try='test -s conftest$ac_exeext'
18010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18011 (eval $ac_try) 2>&5
18012 ac_status=$?
18013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18014 (exit $ac_status); }; }; then
18015 ac_cv_lib_intl_strftime=yes
18016else
18017 echo "$as_me: failed program was:" >&5
18018sed 's/^/| /' conftest.$ac_ext >&5
18019
18020ac_cv_lib_intl_strftime=no
18021fi
18022rm -f conftest.err conftest.$ac_objext \
18023 conftest$ac_exeext conftest.$ac_ext
18024LIBS=$ac_check_lib_save_LIBS
18025fi
18026echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
18027echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
18028if test $ac_cv_lib_intl_strftime = yes; then
18029 cat >>confdefs.h <<\_ACEOF
18030#define HAVE_STRFTIME 1
18031_ACEOF
18032
18033LIBS="-lintl $LIBS"
18034fi
18035
18036fi
18037done
18038
18039
18040# UNIX98 PTYs.
18041
18042for ac_func in grantpt
18043do
18044as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18045echo "$as_me:$LINENO: checking for $ac_func" >&5
18046echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18047if eval "test \"\${$as_ac_var+set}\" = set"; then
18048 echo $ECHO_N "(cached) $ECHO_C" >&6
18049else
18050 cat >conftest.$ac_ext <<_ACEOF
18051/* confdefs.h. */
18052_ACEOF
18053cat confdefs.h >>conftest.$ac_ext
18054cat >>conftest.$ac_ext <<_ACEOF
18055/* end confdefs.h. */
18056/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18057 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18058#define $ac_func innocuous_$ac_func
18059
18060/* System header to define __stub macros and hopefully few prototypes,
18061 which can conflict with char $ac_func (); below.
18062 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18063 <limits.h> exists even on freestanding compilers. */
18064
18065#ifdef __STDC__
18066# include <limits.h>
18067#else
18068# include <assert.h>
18069#endif
18070
18071#undef $ac_func
18072
18073/* Override any gcc2 internal prototype to avoid an error. */
18074#ifdef __cplusplus
18075extern "C"
18076{
18077#endif
18078/* We use char because int might match the return type of a gcc2
18079 builtin and then its argument prototype would still apply. */
18080char $ac_func ();
18081/* The GNU C library defines this for functions which it implements
18082 to always fail with ENOSYS. Some functions are actually named
18083 something starting with __ and the normal name is an alias. */
18084#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18085choke me
18086#else
18087char (*f) () = $ac_func;
18088#endif
18089#ifdef __cplusplus
18090}
18091#endif
18092
18093int
18094main ()
18095{
18096return f != $ac_func;
18097 ;
18098 return 0;
18099}
18100_ACEOF
18101rm -f conftest.$ac_objext conftest$ac_exeext
18102if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18103 (eval $ac_link) 2>conftest.er1
18104 ac_status=$?
18105 grep -v '^ *+' conftest.er1 >conftest.err
18106 rm -f conftest.er1
18107 cat conftest.err >&5
18108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18109 (exit $ac_status); } &&
18110 { ac_try='test -z "$ac_c_werror_flag"
18111 || test ! -s conftest.err'
18112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18113 (eval $ac_try) 2>&5
18114 ac_status=$?
18115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18116 (exit $ac_status); }; } &&
18117 { ac_try='test -s conftest$ac_exeext'
18118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18119 (eval $ac_try) 2>&5
18120 ac_status=$?
18121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18122 (exit $ac_status); }; }; then
18123 eval "$as_ac_var=yes"
18124else
18125 echo "$as_me: failed program was:" >&5
18126sed 's/^/| /' conftest.$ac_ext >&5
18127
18128eval "$as_ac_var=no"
18129fi
18130rm -f conftest.err conftest.$ac_objext \
18131 conftest$ac_exeext conftest.$ac_ext
18132fi
18133echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18134echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18135if test `eval echo '${'$as_ac_var'}'` = yes; then
18136 cat >>confdefs.h <<_ACEOF
18137#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18138_ACEOF
18139
18140fi
18141done
18142
18143
18144# PTY-related GNU extensions.
18145
18146for ac_func in getpt
18147do
18148as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18149echo "$as_me:$LINENO: checking for $ac_func" >&5
18150echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18151if eval "test \"\${$as_ac_var+set}\" = set"; then
18152 echo $ECHO_N "(cached) $ECHO_C" >&6
18153else
18154 cat >conftest.$ac_ext <<_ACEOF
18155/* confdefs.h. */
18156_ACEOF
18157cat confdefs.h >>conftest.$ac_ext
18158cat >>conftest.$ac_ext <<_ACEOF
18159/* end confdefs.h. */
18160/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18161 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18162#define $ac_func innocuous_$ac_func
18163
18164/* System header to define __stub macros and hopefully few prototypes,
18165 which can conflict with char $ac_func (); below.
18166 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18167 <limits.h> exists even on freestanding compilers. */
18168
18169#ifdef __STDC__
18170# include <limits.h>
18171#else
18172# include <assert.h>
18173#endif
18174
18175#undef $ac_func
18176
18177/* Override any gcc2 internal prototype to avoid an error. */
18178#ifdef __cplusplus
18179extern "C"
18180{
18181#endif
18182/* We use char because int might match the return type of a gcc2
18183 builtin and then its argument prototype would still apply. */
18184char $ac_func ();
18185/* The GNU C library defines this for functions which it implements
18186 to always fail with ENOSYS. Some functions are actually named
18187 something starting with __ and the normal name is an alias. */
18188#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18189choke me
18190#else
18191char (*f) () = $ac_func;
18192#endif
18193#ifdef __cplusplus
18194}
18195#endif
18196
18197int
18198main ()
18199{
18200return f != $ac_func;
18201 ;
18202 return 0;
18203}
18204_ACEOF
18205rm -f conftest.$ac_objext conftest$ac_exeext
18206if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18207 (eval $ac_link) 2>conftest.er1
18208 ac_status=$?
18209 grep -v '^ *+' conftest.er1 >conftest.err
18210 rm -f conftest.er1
18211 cat conftest.err >&5
18212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18213 (exit $ac_status); } &&
18214 { ac_try='test -z "$ac_c_werror_flag"
18215 || test ! -s conftest.err'
18216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18217 (eval $ac_try) 2>&5
18218 ac_status=$?
18219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18220 (exit $ac_status); }; } &&
18221 { ac_try='test -s conftest$ac_exeext'
18222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18223 (eval $ac_try) 2>&5
18224 ac_status=$?
18225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18226 (exit $ac_status); }; }; then
18227 eval "$as_ac_var=yes"
18228else
18229 echo "$as_me: failed program was:" >&5
18230sed 's/^/| /' conftest.$ac_ext >&5
18231
18232eval "$as_ac_var=no"
18233fi
18234rm -f conftest.err conftest.$ac_objext \
18235 conftest$ac_exeext conftest.$ac_ext
18236fi
18237echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18238echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18239if test `eval echo '${'$as_ac_var'}'` = yes; then
18240 cat >>confdefs.h <<_ACEOF
18241#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18242_ACEOF
18243
18244fi
18245done
18246
18247
18248# Check this now, so that we will NOT find the above functions in ncurses.
18249# That is because we have not set up to link ncurses in lib-src.
18250# It's better to believe a function is not available
18251# than to expect to find it in ncurses.
18252
18253echo "$as_me:$LINENO: checking for tparm in -lncurses" >&5
18254echo $ECHO_N "checking for tparm in -lncurses... $ECHO_C" >&6
18255if test "${ac_cv_lib_ncurses_tparm+set}" = set; then
18256 echo $ECHO_N "(cached) $ECHO_C" >&6
18257else
18258 ac_check_lib_save_LIBS=$LIBS
18259LIBS="-lncurses $LIBS"
18260cat >conftest.$ac_ext <<_ACEOF
18261/* confdefs.h. */
18262_ACEOF
18263cat confdefs.h >>conftest.$ac_ext
18264cat >>conftest.$ac_ext <<_ACEOF
18265/* end confdefs.h. */
18266
18267/* Override any gcc2 internal prototype to avoid an error. */
18268#ifdef __cplusplus
18269extern "C"
18270#endif
18271/* We use char because int might match the return type of a gcc2
18272 builtin and then its argument prototype would still apply. */
18273char tparm ();
18274int
18275main ()
18276{
18277tparm ();
18278 ;
18279 return 0;
18280}
18281_ACEOF
18282rm -f conftest.$ac_objext conftest$ac_exeext
18283if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18284 (eval $ac_link) 2>conftest.er1
18285 ac_status=$?
18286 grep -v '^ *+' conftest.er1 >conftest.err
18287 rm -f conftest.er1
18288 cat conftest.err >&5
18289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18290 (exit $ac_status); } &&
18291 { ac_try='test -z "$ac_c_werror_flag"
18292 || test ! -s conftest.err'
18293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18294 (eval $ac_try) 2>&5
18295 ac_status=$?
18296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18297 (exit $ac_status); }; } &&
18298 { ac_try='test -s conftest$ac_exeext'
18299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18300 (eval $ac_try) 2>&5
18301 ac_status=$?
18302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18303 (exit $ac_status); }; }; then
18304 ac_cv_lib_ncurses_tparm=yes
18305else
18306 echo "$as_me: failed program was:" >&5
18307sed 's/^/| /' conftest.$ac_ext >&5
18308
18309ac_cv_lib_ncurses_tparm=no
18310fi
18311rm -f conftest.err conftest.$ac_objext \
18312 conftest$ac_exeext conftest.$ac_ext
18313LIBS=$ac_check_lib_save_LIBS
18314fi
18315echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tparm" >&5
18316echo "${ECHO_T}$ac_cv_lib_ncurses_tparm" >&6
18317if test $ac_cv_lib_ncurses_tparm = yes; then
18318 cat >>confdefs.h <<_ACEOF
18319#define HAVE_LIBNCURSES 1
18320_ACEOF
18321
18322 LIBS="-lncurses $LIBS"
18323
18324fi
18325
18326
18327# Do we need the Hesiod library to provide the support routines?
18328if test "$with_hesiod" = yes ; then
18329 # Don't set $LIBS here -- see comments above.
18330 resolv=no
18331 echo "$as_me:$LINENO: checking for res_send" >&5
18332echo $ECHO_N "checking for res_send... $ECHO_C" >&6
18333if test "${ac_cv_func_res_send+set}" = set; then
18334 echo $ECHO_N "(cached) $ECHO_C" >&6
18335else
18336 cat >conftest.$ac_ext <<_ACEOF
18337/* confdefs.h. */
18338_ACEOF
18339cat confdefs.h >>conftest.$ac_ext
18340cat >>conftest.$ac_ext <<_ACEOF
18341/* end confdefs.h. */
18342/* Define res_send to an innocuous variant, in case <limits.h> declares res_send.
18343 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18344#define res_send innocuous_res_send
18345
18346/* System header to define __stub macros and hopefully few prototypes,
18347 which can conflict with char res_send (); below.
18348 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18349 <limits.h> exists even on freestanding compilers. */
18350
18351#ifdef __STDC__
18352# include <limits.h>
18353#else
18354# include <assert.h>
18355#endif
18356
18357#undef res_send
18358
18359/* Override any gcc2 internal prototype to avoid an error. */
18360#ifdef __cplusplus
18361extern "C"
18362{
18363#endif
18364/* We use char because int might match the return type of a gcc2
18365 builtin and then its argument prototype would still apply. */
18366char res_send ();
18367/* The GNU C library defines this for functions which it implements
18368 to always fail with ENOSYS. Some functions are actually named
18369 something starting with __ and the normal name is an alias. */
18370#if defined (__stub_res_send) || defined (__stub___res_send)
18371choke me
18372#else
18373char (*f) () = res_send;
18374#endif
18375#ifdef __cplusplus
18376}
18377#endif
18378
18379int
18380main ()
18381{
18382return f != res_send;
18383 ;
18384 return 0;
18385}
18386_ACEOF
18387rm -f conftest.$ac_objext conftest$ac_exeext
18388if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18389 (eval $ac_link) 2>conftest.er1
18390 ac_status=$?
18391 grep -v '^ *+' conftest.er1 >conftest.err
18392 rm -f conftest.er1
18393 cat conftest.err >&5
18394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18395 (exit $ac_status); } &&
18396 { ac_try='test -z "$ac_c_werror_flag"
18397 || test ! -s conftest.err'
18398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18399 (eval $ac_try) 2>&5
18400 ac_status=$?
18401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18402 (exit $ac_status); }; } &&
18403 { ac_try='test -s conftest$ac_exeext'
18404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18405 (eval $ac_try) 2>&5
18406 ac_status=$?
18407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18408 (exit $ac_status); }; }; then
18409 ac_cv_func_res_send=yes
18410else
18411 echo "$as_me: failed program was:" >&5
18412sed 's/^/| /' conftest.$ac_ext >&5
18413
18414ac_cv_func_res_send=no
18415fi
18416rm -f conftest.err conftest.$ac_objext \
18417 conftest$ac_exeext conftest.$ac_ext
18418fi
18419echo "$as_me:$LINENO: result: $ac_cv_func_res_send" >&5
18420echo "${ECHO_T}$ac_cv_func_res_send" >&6
18421if test $ac_cv_func_res_send = yes; then
18422 :
18423else
18424 echo "$as_me:$LINENO: checking for __res_send" >&5
18425echo $ECHO_N "checking for __res_send... $ECHO_C" >&6
18426if test "${ac_cv_func___res_send+set}" = set; then
18427 echo $ECHO_N "(cached) $ECHO_C" >&6
18428else
18429 cat >conftest.$ac_ext <<_ACEOF
18430/* confdefs.h. */
18431_ACEOF
18432cat confdefs.h >>conftest.$ac_ext
18433cat >>conftest.$ac_ext <<_ACEOF
18434/* end confdefs.h. */
18435/* Define __res_send to an innocuous variant, in case <limits.h> declares __res_send.
18436 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18437#define __res_send innocuous___res_send
18438
18439/* System header to define __stub macros and hopefully few prototypes,
18440 which can conflict with char __res_send (); below.
18441 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18442 <limits.h> exists even on freestanding compilers. */
18443
18444#ifdef __STDC__
18445# include <limits.h>
18446#else
18447# include <assert.h>
18448#endif
18449
18450#undef __res_send
18451
18452/* Override any gcc2 internal prototype to avoid an error. */
18453#ifdef __cplusplus
18454extern "C"
18455{
18456#endif
18457/* We use char because int might match the return type of a gcc2
18458 builtin and then its argument prototype would still apply. */
18459char __res_send ();
18460/* The GNU C library defines this for functions which it implements
18461 to always fail with ENOSYS. Some functions are actually named
18462 something starting with __ and the normal name is an alias. */
18463#if defined (__stub___res_send) || defined (__stub_____res_send)
18464choke me
18465#else
18466char (*f) () = __res_send;
18467#endif
18468#ifdef __cplusplus
18469}
18470#endif
18471
18472int
18473main ()
18474{
18475return f != __res_send;
18476 ;
18477 return 0;
18478}
18479_ACEOF
18480rm -f conftest.$ac_objext conftest$ac_exeext
18481if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18482 (eval $ac_link) 2>conftest.er1
18483 ac_status=$?
18484 grep -v '^ *+' conftest.er1 >conftest.err
18485 rm -f conftest.er1
18486 cat conftest.err >&5
18487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18488 (exit $ac_status); } &&
18489 { ac_try='test -z "$ac_c_werror_flag"
18490 || test ! -s conftest.err'
18491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18492 (eval $ac_try) 2>&5
18493 ac_status=$?
18494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18495 (exit $ac_status); }; } &&
18496 { ac_try='test -s conftest$ac_exeext'
18497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18498 (eval $ac_try) 2>&5
18499 ac_status=$?
18500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18501 (exit $ac_status); }; }; then
18502 ac_cv_func___res_send=yes
18503else
18504 echo "$as_me: failed program was:" >&5
18505sed 's/^/| /' conftest.$ac_ext >&5
18506
18507ac_cv_func___res_send=no
18508fi
18509rm -f conftest.err conftest.$ac_objext \
18510 conftest$ac_exeext conftest.$ac_ext
18511fi
18512echo "$as_me:$LINENO: result: $ac_cv_func___res_send" >&5
18513echo "${ECHO_T}$ac_cv_func___res_send" >&6
18514if test $ac_cv_func___res_send = yes; then
18515 :
18516else
18517 echo "$as_me:$LINENO: checking for res_send in -lresolv" >&5
18518echo $ECHO_N "checking for res_send in -lresolv... $ECHO_C" >&6
18519if test "${ac_cv_lib_resolv_res_send+set}" = set; then
18520 echo $ECHO_N "(cached) $ECHO_C" >&6
18521else
18522 ac_check_lib_save_LIBS=$LIBS
18523LIBS="-lresolv $LIBS"
18524cat >conftest.$ac_ext <<_ACEOF
18525/* confdefs.h. */
18526_ACEOF
18527cat confdefs.h >>conftest.$ac_ext
18528cat >>conftest.$ac_ext <<_ACEOF
18529/* end confdefs.h. */
18530
18531/* Override any gcc2 internal prototype to avoid an error. */
18532#ifdef __cplusplus
18533extern "C"
18534#endif
18535/* We use char because int might match the return type of a gcc2
18536 builtin and then its argument prototype would still apply. */
18537char res_send ();
18538int
18539main ()
18540{
18541res_send ();
18542 ;
18543 return 0;
18544}
18545_ACEOF
18546rm -f conftest.$ac_objext conftest$ac_exeext
18547if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18548 (eval $ac_link) 2>conftest.er1
18549 ac_status=$?
18550 grep -v '^ *+' conftest.er1 >conftest.err
18551 rm -f conftest.er1
18552 cat conftest.err >&5
18553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18554 (exit $ac_status); } &&
18555 { ac_try='test -z "$ac_c_werror_flag"
18556 || test ! -s conftest.err'
18557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18558 (eval $ac_try) 2>&5
18559 ac_status=$?
18560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18561 (exit $ac_status); }; } &&
18562 { ac_try='test -s conftest$ac_exeext'
18563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18564 (eval $ac_try) 2>&5
18565 ac_status=$?
18566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18567 (exit $ac_status); }; }; then
18568 ac_cv_lib_resolv_res_send=yes
18569else
18570 echo "$as_me: failed program was:" >&5
18571sed 's/^/| /' conftest.$ac_ext >&5
18572
18573ac_cv_lib_resolv_res_send=no
18574fi
18575rm -f conftest.err conftest.$ac_objext \
18576 conftest$ac_exeext conftest.$ac_ext
18577LIBS=$ac_check_lib_save_LIBS
18578fi
18579echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_send" >&5
18580echo "${ECHO_T}$ac_cv_lib_resolv_res_send" >&6
18581if test $ac_cv_lib_resolv_res_send = yes; then
18582 resolv=yes
18583else
18584 echo "$as_me:$LINENO: checking for __res_send in -lresolv" >&5
18585echo $ECHO_N "checking for __res_send in -lresolv... $ECHO_C" >&6
18586if test "${ac_cv_lib_resolv___res_send+set}" = set; then
18587 echo $ECHO_N "(cached) $ECHO_C" >&6
18588else
18589 ac_check_lib_save_LIBS=$LIBS
18590LIBS="-lresolv $LIBS"
18591cat >conftest.$ac_ext <<_ACEOF
18592/* confdefs.h. */
18593_ACEOF
18594cat confdefs.h >>conftest.$ac_ext
18595cat >>conftest.$ac_ext <<_ACEOF
18596/* end confdefs.h. */
18597
18598/* Override any gcc2 internal prototype to avoid an error. */
18599#ifdef __cplusplus
18600extern "C"
18601#endif
18602/* We use char because int might match the return type of a gcc2
18603 builtin and then its argument prototype would still apply. */
18604char __res_send ();
18605int
18606main ()
18607{
18608__res_send ();
18609 ;
18610 return 0;
18611}
18612_ACEOF
18613rm -f conftest.$ac_objext conftest$ac_exeext
18614if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18615 (eval $ac_link) 2>conftest.er1
18616 ac_status=$?
18617 grep -v '^ *+' conftest.er1 >conftest.err
18618 rm -f conftest.er1
18619 cat conftest.err >&5
18620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18621 (exit $ac_status); } &&
18622 { ac_try='test -z "$ac_c_werror_flag"
18623 || test ! -s conftest.err'
18624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18625 (eval $ac_try) 2>&5
18626 ac_status=$?
18627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18628 (exit $ac_status); }; } &&
18629 { ac_try='test -s conftest$ac_exeext'
18630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18631 (eval $ac_try) 2>&5
18632 ac_status=$?
18633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18634 (exit $ac_status); }; }; then
18635 ac_cv_lib_resolv___res_send=yes
18636else
18637 echo "$as_me: failed program was:" >&5
18638sed 's/^/| /' conftest.$ac_ext >&5
18639
18640ac_cv_lib_resolv___res_send=no
18641fi
18642rm -f conftest.err conftest.$ac_objext \
18643 conftest$ac_exeext conftest.$ac_ext
18644LIBS=$ac_check_lib_save_LIBS
18645fi
18646echo "$as_me:$LINENO: result: $ac_cv_lib_resolv___res_send" >&5
18647echo "${ECHO_T}$ac_cv_lib_resolv___res_send" >&6
18648if test $ac_cv_lib_resolv___res_send = yes; then
18649 resolv=yes
18650fi
18651
18652fi
18653
18654fi
18655
18656fi
18657
18658 if test "$resolv" = yes ; then
18659 RESOLVLIB=-lresolv
18660
18661cat >>confdefs.h <<\_ACEOF
18662#define HAVE_LIBRESOLV 1
18663_ACEOF
18664
18665 else
18666 RESOLVLIB=
18667 fi
18668 echo "$as_me:$LINENO: checking for hes_getmailhost" >&5
18669echo $ECHO_N "checking for hes_getmailhost... $ECHO_C" >&6
18670if test "${ac_cv_func_hes_getmailhost+set}" = set; then
18671 echo $ECHO_N "(cached) $ECHO_C" >&6
18672else
18673 cat >conftest.$ac_ext <<_ACEOF
18674/* confdefs.h. */
18675_ACEOF
18676cat confdefs.h >>conftest.$ac_ext
18677cat >>conftest.$ac_ext <<_ACEOF
18678/* end confdefs.h. */
18679/* Define hes_getmailhost to an innocuous variant, in case <limits.h> declares hes_getmailhost.
18680 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18681#define hes_getmailhost innocuous_hes_getmailhost
18682
18683/* System header to define __stub macros and hopefully few prototypes,
18684 which can conflict with char hes_getmailhost (); below.
18685 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18686 <limits.h> exists even on freestanding compilers. */
18687
18688#ifdef __STDC__
18689# include <limits.h>
18690#else
18691# include <assert.h>
18692#endif
18693
18694#undef hes_getmailhost
18695
18696/* Override any gcc2 internal prototype to avoid an error. */
18697#ifdef __cplusplus
18698extern "C"
18699{
18700#endif
18701/* We use char because int might match the return type of a gcc2
18702 builtin and then its argument prototype would still apply. */
18703char hes_getmailhost ();
18704/* The GNU C library defines this for functions which it implements
18705 to always fail with ENOSYS. Some functions are actually named
18706 something starting with __ and the normal name is an alias. */
18707#if defined (__stub_hes_getmailhost) || defined (__stub___hes_getmailhost)
18708choke me
18709#else
18710char (*f) () = hes_getmailhost;
18711#endif
18712#ifdef __cplusplus
18713}
18714#endif
18715
18716int
18717main ()
18718{
18719return f != hes_getmailhost;
18720 ;
18721 return 0;
18722}
18723_ACEOF
18724rm -f conftest.$ac_objext conftest$ac_exeext
18725if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18726 (eval $ac_link) 2>conftest.er1
18727 ac_status=$?
18728 grep -v '^ *+' conftest.er1 >conftest.err
18729 rm -f conftest.er1
18730 cat conftest.err >&5
18731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18732 (exit $ac_status); } &&
18733 { ac_try='test -z "$ac_c_werror_flag"
18734 || test ! -s conftest.err'
18735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18736 (eval $ac_try) 2>&5
18737 ac_status=$?
18738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18739 (exit $ac_status); }; } &&
18740 { ac_try='test -s conftest$ac_exeext'
18741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18742 (eval $ac_try) 2>&5
18743 ac_status=$?
18744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18745 (exit $ac_status); }; }; then
18746 ac_cv_func_hes_getmailhost=yes
18747else
18748 echo "$as_me: failed program was:" >&5
18749sed 's/^/| /' conftest.$ac_ext >&5
18750
18751ac_cv_func_hes_getmailhost=no
18752fi
18753rm -f conftest.err conftest.$ac_objext \
18754 conftest$ac_exeext conftest.$ac_ext
18755fi
18756echo "$as_me:$LINENO: result: $ac_cv_func_hes_getmailhost" >&5
18757echo "${ECHO_T}$ac_cv_func_hes_getmailhost" >&6
18758if test $ac_cv_func_hes_getmailhost = yes; then
18759 :
18760else
18761 echo "$as_me:$LINENO: checking for hes_getmailhost in -lhesiod" >&5
18762echo $ECHO_N "checking for hes_getmailhost in -lhesiod... $ECHO_C" >&6
18763if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
18764 echo $ECHO_N "(cached) $ECHO_C" >&6
18765else
18766 ac_check_lib_save_LIBS=$LIBS
18767LIBS="-lhesiod $RESOLVLIB $LIBS"
18768cat >conftest.$ac_ext <<_ACEOF
18769/* confdefs.h. */
18770_ACEOF
18771cat confdefs.h >>conftest.$ac_ext
18772cat >>conftest.$ac_ext <<_ACEOF
18773/* end confdefs.h. */
18774
18775/* Override any gcc2 internal prototype to avoid an error. */
18776#ifdef __cplusplus
18777extern "C"
18778#endif
18779/* We use char because int might match the return type of a gcc2
18780 builtin and then its argument prototype would still apply. */
18781char hes_getmailhost ();
18782int
18783main ()
18784{
18785hes_getmailhost ();
18786 ;
18787 return 0;
18788}
18789_ACEOF
18790rm -f conftest.$ac_objext conftest$ac_exeext
18791if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18792 (eval $ac_link) 2>conftest.er1
18793 ac_status=$?
18794 grep -v '^ *+' conftest.er1 >conftest.err
18795 rm -f conftest.er1
18796 cat conftest.err >&5
18797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18798 (exit $ac_status); } &&
18799 { ac_try='test -z "$ac_c_werror_flag"
18800 || test ! -s conftest.err'
18801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18802 (eval $ac_try) 2>&5
18803 ac_status=$?
18804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18805 (exit $ac_status); }; } &&
18806 { ac_try='test -s conftest$ac_exeext'
18807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18808 (eval $ac_try) 2>&5
18809 ac_status=$?
18810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18811 (exit $ac_status); }; }; then
18812 ac_cv_lib_hesiod_hes_getmailhost=yes
18813else
18814 echo "$as_me: failed program was:" >&5
18815sed 's/^/| /' conftest.$ac_ext >&5
18816
18817ac_cv_lib_hesiod_hes_getmailhost=no
18818fi
18819rm -f conftest.err conftest.$ac_objext \
18820 conftest$ac_exeext conftest.$ac_ext
18821LIBS=$ac_check_lib_save_LIBS
18822fi
18823echo "$as_me:$LINENO: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
18824echo "${ECHO_T}$ac_cv_lib_hesiod_hes_getmailhost" >&6
18825if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then
18826
18827cat >>confdefs.h <<\_ACEOF
18828#define HAVE_LIBHESIOD 1
18829_ACEOF
18830
18831else
18832 :
18833fi
18834
18835fi
18836
18837fi
18838
18839# These tell us which Kerberos-related libraries to use.
18840if test "${with_kerberos+set}" = set; then
18841
18842echo "$as_me:$LINENO: checking for com_err in -lcom_err" >&5
18843echo $ECHO_N "checking for com_err in -lcom_err... $ECHO_C" >&6
18844if test "${ac_cv_lib_com_err_com_err+set}" = set; then
18845 echo $ECHO_N "(cached) $ECHO_C" >&6
18846else
18847 ac_check_lib_save_LIBS=$LIBS
18848LIBS="-lcom_err $LIBS"
18849cat >conftest.$ac_ext <<_ACEOF
18850/* confdefs.h. */
18851_ACEOF
18852cat confdefs.h >>conftest.$ac_ext
18853cat >>conftest.$ac_ext <<_ACEOF
18854/* end confdefs.h. */
18855
18856/* Override any gcc2 internal prototype to avoid an error. */
18857#ifdef __cplusplus
18858extern "C"
18859#endif
18860/* We use char because int might match the return type of a gcc2
18861 builtin and then its argument prototype would still apply. */
18862char com_err ();
18863int
18864main ()
18865{
18866com_err ();
18867 ;
18868 return 0;
18869}
18870_ACEOF
18871rm -f conftest.$ac_objext conftest$ac_exeext
18872if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18873 (eval $ac_link) 2>conftest.er1
18874 ac_status=$?
18875 grep -v '^ *+' conftest.er1 >conftest.err
18876 rm -f conftest.er1
18877 cat conftest.err >&5
18878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18879 (exit $ac_status); } &&
18880 { ac_try='test -z "$ac_c_werror_flag"
18881 || test ! -s conftest.err'
18882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18883 (eval $ac_try) 2>&5
18884 ac_status=$?
18885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18886 (exit $ac_status); }; } &&
18887 { ac_try='test -s conftest$ac_exeext'
18888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18889 (eval $ac_try) 2>&5
18890 ac_status=$?
18891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18892 (exit $ac_status); }; }; then
18893 ac_cv_lib_com_err_com_err=yes
18894else
18895 echo "$as_me: failed program was:" >&5
18896sed 's/^/| /' conftest.$ac_ext >&5
18897
18898ac_cv_lib_com_err_com_err=no
18899fi
18900rm -f conftest.err conftest.$ac_objext \
18901 conftest$ac_exeext conftest.$ac_ext
18902LIBS=$ac_check_lib_save_LIBS
18903fi
18904echo "$as_me:$LINENO: result: $ac_cv_lib_com_err_com_err" >&5
18905echo "${ECHO_T}$ac_cv_lib_com_err_com_err" >&6
18906if test $ac_cv_lib_com_err_com_err = yes; then
18907 cat >>confdefs.h <<_ACEOF
18908#define HAVE_LIBCOM_ERR 1
18909_ACEOF
18910
18911 LIBS="-lcom_err $LIBS"
18912
18913fi
18914
18915
18916echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
18917echo $ECHO_N "checking for mit_des_cbc_encrypt in -lk5crypto... $ECHO_C" >&6
18918if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
18919 echo $ECHO_N "(cached) $ECHO_C" >&6
18920else
18921 ac_check_lib_save_LIBS=$LIBS
18922LIBS="-lk5crypto $LIBS"
18923cat >conftest.$ac_ext <<_ACEOF
18924/* confdefs.h. */
18925_ACEOF
18926cat confdefs.h >>conftest.$ac_ext
18927cat >>conftest.$ac_ext <<_ACEOF
18928/* end confdefs.h. */
18929
18930/* Override any gcc2 internal prototype to avoid an error. */
18931#ifdef __cplusplus
18932extern "C"
18933#endif
18934/* We use char because int might match the return type of a gcc2
18935 builtin and then its argument prototype would still apply. */
18936char mit_des_cbc_encrypt ();
18937int
18938main ()
18939{
18940mit_des_cbc_encrypt ();
18941 ;
18942 return 0;
18943}
18944_ACEOF
18945rm -f conftest.$ac_objext conftest$ac_exeext
18946if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18947 (eval $ac_link) 2>conftest.er1
18948 ac_status=$?
18949 grep -v '^ *+' conftest.er1 >conftest.err
18950 rm -f conftest.er1
18951 cat conftest.err >&5
18952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18953 (exit $ac_status); } &&
18954 { ac_try='test -z "$ac_c_werror_flag"
18955 || test ! -s conftest.err'
18956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18957 (eval $ac_try) 2>&5
18958 ac_status=$?
18959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18960 (exit $ac_status); }; } &&
18961 { ac_try='test -s conftest$ac_exeext'
18962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18963 (eval $ac_try) 2>&5
18964 ac_status=$?
18965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18966 (exit $ac_status); }; }; then
18967 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
18968else
18969 echo "$as_me: failed program was:" >&5
18970sed 's/^/| /' conftest.$ac_ext >&5
18971
18972ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
18973fi
18974rm -f conftest.err conftest.$ac_objext \
18975 conftest$ac_exeext conftest.$ac_ext
18976LIBS=$ac_check_lib_save_LIBS
18977fi
18978echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
18979echo "${ECHO_T}$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6
18980if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then
18981 cat >>confdefs.h <<_ACEOF
18982#define HAVE_LIBK5CRYPTO 1
18983_ACEOF
18984
18985 LIBS="-lk5crypto $LIBS"
18986
18987fi
18988
18989
18990echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lcrypto" >&5
18991echo $ECHO_N "checking for mit_des_cbc_encrypt in -lcrypto... $ECHO_C" >&6
18992if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
18993 echo $ECHO_N "(cached) $ECHO_C" >&6
18994else
18995 ac_check_lib_save_LIBS=$LIBS
18996LIBS="-lcrypto $LIBS"
18997cat >conftest.$ac_ext <<_ACEOF
18998/* confdefs.h. */
18999_ACEOF
19000cat confdefs.h >>conftest.$ac_ext
19001cat >>conftest.$ac_ext <<_ACEOF
19002/* end confdefs.h. */
19003
19004/* Override any gcc2 internal prototype to avoid an error. */
19005#ifdef __cplusplus
19006extern "C"
19007#endif
19008/* We use char because int might match the return type of a gcc2
19009 builtin and then its argument prototype would still apply. */
19010char mit_des_cbc_encrypt ();
19011int
19012main ()
19013{
19014mit_des_cbc_encrypt ();
19015 ;
19016 return 0;
19017}
19018_ACEOF
19019rm -f conftest.$ac_objext conftest$ac_exeext
19020if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19021 (eval $ac_link) 2>conftest.er1
19022 ac_status=$?
19023 grep -v '^ *+' conftest.er1 >conftest.err
19024 rm -f conftest.er1
19025 cat conftest.err >&5
19026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19027 (exit $ac_status); } &&
19028 { ac_try='test -z "$ac_c_werror_flag"
19029 || test ! -s conftest.err'
19030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19031 (eval $ac_try) 2>&5
19032 ac_status=$?
19033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19034 (exit $ac_status); }; } &&
19035 { ac_try='test -s conftest$ac_exeext'
19036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19037 (eval $ac_try) 2>&5
19038 ac_status=$?
19039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19040 (exit $ac_status); }; }; then
19041 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
19042else
19043 echo "$as_me: failed program was:" >&5
19044sed 's/^/| /' conftest.$ac_ext >&5
19045
19046ac_cv_lib_crypto_mit_des_cbc_encrypt=no
19047fi
19048rm -f conftest.err conftest.$ac_objext \
19049 conftest$ac_exeext conftest.$ac_ext
19050LIBS=$ac_check_lib_save_LIBS
19051fi
19052echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
19053echo "${ECHO_T}$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6
19054if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then
19055 cat >>confdefs.h <<_ACEOF
19056#define HAVE_LIBCRYPTO 1
19057_ACEOF
19058
19059 LIBS="-lcrypto $LIBS"
19060
19061fi
19062
19063
19064echo "$as_me:$LINENO: checking for krb5_init_context in -lkrb5" >&5
19065echo $ECHO_N "checking for krb5_init_context in -lkrb5... $ECHO_C" >&6
19066if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
19067 echo $ECHO_N "(cached) $ECHO_C" >&6
19068else
19069 ac_check_lib_save_LIBS=$LIBS
19070LIBS="-lkrb5 $LIBS"
19071cat >conftest.$ac_ext <<_ACEOF
19072/* confdefs.h. */
19073_ACEOF
19074cat confdefs.h >>conftest.$ac_ext
19075cat >>conftest.$ac_ext <<_ACEOF
19076/* end confdefs.h. */
19077
19078/* Override any gcc2 internal prototype to avoid an error. */
19079#ifdef __cplusplus
19080extern "C"
19081#endif
19082/* We use char because int might match the return type of a gcc2
19083 builtin and then its argument prototype would still apply. */
19084char krb5_init_context ();
19085int
19086main ()
19087{
19088krb5_init_context ();
19089 ;
19090 return 0;
19091}
19092_ACEOF
19093rm -f conftest.$ac_objext conftest$ac_exeext
19094if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19095 (eval $ac_link) 2>conftest.er1
19096 ac_status=$?
19097 grep -v '^ *+' conftest.er1 >conftest.err
19098 rm -f conftest.er1
19099 cat conftest.err >&5
19100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19101 (exit $ac_status); } &&
19102 { ac_try='test -z "$ac_c_werror_flag"
19103 || test ! -s conftest.err'
19104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19105 (eval $ac_try) 2>&5
19106 ac_status=$?
19107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19108 (exit $ac_status); }; } &&
19109 { ac_try='test -s conftest$ac_exeext'
19110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19111 (eval $ac_try) 2>&5
19112 ac_status=$?
19113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19114 (exit $ac_status); }; }; then
19115 ac_cv_lib_krb5_krb5_init_context=yes
19116else
19117 echo "$as_me: failed program was:" >&5
19118sed 's/^/| /' conftest.$ac_ext >&5
19119
19120ac_cv_lib_krb5_krb5_init_context=no
19121fi
19122rm -f conftest.err conftest.$ac_objext \
19123 conftest$ac_exeext conftest.$ac_ext
19124LIBS=$ac_check_lib_save_LIBS
19125fi
19126echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_krb5_init_context" >&5
19127echo "${ECHO_T}$ac_cv_lib_krb5_krb5_init_context" >&6
19128if test $ac_cv_lib_krb5_krb5_init_context = yes; then
19129 cat >>confdefs.h <<_ACEOF
19130#define HAVE_LIBKRB5 1
19131_ACEOF
19132
19133 LIBS="-lkrb5 $LIBS"
19134
19135fi
19136
19137 if test "${with_kerberos5+set}" != set; then
19138
19139echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes425" >&5
19140echo $ECHO_N "checking for des_cbc_encrypt in -ldes425... $ECHO_C" >&6
19141if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
19142 echo $ECHO_N "(cached) $ECHO_C" >&6
19143else
19144 ac_check_lib_save_LIBS=$LIBS
19145LIBS="-ldes425 $LIBS"
19146cat >conftest.$ac_ext <<_ACEOF
19147/* confdefs.h. */
19148_ACEOF
19149cat confdefs.h >>conftest.$ac_ext
19150cat >>conftest.$ac_ext <<_ACEOF
19151/* end confdefs.h. */
19152
19153/* Override any gcc2 internal prototype to avoid an error. */
19154#ifdef __cplusplus
19155extern "C"
19156#endif
19157/* We use char because int might match the return type of a gcc2
19158 builtin and then its argument prototype would still apply. */
19159char des_cbc_encrypt ();
19160int
19161main ()
19162{
19163des_cbc_encrypt ();
19164 ;
19165 return 0;
19166}
19167_ACEOF
19168rm -f conftest.$ac_objext conftest$ac_exeext
19169if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19170 (eval $ac_link) 2>conftest.er1
19171 ac_status=$?
19172 grep -v '^ *+' conftest.er1 >conftest.err
19173 rm -f conftest.er1
19174 cat conftest.err >&5
19175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19176 (exit $ac_status); } &&
19177 { ac_try='test -z "$ac_c_werror_flag"
19178 || test ! -s conftest.err'
19179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19180 (eval $ac_try) 2>&5
19181 ac_status=$?
19182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19183 (exit $ac_status); }; } &&
19184 { ac_try='test -s conftest$ac_exeext'
19185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19186 (eval $ac_try) 2>&5
19187 ac_status=$?
19188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19189 (exit $ac_status); }; }; then
19190 ac_cv_lib_des425_des_cbc_encrypt=yes
19191else
19192 echo "$as_me: failed program was:" >&5
19193sed 's/^/| /' conftest.$ac_ext >&5
19194
19195ac_cv_lib_des425_des_cbc_encrypt=no
19196fi
19197rm -f conftest.err conftest.$ac_objext \
19198 conftest$ac_exeext conftest.$ac_ext
19199LIBS=$ac_check_lib_save_LIBS
19200fi
19201echo "$as_me:$LINENO: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
19202echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6
19203if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
19204 cat >>confdefs.h <<_ACEOF
19205#define HAVE_LIBDES425 1
19206_ACEOF
19207
19208 LIBS="-ldes425 $LIBS"
19209
19210else
19211
19212echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes" >&5
19213echo $ECHO_N "checking for des_cbc_encrypt in -ldes... $ECHO_C" >&6
19214if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
19215 echo $ECHO_N "(cached) $ECHO_C" >&6
19216else
19217 ac_check_lib_save_LIBS=$LIBS
19218LIBS="-ldes $LIBS"
19219cat >conftest.$ac_ext <<_ACEOF
19220/* confdefs.h. */
19221_ACEOF
19222cat confdefs.h >>conftest.$ac_ext
19223cat >>conftest.$ac_ext <<_ACEOF
19224/* end confdefs.h. */
19225
19226/* Override any gcc2 internal prototype to avoid an error. */
19227#ifdef __cplusplus
19228extern "C"
19229#endif
19230/* We use char because int might match the return type of a gcc2
19231 builtin and then its argument prototype would still apply. */
19232char des_cbc_encrypt ();
19233int
19234main ()
19235{
19236des_cbc_encrypt ();
19237 ;
19238 return 0;
19239}
19240_ACEOF
19241rm -f conftest.$ac_objext conftest$ac_exeext
19242if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19243 (eval $ac_link) 2>conftest.er1
19244 ac_status=$?
19245 grep -v '^ *+' conftest.er1 >conftest.err
19246 rm -f conftest.er1
19247 cat conftest.err >&5
19248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19249 (exit $ac_status); } &&
19250 { ac_try='test -z "$ac_c_werror_flag"
19251 || test ! -s conftest.err'
19252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19253 (eval $ac_try) 2>&5
19254 ac_status=$?
19255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19256 (exit $ac_status); }; } &&
19257 { ac_try='test -s conftest$ac_exeext'
19258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19259 (eval $ac_try) 2>&5
19260 ac_status=$?
19261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19262 (exit $ac_status); }; }; then
19263 ac_cv_lib_des_des_cbc_encrypt=yes
19264else
19265 echo "$as_me: failed program was:" >&5
19266sed 's/^/| /' conftest.$ac_ext >&5
19267
19268ac_cv_lib_des_des_cbc_encrypt=no
19269fi
19270rm -f conftest.err conftest.$ac_objext \
19271 conftest$ac_exeext conftest.$ac_ext
19272LIBS=$ac_check_lib_save_LIBS
19273fi
19274echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
19275echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6
19276if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
19277 cat >>confdefs.h <<_ACEOF
19278#define HAVE_LIBDES 1
19279_ACEOF
19280
19281 LIBS="-ldes $LIBS"
19282
19283fi
19284
19285fi
19286
19287
19288echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb4" >&5
19289echo $ECHO_N "checking for krb_get_cred in -lkrb4... $ECHO_C" >&6
19290if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
19291 echo $ECHO_N "(cached) $ECHO_C" >&6
19292else
19293 ac_check_lib_save_LIBS=$LIBS
19294LIBS="-lkrb4 $LIBS"
19295cat >conftest.$ac_ext <<_ACEOF
19296/* confdefs.h. */
19297_ACEOF
19298cat confdefs.h >>conftest.$ac_ext
19299cat >>conftest.$ac_ext <<_ACEOF
19300/* end confdefs.h. */
19301
19302/* Override any gcc2 internal prototype to avoid an error. */
19303#ifdef __cplusplus
19304extern "C"
19305#endif
19306/* We use char because int might match the return type of a gcc2
19307 builtin and then its argument prototype would still apply. */
19308char krb_get_cred ();
19309int
19310main ()
19311{
19312krb_get_cred ();
19313 ;
19314 return 0;
19315}
19316_ACEOF
19317rm -f conftest.$ac_objext conftest$ac_exeext
19318if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19319 (eval $ac_link) 2>conftest.er1
19320 ac_status=$?
19321 grep -v '^ *+' conftest.er1 >conftest.err
19322 rm -f conftest.er1
19323 cat conftest.err >&5
19324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19325 (exit $ac_status); } &&
19326 { ac_try='test -z "$ac_c_werror_flag"
19327 || test ! -s conftest.err'
19328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19329 (eval $ac_try) 2>&5
19330 ac_status=$?
19331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19332 (exit $ac_status); }; } &&
19333 { ac_try='test -s conftest$ac_exeext'
19334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19335 (eval $ac_try) 2>&5
19336 ac_status=$?
19337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19338 (exit $ac_status); }; }; then
19339 ac_cv_lib_krb4_krb_get_cred=yes
19340else
19341 echo "$as_me: failed program was:" >&5
19342sed 's/^/| /' conftest.$ac_ext >&5
19343
19344ac_cv_lib_krb4_krb_get_cred=no
19345fi
19346rm -f conftest.err conftest.$ac_objext \
19347 conftest$ac_exeext conftest.$ac_ext
19348LIBS=$ac_check_lib_save_LIBS
19349fi
19350echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_krb_get_cred" >&5
19351echo "${ECHO_T}$ac_cv_lib_krb4_krb_get_cred" >&6
19352if test $ac_cv_lib_krb4_krb_get_cred = yes; then
19353 cat >>confdefs.h <<_ACEOF
19354#define HAVE_LIBKRB4 1
19355_ACEOF
19356
19357 LIBS="-lkrb4 $LIBS"
19358
19359else
19360
19361echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb" >&5
19362echo $ECHO_N "checking for krb_get_cred in -lkrb... $ECHO_C" >&6
19363if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
19364 echo $ECHO_N "(cached) $ECHO_C" >&6
19365else
19366 ac_check_lib_save_LIBS=$LIBS
19367LIBS="-lkrb $LIBS"
19368cat >conftest.$ac_ext <<_ACEOF
19369/* confdefs.h. */
19370_ACEOF
19371cat confdefs.h >>conftest.$ac_ext
19372cat >>conftest.$ac_ext <<_ACEOF
19373/* end confdefs.h. */
19374
19375/* Override any gcc2 internal prototype to avoid an error. */
19376#ifdef __cplusplus
19377extern "C"
19378#endif
19379/* We use char because int might match the return type of a gcc2
19380 builtin and then its argument prototype would still apply. */
19381char krb_get_cred ();
19382int
19383main ()
19384{
19385krb_get_cred ();
19386 ;
19387 return 0;
19388}
19389_ACEOF
19390rm -f conftest.$ac_objext conftest$ac_exeext
19391if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19392 (eval $ac_link) 2>conftest.er1
19393 ac_status=$?
19394 grep -v '^ *+' conftest.er1 >conftest.err
19395 rm -f conftest.er1
19396 cat conftest.err >&5
19397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19398 (exit $ac_status); } &&
19399 { ac_try='test -z "$ac_c_werror_flag"
19400 || test ! -s conftest.err'
19401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19402 (eval $ac_try) 2>&5
19403 ac_status=$?
19404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19405 (exit $ac_status); }; } &&
19406 { ac_try='test -s conftest$ac_exeext'
19407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19408 (eval $ac_try) 2>&5
19409 ac_status=$?
19410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19411 (exit $ac_status); }; }; then
19412 ac_cv_lib_krb_krb_get_cred=yes
19413else
19414 echo "$as_me: failed program was:" >&5
19415sed 's/^/| /' conftest.$ac_ext >&5
19416
19417ac_cv_lib_krb_krb_get_cred=no
19418fi
19419rm -f conftest.err conftest.$ac_objext \
19420 conftest$ac_exeext conftest.$ac_ext
19421LIBS=$ac_check_lib_save_LIBS
19422fi
19423echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_get_cred" >&5
19424echo "${ECHO_T}$ac_cv_lib_krb_krb_get_cred" >&6
19425if test $ac_cv_lib_krb_krb_get_cred = yes; then
19426 cat >>confdefs.h <<_ACEOF
19427#define HAVE_LIBKRB 1
19428_ACEOF
19429
19430 LIBS="-lkrb $LIBS"
19431
19432fi
19433
19434fi
19435
19436 fi
19437
19438 if test "${with_kerberos5+set}" = set; then
19439
19440for ac_header in krb5.h
19441do
19442as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19443if eval "test \"\${$as_ac_Header+set}\" = set"; then
19444 echo "$as_me:$LINENO: checking for $ac_header" >&5
19445echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19446if eval "test \"\${$as_ac_Header+set}\" = set"; then
19447 echo $ECHO_N "(cached) $ECHO_C" >&6
19448fi
19449echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19450echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19451else
19452 # Is the header compilable?
19453echo "$as_me:$LINENO: checking $ac_header usability" >&5
19454echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19455cat >conftest.$ac_ext <<_ACEOF
19456/* confdefs.h. */
19457_ACEOF
19458cat confdefs.h >>conftest.$ac_ext
19459cat >>conftest.$ac_ext <<_ACEOF
19460/* end confdefs.h. */
19461$ac_includes_default
19462#include <$ac_header>
19463_ACEOF
19464rm -f conftest.$ac_objext
19465if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19466 (eval $ac_compile) 2>conftest.er1
19467 ac_status=$?
19468 grep -v '^ *+' conftest.er1 >conftest.err
19469 rm -f conftest.er1
19470 cat conftest.err >&5
19471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19472 (exit $ac_status); } &&
19473 { ac_try='test -z "$ac_c_werror_flag"
19474 || test ! -s conftest.err'
19475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19476 (eval $ac_try) 2>&5
19477 ac_status=$?
19478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19479 (exit $ac_status); }; } &&
19480 { ac_try='test -s conftest.$ac_objext'
19481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19482 (eval $ac_try) 2>&5
19483 ac_status=$?
19484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19485 (exit $ac_status); }; }; then
19486 ac_header_compiler=yes
19487else
19488 echo "$as_me: failed program was:" >&5
19489sed 's/^/| /' conftest.$ac_ext >&5
19490
19491ac_header_compiler=no
19492fi
19493rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19494echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19495echo "${ECHO_T}$ac_header_compiler" >&6
19496
19497# Is the header present?
19498echo "$as_me:$LINENO: checking $ac_header presence" >&5
19499echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19500cat >conftest.$ac_ext <<_ACEOF
19501/* confdefs.h. */
19502_ACEOF
19503cat confdefs.h >>conftest.$ac_ext
19504cat >>conftest.$ac_ext <<_ACEOF
19505/* end confdefs.h. */
19506#include <$ac_header>
19507_ACEOF
19508if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19509 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19510 ac_status=$?
19511 grep -v '^ *+' conftest.er1 >conftest.err
19512 rm -f conftest.er1
19513 cat conftest.err >&5
19514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19515 (exit $ac_status); } >/dev/null; then
19516 if test -s conftest.err; then
19517 ac_cpp_err=$ac_c_preproc_warn_flag
19518 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19519 else
19520 ac_cpp_err=
19521 fi
19522else
19523 ac_cpp_err=yes
19524fi
19525if test -z "$ac_cpp_err"; then
19526 ac_header_preproc=yes
19527else
19528 echo "$as_me: failed program was:" >&5
19529sed 's/^/| /' conftest.$ac_ext >&5
19530
19531 ac_header_preproc=no
19532fi
19533rm -f conftest.err conftest.$ac_ext
19534echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19535echo "${ECHO_T}$ac_header_preproc" >&6
19536
19537# So? What about this header?
19538case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19539 yes:no: )
19540 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19541echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19542 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19543echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19544 ac_header_preproc=yes
19545 ;;
19546 no:yes:* )
19547 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19548echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19549 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19550echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19551 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19552echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19553 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19554echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19555 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19556echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19557 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19558echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19559 (
19560 cat <<\_ASBOX
19561## ------------------------------------------ ##
19562## Report this to the AC_PACKAGE_NAME lists. ##
19563## ------------------------------------------ ##
19564_ASBOX
19565 ) |
19566 sed "s/^/$as_me: WARNING: /" >&2
19567 ;;
19568esac
19569echo "$as_me:$LINENO: checking for $ac_header" >&5
19570echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19571if eval "test \"\${$as_ac_Header+set}\" = set"; then
19572 echo $ECHO_N "(cached) $ECHO_C" >&6
19573else
19574 eval "$as_ac_Header=\$ac_header_preproc"
19575fi
19576echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19577echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19578
19579fi
19580if test `eval echo '${'$as_ac_Header'}'` = yes; then
19581 cat >>confdefs.h <<_ACEOF
19582#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19583_ACEOF
19584
19585fi
19586
19587done
19588
19589 else
19590
19591for ac_header in des.h
19592do
19593as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19594if eval "test \"\${$as_ac_Header+set}\" = set"; then
19595 echo "$as_me:$LINENO: checking for $ac_header" >&5
19596echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19597if eval "test \"\${$as_ac_Header+set}\" = set"; then
19598 echo $ECHO_N "(cached) $ECHO_C" >&6
19599fi
19600echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19601echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19602else
19603 # Is the header compilable?
19604echo "$as_me:$LINENO: checking $ac_header usability" >&5
19605echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19606cat >conftest.$ac_ext <<_ACEOF
19607/* confdefs.h. */
19608_ACEOF
19609cat confdefs.h >>conftest.$ac_ext
19610cat >>conftest.$ac_ext <<_ACEOF
19611/* end confdefs.h. */
19612$ac_includes_default
19613#include <$ac_header>
19614_ACEOF
19615rm -f conftest.$ac_objext
19616if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19617 (eval $ac_compile) 2>conftest.er1
19618 ac_status=$?
19619 grep -v '^ *+' conftest.er1 >conftest.err
19620 rm -f conftest.er1
19621 cat conftest.err >&5
19622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19623 (exit $ac_status); } &&
19624 { ac_try='test -z "$ac_c_werror_flag"
19625 || test ! -s conftest.err'
19626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19627 (eval $ac_try) 2>&5
19628 ac_status=$?
19629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19630 (exit $ac_status); }; } &&
19631 { ac_try='test -s conftest.$ac_objext'
19632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19633 (eval $ac_try) 2>&5
19634 ac_status=$?
19635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19636 (exit $ac_status); }; }; then
19637 ac_header_compiler=yes
19638else
19639 echo "$as_me: failed program was:" >&5
19640sed 's/^/| /' conftest.$ac_ext >&5
19641
19642ac_header_compiler=no
19643fi
19644rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19645echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19646echo "${ECHO_T}$ac_header_compiler" >&6
19647
19648# Is the header present?
19649echo "$as_me:$LINENO: checking $ac_header presence" >&5
19650echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19651cat >conftest.$ac_ext <<_ACEOF
19652/* confdefs.h. */
19653_ACEOF
19654cat confdefs.h >>conftest.$ac_ext
19655cat >>conftest.$ac_ext <<_ACEOF
19656/* end confdefs.h. */
19657#include <$ac_header>
19658_ACEOF
19659if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19660 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19661 ac_status=$?
19662 grep -v '^ *+' conftest.er1 >conftest.err
19663 rm -f conftest.er1
19664 cat conftest.err >&5
19665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19666 (exit $ac_status); } >/dev/null; then
19667 if test -s conftest.err; then
19668 ac_cpp_err=$ac_c_preproc_warn_flag
19669 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19670 else
19671 ac_cpp_err=
19672 fi
19673else
19674 ac_cpp_err=yes
19675fi
19676if test -z "$ac_cpp_err"; then
19677 ac_header_preproc=yes
19678else
19679 echo "$as_me: failed program was:" >&5
19680sed 's/^/| /' conftest.$ac_ext >&5
19681
19682 ac_header_preproc=no
19683fi
19684rm -f conftest.err conftest.$ac_ext
19685echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19686echo "${ECHO_T}$ac_header_preproc" >&6
19687
19688# So? What about this header?
19689case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19690 yes:no: )
19691 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19692echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19693 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19694echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19695 ac_header_preproc=yes
19696 ;;
19697 no:yes:* )
19698 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19699echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19700 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19701echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19702 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19703echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19704 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19705echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19706 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19707echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19708 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19709echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19710 (
19711 cat <<\_ASBOX
19712## ------------------------------------------ ##
19713## Report this to the AC_PACKAGE_NAME lists. ##
19714## ------------------------------------------ ##
19715_ASBOX
19716 ) |
19717 sed "s/^/$as_me: WARNING: /" >&2
19718 ;;
19719esac
19720echo "$as_me:$LINENO: checking for $ac_header" >&5
19721echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19722if eval "test \"\${$as_ac_Header+set}\" = set"; then
19723 echo $ECHO_N "(cached) $ECHO_C" >&6
19724else
19725 eval "$as_ac_Header=\$ac_header_preproc"
19726fi
19727echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19728echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19729
19730fi
19731if test `eval echo '${'$as_ac_Header'}'` = yes; then
19732 cat >>confdefs.h <<_ACEOF
19733#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19734_ACEOF
19735
19736else
19737
19738for ac_header in kerberosIV/des.h
19739do
19740as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19741if eval "test \"\${$as_ac_Header+set}\" = set"; then
19742 echo "$as_me:$LINENO: checking for $ac_header" >&5
19743echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19744if eval "test \"\${$as_ac_Header+set}\" = set"; then
19745 echo $ECHO_N "(cached) $ECHO_C" >&6
19746fi
19747echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19748echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19749else
19750 # Is the header compilable?
19751echo "$as_me:$LINENO: checking $ac_header usability" >&5
19752echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19753cat >conftest.$ac_ext <<_ACEOF
19754/* confdefs.h. */
19755_ACEOF
19756cat confdefs.h >>conftest.$ac_ext
19757cat >>conftest.$ac_ext <<_ACEOF
19758/* end confdefs.h. */
19759$ac_includes_default
19760#include <$ac_header>
19761_ACEOF
19762rm -f conftest.$ac_objext
19763if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19764 (eval $ac_compile) 2>conftest.er1
19765 ac_status=$?
19766 grep -v '^ *+' conftest.er1 >conftest.err
19767 rm -f conftest.er1
19768 cat conftest.err >&5
19769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19770 (exit $ac_status); } &&
19771 { ac_try='test -z "$ac_c_werror_flag"
19772 || test ! -s conftest.err'
19773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19774 (eval $ac_try) 2>&5
19775 ac_status=$?
19776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19777 (exit $ac_status); }; } &&
19778 { ac_try='test -s conftest.$ac_objext'
19779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19780 (eval $ac_try) 2>&5
19781 ac_status=$?
19782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19783 (exit $ac_status); }; }; then
19784 ac_header_compiler=yes
19785else
19786 echo "$as_me: failed program was:" >&5
19787sed 's/^/| /' conftest.$ac_ext >&5
19788
19789ac_header_compiler=no
19790fi
19791rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19792echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19793echo "${ECHO_T}$ac_header_compiler" >&6
19794
19795# Is the header present?
19796echo "$as_me:$LINENO: checking $ac_header presence" >&5
19797echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19798cat >conftest.$ac_ext <<_ACEOF
19799/* confdefs.h. */
19800_ACEOF
19801cat confdefs.h >>conftest.$ac_ext
19802cat >>conftest.$ac_ext <<_ACEOF
19803/* end confdefs.h. */
19804#include <$ac_header>
19805_ACEOF
19806if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19807 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19808 ac_status=$?
19809 grep -v '^ *+' conftest.er1 >conftest.err
19810 rm -f conftest.er1
19811 cat conftest.err >&5
19812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19813 (exit $ac_status); } >/dev/null; then
19814 if test -s conftest.err; then
19815 ac_cpp_err=$ac_c_preproc_warn_flag
19816 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19817 else
19818 ac_cpp_err=
19819 fi
19820else
19821 ac_cpp_err=yes
19822fi
19823if test -z "$ac_cpp_err"; then
19824 ac_header_preproc=yes
19825else
19826 echo "$as_me: failed program was:" >&5
19827sed 's/^/| /' conftest.$ac_ext >&5
19828
19829 ac_header_preproc=no
19830fi
19831rm -f conftest.err conftest.$ac_ext
19832echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19833echo "${ECHO_T}$ac_header_preproc" >&6
19834
19835# So? What about this header?
19836case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19837 yes:no: )
19838 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19839echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19840 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19841echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19842 ac_header_preproc=yes
19843 ;;
19844 no:yes:* )
19845 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19846echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19847 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19848echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19849 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19850echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19851 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19852echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19853 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19854echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19855 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19856echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19857 (
19858 cat <<\_ASBOX
19859## ------------------------------------------ ##
19860## Report this to the AC_PACKAGE_NAME lists. ##
19861## ------------------------------------------ ##
19862_ASBOX
19863 ) |
19864 sed "s/^/$as_me: WARNING: /" >&2
19865 ;;
19866esac
19867echo "$as_me:$LINENO: checking for $ac_header" >&5
19868echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19869if eval "test \"\${$as_ac_Header+set}\" = set"; then
19870 echo $ECHO_N "(cached) $ECHO_C" >&6
19871else
19872 eval "$as_ac_Header=\$ac_header_preproc"
19873fi
19874echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19875echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19876
19877fi
19878if test `eval echo '${'$as_ac_Header'}'` = yes; then
19879 cat >>confdefs.h <<_ACEOF
19880#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19881_ACEOF
19882
19883else
19884
19885for ac_header in kerberos/des.h
19886do
19887as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19888if eval "test \"\${$as_ac_Header+set}\" = set"; then
19889 echo "$as_me:$LINENO: checking for $ac_header" >&5
19890echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19891if eval "test \"\${$as_ac_Header+set}\" = set"; then
19892 echo $ECHO_N "(cached) $ECHO_C" >&6
19893fi
19894echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19895echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19896else
19897 # Is the header compilable?
19898echo "$as_me:$LINENO: checking $ac_header usability" >&5
19899echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19900cat >conftest.$ac_ext <<_ACEOF
19901/* confdefs.h. */
19902_ACEOF
19903cat confdefs.h >>conftest.$ac_ext
19904cat >>conftest.$ac_ext <<_ACEOF
19905/* end confdefs.h. */
19906$ac_includes_default
19907#include <$ac_header>
19908_ACEOF
19909rm -f conftest.$ac_objext
19910if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19911 (eval $ac_compile) 2>conftest.er1
19912 ac_status=$?
19913 grep -v '^ *+' conftest.er1 >conftest.err
19914 rm -f conftest.er1
19915 cat conftest.err >&5
19916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19917 (exit $ac_status); } &&
19918 { ac_try='test -z "$ac_c_werror_flag"
19919 || test ! -s conftest.err'
19920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19921 (eval $ac_try) 2>&5
19922 ac_status=$?
19923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19924 (exit $ac_status); }; } &&
19925 { ac_try='test -s conftest.$ac_objext'
19926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19927 (eval $ac_try) 2>&5
19928 ac_status=$?
19929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19930 (exit $ac_status); }; }; then
19931 ac_header_compiler=yes
19932else
19933 echo "$as_me: failed program was:" >&5
19934sed 's/^/| /' conftest.$ac_ext >&5
19935
19936ac_header_compiler=no
19937fi
19938rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19939echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19940echo "${ECHO_T}$ac_header_compiler" >&6
19941
19942# Is the header present?
19943echo "$as_me:$LINENO: checking $ac_header presence" >&5
19944echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19945cat >conftest.$ac_ext <<_ACEOF
19946/* confdefs.h. */
19947_ACEOF
19948cat confdefs.h >>conftest.$ac_ext
19949cat >>conftest.$ac_ext <<_ACEOF
19950/* end confdefs.h. */
19951#include <$ac_header>
19952_ACEOF
19953if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19954 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19955 ac_status=$?
19956 grep -v '^ *+' conftest.er1 >conftest.err
19957 rm -f conftest.er1
19958 cat conftest.err >&5
19959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19960 (exit $ac_status); } >/dev/null; then
19961 if test -s conftest.err; then
19962 ac_cpp_err=$ac_c_preproc_warn_flag
19963 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19964 else
19965 ac_cpp_err=
19966 fi
19967else
19968 ac_cpp_err=yes
19969fi
19970if test -z "$ac_cpp_err"; then
19971 ac_header_preproc=yes
19972else
19973 echo "$as_me: failed program was:" >&5
19974sed 's/^/| /' conftest.$ac_ext >&5
19975
19976 ac_header_preproc=no
19977fi
19978rm -f conftest.err conftest.$ac_ext
19979echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19980echo "${ECHO_T}$ac_header_preproc" >&6
19981
19982# So? What about this header?
19983case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19984 yes:no: )
19985 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19986echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19987 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19988echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19989 ac_header_preproc=yes
19990 ;;
19991 no:yes:* )
19992 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19993echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19994 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19995echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19996 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19997echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19998 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19999echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20000 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20001echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20002 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20003echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20004 (
20005 cat <<\_ASBOX
20006## ------------------------------------------ ##
20007## Report this to the AC_PACKAGE_NAME lists. ##
20008## ------------------------------------------ ##
20009_ASBOX
20010 ) |
20011 sed "s/^/$as_me: WARNING: /" >&2
20012 ;;
20013esac
20014echo "$as_me:$LINENO: checking for $ac_header" >&5
20015echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20016if eval "test \"\${$as_ac_Header+set}\" = set"; then
20017 echo $ECHO_N "(cached) $ECHO_C" >&6
20018else
20019 eval "$as_ac_Header=\$ac_header_preproc"
20020fi
20021echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20022echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20023
20024fi
20025if test `eval echo '${'$as_ac_Header'}'` = yes; then
20026 cat >>confdefs.h <<_ACEOF
20027#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20028_ACEOF
20029
20030fi
20031
20032done
20033
20034fi
20035
20036done
20037
20038fi
20039
20040done
20041
20042
20043for ac_header in krb.h
20044do
20045as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20046if eval "test \"\${$as_ac_Header+set}\" = set"; then
20047 echo "$as_me:$LINENO: checking for $ac_header" >&5
20048echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20049if eval "test \"\${$as_ac_Header+set}\" = set"; then
20050 echo $ECHO_N "(cached) $ECHO_C" >&6
20051fi
20052echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20053echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20054else
20055 # Is the header compilable?
20056echo "$as_me:$LINENO: checking $ac_header usability" >&5
20057echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20058cat >conftest.$ac_ext <<_ACEOF
20059/* confdefs.h. */
20060_ACEOF
20061cat confdefs.h >>conftest.$ac_ext
20062cat >>conftest.$ac_ext <<_ACEOF
20063/* end confdefs.h. */
20064$ac_includes_default
20065#include <$ac_header>
20066_ACEOF
20067rm -f conftest.$ac_objext
20068if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20069 (eval $ac_compile) 2>conftest.er1
20070 ac_status=$?
20071 grep -v '^ *+' conftest.er1 >conftest.err
20072 rm -f conftest.er1
20073 cat conftest.err >&5
20074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20075 (exit $ac_status); } &&
20076 { ac_try='test -z "$ac_c_werror_flag"
20077 || test ! -s conftest.err'
20078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20079 (eval $ac_try) 2>&5
20080 ac_status=$?
20081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20082 (exit $ac_status); }; } &&
20083 { ac_try='test -s conftest.$ac_objext'
20084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20085 (eval $ac_try) 2>&5
20086 ac_status=$?
20087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20088 (exit $ac_status); }; }; then
20089 ac_header_compiler=yes
20090else
20091 echo "$as_me: failed program was:" >&5
20092sed 's/^/| /' conftest.$ac_ext >&5
20093
20094ac_header_compiler=no
20095fi
20096rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20097echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20098echo "${ECHO_T}$ac_header_compiler" >&6
20099
20100# Is the header present?
20101echo "$as_me:$LINENO: checking $ac_header presence" >&5
20102echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20103cat >conftest.$ac_ext <<_ACEOF
20104/* confdefs.h. */
20105_ACEOF
20106cat confdefs.h >>conftest.$ac_ext
20107cat >>conftest.$ac_ext <<_ACEOF
20108/* end confdefs.h. */
20109#include <$ac_header>
20110_ACEOF
20111if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20112 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20113 ac_status=$?
20114 grep -v '^ *+' conftest.er1 >conftest.err
20115 rm -f conftest.er1
20116 cat conftest.err >&5
20117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20118 (exit $ac_status); } >/dev/null; then
20119 if test -s conftest.err; then
20120 ac_cpp_err=$ac_c_preproc_warn_flag
20121 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20122 else
20123 ac_cpp_err=
20124 fi
20125else
20126 ac_cpp_err=yes
20127fi
20128if test -z "$ac_cpp_err"; then
20129 ac_header_preproc=yes
20130else
20131 echo "$as_me: failed program was:" >&5
20132sed 's/^/| /' conftest.$ac_ext >&5
20133
20134 ac_header_preproc=no
20135fi
20136rm -f conftest.err conftest.$ac_ext
20137echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20138echo "${ECHO_T}$ac_header_preproc" >&6
20139
20140# So? What about this header?
20141case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20142 yes:no: )
20143 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20144echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20145 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20146echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20147 ac_header_preproc=yes
20148 ;;
20149 no:yes:* )
20150 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20151echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20152 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20153echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20154 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20155echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20156 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20157echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20158 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20159echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20160 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20161echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20162 (
20163 cat <<\_ASBOX
20164## ------------------------------------------ ##
20165## Report this to the AC_PACKAGE_NAME lists. ##
20166## ------------------------------------------ ##
20167_ASBOX
20168 ) |
20169 sed "s/^/$as_me: WARNING: /" >&2
20170 ;;
20171esac
20172echo "$as_me:$LINENO: checking for $ac_header" >&5
20173echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20174if eval "test \"\${$as_ac_Header+set}\" = set"; then
20175 echo $ECHO_N "(cached) $ECHO_C" >&6
20176else
20177 eval "$as_ac_Header=\$ac_header_preproc"
20178fi
20179echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20180echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20181
20182fi
20183if test `eval echo '${'$as_ac_Header'}'` = yes; then
20184 cat >>confdefs.h <<_ACEOF
20185#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20186_ACEOF
20187
20188else
20189
20190for ac_header in kerberosIV/krb.h
20191do
20192as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20193if eval "test \"\${$as_ac_Header+set}\" = set"; then
20194 echo "$as_me:$LINENO: checking for $ac_header" >&5
20195echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20196if eval "test \"\${$as_ac_Header+set}\" = set"; then
20197 echo $ECHO_N "(cached) $ECHO_C" >&6
20198fi
20199echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20200echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20201else
20202 # Is the header compilable?
20203echo "$as_me:$LINENO: checking $ac_header usability" >&5
20204echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20205cat >conftest.$ac_ext <<_ACEOF
20206/* confdefs.h. */
20207_ACEOF
20208cat confdefs.h >>conftest.$ac_ext
20209cat >>conftest.$ac_ext <<_ACEOF
20210/* end confdefs.h. */
20211$ac_includes_default
20212#include <$ac_header>
20213_ACEOF
20214rm -f conftest.$ac_objext
20215if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20216 (eval $ac_compile) 2>conftest.er1
20217 ac_status=$?
20218 grep -v '^ *+' conftest.er1 >conftest.err
20219 rm -f conftest.er1
20220 cat conftest.err >&5
20221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20222 (exit $ac_status); } &&
20223 { ac_try='test -z "$ac_c_werror_flag"
20224 || test ! -s conftest.err'
20225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20226 (eval $ac_try) 2>&5
20227 ac_status=$?
20228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20229 (exit $ac_status); }; } &&
20230 { ac_try='test -s conftest.$ac_objext'
20231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20232 (eval $ac_try) 2>&5
20233 ac_status=$?
20234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20235 (exit $ac_status); }; }; then
20236 ac_header_compiler=yes
20237else
20238 echo "$as_me: failed program was:" >&5
20239sed 's/^/| /' conftest.$ac_ext >&5
20240
20241ac_header_compiler=no
20242fi
20243rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20244echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20245echo "${ECHO_T}$ac_header_compiler" >&6
20246
20247# Is the header present?
20248echo "$as_me:$LINENO: checking $ac_header presence" >&5
20249echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20250cat >conftest.$ac_ext <<_ACEOF
20251/* confdefs.h. */
20252_ACEOF
20253cat confdefs.h >>conftest.$ac_ext
20254cat >>conftest.$ac_ext <<_ACEOF
20255/* end confdefs.h. */
20256#include <$ac_header>
20257_ACEOF
20258if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20259 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20260 ac_status=$?
20261 grep -v '^ *+' conftest.er1 >conftest.err
20262 rm -f conftest.er1
20263 cat conftest.err >&5
20264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20265 (exit $ac_status); } >/dev/null; then
20266 if test -s conftest.err; then
20267 ac_cpp_err=$ac_c_preproc_warn_flag
20268 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20269 else
20270 ac_cpp_err=
20271 fi
20272else
20273 ac_cpp_err=yes
20274fi
20275if test -z "$ac_cpp_err"; then
20276 ac_header_preproc=yes
20277else
20278 echo "$as_me: failed program was:" >&5
20279sed 's/^/| /' conftest.$ac_ext >&5
20280
20281 ac_header_preproc=no
20282fi
20283rm -f conftest.err conftest.$ac_ext
20284echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20285echo "${ECHO_T}$ac_header_preproc" >&6
20286
20287# So? What about this header?
20288case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20289 yes:no: )
20290 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20291echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20292 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20293echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20294 ac_header_preproc=yes
20295 ;;
20296 no:yes:* )
20297 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20298echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20299 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20300echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20301 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20302echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20303 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20304echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20305 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20306echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20307 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20308echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20309 (
20310 cat <<\_ASBOX
20311## ------------------------------------------ ##
20312## Report this to the AC_PACKAGE_NAME lists. ##
20313## ------------------------------------------ ##
20314_ASBOX
20315 ) |
20316 sed "s/^/$as_me: WARNING: /" >&2
20317 ;;
20318esac
20319echo "$as_me:$LINENO: checking for $ac_header" >&5
20320echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20321if eval "test \"\${$as_ac_Header+set}\" = set"; then
20322 echo $ECHO_N "(cached) $ECHO_C" >&6
20323else
20324 eval "$as_ac_Header=\$ac_header_preproc"
20325fi
20326echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20327echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20328
20329fi
20330if test `eval echo '${'$as_ac_Header'}'` = yes; then
20331 cat >>confdefs.h <<_ACEOF
20332#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20333_ACEOF
20334
20335else
20336
20337for ac_header in kerberos/krb.h
20338do
20339as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20340if eval "test \"\${$as_ac_Header+set}\" = set"; then
20341 echo "$as_me:$LINENO: checking for $ac_header" >&5
20342echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20343if eval "test \"\${$as_ac_Header+set}\" = set"; then
20344 echo $ECHO_N "(cached) $ECHO_C" >&6
20345fi
20346echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20347echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20348else
20349 # Is the header compilable?
20350echo "$as_me:$LINENO: checking $ac_header usability" >&5
20351echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20352cat >conftest.$ac_ext <<_ACEOF
20353/* confdefs.h. */
20354_ACEOF
20355cat confdefs.h >>conftest.$ac_ext
20356cat >>conftest.$ac_ext <<_ACEOF
20357/* end confdefs.h. */
20358$ac_includes_default
20359#include <$ac_header>
20360_ACEOF
20361rm -f conftest.$ac_objext
20362if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20363 (eval $ac_compile) 2>conftest.er1
20364 ac_status=$?
20365 grep -v '^ *+' conftest.er1 >conftest.err
20366 rm -f conftest.er1
20367 cat conftest.err >&5
20368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20369 (exit $ac_status); } &&
20370 { ac_try='test -z "$ac_c_werror_flag"
20371 || test ! -s conftest.err'
20372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20373 (eval $ac_try) 2>&5
20374 ac_status=$?
20375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20376 (exit $ac_status); }; } &&
20377 { ac_try='test -s conftest.$ac_objext'
20378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20379 (eval $ac_try) 2>&5
20380 ac_status=$?
20381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20382 (exit $ac_status); }; }; then
20383 ac_header_compiler=yes
20384else
20385 echo "$as_me: failed program was:" >&5
20386sed 's/^/| /' conftest.$ac_ext >&5
20387
20388ac_header_compiler=no
20389fi
20390rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20391echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20392echo "${ECHO_T}$ac_header_compiler" >&6
20393
20394# Is the header present?
20395echo "$as_me:$LINENO: checking $ac_header presence" >&5
20396echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20397cat >conftest.$ac_ext <<_ACEOF
20398/* confdefs.h. */
20399_ACEOF
20400cat confdefs.h >>conftest.$ac_ext
20401cat >>conftest.$ac_ext <<_ACEOF
20402/* end confdefs.h. */
20403#include <$ac_header>
20404_ACEOF
20405if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20406 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20407 ac_status=$?
20408 grep -v '^ *+' conftest.er1 >conftest.err
20409 rm -f conftest.er1
20410 cat conftest.err >&5
20411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20412 (exit $ac_status); } >/dev/null; then
20413 if test -s conftest.err; then
20414 ac_cpp_err=$ac_c_preproc_warn_flag
20415 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20416 else
20417 ac_cpp_err=
20418 fi
20419else
20420 ac_cpp_err=yes
20421fi
20422if test -z "$ac_cpp_err"; then
20423 ac_header_preproc=yes
20424else
20425 echo "$as_me: failed program was:" >&5
20426sed 's/^/| /' conftest.$ac_ext >&5
20427
20428 ac_header_preproc=no
20429fi
20430rm -f conftest.err conftest.$ac_ext
20431echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20432echo "${ECHO_T}$ac_header_preproc" >&6
20433
20434# So? What about this header?
20435case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20436 yes:no: )
20437 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20438echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20439 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20440echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20441 ac_header_preproc=yes
20442 ;;
20443 no:yes:* )
20444 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20445echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20446 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20447echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20448 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20449echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20450 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20451echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20452 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20453echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20454 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20455echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20456 (
20457 cat <<\_ASBOX
20458## ------------------------------------------ ##
20459## Report this to the AC_PACKAGE_NAME lists. ##
20460## ------------------------------------------ ##
20461_ASBOX
20462 ) |
20463 sed "s/^/$as_me: WARNING: /" >&2
20464 ;;
20465esac
20466echo "$as_me:$LINENO: checking for $ac_header" >&5
20467echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20468if eval "test \"\${$as_ac_Header+set}\" = set"; then
20469 echo $ECHO_N "(cached) $ECHO_C" >&6
20470else
20471 eval "$as_ac_Header=\$ac_header_preproc"
20472fi
20473echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20474echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20475
20476fi
20477if test `eval echo '${'$as_ac_Header'}'` = yes; then
20478 cat >>confdefs.h <<_ACEOF
20479#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20480_ACEOF
20481
20482fi
20483
20484done
20485
20486fi
20487
20488done
20489
20490fi
20491
20492done
20493
20494 fi
20495
20496for ac_header in com_err.h
20497do
20498as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20499if eval "test \"\${$as_ac_Header+set}\" = set"; then
20500 echo "$as_me:$LINENO: checking for $ac_header" >&5
20501echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20502if eval "test \"\${$as_ac_Header+set}\" = set"; then
20503 echo $ECHO_N "(cached) $ECHO_C" >&6
20504fi
20505echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20506echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20507else
20508 # Is the header compilable?
20509echo "$as_me:$LINENO: checking $ac_header usability" >&5
20510echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20511cat >conftest.$ac_ext <<_ACEOF
20512/* confdefs.h. */
20513_ACEOF
20514cat confdefs.h >>conftest.$ac_ext
20515cat >>conftest.$ac_ext <<_ACEOF
20516/* end confdefs.h. */
20517$ac_includes_default
20518#include <$ac_header>
20519_ACEOF
20520rm -f conftest.$ac_objext
20521if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20522 (eval $ac_compile) 2>conftest.er1
20523 ac_status=$?
20524 grep -v '^ *+' conftest.er1 >conftest.err
20525 rm -f conftest.er1
20526 cat conftest.err >&5
20527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20528 (exit $ac_status); } &&
20529 { ac_try='test -z "$ac_c_werror_flag"
20530 || test ! -s conftest.err'
20531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20532 (eval $ac_try) 2>&5
20533 ac_status=$?
20534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20535 (exit $ac_status); }; } &&
20536 { ac_try='test -s conftest.$ac_objext'
20537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20538 (eval $ac_try) 2>&5
20539 ac_status=$?
20540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20541 (exit $ac_status); }; }; then
20542 ac_header_compiler=yes
20543else
20544 echo "$as_me: failed program was:" >&5
20545sed 's/^/| /' conftest.$ac_ext >&5
20546
20547ac_header_compiler=no
20548fi
20549rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20550echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20551echo "${ECHO_T}$ac_header_compiler" >&6
20552
20553# Is the header present?
20554echo "$as_me:$LINENO: checking $ac_header presence" >&5
20555echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20556cat >conftest.$ac_ext <<_ACEOF
20557/* confdefs.h. */
20558_ACEOF
20559cat confdefs.h >>conftest.$ac_ext
20560cat >>conftest.$ac_ext <<_ACEOF
20561/* end confdefs.h. */
20562#include <$ac_header>
20563_ACEOF
20564if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20565 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20566 ac_status=$?
20567 grep -v '^ *+' conftest.er1 >conftest.err
20568 rm -f conftest.er1
20569 cat conftest.err >&5
20570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20571 (exit $ac_status); } >/dev/null; then
20572 if test -s conftest.err; then
20573 ac_cpp_err=$ac_c_preproc_warn_flag
20574 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20575 else
20576 ac_cpp_err=
20577 fi
20578else
20579 ac_cpp_err=yes
20580fi
20581if test -z "$ac_cpp_err"; then
20582 ac_header_preproc=yes
20583else
20584 echo "$as_me: failed program was:" >&5
20585sed 's/^/| /' conftest.$ac_ext >&5
20586
20587 ac_header_preproc=no
20588fi
20589rm -f conftest.err conftest.$ac_ext
20590echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20591echo "${ECHO_T}$ac_header_preproc" >&6
20592
20593# So? What about this header?
20594case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20595 yes:no: )
20596 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20597echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20598 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20599echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20600 ac_header_preproc=yes
20601 ;;
20602 no:yes:* )
20603 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20604echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20605 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20606echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20607 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20608echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20609 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20610echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20611 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20612echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20613 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20614echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20615 (
20616 cat <<\_ASBOX
20617## ------------------------------------------ ##
20618## Report this to the AC_PACKAGE_NAME lists. ##
20619## ------------------------------------------ ##
20620_ASBOX
20621 ) |
20622 sed "s/^/$as_me: WARNING: /" >&2
20623 ;;
20624esac
20625echo "$as_me:$LINENO: checking for $ac_header" >&5
20626echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20627if eval "test \"\${$as_ac_Header+set}\" = set"; then
20628 echo $ECHO_N "(cached) $ECHO_C" >&6
20629else
20630 eval "$as_ac_Header=\$ac_header_preproc"
20631fi
20632echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20633echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20634
20635fi
20636if test `eval echo '${'$as_ac_Header'}'` = yes; then
20637 cat >>confdefs.h <<_ACEOF
20638#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20639_ACEOF
20640
20641fi
20642
20643done
20644
20645fi
20646
20647# Solaris requires -lintl if you want strerror (which calls dgettext)
20648# to return localized messages.
20649
20650echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
20651echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6
20652if test "${ac_cv_lib_intl_dgettext+set}" = set; then
20653 echo $ECHO_N "(cached) $ECHO_C" >&6
20654else
20655 ac_check_lib_save_LIBS=$LIBS
20656LIBS="-lintl $LIBS"
20657cat >conftest.$ac_ext <<_ACEOF
20658/* confdefs.h. */
20659_ACEOF
20660cat confdefs.h >>conftest.$ac_ext
20661cat >>conftest.$ac_ext <<_ACEOF
20662/* end confdefs.h. */
20663
20664/* Override any gcc2 internal prototype to avoid an error. */
20665#ifdef __cplusplus
20666extern "C"
20667#endif
20668/* We use char because int might match the return type of a gcc2
20669 builtin and then its argument prototype would still apply. */
20670char dgettext ();
20671int
20672main ()
20673{
20674dgettext ();
20675 ;
20676 return 0;
20677}
20678_ACEOF
20679rm -f conftest.$ac_objext conftest$ac_exeext
20680if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20681 (eval $ac_link) 2>conftest.er1
20682 ac_status=$?
20683 grep -v '^ *+' conftest.er1 >conftest.err
20684 rm -f conftest.er1
20685 cat conftest.err >&5
20686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20687 (exit $ac_status); } &&
20688 { ac_try='test -z "$ac_c_werror_flag"
20689 || test ! -s conftest.err'
20690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20691 (eval $ac_try) 2>&5
20692 ac_status=$?
20693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20694 (exit $ac_status); }; } &&
20695 { ac_try='test -s conftest$ac_exeext'
20696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20697 (eval $ac_try) 2>&5
20698 ac_status=$?
20699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20700 (exit $ac_status); }; }; then
20701 ac_cv_lib_intl_dgettext=yes
20702else
20703 echo "$as_me: failed program was:" >&5
20704sed 's/^/| /' conftest.$ac_ext >&5
20705
20706ac_cv_lib_intl_dgettext=no
20707fi
20708rm -f conftest.err conftest.$ac_objext \
20709 conftest$ac_exeext conftest.$ac_ext
20710LIBS=$ac_check_lib_save_LIBS
20711fi
20712echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
20713echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6
20714if test $ac_cv_lib_intl_dgettext = yes; then
20715 cat >>confdefs.h <<_ACEOF
20716#define HAVE_LIBINTL 1
20717_ACEOF
20718
20719 LIBS="-lintl $LIBS"
20720
20721fi
20722
20723
20724echo "$as_me:$LINENO: checking whether localtime caches TZ" >&5
20725echo $ECHO_N "checking whether localtime caches TZ... $ECHO_C" >&6
20726if test "${emacs_cv_localtime_cache+set}" = set; then
20727 echo $ECHO_N "(cached) $ECHO_C" >&6
20728else
20729 if test x$ac_cv_func_tzset = xyes; then
20730if test "$cross_compiling" = yes; then
20731 # If we have tzset, assume the worst when cross-compiling.
20732emacs_cv_localtime_cache=yes
20733else
20734 cat >conftest.$ac_ext <<_ACEOF
20735/* confdefs.h. */
20736_ACEOF
20737cat confdefs.h >>conftest.$ac_ext
20738cat >>conftest.$ac_ext <<_ACEOF
20739/* end confdefs.h. */
20740#include <time.h>
20741extern char **environ;
20742unset_TZ ()
20743{
20744 char **from, **to;
20745 for (to = from = environ; (*to = *from); from++)
20746 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
20747 to++;
20748}
20749char TZ_GMT0[] = "TZ=GMT0";
20750char TZ_PST8[] = "TZ=PST8";
20751main()
20752{
20753 time_t now = time ((time_t *) 0);
20754 int hour_GMT0, hour_unset;
20755 if (putenv (TZ_GMT0) != 0)
20756 exit (1);
20757 hour_GMT0 = localtime (&now)->tm_hour;
20758 unset_TZ ();
20759 hour_unset = localtime (&now)->tm_hour;
20760 if (putenv (TZ_PST8) != 0)
20761 exit (1);
20762 if (localtime (&now)->tm_hour == hour_GMT0)
20763 exit (1);
20764 unset_TZ ();
20765 if (localtime (&now)->tm_hour != hour_unset)
20766 exit (1);
20767 exit (0);
20768}
20769_ACEOF
20770rm -f conftest$ac_exeext
20771if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20772 (eval $ac_link) 2>&5
20773 ac_status=$?
20774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20775 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20777 (eval $ac_try) 2>&5
20778 ac_status=$?
20779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20780 (exit $ac_status); }; }; then
20781 emacs_cv_localtime_cache=no
20782else
20783 echo "$as_me: program exited with status $ac_status" >&5
20784echo "$as_me: failed program was:" >&5
20785sed 's/^/| /' conftest.$ac_ext >&5
20786
20787( exit $ac_status )
20788emacs_cv_localtime_cache=yes
20789fi
20790rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20791fi
20792else
20793 # If we lack tzset, report that localtime does not cache TZ,
20794 # since we can't invalidate the cache if we don't have tzset.
20795 emacs_cv_localtime_cache=no
20796fi
20797fi
20798echo "$as_me:$LINENO: result: $emacs_cv_localtime_cache" >&5
20799echo "${ECHO_T}$emacs_cv_localtime_cache" >&6
20800if test $emacs_cv_localtime_cache = yes; then
20801
20802cat >>confdefs.h <<\_ACEOF
20803#define LOCALTIME_CACHE 1
20804_ACEOF
20805
20806fi
20807
20808if test "x$HAVE_TIMEVAL" = xyes; then
20809
20810for ac_func in gettimeofday
20811do
20812as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20813echo "$as_me:$LINENO: checking for $ac_func" >&5
20814echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20815if eval "test \"\${$as_ac_var+set}\" = set"; then
20816 echo $ECHO_N "(cached) $ECHO_C" >&6
20817else
20818 cat >conftest.$ac_ext <<_ACEOF
20819/* confdefs.h. */
20820_ACEOF
20821cat confdefs.h >>conftest.$ac_ext
20822cat >>conftest.$ac_ext <<_ACEOF
20823/* end confdefs.h. */
20824/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20825 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20826#define $ac_func innocuous_$ac_func
20827
20828/* System header to define __stub macros and hopefully few prototypes,
20829 which can conflict with char $ac_func (); below.
20830 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20831 <limits.h> exists even on freestanding compilers. */
20832
20833#ifdef __STDC__
20834# include <limits.h>
20835#else
20836# include <assert.h>
20837#endif
20838
20839#undef $ac_func
20840
20841/* Override any gcc2 internal prototype to avoid an error. */
20842#ifdef __cplusplus
20843extern "C"
20844{
20845#endif
20846/* We use char because int might match the return type of a gcc2
20847 builtin and then its argument prototype would still apply. */
20848char $ac_func ();
20849/* The GNU C library defines this for functions which it implements
20850 to always fail with ENOSYS. Some functions are actually named
20851 something starting with __ and the normal name is an alias. */
20852#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20853choke me
20854#else
20855char (*f) () = $ac_func;
20856#endif
20857#ifdef __cplusplus
20858}
20859#endif
20860
20861int
20862main ()
20863{
20864return f != $ac_func;
20865 ;
20866 return 0;
20867}
20868_ACEOF
20869rm -f conftest.$ac_objext conftest$ac_exeext
20870if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20871 (eval $ac_link) 2>conftest.er1
20872 ac_status=$?
20873 grep -v '^ *+' conftest.er1 >conftest.err
20874 rm -f conftest.er1
20875 cat conftest.err >&5
20876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20877 (exit $ac_status); } &&
20878 { ac_try='test -z "$ac_c_werror_flag"
20879 || test ! -s conftest.err'
20880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20881 (eval $ac_try) 2>&5
20882 ac_status=$?
20883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20884 (exit $ac_status); }; } &&
20885 { ac_try='test -s conftest$ac_exeext'
20886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20887 (eval $ac_try) 2>&5
20888 ac_status=$?
20889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20890 (exit $ac_status); }; }; then
20891 eval "$as_ac_var=yes"
20892else
20893 echo "$as_me: failed program was:" >&5
20894sed 's/^/| /' conftest.$ac_ext >&5
20895
20896eval "$as_ac_var=no"
20897fi
20898rm -f conftest.err conftest.$ac_objext \
20899 conftest$ac_exeext conftest.$ac_ext
20900fi
20901echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20902echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20903if test `eval echo '${'$as_ac_var'}'` = yes; then
20904 cat >>confdefs.h <<_ACEOF
20905#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20906_ACEOF
20907
20908fi
20909done
20910
20911 if test $ac_cv_func_gettimeofday = yes; then
20912 echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments" >&5
20913echo $ECHO_N "checking whether gettimeofday can accept two arguments... $ECHO_C" >&6
20914if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
20915 echo $ECHO_N "(cached) $ECHO_C" >&6
20916else
20917 cat >conftest.$ac_ext <<_ACEOF
20918/* confdefs.h. */
20919_ACEOF
20920cat confdefs.h >>conftest.$ac_ext
20921cat >>conftest.$ac_ext <<_ACEOF
20922/* end confdefs.h. */
20923
20924#ifdef TIME_WITH_SYS_TIME
20925#include <sys/time.h>
20926#include <time.h>
20927#else
20928#ifdef HAVE_SYS_TIME_H
20929#include <sys/time.h>
20930#else
20931#include <time.h>
20932#endif
20933#endif
20934int
20935main ()
20936{
20937struct timeval time;
20938 gettimeofday (&time, 0);
20939 ;
20940 return 0;
20941}
20942_ACEOF
20943rm -f conftest.$ac_objext
20944if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20945 (eval $ac_compile) 2>conftest.er1
20946 ac_status=$?
20947 grep -v '^ *+' conftest.er1 >conftest.err
20948 rm -f conftest.er1
20949 cat conftest.err >&5
20950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20951 (exit $ac_status); } &&
20952 { ac_try='test -z "$ac_c_werror_flag"
20953 || test ! -s conftest.err'
20954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20955 (eval $ac_try) 2>&5
20956 ac_status=$?
20957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20958 (exit $ac_status); }; } &&
20959 { ac_try='test -s conftest.$ac_objext'
20960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20961 (eval $ac_try) 2>&5
20962 ac_status=$?
20963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20964 (exit $ac_status); }; }; then
20965 emacs_cv_gettimeofday_two_arguments=yes
20966else
20967 echo "$as_me: failed program was:" >&5
20968sed 's/^/| /' conftest.$ac_ext >&5
20969
20970emacs_cv_gettimeofday_two_arguments=no
20971fi
20972rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20973fi
20974echo "$as_me:$LINENO: result: $emacs_cv_gettimeofday_two_arguments" >&5
20975echo "${ECHO_T}$emacs_cv_gettimeofday_two_arguments" >&6
20976 if test $emacs_cv_gettimeofday_two_arguments = no; then
20977
20978cat >>confdefs.h <<\_ACEOF
20979#define GETTIMEOFDAY_ONE_ARGUMENT 1
20980_ACEOF
20981
20982 fi
20983 fi
20984fi
20985
20986# This defines (or not) HAVE_TZNAME and HAVE_TM_ZONE.
20987echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
20988echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
20989if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
20990 echo $ECHO_N "(cached) $ECHO_C" >&6
20991else
20992 cat >conftest.$ac_ext <<_ACEOF
20993/* confdefs.h. */
20994_ACEOF
20995cat confdefs.h >>conftest.$ac_ext
20996cat >>conftest.$ac_ext <<_ACEOF
20997/* end confdefs.h. */
20998#include <sys/types.h>
20999#include <$ac_cv_struct_tm>
21000
21001
21002int
21003main ()
21004{
21005static struct tm ac_aggr;
21006if (ac_aggr.tm_zone)
21007return 0;
21008 ;
21009 return 0;
21010}
21011_ACEOF
21012rm -f conftest.$ac_objext
21013if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21014 (eval $ac_compile) 2>conftest.er1
21015 ac_status=$?
21016 grep -v '^ *+' conftest.er1 >conftest.err
21017 rm -f conftest.er1
21018 cat conftest.err >&5
21019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21020 (exit $ac_status); } &&
21021 { ac_try='test -z "$ac_c_werror_flag"
21022 || test ! -s conftest.err'
21023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21024 (eval $ac_try) 2>&5
21025 ac_status=$?
21026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21027 (exit $ac_status); }; } &&
21028 { ac_try='test -s conftest.$ac_objext'
21029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21030 (eval $ac_try) 2>&5
21031 ac_status=$?
21032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21033 (exit $ac_status); }; }; then
21034 ac_cv_member_struct_tm_tm_zone=yes
21035else
21036 echo "$as_me: failed program was:" >&5
21037sed 's/^/| /' conftest.$ac_ext >&5
21038
21039cat >conftest.$ac_ext <<_ACEOF
21040/* confdefs.h. */
21041_ACEOF
21042cat confdefs.h >>conftest.$ac_ext
21043cat >>conftest.$ac_ext <<_ACEOF
21044/* end confdefs.h. */
21045#include <sys/types.h>
21046#include <$ac_cv_struct_tm>
21047
21048
21049int
21050main ()
21051{
21052static struct tm ac_aggr;
21053if (sizeof ac_aggr.tm_zone)
21054return 0;
21055 ;
21056 return 0;
21057}
21058_ACEOF
21059rm -f conftest.$ac_objext
21060if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21061 (eval $ac_compile) 2>conftest.er1
21062 ac_status=$?
21063 grep -v '^ *+' conftest.er1 >conftest.err
21064 rm -f conftest.er1
21065 cat conftest.err >&5
21066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21067 (exit $ac_status); } &&
21068 { ac_try='test -z "$ac_c_werror_flag"
21069 || test ! -s conftest.err'
21070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21071 (eval $ac_try) 2>&5
21072 ac_status=$?
21073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21074 (exit $ac_status); }; } &&
21075 { ac_try='test -s conftest.$ac_objext'
21076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21077 (eval $ac_try) 2>&5
21078 ac_status=$?
21079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21080 (exit $ac_status); }; }; then
21081 ac_cv_member_struct_tm_tm_zone=yes
21082else
21083 echo "$as_me: failed program was:" >&5
21084sed 's/^/| /' conftest.$ac_ext >&5
21085
21086ac_cv_member_struct_tm_tm_zone=no
21087fi
21088rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21089fi
21090rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21091fi
21092echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
21093echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
21094if test $ac_cv_member_struct_tm_tm_zone = yes; then
21095
21096cat >>confdefs.h <<_ACEOF
21097#define HAVE_STRUCT_TM_TM_ZONE 1
21098_ACEOF
21099
21100
21101fi
21102
21103if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
21104
21105cat >>confdefs.h <<\_ACEOF
21106#define HAVE_TM_ZONE 1
21107_ACEOF
21108
21109else
21110 echo "$as_me:$LINENO: checking for tzname" >&5
21111echo $ECHO_N "checking for tzname... $ECHO_C" >&6
21112if test "${ac_cv_var_tzname+set}" = set; then
21113 echo $ECHO_N "(cached) $ECHO_C" >&6
21114else
21115 cat >conftest.$ac_ext <<_ACEOF
21116/* confdefs.h. */
21117_ACEOF
21118cat confdefs.h >>conftest.$ac_ext
21119cat >>conftest.$ac_ext <<_ACEOF
21120/* end confdefs.h. */
21121#include <time.h>
21122#ifndef tzname /* For SGI. */
21123extern char *tzname[]; /* RS6000 and others reject char **tzname. */
21124#endif
21125
21126int
21127main ()
21128{
21129atoi(*tzname);
21130 ;
21131 return 0;
21132}
21133_ACEOF
21134rm -f conftest.$ac_objext conftest$ac_exeext
21135if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21136 (eval $ac_link) 2>conftest.er1
21137 ac_status=$?
21138 grep -v '^ *+' conftest.er1 >conftest.err
21139 rm -f conftest.er1
21140 cat conftest.err >&5
21141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21142 (exit $ac_status); } &&
21143 { ac_try='test -z "$ac_c_werror_flag"
21144 || test ! -s conftest.err'
21145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21146 (eval $ac_try) 2>&5
21147 ac_status=$?
21148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21149 (exit $ac_status); }; } &&
21150 { ac_try='test -s conftest$ac_exeext'
21151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21152 (eval $ac_try) 2>&5
21153 ac_status=$?
21154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21155 (exit $ac_status); }; }; then
21156 ac_cv_var_tzname=yes
21157else
21158 echo "$as_me: failed program was:" >&5
21159sed 's/^/| /' conftest.$ac_ext >&5
21160
21161ac_cv_var_tzname=no
21162fi
21163rm -f conftest.err conftest.$ac_objext \
21164 conftest$ac_exeext conftest.$ac_ext
21165fi
21166echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
21167echo "${ECHO_T}$ac_cv_var_tzname" >&6
21168 if test $ac_cv_var_tzname = yes; then
21169
21170cat >>confdefs.h <<\_ACEOF
21171#define HAVE_TZNAME 1
21172_ACEOF
21173
21174 fi
21175fi
21176
21177
21178if test "$ac_cv_func_gettimeofday" = yes; then
21179 echo "$as_me:$LINENO: checking for struct timezone" >&5
21180echo $ECHO_N "checking for struct timezone... $ECHO_C" >&6
21181if test "${emacs_cv_struct_timezone+set}" = set; then
21182 echo $ECHO_N "(cached) $ECHO_C" >&6
21183else
21184 cat >conftest.$ac_ext <<_ACEOF
21185/* confdefs.h. */
21186_ACEOF
21187cat confdefs.h >>conftest.$ac_ext
21188cat >>conftest.$ac_ext <<_ACEOF
21189/* end confdefs.h. */
21190#include <sys/time.h>
21191int
21192main ()
21193{
21194struct timezone tz;
21195 ;
21196 return 0;
21197}
21198_ACEOF
21199rm -f conftest.$ac_objext
21200if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21201 (eval $ac_compile) 2>conftest.er1
21202 ac_status=$?
21203 grep -v '^ *+' conftest.er1 >conftest.err
21204 rm -f conftest.er1
21205 cat conftest.err >&5
21206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21207 (exit $ac_status); } &&
21208 { ac_try='test -z "$ac_c_werror_flag"
21209 || test ! -s conftest.err'
21210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21211 (eval $ac_try) 2>&5
21212 ac_status=$?
21213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21214 (exit $ac_status); }; } &&
21215 { ac_try='test -s conftest.$ac_objext'
21216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21217 (eval $ac_try) 2>&5
21218 ac_status=$?
21219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21220 (exit $ac_status); }; }; then
21221 if test "$cross_compiling" = yes; then
21222 emacs_cv_struct_timezone=yes
21223else
21224 cat >conftest.$ac_ext <<_ACEOF
21225/* confdefs.h. */
21226_ACEOF
21227cat confdefs.h >>conftest.$ac_ext
21228cat >>conftest.$ac_ext <<_ACEOF
21229/* end confdefs.h. */
21230
21231#ifdef TIME_WITH_SYS_TIME
21232#include <sys/time.h>
21233#include <time.h>
21234#else
21235#ifdef HAVE_SYS_TIME_H
21236#include <sys/time.h>
21237#else
21238#include <time.h>
21239#endif
21240#endif
21241main () {
21242 struct timeval time;
21243 struct timezone dummy;
21244 exit (gettimeofday (&time, &dummy));
21245}
21246_ACEOF
21247rm -f conftest$ac_exeext
21248if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21249 (eval $ac_link) 2>&5
21250 ac_status=$?
21251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21252 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21254 (eval $ac_try) 2>&5
21255 ac_status=$?
21256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21257 (exit $ac_status); }; }; then
21258 emacs_cv_struct_timezone=yes
21259else
21260 echo "$as_me: program exited with status $ac_status" >&5
21261echo "$as_me: failed program was:" >&5
21262sed 's/^/| /' conftest.$ac_ext >&5
21263
21264( exit $ac_status )
21265emacs_cv_struct_timezone=no
21266fi
21267rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21268fi
21269else
21270 echo "$as_me: failed program was:" >&5
21271sed 's/^/| /' conftest.$ac_ext >&5
21272
21273emacs_cv_struct_timezone=no
21274fi
21275rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21276fi
21277echo "$as_me:$LINENO: result: $emacs_cv_struct_timezone" >&5
21278echo "${ECHO_T}$emacs_cv_struct_timezone" >&6
21279fi
21280
21281ok_so_far=yes
21282echo "$as_me:$LINENO: checking for socket" >&5
21283echo $ECHO_N "checking for socket... $ECHO_C" >&6
21284if test "${ac_cv_func_socket+set}" = set; then
21285 echo $ECHO_N "(cached) $ECHO_C" >&6
21286else
21287 cat >conftest.$ac_ext <<_ACEOF
21288/* confdefs.h. */
21289_ACEOF
21290cat confdefs.h >>conftest.$ac_ext
21291cat >>conftest.$ac_ext <<_ACEOF
21292/* end confdefs.h. */
21293/* Define socket to an innocuous variant, in case <limits.h> declares socket.
21294 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21295#define socket innocuous_socket
21296
21297/* System header to define __stub macros and hopefully few prototypes,
21298 which can conflict with char socket (); below.
21299 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21300 <limits.h> exists even on freestanding compilers. */
21301
21302#ifdef __STDC__
21303# include <limits.h>
21304#else
21305# include <assert.h>
21306#endif
21307
21308#undef socket
21309
21310/* Override any gcc2 internal prototype to avoid an error. */
21311#ifdef __cplusplus
21312extern "C"
21313{
21314#endif
21315/* We use char because int might match the return type of a gcc2
21316 builtin and then its argument prototype would still apply. */
21317char socket ();
21318/* The GNU C library defines this for functions which it implements
21319 to always fail with ENOSYS. Some functions are actually named
21320 something starting with __ and the normal name is an alias. */
21321#if defined (__stub_socket) || defined (__stub___socket)
21322choke me
21323#else
21324char (*f) () = socket;
21325#endif
21326#ifdef __cplusplus
21327}
21328#endif
21329
21330int
21331main ()
21332{
21333return f != socket;
21334 ;
21335 return 0;
21336}
21337_ACEOF
21338rm -f conftest.$ac_objext conftest$ac_exeext
21339if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21340 (eval $ac_link) 2>conftest.er1
21341 ac_status=$?
21342 grep -v '^ *+' conftest.er1 >conftest.err
21343 rm -f conftest.er1
21344 cat conftest.err >&5
21345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21346 (exit $ac_status); } &&
21347 { ac_try='test -z "$ac_c_werror_flag"
21348 || test ! -s conftest.err'
21349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21350 (eval $ac_try) 2>&5
21351 ac_status=$?
21352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21353 (exit $ac_status); }; } &&
21354 { ac_try='test -s conftest$ac_exeext'
21355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21356 (eval $ac_try) 2>&5
21357 ac_status=$?
21358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21359 (exit $ac_status); }; }; then
21360 ac_cv_func_socket=yes
21361else
21362 echo "$as_me: failed program was:" >&5
21363sed 's/^/| /' conftest.$ac_ext >&5
21364
21365ac_cv_func_socket=no
21366fi
21367rm -f conftest.err conftest.$ac_objext \
21368 conftest$ac_exeext conftest.$ac_ext
21369fi
21370echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
21371echo "${ECHO_T}$ac_cv_func_socket" >&6
21372if test $ac_cv_func_socket = yes; then
21373 :
21374else
21375 ok_so_far=no
21376fi
21377
21378if test $ok_so_far = yes; then
21379 if test "${ac_cv_header_netinet_in_h+set}" = set; then
21380 echo "$as_me:$LINENO: checking for netinet/in.h" >&5
21381echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6
21382if test "${ac_cv_header_netinet_in_h+set}" = set; then
21383 echo $ECHO_N "(cached) $ECHO_C" >&6
21384fi
21385echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
21386echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6
21387else
21388 # Is the header compilable?
21389echo "$as_me:$LINENO: checking netinet/in.h usability" >&5
21390echo $ECHO_N "checking netinet/in.h usability... $ECHO_C" >&6
21391cat >conftest.$ac_ext <<_ACEOF
21392/* confdefs.h. */
21393_ACEOF
21394cat confdefs.h >>conftest.$ac_ext
21395cat >>conftest.$ac_ext <<_ACEOF
21396/* end confdefs.h. */
21397$ac_includes_default
21398#include <netinet/in.h>
21399_ACEOF
21400rm -f conftest.$ac_objext
21401if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21402 (eval $ac_compile) 2>conftest.er1
21403 ac_status=$?
21404 grep -v '^ *+' conftest.er1 >conftest.err
21405 rm -f conftest.er1
21406 cat conftest.err >&5
21407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21408 (exit $ac_status); } &&
21409 { ac_try='test -z "$ac_c_werror_flag"
21410 || test ! -s conftest.err'
21411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21412 (eval $ac_try) 2>&5
21413 ac_status=$?
21414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21415 (exit $ac_status); }; } &&
21416 { ac_try='test -s conftest.$ac_objext'
21417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21418 (eval $ac_try) 2>&5
21419 ac_status=$?
21420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21421 (exit $ac_status); }; }; then
21422 ac_header_compiler=yes
21423else
21424 echo "$as_me: failed program was:" >&5
21425sed 's/^/| /' conftest.$ac_ext >&5
21426
21427ac_header_compiler=no
21428fi
21429rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21430echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21431echo "${ECHO_T}$ac_header_compiler" >&6
21432
21433# Is the header present?
21434echo "$as_me:$LINENO: checking netinet/in.h presence" >&5
21435echo $ECHO_N "checking netinet/in.h presence... $ECHO_C" >&6
21436cat >conftest.$ac_ext <<_ACEOF
21437/* confdefs.h. */
21438_ACEOF
21439cat confdefs.h >>conftest.$ac_ext
21440cat >>conftest.$ac_ext <<_ACEOF
21441/* end confdefs.h. */
21442#include <netinet/in.h>
21443_ACEOF
21444if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21445 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21446 ac_status=$?
21447 grep -v '^ *+' conftest.er1 >conftest.err
21448 rm -f conftest.er1
21449 cat conftest.err >&5
21450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21451 (exit $ac_status); } >/dev/null; then
21452 if test -s conftest.err; then
21453 ac_cpp_err=$ac_c_preproc_warn_flag
21454 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21455 else
21456 ac_cpp_err=
21457 fi
21458else
21459 ac_cpp_err=yes
21460fi
21461if test -z "$ac_cpp_err"; then
21462 ac_header_preproc=yes
21463else
21464 echo "$as_me: failed program was:" >&5
21465sed 's/^/| /' conftest.$ac_ext >&5
21466
21467 ac_header_preproc=no
21468fi
21469rm -f conftest.err conftest.$ac_ext
21470echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21471echo "${ECHO_T}$ac_header_preproc" >&6
21472
21473# So? What about this header?
21474case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21475 yes:no: )
21476 { echo "$as_me:$LINENO: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&5
21477echo "$as_me: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21478 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the compiler's result" >&5
21479echo "$as_me: WARNING: netinet/in.h: proceeding with the compiler's result" >&2;}
21480 ac_header_preproc=yes
21481 ;;
21482 no:yes:* )
21483 { echo "$as_me:$LINENO: WARNING: netinet/in.h: present but cannot be compiled" >&5
21484echo "$as_me: WARNING: netinet/in.h: present but cannot be compiled" >&2;}
21485 { echo "$as_me:$LINENO: WARNING: netinet/in.h: check for missing prerequisite headers?" >&5
21486echo "$as_me: WARNING: netinet/in.h: check for missing prerequisite headers?" >&2;}
21487 { echo "$as_me:$LINENO: WARNING: netinet/in.h: see the Autoconf documentation" >&5
21488echo "$as_me: WARNING: netinet/in.h: see the Autoconf documentation" >&2;}
21489 { echo "$as_me:$LINENO: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&5
21490echo "$as_me: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&2;}
21491 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5
21492echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;}
21493 { echo "$as_me:$LINENO: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&5
21494echo "$as_me: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&2;}
21495 (
21496 cat <<\_ASBOX
21497## ------------------------------------------ ##
21498## Report this to the AC_PACKAGE_NAME lists. ##
21499## ------------------------------------------ ##
21500_ASBOX
21501 ) |
21502 sed "s/^/$as_me: WARNING: /" >&2
21503 ;;
21504esac
21505echo "$as_me:$LINENO: checking for netinet/in.h" >&5
21506echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6
21507if test "${ac_cv_header_netinet_in_h+set}" = set; then
21508 echo $ECHO_N "(cached) $ECHO_C" >&6
21509else
21510 ac_cv_header_netinet_in_h=$ac_header_preproc
21511fi
21512echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
21513echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6
21514
21515fi
21516if test $ac_cv_header_netinet_in_h = yes; then
21517 :
21518else
21519 ok_so_far=no
21520fi
21521
21522
21523fi
21524if test $ok_so_far = yes; then
21525 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
21526 echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
21527echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6
21528if test "${ac_cv_header_arpa_inet_h+set}" = set; then
21529 echo $ECHO_N "(cached) $ECHO_C" >&6
21530fi
21531echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
21532echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6
21533else
21534 # Is the header compilable?
21535echo "$as_me:$LINENO: checking arpa/inet.h usability" >&5
21536echo $ECHO_N "checking arpa/inet.h usability... $ECHO_C" >&6
21537cat >conftest.$ac_ext <<_ACEOF
21538/* confdefs.h. */
21539_ACEOF
21540cat confdefs.h >>conftest.$ac_ext
21541cat >>conftest.$ac_ext <<_ACEOF
21542/* end confdefs.h. */
21543$ac_includes_default
21544#include <arpa/inet.h>
21545_ACEOF
21546rm -f conftest.$ac_objext
21547if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21548 (eval $ac_compile) 2>conftest.er1
21549 ac_status=$?
21550 grep -v '^ *+' conftest.er1 >conftest.err
21551 rm -f conftest.er1
21552 cat conftest.err >&5
21553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21554 (exit $ac_status); } &&
21555 { ac_try='test -z "$ac_c_werror_flag"
21556 || test ! -s conftest.err'
21557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21558 (eval $ac_try) 2>&5
21559 ac_status=$?
21560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21561 (exit $ac_status); }; } &&
21562 { ac_try='test -s conftest.$ac_objext'
21563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21564 (eval $ac_try) 2>&5
21565 ac_status=$?
21566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21567 (exit $ac_status); }; }; then
21568 ac_header_compiler=yes
21569else
21570 echo "$as_me: failed program was:" >&5
21571sed 's/^/| /' conftest.$ac_ext >&5
21572
21573ac_header_compiler=no
21574fi
21575rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21576echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21577echo "${ECHO_T}$ac_header_compiler" >&6
21578
21579# Is the header present?
21580echo "$as_me:$LINENO: checking arpa/inet.h presence" >&5
21581echo $ECHO_N "checking arpa/inet.h presence... $ECHO_C" >&6
21582cat >conftest.$ac_ext <<_ACEOF
21583/* confdefs.h. */
21584_ACEOF
21585cat confdefs.h >>conftest.$ac_ext
21586cat >>conftest.$ac_ext <<_ACEOF
21587/* end confdefs.h. */
21588#include <arpa/inet.h>
21589_ACEOF
21590if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21591 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21592 ac_status=$?
21593 grep -v '^ *+' conftest.er1 >conftest.err
21594 rm -f conftest.er1
21595 cat conftest.err >&5
21596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21597 (exit $ac_status); } >/dev/null; then
21598 if test -s conftest.err; then
21599 ac_cpp_err=$ac_c_preproc_warn_flag
21600 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21601 else
21602 ac_cpp_err=
21603 fi
21604else
21605 ac_cpp_err=yes
21606fi
21607if test -z "$ac_cpp_err"; then
21608 ac_header_preproc=yes
21609else
21610 echo "$as_me: failed program was:" >&5
21611sed 's/^/| /' conftest.$ac_ext >&5
21612
21613 ac_header_preproc=no
21614fi
21615rm -f conftest.err conftest.$ac_ext
21616echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21617echo "${ECHO_T}$ac_header_preproc" >&6
21618
21619# So? What about this header?
21620case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21621 yes:no: )
21622 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&5
21623echo "$as_me: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21624 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the compiler's result" >&5
21625echo "$as_me: WARNING: arpa/inet.h: proceeding with the compiler's result" >&2;}
21626 ac_header_preproc=yes
21627 ;;
21628 no:yes:* )
21629 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: present but cannot be compiled" >&5
21630echo "$as_me: WARNING: arpa/inet.h: present but cannot be compiled" >&2;}
21631 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&5
21632echo "$as_me: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&2;}
21633 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: see the Autoconf documentation" >&5
21634echo "$as_me: WARNING: arpa/inet.h: see the Autoconf documentation" >&2;}
21635 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&5
21636echo "$as_me: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&2;}
21637 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5
21638echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;}
21639 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&5
21640echo "$as_me: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&2;}
21641 (
21642 cat <<\_ASBOX
21643## ------------------------------------------ ##
21644## Report this to the AC_PACKAGE_NAME lists. ##
21645## ------------------------------------------ ##
21646_ASBOX
21647 ) |
21648 sed "s/^/$as_me: WARNING: /" >&2
21649 ;;
21650esac
21651echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
21652echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6
21653if test "${ac_cv_header_arpa_inet_h+set}" = set; then
21654 echo $ECHO_N "(cached) $ECHO_C" >&6
21655else
21656 ac_cv_header_arpa_inet_h=$ac_header_preproc
21657fi
21658echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
21659echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6
21660
21661fi
21662if test $ac_cv_header_arpa_inet_h = yes; then
21663 :
21664else
21665 ok_so_far=no
21666fi
21667
21668
21669fi
21670if test $ok_so_far = yes; then
21671
21672cat >>confdefs.h <<\_ACEOF
21673#define HAVE_INET_SOCKETS 1
21674_ACEOF
21675
21676fi
21677
21678
21679for ac_header in sys/ioctl.h
21680do
21681as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21682if eval "test \"\${$as_ac_Header+set}\" = set"; then
21683 echo "$as_me:$LINENO: checking for $ac_header" >&5
21684echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21685if eval "test \"\${$as_ac_Header+set}\" = set"; then
21686 echo $ECHO_N "(cached) $ECHO_C" >&6
21687fi
21688echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21689echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21690else
21691 # Is the header compilable?
21692echo "$as_me:$LINENO: checking $ac_header usability" >&5
21693echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21694cat >conftest.$ac_ext <<_ACEOF
21695/* confdefs.h. */
21696_ACEOF
21697cat confdefs.h >>conftest.$ac_ext
21698cat >>conftest.$ac_ext <<_ACEOF
21699/* end confdefs.h. */
21700$ac_includes_default
21701#include <$ac_header>
21702_ACEOF
21703rm -f conftest.$ac_objext
21704if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21705 (eval $ac_compile) 2>conftest.er1
21706 ac_status=$?
21707 grep -v '^ *+' conftest.er1 >conftest.err
21708 rm -f conftest.er1
21709 cat conftest.err >&5
21710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21711 (exit $ac_status); } &&
21712 { ac_try='test -z "$ac_c_werror_flag"
21713 || test ! -s conftest.err'
21714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21715 (eval $ac_try) 2>&5
21716 ac_status=$?
21717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21718 (exit $ac_status); }; } &&
21719 { ac_try='test -s conftest.$ac_objext'
21720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21721 (eval $ac_try) 2>&5
21722 ac_status=$?
21723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21724 (exit $ac_status); }; }; then
21725 ac_header_compiler=yes
21726else
21727 echo "$as_me: failed program was:" >&5
21728sed 's/^/| /' conftest.$ac_ext >&5
21729
21730ac_header_compiler=no
21731fi
21732rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21733echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21734echo "${ECHO_T}$ac_header_compiler" >&6
21735
21736# Is the header present?
21737echo "$as_me:$LINENO: checking $ac_header presence" >&5
21738echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21739cat >conftest.$ac_ext <<_ACEOF
21740/* confdefs.h. */
21741_ACEOF
21742cat confdefs.h >>conftest.$ac_ext
21743cat >>conftest.$ac_ext <<_ACEOF
21744/* end confdefs.h. */
21745#include <$ac_header>
21746_ACEOF
21747if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21748 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21749 ac_status=$?
21750 grep -v '^ *+' conftest.er1 >conftest.err
21751 rm -f conftest.er1
21752 cat conftest.err >&5
21753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21754 (exit $ac_status); } >/dev/null; then
21755 if test -s conftest.err; then
21756 ac_cpp_err=$ac_c_preproc_warn_flag
21757 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21758 else
21759 ac_cpp_err=
21760 fi
21761else
21762 ac_cpp_err=yes
21763fi
21764if test -z "$ac_cpp_err"; then
21765 ac_header_preproc=yes
21766else
21767 echo "$as_me: failed program was:" >&5
21768sed 's/^/| /' conftest.$ac_ext >&5
21769
21770 ac_header_preproc=no
21771fi
21772rm -f conftest.err conftest.$ac_ext
21773echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21774echo "${ECHO_T}$ac_header_preproc" >&6
21775
21776# So? What about this header?
21777case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21778 yes:no: )
21779 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21780echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21781 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21782echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21783 ac_header_preproc=yes
21784 ;;
21785 no:yes:* )
21786 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21787echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21788 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21789echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21790 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21791echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21792 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21793echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21794 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21795echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21796 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21797echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21798 (
21799 cat <<\_ASBOX
21800## ------------------------------------------ ##
21801## Report this to the AC_PACKAGE_NAME lists. ##
21802## ------------------------------------------ ##
21803_ASBOX
21804 ) |
21805 sed "s/^/$as_me: WARNING: /" >&2
21806 ;;
21807esac
21808echo "$as_me:$LINENO: checking for $ac_header" >&5
21809echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21810if eval "test \"\${$as_ac_Header+set}\" = set"; then
21811 echo $ECHO_N "(cached) $ECHO_C" >&6
21812else
21813 eval "$as_ac_Header=\$ac_header_preproc"
21814fi
21815echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21816echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21817
21818fi
21819if test `eval echo '${'$as_ac_Header'}'` = yes; then
21820 cat >>confdefs.h <<_ACEOF
21821#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21822_ACEOF
21823
21824fi
21825
21826done
21827
21828
21829if test -f /usr/lpp/X11/bin/smt.exp; then
21830
21831cat >>confdefs.h <<\_ACEOF
21832#define HAVE_AIX_SMT_EXP 1
21833_ACEOF
21834
21835fi
21836
21837echo "$as_me:$LINENO: checking whether system supports dynamic ptys" >&5
21838echo $ECHO_N "checking whether system supports dynamic ptys... $ECHO_C" >&6
21839if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
21840 echo "$as_me:$LINENO: result: yes" >&5
21841echo "${ECHO_T}yes" >&6
21842
21843cat >>confdefs.h <<\_ACEOF
21844#define HAVE_DEV_PTMX 1
21845_ACEOF
21846
21847else
21848 echo "$as_me:$LINENO: result: no" >&5
21849echo "${ECHO_T}no" >&6
21850fi
21851
21852echo "$as_me:$LINENO: checking for pid_t" >&5
21853echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
21854if test "${ac_cv_type_pid_t+set}" = set; then
21855 echo $ECHO_N "(cached) $ECHO_C" >&6
21856else
21857 cat >conftest.$ac_ext <<_ACEOF
21858/* confdefs.h. */
21859_ACEOF
21860cat confdefs.h >>conftest.$ac_ext
21861cat >>conftest.$ac_ext <<_ACEOF
21862/* end confdefs.h. */
21863$ac_includes_default
21864int
21865main ()
21866{
21867if ((pid_t *) 0)
21868 return 0;
21869if (sizeof (pid_t))
21870 return 0;
21871 ;
21872 return 0;
21873}
21874_ACEOF
21875rm -f conftest.$ac_objext
21876if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21877 (eval $ac_compile) 2>conftest.er1
21878 ac_status=$?
21879 grep -v '^ *+' conftest.er1 >conftest.err
21880 rm -f conftest.er1
21881 cat conftest.err >&5
21882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21883 (exit $ac_status); } &&
21884 { ac_try='test -z "$ac_c_werror_flag"
21885 || test ! -s conftest.err'
21886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21887 (eval $ac_try) 2>&5
21888 ac_status=$?
21889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21890 (exit $ac_status); }; } &&
21891 { ac_try='test -s conftest.$ac_objext'
21892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21893 (eval $ac_try) 2>&5
21894 ac_status=$?
21895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21896 (exit $ac_status); }; }; then
21897 ac_cv_type_pid_t=yes
21898else
21899 echo "$as_me: failed program was:" >&5
21900sed 's/^/| /' conftest.$ac_ext >&5
21901
21902ac_cv_type_pid_t=no
21903fi
21904rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21905fi
21906echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
21907echo "${ECHO_T}$ac_cv_type_pid_t" >&6
21908if test $ac_cv_type_pid_t = yes; then
21909 :
21910else
21911
21912cat >>confdefs.h <<_ACEOF
21913#define pid_t int
21914_ACEOF
21915
21916fi
21917
21918
21919
21920for ac_header in unistd.h vfork.h
21921do
21922as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21923if eval "test \"\${$as_ac_Header+set}\" = set"; then
21924 echo "$as_me:$LINENO: checking for $ac_header" >&5
21925echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21926if eval "test \"\${$as_ac_Header+set}\" = set"; then
21927 echo $ECHO_N "(cached) $ECHO_C" >&6
21928fi
21929echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21930echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21931else
21932 # Is the header compilable?
21933echo "$as_me:$LINENO: checking $ac_header usability" >&5
21934echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21935cat >conftest.$ac_ext <<_ACEOF
21936/* confdefs.h. */
21937_ACEOF
21938cat confdefs.h >>conftest.$ac_ext
21939cat >>conftest.$ac_ext <<_ACEOF
21940/* end confdefs.h. */
21941$ac_includes_default
21942#include <$ac_header>
21943_ACEOF
21944rm -f conftest.$ac_objext
21945if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21946 (eval $ac_compile) 2>conftest.er1
21947 ac_status=$?
21948 grep -v '^ *+' conftest.er1 >conftest.err
21949 rm -f conftest.er1
21950 cat conftest.err >&5
21951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21952 (exit $ac_status); } &&
21953 { ac_try='test -z "$ac_c_werror_flag"
21954 || test ! -s conftest.err'
21955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21956 (eval $ac_try) 2>&5
21957 ac_status=$?
21958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21959 (exit $ac_status); }; } &&
21960 { ac_try='test -s conftest.$ac_objext'
21961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21962 (eval $ac_try) 2>&5
21963 ac_status=$?
21964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21965 (exit $ac_status); }; }; then
21966 ac_header_compiler=yes
21967else
21968 echo "$as_me: failed program was:" >&5
21969sed 's/^/| /' conftest.$ac_ext >&5
21970
21971ac_header_compiler=no
21972fi
21973rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21974echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21975echo "${ECHO_T}$ac_header_compiler" >&6
21976
21977# Is the header present?
21978echo "$as_me:$LINENO: checking $ac_header presence" >&5
21979echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21980cat >conftest.$ac_ext <<_ACEOF
21981/* confdefs.h. */
21982_ACEOF
21983cat confdefs.h >>conftest.$ac_ext
21984cat >>conftest.$ac_ext <<_ACEOF
21985/* end confdefs.h. */
21986#include <$ac_header>
21987_ACEOF
21988if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21989 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21990 ac_status=$?
21991 grep -v '^ *+' conftest.er1 >conftest.err
21992 rm -f conftest.er1
21993 cat conftest.err >&5
21994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21995 (exit $ac_status); } >/dev/null; then
21996 if test -s conftest.err; then
21997 ac_cpp_err=$ac_c_preproc_warn_flag
21998 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21999 else
22000 ac_cpp_err=
22001 fi
22002else
22003 ac_cpp_err=yes
22004fi
22005if test -z "$ac_cpp_err"; then
22006 ac_header_preproc=yes
22007else
22008 echo "$as_me: failed program was:" >&5
22009sed 's/^/| /' conftest.$ac_ext >&5
22010
22011 ac_header_preproc=no
22012fi
22013rm -f conftest.err conftest.$ac_ext
22014echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22015echo "${ECHO_T}$ac_header_preproc" >&6
22016
22017# So? What about this header?
22018case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22019 yes:no: )
22020 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22021echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22022 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22023echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22024 ac_header_preproc=yes
22025 ;;
22026 no:yes:* )
22027 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22028echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22029 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22030echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22031 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22032echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22033 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22034echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22035 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22036echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22037 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22038echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22039 (
22040 cat <<\_ASBOX
22041## ------------------------------------------ ##
22042## Report this to the AC_PACKAGE_NAME lists. ##
22043## ------------------------------------------ ##
22044_ASBOX
22045 ) |
22046 sed "s/^/$as_me: WARNING: /" >&2
22047 ;;
22048esac
22049echo "$as_me:$LINENO: checking for $ac_header" >&5
22050echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22051if eval "test \"\${$as_ac_Header+set}\" = set"; then
22052 echo $ECHO_N "(cached) $ECHO_C" >&6
22053else
22054 eval "$as_ac_Header=\$ac_header_preproc"
22055fi
22056echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22057echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22058
22059fi
22060if test `eval echo '${'$as_ac_Header'}'` = yes; then
22061 cat >>confdefs.h <<_ACEOF
22062#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22063_ACEOF
22064
22065fi
22066
22067done
22068
22069
22070
22071for ac_func in fork vfork
22072do
22073as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22074echo "$as_me:$LINENO: checking for $ac_func" >&5
22075echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22076if eval "test \"\${$as_ac_var+set}\" = set"; then
22077 echo $ECHO_N "(cached) $ECHO_C" >&6
22078else
22079 cat >conftest.$ac_ext <<_ACEOF
22080/* confdefs.h. */
22081_ACEOF
22082cat confdefs.h >>conftest.$ac_ext
22083cat >>conftest.$ac_ext <<_ACEOF
22084/* end confdefs.h. */
22085/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22086 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22087#define $ac_func innocuous_$ac_func
22088
22089/* System header to define __stub macros and hopefully few prototypes,
22090 which can conflict with char $ac_func (); below.
22091 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22092 <limits.h> exists even on freestanding compilers. */
22093
22094#ifdef __STDC__
22095# include <limits.h>
22096#else
22097# include <assert.h>
22098#endif
22099
22100#undef $ac_func
22101
22102/* Override any gcc2 internal prototype to avoid an error. */
22103#ifdef __cplusplus
22104extern "C"
22105{
22106#endif
22107/* We use char because int might match the return type of a gcc2
22108 builtin and then its argument prototype would still apply. */
22109char $ac_func ();
22110/* The GNU C library defines this for functions which it implements
22111 to always fail with ENOSYS. Some functions are actually named
22112 something starting with __ and the normal name is an alias. */
22113#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22114choke me
22115#else
22116char (*f) () = $ac_func;
22117#endif
22118#ifdef __cplusplus
22119}
22120#endif
22121
22122int
22123main ()
22124{
22125return f != $ac_func;
22126 ;
22127 return 0;
22128}
22129_ACEOF
22130rm -f conftest.$ac_objext conftest$ac_exeext
22131if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22132 (eval $ac_link) 2>conftest.er1
22133 ac_status=$?
22134 grep -v '^ *+' conftest.er1 >conftest.err
22135 rm -f conftest.er1
22136 cat conftest.err >&5
22137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22138 (exit $ac_status); } &&
22139 { ac_try='test -z "$ac_c_werror_flag"
22140 || test ! -s conftest.err'
22141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22142 (eval $ac_try) 2>&5
22143 ac_status=$?
22144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22145 (exit $ac_status); }; } &&
22146 { ac_try='test -s conftest$ac_exeext'
22147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22148 (eval $ac_try) 2>&5
22149 ac_status=$?
22150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22151 (exit $ac_status); }; }; then
22152 eval "$as_ac_var=yes"
22153else
22154 echo "$as_me: failed program was:" >&5
22155sed 's/^/| /' conftest.$ac_ext >&5
22156
22157eval "$as_ac_var=no"
22158fi
22159rm -f conftest.err conftest.$ac_objext \
22160 conftest$ac_exeext conftest.$ac_ext
22161fi
22162echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22163echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22164if test `eval echo '${'$as_ac_var'}'` = yes; then
22165 cat >>confdefs.h <<_ACEOF
22166#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22167_ACEOF
22168
22169fi
22170done
22171
22172if test "x$ac_cv_func_fork" = xyes; then
22173 echo "$as_me:$LINENO: checking for working fork" >&5
22174echo $ECHO_N "checking for working fork... $ECHO_C" >&6
22175if test "${ac_cv_func_fork_works+set}" = set; then
22176 echo $ECHO_N "(cached) $ECHO_C" >&6
22177else
22178 if test "$cross_compiling" = yes; then
22179 ac_cv_func_fork_works=cross
22180else
22181 cat >conftest.$ac_ext <<_ACEOF
22182/* By Ruediger Kuhlmann. */
22183 #include <sys/types.h>
22184 #if HAVE_UNISTD_H
22185 # include <unistd.h>
22186 #endif
22187 /* Some systems only have a dummy stub for fork() */
22188 int main ()
22189 {
22190 if (fork() < 0)
22191 exit (1);
22192 exit (0);
22193 }
22194_ACEOF
22195rm -f conftest$ac_exeext
22196if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22197 (eval $ac_link) 2>&5
22198 ac_status=$?
22199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22200 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22202 (eval $ac_try) 2>&5
22203 ac_status=$?
22204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22205 (exit $ac_status); }; }; then
22206 ac_cv_func_fork_works=yes
22207else
22208 echo "$as_me: program exited with status $ac_status" >&5
22209echo "$as_me: failed program was:" >&5
22210sed 's/^/| /' conftest.$ac_ext >&5
22211
22212( exit $ac_status )
22213ac_cv_func_fork_works=no
22214fi
22215rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22216fi
22217fi
22218echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
22219echo "${ECHO_T}$ac_cv_func_fork_works" >&6
22220
22221else
22222 ac_cv_func_fork_works=$ac_cv_func_fork
22223fi
22224if test "x$ac_cv_func_fork_works" = xcross; then
22225 case $host in
22226 *-*-amigaos* | *-*-msdosdjgpp*)
22227 # Override, as these systems have only a dummy fork() stub
22228 ac_cv_func_fork_works=no
22229 ;;
22230 *)
22231 ac_cv_func_fork_works=yes
22232 ;;
22233 esac
22234 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
22235echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
22236fi
22237ac_cv_func_vfork_works=$ac_cv_func_vfork
22238if test "x$ac_cv_func_vfork" = xyes; then
22239 echo "$as_me:$LINENO: checking for working vfork" >&5
22240echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
22241if test "${ac_cv_func_vfork_works+set}" = set; then
22242 echo $ECHO_N "(cached) $ECHO_C" >&6
22243else
22244 if test "$cross_compiling" = yes; then
22245 ac_cv_func_vfork_works=cross
22246else
22247 cat >conftest.$ac_ext <<_ACEOF
22248/* confdefs.h. */
22249_ACEOF
22250cat confdefs.h >>conftest.$ac_ext
22251cat >>conftest.$ac_ext <<_ACEOF
22252/* end confdefs.h. */
22253/* Thanks to Paul Eggert for this test. */
22254#include <stdio.h>
22255#include <stdlib.h>
22256#include <sys/types.h>
22257#include <sys/stat.h>
22258#include <sys/wait.h>
22259#if HAVE_UNISTD_H
22260# include <unistd.h>
22261#endif
22262#if HAVE_VFORK_H
22263# include <vfork.h>
22264#endif
22265/* On some sparc systems, changes by the child to local and incoming
22266 argument registers are propagated back to the parent. The compiler
22267 is told about this with #include <vfork.h>, but some compilers
22268 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
22269 static variable whose address is put into a register that is
22270 clobbered by the vfork. */
22271static void
22272#ifdef __cplusplus
22273sparc_address_test (int arg)
22274# else
22275sparc_address_test (arg) int arg;
22276#endif
22277{
22278 static pid_t child;
22279 if (!child) {
22280 child = vfork ();
22281 if (child < 0) {
22282 perror ("vfork");
22283 _exit(2);
22284 }
22285 if (!child) {
22286 arg = getpid();
22287 write(-1, "", 0);
22288 _exit (arg);
22289 }
22290 }
22291}
22292
22293int
22294main ()
22295{
22296 pid_t parent = getpid ();
22297 pid_t child;
22298
22299 sparc_address_test (0);
22300
22301 child = vfork ();
22302
22303 if (child == 0) {
22304 /* Here is another test for sparc vfork register problems. This
22305 test uses lots of local variables, at least as many local
22306 variables as main has allocated so far including compiler
22307 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
22308 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
22309 reuse the register of parent for one of the local variables,
22310 since it will think that parent can't possibly be used any more
22311 in this routine. Assigning to the local variable will thus
22312 munge parent in the parent process. */
22313 pid_t
22314 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
22315 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
22316 /* Convince the compiler that p..p7 are live; otherwise, it might
22317 use the same hardware register for all 8 local variables. */
22318 if (p != p1 || p != p2 || p != p3 || p != p4
22319 || p != p5 || p != p6 || p != p7)
22320 _exit(1);
22321
22322 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
22323 from child file descriptors. If the child closes a descriptor
22324 before it execs or exits, this munges the parent's descriptor
22325 as well. Test for this by closing stdout in the child. */
22326 _exit(close(fileno(stdout)) != 0);
22327 } else {
22328 int status;
22329 struct stat st;
22330
22331 while (wait(&status) != child)
22332 ;
22333 exit(
22334 /* Was there some problem with vforking? */
22335 child < 0
22336
22337 /* Did the child fail? (This shouldn't happen.) */
22338 || status
22339
22340 /* Did the vfork/compiler bug occur? */
22341 || parent != getpid()
22342
22343 /* Did the file descriptor bug occur? */
22344 || fstat(fileno(stdout), &st) != 0
22345 );
22346 }
22347}
22348_ACEOF
22349rm -f conftest$ac_exeext
22350if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22351 (eval $ac_link) 2>&5
22352 ac_status=$?
22353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22354 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22356 (eval $ac_try) 2>&5
22357 ac_status=$?
22358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22359 (exit $ac_status); }; }; then
22360 ac_cv_func_vfork_works=yes
22361else
22362 echo "$as_me: program exited with status $ac_status" >&5
22363echo "$as_me: failed program was:" >&5
22364sed 's/^/| /' conftest.$ac_ext >&5
22365
22366( exit $ac_status )
22367ac_cv_func_vfork_works=no
22368fi
22369rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22370fi
22371fi
22372echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
22373echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
22374
22375fi;
22376if test "x$ac_cv_func_fork_works" = xcross; then
22377 ac_cv_func_vfork_works=$ac_cv_func_vfork
22378 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
22379echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
22380fi
22381
22382if test "x$ac_cv_func_vfork_works" = xyes; then
22383
22384cat >>confdefs.h <<\_ACEOF
22385#define HAVE_WORKING_VFORK 1
22386_ACEOF
22387
22388else
22389
22390cat >>confdefs.h <<\_ACEOF
22391#define vfork fork
22392_ACEOF
22393
22394fi
22395if test "x$ac_cv_func_fork_works" = xyes; then
22396
22397cat >>confdefs.h <<\_ACEOF
22398#define HAVE_WORKING_FORK 1
22399_ACEOF
22400
22401fi
22402
22403
22404echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
22405echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
22406if test "${emacs_cv_langinfo_codeset+set}" = set; then
22407 echo $ECHO_N "(cached) $ECHO_C" >&6
22408else
22409 cat >conftest.$ac_ext <<_ACEOF
22410/* confdefs.h. */
22411_ACEOF
22412cat confdefs.h >>conftest.$ac_ext
22413cat >>conftest.$ac_ext <<_ACEOF
22414/* end confdefs.h. */
22415#include <langinfo.h>
22416int
22417main ()
22418{
22419char* cs = nl_langinfo(CODESET);
22420 ;
22421 return 0;
22422}
22423_ACEOF
22424rm -f conftest.$ac_objext conftest$ac_exeext
22425if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22426 (eval $ac_link) 2>conftest.er1
22427 ac_status=$?
22428 grep -v '^ *+' conftest.er1 >conftest.err
22429 rm -f conftest.er1
22430 cat conftest.err >&5
22431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22432 (exit $ac_status); } &&
22433 { ac_try='test -z "$ac_c_werror_flag"
22434 || test ! -s conftest.err'
22435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22436 (eval $ac_try) 2>&5
22437 ac_status=$?
22438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22439 (exit $ac_status); }; } &&
22440 { ac_try='test -s conftest$ac_exeext'
22441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22442 (eval $ac_try) 2>&5
22443 ac_status=$?
22444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22445 (exit $ac_status); }; }; then
22446 emacs_cv_langinfo_codeset=yes
22447else
22448 echo "$as_me: failed program was:" >&5
22449sed 's/^/| /' conftest.$ac_ext >&5
22450
22451emacs_cv_langinfo_codeset=no
22452fi
22453rm -f conftest.err conftest.$ac_objext \
22454 conftest$ac_exeext conftest.$ac_ext
22455
22456fi
22457echo "$as_me:$LINENO: result: $emacs_cv_langinfo_codeset" >&5
22458echo "${ECHO_T}$emacs_cv_langinfo_codeset" >&6
22459if test $emacs_cv_langinfo_codeset = yes; then
22460
22461cat >>confdefs.h <<\_ACEOF
22462#define HAVE_LANGINFO_CODESET 1
22463_ACEOF
22464
22465fi
22466
22467echo "$as_me:$LINENO: checking for size_t" >&5
22468echo $ECHO_N "checking for size_t... $ECHO_C" >&6
22469if test "${ac_cv_type_size_t+set}" = set; then
22470 echo $ECHO_N "(cached) $ECHO_C" >&6
22471else
22472 cat >conftest.$ac_ext <<_ACEOF
22473/* confdefs.h. */
22474_ACEOF
22475cat confdefs.h >>conftest.$ac_ext
22476cat >>conftest.$ac_ext <<_ACEOF
22477/* end confdefs.h. */
22478$ac_includes_default
22479int
22480main ()
22481{
22482if ((size_t *) 0)
22483 return 0;
22484if (sizeof (size_t))
22485 return 0;
22486 ;
22487 return 0;
22488}
22489_ACEOF
22490rm -f conftest.$ac_objext
22491if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22492 (eval $ac_compile) 2>conftest.er1
22493 ac_status=$?
22494 grep -v '^ *+' conftest.er1 >conftest.err
22495 rm -f conftest.er1
22496 cat conftest.err >&5
22497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22498 (exit $ac_status); } &&
22499 { ac_try='test -z "$ac_c_werror_flag"
22500 || test ! -s conftest.err'
22501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22502 (eval $ac_try) 2>&5
22503 ac_status=$?
22504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22505 (exit $ac_status); }; } &&
22506 { ac_try='test -s conftest.$ac_objext'
22507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22508 (eval $ac_try) 2>&5
22509 ac_status=$?
22510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22511 (exit $ac_status); }; }; then
22512 ac_cv_type_size_t=yes
22513else
22514 echo "$as_me: failed program was:" >&5
22515sed 's/^/| /' conftest.$ac_ext >&5
22516
22517ac_cv_type_size_t=no
22518fi
22519rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22520fi
22521echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
22522echo "${ECHO_T}$ac_cv_type_size_t" >&6
22523if test $ac_cv_type_size_t = yes; then
22524
22525cat >>confdefs.h <<_ACEOF
22526#define HAVE_SIZE_T 1
22527_ACEOF
22528
22529
22530fi
22531
22532
22533echo "$as_me:$LINENO: checking for mbstate_t" >&5
22534echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
22535if test "${ac_cv_type_mbstate_t+set}" = set; then
22536 echo $ECHO_N "(cached) $ECHO_C" >&6
22537else
22538 cat >conftest.$ac_ext <<_ACEOF
22539/* confdefs.h. */
22540_ACEOF
22541cat confdefs.h >>conftest.$ac_ext
22542cat >>conftest.$ac_ext <<_ACEOF
22543/* end confdefs.h. */
22544$ac_includes_default
22545# include <wchar.h>
22546int
22547main ()
22548{
22549mbstate_t x; return sizeof x;
22550 ;
22551 return 0;
22552}
22553_ACEOF
22554rm -f conftest.$ac_objext
22555if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22556 (eval $ac_compile) 2>conftest.er1
22557 ac_status=$?
22558 grep -v '^ *+' conftest.er1 >conftest.err
22559 rm -f conftest.er1
22560 cat conftest.err >&5
22561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22562 (exit $ac_status); } &&
22563 { ac_try='test -z "$ac_c_werror_flag"
22564 || test ! -s conftest.err'
22565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22566 (eval $ac_try) 2>&5
22567 ac_status=$?
22568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22569 (exit $ac_status); }; } &&
22570 { ac_try='test -s conftest.$ac_objext'
22571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22572 (eval $ac_try) 2>&5
22573 ac_status=$?
22574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22575 (exit $ac_status); }; }; then
22576 ac_cv_type_mbstate_t=yes
22577else
22578 echo "$as_me: failed program was:" >&5
22579sed 's/^/| /' conftest.$ac_ext >&5
22580
22581ac_cv_type_mbstate_t=no
22582fi
22583rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22584fi
22585echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
22586echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6
22587 if test $ac_cv_type_mbstate_t = yes; then
22588
22589cat >>confdefs.h <<\_ACEOF
22590#define HAVE_MBSTATE_T 1
22591_ACEOF
22592
22593 else
22594
22595cat >>confdefs.h <<\_ACEOF
22596#define mbstate_t int
22597_ACEOF
22598
22599 fi
22600
22601echo "$as_me:$LINENO: checking for C restrict keyword" >&5
22602echo $ECHO_N "checking for C restrict keyword... $ECHO_C" >&6
22603if test "${emacs_cv_c_restrict+set}" = set; then
22604 echo $ECHO_N "(cached) $ECHO_C" >&6
22605else
22606 cat >conftest.$ac_ext <<_ACEOF
22607/* confdefs.h. */
22608_ACEOF
22609cat confdefs.h >>conftest.$ac_ext
22610cat >>conftest.$ac_ext <<_ACEOF
22611/* end confdefs.h. */
22612void fred (int *restrict x);
22613int
22614main ()
22615{
22616
22617 ;
22618 return 0;
22619}
22620_ACEOF
22621rm -f conftest.$ac_objext
22622if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22623 (eval $ac_compile) 2>conftest.er1
22624 ac_status=$?
22625 grep -v '^ *+' conftest.er1 >conftest.err
22626 rm -f conftest.er1
22627 cat conftest.err >&5
22628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22629 (exit $ac_status); } &&
22630 { ac_try='test -z "$ac_c_werror_flag"
22631 || test ! -s conftest.err'
22632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22633 (eval $ac_try) 2>&5
22634 ac_status=$?
22635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22636 (exit $ac_status); }; } &&
22637 { ac_try='test -s conftest.$ac_objext'
22638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22639 (eval $ac_try) 2>&5
22640 ac_status=$?
22641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22642 (exit $ac_status); }; }; then
22643 emacs_cv_c_restrict=yes
22644else
22645 echo "$as_me: failed program was:" >&5
22646sed 's/^/| /' conftest.$ac_ext >&5
22647
22648cat >conftest.$ac_ext <<_ACEOF
22649/* confdefs.h. */
22650_ACEOF
22651cat confdefs.h >>conftest.$ac_ext
22652cat >>conftest.$ac_ext <<_ACEOF
22653/* end confdefs.h. */
22654void fred (int *__restrict x);
22655int
22656main ()
22657{
22658
22659 ;
22660 return 0;
22661}
22662_ACEOF
22663rm -f conftest.$ac_objext
22664if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22665 (eval $ac_compile) 2>conftest.er1
22666 ac_status=$?
22667 grep -v '^ *+' conftest.er1 >conftest.err
22668 rm -f conftest.er1
22669 cat conftest.err >&5
22670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22671 (exit $ac_status); } &&
22672 { ac_try='test -z "$ac_c_werror_flag"
22673 || test ! -s conftest.err'
22674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22675 (eval $ac_try) 2>&5
22676 ac_status=$?
22677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22678 (exit $ac_status); }; } &&
22679 { ac_try='test -s conftest.$ac_objext'
22680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22681 (eval $ac_try) 2>&5
22682 ac_status=$?
22683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22684 (exit $ac_status); }; }; then
22685 emacs_cv_c_restrict=__restrict
22686else
22687 echo "$as_me: failed program was:" >&5
22688sed 's/^/| /' conftest.$ac_ext >&5
22689
22690emacs_cv_c_restrict=no
22691fi
22692rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22693fi
22694rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22695fi
22696echo "$as_me:$LINENO: result: $emacs_cv_c_restrict" >&5
22697echo "${ECHO_T}$emacs_cv_c_restrict" >&6
22698case "$emacs_cv_c_restrict" in
22699 yes) emacs_restrict=restrict;;
22700 no) emacs_restrict="";;
22701 *) emacs_restrict="$emacs_cv_c_restrict";;
22702esac
22703if test "$emacs_restrict" != __restrict; then
22704
22705cat >>confdefs.h <<_ACEOF
22706#define __restrict $emacs_restrict
22707_ACEOF
22708
22709fi
22710
22711echo "$as_me:$LINENO: checking for C restricted array declarations" >&5
22712echo $ECHO_N "checking for C restricted array declarations... $ECHO_C" >&6
22713if test "${emacs_cv_c_restrict_arr+set}" = set; then
22714 echo $ECHO_N "(cached) $ECHO_C" >&6
22715else
22716 cat >conftest.$ac_ext <<_ACEOF
22717/* confdefs.h. */
22718_ACEOF
22719cat confdefs.h >>conftest.$ac_ext
22720cat >>conftest.$ac_ext <<_ACEOF
22721/* end confdefs.h. */
22722void fred (int x[__restrict]);
22723int
22724main ()
22725{
22726
22727 ;
22728 return 0;
22729}
22730_ACEOF
22731rm -f conftest.$ac_objext
22732if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22733 (eval $ac_compile) 2>conftest.er1
22734 ac_status=$?
22735 grep -v '^ *+' conftest.er1 >conftest.err
22736 rm -f conftest.er1
22737 cat conftest.err >&5
22738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22739 (exit $ac_status); } &&
22740 { ac_try='test -z "$ac_c_werror_flag"
22741 || test ! -s conftest.err'
22742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22743 (eval $ac_try) 2>&5
22744 ac_status=$?
22745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22746 (exit $ac_status); }; } &&
22747 { ac_try='test -s conftest.$ac_objext'
22748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22749 (eval $ac_try) 2>&5
22750 ac_status=$?
22751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22752 (exit $ac_status); }; }; then
22753 emacs_cv_c_restrict_arr=yes
22754else
22755 echo "$as_me: failed program was:" >&5
22756sed 's/^/| /' conftest.$ac_ext >&5
22757
22758emacs_cv_c_restrict_arr=no
22759fi
22760rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22761fi
22762echo "$as_me:$LINENO: result: $emacs_cv_c_restrict_arr" >&5
22763echo "${ECHO_T}$emacs_cv_c_restrict_arr" >&6
22764if test "$emacs_cv_c_restrict_arr" = yes; then
22765
22766cat >>confdefs.h <<\_ACEOF
22767#define __restrict_arr __restrict
22768_ACEOF
22769
22770fi
22771
22772
22773
22774# Set up the CFLAGS for real compilation, so we can substitute it.
22775CFLAGS="$REAL_CFLAGS"
22776CPPFLAGS="$REAL_CPPFLAGS"
22777
22778#### Find out which version of Emacs this is.
22779version=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
22780 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`
22781if test x"${version}" = x; then
22782 { { echo "$as_me:$LINENO: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&5
22783echo "$as_me: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&2;}
22784 { (exit 1); exit 1; }; }
22785fi
22786
22787### Specify what sort of things we'll be editing into Makefile and config.h.
22788### Use configuration here uncanonicalized to avoid exceeding size limits.
22789
22790
22791
22792
22793
22794
22795
22796
22797
22798
22799
22800
22801
22802
22803
22804
22805
22806
22807
22808
22809
22810
22811
22812
22813
22814
22815
22816
22817
22818
22819
22820
22821
22822
22823
22824cat >>confdefs.h <<_ACEOF
22825#define EMACS_CONFIGURATION "${canonical}"
22826_ACEOF
22827
22828
22829cat >>confdefs.h <<_ACEOF
22830#define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
22831_ACEOF
22832
22833
22834cat >>confdefs.h <<_ACEOF
22835#define config_machfile "${machfile}"
22836_ACEOF
22837
22838
22839cat >>confdefs.h <<_ACEOF
22840#define config_opsysfile "${opsysfile}"
22841_ACEOF
22842
22843
22844cat >>confdefs.h <<_ACEOF
22845#define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
22846_ACEOF
22847
22848
22849cat >>confdefs.h <<_ACEOF
22850#define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX}
22851_ACEOF
22852
22853
22854cat >>confdefs.h <<_ACEOF
22855#define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
22856_ACEOF
22857
22858
22859cat >>confdefs.h <<_ACEOF
22860#define UNEXEC_SRC ${UNEXEC_SRC}
22861_ACEOF
22862
22863
22864if test "${HAVE_X_WINDOWS}" = "yes" ; then
22865
22866cat >>confdefs.h <<\_ACEOF
22867#define HAVE_X_WINDOWS 1
22868_ACEOF
22869
22870fi
22871if test "${USE_X_TOOLKIT}" != "none" ; then
22872
22873cat >>confdefs.h <<\_ACEOF
22874#define USE_X_TOOLKIT 1
22875_ACEOF
22876
22877fi
22878if test "${HAVE_X11}" = "yes" ; then
22879
22880cat >>confdefs.h <<\_ACEOF
22881#define HAVE_X11 1
22882_ACEOF
22883
22884fi
22885if test "${HAVE_XFREE386}" = "yes" ; then
22886
22887cat >>confdefs.h <<\_ACEOF
22888#define HAVE_XFREE386 1
22889_ACEOF
22890
22891fi
22892if test "${HAVE_MENUS}" = "yes" ; then
22893
22894cat >>confdefs.h <<\_ACEOF
22895#define HAVE_MENUS 1
22896_ACEOF
22897
22898fi
22899if test "${GNU_MALLOC}" = "yes" ; then
22900
22901cat >>confdefs.h <<\_ACEOF
22902#define GNU_MALLOC 1
22903_ACEOF
22904
22905fi
22906if test "${REL_ALLOC}" = "yes" ; then
22907
22908cat >>confdefs.h <<\_ACEOF
22909#define REL_ALLOC 1
22910_ACEOF
22911
22912fi
22913
22914
22915
22916
22917
22918#### Report on what we decided to do.
22919#### Report GTK as a toolkit, even if it doesn't use Xt.
22920#### It makes printing result more understandable as using GTK sets
22921#### toolkit_scroll_bars to yes by default.
22922if test "${HAVE_GTK}" = "yes"; then
22923 USE_X_TOOLKIT=GTK
22924fi
22925
22926echo "
22927Configured for \`${canonical}'.
22928
22929 Where should the build process find the source code? ${srcdir}
22930 What operating system and machine description files should Emacs use?
22931 \`${opsysfile}' and \`${machfile}'
22932 What compiler should emacs be built with? ${CC} ${CFLAGS}
22933 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
22934 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
22935 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
22936 What window system should Emacs use? ${window_system}
22937 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
22938
22939if test -n "${x_includes}"; then
22940echo " Where do we find X Windows header files? ${x_includes}"
22941else
22942echo " Where do we find X Windows header files? Standard dirs"
22943fi
22944if test -n "${x_libraries}"; then
22945echo " Where do we find X Windows libraries? ${x_libraries}"
22946else
22947echo " Where do we find X Windows libraries? Standard dirs"
22948fi
22949
22950echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
22951echo " Does Emacs use -lXpm? ${HAVE_XPM}"
22952echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
22953echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
22954echo " Does Emacs use -lungif? ${HAVE_GIF}"
22955echo " Does Emacs use -lpng? ${HAVE_PNG}"
22956echo " Does Emacs use X toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
22957echo
22958
22959if test $USE_XASSERTS = yes; then
22960 echo " Compiling with asserts turned on."
22961 CPPFLAGS="$CPPFLAGS -DXASSERTS=1"
22962 echo
22963fi
22964
22965
22966
22967# Remove any trailing slashes in these variables.
22968test "${prefix}" != NONE &&
22969 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
22970test "${exec_prefix}" != NONE &&
22971 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
22972
22973## Check if the C preprocessor will convert `..' to `. .'. If so, set
22974## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
22975## from Makefile.c can correctly provide the arg `-traditional' to the
22976## C preprocessor.
22977
22978cat >conftest.$ac_ext <<_ACEOF
22979/* confdefs.h. */
22980_ACEOF
22981cat confdefs.h >>conftest.$ac_ext
22982cat >>conftest.$ac_ext <<_ACEOF
22983/* end confdefs.h. */
22984yes..yes
22985_ACEOF
22986if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22987 $EGREP "yes..yes" >/dev/null 2>&1; then
22988 CPP_NEED_TRADITIONAL=no
22989else
22990 CPP_NEED_TRADITIONAL=yes
22991fi
22992rm -f conftest*
22993
22994
22995 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"
22996 ac_config_commands="$ac_config_commands default"
22997cat >confcache <<\_ACEOF
22998# This file is a shell script that caches the results of configure
22999# tests run on this system so they can be shared between configure
23000# scripts and configure runs, see configure's option --config-cache.
23001# It is not useful on other systems. If it contains results you don't
23002# want to keep, you may remove or edit it.
23003#
23004# config.status only pays attention to the cache file if you give it
23005# the --recheck option to rerun configure.
23006#
23007# `ac_cv_env_foo' variables (set or unset) will be overridden when
23008# loading this file, other *unset* `ac_cv_foo' will be assigned the
23009# following values.
23010
23011_ACEOF
23012
23013# The following way of writing the cache mishandles newlines in values,
23014# but we know of no workaround that is simple, portable, and efficient.
23015# So, don't put newlines in cache variables' values.
23016# Ultrix sh set writes to stderr and can't be redirected directly,
23017# and sets the high bit in the cache file unless we assign to the vars.
23018{
23019 (set) 2>&1 |
23020 case `(ac_space=' '; set | grep ac_space) 2>&1` in
23021 *ac_space=\ *)
23022 # `set' does not quote correctly, so add quotes (double-quote
23023 # substitution turns \\\\ into \\, and sed turns \\ into \).
23024 sed -n \
23025 "s/'/'\\\\''/g;
23026 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
23027 ;;
23028 *)
23029 # `set' quotes correctly as required by POSIX, so do not add quotes.
23030 sed -n \
23031 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
23032 ;;
23033 esac;
23034} |
23035 sed '
23036 t clear
23037 : clear
23038 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
23039 t end
23040 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
23041 : end' >>confcache
23042if diff $cache_file confcache >/dev/null 2>&1; then :; else
23043 if test -w $cache_file; then
23044 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
23045 cat confcache >$cache_file
23046 else
23047 echo "not updating unwritable cache $cache_file"
23048 fi
23049fi
23050rm -f confcache
23051
23052test "x$prefix" = xNONE && prefix=$ac_default_prefix
23053# Let make expand exec_prefix.
23054test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
23055
23056# VPATH may cause trouble with some makes, so we remove $(srcdir),
23057# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
23058# trailing colons and then remove the whole line if VPATH becomes empty
23059# (actually we leave an empty line to preserve line numbers).
23060if test "x$srcdir" = x.; then
23061 ac_vpsub='/^[ ]*VPATH[ ]*=/{
23062s/:*\$(srcdir):*/:/;
23063s/:*\${srcdir}:*/:/;
23064s/:*@srcdir@:*/:/;
23065s/^\([^=]*=[ ]*\):*/\1/;
23066s/:*$//;
23067s/^[^=]*=[ ]*$//;
23068}'
23069fi
23070
23071DEFS=-DHAVE_CONFIG_H
23072
23073ac_libobjs=
23074ac_ltlibobjs=
23075for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
23076 # 1. Remove the extension, and $U if already installed.
23077 ac_i=`echo "$ac_i" |
23078 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
23079 # 2. Add them.
23080 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
23081 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
23082done
23083LIBOBJS=$ac_libobjs
23084
23085LTLIBOBJS=$ac_ltlibobjs
23086
23087
23088
23089: ${CONFIG_STATUS=./config.status}
23090ac_clean_files_save=$ac_clean_files
23091ac_clean_files="$ac_clean_files $CONFIG_STATUS"
23092{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
23093echo "$as_me: creating $CONFIG_STATUS" >&6;}
23094cat >$CONFIG_STATUS <<_ACEOF
23095#! $SHELL
23096# Generated by $as_me.
23097# Run this file to recreate the current configuration.
23098# Compiler output produced by configure, useful for debugging
23099# configure, is in config.log if it exists.
23100
23101debug=false
23102ac_cs_recheck=false
23103ac_cs_silent=false
23104SHELL=\${CONFIG_SHELL-$SHELL}
23105_ACEOF
23106
23107cat >>$CONFIG_STATUS <<\_ACEOF
23108## --------------------- ##
23109## M4sh Initialization. ##
23110## --------------------- ##
23111
23112# Be Bourne compatible
23113if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
23114 emulate sh
23115 NULLCMD=:
23116 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
23117 # is contrary to our usage. Disable this feature.
23118 alias -g '${1+"$@"}'='"$@"'
23119elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
23120 set -o posix
23121fi
23122DUALCASE=1; export DUALCASE # for MKS sh
23123
23124# Support unset when possible.
23125if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
23126 as_unset=unset
23127else
23128 as_unset=false
23129fi
23130
23131
23132# Work around bugs in pre-3.0 UWIN ksh.
23133$as_unset ENV MAIL MAILPATH
23134PS1='$ '
23135PS2='> '
23136PS4='+ '
23137
23138# NLS nuisances.
23139for as_var in \
23140 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
23141 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
23142 LC_TELEPHONE LC_TIME
23143do
23144 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
23145 eval $as_var=C; export $as_var
23146 else
23147 $as_unset $as_var
23148 fi
23149done
23150
23151# Required to use basename.
23152if expr a : '\(a\)' >/dev/null 2>&1; then
23153 as_expr=expr
23154else
23155 as_expr=false
23156fi
23157
23158if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
23159 as_basename=basename
23160else
23161 as_basename=false
23162fi
23163
23164
23165# Name of the executable.
23166as_me=`$as_basename "$0" ||
23167$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23168 X"$0" : 'X\(//\)$' \| \
23169 X"$0" : 'X\(/\)$' \| \
23170 . : '\(.\)' 2>/dev/null ||
23171echo X/"$0" |
23172 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
23173 /^X\/\(\/\/\)$/{ s//\1/; q; }
23174 /^X\/\(\/\).*/{ s//\1/; q; }
23175 s/.*/./; q'`
23176
23177
23178# PATH needs CR, and LINENO needs CR and PATH.
23179# Avoid depending upon Character Ranges.
23180as_cr_letters='abcdefghijklmnopqrstuvwxyz'
23181as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23182as_cr_Letters=$as_cr_letters$as_cr_LETTERS
23183as_cr_digits='0123456789'
23184as_cr_alnum=$as_cr_Letters$as_cr_digits
23185
23186# The user is always right.
23187if test "${PATH_SEPARATOR+set}" != set; then
23188 echo "#! /bin/sh" >conf$$.sh
23189 echo "exit 0" >>conf$$.sh
23190 chmod +x conf$$.sh
23191 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
23192 PATH_SEPARATOR=';'
23193 else
23194 PATH_SEPARATOR=:
23195 fi
23196 rm -f conf$$.sh
23197fi
23198
23199
23200 as_lineno_1=$LINENO
23201 as_lineno_2=$LINENO
23202 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
23203 test "x$as_lineno_1" != "x$as_lineno_2" &&
23204 test "x$as_lineno_3" = "x$as_lineno_2" || {
23205 # Find who we are. Look in the path if we contain no path at all
23206 # relative or not.
23207 case $0 in
23208 *[\\/]* ) as_myself=$0 ;;
23209 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23210for as_dir in $PATH
23211do
23212 IFS=$as_save_IFS
23213 test -z "$as_dir" && as_dir=.
23214 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
23215done
23216
23217 ;;
23218 esac
23219 # We did not find ourselves, most probably we were run as `sh COMMAND'
23220 # in which case we are not to be found in the path.
23221 if test "x$as_myself" = x; then
23222 as_myself=$0
23223 fi
23224 if test ! -f "$as_myself"; then
23225 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
23226echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
23227 { (exit 1); exit 1; }; }
23228 fi
23229 case $CONFIG_SHELL in
23230 '')
23231 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23232for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
23233do
23234 IFS=$as_save_IFS
23235 test -z "$as_dir" && as_dir=.
23236 for as_base in sh bash ksh sh5; do
23237 case $as_dir in
23238 /*)
23239 if ("$as_dir/$as_base" -c '
23240 as_lineno_1=$LINENO
23241 as_lineno_2=$LINENO
23242 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
23243 test "x$as_lineno_1" != "x$as_lineno_2" &&
23244 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
23245 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
23246 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
23247 CONFIG_SHELL=$as_dir/$as_base
23248 export CONFIG_SHELL
23249 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
23250 fi;;
23251 esac
23252 done
23253done
23254;;
23255 esac
23256
23257 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
23258 # uniformly replaced by the line number. The first 'sed' inserts a
23259 # line-number line before each line; the second 'sed' does the real
23260 # work. The second script uses 'N' to pair each line-number line
23261 # with the numbered line, and appends trailing '-' during
23262 # substitution so that $LINENO is not a special case at line end.
23263 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
23264 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
23265 sed '=' <$as_myself |
23266 sed '
23267 N
23268 s,$,-,
23269 : loop
23270 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
23271 t loop
23272 s,-$,,
23273 s,^['$as_cr_digits']*\n,,
23274 ' >$as_me.lineno &&
23275 chmod +x $as_me.lineno ||
23276 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
23277echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
23278 { (exit 1); exit 1; }; }
23279
23280 # Don't try to exec as it changes $[0], causing all sort of problems
23281 # (the dirname of $[0] is not the place where we might find the
23282 # original and so on. Autoconf is especially sensible to this).
23283 . ./$as_me.lineno
23284 # Exit status is that of the last command.
23285 exit
23286}
23287
23288
23289case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
23290 *c*,-n*) ECHO_N= ECHO_C='
23291' ECHO_T=' ' ;;
23292 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
23293 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
23294esac
23295
23296if expr a : '\(a\)' >/dev/null 2>&1; then
23297 as_expr=expr
23298else
23299 as_expr=false
23300fi
23301
23302rm -f conf$$ conf$$.exe conf$$.file
23303echo >conf$$.file
23304if ln -s conf$$.file conf$$ 2>/dev/null; then
23305 # We could just check for DJGPP; but this test a) works b) is more generic
23306 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
23307 if test -f conf$$.exe; then
23308 # Don't use ln at all; we don't have any links
23309 as_ln_s='cp -p'
23310 else
23311 as_ln_s='ln -s'
23312 fi
23313elif ln conf$$.file conf$$ 2>/dev/null; then
23314 as_ln_s=ln
23315else
23316 as_ln_s='cp -p'
23317fi
23318rm -f conf$$ conf$$.exe conf$$.file
23319
23320if mkdir -p . 2>/dev/null; then
23321 as_mkdir_p=:
23322else
23323 test -d ./-p && rmdir ./-p
23324 as_mkdir_p=false
23325fi
23326
23327as_executable_p="test -f"
23328
23329# Sed expression to map a string onto a valid CPP name.
23330as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
23331
23332# Sed expression to map a string onto a valid variable name.
23333as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
23334
23335
23336# IFS
23337# We need space, tab and new line, in precisely that order.
23338as_nl='
23339'
23340IFS=" $as_nl"
23341
23342# CDPATH.
23343$as_unset CDPATH
23344
23345exec 6>&1
23346
23347# Open the log real soon, to keep \$[0] and so on meaningful, and to
23348# report actual input values of CONFIG_FILES etc. instead of their
23349# values after options handling. Logging --version etc. is OK.
23350exec 5>>config.log
23351{
23352 echo
23353 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23354## Running $as_me. ##
23355_ASBOX
23356} >&5
23357cat >&5 <<_CSEOF
23358
23359This file was extended by $as_me, which was
23360generated by GNU Autoconf 2.59. Invocation command line was
23361
23362 CONFIG_FILES = $CONFIG_FILES
23363 CONFIG_HEADERS = $CONFIG_HEADERS
23364 CONFIG_LINKS = $CONFIG_LINKS
23365 CONFIG_COMMANDS = $CONFIG_COMMANDS
23366 $ $0 $@
23367
23368_CSEOF
23369echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
23370echo >&5
23371_ACEOF
23372
23373# Files that config.status was made for.
23374if test -n "$ac_config_files"; then
23375 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
23376fi
23377
23378if test -n "$ac_config_headers"; then
23379 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
23380fi
23381
23382if test -n "$ac_config_links"; then
23383 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
23384fi
23385
23386if test -n "$ac_config_commands"; then
23387 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
23388fi
23389
23390cat >>$CONFIG_STATUS <<\_ACEOF
23391
23392ac_cs_usage="\
23393\`$as_me' instantiates files from templates according to the
23394current configuration.
23395
23396Usage: $0 [OPTIONS] [FILE]...
23397
23398 -h, --help print this help, then exit
23399 -V, --version print version number, then exit
23400 -q, --quiet do not print progress messages
23401 -d, --debug don't remove temporary files
23402 --recheck update $as_me by reconfiguring in the same conditions
23403 --file=FILE[:TEMPLATE]
23404 instantiate the configuration file FILE
23405 --header=FILE[:TEMPLATE]
23406 instantiate the configuration header FILE
23407
23408Configuration files:
23409$config_files
23410
23411Configuration headers:
23412$config_headers
23413
23414Configuration commands:
23415$config_commands
23416
23417Report bugs to <bug-autoconf@gnu.org>."
23418_ACEOF
23419
23420cat >>$CONFIG_STATUS <<_ACEOF
23421ac_cs_version="\\
23422config.status
23423configured by $0, generated by GNU Autoconf 2.59,
23424 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
23425
23426Copyright (C) 2003 Free Software Foundation, Inc.
23427This config.status script is free software; the Free Software Foundation
23428gives unlimited permission to copy, distribute and modify it."
23429srcdir=$srcdir
23430INSTALL="$INSTALL"
23431_ACEOF
23432
23433cat >>$CONFIG_STATUS <<\_ACEOF
23434# If no file are specified by the user, then we need to provide default
23435# value. By we need to know if files were specified by the user.
23436ac_need_defaults=:
23437while test $# != 0
23438do
23439 case $1 in
23440 --*=*)
23441 ac_option=`expr "x$1" : 'x\([^=]*\)='`
23442 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
23443 ac_shift=:
23444 ;;
23445 -*)
23446 ac_option=$1
23447 ac_optarg=$2
23448 ac_shift=shift
23449 ;;
23450 *) # This is not an option, so the user has probably given explicit
23451 # arguments.
23452 ac_option=$1
23453 ac_need_defaults=false;;
23454 esac
23455
23456 case $ac_option in
23457 # Handling of the options.
23458_ACEOF
23459cat >>$CONFIG_STATUS <<\_ACEOF
23460 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23461 ac_cs_recheck=: ;;
23462 --version | --vers* | -V )
23463 echo "$ac_cs_version"; exit 0 ;;
23464 --he | --h)
23465 # Conflict between --help and --header
23466 { { echo "$as_me:$LINENO: error: ambiguous option: $1
23467Try \`$0 --help' for more information." >&5
23468echo "$as_me: error: ambiguous option: $1
23469Try \`$0 --help' for more information." >&2;}
23470 { (exit 1); exit 1; }; };;
23471 --help | --hel | -h )
23472 echo "$ac_cs_usage"; exit 0 ;;
23473 --debug | --d* | -d )
23474 debug=: ;;
23475 --file | --fil | --fi | --f )
23476 $ac_shift
23477 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
23478 ac_need_defaults=false;;
23479 --header | --heade | --head | --hea )
23480 $ac_shift
23481 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
23482 ac_need_defaults=false;;
23483 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
23484 | -silent | --silent | --silen | --sile | --sil | --si | --s)
23485 ac_cs_silent=: ;;
23486
23487 # This is an error.
23488 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
23489Try \`$0 --help' for more information." >&5
23490echo "$as_me: error: unrecognized option: $1
23491Try \`$0 --help' for more information." >&2;}
23492 { (exit 1); exit 1; }; } ;;
23493
23494 *) ac_config_targets="$ac_config_targets $1" ;;
23495
23496 esac
23497 shift
23498done
23499
23500ac_configure_extra_args=
23501
23502if $ac_cs_silent; then
23503 exec 6>/dev/null
23504 ac_configure_extra_args="$ac_configure_extra_args --silent"
23505fi
23506
23507_ACEOF
23508cat >>$CONFIG_STATUS <<_ACEOF
23509if \$ac_cs_recheck; then
23510 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
23511 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23512fi
23513
23514_ACEOF
23515
23516cat >>$CONFIG_STATUS <<_ACEOF
23517#
23518# INIT-COMMANDS section.
23519#
23520
23521GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS"
23522
23523_ACEOF
23524
23525
23526
23527cat >>$CONFIG_STATUS <<\_ACEOF
23528for ac_config_target in $ac_config_targets
23529do
23530 case "$ac_config_target" in
23531 # Handling of arguments.
23532 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
23533 "lib-src/Makefile.c" ) CONFIG_FILES="$CONFIG_FILES lib-src/Makefile.c:lib-src/Makefile.in" ;;
23534 "oldXMenu/Makefile" ) CONFIG_FILES="$CONFIG_FILES oldXMenu/Makefile" ;;
23535 "man/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
23536 "lwlib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lwlib/Makefile" ;;
23537 "src/Makefile.c" ) CONFIG_FILES="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;;
23538 "lisp/Makefile" ) CONFIG_FILES="$CONFIG_FILES lisp/Makefile" ;;
23539 "lispref/Makefile" ) CONFIG_FILES="$CONFIG_FILES lispref/Makefile" ;;
23540 "lispintro/Makefile" ) CONFIG_FILES="$CONFIG_FILES lispintro/Makefile" ;;
23541 "leim/Makefile" ) CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;;
23542 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
23543 "src/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:src/config.in" ;;
23544 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
23545echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
23546 { (exit 1); exit 1; }; };;
23547 esac
23548done
23549
23550# If the user did not use the arguments to specify the items to instantiate,
23551# then the envvar interface is used. Set only those that are not.
23552# We use the long form for the default assignment because of an extremely
23553# bizarre bug on SunOS 4.1.3.
23554if $ac_need_defaults; then
23555 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23556 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
23557 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
23558fi
23559
23560# Have a temporary directory for convenience. Make it in the build tree
23561# simply because there is no reason to put it here, and in addition,
23562# creating and moving files from /tmp can sometimes cause problems.
23563# Create a temporary directory, and hook for its removal unless debugging.
23564$debug ||
23565{
23566 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
23567 trap '{ (exit 1); exit 1; }' 1 2 13 15
23568}
23569
23570# Create a (secure) tmp directory for tmp files.
23571
23572{
23573 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
23574 test -n "$tmp" && test -d "$tmp"
23575} ||
23576{
23577 tmp=./confstat$$-$RANDOM
23578 (umask 077 && mkdir $tmp)
23579} ||
23580{
23581 echo "$me: cannot create a temporary directory in ." >&2
23582 { (exit 1); exit 1; }
23583}
23584
23585_ACEOF
23586
23587cat >>$CONFIG_STATUS <<_ACEOF
23588
23589#
23590# CONFIG_FILES section.
23591#
23592
23593# No need to generate the scripts if there are no CONFIG_FILES.
23594# This happens for instance when ./config.status config.h
23595if test -n "\$CONFIG_FILES"; then
23596 # Protect against being on the right side of a sed subst in config.status.
23597 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
23598 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
23599s,@SHELL@,$SHELL,;t t
23600s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
23601s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
23602s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
23603s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
23604s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
23605s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
23606s,@exec_prefix@,$exec_prefix,;t t
23607s,@prefix@,$prefix,;t t
23608s,@program_transform_name@,$program_transform_name,;t t
23609s,@bindir@,$bindir,;t t
23610s,@sbindir@,$sbindir,;t t
23611s,@libexecdir@,$libexecdir,;t t
23612s,@datadir@,$datadir,;t t
23613s,@sysconfdir@,$sysconfdir,;t t
23614s,@sharedstatedir@,$sharedstatedir,;t t
23615s,@localstatedir@,$localstatedir,;t t
23616s,@libdir@,$libdir,;t t
23617s,@includedir@,$includedir,;t t
23618s,@oldincludedir@,$oldincludedir,;t t
23619s,@infodir@,$infodir,;t t
23620s,@mandir@,$mandir,;t t
23621s,@build_alias@,$build_alias,;t t
23622s,@host_alias@,$host_alias,;t t
23623s,@target_alias@,$target_alias,;t t
23624s,@DEFS@,$DEFS,;t t
23625s,@ECHO_C@,$ECHO_C,;t t
23626s,@ECHO_N@,$ECHO_N,;t t
23627s,@ECHO_T@,$ECHO_T,;t t
23628s,@LIBS@,$LIBS,;t t
23629s,@MAINT@,$MAINT,;t t
23630s,@build@,$build,;t t
23631s,@build_cpu@,$build_cpu,;t t
23632s,@build_vendor@,$build_vendor,;t t
23633s,@build_os@,$build_os,;t t
23634s,@host@,$host,;t t
23635s,@host_cpu@,$host_cpu,;t t
23636s,@host_vendor@,$host_vendor,;t t
23637s,@host_os@,$host_os,;t t
23638s,@CC@,$CC,;t t
23639s,@CFLAGS@,$CFLAGS,;t t
23640s,@LDFLAGS@,$LDFLAGS,;t t
23641s,@CPPFLAGS@,$CPPFLAGS,;t t
23642s,@ac_ct_CC@,$ac_ct_CC,;t t
23643s,@EXEEXT@,$EXEEXT,;t t
23644s,@OBJEXT@,$OBJEXT,;t t
23645s,@CPP@,$CPP,;t t
23646s,@EGREP@,$EGREP,;t t
23647s,@LN_S@,$LN_S,;t t
23648s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
23649s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
23650s,@INSTALL_DATA@,$INSTALL_DATA,;t t
23651s,@RANLIB@,$RANLIB,;t t
23652s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
23653s,@INSTALL_INFO@,$INSTALL_INFO,;t t
23654s,@GZIP_PROG@,$GZIP_PROG,;t t
23655s,@LIBSOUND@,$LIBSOUND,;t t
23656s,@SET_MAKE@,$SET_MAKE,;t t
23657s,@PKG_CONFIG@,$PKG_CONFIG,;t t
23658s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
23659s,@GTK_LIBS@,$GTK_LIBS,;t t
23660s,@ALLOCA@,$ALLOCA,;t t
23661s,@liblockfile@,$liblockfile,;t t
23662s,@LIBOBJS@,$LIBOBJS,;t t
23663s,@NEED_SETGID@,$NEED_SETGID,;t t
23664s,@KMEM_GROUP@,$KMEM_GROUP,;t t
23665s,@GETLOADAVG_LIBS@,$GETLOADAVG_LIBS,;t t
23666s,@GETOPT_H@,$GETOPT_H,;t t
23667s,@GETOPTOBJS@,$GETOPTOBJS,;t t
23668s,@version@,$version,;t t
23669s,@configuration@,$configuration,;t t
23670s,@canonical@,$canonical,;t t
23671s,@srcdir@,$srcdir,;t t
23672s,@lispdir@,$lispdir,;t t
23673s,@locallisppath@,$locallisppath,;t t
23674s,@lisppath@,$lisppath,;t t
23675s,@x_default_search_path@,$x_default_search_path,;t t
23676s,@etcdir@,$etcdir,;t t
23677s,@archlibdir@,$archlibdir,;t t
23678s,@docdir@,$docdir,;t t
23679s,@bitmapdir@,$bitmapdir,;t t
23680s,@gamedir@,$gamedir,;t t
23681s,@gameuser@,$gameuser,;t t
23682s,@c_switch_system@,$c_switch_system,;t t
23683s,@c_switch_machine@,$c_switch_machine,;t t
23684s,@LD_SWITCH_X_SITE@,$LD_SWITCH_X_SITE,;t t
23685s,@LD_SWITCH_X_SITE_AUX@,$LD_SWITCH_X_SITE_AUX,;t t
23686s,@C_SWITCH_X_SITE@,$C_SWITCH_X_SITE,;t t
23687s,@X_TOOLKIT_TYPE@,$X_TOOLKIT_TYPE,;t t
23688s,@machfile@,$machfile,;t t
23689s,@opsysfile@,$opsysfile,;t t
23690s,@carbon_appdir@,$carbon_appdir,;t t
23691s,@LTLIBOBJS@,$LTLIBOBJS,;t t
23692CEOF
23693
23694_ACEOF
23695
23696 cat >>$CONFIG_STATUS <<\_ACEOF
23697 # Split the substitutions into bite-sized pieces for seds with
23698 # small command number limits, like on Digital OSF/1 and HP-UX.
23699 ac_max_sed_lines=48
23700 ac_sed_frag=1 # Number of current file.
23701 ac_beg=1 # First line for current file.
23702 ac_end=$ac_max_sed_lines # Line after last line for current file.
23703 ac_more_lines=:
23704 ac_sed_cmds=
23705 while $ac_more_lines; do
23706 if test $ac_beg -gt 1; then
23707 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
23708 else
23709 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
23710 fi
23711 if test ! -s $tmp/subs.frag; then
23712 ac_more_lines=false
23713 else
23714 # The purpose of the label and of the branching condition is to
23715 # speed up the sed processing (if there are no `@' at all, there
23716 # is no need to browse any of the substitutions).
23717 # These are the two extra sed commands mentioned above.
23718 (echo ':t
23719 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
23720 if test -z "$ac_sed_cmds"; then
23721 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
23722 else
23723 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
23724 fi
23725 ac_sed_frag=`expr $ac_sed_frag + 1`
23726 ac_beg=$ac_end
23727 ac_end=`expr $ac_end + $ac_max_sed_lines`
23728 fi
23729 done
23730 if test -z "$ac_sed_cmds"; then
23731 ac_sed_cmds=cat
23732 fi
23733fi # test -n "$CONFIG_FILES"
23734
23735_ACEOF
23736cat >>$CONFIG_STATUS <<\_ACEOF
23737for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
23738 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23739 case $ac_file in
23740 - | *:- | *:-:* ) # input from stdin
23741 cat >$tmp/stdin
23742 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23743 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23744 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23745 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23746 * ) ac_file_in=$ac_file.in ;;
23747 esac
23748
23749 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
23750 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
23751$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23752 X"$ac_file" : 'X\(//\)[^/]' \| \
23753 X"$ac_file" : 'X\(//\)$' \| \
23754 X"$ac_file" : 'X\(/\)' \| \
23755 . : '\(.\)' 2>/dev/null ||
23756echo X"$ac_file" |
23757 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23758 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23759 /^X\(\/\/\)$/{ s//\1/; q; }
23760 /^X\(\/\).*/{ s//\1/; q; }
23761 s/.*/./; q'`
23762 { if $as_mkdir_p; then
23763 mkdir -p "$ac_dir"
23764 else
23765 as_dir="$ac_dir"
23766 as_dirs=
23767 while test ! -d "$as_dir"; do
23768 as_dirs="$as_dir $as_dirs"
23769 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23770$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23771 X"$as_dir" : 'X\(//\)[^/]' \| \
23772 X"$as_dir" : 'X\(//\)$' \| \
23773 X"$as_dir" : 'X\(/\)' \| \
23774 . : '\(.\)' 2>/dev/null ||
23775echo X"$as_dir" |
23776 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23777 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23778 /^X\(\/\/\)$/{ s//\1/; q; }
23779 /^X\(\/\).*/{ s//\1/; q; }
23780 s/.*/./; q'`
23781 done
23782 test ! -n "$as_dirs" || mkdir $as_dirs
23783 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23784echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23785 { (exit 1); exit 1; }; }; }
23786
23787 ac_builddir=.
23788
23789if test "$ac_dir" != .; then
23790 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23791 # A "../" for each directory in $ac_dir_suffix.
23792 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23793else
23794 ac_dir_suffix= ac_top_builddir=
23795fi
23796
23797case $srcdir in
23798 .) # No --srcdir option. We are building in place.
23799 ac_srcdir=.
23800 if test -z "$ac_top_builddir"; then
23801 ac_top_srcdir=.
23802 else
23803 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23804 fi ;;
23805 [\\/]* | ?:[\\/]* ) # Absolute path.
23806 ac_srcdir=$srcdir$ac_dir_suffix;
23807 ac_top_srcdir=$srcdir ;;
23808 *) # Relative path.
23809 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23810 ac_top_srcdir=$ac_top_builddir$srcdir ;;
23811esac
23812
23813# Do not use `cd foo && pwd` to compute absolute paths, because
23814# the directories may not exist.
23815case `pwd` in
23816.) ac_abs_builddir="$ac_dir";;
23817*)
23818 case "$ac_dir" in
23819 .) ac_abs_builddir=`pwd`;;
23820 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
23821 *) ac_abs_builddir=`pwd`/"$ac_dir";;
23822 esac;;
23823esac
23824case $ac_abs_builddir in
23825.) ac_abs_top_builddir=${ac_top_builddir}.;;
23826*)
23827 case ${ac_top_builddir}. in
23828 .) ac_abs_top_builddir=$ac_abs_builddir;;
23829 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
23830 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
23831 esac;;
23832esac
23833case $ac_abs_builddir in
23834.) ac_abs_srcdir=$ac_srcdir;;
23835*)
23836 case $ac_srcdir in
23837 .) ac_abs_srcdir=$ac_abs_builddir;;
23838 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
23839 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
23840 esac;;
23841esac
23842case $ac_abs_builddir in
23843.) ac_abs_top_srcdir=$ac_top_srcdir;;
23844*)
23845 case $ac_top_srcdir in
23846 .) ac_abs_top_srcdir=$ac_abs_builddir;;
23847 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
23848 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
23849 esac;;
23850esac
23851
23852
23853 case $INSTALL in
23854 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
23855 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
23856 esac
23857
23858 if test x"$ac_file" != x-; then
23859 { echo "$as_me:$LINENO: creating $ac_file" >&5
23860echo "$as_me: creating $ac_file" >&6;}
23861 rm -f "$ac_file"
23862 fi
23863 # Let's still pretend it is `configure' which instantiates (i.e., don't
23864 # use $as_me), people would be surprised to read:
23865 # /* config.h. Generated by config.status. */
23866 if test x"$ac_file" = x-; then
23867 configure_input=
23868 else
23869 configure_input="$ac_file. "
23870 fi
23871 configure_input=$configure_input"Generated from `echo $ac_file_in |
23872 sed 's,.*/,,'` by configure."
23873
23874 # First look for the input files in the build tree, otherwise in the
23875 # src tree.
23876 ac_file_inputs=`IFS=:
23877 for f in $ac_file_in; do
23878 case $f in
23879 -) echo $tmp/stdin ;;
23880 [\\/$]*)
23881 # Absolute (can't be DOS-style, as IFS=:)
23882 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23883echo "$as_me: error: cannot find input file: $f" >&2;}
23884 { (exit 1); exit 1; }; }
23885 echo "$f";;
23886 *) # Relative
23887 if test -f "$f"; then
23888 # Build tree
23889 echo "$f"
23890 elif test -f "$srcdir/$f"; then
23891 # Source tree
23892 echo "$srcdir/$f"
23893 else
23894 # /dev/null tree
23895 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23896echo "$as_me: error: cannot find input file: $f" >&2;}
23897 { (exit 1); exit 1; }; }
23898 fi;;
23899 esac
23900 done` || { (exit 1); exit 1; }
23901_ACEOF
23902cat >>$CONFIG_STATUS <<_ACEOF
23903 sed "$ac_vpsub
23904$extrasub
23905_ACEOF
23906cat >>$CONFIG_STATUS <<\_ACEOF
23907:t
23908/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23909s,@configure_input@,$configure_input,;t t
23910s,@srcdir@,$ac_srcdir,;t t
23911s,@abs_srcdir@,$ac_abs_srcdir,;t t
23912s,@top_srcdir@,$ac_top_srcdir,;t t
23913s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
23914s,@builddir@,$ac_builddir,;t t
23915s,@abs_builddir@,$ac_abs_builddir,;t t
23916s,@top_builddir@,$ac_top_builddir,;t t
23917s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
23918s,@INSTALL@,$ac_INSTALL,;t t
23919" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
23920 rm -f $tmp/stdin
23921 if test x"$ac_file" != x-; then
23922 mv $tmp/out $ac_file
23923 else
23924 cat $tmp/out
23925 rm -f $tmp/out
23926 fi
23927
23928done
23929_ACEOF
23930cat >>$CONFIG_STATUS <<\_ACEOF
23931
23932#
23933# CONFIG_HEADER section.
23934#
23935
23936# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
23937# NAME is the cpp macro being defined and VALUE is the value it is being given.
23938#
23939# ac_d sets the value in "#define NAME VALUE" lines.
23940ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
23941ac_dB='[ ].*$,\1#\2'
23942ac_dC=' '
23943ac_dD=',;t'
23944# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
23945ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
23946ac_uB='$,\1#\2define\3'
23947ac_uC=' '
23948ac_uD=',;t'
23949
23950for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
23951 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23952 case $ac_file in
23953 - | *:- | *:-:* ) # input from stdin
23954 cat >$tmp/stdin
23955 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23956 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23957 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23958 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23959 * ) ac_file_in=$ac_file.in ;;
23960 esac
23961
23962 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
23963echo "$as_me: creating $ac_file" >&6;}
23964
23965 # First look for the input files in the build tree, otherwise in the
23966 # src tree.
23967 ac_file_inputs=`IFS=:
23968 for f in $ac_file_in; do
23969 case $f in
23970 -) echo $tmp/stdin ;;
23971 [\\/$]*)
23972 # Absolute (can't be DOS-style, as IFS=:)
23973 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23974echo "$as_me: error: cannot find input file: $f" >&2;}
23975 { (exit 1); exit 1; }; }
23976 # Do quote $f, to prevent DOS paths from being IFS'd.
23977 echo "$f";;
23978 *) # Relative
23979 if test -f "$f"; then
23980 # Build tree
23981 echo "$f"
23982 elif test -f "$srcdir/$f"; then
23983 # Source tree
23984 echo "$srcdir/$f"
23985 else
23986 # /dev/null tree
23987 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23988echo "$as_me: error: cannot find input file: $f" >&2;}
23989 { (exit 1); exit 1; }; }
23990 fi;;
23991 esac
23992 done` || { (exit 1); exit 1; }
23993 # Remove the trailing spaces.
23994 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
23995
23996_ACEOF
23997
23998# Transform confdefs.h into two sed scripts, `conftest.defines' and
23999# `conftest.undefs', that substitutes the proper values into
24000# config.h.in to produce config.h. The first handles `#define'
24001# templates, and the second `#undef' templates.
24002# And first: Protect against being on the right side of a sed subst in
24003# config.status. Protect against being in an unquoted here document
24004# in config.status.
24005rm -f conftest.defines conftest.undefs
24006# Using a here document instead of a string reduces the quoting nightmare.
24007# Putting comments in sed scripts is not portable.
24008#
24009# `end' is used to avoid that the second main sed command (meant for
24010# 0-ary CPP macros) applies to n-ary macro definitions.
24011# See the Autoconf documentation for `clear'.
24012cat >confdef2sed.sed <<\_ACEOF
24013s/[\\&,]/\\&/g
24014s,[\\$`],\\&,g
24015t clear
24016: clear
24017s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
24018t end
24019s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
24020: end
24021_ACEOF
24022# If some macros were called several times there might be several times
24023# the same #defines, which is useless. Nevertheless, we may not want to
24024# sort them, since we want the *last* AC-DEFINE to be honored.
24025uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
24026sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
24027rm -f confdef2sed.sed
24028
24029# This sed command replaces #undef with comments. This is necessary, for
24030# example, in the case of _POSIX_SOURCE, which is predefined and required
24031# on some systems where configure will not decide to define it.
24032cat >>conftest.undefs <<\_ACEOF
24033s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
24034_ACEOF
24035
24036# Break up conftest.defines because some shells have a limit on the size
24037# of here documents, and old seds have small limits too (100 cmds).
24038echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
24039echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
24040echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
24041echo ' :' >>$CONFIG_STATUS
24042rm -f conftest.tail
24043while grep . conftest.defines >/dev/null
24044do
24045 # Write a limited-size here document to $tmp/defines.sed.
24046 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
24047 # Speed up: don't consider the non `#define' lines.
24048 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
24049 # Work around the forget-to-reset-the-flag bug.
24050 echo 't clr' >>$CONFIG_STATUS
24051 echo ': clr' >>$CONFIG_STATUS
24052 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
24053 echo 'CEOF
24054 sed -f $tmp/defines.sed $tmp/in >$tmp/out
24055 rm -f $tmp/in
24056 mv $tmp/out $tmp/in
24057' >>$CONFIG_STATUS
24058 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
24059 rm -f conftest.defines
24060 mv conftest.tail conftest.defines
24061done
24062rm -f conftest.defines
24063echo ' fi # grep' >>$CONFIG_STATUS
24064echo >>$CONFIG_STATUS
24065
24066# Break up conftest.undefs because some shells have a limit on the size
24067# of here documents, and old seds have small limits too (100 cmds).
24068echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
24069rm -f conftest.tail
24070while grep . conftest.undefs >/dev/null
24071do
24072 # Write a limited-size here document to $tmp/undefs.sed.
24073 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
24074 # Speed up: don't consider the non `#undef'
24075 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
24076 # Work around the forget-to-reset-the-flag bug.
24077 echo 't clr' >>$CONFIG_STATUS
24078 echo ': clr' >>$CONFIG_STATUS
24079 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
24080 echo 'CEOF
24081 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
24082 rm -f $tmp/in
24083 mv $tmp/out $tmp/in
24084' >>$CONFIG_STATUS
24085 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
24086 rm -f conftest.undefs
24087 mv conftest.tail conftest.undefs
24088done
24089rm -f conftest.undefs
24090
24091cat >>$CONFIG_STATUS <<\_ACEOF
24092 # Let's still pretend it is `configure' which instantiates (i.e., don't
24093 # use $as_me), people would be surprised to read:
24094 # /* config.h. Generated by config.status. */
24095 if test x"$ac_file" = x-; then
24096 echo "/* Generated by configure. */" >$tmp/config.h
24097 else
24098 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
24099 fi
24100 cat $tmp/in >>$tmp/config.h
24101 rm -f $tmp/in
24102 if test x"$ac_file" != x-; then
24103 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
24104 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
24105echo "$as_me: $ac_file is unchanged" >&6;}
24106 else
24107 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
24108$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24109 X"$ac_file" : 'X\(//\)[^/]' \| \
24110 X"$ac_file" : 'X\(//\)$' \| \
24111 X"$ac_file" : 'X\(/\)' \| \
24112 . : '\(.\)' 2>/dev/null ||
24113echo X"$ac_file" |
24114 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24115 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24116 /^X\(\/\/\)$/{ s//\1/; q; }
24117 /^X\(\/\).*/{ s//\1/; q; }
24118 s/.*/./; q'`
24119 { if $as_mkdir_p; then
24120 mkdir -p "$ac_dir"
24121 else
24122 as_dir="$ac_dir"
24123 as_dirs=
24124 while test ! -d "$as_dir"; do
24125 as_dirs="$as_dir $as_dirs"
24126 as_dir=`(dirname "$as_dir") 2>/dev/null ||
24127$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24128 X"$as_dir" : 'X\(//\)[^/]' \| \
24129 X"$as_dir" : 'X\(//\)$' \| \
24130 X"$as_dir" : 'X\(/\)' \| \
24131 . : '\(.\)' 2>/dev/null ||
24132echo X"$as_dir" |
24133 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24134 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24135 /^X\(\/\/\)$/{ s//\1/; q; }
24136 /^X\(\/\).*/{ s//\1/; q; }
24137 s/.*/./; q'`
24138 done
24139 test ! -n "$as_dirs" || mkdir $as_dirs
24140 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24141echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24142 { (exit 1); exit 1; }; }; }
24143
24144 rm -f $ac_file
24145 mv $tmp/config.h $ac_file
24146 fi
24147 else
24148 cat $tmp/config.h
24149 rm -f $tmp/config.h
24150 fi
24151done
24152_ACEOF
24153cat >>$CONFIG_STATUS <<\_ACEOF
24154
24155#
24156# CONFIG_COMMANDS section.
24157#
24158for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
24159 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
24160 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
24161 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
24162$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24163 X"$ac_dest" : 'X\(//\)[^/]' \| \
24164 X"$ac_dest" : 'X\(//\)$' \| \
24165 X"$ac_dest" : 'X\(/\)' \| \
24166 . : '\(.\)' 2>/dev/null ||
24167echo X"$ac_dest" |
24168 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24169 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24170 /^X\(\/\/\)$/{ s//\1/; q; }
24171 /^X\(\/\).*/{ s//\1/; q; }
24172 s/.*/./; q'`
24173 { if $as_mkdir_p; then
24174 mkdir -p "$ac_dir"
24175 else
24176 as_dir="$ac_dir"
24177 as_dirs=
24178 while test ! -d "$as_dir"; do
24179 as_dirs="$as_dir $as_dirs"
24180 as_dir=`(dirname "$as_dir") 2>/dev/null ||
24181$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24182 X"$as_dir" : 'X\(//\)[^/]' \| \
24183 X"$as_dir" : 'X\(//\)$' \| \
24184 X"$as_dir" : 'X\(/\)' \| \
24185 . : '\(.\)' 2>/dev/null ||
24186echo X"$as_dir" |
24187 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24188 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24189 /^X\(\/\/\)$/{ s//\1/; q; }
24190 /^X\(\/\).*/{ s//\1/; q; }
24191 s/.*/./; q'`
24192 done
24193 test ! -n "$as_dirs" || mkdir $as_dirs
24194 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24195echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24196 { (exit 1); exit 1; }; }; }
24197
24198 ac_builddir=.
24199
24200if test "$ac_dir" != .; then
24201 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24202 # A "../" for each directory in $ac_dir_suffix.
24203 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24204else
24205 ac_dir_suffix= ac_top_builddir=
24206fi
24207
24208case $srcdir in
24209 .) # No --srcdir option. We are building in place.
24210 ac_srcdir=.
24211 if test -z "$ac_top_builddir"; then
24212 ac_top_srcdir=.
24213 else
24214 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
24215 fi ;;
24216 [\\/]* | ?:[\\/]* ) # Absolute path.
24217 ac_srcdir=$srcdir$ac_dir_suffix;
24218 ac_top_srcdir=$srcdir ;;
24219 *) # Relative path.
24220 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
24221 ac_top_srcdir=$ac_top_builddir$srcdir ;;
24222esac
24223
24224# Do not use `cd foo && pwd` to compute absolute paths, because
24225# the directories may not exist.
24226case `pwd` in
24227.) ac_abs_builddir="$ac_dir";;
24228*)
24229 case "$ac_dir" in
24230 .) ac_abs_builddir=`pwd`;;
24231 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
24232 *) ac_abs_builddir=`pwd`/"$ac_dir";;
24233 esac;;
24234esac
24235case $ac_abs_builddir in
24236.) ac_abs_top_builddir=${ac_top_builddir}.;;
24237*)
24238 case ${ac_top_builddir}. in
24239 .) ac_abs_top_builddir=$ac_abs_builddir;;
24240 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
24241 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
24242 esac;;
24243esac
24244case $ac_abs_builddir in
24245.) ac_abs_srcdir=$ac_srcdir;;
24246*)
24247 case $ac_srcdir in
24248 .) ac_abs_srcdir=$ac_abs_builddir;;
24249 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
24250 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
24251 esac;;
24252esac
24253case $ac_abs_builddir in
24254.) ac_abs_top_srcdir=$ac_top_srcdir;;
24255*)
24256 case $ac_top_srcdir in
24257 .) ac_abs_top_srcdir=$ac_abs_builddir;;
24258 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
24259 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
24260 esac;;
24261esac
24262
24263
24264 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
24265echo "$as_me: executing $ac_dest commands" >&6;}
24266 case $ac_dest in
24267 default )
24268
24269### Make the necessary directories, if they don't exist.
24270for dir in etc lisp ; do
24271 test -d ${dir} || mkdir ${dir}
24272done
24273
24274# Build src/Makefile from ${srcdir}/src/Makefile.c
24275# and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
24276# This must be done after src/config.h is built, since we rely on that file.
24277
24278# Now get this: Some word that is part of the ${srcdir} directory name
24279# or the ${configuration} value might, just might, happen to be an
24280# identifier like `sun4' or `i386' or something, and be predefined by
24281# the C preprocessor to some helpful value like 1, or maybe the empty
24282# string. Needless to say consequent macro substitutions are less
24283# than conducive to the makefile finding the correct directory.
24284undefs="`echo $top_srcdir $configuration $canonical |
24285sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
24286 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g' \
24287`"
24288
24289echo creating src/epaths.h
24290${MAKE-make} epaths-force
24291
24292# As of 2000-11-19, newest development versions of GNU cpp preprocess
24293# `..' to `. .' unless invoked with -traditional
24294
24295if test "x$GCC" = xyes && test "x$CPP_NEED_TRADITIONAL" = xyes; then
24296 CPPFLAGS="$CPPFLAGS -traditional"
24297fi
24298
24299echo creating lib-src/Makefile
24300( cd lib-src
24301 rm -f junk.c junk1.c junk2.c
24302 sed -e '/start of cpp stuff/q' \
24303 < Makefile.c > junk1.c
24304 sed -e '1,/start of cpp stuff/d'\
24305 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
24306 < Makefile.c > junk.c
24307 $CPP $undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
24308 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
24309 cat junk1.c junk2.c > Makefile.new
24310 rm -f junk.c junk1.c junk2.c
24311 chmod 444 Makefile.new
24312 mv -f Makefile.new Makefile
24313)
24314
24315echo creating src/Makefile
24316( cd src
24317 rm -f junk.c junk1.c junk2.c
24318 sed -e '/start of cpp stuff/q' \
24319 < Makefile.c > junk1.c
24320 sed -e '1,/start of cpp stuff/d'\
24321 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
24322 < Makefile.c > junk.c
24323 $CPP $undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
24324 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
24325 cat junk1.c junk2.c > Makefile.new
24326 rm -f junk.c junk1.c junk2.c
24327 chmod 444 Makefile.new
24328 mv -f Makefile.new Makefile
24329)
24330
24331if test ! -f src/.gdbinit && test -f $srcdir/src/.gdbinit; then
24332 echo creating src/.gdbinit
24333 echo source $srcdir/src/.gdbinit > src/.gdbinit
24334fi
24335
24336# This is how we know whether to re-run configure in certain cases.
24337touch src/config.stamp
24338
24339 ;;
24340 esac
24341done
24342_ACEOF
24343
24344cat >>$CONFIG_STATUS <<\_ACEOF
24345
24346{ (exit 0); exit 0; }
24347_ACEOF
24348chmod +x $CONFIG_STATUS
24349ac_clean_files=$ac_clean_files_save
24350
24351
24352# configure is writing to config.log, and then calls config.status.
24353# config.status does its own redirection, appending to config.log.
24354# Unfortunately, on DOS this fails, as config.log is still kept open
24355# by configure, so config.status won't be able to write to it; its
24356# output is simply discarded. So we exec the FD to /dev/null,
24357# effectively closing config.log, so it can be properly (re)opened and
24358# appended to by config.status. When coming back to configure, we
24359# need to make the FD available again.
24360if test "$no_create" != yes; then
24361 ac_cs_success=:
24362 ac_config_status_args=
24363 test "$silent" = yes &&
24364 ac_config_status_args="$ac_config_status_args --quiet"
24365 exec 5>/dev/null
24366 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
24367 exec 5>>config.log
24368 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24369 # would make configure fail if this is the last instruction.
24370 $ac_cs_success || { (exit 1); exit 1; }
24371fi
24372
24373