configure revision 1.61.2.2 1 1.1 tv #! /bin/sh
2 1.1 tv # Guess values for system-dependent variables and create Makefiles.
3 1.61.2.1 pavel # Generated by Autoconf 2.52 for libnbcompat noversion.
4 1.1 tv #
5 1.41 salo # Report bugs to <lib-bug-people (at] NetBSD.org>.
6 1.1 tv #
7 1.61.2.1 pavel # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
8 1.61.2.1 pavel # Free Software Foundation, Inc.
9 1.1 tv # This configure script is free software; the Free Software Foundation
10 1.1 tv # gives unlimited permission to copy, distribute and modify it.
11 1.1 tv
12 1.1 tv # Avoid depending upon Character Ranges.
13 1.1 tv as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14 1.1 tv as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15 1.1 tv as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16 1.1 tv as_cr_digits='0123456789'
17 1.1 tv as_cr_alnum=$as_cr_Letters$as_cr_digits
18 1.1 tv
19 1.61.2.1 pavel # Sed expression to map a string onto a valid variable name.
20 1.61.2.1 pavel as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
21 1.53 dogcow
22 1.61.2.1 pavel # Sed expression to map a string onto a valid CPP name.
23 1.61.2.1 pavel as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
24 1.53 dogcow
25 1.61.2.1 pavel # Be Bourne compatible
26 1.61.2.1 pavel if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
27 1.61.2.1 pavel emulate sh
28 1.61.2.1 pavel NULLCMD=:
29 1.61.2.1 pavel elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
30 1.61.2.1 pavel set -o posix
31 1.61.2.1 pavel fi
32 1.48 jmc
33 1.61.2.1 pavel # Name of the executable.
34 1.61.2.1 pavel as_me=`echo "$0" |sed 's,.*[\\/],,'`
35 1.1 tv
36 1.1 tv if expr a : '\(a\)' >/dev/null 2>&1; then
37 1.1 tv as_expr=expr
38 1.1 tv else
39 1.1 tv as_expr=false
40 1.1 tv fi
41 1.1 tv
42 1.1 tv rm -f conf$$ conf$$.exe conf$$.file
43 1.1 tv echo >conf$$.file
44 1.1 tv if ln -s conf$$.file conf$$ 2>/dev/null; then
45 1.1 tv # We could just check for DJGPP; but this test a) works b) is more generic
46 1.1 tv # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
47 1.1 tv if test -f conf$$.exe; then
48 1.1 tv # Don't use ln at all; we don't have any links
49 1.1 tv as_ln_s='cp -p'
50 1.1 tv else
51 1.1 tv as_ln_s='ln -s'
52 1.1 tv fi
53 1.1 tv elif ln conf$$.file conf$$ 2>/dev/null; then
54 1.1 tv as_ln_s=ln
55 1.1 tv else
56 1.1 tv as_ln_s='cp -p'
57 1.1 tv fi
58 1.1 tv rm -f conf$$ conf$$.exe conf$$.file
59 1.1 tv
60 1.60 apb as_executable_p="test -f"
61 1.60 apb
62 1.61.2.1 pavel # Support unset when possible.
63 1.61.2.1 pavel if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
64 1.61.2.1 pavel as_unset=unset
65 1.61.2.1 pavel else
66 1.61.2.1 pavel as_unset=false
67 1.61.2.1 pavel fi
68 1.53 dogcow
69 1.61.2.1 pavel # NLS nuisances.
70 1.61.2.1 pavel $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
71 1.61.2.1 pavel $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
72 1.61.2.1 pavel $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
73 1.61.2.1 pavel $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
74 1.61.2.1 pavel $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
75 1.61.2.1 pavel $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
76 1.61.2.1 pavel $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
77 1.61.2.1 pavel $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
78 1.1 tv
79 1.1 tv # IFS
80 1.1 tv # We need space, tab and new line, in precisely that order.
81 1.1 tv as_nl='
82 1.1 tv '
83 1.1 tv IFS=" $as_nl"
84 1.1 tv
85 1.1 tv # CDPATH.
86 1.61.2.1 pavel $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
87 1.1 tv
88 1.1 tv # Name of the host.
89 1.1 tv # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
90 1.1 tv # so uname gets run too.
91 1.1 tv ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
92 1.1 tv
93 1.1 tv exec 6>&1
94 1.1 tv
95 1.1 tv #
96 1.1 tv # Initializations.
97 1.1 tv #
98 1.1 tv ac_default_prefix=/usr/local
99 1.1 tv cross_compiling=no
100 1.1 tv subdirs=
101 1.61.2.1 pavel MFLAGS= MAKEFLAGS=
102 1.1 tv SHELL=${CONFIG_SHELL-/bin/sh}
103 1.1 tv
104 1.1 tv # Maximum number of lines to put in a shell here document.
105 1.1 tv # This variable seems obsolete. It should probably be removed, and
106 1.1 tv # only ac_max_sed_lines should be used.
107 1.1 tv : ${ac_max_here_lines=38}
108 1.1 tv
109 1.1 tv # Factoring default headers for most tests.
110 1.1 tv ac_includes_default="\
111 1.1 tv #include <stdio.h>
112 1.1 tv #if HAVE_SYS_TYPES_H
113 1.1 tv # include <sys/types.h>
114 1.1 tv #endif
115 1.1 tv #if HAVE_SYS_STAT_H
116 1.1 tv # include <sys/stat.h>
117 1.1 tv #endif
118 1.1 tv #if STDC_HEADERS
119 1.1 tv # include <stdlib.h>
120 1.1 tv # include <stddef.h>
121 1.1 tv #else
122 1.1 tv # if HAVE_STDLIB_H
123 1.1 tv # include <stdlib.h>
124 1.1 tv # endif
125 1.1 tv #endif
126 1.1 tv #if HAVE_STRING_H
127 1.1 tv # if !STDC_HEADERS && HAVE_MEMORY_H
128 1.1 tv # include <memory.h>
129 1.1 tv # endif
130 1.1 tv # include <string.h>
131 1.1 tv #endif
132 1.1 tv #if HAVE_STRINGS_H
133 1.1 tv # include <strings.h>
134 1.1 tv #endif
135 1.1 tv #if HAVE_INTTYPES_H
136 1.1 tv # include <inttypes.h>
137 1.1 tv #else
138 1.1 tv # if HAVE_STDINT_H
139 1.1 tv # include <stdint.h>
140 1.1 tv # endif
141 1.1 tv #endif
142 1.1 tv #if HAVE_UNISTD_H
143 1.1 tv # include <unistd.h>
144 1.1 tv #endif"
145 1.1 tv
146 1.1 tv # Initialize some variables set by options.
147 1.1 tv ac_init_help=
148 1.1 tv ac_init_version=false
149 1.1 tv # The variables have the same names as the options, with
150 1.1 tv # dashes changed to underlines.
151 1.1 tv cache_file=/dev/null
152 1.1 tv exec_prefix=NONE
153 1.1 tv no_create=
154 1.1 tv no_recursion=
155 1.1 tv prefix=NONE
156 1.1 tv program_prefix=NONE
157 1.1 tv program_suffix=NONE
158 1.1 tv program_transform_name=s,x,x,
159 1.1 tv silent=
160 1.1 tv site=
161 1.1 tv srcdir=
162 1.1 tv verbose=
163 1.1 tv x_includes=NONE
164 1.1 tv x_libraries=NONE
165 1.1 tv
166 1.1 tv # Installation directory options.
167 1.1 tv # These are left unexpanded so users can "make install exec_prefix=/foo"
168 1.1 tv # and all the variables that are supposed to be based on exec_prefix
169 1.1 tv # by default will actually change.
170 1.1 tv # Use braces instead of parens because sh, perl, etc. also accept them.
171 1.1 tv bindir='${exec_prefix}/bin'
172 1.1 tv sbindir='${exec_prefix}/sbin'
173 1.1 tv libexecdir='${exec_prefix}/libexec'
174 1.1 tv datadir='${prefix}/share'
175 1.1 tv sysconfdir='${prefix}/etc'
176 1.1 tv sharedstatedir='${prefix}/com'
177 1.1 tv localstatedir='${prefix}/var'
178 1.1 tv libdir='${exec_prefix}/lib'
179 1.1 tv includedir='${prefix}/include'
180 1.1 tv oldincludedir='/usr/include'
181 1.1 tv infodir='${prefix}/info'
182 1.1 tv mandir='${prefix}/man'
183 1.1 tv
184 1.61.2.1 pavel # Identity of this package.
185 1.61.2.1 pavel PACKAGE_NAME='libnbcompat'
186 1.61.2.1 pavel PACKAGE_TARNAME='libnbcompat'
187 1.61.2.1 pavel PACKAGE_VERSION='noversion'
188 1.61.2.1 pavel PACKAGE_STRING='libnbcompat noversion'
189 1.61.2.1 pavel PACKAGE_BUGREPORT='lib-bug-people (at] NetBSD.org'
190 1.61.2.1 pavel
191 1.1 tv ac_prev=
192 1.1 tv for ac_option
193 1.1 tv do
194 1.1 tv # If the previous option needs an argument, assign it.
195 1.1 tv if test -n "$ac_prev"; then
196 1.1 tv eval "$ac_prev=\$ac_option"
197 1.1 tv ac_prev=
198 1.1 tv continue
199 1.1 tv fi
200 1.1 tv
201 1.1 tv ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
202 1.1 tv
203 1.1 tv # Accept the important Cygnus configure options, so we can diagnose typos.
204 1.1 tv
205 1.1 tv case $ac_option in
206 1.1 tv
207 1.1 tv -bindir | --bindir | --bindi | --bind | --bin | --bi)
208 1.1 tv ac_prev=bindir ;;
209 1.1 tv -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
210 1.1 tv bindir=$ac_optarg ;;
211 1.1 tv
212 1.1 tv -build | --build | --buil | --bui | --bu)
213 1.1 tv ac_prev=build_alias ;;
214 1.1 tv -build=* | --build=* | --buil=* | --bui=* | --bu=*)
215 1.1 tv build_alias=$ac_optarg ;;
216 1.1 tv
217 1.1 tv -cache-file | --cache-file | --cache-fil | --cache-fi \
218 1.1 tv | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
219 1.1 tv ac_prev=cache_file ;;
220 1.1 tv -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
221 1.1 tv | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
222 1.1 tv cache_file=$ac_optarg ;;
223 1.1 tv
224 1.1 tv --config-cache | -C)
225 1.1 tv cache_file=config.cache ;;
226 1.1 tv
227 1.1 tv -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
228 1.1 tv ac_prev=datadir ;;
229 1.1 tv -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
230 1.1 tv | --da=*)
231 1.1 tv datadir=$ac_optarg ;;
232 1.1 tv
233 1.1 tv -disable-* | --disable-*)
234 1.1 tv ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
235 1.1 tv # Reject names that are not valid shell variable names.
236 1.1 tv expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
237 1.1 tv { echo "$as_me: error: invalid feature name: $ac_feature" >&2
238 1.1 tv { (exit 1); exit 1; }; }
239 1.1 tv ac_feature=`echo $ac_feature | sed 's/-/_/g'`
240 1.1 tv eval "enable_$ac_feature=no" ;;
241 1.1 tv
242 1.1 tv -enable-* | --enable-*)
243 1.1 tv ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
244 1.1 tv # Reject names that are not valid shell variable names.
245 1.1 tv expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
246 1.1 tv { echo "$as_me: error: invalid feature name: $ac_feature" >&2
247 1.1 tv { (exit 1); exit 1; }; }
248 1.1 tv ac_feature=`echo $ac_feature | sed 's/-/_/g'`
249 1.1 tv case $ac_option in
250 1.1 tv *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
251 1.1 tv *) ac_optarg=yes ;;
252 1.1 tv esac
253 1.1 tv eval "enable_$ac_feature='$ac_optarg'" ;;
254 1.1 tv
255 1.1 tv -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
256 1.1 tv | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
257 1.1 tv | --exec | --exe | --ex)
258 1.1 tv ac_prev=exec_prefix ;;
259 1.1 tv -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
260 1.1 tv | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
261 1.1 tv | --exec=* | --exe=* | --ex=*)
262 1.1 tv exec_prefix=$ac_optarg ;;
263 1.1 tv
264 1.1 tv -gas | --gas | --ga | --g)
265 1.1 tv # Obsolete; use --with-gas.
266 1.1 tv with_gas=yes ;;
267 1.1 tv
268 1.1 tv -help | --help | --hel | --he | -h)
269 1.1 tv ac_init_help=long ;;
270 1.1 tv -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
271 1.1 tv ac_init_help=recursive ;;
272 1.1 tv -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
273 1.1 tv ac_init_help=short ;;
274 1.1 tv
275 1.1 tv -host | --host | --hos | --ho)
276 1.1 tv ac_prev=host_alias ;;
277 1.1 tv -host=* | --host=* | --hos=* | --ho=*)
278 1.1 tv host_alias=$ac_optarg ;;
279 1.1 tv
280 1.1 tv -includedir | --includedir | --includedi | --included | --include \
281 1.1 tv | --includ | --inclu | --incl | --inc)
282 1.1 tv ac_prev=includedir ;;
283 1.1 tv -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
284 1.1 tv | --includ=* | --inclu=* | --incl=* | --inc=*)
285 1.1 tv includedir=$ac_optarg ;;
286 1.1 tv
287 1.1 tv -infodir | --infodir | --infodi | --infod | --info | --inf)
288 1.1 tv ac_prev=infodir ;;
289 1.1 tv -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
290 1.1 tv infodir=$ac_optarg ;;
291 1.1 tv
292 1.1 tv -libdir | --libdir | --libdi | --libd)
293 1.1 tv ac_prev=libdir ;;
294 1.1 tv -libdir=* | --libdir=* | --libdi=* | --libd=*)
295 1.1 tv libdir=$ac_optarg ;;
296 1.1 tv
297 1.1 tv -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
298 1.1 tv | --libexe | --libex | --libe)
299 1.1 tv ac_prev=libexecdir ;;
300 1.1 tv -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
301 1.1 tv | --libexe=* | --libex=* | --libe=*)
302 1.1 tv libexecdir=$ac_optarg ;;
303 1.1 tv
304 1.1 tv -localstatedir | --localstatedir | --localstatedi | --localstated \
305 1.1 tv | --localstate | --localstat | --localsta | --localst \
306 1.1 tv | --locals | --local | --loca | --loc | --lo)
307 1.1 tv ac_prev=localstatedir ;;
308 1.1 tv -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
309 1.1 tv | --localstate=* | --localstat=* | --localsta=* | --localst=* \
310 1.1 tv | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
311 1.1 tv localstatedir=$ac_optarg ;;
312 1.1 tv
313 1.1 tv -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
314 1.1 tv ac_prev=mandir ;;
315 1.1 tv -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
316 1.1 tv mandir=$ac_optarg ;;
317 1.1 tv
318 1.1 tv -nfp | --nfp | --nf)
319 1.1 tv # Obsolete; use --without-fp.
320 1.1 tv with_fp=no ;;
321 1.1 tv
322 1.1 tv -no-create | --no-create | --no-creat | --no-crea | --no-cre \
323 1.61.2.1 pavel | --no-cr | --no-c)
324 1.1 tv no_create=yes ;;
325 1.1 tv
326 1.1 tv -no-recursion | --no-recursion | --no-recursio | --no-recursi \
327 1.1 tv | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
328 1.1 tv no_recursion=yes ;;
329 1.1 tv
330 1.1 tv -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
331 1.1 tv | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
332 1.1 tv | --oldin | --oldi | --old | --ol | --o)
333 1.1 tv ac_prev=oldincludedir ;;
334 1.1 tv -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
335 1.1 tv | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
336 1.1 tv | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
337 1.1 tv oldincludedir=$ac_optarg ;;
338 1.1 tv
339 1.1 tv -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
340 1.1 tv ac_prev=prefix ;;
341 1.1 tv -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
342 1.1 tv prefix=$ac_optarg ;;
343 1.1 tv
344 1.1 tv -program-prefix | --program-prefix | --program-prefi | --program-pref \
345 1.1 tv | --program-pre | --program-pr | --program-p)
346 1.1 tv ac_prev=program_prefix ;;
347 1.1 tv -program-prefix=* | --program-prefix=* | --program-prefi=* \
348 1.1 tv | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
349 1.1 tv program_prefix=$ac_optarg ;;
350 1.1 tv
351 1.1 tv -program-suffix | --program-suffix | --program-suffi | --program-suff \
352 1.1 tv | --program-suf | --program-su | --program-s)
353 1.1 tv ac_prev=program_suffix ;;
354 1.1 tv -program-suffix=* | --program-suffix=* | --program-suffi=* \
355 1.1 tv | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
356 1.1 tv program_suffix=$ac_optarg ;;
357 1.1 tv
358 1.1 tv -program-transform-name | --program-transform-name \
359 1.1 tv | --program-transform-nam | --program-transform-na \
360 1.1 tv | --program-transform-n | --program-transform- \
361 1.1 tv | --program-transform | --program-transfor \
362 1.1 tv | --program-transfo | --program-transf \
363 1.1 tv | --program-trans | --program-tran \
364 1.1 tv | --progr-tra | --program-tr | --program-t)
365 1.1 tv ac_prev=program_transform_name ;;
366 1.1 tv -program-transform-name=* | --program-transform-name=* \
367 1.1 tv | --program-transform-nam=* | --program-transform-na=* \
368 1.1 tv | --program-transform-n=* | --program-transform-=* \
369 1.1 tv | --program-transform=* | --program-transfor=* \
370 1.1 tv | --program-transfo=* | --program-transf=* \
371 1.1 tv | --program-trans=* | --program-tran=* \
372 1.1 tv | --progr-tra=* | --program-tr=* | --program-t=*)
373 1.1 tv program_transform_name=$ac_optarg ;;
374 1.1 tv
375 1.1 tv -q | -quiet | --quiet | --quie | --qui | --qu | --q \
376 1.1 tv | -silent | --silent | --silen | --sile | --sil)
377 1.1 tv silent=yes ;;
378 1.1 tv
379 1.1 tv -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
380 1.1 tv ac_prev=sbindir ;;
381 1.1 tv -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
382 1.1 tv | --sbi=* | --sb=*)
383 1.1 tv sbindir=$ac_optarg ;;
384 1.1 tv
385 1.1 tv -sharedstatedir | --sharedstatedir | --sharedstatedi \
386 1.1 tv | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
387 1.1 tv | --sharedst | --shareds | --shared | --share | --shar \
388 1.1 tv | --sha | --sh)
389 1.1 tv ac_prev=sharedstatedir ;;
390 1.1 tv -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
391 1.1 tv | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
392 1.1 tv | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
393 1.1 tv | --sha=* | --sh=*)
394 1.1 tv sharedstatedir=$ac_optarg ;;
395 1.1 tv
396 1.1 tv -site | --site | --sit)
397 1.1 tv ac_prev=site ;;
398 1.1 tv -site=* | --site=* | --sit=*)
399 1.1 tv site=$ac_optarg ;;
400 1.1 tv
401 1.1 tv -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
402 1.1 tv ac_prev=srcdir ;;
403 1.1 tv -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
404 1.1 tv srcdir=$ac_optarg ;;
405 1.1 tv
406 1.1 tv -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
407 1.1 tv | --syscon | --sysco | --sysc | --sys | --sy)
408 1.1 tv ac_prev=sysconfdir ;;
409 1.1 tv -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
410 1.1 tv | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
411 1.1 tv sysconfdir=$ac_optarg ;;
412 1.1 tv
413 1.1 tv -target | --target | --targe | --targ | --tar | --ta | --t)
414 1.1 tv ac_prev=target_alias ;;
415 1.1 tv -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
416 1.1 tv target_alias=$ac_optarg ;;
417 1.1 tv
418 1.1 tv -v | -verbose | --verbose | --verbos | --verbo | --verb)
419 1.1 tv verbose=yes ;;
420 1.1 tv
421 1.1 tv -version | --version | --versio | --versi | --vers | -V)
422 1.1 tv ac_init_version=: ;;
423 1.1 tv
424 1.1 tv -with-* | --with-*)
425 1.1 tv ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
426 1.1 tv # Reject names that are not valid shell variable names.
427 1.1 tv expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
428 1.1 tv { echo "$as_me: error: invalid package name: $ac_package" >&2
429 1.1 tv { (exit 1); exit 1; }; }
430 1.1 tv ac_package=`echo $ac_package| sed 's/-/_/g'`
431 1.1 tv case $ac_option in
432 1.1 tv *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
433 1.1 tv *) ac_optarg=yes ;;
434 1.1 tv esac
435 1.1 tv eval "with_$ac_package='$ac_optarg'" ;;
436 1.1 tv
437 1.1 tv -without-* | --without-*)
438 1.1 tv ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
439 1.1 tv # Reject names that are not valid shell variable names.
440 1.1 tv expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
441 1.1 tv { echo "$as_me: error: invalid package name: $ac_package" >&2
442 1.1 tv { (exit 1); exit 1; }; }
443 1.1 tv ac_package=`echo $ac_package | sed 's/-/_/g'`
444 1.1 tv eval "with_$ac_package=no" ;;
445 1.1 tv
446 1.1 tv --x)
447 1.1 tv # Obsolete; use --with-x.
448 1.1 tv with_x=yes ;;
449 1.1 tv
450 1.1 tv -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
451 1.1 tv | --x-incl | --x-inc | --x-in | --x-i)
452 1.1 tv ac_prev=x_includes ;;
453 1.1 tv -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
454 1.1 tv | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
455 1.1 tv x_includes=$ac_optarg ;;
456 1.1 tv
457 1.1 tv -x-libraries | --x-libraries | --x-librarie | --x-librari \
458 1.1 tv | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
459 1.1 tv ac_prev=x_libraries ;;
460 1.1 tv -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
461 1.1 tv | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
462 1.1 tv x_libraries=$ac_optarg ;;
463 1.1 tv
464 1.1 tv -*) { echo "$as_me: error: unrecognized option: $ac_option
465 1.1 tv Try \`$0 --help' for more information." >&2
466 1.1 tv { (exit 1); exit 1; }; }
467 1.1 tv ;;
468 1.1 tv
469 1.1 tv *=*)
470 1.1 tv ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
471 1.1 tv # Reject names that are not valid shell variable names.
472 1.1 tv expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
473 1.1 tv { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
474 1.1 tv { (exit 1); exit 1; }; }
475 1.1 tv ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
476 1.1 tv eval "$ac_envvar='$ac_optarg'"
477 1.1 tv export $ac_envvar ;;
478 1.1 tv
479 1.1 tv *)
480 1.1 tv # FIXME: should be removed in autoconf 3.0.
481 1.1 tv echo "$as_me: WARNING: you should use --build, --host, --target" >&2
482 1.1 tv expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
483 1.1 tv echo "$as_me: WARNING: invalid host type: $ac_option" >&2
484 1.1 tv : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
485 1.1 tv ;;
486 1.1 tv
487 1.1 tv esac
488 1.1 tv done
489 1.1 tv
490 1.1 tv if test -n "$ac_prev"; then
491 1.1 tv ac_option=--`echo $ac_prev | sed 's/_/-/g'`
492 1.1 tv { echo "$as_me: error: missing argument to $ac_option" >&2
493 1.1 tv { (exit 1); exit 1; }; }
494 1.1 tv fi
495 1.1 tv
496 1.1 tv # Be sure to have absolute paths.
497 1.1 tv for ac_var in exec_prefix prefix
498 1.1 tv do
499 1.1 tv eval ac_val=$`echo $ac_var`
500 1.1 tv case $ac_val in
501 1.1 tv [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
502 1.61.2.1 pavel *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
503 1.1 tv { (exit 1); exit 1; }; };;
504 1.1 tv esac
505 1.1 tv done
506 1.1 tv
507 1.1 tv # Be sure to have absolute paths.
508 1.1 tv for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
509 1.61.2.1 pavel localstatedir libdir includedir oldincludedir infodir mandir
510 1.1 tv do
511 1.1 tv eval ac_val=$`echo $ac_var`
512 1.1 tv case $ac_val in
513 1.1 tv [\\/$]* | ?:[\\/]* ) ;;
514 1.61.2.1 pavel *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
515 1.1 tv { (exit 1); exit 1; }; };;
516 1.1 tv esac
517 1.1 tv done
518 1.1 tv
519 1.1 tv # There might be people who depend on the old broken behavior: `$host'
520 1.1 tv # used to hold the argument of --host etc.
521 1.1 tv build=$build_alias
522 1.1 tv host=$host_alias
523 1.1 tv target=$target_alias
524 1.1 tv
525 1.61.2.1 pavel # FIXME: should be removed in autoconf 3.0.
526 1.1 tv if test "x$host_alias" != x; then
527 1.1 tv if test "x$build_alias" = x; then
528 1.1 tv cross_compiling=maybe
529 1.1 tv echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
530 1.1 tv If a cross compiler is detected then cross compile mode will be used." >&2
531 1.1 tv elif test "x$build_alias" != "x$host_alias"; then
532 1.1 tv cross_compiling=yes
533 1.1 tv fi
534 1.1 tv fi
535 1.1 tv
536 1.1 tv ac_tool_prefix=
537 1.1 tv test -n "$host_alias" && ac_tool_prefix=$host_alias-
538 1.1 tv
539 1.1 tv test "$silent" = yes && exec 6>/dev/null
540 1.1 tv
541 1.1 tv # Find the source files, if location was not specified.
542 1.1 tv if test -z "$srcdir"; then
543 1.1 tv ac_srcdir_defaulted=yes
544 1.1 tv # Try the directory containing this script, then its parent.
545 1.61.2.1 pavel ac_prog=$0
546 1.61.2.1 pavel ac_confdir=`echo "$ac_prog" | sed 's%[\\/][^\\/][^\\/]*$%%'`
547 1.61.2.1 pavel test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
548 1.1 tv srcdir=$ac_confdir
549 1.1 tv if test ! -r $srcdir/$ac_unique_file; then
550 1.1 tv srcdir=..
551 1.1 tv fi
552 1.1 tv else
553 1.1 tv ac_srcdir_defaulted=no
554 1.1 tv fi
555 1.1 tv if test ! -r $srcdir/$ac_unique_file; then
556 1.1 tv if test "$ac_srcdir_defaulted" = yes; then
557 1.61.2.1 pavel { echo "$as_me: error: cannot find sources in $ac_confdir or .." >&2
558 1.1 tv { (exit 1); exit 1; }; }
559 1.1 tv else
560 1.61.2.1 pavel { echo "$as_me: error: cannot find sources in $srcdir" >&2
561 1.1 tv { (exit 1); exit 1; }; }
562 1.1 tv fi
563 1.1 tv fi
564 1.1 tv srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
565 1.1 tv ac_env_build_alias_set=${build_alias+set}
566 1.1 tv ac_env_build_alias_value=$build_alias
567 1.1 tv ac_cv_env_build_alias_set=${build_alias+set}
568 1.1 tv ac_cv_env_build_alias_value=$build_alias
569 1.1 tv ac_env_host_alias_set=${host_alias+set}
570 1.1 tv ac_env_host_alias_value=$host_alias
571 1.1 tv ac_cv_env_host_alias_set=${host_alias+set}
572 1.1 tv ac_cv_env_host_alias_value=$host_alias
573 1.1 tv ac_env_target_alias_set=${target_alias+set}
574 1.1 tv ac_env_target_alias_value=$target_alias
575 1.1 tv ac_cv_env_target_alias_set=${target_alias+set}
576 1.1 tv ac_cv_env_target_alias_value=$target_alias
577 1.1 tv ac_env_CC_set=${CC+set}
578 1.1 tv ac_env_CC_value=$CC
579 1.1 tv ac_cv_env_CC_set=${CC+set}
580 1.1 tv ac_cv_env_CC_value=$CC
581 1.1 tv ac_env_CFLAGS_set=${CFLAGS+set}
582 1.1 tv ac_env_CFLAGS_value=$CFLAGS
583 1.1 tv ac_cv_env_CFLAGS_set=${CFLAGS+set}
584 1.1 tv ac_cv_env_CFLAGS_value=$CFLAGS
585 1.1 tv ac_env_LDFLAGS_set=${LDFLAGS+set}
586 1.1 tv ac_env_LDFLAGS_value=$LDFLAGS
587 1.1 tv ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
588 1.1 tv ac_cv_env_LDFLAGS_value=$LDFLAGS
589 1.1 tv ac_env_CPPFLAGS_set=${CPPFLAGS+set}
590 1.1 tv ac_env_CPPFLAGS_value=$CPPFLAGS
591 1.1 tv ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
592 1.1 tv ac_cv_env_CPPFLAGS_value=$CPPFLAGS
593 1.1 tv ac_env_CPP_set=${CPP+set}
594 1.1 tv ac_env_CPP_value=$CPP
595 1.1 tv ac_cv_env_CPP_set=${CPP+set}
596 1.1 tv ac_cv_env_CPP_value=$CPP
597 1.1 tv
598 1.1 tv #
599 1.1 tv # Report the --help message.
600 1.1 tv #
601 1.1 tv if test "$ac_init_help" = "long"; then
602 1.1 tv # Omit some internal or obsolete options to make the list less imposing.
603 1.1 tv # This message is too long to be a string in the A/UX 3.1 sh.
604 1.61.2.1 pavel cat <<EOF
605 1.1 tv \`configure' configures libnbcompat noversion to adapt to many kinds of systems.
606 1.1 tv
607 1.1 tv Usage: $0 [OPTION]... [VAR=VALUE]...
608 1.1 tv
609 1.1 tv To assign environment variables (e.g., CC, CFLAGS...), specify them as
610 1.1 tv VAR=VALUE. See below for descriptions of some of the useful variables.
611 1.1 tv
612 1.1 tv Defaults for the options are specified in brackets.
613 1.1 tv
614 1.1 tv Configuration:
615 1.1 tv -h, --help display this help and exit
616 1.1 tv --help=short display options specific to this package
617 1.1 tv --help=recursive display the short help of all the included packages
618 1.1 tv -V, --version display version information and exit
619 1.1 tv -q, --quiet, --silent do not print \`checking...' messages
620 1.1 tv --cache-file=FILE cache test results in FILE [disabled]
621 1.1 tv -C, --config-cache alias for \`--cache-file=config.cache'
622 1.1 tv -n, --no-create do not create output files
623 1.1 tv --srcdir=DIR find the sources in DIR [configure dir or \`..']
624 1.1 tv
625 1.61.2.1 pavel EOF
626 1.1 tv
627 1.61.2.1 pavel cat <<EOF
628 1.1 tv Installation directories:
629 1.1 tv --prefix=PREFIX install architecture-independent files in PREFIX
630 1.61.2.1 pavel [$ac_default_prefix]
631 1.1 tv --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
632 1.61.2.1 pavel [PREFIX]
633 1.1 tv
634 1.1 tv By default, \`make install' will install all the files in
635 1.1 tv \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
636 1.1 tv an installation prefix other than \`$ac_default_prefix' using \`--prefix',
637 1.1 tv for instance \`--prefix=\$HOME'.
638 1.1 tv
639 1.1 tv For better control, use the options below.
640 1.1 tv
641 1.1 tv Fine tuning of the installation directories:
642 1.1 tv --bindir=DIR user executables [EPREFIX/bin]
643 1.1 tv --sbindir=DIR system admin executables [EPREFIX/sbin]
644 1.1 tv --libexecdir=DIR program executables [EPREFIX/libexec]
645 1.1 tv --datadir=DIR read-only architecture-independent data [PREFIX/share]
646 1.1 tv --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
647 1.1 tv --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
648 1.1 tv --localstatedir=DIR modifiable single-machine data [PREFIX/var]
649 1.1 tv --libdir=DIR object code libraries [EPREFIX/lib]
650 1.1 tv --includedir=DIR C header files [PREFIX/include]
651 1.1 tv --oldincludedir=DIR C header files for non-gcc [/usr/include]
652 1.1 tv --infodir=DIR info documentation [PREFIX/info]
653 1.1 tv --mandir=DIR man documentation [PREFIX/man]
654 1.61.2.1 pavel EOF
655 1.1 tv
656 1.61.2.1 pavel cat <<\EOF
657 1.61.2.1 pavel EOF
658 1.1 tv fi
659 1.1 tv
660 1.1 tv if test -n "$ac_init_help"; then
661 1.1 tv case $ac_init_help in
662 1.1 tv short | recursive ) echo "Configuration of libnbcompat noversion:";;
663 1.1 tv esac
664 1.61.2.1 pavel cat <<\EOF
665 1.1 tv
666 1.1 tv Some influential environment variables:
667 1.1 tv CC C compiler command
668 1.1 tv CFLAGS C compiler flags
669 1.1 tv LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
670 1.1 tv nonstandard directory <lib dir>
671 1.1 tv CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
672 1.1 tv headers in a nonstandard directory <include dir>
673 1.1 tv CPP C preprocessor
674 1.1 tv
675 1.1 tv Use these variables to override the choices made by `configure' or to help
676 1.1 tv it to find libraries and programs with nonstandard names/locations.
677 1.1 tv
678 1.41 salo Report bugs to <lib-bug-people (at] NetBSD.org>.
679 1.61.2.1 pavel EOF
680 1.1 tv fi
681 1.1 tv
682 1.1 tv if test "$ac_init_help" = "recursive"; then
683 1.1 tv # If there are subdirs, report their specific --help.
684 1.1 tv ac_popdir=`pwd`
685 1.61.2.1 pavel for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue
686 1.61.2.1 pavel cd $ac_subdir
687 1.61.2.1 pavel # A "../" for each directory in /$ac_subdir.
688 1.61.2.1 pavel ac_dots=`echo $ac_subdir |
689 1.61.2.1 pavel sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
690 1.61.2.1 pavel
691 1.61.2.1 pavel case $srcdir in
692 1.61.2.1 pavel .) # No --srcdir option. We are building in place.
693 1.61.2.1 pavel ac_sub_srcdir=$srcdir ;;
694 1.61.2.1 pavel [\\/]* | ?:[\\/]* ) # Absolute path.
695 1.61.2.1 pavel ac_sub_srcdir=$srcdir/$ac_subdir ;;
696 1.61.2.1 pavel *) # Relative path.
697 1.61.2.1 pavel ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;;
698 1.61.2.1 pavel esac
699 1.1 tv
700 1.1 tv # Check for guested configure; otherwise get Cygnus style configure.
701 1.61.2.1 pavel if test -f $ac_sub_srcdir/configure.gnu; then
702 1.1 tv echo
703 1.61.2.1 pavel $SHELL $ac_sub_srcdir/configure.gnu --help=recursive
704 1.61.2.1 pavel elif test -f $ac_sub_srcdir/configure; then
705 1.1 tv echo
706 1.61.2.1 pavel $SHELL $ac_sub_srcdir/configure --help=recursive
707 1.61.2.1 pavel elif test -f $ac_sub_srcdir/configure.ac ||
708 1.61.2.1 pavel test -f $ac_sub_srcdir/configure.in; then
709 1.1 tv echo
710 1.1 tv $ac_configure --help
711 1.1 tv else
712 1.61.2.1 pavel echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2
713 1.1 tv fi
714 1.1 tv cd $ac_popdir
715 1.1 tv done
716 1.1 tv fi
717 1.1 tv
718 1.1 tv test -n "$ac_init_help" && exit 0
719 1.1 tv if $ac_init_version; then
720 1.61.2.1 pavel cat <<\EOF
721 1.1 tv libnbcompat configure noversion
722 1.61.2.1 pavel generated by GNU Autoconf 2.52
723 1.1 tv
724 1.61.2.1 pavel Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
725 1.61.2.1 pavel Free Software Foundation, Inc.
726 1.1 tv This configure script is free software; the Free Software Foundation
727 1.1 tv gives unlimited permission to copy, distribute and modify it.
728 1.61.2.1 pavel EOF
729 1.1 tv exit 0
730 1.1 tv fi
731 1.1 tv exec 5>config.log
732 1.61.2.1 pavel cat >&5 <<EOF
733 1.1 tv This file contains any messages produced by compilers while
734 1.1 tv running configure, to aid debugging if configure makes a mistake.
735 1.1 tv
736 1.1 tv It was created by libnbcompat $as_me noversion, which was
737 1.61.2.1 pavel generated by GNU Autoconf 2.52. Invocation command line was
738 1.1 tv
739 1.1 tv $ $0 $@
740 1.1 tv
741 1.61.2.1 pavel EOF
742 1.1 tv {
743 1.1 tv cat <<_ASUNAME
744 1.61.2.1 pavel ## ---------- ##
745 1.61.2.1 pavel ## Platform. ##
746 1.61.2.1 pavel ## ---------- ##
747 1.1 tv
748 1.1 tv hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
749 1.1 tv uname -m = `(uname -m) 2>/dev/null || echo unknown`
750 1.1 tv uname -r = `(uname -r) 2>/dev/null || echo unknown`
751 1.1 tv uname -s = `(uname -s) 2>/dev/null || echo unknown`
752 1.1 tv uname -v = `(uname -v) 2>/dev/null || echo unknown`
753 1.1 tv
754 1.1 tv /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
755 1.1 tv /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
756 1.1 tv
757 1.1 tv /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
758 1.1 tv /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
759 1.1 tv /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
760 1.1 tv hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
761 1.1 tv /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
762 1.1 tv /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
763 1.1 tv /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
764 1.1 tv
765 1.61.2.1 pavel PATH = $PATH
766 1.60 apb
767 1.61.2.1 pavel _ASUNAME
768 1.1 tv } >&5
769 1.1 tv
770 1.61.2.1 pavel cat >&5 <<EOF
771 1.61.2.1 pavel ## ------------ ##
772 1.61.2.1 pavel ## Core tests. ##
773 1.61.2.1 pavel ## ------------ ##
774 1.1 tv
775 1.61.2.1 pavel EOF
776 1.1 tv
777 1.1 tv # Keep a trace of the command line.
778 1.1 tv # Strip out --no-create and --no-recursion so they do not pile up.
779 1.1 tv # Also quote any args containing shell meta-characters.
780 1.1 tv ac_configure_args=
781 1.1 tv ac_sep=
782 1.61.2.1 pavel for ac_arg
783 1.1 tv do
784 1.61.2.1 pavel case $ac_arg in
785 1.61.2.1 pavel -no-create | --no-create | --no-creat | --no-crea | --no-cre \
786 1.61.2.1 pavel | --no-cr | --no-c) ;;
787 1.61.2.1 pavel -no-recursion | --no-recursion | --no-recursio | --no-recursi \
788 1.61.2.1 pavel | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
789 1.61.2.1 pavel *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
790 1.61.2.1 pavel ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
791 1.61.2.1 pavel ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
792 1.61.2.1 pavel ac_sep=" " ;;
793 1.61.2.1 pavel *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg"
794 1.61.2.1 pavel ac_sep=" " ;;
795 1.61.2.1 pavel esac
796 1.61.2.1 pavel # Get rid of the leading space.
797 1.1 tv done
798 1.1 tv
799 1.1 tv # When interrupted or exit'd, cleanup temporary files, and complete
800 1.1 tv # config.log. We remove comments because anyway the quotes in there
801 1.1 tv # would cause problems or look ugly.
802 1.1 tv trap 'exit_status=$?
803 1.1 tv # Save into config.log some information that might help in debugging.
804 1.61.2.1 pavel echo >&5
805 1.61.2.1 pavel echo "## ----------------- ##" >&5
806 1.61.2.1 pavel echo "## Cache variables. ##" >&5
807 1.61.2.1 pavel echo "## ----------------- ##" >&5
808 1.61.2.1 pavel echo >&5
809 1.61.2.1 pavel # The following way of writing the cache mishandles newlines in values,
810 1.1 tv {
811 1.1 tv (set) 2>&1 |
812 1.1 tv case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
813 1.1 tv *ac_space=\ *)
814 1.1 tv sed -n \
815 1.61.2.1 pavel "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
816 1.61.2.1 pavel s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
817 1.1 tv ;;
818 1.1 tv *)
819 1.1 tv sed -n \
820 1.61.2.1 pavel "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
821 1.1 tv ;;
822 1.1 tv esac;
823 1.61.2.1 pavel } >&5
824 1.61.2.1 pavel sed "/^$/d" confdefs.h >conftest.log
825 1.61.2.1 pavel if test -s conftest.log; then
826 1.61.2.1 pavel echo >&5
827 1.61.2.1 pavel echo "## ------------ ##" >&5
828 1.61.2.1 pavel echo "## confdefs.h. ##" >&5
829 1.61.2.1 pavel echo "## ------------ ##" >&5
830 1.61.2.1 pavel echo >&5
831 1.61.2.1 pavel cat conftest.log >&5
832 1.61.2.1 pavel fi
833 1.61.2.1 pavel (echo; echo) >&5
834 1.61.2.1 pavel test "$ac_signal" != 0 &&
835 1.61.2.1 pavel echo "$as_me: caught signal $ac_signal" >&5
836 1.61.2.1 pavel echo "$as_me: exit $exit_status" >&5
837 1.61.2.1 pavel rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files &&
838 1.1 tv exit $exit_status
839 1.1 tv ' 0
840 1.1 tv for ac_signal in 1 2 13 15; do
841 1.1 tv trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
842 1.1 tv done
843 1.1 tv ac_signal=0
844 1.1 tv
845 1.1 tv # confdefs.h avoids OS command line length limits that DEFS can exceed.
846 1.1 tv rm -rf conftest* confdefs.h
847 1.1 tv # AIX cpp loses on an empty file, so make sure it contains at least a newline.
848 1.1 tv echo >confdefs.h
849 1.1 tv
850 1.1 tv # Let the site file select an alternate cache file if it wants to.
851 1.1 tv # Prefer explicitly selected file to automatically selected ones.
852 1.1 tv if test -z "$CONFIG_SITE"; then
853 1.1 tv if test "x$prefix" != xNONE; then
854 1.1 tv CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
855 1.1 tv else
856 1.1 tv CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
857 1.1 tv fi
858 1.1 tv fi
859 1.1 tv for ac_site_file in $CONFIG_SITE; do
860 1.1 tv if test -r "$ac_site_file"; then
861 1.61.2.1 pavel { echo "$as_me:861: loading site script $ac_site_file" >&5
862 1.1 tv echo "$as_me: loading site script $ac_site_file" >&6;}
863 1.61.2.1 pavel cat "$ac_site_file" >&5
864 1.1 tv . "$ac_site_file"
865 1.1 tv fi
866 1.1 tv done
867 1.1 tv
868 1.1 tv if test -r "$cache_file"; then
869 1.1 tv # Some versions of bash will fail to source /dev/null (special
870 1.1 tv # files actually), so we avoid doing that.
871 1.1 tv if test -f "$cache_file"; then
872 1.61.2.1 pavel { echo "$as_me:872: loading cache $cache_file" >&5
873 1.1 tv echo "$as_me: loading cache $cache_file" >&6;}
874 1.1 tv case $cache_file in
875 1.1 tv [\\/]* | ?:[\\/]* ) . $cache_file;;
876 1.1 tv *) . ./$cache_file;;
877 1.1 tv esac
878 1.1 tv fi
879 1.1 tv else
880 1.61.2.1 pavel { echo "$as_me:880: creating cache $cache_file" >&5
881 1.1 tv echo "$as_me: creating cache $cache_file" >&6;}
882 1.1 tv >$cache_file
883 1.1 tv fi
884 1.1 tv
885 1.1 tv # Check that the precious variables saved in the cache have kept the same
886 1.1 tv # value.
887 1.1 tv ac_cache_corrupted=false
888 1.1 tv for ac_var in `(set) 2>&1 |
889 1.61.2.1 pavel sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
890 1.1 tv eval ac_old_set=\$ac_cv_env_${ac_var}_set
891 1.1 tv eval ac_new_set=\$ac_env_${ac_var}_set
892 1.1 tv eval ac_old_val="\$ac_cv_env_${ac_var}_value"
893 1.1 tv eval ac_new_val="\$ac_env_${ac_var}_value"
894 1.1 tv case $ac_old_set,$ac_new_set in
895 1.1 tv set,)
896 1.61.2.1 pavel { echo "$as_me:896: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
897 1.1 tv echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
898 1.1 tv ac_cache_corrupted=: ;;
899 1.1 tv ,set)
900 1.61.2.1 pavel { echo "$as_me:900: error: \`$ac_var' was not set in the previous run" >&5
901 1.1 tv echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
902 1.1 tv ac_cache_corrupted=: ;;
903 1.1 tv ,);;
904 1.1 tv *)
905 1.1 tv if test "x$ac_old_val" != "x$ac_new_val"; then
906 1.61.2.1 pavel { echo "$as_me:906: error: \`$ac_var' has changed since the previous run:" >&5
907 1.1 tv echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
908 1.61.2.1 pavel { echo "$as_me:908: former value: $ac_old_val" >&5
909 1.1 tv echo "$as_me: former value: $ac_old_val" >&2;}
910 1.61.2.1 pavel { echo "$as_me:910: current value: $ac_new_val" >&5
911 1.1 tv echo "$as_me: current value: $ac_new_val" >&2;}
912 1.61.2.1 pavel ac_cache_corrupted=:
913 1.1 tv fi;;
914 1.1 tv esac
915 1.61.2.1 pavel # Pass precious variables to config.status. It doesn't matter if
916 1.61.2.1 pavel # we pass some twice (in addition to the command line arguments).
917 1.1 tv if test "$ac_new_set" = set; then
918 1.1 tv case $ac_new_val in
919 1.1 tv *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
920 1.61.2.1 pavel ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"`
921 1.61.2.1 pavel ac_configure_args="$ac_configure_args '$ac_arg'"
922 1.61.2.1 pavel ;;
923 1.61.2.1 pavel *) ac_configure_args="$ac_configure_args $ac_var=$ac_new_val"
924 1.61.2.1 pavel ;;
925 1.1 tv esac
926 1.1 tv fi
927 1.1 tv done
928 1.1 tv if $ac_cache_corrupted; then
929 1.61.2.1 pavel { echo "$as_me:929: error: changes in the environment can compromise the build" >&5
930 1.1 tv echo "$as_me: error: changes in the environment can compromise the build" >&2;}
931 1.61.2.1 pavel { { echo "$as_me:931: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
932 1.1 tv echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
933 1.1 tv { (exit 1); exit 1; }; }
934 1.1 tv fi
935 1.1 tv
936 1.1 tv ac_ext=c
937 1.1 tv ac_cpp='$CPP $CPPFLAGS'
938 1.1 tv ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
939 1.1 tv ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
940 1.1 tv ac_compiler_gnu=$ac_cv_c_compiler_gnu
941 1.1 tv
942 1.61.2.1 pavel case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
943 1.61.2.1 pavel *c*,-n*) ECHO_N= ECHO_C='
944 1.61.2.1 pavel ' ECHO_T=' ' ;;
945 1.61.2.1 pavel *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
946 1.61.2.1 pavel *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
947 1.61.2.1 pavel esac
948 1.61.2.1 pavel echo "#! $SHELL" >conftest.sh
949 1.61.2.1 pavel echo "exit 0" >>conftest.sh
950 1.61.2.1 pavel chmod +x conftest.sh
951 1.61.2.1 pavel if { (echo "$as_me:951: PATH=\".;.\"; conftest.sh") >&5
952 1.61.2.1 pavel (PATH=".;."; conftest.sh) 2>&5
953 1.61.2.1 pavel ac_status=$?
954 1.61.2.1 pavel echo "$as_me:954: \$? = $ac_status" >&5
955 1.61.2.1 pavel (exit $ac_status); }; then
956 1.61.2.1 pavel ac_path_separator=';'
957 1.61.2.1 pavel else
958 1.61.2.1 pavel ac_path_separator=:
959 1.61.2.1 pavel fi
960 1.61.2.1 pavel PATH_SEPARATOR="$ac_path_separator"
961 1.61.2.1 pavel rm -f conftest.sh
962 1.1 tv
963 1.61.2.1 pavel ac_config_headers="$ac_config_headers nbtool_config.h"
964 1.1 tv
965 1.61.2.1 pavel ac_config_files="$ac_config_files defs.mk"
966 1.1 tv
967 1.57 wiz # Autoheader header and footer
968 1.57 wiz
969 1.45 jmc # AC_NETBSD
970 1.20 bjh21
971 1.1 tv ac_ext=c
972 1.1 tv ac_cpp='$CPP $CPPFLAGS'
973 1.1 tv ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
974 1.1 tv ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
975 1.1 tv ac_compiler_gnu=$ac_cv_c_compiler_gnu
976 1.1 tv if test -n "$ac_tool_prefix"; then
977 1.1 tv # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
978 1.1 tv set dummy ${ac_tool_prefix}gcc; ac_word=$2
979 1.61.2.1 pavel echo "$as_me:979: checking for $ac_word" >&5
980 1.1 tv echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
981 1.1 tv if test "${ac_cv_prog_CC+set}" = set; then
982 1.1 tv echo $ECHO_N "(cached) $ECHO_C" >&6
983 1.1 tv else
984 1.1 tv if test -n "$CC"; then
985 1.1 tv ac_cv_prog_CC="$CC" # Let the user override the test.
986 1.1 tv else
987 1.61.2.1 pavel ac_save_IFS=$IFS; IFS=$ac_path_separator
988 1.61.2.1 pavel ac_dummy="$PATH"
989 1.61.2.1 pavel for ac_dir in $ac_dummy; do
990 1.61.2.1 pavel IFS=$ac_save_IFS
991 1.61.2.1 pavel test -z "$ac_dir" && ac_dir=.
992 1.61.2.1 pavel $as_executable_p "$ac_dir/$ac_word" || continue
993 1.61.2.1 pavel ac_cv_prog_CC="${ac_tool_prefix}gcc"
994 1.61.2.1 pavel echo "$as_me:994: found $ac_dir/$ac_word" >&5
995 1.61.2.1 pavel break
996 1.1 tv done
997 1.1 tv
998 1.1 tv fi
999 1.1 tv fi
1000 1.1 tv CC=$ac_cv_prog_CC
1001 1.1 tv if test -n "$CC"; then
1002 1.61.2.1 pavel echo "$as_me:1002: result: $CC" >&5
1003 1.1 tv echo "${ECHO_T}$CC" >&6
1004 1.1 tv else
1005 1.61.2.1 pavel echo "$as_me:1005: result: no" >&5
1006 1.1 tv echo "${ECHO_T}no" >&6
1007 1.1 tv fi
1008 1.1 tv
1009 1.1 tv fi
1010 1.1 tv if test -z "$ac_cv_prog_CC"; then
1011 1.1 tv ac_ct_CC=$CC
1012 1.1 tv # Extract the first word of "gcc", so it can be a program name with args.
1013 1.1 tv set dummy gcc; ac_word=$2
1014 1.61.2.1 pavel echo "$as_me:1014: checking for $ac_word" >&5
1015 1.1 tv echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1016 1.1 tv if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1017 1.1 tv echo $ECHO_N "(cached) $ECHO_C" >&6
1018 1.1 tv else
1019 1.1 tv if test -n "$ac_ct_CC"; then
1020 1.1 tv ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1021 1.1 tv else
1022 1.61.2.1 pavel ac_save_IFS=$IFS; IFS=$ac_path_separator
1023 1.61.2.1 pavel ac_dummy="$PATH"
1024 1.61.2.1 pavel for ac_dir in $ac_dummy; do
1025 1.61.2.1 pavel IFS=$ac_save_IFS
1026 1.61.2.1 pavel test -z "$ac_dir" && ac_dir=.
1027 1.61.2.1 pavel $as_executable_p "$ac_dir/$ac_word" || continue
1028 1.61.2.1 pavel ac_cv_prog_ac_ct_CC="gcc"
1029 1.61.2.1 pavel echo "$as_me:1029: found $ac_dir/$ac_word" >&5
1030 1.61.2.1 pavel break
1031 1.1 tv done
1032 1.1 tv
1033 1.1 tv fi
1034 1.1 tv fi
1035 1.1 tv ac_ct_CC=$ac_cv_prog_ac_ct_CC
1036 1.1 tv if test -n "$ac_ct_CC"; then
1037 1.61.2.1 pavel echo "$as_me:1037: result: $ac_ct_CC" >&5
1038 1.1 tv echo "${ECHO_T}$ac_ct_CC" >&6
1039 1.1 tv else
1040 1.61.2.1 pavel echo "$as_me:1040: result: no" >&5
1041 1.1 tv echo "${ECHO_T}no" >&6
1042 1.1 tv fi
1043 1.1 tv
1044 1.1 tv CC=$ac_ct_CC
1045 1.1 tv else
1046 1.1 tv CC="$ac_cv_prog_CC"
1047 1.1 tv fi
1048 1.1 tv
1049 1.1 tv if test -z "$CC"; then
1050 1.1 tv if test -n "$ac_tool_prefix"; then
1051 1.1 tv # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1052 1.1 tv set dummy ${ac_tool_prefix}cc; ac_word=$2
1053 1.61.2.1 pavel echo "$as_me:1053: checking for $ac_word" >&5
1054 1.1 tv echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1055 1.1 tv if test "${ac_cv_prog_CC+set}" = set; then
1056 1.1 tv echo $ECHO_N "(cached) $ECHO_C" >&6
1057 1.1 tv else
1058 1.1 tv if test -n "$CC"; then
1059 1.1 tv ac_cv_prog_CC="$CC" # Let the user override the test.
1060 1.1 tv else
1061 1.61.2.1 pavel ac_save_IFS=$IFS; IFS=$ac_path_separator
1062 1.61.2.1 pavel ac_dummy="$PATH"
1063 1.61.2.1 pavel for ac_dir in $ac_dummy; do
1064 1.61.2.1 pavel IFS=$ac_save_IFS
1065 1.61.2.1 pavel test -z "$ac_dir" && ac_dir=.
1066 1.61.2.1 pavel $as_executable_p "$ac_dir/$ac_word" || continue
1067 1.61.2.1 pavel ac_cv_prog_CC="${ac_tool_prefix}cc"
1068 1.61.2.1 pavel echo "$as_me:1068: found $ac_dir/$ac_word" >&5
1069 1.61.2.1 pavel break
1070 1.1 tv done
1071 1.1 tv
1072 1.1 tv fi
1073 1.1 tv fi
1074 1.1 tv CC=$ac_cv_prog_CC
1075 1.1 tv if test -n "$CC"; then
1076 1.61.2.1 pavel echo "$as_me:1076: result: $CC" >&5
1077 1.1 tv echo "${ECHO_T}$CC" >&6
1078 1.1 tv else
1079 1.61.2.1 pavel echo "$as_me:1079: result: no" >&5
1080 1.1 tv echo "${ECHO_T}no" >&6
1081 1.1 tv fi
1082 1.1 tv
1083 1.1 tv fi
1084 1.1 tv if test -z "$ac_cv_prog_CC"; then
1085 1.1 tv ac_ct_CC=$CC
1086 1.1 tv # Extract the first word of "cc", so it can be a program name with args.
1087 1.1 tv set dummy cc; ac_word=$2
1088 1.61.2.1 pavel echo "$as_me:1088: checking for $ac_word" >&5
1089 1.1 tv echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1090 1.1 tv if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1091 1.1 tv echo $ECHO_N "(cached) $ECHO_C" >&6
1092 1.1 tv else
1093 1.1 tv if test -n "$ac_ct_CC"; then
1094 1.1 tv ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1095 1.1 tv else
1096 1.61.2.1 pavel ac_save_IFS=$IFS; IFS=$ac_path_separator
1097 1.61.2.1 pavel ac_dummy="$PATH"
1098 1.61.2.1 pavel for ac_dir in $ac_dummy; do
1099 1.61.2.1 pavel IFS=$ac_save_IFS
1100 1.61.2.1 pavel test -z "$ac_dir" && ac_dir=.
1101 1.61.2.1 pavel $as_executable_p "$ac_dir/$ac_word" || continue
1102 1.61.2.1 pavel ac_cv_prog_ac_ct_CC="cc"
1103 1.61.2.1 pavel echo "$as_me:1103: found $ac_dir/$ac_word" >&5
1104 1.61.2.1 pavel break
1105 1.1 tv done
1106 1.1 tv
1107 1.1 tv fi
1108 1.1 tv fi
1109 1.1 tv ac_ct_CC=$ac_cv_prog_ac_ct_CC
1110 1.1 tv if test -n "$ac_ct_CC"; then
1111 1.61.2.1 pavel echo "$as_me:1111: result: $ac_ct_CC" >&5
1112 1.1 tv echo "${ECHO_T}$ac_ct_CC" >&6
1113 1.1 tv else
1114 1.61.2.1 pavel echo "$as_me:1114: result: no" >&5
1115 1.1 tv echo "${ECHO_T}no" >&6
1116 1.1 tv fi
1117 1.1 tv
1118 1.1 tv CC=$ac_ct_CC
1119 1.1 tv else
1120 1.1 tv CC="$ac_cv_prog_CC"
1121 1.1 tv fi
1122 1.1 tv
1123 1.1 tv fi
1124 1.1 tv if test -z "$CC"; then
1125 1.1 tv # Extract the first word of "cc", so it can be a program name with args.
1126 1.1 tv set dummy cc; ac_word=$2
1127 1.61.2.1 pavel echo "$as_me:1127: checking for $ac_word" >&5
1128 1.1 tv echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1129 1.1 tv if test "${ac_cv_prog_CC+set}" = set; then
1130 1.1 tv echo $ECHO_N "(cached) $ECHO_C" >&6
1131 1.1 tv else
1132 1.1 tv if test -n "$CC"; then
1133 1.1 tv ac_cv_prog_CC="$CC" # Let the user override the test.
1134 1.1 tv else
1135 1.1 tv ac_prog_rejected=no
1136 1.61.2.1 pavel ac_save_IFS=$IFS; IFS=$ac_path_separator
1137 1.61.2.1 pavel ac_dummy="$PATH"
1138 1.61.2.1 pavel for ac_dir in $ac_dummy; do
1139 1.61.2.1 pavel IFS=$ac_save_IFS
1140 1.61.2.1 pavel test -z "$ac_dir" && ac_dir=.
1141 1.61.2.1 pavel $as_executable_p "$ac_dir/$ac_word" || continue
1142 1.61.2.1 pavel if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1143 1.61.2.1 pavel ac_prog_rejected=yes
1144 1.61.2.1 pavel continue
1145 1.61.2.1 pavel fi
1146 1.61.2.1 pavel ac_cv_prog_CC="cc"
1147 1.61.2.1 pavel echo "$as_me:1147: found $ac_dir/$ac_word" >&5
1148 1.61.2.1 pavel break
1149 1.1 tv done
1150 1.1 tv
1151 1.1 tv if test $ac_prog_rejected = yes; then
1152 1.1 tv # We found a bogon in the path, so make sure we never use it.
1153 1.1 tv set dummy $ac_cv_prog_CC
1154 1.1 tv shift
1155 1.1 tv if test $# != 0; then
1156 1.1 tv # We chose a different compiler from the bogus one.
1157 1.1 tv # However, it has the same basename, so the bogon will be chosen
1158 1.1 tv # first if we set CC to just the basename; use the full file name.
1159 1.1 tv shift
1160 1.61.2.1 pavel set dummy "$ac_dir/$ac_word" ${1+"$@"}
1161 1.61.2.1 pavel shift
1162 1.61.2.1 pavel ac_cv_prog_CC="$@"
1163 1.1 tv fi
1164 1.1 tv fi
1165 1.1 tv fi
1166 1.1 tv fi
1167 1.1 tv CC=$ac_cv_prog_CC
1168 1.1 tv if test -n "$CC"; then
1169 1.61.2.1 pavel echo "$as_me:1169: result: $CC" >&5
1170 1.1 tv echo "${ECHO_T}$CC" >&6
1171 1.1 tv else
1172 1.61.2.1 pavel echo "$as_me:1172: result: no" >&5
1173 1.1 tv echo "${ECHO_T}no" >&6
1174 1.1 tv fi
1175 1.1 tv
1176 1.1 tv fi
1177 1.1 tv if test -z "$CC"; then
1178 1.1 tv if test -n "$ac_tool_prefix"; then
1179 1.1 tv for ac_prog in cl
1180 1.1 tv do
1181 1.1 tv # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1182 1.1 tv set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1183 1.61.2.1 pavel echo "$as_me:1183: checking for $ac_word" >&5
1184 1.1 tv echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1185 1.1 tv if test "${ac_cv_prog_CC+set}" = set; then
1186 1.1 tv echo $ECHO_N "(cached) $ECHO_C" >&6
1187 1.1 tv else
1188 1.1 tv if test -n "$CC"; then
1189 1.1 tv ac_cv_prog_CC="$CC" # Let the user override the test.
1190 1.1 tv else
1191 1.61.2.1 pavel ac_save_IFS=$IFS; IFS=$ac_path_separator
1192 1.61.2.1 pavel ac_dummy="$PATH"
1193 1.61.2.1 pavel for ac_dir in $ac_dummy; do
1194 1.61.2.1 pavel IFS=$ac_save_IFS
1195 1.61.2.1 pavel test -z "$ac_dir" && ac_dir=.
1196 1.61.2.1 pavel $as_executable_p "$ac_dir/$ac_word" || continue
1197 1.61.2.1 pavel ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1198 1.61.2.1 pavel echo "$as_me:1198: found $ac_dir/$ac_word" >&5
1199 1.61.2.1 pavel break
1200 1.1 tv done
1201 1.1 tv
1202 1.1 tv fi
1203 1.1 tv fi
1204 1.1 tv CC=$ac_cv_prog_CC
1205 1.1 tv if test -n "$CC"; then
1206 1.61.2.1 pavel echo "$as_me:1206: result: $CC" >&5
1207 1.1 tv echo "${ECHO_T}$CC" >&6
1208 1.1 tv else
1209 1.61.2.1 pavel echo "$as_me:1209: result: no" >&5
1210 1.1 tv echo "${ECHO_T}no" >&6
1211 1.1 tv fi
1212 1.1 tv
1213 1.1 tv test -n "$CC" && break
1214 1.1 tv done
1215 1.1 tv fi
1216 1.1 tv if test -z "$CC"; then
1217 1.1 tv ac_ct_CC=$CC
1218 1.1 tv for ac_prog in cl
1219 1.1 tv do
1220 1.1 tv # Extract the first word of "$ac_prog", so it can be a program name with args.
1221 1.1 tv set dummy $ac_prog; ac_word=$2
1222 1.61.2.1 pavel echo "$as_me:1222: checking for $ac_word" >&5
1223 1.1 tv echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1224 1.1 tv if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1225 1.1 tv echo $ECHO_N "(cached) $ECHO_C" >&6
1226 1.1 tv else
1227 1.1 tv if test -n "$ac_ct_CC"; then
1228 1.1 tv ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1229 1.1 tv else
1230 1.61.2.1 pavel ac_save_IFS=$IFS; IFS=$ac_path_separator
1231 1.61.2.1 pavel ac_dummy="$PATH"
1232 1.61.2.1 pavel for ac_dir in $ac_dummy; do
1233 1.61.2.1 pavel IFS=$ac_save_IFS
1234 1.61.2.1 pavel test -z "$ac_dir" && ac_dir=.
1235 1.61.2.1 pavel $as_executable_p "$ac_dir/$ac_word" || continue
1236 1.61.2.1 pavel ac_cv_prog_ac_ct_CC="$ac_prog"
1237 1.61.2.1 pavel echo "$as_me:1237: found $ac_dir/$ac_word" >&5
1238 1.61.2.1 pavel break
1239 1.1 tv done
1240 1.1 tv
1241 1.1 tv fi
1242 1.1 tv fi
1243 1.1 tv ac_ct_CC=$ac_cv_prog_ac_ct_CC
1244 1.1 tv if test -n "$ac_ct_CC"; then
1245 1.61.2.1 pavel echo "$as_me:1245: result: $ac_ct_CC" >&5
1246 1.1 tv echo "${ECHO_T}$ac_ct_CC" >&6
1247 1.1 tv else
1248 1.61.2.1 pavel echo "$as_me:1248: result: no" >&5
1249 1.1 tv echo "${ECHO_T}no" >&6
1250 1.1 tv fi
1251 1.1 tv
1252 1.1 tv test -n "$ac_ct_CC" && break
1253 1.1 tv done
1254 1.1 tv
1255 1.1 tv CC=$ac_ct_CC
1256 1.1 tv fi
1257 1.1 tv
1258 1.1 tv fi
1259 1.1 tv
1260 1.61.2.1 pavel test -z "$CC" && { { echo "$as_me:1260: error: no acceptable cc found in \$PATH" >&5
1261 1.61.2.1 pavel echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
1262 1.1 tv { (exit 1); exit 1; }; }
1263 1.1 tv
1264 1.1 tv # Provide some information about the compiler.
1265 1.61.2.1 pavel echo "$as_me:1265:" \
1266 1.1 tv "checking for C compiler version" >&5
1267 1.1 tv ac_compiler=`set X $ac_compile; echo $2`
1268 1.61.2.1 pavel { (eval echo "$as_me:1268: \"$ac_compiler --version </dev/null >&5\"") >&5
1269 1.1 tv (eval $ac_compiler --version </dev/null >&5) 2>&5
1270 1.1 tv ac_status=$?
1271 1.61.2.1 pavel echo "$as_me:1271: \$? = $ac_status" >&5
1272 1.1 tv (exit $ac_status); }
1273 1.61.2.1 pavel { (eval echo "$as_me:1273: \"$ac_compiler -v </dev/null >&5\"") >&5
1274 1.1 tv (eval $ac_compiler -v </dev/null >&5) 2>&5
1275 1.1 tv ac_status=$?
1276 1.61.2.1 pavel echo "$as_me:1276: \$? = $ac_status" >&5
1277 1.1 tv (exit $ac_status); }
1278 1.61.2.1 pavel { (eval echo "$as_me:1278: \"$ac_compiler -V </dev/null >&5\"") >&5
1279 1.1 tv (eval $ac_compiler -V </dev/null >&5) 2>&5
1280 1.1 tv ac_status=$?
1281 1.61.2.1 pavel echo "$as_me:1281: \$? = $ac_status" >&5
1282 1.1 tv (exit $ac_status); }
1283 1.1 tv
1284 1.1 tv cat >conftest.$ac_ext <<_ACEOF
1285 1.61.2.1 pavel #line 1285 "configure"
1286 1.61.2.1 pavel #include "confdefs.h"
1287 1.1 tv
1288 1.1 tv int
1289 1.1 tv main ()
1290 1.1 tv {
1291 1.1 tv
1292 1.1 tv ;
1293 1.1 tv return 0;
1294 1.1 tv }
1295 1.1 tv _ACEOF
1296 1.1 tv ac_clean_files_save=$ac_clean_files
1297 1.61.2.1 pavel ac_clean_files="$ac_clean_files a.out a.exe"
1298 1.1 tv # Try to create an executable without -o first, disregard a.out.
1299 1.1 tv # It will help us diagnose broken compilers, and finding out an intuition
1300 1.1 tv # of exeext.
1301 1.61.2.1 pavel echo "$as_me:1301: checking for C compiler default output" >&5
1302 1.61.2.1 pavel echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1303 1.1 tv ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1304 1.61.2.1 pavel if { (eval echo "$as_me:1304: \"$ac_link_default\"") >&5
1305 1.1 tv (eval $ac_link_default) 2>&5
1306 1.1 tv ac_status=$?
1307 1.61.2.1 pavel echo "$as_me:1307: \$? = $ac_status" >&5
1308 1.1 tv (exit $ac_status); }; then
1309 1.1 tv # Find the output, starting from the most likely. This scheme is
1310 1.1 tv # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1311 1.1 tv # resort.
1312 1.61.2.1 pavel for ac_file in `ls a.exe conftest.exe 2>/dev/null;
1313 1.61.2.1 pavel ls a.out conftest 2>/dev/null;
1314 1.61.2.1 pavel ls a.* conftest.* 2>/dev/null`; do
1315 1.1 tv case $ac_file in
1316 1.61.2.1 pavel *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
1317 1.61.2.1 pavel a.out ) # We found the default executable, but exeext='' is most
1318 1.61.2.1 pavel # certainly right.
1319 1.61.2.1 pavel break;;
1320 1.61.2.1 pavel *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1321 1.61.2.1 pavel # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1322 1.61.2.1 pavel export ac_cv_exeext
1323 1.61.2.1 pavel break;;
1324 1.61.2.1 pavel * ) break;;
1325 1.1 tv esac
1326 1.1 tv done
1327 1.1 tv else
1328 1.1 tv echo "$as_me: failed program was:" >&5
1329 1.61.2.1 pavel cat conftest.$ac_ext >&5
1330 1.61.2.1 pavel { { echo "$as_me:1330: error: C compiler cannot create executables" >&5
1331 1.61.2.1 pavel echo "$as_me: error: C compiler cannot create executables" >&2;}
1332 1.1 tv { (exit 77); exit 77; }; }
1333 1.1 tv fi
1334 1.1 tv
1335 1.1 tv ac_exeext=$ac_cv_exeext
1336 1.61.2.1 pavel echo "$as_me:1336: result: $ac_file" >&5
1337 1.1 tv echo "${ECHO_T}$ac_file" >&6
1338 1.1 tv
1339 1.1 tv # Check the compiler produces executables we can run. If not, either
1340 1.1 tv # the compiler is broken, or we cross compile.
1341 1.61.2.1 pavel echo "$as_me:1341: checking whether the C compiler works" >&5
1342 1.1 tv echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1343 1.1 tv # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1344 1.1 tv # If not cross compiling, check that we can run a simple program.
1345 1.1 tv if test "$cross_compiling" != yes; then
1346 1.1 tv if { ac_try='./$ac_file'
1347 1.61.2.1 pavel { (eval echo "$as_me:1347: \"$ac_try\"") >&5
1348 1.1 tv (eval $ac_try) 2>&5
1349 1.1 tv ac_status=$?
1350 1.61.2.1 pavel echo "$as_me:1350: \$? = $ac_status" >&5
1351 1.1 tv (exit $ac_status); }; }; then
1352 1.1 tv cross_compiling=no
1353 1.1 tv else
1354 1.1 tv if test "$cross_compiling" = maybe; then
1355 1.1 tv cross_compiling=yes
1356 1.1 tv else
1357 1.61.2.1 pavel { { echo "$as_me:1357: error: cannot run C compiled programs.
1358 1.61.2.1 pavel If you meant to cross compile, use \`--host'." >&5
1359 1.1 tv echo "$as_me: error: cannot run C compiled programs.
1360 1.61.2.1 pavel If you meant to cross compile, use \`--host'." >&2;}
1361 1.1 tv { (exit 1); exit 1; }; }
1362 1.1 tv fi
1363 1.1 tv fi
1364 1.1 tv fi
1365 1.61.2.1 pavel echo "$as_me:1365: result: yes" >&5
1366 1.1 tv echo "${ECHO_T}yes" >&6
1367 1.1 tv
1368 1.61.2.1 pavel rm -f a.out a.exe conftest$ac_cv_exeext
1369 1.1 tv ac_clean_files=$ac_clean_files_save
1370 1.1 tv # Check the compiler produces executables we can run. If not, either
1371 1.1 tv # the compiler is broken, or we cross compile.
1372 1.61.2.1 pavel echo "$as_me:1372: checking whether we are cross compiling" >&5
1373 1.1 tv echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1374 1.61.2.1 pavel echo "$as_me:1374: result: $cross_compiling" >&5
1375 1.1 tv echo "${ECHO_T}$cross_compiling" >&6
1376 1.1 tv
1377 1.61.2.1 pavel echo "$as_me:1377: checking for executable suffix" >&5
1378 1.61.2.1 pavel echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
1379 1.61.2.1 pavel if { (eval echo "$as_me:1379: \"$ac_link\"") >&5
1380 1.1 tv (eval $ac_link) 2>&5
1381 1.1 tv ac_status=$?
1382 1.61.2.1 pavel echo "$as_me:1382: \$? = $ac_status" >&5
1383 1.1 tv (exit $ac_status); }; then
1384 1.1 tv # If both `conftest.exe' and `conftest' are `present' (well, observable)
1385 1.1 tv # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1386 1.1 tv # work properly (i.e., refer to `conftest.exe'), while it won't with
1387 1.1 tv # `rm'.
1388 1.61.2.1 pavel for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
1389 1.1 tv case $ac_file in
1390 1.61.2.1 pavel *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
1391 1.1 tv *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1392 1.61.2.1 pavel export ac_cv_exeext
1393 1.61.2.1 pavel break;;
1394 1.1 tv * ) break;;
1395 1.1 tv esac
1396 1.1 tv done
1397 1.1 tv else
1398 1.61.2.1 pavel { { echo "$as_me:1398: error: cannot compute EXEEXT: cannot compile and link" >&5
1399 1.61.2.1 pavel echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;}
1400 1.1 tv { (exit 1); exit 1; }; }
1401 1.1 tv fi
1402 1.1 tv
1403 1.1 tv rm -f conftest$ac_cv_exeext
1404 1.61.2.1 pavel echo "$as_me:1404: result: $ac_cv_exeext" >&5
1405 1.1 tv echo "${ECHO_T}$ac_cv_exeext" >&6
1406 1.1 tv
1407 1.1 tv rm -f conftest.$ac_ext
1408 1.1 tv EXEEXT=$ac_cv_exeext
1409 1.1 tv ac_exeext=$EXEEXT
1410 1.61.2.1 pavel echo "$as_me:1410: checking for object suffix" >&5
1411 1.61.2.1 pavel echo $ECHO_N "checking for object suffix... $ECHO_C" >&6
1412 1.1 tv if test "${ac_cv_objext+set}" = set; then
1413 1.1 tv echo $ECHO_N "(cached) $ECHO_C" >&6
1414 1.1 tv else
1415 1.1 tv cat >conftest.$ac_ext <<_ACEOF
1416 1.61.2.1 pavel #line 1416 "configure"
1417 1.61.2.1 pavel #include "confdefs.h"
1418 1.1 tv
1419 1.1 tv int
1420 1.1 tv main ()
1421 1.1 tv {
1422 1.1 tv
1423 1.1 tv ;
1424 1.1 tv return 0;
1425 1.1 tv }
1426 1.1 tv _ACEOF
1427 1.1 tv rm -f conftest.o conftest.obj
1428 1.61.2.1 pavel if { (eval echo "$as_me:1428: \"$ac_compile\"") >&5
1429 1.1 tv (eval $ac_compile) 2>&5
1430 1.1 tv ac_status=$?
1431 1.61.2.1 pavel echo "$as_me:1431: \$? = $ac_status" >&5
1432 1.1 tv (exit $ac_status); }; then
1433 1.1 tv for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1434 1.1 tv case $ac_file in
1435 1.61.2.1 pavel *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
1436 1.1 tv *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1437 1.1 tv break;;
1438 1.1 tv esac
1439 1.1 tv done
1440 1.1 tv else
1441 1.1 tv echo "$as_me: failed program was:" >&5
1442 1.61.2.1 pavel cat conftest.$ac_ext >&5
1443 1.61.2.1 pavel { { echo "$as_me:1443: error: cannot compute OBJEXT: cannot compile" >&5
1444 1.61.2.1 pavel echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;}
1445 1.1 tv { (exit 1); exit 1; }; }
1446 1.1 tv fi
1447 1.1 tv
1448 1.1 tv rm -f conftest.$ac_cv_objext conftest.$ac_ext
1449 1.1 tv fi
1450 1.61.2.1 pavel echo "$as_me:1450: result: $ac_cv_objext" >&5
1451 1.1 tv echo "${ECHO_T}$ac_cv_objext" >&6
1452 1.1 tv OBJEXT=$ac_cv_objext
1453 1.1 tv ac_objext=$OBJEXT
1454 1.61.2.1 pavel echo "$as_me:1454: checking whether we are using the GNU C compiler" >&5
1455 1.1 tv echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1456 1.1 tv if test "${ac_cv_c_compiler_gnu+set}" = set; then
1457 1.1 tv echo $ECHO_N "(cached) $ECHO_C" >&6
1458 1.1 tv else
1459 1.1 tv cat >conftest.$ac_ext <<_ACEOF
1460 1.61.2.1 pavel #line 1460 "configure"
1461 1.61.2.1 pavel #include "confdefs.h"
1462 1.1 tv
1463 1.1 tv int
1464 1.1 tv main ()
1465 1.1 tv {
1466 1.1 tv #ifndef __GNUC__
1467 1.1 tv choke me
1468 1.1 tv #endif
1469 1.1 tv
1470 1.1 tv ;
1471 1.1 tv return 0;
1472 1.1 tv }
1473 1.1 tv _ACEOF
1474 1.1 tv rm -f conftest.$ac_objext
1475 1.61.2.1 pavel if { (eval echo "$as_me:1475: \"$ac_compile\"") >&5
1476 1.61.2.1 pavel (eval $ac_compile) 2>&5
1477 1.1 tv ac_status=$?
1478 1.61.2.1 pavel echo "$as_me:1478: \$? = $ac_status" >&5
1479 1.1 tv (exit $ac_status); } &&
1480 1.61.2.1 pavel { ac_try='test -s conftest.$ac_objext'
1481 1.61.2.1 pavel { (eval echo "$as_me:1481: \"$ac_try\"") >&5
1482 1.53 dogcow (eval $ac_try) 2>&5
1483 1.53 dogcow ac_status=$?
1484 1.61.2.1 pavel echo "$as_me:1484: \$? = $ac_status" >&5
1485 1.60 apb (exit $ac_status); }; }; then
1486 1.1 tv ac_compiler_gnu=yes
1487 1.1 tv else
1488 1.1 tv echo "$as_me: failed program was:" >&5
1489 1.61.2.1 pavel cat conftest.$ac_ext >&5
1490 1.1 tv ac_compiler_gnu=no
1491 1.1 tv fi
1492 1.61.2.1 pavel rm -f conftest.$ac_objext conftest.$ac_ext
1493 1.1 tv ac_cv_c_compiler_gnu=$ac_compiler_gnu
1494 1.1 tv
1495 1.1 tv fi
1496 1.61.2.1 pavel echo "$as_me:1496: result: $ac_cv_c_compiler_gnu" >&5
1497 1.1 tv echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1498 1.1 tv GCC=`test $ac_compiler_gnu = yes && echo yes`
1499 1.1 tv ac_test_CFLAGS=${CFLAGS+set}
1500 1.1 tv ac_save_CFLAGS=$CFLAGS
1501 1.1 tv CFLAGS="-g"
1502 1.61.2.1 pavel echo "$as_me:1502: checking whether $CC accepts -g" >&5
1503 1.1 tv echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1504 1.1 tv if test "${ac_cv_prog_cc_g+set}" = set; then
1505 1.1 tv echo $ECHO_N "(cached) $ECHO_C" >&6
1506 1.1 tv else
1507 1.1 tv cat >conftest.$ac_ext <<_ACEOF
1508 1.61.2.1 pavel #line 1508 "configure"
1509 1.61.2.1 pavel #include "confdefs.h"
1510 1.1 tv
1511 1.1 tv int
1512 1.1 tv main ()
1513 1.1 tv {
1514 1.1 tv
1515 1.1 tv ;
1516 1.1 tv return 0;
1517 1.1 tv }
1518 1.1 tv _ACEOF
1519 1.1 tv rm -f conftest.$ac_objext
1520 1.61.2.1 pavel if { (eval echo "$as_me:1520: \"$ac_compile\"") >&5
1521 1.61.2.1 pavel (eval $ac_compile) 2>&5
1522 1.1 tv ac_status=$?
1523 1.61.2.1 pavel echo "$as_me:1523: \$? = $ac_status" >&5
1524 1.52 dbj (exit $ac_status); } &&
1525 1.61.2.1 pavel { ac_try='test -s conftest.$ac_objext'
1526 1.61.2.1 pavel { (eval echo "$as_me:1526: \"$ac_try\"") >&5
1527 1.53 dogcow (eval $ac_try) 2>&5
1528 1.53 dogcow ac_status=$?
1529 1.61.2.1 pavel echo "$as_me:1529: \$? = $ac_status" >&5
1530 1.1 tv (exit $ac_status); }; }; then
1531 1.1 tv ac_cv_prog_cc_g=yes
1532 1.1 tv else
1533 1.1 tv echo "$as_me: failed program was:" >&5
1534 1.61.2.1 pavel cat conftest.$ac_ext >&5
1535 1.1 tv ac_cv_prog_cc_g=no
1536 1.1 tv fi
1537 1.61.2.1 pavel rm -f conftest.$ac_objext conftest.$ac_ext
1538 1.1 tv fi
1539 1.61.2.1 pavel echo "$as_me:1539: result: $ac_cv_prog_cc_g" >&5
1540 1.1 tv echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1541 1.1 tv if test "$ac_test_CFLAGS" = set; then
1542 1.1 tv CFLAGS=$ac_save_CFLAGS
1543 1.1 tv elif test $ac_cv_prog_cc_g = yes; then
1544 1.1 tv if test "$GCC" = yes; then
1545 1.1 tv CFLAGS="-g -O2"
1546 1.1 tv else
1547 1.1 tv CFLAGS="-g"
1548 1.1 tv fi
1549 1.1 tv else
1550 1.1 tv if test "$GCC" = yes; then
1551 1.1 tv CFLAGS="-O2"
1552 1.1 tv else
1553 1.1 tv CFLAGS=
1554 1.1 tv fi
1555 1.1 tv fi
1556 1.1 tv # Some people use a C++ compiler to compile C. Since we use `exit',
1557 1.1 tv # in C++ we need to declare it. In case someone uses the same compiler
1558 1.1 tv # for both compiling C and C++ we need to have the C++ compiler decide
1559 1.1 tv # the declaration of exit, since it's the most demanding environment.
1560 1.1 tv cat >conftest.$ac_ext <<_ACEOF
1561 1.1 tv #ifndef __cplusplus
1562 1.1 tv choke me
1563 1.1 tv #endif
1564 1.1 tv _ACEOF
1565 1.1 tv rm -f conftest.$ac_objext
1566 1.61.2.1 pavel if { (eval echo "$as_me:1566: \"$ac_compile\"") >&5
1567 1.61.2.1 pavel (eval $ac_compile) 2>&5
1568 1.1 tv ac_status=$?
1569 1.61.2.1 pavel echo "$as_me:1569: \$? = $ac_status" >&5
1570 1.1 tv (exit $ac_status); } &&
1571 1.61.2.1 pavel { ac_try='test -s conftest.$ac_objext'
1572 1.61.2.1 pavel { (eval echo "$as_me:1572: \"$ac_try\"") >&5
1573 1.50 jmc (eval $ac_try) 2>&5
1574 1.50 jmc ac_status=$?
1575 1.61.2.1 pavel echo "$as_me:1575: \$? = $ac_status" >&5
1576 1.1 tv (exit $ac_status); }; }; then
1577 1.1 tv for ac_declaration in \
1578 1.61.2.1 pavel ''\
1579 1.61.2.1 pavel '#include <stdlib.h>' \
1580 1.1 tv 'extern "C" void std::exit (int) throw (); using std::exit;' \
1581 1.1 tv 'extern "C" void std::exit (int); using std::exit;' \
1582 1.1 tv 'extern "C" void exit (int) throw ();' \
1583 1.1 tv 'extern "C" void exit (int);' \
1584 1.1 tv 'void exit (int);'
1585 1.1 tv do
1586 1.1 tv cat >conftest.$ac_ext <<_ACEOF
1587 1.61.2.1 pavel #line 1587 "configure"
1588 1.61.2.1 pavel #include "confdefs.h"
1589 1.60 apb #include <stdlib.h>
1590 1.61.2.1 pavel $ac_declaration
1591 1.1 tv int
1592 1.1 tv main ()
1593 1.1 tv {
1594 1.1 tv exit (42);
1595 1.1 tv ;
1596 1.1 tv return 0;
1597 1.1 tv }
1598 1.1 tv _ACEOF
1599 1.1 tv rm -f conftest.$ac_objext
1600 1.61.2.1 pavel if { (eval echo "$as_me:1600: \"$ac_compile\"") >&5
1601 1.61.2.1 pavel (eval $ac_compile) 2>&5
1602 1.1 tv ac_status=$?
1603 1.61.2.1 pavel echo "$as_me:1603: \$? = $ac_status" >&5
1604 1.1 tv (exit $ac_status); } &&
1605 1.61.2.1 pavel { ac_try='test -s conftest.$ac_objext'
1606 1.61.2.1 pavel { (eval echo "$as_me:1606: \"$ac_try\"") >&5
1607 1.50 jmc (eval $ac_try) 2>&5
1608 1.50 jmc ac_status=$?
1609 1.61.2.1 pavel echo "$as_me:1609: \$? = $ac_status" >&5
1610 1.1 tv (exit $ac_status); }; }; then
1611 1.1 tv :
1612 1.1 tv else
1613 1.1 tv echo "$as_me: failed program was:" >&5
1614 1.61.2.1 pavel cat conftest.$ac_ext >&5
1615 1.1 tv continue
1616 1.1 tv fi
1617 1.61.2.1 pavel rm -f conftest.$ac_objext conftest.$ac_ext
1618 1.1 tv cat >conftest.$ac_ext <<_ACEOF
1619 1.61.2.1 pavel #line 1619 "configure"
1620 1.61.2.1 pavel #include "confdefs.h"
1621 1.1 tv $ac_declaration
1622 1.1 tv int
1623 1.1 tv main ()
1624 1.1 tv {
1625 1.1 tv exit (42);
1626 1.1 tv ;
1627 1.1 tv return 0;
1628 1.1 tv }
1629 1.1 tv _ACEOF
1630 1.1 tv rm -f conftest.$ac_objext
1631 1.61.2.1 pavel if { (eval echo "$as_me:1631: \"$ac_compile\"") >&5
1632 1.61.2.1 pavel (eval $ac_compile) 2>&5
1633 1.1 tv ac_status=$?
1634 1.61.2.1 pavel echo "$as_me:1634: \$? = $ac_status" >&5
1635 1.1 tv (exit $ac_status); } &&
1636 1.61.2.1 pavel { ac_try='test -s conftest.$ac_objext'
1637 1.61.2.1 pavel { (eval echo "$as_me:1637: \"$ac_try\"") >&5
1638 1.53 dogcow (eval $ac_try) 2>&5
1639 1.53 dogcow ac_status=$?
1640 1.61.2.1 pavel echo "$as_me:1640: \$? = $ac_status" >&5
1641 1.1 tv (exit $ac_status); }; }; then
1642 1.1 tv break
1643 1.1 tv else
1644 1.1 tv echo "$as_me: failed program was:" >&5
1645 1.61.2.1 pavel cat conftest.$ac_ext >&5
1646 1.1 tv fi
1647 1.61.2.1 pavel rm -f conftest.$ac_objext conftest.$ac_ext
1648 1.1 tv done
1649 1.1 tv rm -f conftest*
1650 1.1 tv if test -n "$ac_declaration"; then
1651 1.1 tv echo '#ifdef __cplusplus' >>confdefs.h
1652 1.1 tv echo $ac_declaration >>confdefs.h
1653 1.1 tv echo '#endif' >>confdefs.h
1654 1.1 tv fi
1655 1.1 tv
1656 1.1 tv else
1657 1.1 tv echo "$as_me: failed program was:" >&5
1658 1.61.2.1 pavel cat conftest.$ac_ext >&5
1659 1.1 tv fi
1660 1.61.2.1 pavel rm -f conftest.$ac_objext conftest.$ac_ext
1661 1.1 tv ac_ext=c
1662 1.1 tv ac_cpp='$CPP $CPPFLAGS'
1663 1.1 tv ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1664 1.1 tv ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1665 1.1 tv ac_compiler_gnu=$ac_cv_c_compiler_gnu
1666 1.1 tv
1667 1.1 tv ac_ext=c
1668 1.1 tv ac_cpp='$CPP $CPPFLAGS'
1669 1.1 tv ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1670 1.1 tv ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1671 1.1 tv ac_compiler_gnu=$ac_cv_c_compiler_gnu
1672 1.61.2.1 pavel echo "$as_me:1672: checking how to run the C preprocessor" >&5
1673 1.1 tv echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
1674 1.1 tv # On Suns, sometimes $CPP names a directory.
1675 1.1 tv if test -n "$CPP" && test -d "$CPP"; then
1676 1.1 tv CPP=
1677 1.1 tv fi
1678 1.1 tv if test -z "$CPP"; then
1679 1.1 tv if test "${ac_cv_prog_CPP+set}" = set; then
1680 1.1 tv echo $ECHO_N "(cached) $ECHO_C" >&6
1681 1.1 tv else
1682 1.1 tv # Double quotes because CPP needs to be expanded
1683 1.1 tv for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
1684 1.1 tv do
1685 1.1 tv ac_preproc_ok=false
1686 1.1 tv for ac_c_preproc_warn_flag in '' yes
1687 1.1 tv do
1688 1.1 tv # Use a header file that comes with gcc, so configuring glibc
1689 1.1 tv # with a fresh cross-compiler works.
1690 1.1 tv # On the NeXT, cc -E runs the code through the compiler's parser,
1691 1.1 tv # not just through cpp. "Syntax error" is here to catch this case.
1692 1.1 tv cat >conftest.$ac_ext <<_ACEOF
1693 1.61.2.1 pavel #line 1693 "configure"
1694 1.61.2.1 pavel #include "confdefs.h"
1695 1.61.2.1 pavel #include <assert.h>
1696 1.61.2.1 pavel Syntax error
1697 1.48 jmc _ACEOF
1698 1.61.2.1 pavel if { (eval echo "$as_me:1698: \"$ac_cpp conftest.$ac_ext\"") >&5
1699 1.1 tv (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
1700 1.1 tv ac_status=$?
1701 1.61.2.1 pavel egrep -v '^ *\+' conftest.er1 >conftest.err
1702 1.1 tv rm -f conftest.er1
1703 1.1 tv cat conftest.err >&5
1704 1.61.2.1 pavel echo "$as_me:1704: \$? = $ac_status" >&5
1705 1.1 tv (exit $ac_status); } >/dev/null; then
1706 1.1 tv if test -s conftest.err; then
1707 1.1 tv ac_cpp_err=$ac_c_preproc_warn_flag
1708 1.1 tv else
1709 1.1 tv ac_cpp_err=
1710 1.1 tv fi
1711 1.1 tv else
1712 1.1 tv ac_cpp_err=yes
1713 1.1 tv fi
1714 1.1 tv if test -z "$ac_cpp_err"; then
1715 1.1 tv :
1716 1.1 tv else
1717 1.1 tv echo "$as_me: failed program was:" >&5
1718 1.61.2.1 pavel cat conftest.$ac_ext >&5
1719 1.1 tv # Broken: fails on valid input.
1720 1.1 tv continue
1721 1.1 tv fi
1722 1.1 tv rm -f conftest.err conftest.$ac_ext
1723 1.1 tv
1724 1.1 tv # OK, works on sane cases. Now check whether non-existent headers
1725 1.1 tv # can be detected and how.
1726 1.1 tv cat >conftest.$ac_ext <<_ACEOF
1727 1.61.2.1 pavel #line 1727 "configure"
1728 1.61.2.1 pavel #include "confdefs.h"
1729 1.1 tv #include <ac_nonexistent.h>
1730 1.1 tv _ACEOF
1731 1.61.2.1 pavel if { (eval echo "$as_me:1731: \"$ac_cpp conftest.$ac_ext\"") >&5
1732 1.1 tv (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
1733 1.1 tv ac_status=$?
1734 1.61.2.1 pavel egrep -v '^ *\+' conftest.er1 >conftest.err
1735 1.1 tv rm -f conftest.er1
1736 1.1 tv cat conftest.err >&5
1737 1.61.2.1 pavel echo "$as_me:1737: \$? = $ac_status" >&5
1738 1.1 tv (exit $ac_status); } >/dev/null; then
1739 1.1 tv if test -s conftest.err; then
1740 1.1 tv ac_cpp_err=$ac_c_preproc_warn_flag
1741 1.1 tv else
1742 1.1 tv ac_cpp_err=
1743 1.1 tv fi
1744 1.1 tv else
1745 1.1 tv ac_cpp_err=yes
1746 1.1 tv fi
1747 1.1 tv if test -z "$ac_cpp_err"; then
1748 1.1 tv # Broken: success on invalid input.
1749 1.1 tv continue
1750 1.1 tv else
1751 1.1 tv echo "$as_me: failed program was:" >&5
1752 1.61.2.1 pavel cat conftest.$ac_ext >&5
1753 1.1 tv # Passes both tests.
1754 1.1 tv ac_preproc_ok=:
1755 1.1 tv break
1756 1.1 tv fi
1757 1.1 tv rm -f conftest.err conftest.$ac_ext
1758 1.1 tv
1759 1.1 tv done
1760 1.1 tv # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
1761 1.1 tv rm -f conftest.err conftest.$ac_ext
1762 1.1 tv if $ac_preproc_ok; then
1763 1.1 tv break
1764 1.1 tv fi
1765 1.1 tv
1766 1.1 tv done
1767 1.1 tv ac_cv_prog_CPP=$CPP
1768 1.1 tv
1769 1.1 tv fi
1770 1.1 tv CPP=$ac_cv_prog_CPP
1771 1.1 tv else
1772 1.1 tv ac_cv_prog_CPP=$CPP
1773 1.1 tv fi
1774 1.61.2.1 pavel echo "$as_me:1774: result: $CPP" >&5
1775 1.1 tv echo "${ECHO_T}$CPP" >&6
1776 1.1 tv ac_preproc_ok=false
1777 1.1 tv for ac_c_preproc_warn_flag in '' yes
1778 1.1 tv do
1779 1.1 tv # Use a header file that comes with gcc, so configuring glibc
1780 1.1 tv # with a fresh cross-compiler works.
1781 1.1 tv # On the NeXT, cc -E runs the code through the compiler's parser,
1782 1.1 tv # not just through cpp. "Syntax error" is here to catch this case.
1783 1.1 tv cat >conftest.$ac_ext <<_ACEOF
1784 1.61.2.1 pavel #line 1784 "configure"
1785 1.61.2.1 pavel #include "confdefs.h"
1786 1.61.2.1 pavel #include <assert.h>
1787 1.61.2.1 pavel Syntax error
1788 1.53 dogcow _ACEOF
1789 1.61.2.1 pavel if { (eval echo "$as_me:1789: \"$ac_cpp conftest.$ac_ext\"") >&5
1790 1.1 tv (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
1791 1.1 tv ac_status=$?
1792 1.61.2.1 pavel egrep -v '^ *\+' conftest.er1 >conftest.err
1793 1.1 tv rm -f conftest.er1
1794 1.1 tv cat conftest.err >&5
1795 1.61.2.1 pavel echo "$as_me:1795: \$? = $ac_status" >&5
1796 1.1 tv (exit $ac_status); } >/dev/null; then
1797 1.1 tv if test -s conftest.err; then
1798 1.1 tv ac_cpp_err=$ac_c_preproc_warn_flag
1799 1.1 tv else
1800 1.1 tv ac_cpp_err=
1801 1.1 tv fi
1802 1.1 tv else
1803 1.1 tv ac_cpp_err=yes
1804 1.1 tv fi
1805 1.1 tv if test -z "$ac_cpp_err"; then
1806 1.1 tv :
1807 1.1 tv else
1808 1.1 tv echo "$as_me: failed program was:" >&5
1809 1.61.2.1 pavel cat conftest.$ac_ext >&5
1810 1.1 tv # Broken: fails on valid input.
1811 1.1 tv continue
1812 1.1 tv fi
1813 1.1 tv rm -f conftest.err conftest.$ac_ext
1814 1.1 tv
1815 1.1 tv # OK, works on sane cases. Now check whether non-existent headers
1816 1.1 tv # can be detected and how.
1817 1.1 tv cat >conftest.$ac_ext <<_ACEOF
1818 1.61.2.1 pavel #line 1818 "configure"
1819 1.61.2.1 pavel #include "confdefs.h"
1820 1.1 tv #include <ac_nonexistent.h>
1821 1.1 tv _ACEOF
1822 1.61.2.1 pavel if { (eval echo "$as_me:1822: \"$ac_cpp conftest.$ac_ext\"") >&5
1823 1.1 tv (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
1824 1.1 tv ac_status=$?
1825 1.61.2.1 pavel egrep -v '^ *\+' conftest.er1 >conftest.err
1826 1.1 tv rm -f conftest.er1
1827 1.1 tv cat conftest.err >&5
1828 1.61.2.1 pavel echo "$as_me:1828: \$? = $ac_status" >&5
1829 1.1 tv (exit $ac_status); } >/dev/null; then
1830 1.1 tv if test -s conftest.err; then
1831 1.1 tv ac_cpp_err=$ac_c_preproc_warn_flag
1832 1.1 tv else
1833 1.1 tv ac_cpp_err=
1834 1.1 tv fi
1835 1.1 tv else
1836 1.45 jmc ac_cpp_err=yes
1837 1.45 jmc fi
1838 1.45 jmc if test -z "$ac_cpp_err"; then
1839 1.45 jmc # Broken: success on invalid input.
1840 1.45 jmc continue
1841 1.45 jmc else
1842 1.45 jmc echo "$as_me: failed program was:" >&5
1843 1.61.2.1 pavel cat conftest.$ac_ext >&5
1844 1.45 jmc # Passes both tests.
1845 1.45 jmc ac_preproc_ok=:
1846 1.45 jmc break
1847 1.45 jmc fi
1848 1.45 jmc rm -f conftest.err conftest.$ac_ext
1849 1.45 jmc
1850 1.45 jmc done
1851 1.45 jmc # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
1852 1.45 jmc rm -f conftest.err conftest.$ac_ext
1853 1.45 jmc if $ac_preproc_ok; then
1854 1.45 jmc :
1855 1.45 jmc else
1856 1.61.2.1 pavel { { echo "$as_me:1856: error: C preprocessor \"$CPP\" fails sanity check" >&5
1857 1.61.2.1 pavel echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
1858 1.45 jmc { (exit 1); exit 1; }; }
1859 1.45 jmc fi
1860 1.45 jmc
1861 1.45 jmc ac_ext=c
1862 1.45 jmc ac_cpp='$CPP $CPPFLAGS'
1863 1.45 jmc ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1864 1.45 jmc ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1865 1.45 jmc ac_compiler_gnu=$ac_cv_c_compiler_gnu
1866 1.45 jmc
1867 1.61.2.1 pavel echo "$as_me:1867: checking for NetBSD" >&5
1868 1.45 jmc echo $ECHO_N "checking for NetBSD... $ECHO_C" >&6
1869 1.45 jmc cat >conftest.$ac_ext <<_ACEOF
1870 1.61.2.1 pavel #line 1870 "configure"
1871 1.61.2.1 pavel #include "confdefs.h"
1872 1.45 jmc #ifdef __NetBSD__
1873 1.45 jmc yes
1874 1.45 jmc #endif
1875 1.45 jmc
1876 1.45 jmc _ACEOF
1877 1.45 jmc if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1878 1.61.2.1 pavel egrep "yes" >/dev/null 2>&1; then
1879 1.61.2.1 pavel echo "$as_me:1879: result: yes" >&5
1880 1.45 jmc echo "${ECHO_T}yes" >&6
1881 1.54 wiz
1882 1.61.2.1 pavel cat >>confdefs.h <<\EOF
1883 1.45 jmc #define _POSIX_SOURCE 1
1884 1.61.2.1 pavel EOF
1885 1.54 wiz
1886 1.61.2.1 pavel cat >>confdefs.h <<\EOF
1887 1.45 jmc #define _POSIX_C_SOURCE 200112L
1888 1.61.2.1 pavel EOF
1889 1.54 wiz
1890 1.61.2.1 pavel cat >>confdefs.h <<\EOF
1891 1.45 jmc #define _XOPEN_SOURCE 600
1892 1.61.2.1 pavel EOF
1893 1.45 jmc
1894 1.45 jmc else
1895 1.61.2.1 pavel echo "$as_me:1895: result: no" >&5
1896 1.45 jmc echo "${ECHO_T}no" >&6
1897 1.45 jmc fi
1898 1.45 jmc rm -f conftest*
1899 1.45 jmc
1900 1.45 jmc # Extract the first word of "sh", so it can be a program name with args.
1901 1.45 jmc set dummy sh; ac_word=$2
1902 1.61.2.1 pavel echo "$as_me:1902: checking for $ac_word" >&5
1903 1.45 jmc echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1904 1.45 jmc if test "${ac_cv_path_BSHELL+set}" = set; then
1905 1.45 jmc echo $ECHO_N "(cached) $ECHO_C" >&6
1906 1.45 jmc else
1907 1.45 jmc case $BSHELL in
1908 1.45 jmc [\\/]* | ?:[\\/]*)
1909 1.45 jmc ac_cv_path_BSHELL="$BSHELL" # Let the user override the test with a path.
1910 1.45 jmc ;;
1911 1.45 jmc *)
1912 1.61.2.1 pavel ac_save_IFS=$IFS; IFS=$ac_path_separator
1913 1.61.2.1 pavel ac_dummy="$PATH"
1914 1.61.2.1 pavel for ac_dir in $ac_dummy; do
1915 1.61.2.1 pavel IFS=$ac_save_IFS
1916 1.61.2.1 pavel test -z "$ac_dir" && ac_dir=.
1917 1.61.2.1 pavel if $as_executable_p "$ac_dir/$ac_word"; then
1918 1.61.2.1 pavel ac_cv_path_BSHELL="$ac_dir/$ac_word"
1919 1.61.2.1 pavel echo "$as_me:1919: found $ac_dir/$ac_word" >&5
1920 1.61.2.1 pavel break
1921 1.61.2.1 pavel fi
1922 1.45 jmc done
1923 1.45 jmc
1924 1.45 jmc ;;
1925 1.45 jmc esac
1926 1.45 jmc fi
1927 1.45 jmc BSHELL=$ac_cv_path_BSHELL
1928 1.45 jmc
1929 1.45 jmc if test -n "$BSHELL"; then
1930 1.61.2.1 pavel echo "$as_me:1930: result: $BSHELL" >&5
1931 1.45 jmc echo "${ECHO_T}$BSHELL" >&6
1932 1.45 jmc else
1933 1.61.2.1 pavel echo "$as_me:1933: result: no" >&5
1934 1.45 jmc echo "${ECHO_T}no" >&6
1935 1.45 jmc fi
1936 1.45 jmc
1937 1.45 jmc if test x"$BSHELL" = x; then
1938 1.61.2.1 pavel { { echo "$as_me:1938: error: sh must be somewhere on \$PATH" >&5
1939 1.45 jmc echo "$as_me: error: sh must be somewhere on \$PATH" >&2;}
1940 1.45 jmc { (exit 1); exit 1; }; }
1941 1.45 jmc fi
1942 1.54 wiz
1943 1.61.2.1 pavel cat >>confdefs.h <<EOF
1944 1.45 jmc #define PATH_BSHELL "$BSHELL"
1945 1.61.2.1 pavel EOF
1946 1.53 dogcow
1947 1.61.2.1 pavel echo "$as_me:1947: checking whether byte ordering is bigendian" >&5
1948 1.45 jmc echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
1949 1.45 jmc if test "${ac_cv_c_bigendian+set}" = set; then
1950 1.45 jmc echo $ECHO_N "(cached) $ECHO_C" >&6
1951 1.45 jmc else
1952 1.61.2.1 pavel ac_cv_c_bigendian=unknown
1953 1.61.2.1 pavel # See if sys/param.h defines the BYTE_ORDER macro.
1954 1.45 jmc cat >conftest.$ac_ext <<_ACEOF
1955 1.61.2.1 pavel #line 1955 "configure"
1956 1.61.2.1 pavel #include "confdefs.h"
1957 1.45 jmc #include <sys/types.h>
1958 1.45 jmc #include <sys/param.h>
1959 1.45 jmc
1960 1.45 jmc int
1961 1.45 jmc main ()
1962 1.45 jmc {
1963 1.45 jmc #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
1964 1.45 jmc bogus endian macros
1965 1.45 jmc #endif
1966 1.45 jmc
1967 1.45 jmc ;
1968 1.45 jmc return 0;
1969 1.45 jmc }
1970 1.45 jmc _ACEOF
1971 1.45 jmc rm -f conftest.$ac_objext
1972 1.61.2.1 pavel if { (eval echo "$as_me:1972: \"$ac_compile\"") >&5
1973 1.61.2.1 pavel (eval $ac_compile) 2>&5
1974 1.45 jmc ac_status=$?
1975 1.61.2.1 pavel echo "$as_me:1975: \$? = $ac_status" >&5
1976 1.45 jmc (exit $ac_status); } &&
1977 1.61.2.1 pavel { ac_try='test -s conftest.$ac_objext'
1978 1.61.2.1 pavel { (eval echo "$as_me:1978: \"$ac_try\"") >&5
1979 1.45 jmc (eval $ac_try) 2>&5
1980 1.45 jmc ac_status=$?
1981 1.61.2.1 pavel echo "$as_me:1981: \$? = $ac_status" >&5
1982 1.45 jmc (exit $ac_status); }; }; then
1983 1.45 jmc # It does; now see whether it defined to BIG_ENDIAN or not.
1984 1.45 jmc cat >conftest.$ac_ext <<_ACEOF
1985 1.61.2.1 pavel #line 1985 "configure"
1986 1.61.2.1 pavel #include "confdefs.h"
1987 1.45 jmc #include <sys/types.h>
1988 1.45 jmc #include <sys/param.h>
1989 1.45 jmc
1990 1.45 jmc int
1991 1.45 jmc main ()
1992 1.45 jmc {
1993 1.45 jmc #if BYTE_ORDER != BIG_ENDIAN
1994 1.45 jmc not big endian
1995 1.45 jmc #endif
1996 1.45 jmc
1997 1.45 jmc ;
1998 1.45 jmc return 0;
1999 1.45 jmc }
2000 1.45 jmc _ACEOF
2001 1.45 jmc rm -f conftest.$ac_objext
2002 1.61.2.1 pavel if { (eval echo "$as_me:2002: \"$ac_compile\"") >&5
2003 1.61.2.1 pavel (eval $ac_compile) 2>&5
2004 1.45 jmc ac_status=$?
2005 1.61.2.1 pavel echo "$as_me:2005: \$? = $ac_status" >&5
2006 1.45 jmc (exit $ac_status); } &&
2007 1.61.2.1 pavel { ac_try='test -s conftest.$ac_objext'
2008 1.61.2.1 pavel { (eval echo "$as_me:2008: \"$ac_try\"") >&5
2009 1.53 dogcow (eval $ac_try) 2>&5
2010 1.53 dogcow ac_status=$?
2011 1.61.2.1 pavel echo "$as_me:2011: \$? = $ac_status" >&5
2012 1.45 jmc (exit $ac_status); }; }; then
2013 1.45 jmc ac_cv_c_bigendian=yes
2014 1.45 jmc else
2015 1.45 jmc echo "$as_me: failed program was:" >&5
2016 1.61.2.1 pavel cat conftest.$ac_ext >&5
2017 1.45 jmc ac_cv_c_bigendian=no
2018 1.45 jmc fi
2019 1.61.2.1 pavel rm -f conftest.$ac_objext conftest.$ac_ext
2020 1.53 dogcow else
2021 1.53 dogcow echo "$as_me: failed program was:" >&5
2022 1.61.2.1 pavel cat conftest.$ac_ext >&5
2023 1.60 apb fi
2024 1.61.2.1 pavel rm -f conftest.$ac_objext conftest.$ac_ext
2025 1.61.2.1 pavel if test $ac_cv_c_bigendian = unknown; then
2026 1.61.2.1 pavel if test "$cross_compiling" = yes; then
2027 1.61.2.1 pavel { { echo "$as_me:2027: error: cannot run test program while cross compiling" >&5
2028 1.61.2.1 pavel echo "$as_me: error: cannot run test program while cross compiling" >&2;}
2029 1.61.2.1 pavel { (exit 1); exit 1; }; }
2030 1.45 jmc else
2031 1.45 jmc cat >conftest.$ac_ext <<_ACEOF
2032 1.61.2.1 pavel #line 2032 "configure"
2033 1.61.2.1 pavel #include "confdefs.h"
2034 1.45 jmc int
2035 1.45 jmc main ()
2036 1.45 jmc {
2037 1.45 jmc /* Are we little or big endian? From Harbison&Steele. */
2038 1.45 jmc union
2039 1.45 jmc {
2040 1.45 jmc long l;
2041 1.45 jmc char c[sizeof (long)];
2042 1.45 jmc } u;
2043 1.45 jmc u.l = 1;
2044 1.45 jmc exit (u.c[sizeof (long) - 1] == 1);
2045 1.45 jmc }
2046 1.45 jmc _ACEOF
2047 1.45 jmc rm -f conftest$ac_exeext
2048 1.61.2.1 pavel if { (eval echo "$as_me:2048: \"$ac_link\"") >&5
2049 1.45 jmc (eval $ac_link) 2>&5
2050 1.45 jmc ac_status=$?
2051 1.61.2.1 pavel echo "$as_me:2051: \$? = $ac_status" >&5
2052 1.45 jmc (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2053 1.61.2.1 pavel { (eval echo "$as_me:2053: \"$ac_try\"") >&5
2054 1.45 jmc (eval $ac_try) 2>&5
2055 1.45 jmc ac_status=$?
2056 1.61.2.1 pavel echo "$as_me:2056: \$? = $ac_status" >&5
2057 1.45 jmc (exit $ac_status); }; }; then
2058 1.45 jmc ac_cv_c_bigendian=no
2059 1.45 jmc else
2060 1.45 jmc echo "$as_me: program exited with status $ac_status" >&5
2061 1.45 jmc echo "$as_me: failed program was:" >&5
2062 1.61.2.1 pavel cat conftest.$ac_ext >&5
2063 1.45 jmc ac_cv_c_bigendian=yes
2064 1.45 jmc fi
2065 1.61.2.1 pavel rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2066 1.45 jmc fi
2067 1.1 tv fi
2068 1.1 tv fi
2069 1.61.2.1 pavel echo "$as_me:2069: result: $ac_cv_c_bigendian" >&5
2070 1.45 jmc echo "${ECHO_T}$ac_cv_c_bigendian" >&6
2071 1.61.2.1 pavel if test $ac_cv_c_bigendian = yes; then
2072 1.45 jmc
2073 1.61.2.1 pavel cat >>confdefs.h <<\EOF
2074 1.45 jmc #define WORDS_BIGENDIAN 1
2075 1.61.2.1 pavel EOF
2076 1.61.2.1 pavel
2077 1.61.2.1 pavel fi
2078 1.52 dbj
2079 1.61.2.1 pavel echo "$as_me:2079: checking for ANSI C header files" >&5
2080 1.6 tv echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
2081 1.6 tv if test "${ac_cv_header_stdc+set}" = set; then
2082 1.6 tv echo $ECHO_N "(cached) $ECHO_C" >&6
2083 1.6 tv else
2084 1.6 tv cat >conftest.$ac_ext <<_ACEOF
2085 1.61.2.1 pavel #line 2085 "configure"
2086 1.61.2.1 pavel #include "confdefs.h"
2087 1.6 tv #include <stdlib.h>
2088 1.6 tv #include <stdarg.h>
2089 1.6 tv #include <string.h>
2090 1.6 tv #include <float.h>
2091 1.6 tv
2092 1.6 tv _ACEOF
2093 1.61.2.1 pavel if { (eval echo "$as_me:2093: \"$ac_cpp conftest.$ac_ext\"") >&5
2094 1.61.2.1 pavel (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2095 1.39 fredb ac_status=$?
2096 1.61.2.1 pavel egrep -v '^ *\+' conftest.er1 >conftest.err
2097 1.50 jmc rm -f conftest.er1
2098 1.50 jmc cat conftest.err >&5
2099 1.61.2.1 pavel echo "$as_me:2099: \$? = $ac_status" >&5
2100 1.61.2.1 pavel (exit $ac_status); } >/dev/null; then
2101 1.61.2.1 pavel if test -s conftest.err; then
2102 1.61.2.1 pavel ac_cpp_err=$ac_c_preproc_warn_flag
2103 1.61.2.1 pavel else
2104 1.61.2.1 pavel ac_cpp_err=
2105 1.61.2.1 pavel fi
2106 1.61.2.1 pavel else
2107 1.61.2.1 pavel ac_cpp_err=yes
2108 1.61.2.1 pavel fi
2109 1.61.2.1 pavel if test -z "$ac_cpp_err"; then
2110 1.6 tv ac_cv_header_stdc=yes
2111 1.6 tv else
2112 1.6 tv echo "$as_me: failed program was:" >&5
2113 1.61.2.1 pavel cat conftest.$ac_ext >&5
2114 1.61.2.1 pavel ac_cv_header_stdc=no
2115 1.6 tv fi
2116 1.61.2.1 pavel rm -f conftest.err conftest.$ac_ext
2117 1.6 tv
2118 1.6 tv if test $ac_cv_header_stdc = yes; then
2119 1.6 tv # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2120 1.6 tv cat >conftest.$ac_ext <<_ACEOF
2121 1.61.2.1 pavel #line 2121 "configure"
2122 1.61.2.1 pavel #include "confdefs.h"
2123 1.6 tv #include <string.h>
2124 1.6 tv
2125 1.6 tv _ACEOF
2126 1.6 tv if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2127 1.61.2.1 pavel egrep "memchr" >/dev/null 2>&1; then
2128 1.6 tv :
2129 1.6 tv else
2130 1.6 tv ac_cv_header_stdc=no
2131 1.6 tv fi
2132 1.6 tv rm -f conftest*
2133 1.6 tv
2134 1.6 tv fi
2135 1.6 tv
2136 1.6 tv if test $ac_cv_header_stdc = yes; then
2137 1.6 tv # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2138 1.6 tv cat >conftest.$ac_ext <<_ACEOF
2139 1.61.2.1 pavel #line 2139 "configure"
2140 1.61.2.1 pavel #include "confdefs.h"
2141 1.6 tv #include <stdlib.h>
2142 1.6 tv
2143 1.6 tv _ACEOF
2144 1.6 tv if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2145 1.61.2.1 pavel egrep "free" >/dev/null 2>&1; then
2146 1.6 tv :
2147 1.6 tv else
2148 1.6 tv ac_cv_header_stdc=no
2149 1.6 tv fi
2150 1.6 tv rm -f conftest*
2151 1.6 tv
2152 1.6 tv fi
2153 1.6 tv
2154 1.6 tv if test $ac_cv_header_stdc = yes; then
2155 1.6 tv # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2156 1.6 tv if test "$cross_compiling" = yes; then
2157 1.6 tv :
2158 1.6 tv else
2159 1.6 tv cat >conftest.$ac_ext <<_ACEOF
2160 1.61.2.1 pavel #line 2160 "configure"
2161 1.61.2.1 pavel #include "confdefs.h"
2162 1.6 tv #include <ctype.h>
2163 1.6 tv #if ((' ' & 0x0FF) == 0x020)
2164 1.6 tv # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2165 1.6 tv # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2166 1.6 tv #else
2167 1.61.2.1 pavel # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
2168 1.61.2.1 pavel || ('j' <= (c) && (c) <= 'r') \
2169 1.61.2.1 pavel || ('s' <= (c) && (c) <= 'z'))
2170 1.6 tv # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
2171 1.6 tv #endif
2172 1.6 tv
2173 1.6 tv #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2174 1.6 tv int
2175 1.6 tv main ()
2176 1.6 tv {
2177 1.6 tv int i;
2178 1.6 tv for (i = 0; i < 256; i++)
2179 1.6 tv if (XOR (islower (i), ISLOWER (i))
2180 1.61.2.1 pavel || toupper (i) != TOUPPER (i))
2181 1.6 tv exit(2);
2182 1.6 tv exit (0);
2183 1.6 tv }
2184 1.6 tv _ACEOF
2185 1.6 tv rm -f conftest$ac_exeext
2186 1.61.2.1 pavel if { (eval echo "$as_me:2186: \"$ac_link\"") >&5
2187 1.6 tv (eval $ac_link) 2>&5
2188 1.6 tv ac_status=$?
2189 1.61.2.1 pavel echo "$as_me:2189: \$? = $ac_status" >&5
2190 1.6 tv (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2191 1.61.2.1 pavel { (eval echo "$as_me:2191: \"$ac_try\"") >&5
2192 1.6 tv (eval $ac_try) 2>&5
2193 1.6 tv ac_status=$?
2194 1.61.2.1 pavel echo "$as_me:2194: \$? = $ac_status" >&5
2195 1.6 tv (exit $ac_status); }; }; then
2196 1.6 tv :
2197 1.6 tv else
2198 1.6 tv echo "$as_me: program exited with status $ac_status" >&5
2199 1.6 tv echo "$as_me: failed program was:" >&5
2200 1.61.2.1 pavel cat conftest.$ac_ext >&5
2201 1.6 tv ac_cv_header_stdc=no
2202 1.6 tv fi
2203 1.61.2.1 pavel rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2204 1.6 tv fi
2205 1.6 tv fi
2206 1.6 tv fi
2207 1.61.2.1 pavel echo "$as_me:2207: result: $ac_cv_header_stdc" >&5
2208 1.6 tv echo "${ECHO_T}$ac_cv_header_stdc" >&6
2209 1.6 tv if test $ac_cv_header_stdc = yes; then
2210 1.6 tv
2211 1.61.2.1 pavel cat >>confdefs.h <<\EOF
2212 1.6 tv #define STDC_HEADERS 1
2213 1.61.2.1 pavel EOF
2214 1.6 tv
2215 1.6 tv fi
2216 1.6 tv
2217 1.6 tv # Confirm existence of zlib. (This is available as a default install
2218 1.6 tv # option on many OS's; this could be added as a reachover build in the
2219 1.6 tv # future.)
2220 1.61.2.1 pavel echo "$as_me:2220: checking for zlib.h" >&5
2221 1.61.2.1 pavel echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
2222 1.61.2.1 pavel if test "${ac_cv_header_zlib_h+set}" = set; then
2223 1.4 tv echo $ECHO_N "(cached) $ECHO_C" >&6
2224 1.39 fredb else
2225 1.43 dbj cat >conftest.$ac_ext <<_ACEOF
2226 1.61.2.1 pavel #line 2226 "configure"
2227 1.61.2.1 pavel #include "confdefs.h"
2228 1.61.2.1 pavel #include <zlib.h>
2229 1.53 dogcow _ACEOF
2230 1.61.2.1 pavel if { (eval echo "$as_me:2230: \"$ac_cpp conftest.$ac_ext\"") >&5
2231 1.61.2.1 pavel (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2232 1.4 tv ac_status=$?
2233 1.61.2.1 pavel egrep -v '^ *\+' conftest.er1 >conftest.err
2234 1.50 jmc rm -f conftest.er1
2235 1.50 jmc cat conftest.err >&5
2236 1.61.2.1 pavel echo "$as_me:2236: \$? = $ac_status" >&5
2237 1.61.2.1 pavel (exit $ac_status); } >/dev/null; then
2238 1.61.2.1 pavel if test -s conftest.err; then
2239 1.61.2.1 pavel ac_cpp_err=$ac_c_preproc_warn_flag
2240 1.61.2.1 pavel else
2241 1.61.2.1 pavel ac_cpp_err=
2242 1.61.2.1 pavel fi
2243 1.61.2.1 pavel else
2244 1.61.2.1 pavel ac_cpp_err=yes
2245 1.61.2.1 pavel fi
2246 1.61.2.1 pavel if test -z "$ac_cpp_err"; then
2247 1.61.2.1 pavel ac_cv_header_zlib_h=yes
2248 1.4 tv else
2249 1.4 tv echo "$as_me: failed program was:" >&5
2250 1.61.2.1 pavel cat conftest.$ac_ext >&5
2251 1.61.2.1 pavel ac_cv_header_zlib_h=no
2252 1.4 tv fi
2253 1.61.2.1 pavel rm -f conftest.err conftest.$ac_ext
2254 1.4 tv fi
2255 1.61.2.1 pavel echo "$as_me:2255: result: $ac_cv_header_zlib_h" >&5
2256 1.61.2.1 pavel echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
2257 1.61.2.1 pavel if test $ac_cv_header_zlib_h = yes; then
2258 1.61.2.1 pavel :
2259 1.61.2.1 pavel else
2260 1.61.2.1 pavel { { echo "$as_me:2260: error: zlib must be installed in a compiler-visible path" >&5
2261 1.61.2.1 pavel echo "$as_me: error: zlib must be installed in a compiler-visible path" >&2;}
2262 1.61.2.1 pavel { (exit 1); exit 1; }; }
2263 1.6 tv fi
2264 1.6 tv
2265 1.61.2.1 pavel echo "$as_me:2265: checking for gzdopen in -lz" >&5
2266 1.60 apb echo $ECHO_N "checking for gzdopen in -lz... $ECHO_C" >&6
2267 1.60 apb if test "${ac_cv_lib_z_gzdopen+set}" = set; then
2268 1.52 dbj echo $ECHO_N "(cached) $ECHO_C" >&6
2269 1.52 dbj else
2270 1.52 dbj ac_check_lib_save_LIBS=$LIBS
2271 1.52 dbj LIBS="-lz $LIBS"
2272 1.52 dbj cat >conftest.$ac_ext <<_ACEOF
2273 1.61.2.1 pavel #line 2273 "configure"
2274 1.61.2.1 pavel #include "confdefs.h"
2275 1.48 jmc
2276 1.52 dbj /* Override any gcc2 internal prototype to avoid an error. */
2277 1.6 tv #ifdef __cplusplus
2278 1.6 tv extern "C"
2279 1.6 tv #endif
2280 1.6 tv /* We use char because int might match the return type of a gcc2
2281 1.6 tv builtin and then its argument prototype would still apply. */
2282 1.6 tv char gzdopen ();
2283 1.6 tv int
2284 1.6 tv main ()
2285 1.6 tv {
2286 1.6 tv gzdopen ();
2287 1.6 tv ;
2288 1.6 tv return 0;
2289 1.6 tv }
2290 1.6 tv _ACEOF
2291 1.6 tv rm -f conftest.$ac_objext conftest$ac_exeext
2292 1.61.2.1 pavel if { (eval echo "$as_me:2292: \"$ac_link\"") >&5
2293 1.61.2.1 pavel (eval $ac_link) 2>&5
2294 1.6 tv ac_status=$?
2295 1.61.2.1 pavel echo "$as_me:2295: \$? = $ac_status" >&5
2296 1.6 tv (exit $ac_status); } &&
2297 1.61.2.1 pavel { ac_try='test -s conftest$ac_exeext'
2298 1.61.2.1 pavel { (eval echo "$as_me:2298: \"$ac_try\"") >&5
2299 1.53 dogcow (eval $ac_try) 2>&5
2300 1.53 dogcow ac_status=$?
2301 1.61.2.1 pavel echo "$as_me:2301: \$? = $ac_status" >&5
2302 1.6 tv (exit $ac_status); }; }; then
2303 1.6 tv ac_cv_lib_z_gzdopen=yes
2304 1.6 tv else
2305 1.6 tv echo "$as_me: failed program was:" >&5
2306 1.61.2.1 pavel cat conftest.$ac_ext >&5
2307 1.6 tv ac_cv_lib_z_gzdopen=no
2308 1.6 tv fi
2309 1.61.2.1 pavel rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2310 1.6 tv LIBS=$ac_check_lib_save_LIBS
2311 1.6 tv fi
2312 1.61.2.1 pavel echo "$as_me:2312: result: $ac_cv_lib_z_gzdopen" >&5
2313 1.6 tv echo "${ECHO_T}$ac_cv_lib_z_gzdopen" >&6
2314 1.6 tv if test $ac_cv_lib_z_gzdopen = yes; then
2315 1.61.2.1 pavel cat >>confdefs.h <<EOF
2316 1.6 tv #define HAVE_LIBZ 1
2317 1.61.2.1 pavel EOF
2318 1.4 tv
2319 1.6 tv LIBS="-lz $LIBS"
2320 1.6 tv
2321 1.4 tv else
2322 1.61.2.1 pavel { { echo "$as_me:2322: error: zlib must be installed in a compiler-visible path" >&5
2323 1.6 tv echo "$as_me: error: zlib must be installed in a compiler-visible path" >&2;}
2324 1.4 tv { (exit 1); exit 1; }; }
2325 1.4 tv fi
2326 1.4 tv
2327 1.6 tv # Make sure certain required headers are available.
2328 1.6 tv # These are not necessarily required by the code, but they are not
2329 1.6 tv # currently conditionalized.
2330 1.4 tv
2331 1.43 dbj for ac_header in sys/ioctl.h sys/mman.h sys/mtio.h sys/param.h \
2332 1.43 dbj sys/socket.h sys/stat.h sys/time.h sys/types.h sys/utsname.h \
2333 1.43 dbj sys/wait.h assert.h ctype.h errno.h fcntl.h grp.h limits.h locale.h \
2334 1.43 dbj netdb.h pwd.h signal.h stdarg.h stdio.h stdlib.h string.h \
2335 1.43 dbj termios.h unistd.h
2336 1.43 dbj do
2337 1.43 dbj as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
2338 1.61.2.1 pavel echo "$as_me:2338: checking for $ac_header" >&5
2339 1.43 dbj echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
2340 1.43 dbj if eval "test \"\${$as_ac_Header+set}\" = set"; then
2341 1.43 dbj echo $ECHO_N "(cached) $ECHO_C" >&6
2342 1.53 dogcow else
2343 1.61.2.1 pavel cat >conftest.$ac_ext <<_ACEOF
2344 1.61.2.1 pavel #line 2344 "configure"
2345 1.61.2.1 pavel #include "confdefs.h"
2346 1.48 jmc #include <$ac_header>
2347 1.48 jmc _ACEOF
2348 1.61.2.1 pavel if { (eval echo "$as_me:2348: \"$ac_cpp conftest.$ac_ext\"") >&5
2349 1.4 tv (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2350 1.4 tv ac_status=$?
2351 1.61.2.1 pavel egrep -v '^ *\+' conftest.er1 >conftest.err
2352 1.4 tv rm -f conftest.er1
2353 1.4 tv cat conftest.err >&5
2354 1.61.2.1 pavel echo "$as_me:2354: \$? = $ac_status" >&5
2355 1.4 tv (exit $ac_status); } >/dev/null; then
2356 1.4 tv if test -s conftest.err; then
2357 1.4 tv ac_cpp_err=$ac_c_preproc_warn_flag
2358 1.4 tv else
2359 1.4 tv ac_cpp_err=
2360 1.4 tv fi
2361 1.4 tv else
2362 1.6 tv ac_cpp_err=yes
2363 1.6 tv fi
2364 1.6 tv if test -z "$ac_cpp_err"; then
2365 1.61.2.1 pavel eval "$as_ac_Header=yes"
2366 1.6 tv else
2367 1.6 tv echo "$as_me: failed program was:" >&5
2368 1.61.2.1 pavel cat conftest.$ac_ext >&5
2369 1.61.2.1 pavel eval "$as_ac_Header=no"
2370 1.6 tv fi
2371 1.6 tv rm -f conftest.err conftest.$ac_ext
2372 1.6 tv fi
2373 1.61.2.1 pavel echo "$as_me:2373: result: `eval echo '${'$as_ac_Header'}'`" >&5
2374 1.6 tv echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
2375 1.6 tv if test `eval echo '${'$as_ac_Header'}'` = yes; then
2376 1.61.2.1 pavel cat >>confdefs.h <<EOF
2377 1.6 tv #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
2378 1.61.2.1 pavel EOF
2379 1.6 tv
2380 1.6 tv else
2381 1.61.2.1 pavel { { echo "$as_me:2381: error: standard system header file not found" >&5
2382 1.6 tv echo "$as_me: error: standard system header file not found" >&2;}
2383 1.6 tv { (exit 1); exit 1; }; }
2384 1.6 tv fi
2385 1.6 tv done
2386 1.6 tv
2387 1.6 tv # Find headers that may not be available.
2388 1.6 tv
2389 1.6 tv ac_header_dirent=no
2390 1.6 tv for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
2391 1.6 tv as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
2392 1.61.2.1 pavel echo "$as_me:2392: checking for $ac_hdr that defines DIR" >&5
2393 1.6 tv echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
2394 1.6 tv if eval "test \"\${$as_ac_Header+set}\" = set"; then
2395 1.6 tv echo $ECHO_N "(cached) $ECHO_C" >&6
2396 1.6 tv else
2397 1.6 tv cat >conftest.$ac_ext <<_ACEOF
2398 1.61.2.1 pavel #line 2398 "configure"
2399 1.61.2.1 pavel #include "confdefs.h"
2400 1.6 tv #include <sys/types.h>
2401 1.6 tv #include <$ac_hdr>
2402 1.6 tv
2403 1.6 tv int
2404 1.6 tv main ()
2405 1.6 tv {
2406 1.6 tv if ((DIR *) 0)
2407 1.6 tv return 0;
2408 1.6 tv ;
2409 1.6 tv return 0;
2410 1.6 tv }
2411 1.6 tv _ACEOF
2412 1.6 tv rm -f conftest.$ac_objext
2413 1.61.2.1 pavel if { (eval echo "$as_me:2413: \"$ac_compile\"") >&5
2414 1.61.2.1 pavel (eval $ac_compile) 2>&5
2415 1.6 tv ac_status=$?
2416 1.61.2.1 pavel echo "$as_me:2416: \$? = $ac_status" >&5
2417 1.6 tv (exit $ac_status); } &&
2418 1.61.2.1 pavel { ac_try='test -s conftest.$ac_objext'
2419 1.61.2.1 pavel { (eval echo "$as_me:2419: \"$ac_try\"") >&5
2420 1.50 jmc (eval $ac_try) 2>&5
2421 1.50 jmc ac_status=$?
2422 1.61.2.1 pavel echo "$as_me:2422: \$? = $ac_status" >&5
2423 1.6 tv (exit $ac_status); }; }; then
2424 1.6 tv eval "$as_ac_Header=yes"
2425 1.6 tv else
2426 1.6 tv echo "$as_me: failed program was:" >&5
2427 1.61.2.1 pavel cat conftest.$ac_ext >&5
2428 1.6 tv eval "$as_ac_Header=no"
2429 1.6 tv fi
2430 1.61.2.1 pavel rm -f conftest.$ac_objext conftest.$ac_ext
2431 1.6 tv fi
2432 1.61.2.1 pavel echo "$as_me:2432: result: `eval echo '${'$as_ac_Header'}'`" >&5
2433 1.6 tv echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
2434 1.6 tv if test `eval echo '${'$as_ac_Header'}'` = yes; then
2435 1.61.2.1 pavel cat >>confdefs.h <<EOF
2436 1.6 tv #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
2437 1.61.2.1 pavel EOF
2438 1.6 tv
2439 1.6 tv ac_header_dirent=$ac_hdr; break
2440 1.6 tv fi
2441 1.6 tv
2442 1.6 tv done
2443 1.6 tv # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
2444 1.6 tv if test $ac_header_dirent = dirent.h; then
2445 1.61.2.1 pavel echo "$as_me:2445: checking for opendir in -ldir" >&5
2446 1.61.2.1 pavel echo $ECHO_N "checking for opendir in -ldir... $ECHO_C" >&6
2447 1.61.2.1 pavel if test "${ac_cv_lib_dir_opendir+set}" = set; then
2448 1.6 tv echo $ECHO_N "(cached) $ECHO_C" >&6
2449 1.6 tv else
2450 1.61.2.1 pavel ac_check_lib_save_LIBS=$LIBS
2451 1.61.2.1 pavel LIBS="-ldir $LIBS"
2452 1.6 tv cat >conftest.$ac_ext <<_ACEOF
2453 1.61.2.1 pavel #line 2453 "configure"
2454 1.61.2.1 pavel #include "confdefs.h"
2455 1.48 jmc
2456 1.48 jmc /* Override any gcc2 internal prototype to avoid an error. */
2457 1.48 jmc #ifdef __cplusplus
2458 1.48 jmc extern "C"
2459 1.48 jmc #endif
2460 1.48 jmc /* We use char because int might match the return type of a gcc2
2461 1.48 jmc builtin and then its argument prototype would still apply. */
2462 1.48 jmc char opendir ();
2463 1.48 jmc int
2464 1.48 jmc main ()
2465 1.48 jmc {
2466 1.48 jmc opendir ();
2467 1.48 jmc ;
2468 1.48 jmc return 0;
2469 1.48 jmc }
2470 1.48 jmc _ACEOF
2471 1.48 jmc rm -f conftest.$ac_objext conftest$ac_exeext
2472 1.61.2.1 pavel if { (eval echo "$as_me:2472: \"$ac_link\"") >&5
2473 1.61.2.1 pavel (eval $ac_link) 2>&5
2474 1.6 tv ac_status=$?
2475 1.61.2.1 pavel echo "$as_me:2475: \$? = $ac_status" >&5
2476 1.6 tv (exit $ac_status); } &&
2477 1.61.2.1 pavel { ac_try='test -s conftest$ac_exeext'
2478 1.61.2.1 pavel { (eval echo "$as_me:2478: \"$ac_try\"") >&5
2479 1.53 dogcow (eval $ac_try) 2>&5
2480 1.53 dogcow ac_status=$?
2481 1.61.2.1 pavel echo "$as_me:2481: \$? = $ac_status" >&5
2482 1.6 tv (exit $ac_status); }; }; then
2483 1.61.2.1 pavel ac_cv_lib_dir_opendir=yes
2484 1.6 tv else
2485 1.6 tv echo "$as_me: failed program was:" >&5
2486 1.61.2.1 pavel cat conftest.$ac_ext >&5
2487 1.61.2.1 pavel ac_cv_lib_dir_opendir=no
2488 1.60 apb fi
2489 1.61.2.1 pavel rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2490 1.61.2.1 pavel LIBS=$ac_check_lib_save_LIBS
2491 1.61.2.1 pavel fi
2492 1.61.2.1 pavel echo "$as_me:2492: result: $ac_cv_lib_dir_opendir" >&5
2493 1.61.2.1 pavel echo "${ECHO_T}$ac_cv_lib_dir_opendir" >&6
2494 1.61.2.1 pavel if test $ac_cv_lib_dir_opendir = yes; then
2495 1.61.2.1 pavel LIBS="$LIBS -ldir"
2496 1.61.2.1 pavel fi
2497 1.61.2.1 pavel
2498 1.61.2.1 pavel else
2499 1.61.2.1 pavel echo "$as_me:2499: checking for opendir in -lx" >&5
2500 1.61.2.1 pavel echo $ECHO_N "checking for opendir in -lx... $ECHO_C" >&6
2501 1.61.2.1 pavel if test "${ac_cv_lib_x_opendir+set}" = set; then
2502 1.61.2.1 pavel echo $ECHO_N "(cached) $ECHO_C" >&6
2503 1.61.2.1 pavel else
2504 1.61.2.1 pavel ac_check_lib_save_LIBS=$LIBS
2505 1.61.2.1 pavel LIBS="-lx $LIBS"
2506 1.61.2.1 pavel cat >conftest.$ac_ext <<_ACEOF
2507 1.61.2.1 pavel #line 2507 "configure"
2508 1.61.2.1 pavel #include "confdefs.h"
2509 1.6 tv
2510 1.6 tv /* Override any gcc2 internal prototype to avoid an error. */
2511 1.6 tv #ifdef __cplusplus
2512 1.6 tv extern "C"
2513 1.6 tv #endif
2514 1.6 tv /* We use char because int might match the return type of a gcc2
2515 1.6 tv builtin and then its argument prototype would still apply. */
2516 1.6 tv char opendir ();
2517 1.6 tv int
2518 1.6 tv main ()
2519 1.6 tv {
2520 1.6 tv opendir ();
2521 1.6 tv ;
2522 1.6 tv return 0;
2523 1.6 tv }
2524 1.6 tv _ACEOF
2525 1.6 tv rm -f conftest.$ac_objext conftest$ac_exeext
2526 1.61.2.1 pavel if { (eval echo "$as_me:2526: \"$ac_link\"") >&5
2527 1.61.2.1 pavel (eval $ac_link) 2>&5
2528 1.48 jmc ac_status=$?
2529 1.61.2.1 pavel echo "$as_me:2529: \$? = $ac_status" >&5
2530 1.48 jmc (exit $ac_status); } &&
2531 1.61.2.1 pavel { ac_try='test -s conftest$ac_exeext'
2532 1.61.2.1 pavel { (eval echo "$as_me:2532: \"$ac_try\"") >&5
2533 1.50 jmc (eval $ac_try) 2>&5
2534 1.50 jmc ac_status=$?
2535 1.61.2.1 pavel echo "$as_me:2535: \$? = $ac_status" >&5
2536 1.48 jmc (exit $ac_status); }; }; then
2537 1.61.2.1 pavel ac_cv_lib_x_opendir=yes
2538 1.48 jmc else
2539 1.48 jmc echo "$as_me: failed program was:" >&5
2540 1.61.2.1 pavel cat conftest.$ac_ext >&5
2541 1.61.2.1 pavel ac_cv_lib_x_opendir=no
2542 1.48 jmc fi
2543 1.61.2.1 pavel rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2544 1.61.2.1 pavel LIBS=$ac_check_lib_save_LIBS
2545 1.48 jmc fi
2546 1.61.2.1 pavel echo "$as_me:2546: result: $ac_cv_lib_x_opendir" >&5
2547 1.61.2.1 pavel echo "${ECHO_T}$ac_cv_lib_x_opendir" >&6
2548 1.61.2.1 pavel if test $ac_cv_lib_x_opendir = yes; then
2549 1.61.2.1 pavel LIBS="$LIBS -lx"
2550 1.6 tv fi
2551 1.39 fredb
2552 1.6 tv fi
2553 1.6 tv
2554 1.61.2.1 pavel for ac_header in sys/sysmacros.h sys/syslimits.h \
2555 1.61.2.1 pavel getopt.h features.h malloc.h sys/poll.h stddef.h
2556 1.61.2.1 pavel do
2557 1.61.2.1 pavel as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
2558 1.61.2.1 pavel echo "$as_me:2558: checking for $ac_header" >&5
2559 1.61.2.1 pavel echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
2560 1.61.2.1 pavel if eval "test \"\${$as_ac_Header+set}\" = set"; then
2561 1.6 tv echo $ECHO_N "(cached) $ECHO_C" >&6
2562 1.48 jmc else
2563 1.61.2.1 pavel cat >conftest.$ac_ext <<_ACEOF
2564 1.61.2.1 pavel #line 2564 "configure"
2565 1.61.2.1 pavel #include "confdefs.h"
2566 1.61.2.1 pavel #include <$ac_header>
2567 1.53 dogcow _ACEOF
2568 1.61.2.1 pavel if { (eval echo "$as_me:2568: \"$ac_cpp conftest.$ac_ext\"") >&5
2569 1.61.2.1 pavel (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2570 1.6 tv ac_status=$?
2571 1.61.2.1 pavel egrep -v '^ *\+' conftest.er1 >conftest.err
2572 1.6 tv rm -f conftest.er1
2573 1.6 tv cat conftest.err >&5
2574 1.61.2.1 pavel echo "$as_me:2574: \$? = $ac_status" >&5
2575 1.61.2.1 pavel (exit $ac_status); } >/dev/null; then
2576 1.61.2.1 pavel if test -s conftest.err; then
2577 1.61.2.1 pavel ac_cpp_err=$ac_c_preproc_warn_flag
2578 1.61.2.1 pavel else
2579 1.61.2.1 pavel ac_cpp_err=
2580 1.61.2.1 pavel fi
2581 1.61.2.1 pavel else
2582 1.61.2.1 pavel ac_cpp_err=yes
2583 1.61.2.1 pavel fi
2584 1.61.2.1 pavel if test -z "$ac_cpp_err"; then
2585 1.61.2.1 pavel eval "$as_ac_Header=yes"
2586 1.6 tv else
2587 1.6 tv echo "$as_me: failed program was:" >&5
2588 1.61.2.1 pavel cat conftest.$ac_ext >&5
2589 1.61.2.1 pavel eval "$as_ac_Header=no"
2590 1.61.2.1 pavel fi
2591 1.61.2.1 pavel rm -f conftest.err conftest.$ac_ext
2592 1.61.2.1 pavel fi
2593 1.61.2.1 pavel echo "$as_me:2593: result: `eval echo '${'$as_ac_Header'}'`" >&5
2594 1.61.2.1 pavel echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
2595 1.61.2.1 pavel if test `eval echo '${'$as_ac_Header'}'` = yes; then
2596 1.61.2.1 pavel cat >>confdefs.h <<EOF
2597 1.61.2.1 pavel #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
2598 1.61.2.1 pavel EOF
2599 1.6 tv
2600 1.6 tv fi
2601 1.61.2.1 pavel done
2602 1.6 tv
2603 1.61.2.1 pavel for ac_header in sys/bswap.h machine/bswap.h sys/cdefs.h machine/endian.h \
2604 1.61.2.2 snj sys/featuretest.h err.h inttypes.h libgen.h paths.h stdint.h util.h \
2605 1.61.2.2 snj resolv.h arpa/nameser.h
2606 1.60 apb do
2607 1.60 apb as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
2608 1.61.2.2 snj echo "$as_me:2608: checking for $ac_header" >&5
2609 1.60 apb echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
2610 1.60 apb if eval "test \"\${$as_ac_Header+set}\" = set"; then
2611 1.39 fredb echo $ECHO_N "(cached) $ECHO_C" >&6
2612 1.53 dogcow else
2613 1.61.2.1 pavel cat >conftest.$ac_ext <<_ACEOF
2614 1.61.2.2 snj #line 2614 "configure"
2615 1.61.2.1 pavel #include "confdefs.h"
2616 1.48 jmc #include <$ac_header>
2617 1.48 jmc _ACEOF
2618 1.61.2.2 snj if { (eval echo "$as_me:2618: \"$ac_cpp conftest.$ac_ext\"") >&5
2619 1.6 tv (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2620 1.6 tv ac_status=$?
2621 1.61.2.1 pavel egrep -v '^ *\+' conftest.er1 >conftest.err
2622 1.6 tv rm -f conftest.er1
2623 1.6 tv cat conftest.err >&5
2624 1.61.2.2 snj echo "$as_me:2624: \$? = $ac_status" >&5
2625 1.6 tv (exit $ac_status); } >/dev/null; then
2626 1.6 tv if test -s conftest.err; then
2627 1.6 tv ac_cpp_err=$ac_c_preproc_warn_flag
2628 1.6 tv else
2629 1.6 tv ac_cpp_err=
2630 1.6 tv fi
2631 1.6 tv else
2632 1.6 tv ac_cpp_err=yes
2633 1.6 tv fi
2634 1.6 tv if test -z "$ac_cpp_err"; then
2635 1.61.2.1 pavel eval "$as_ac_Header=yes"
2636 1.6 tv else
2637 1.6 tv echo "$as_me: failed program was:" >&5
2638 1.61.2.1 pavel cat conftest.$ac_ext >&5
2639 1.61.2.1 pavel eval "$as_ac_Header=no"
2640 1.6 tv fi
2641 1.6 tv rm -f conftest.err conftest.$ac_ext
2642 1.6 tv fi
2643 1.61.2.2 snj echo "$as_me:2643: result: `eval echo '${'$as_ac_Header'}'`" >&5
2644 1.6 tv echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
2645 1.6 tv if test `eval echo '${'$as_ac_Header'}'` = yes; then
2646 1.61.2.1 pavel cat >>confdefs.h <<EOF
2647 1.6 tv #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
2648 1.61.2.1 pavel EOF
2649 1.6 tv
2650 1.61.2.1 pavel else
2651 1.61.2.1 pavel test -f include/$ac_header || touch include/$ac_header
2652 1.6 tv fi
2653 1.6 tv done
2654 1.6 tv
2655 1.61.2.1 pavel for ac_header in rpc/types.h netconfig.h
2656 1.7 tv do
2657 1.7 tv as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
2658 1.61.2.2 snj echo "$as_me:2658: checking for $ac_header" >&5
2659 1.7 tv echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
2660 1.7 tv if eval "test \"\${$as_ac_Header+set}\" = set"; then
2661 1.7 tv echo $ECHO_N "(cached) $ECHO_C" >&6
2662 1.53 dogcow else
2663 1.61.2.1 pavel cat >conftest.$ac_ext <<_ACEOF
2664 1.61.2.2 snj #line 2664 "configure"
2665 1.61.2.1 pavel #include "confdefs.h"
2666 1.7 tv #include <$ac_header>
2667 1.7 tv _ACEOF
2668 1.61.2.2 snj if { (eval echo "$as_me:2668: \"$ac_cpp conftest.$ac_ext\"") >&5
2669 1.7 tv (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2670 1.7 tv ac_status=$?
2671 1.61.2.1 pavel egrep -v '^ *\+' conftest.er1 >conftest.err
2672 1.7 tv rm -f conftest.er1
2673 1.7 tv cat conftest.err >&5
2674 1.61.2.2 snj echo "$as_me:2674: \$? = $ac_status" >&5
2675 1.7 tv (exit $ac_status); } >/dev/null; then
2676 1.7 tv if test -s conftest.err; then
2677 1.7 tv ac_cpp_err=$ac_c_preproc_warn_flag
2678 1.7 tv else
2679 1.7 tv ac_cpp_err=
2680 1.7 tv fi
2681 1.7 tv else
2682 1.7 tv ac_cpp_err=yes
2683 1.7 tv fi
2684 1.7 tv if test -z "$ac_cpp_err"; then
2685 1.61.2.1 pavel eval "$as_ac_Header=yes"
2686 1.7 tv else
2687 1.7 tv echo "$as_me: failed program was:" >&5
2688 1.61.2.1 pavel cat conftest.$ac_ext >&5
2689 1.61.2.1 pavel eval "$as_ac_Header=no"
2690 1.43 dbj fi
2691 1.43 dbj rm -f conftest.err conftest.$ac_ext
2692 1.43 dbj fi
2693 1.61.2.2 snj echo "$as_me:2693: result: `eval echo '${'$as_ac_Header'}'`" >&5
2694 1.43 dbj echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
2695 1.43 dbj if test `eval echo '${'$as_ac_Header'}'` = yes; then
2696 1.61.2.1 pavel cat >>confdefs.h <<EOF
2697 1.43 dbj #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
2698 1.61.2.1 pavel EOF
2699 1.39 fredb
2700 1.43 dbj else
2701 1.61.2.1 pavel echo '#include "nbtool_config.h"' >include/$ac_header.new
2702 1.61.2.1 pavel echo '#include "'$srcdir/../../include/$ac_header'"' >>include/$ac_header.new
2703 1.61.2.1 pavel if cmp include/$ac_header.new include/$ac_header >/dev/null 2>&1; then
2704 1.61.2.1 pavel rm -f include/$ac_header.new
2705 1.61.2.1 pavel else
2706 1.61.2.1 pavel mv -f include/$ac_header.new include/$ac_header
2707 1.61.2.1 pavel fi
2708 1.7 tv fi
2709 1.52 dbj done
2710 1.52 dbj
2711 1.61.2.1 pavel # Typedefs.
2712 1.61.2.1 pavel # On IRIX 5.3, sys/types and inttypes.h are conflicting.
2713 1.52 dbj
2714 1.61.2.1 pavel for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
2715 1.61.2.1 pavel inttypes.h stdint.h unistd.h
2716 1.52 dbj do
2717 1.52 dbj as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
2718 1.61.2.2 snj echo "$as_me:2718: checking for $ac_header" >&5
2719 1.52 dbj echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
2720 1.52 dbj if eval "test \"\${$as_ac_Header+set}\" = set"; then
2721 1.52 dbj echo $ECHO_N "(cached) $ECHO_C" >&6
2722 1.52 dbj else
2723 1.61.2.1 pavel cat >conftest.$ac_ext <<_ACEOF
2724 1.61.2.2 snj #line 2724 "configure"
2725 1.61.2.1 pavel #include "confdefs.h"
2726 1.52 dbj $ac_includes_default
2727 1.52 dbj #include <$ac_header>
2728 1.52 dbj _ACEOF
2729 1.52 dbj rm -f conftest.$ac_objext
2730 1.61.2.2 snj if { (eval echo "$as_me:2730: \"$ac_compile\"") >&5
2731 1.61.2.1 pavel (eval $ac_compile) 2>&5
2732 1.52 dbj ac_status=$?
2733 1.61.2.2 snj echo "$as_me:2733: \$? = $ac_status" >&5
2734 1.52 dbj (exit $ac_status); } &&
2735 1.61.2.1 pavel { ac_try='test -s conftest.$ac_objext'
2736 1.61.2.2 snj { (eval echo "$as_me:2736: \"$ac_try\"") >&5
2737 1.52 dbj (eval $ac_try) 2>&5
2738 1.52 dbj ac_status=$?
2739 1.61.2.2 snj echo "$as_me:2739: \$? = $ac_status" >&5
2740 1.52 dbj (exit $ac_status); }; }; then
2741 1.61.2.1 pavel eval "$as_ac_Header=yes"
2742 1.53 dogcow else
2743 1.53 dogcow echo "$as_me: failed program was:" >&5
2744 1.61.2.1 pavel cat conftest.$ac_ext >&5
2745 1.61.2.1 pavel eval "$as_ac_Header=no"
2746 1.52 dbj fi
2747 1.61.2.1 pavel rm -f conftest.$ac_objext conftest.$ac_ext
2748 1.52 dbj fi
2749 1.61.2.2 snj echo "$as_me:2749: result: `eval echo '${'$as_ac_Header'}'`" >&5
2750 1.52 dbj echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
2751 1.52 dbj if test `eval echo '${'$as_ac_Header'}'` = yes; then
2752 1.61.2.1 pavel cat >>confdefs.h <<EOF
2753 1.52 dbj #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
2754 1.61.2.1 pavel EOF
2755 1.48 jmc
2756 1.52 dbj fi
2757 1.43 dbj done
2758 1.43 dbj
2759 1.61.2.2 snj echo "$as_me:2759: checking for size_t" >&5
2760 1.6 tv echo $ECHO_N "checking for size_t... $ECHO_C" >&6
2761 1.6 tv if test "${ac_cv_type_size_t+set}" = set; then
2762 1.6 tv echo $ECHO_N "(cached) $ECHO_C" >&6
2763 1.6 tv else
2764 1.6 tv cat >conftest.$ac_ext <<_ACEOF
2765 1.61.2.2 snj #line 2765 "configure"
2766 1.61.2.1 pavel #include "confdefs.h"
2767 1.6 tv $ac_includes_default
2768 1.6 tv int
2769 1.6 tv main ()
2770 1.6 tv {
2771 1.6 tv if ((size_t *) 0)
2772 1.6 tv return 0;
2773 1.6 tv if (sizeof (size_t))
2774 1.6 tv return 0;
2775 1.6 tv ;
2776 1.6 tv return 0;
2777 1.6 tv }
2778 1.6 tv _ACEOF
2779 1.6 tv rm -f conftest.$ac_objext
2780 1.61.2.2 snj if { (eval echo "$as_me:2780: \"$ac_compile\"") >&5
2781 1.61.2.1 pavel (eval $ac_compile) 2>&5
2782 1.6 tv ac_status=$?
2783 1.61.2.2 snj echo "$as_me:2783: \$? = $ac_status" >&5
2784 1.6 tv (exit $ac_status); } &&
2785 1.61.2.1 pavel { ac_try='test -s conftest.$ac_objext'
2786 1.61.2.2 snj { (eval echo "$as_me:2786: \"$ac_try\"") >&5
2787 1.53 dogcow (eval $ac_try) 2>&5
2788 1.53 dogcow ac_status=$?
2789 1.61.2.2 snj echo "$as_me:2789: \$? = $ac_status" >&5
2790 1.6 tv (exit $ac_status); }; }; then
2791 1.6 tv ac_cv_type_size_t=yes
2792 1.6 tv else
2793 1.6 tv echo "$as_me: failed program was:" >&5
2794 1.61.2.1 pavel cat conftest.$ac_ext >&5
2795 1.6 tv ac_cv_type_size_t=no
2796 1.6 tv fi
2797 1.61.2.1 pavel rm -f conftest.$ac_objext conftest.$ac_ext
2798 1.6 tv fi
2799 1.61.2.2 snj echo "$as_me:2799: result: $ac_cv_type_size_t" >&5
2800 1.6 tv echo "${ECHO_T}$ac_cv_type_size_t" >&6
2801 1.6 tv if test $ac_cv_type_size_t = yes; then
2802 1.6 tv :
2803 1.6 tv else
2804 1.6 tv
2805 1.61.2.1 pavel cat >>confdefs.h <<EOF
2806 1.6 tv #define size_t unsigned
2807 1.61.2.1 pavel EOF
2808 1.6 tv
2809 1.6 tv fi
2810 1.6 tv
2811 1.61.2.2 snj echo "$as_me:2811: checking for id_t" >&5
2812 1.6 tv echo $ECHO_N "checking for id_t... $ECHO_C" >&6
2813 1.6 tv if test "${ac_cv_type_id_t+set}" = set; then
2814 1.6 tv echo $ECHO_N "(cached) $ECHO_C" >&6
2815 1.6 tv else
2816 1.6 tv cat >conftest.$ac_ext <<_ACEOF
2817 1.61.2.2 snj #line 2817 "configure"
2818 1.61.2.1 pavel #include "confdefs.h"
2819 1.6 tv $ac_includes_default
2820 1.6 tv int
2821 1.6 tv main ()
2822 1.6 tv {
2823 1.6 tv if ((id_t *) 0)
2824 1.6 tv return 0;
2825 1.6 tv if (sizeof (id_t))
2826 1.6 tv return 0;
2827 1.6 tv ;
2828 1.6 tv return 0;
2829 1.6 tv }
2830 1.6 tv _ACEOF
2831 1.6 tv rm -f conftest.$ac_objext
2832 1.61.2.2 snj if { (eval echo "$as_me:2832: \"$ac_compile\"") >&5
2833 1.61.2.1 pavel (eval $ac_compile) 2>&5
2834 1.6 tv ac_status=$?
2835 1.61.2.2 snj echo "$as_me:2835: \$? = $ac_status" >&5
2836 1.6 tv (exit $ac_status); } &&
2837 1.61.2.1 pavel { ac_try='test -s conftest.$ac_objext'
2838 1.61.2.2 snj { (eval echo "$as_me:2838: \"$ac_try\"") >&5
2839 1.53 dogcow (eval $ac_try) 2>&5
2840 1.53 dogcow ac_status=$?
2841 1.61.2.2 snj echo "$as_me:2841: \$? = $ac_status" >&5
2842 1.6 tv (exit $ac_status); }; }; then
2843 1.6 tv ac_cv_type_id_t=yes
2844 1.6 tv else
2845 1.6 tv echo "$as_me: failed program was:" >&5
2846 1.61.2.1 pavel cat conftest.$ac_ext >&5
2847 1.6 tv ac_cv_type_id_t=no
2848 1.6 tv fi
2849 1.61.2.1 pavel rm -f conftest.$ac_objext conftest.$ac_ext
2850 1.6 tv fi
2851 1.61.2.2 snj echo "$as_me:2851: result: $ac_cv_type_id_t" >&5
2852 1.6 tv echo "${ECHO_T}$ac_cv_type_id_t" >&6
2853 1.6 tv if test $ac_cv_type_id_t = yes; then
2854 1.6 tv
2855 1.61.2.1 pavel cat >>confdefs.h <<EOF
2856 1.6 tv #define HAVE_ID_T 1
2857 1.61.2.1 pavel EOF
2858 1.6 tv
2859 1.6 tv fi
2860 1.61.2.2 snj echo "$as_me:2860: checking for long long" >&5
2861 1.6 tv echo $ECHO_N "checking for long long... $ECHO_C" >&6
2862 1.6 tv if test "${ac_cv_type_long_long+set}" = set; then
2863 1.6 tv echo $ECHO_N "(cached) $ECHO_C" >&6
2864 1.6 tv else
2865 1.6 tv cat >conftest.$ac_ext <<_ACEOF
2866 1.61.2.2 snj #line 2866 "configure"
2867 1.61.2.1 pavel #include "confdefs.h"
2868 1.6 tv $ac_includes_default
2869 1.6 tv int
2870 1.6 tv main ()
2871 1.6 tv {
2872 1.6 tv if ((long long *) 0)
2873 1.6 tv return 0;
2874 1.6 tv if (sizeof (long long))
2875 1.6 tv return 0;
2876 1.6 tv ;
2877 1.6 tv return 0;
2878 1.6 tv }
2879 1.6 tv _ACEOF
2880 1.6 tv rm -f conftest.$ac_objext
2881 1.61.2.2 snj if { (eval echo "$as_me:2881: \"$ac_compile\"") >&5
2882 1.61.2.1 pavel (eval $ac_compile) 2>&5
2883 1.6 tv ac_status=$?
2884 1.61.2.2 snj echo "$as_me:2884: \$? = $ac_status" >&5
2885 1.6 tv (exit $ac_status); } &&
2886 1.61.2.1 pavel { ac_try='test -s conftest.$ac_objext'
2887 1.61.2.2 snj { (eval echo "$as_me:2887: \"$ac_try\"") >&5
2888 1.48 jmc (eval $ac_try) 2>&5
2889 1.48 jmc ac_status=$?
2890 1.61.2.2 snj echo "$as_me:2890: \$? = $ac_status" >&5
2891 1.6 tv (exit $ac_status); }; }; then
2892 1.6 tv ac_cv_type_long_long=yes
2893 1.6 tv else
2894 1.6 tv echo "$as_me: failed program was:" >&5
2895 1.61.2.1 pavel cat conftest.$ac_ext >&5
2896 1.6 tv ac_cv_type_long_long=no
2897 1.6 tv fi
2898 1.61.2.1 pavel rm -f conftest.$ac_objext conftest.$ac_ext
2899 1.6 tv fi
2900 1.61.2.2 snj echo "$as_me:2900: result: $ac_cv_type_long_long" >&5
2901 1.6 tv echo "${ECHO_T}$ac_cv_type_long_long" >&6
2902 1.6 tv if test $ac_cv_type_long_long = yes; then
2903 1.6 tv
2904 1.61.2.1 pavel cat >>confdefs.h <<EOF
2905 1.52 dbj #define HAVE_LONG_LONG 1
2906 1.61.2.1 pavel EOF
2907 1.6 tv
2908 1.6 tv fi
2909 1.61.2.2 snj echo "$as_me:2909: checking for u_long" >&5
2910 1.38 fredb echo $ECHO_N "checking for u_long... $ECHO_C" >&6
2911 1.38 fredb if test "${ac_cv_type_u_long+set}" = set; then
2912 1.38 fredb echo $ECHO_N "(cached) $ECHO_C" >&6
2913 1.38 fredb else
2914 1.38 fredb cat >conftest.$ac_ext <<_ACEOF
2915 1.61.2.2 snj #line 2915 "configure"
2916 1.61.2.1 pavel #include "confdefs.h"
2917 1.38 fredb $ac_includes_default
2918 1.38 fredb int
2919 1.38 fredb main ()
2920 1.38 fredb {
2921 1.38 fredb if ((u_long *) 0)
2922 1.38 fredb return 0;
2923 1.38 fredb if (sizeof (u_long))
2924 1.38 fredb return 0;
2925 1.38 fredb ;
2926 1.38 fredb return 0;
2927 1.38 fredb }
2928 1.38 fredb _ACEOF
2929 1.38 fredb rm -f conftest.$ac_objext
2930 1.61.2.2 snj if { (eval echo "$as_me:2930: \"$ac_compile\"") >&5
2931 1.61.2.1 pavel (eval $ac_compile) 2>&5
2932 1.38 fredb ac_status=$?
2933 1.61.2.2 snj echo "$as_me:2933: \$? = $ac_status" >&5
2934 1.38 fredb (exit $ac_status); } &&
2935 1.61.2.1 pavel { ac_try='test -s conftest.$ac_objext'
2936 1.61.2.2 snj { (eval echo "$as_me:2936: \"$ac_try\"") >&5
2937 1.38 fredb (eval $ac_try) 2>&5
2938 1.38 fredb ac_status=$?
2939 1.61.2.2 snj echo "$as_me:2939: \$? = $ac_status" >&5
2940 1.38 fredb (exit $ac_status); }; }; then
2941 1.38 fredb ac_cv_type_u_long=yes
2942 1.38 fredb else
2943 1.38 fredb echo "$as_me: failed program was:" >&5
2944 1.61.2.1 pavel cat conftest.$ac_ext >&5
2945 1.38 fredb ac_cv_type_u_long=no
2946 1.38 fredb fi
2947 1.61.2.1 pavel rm -f conftest.$ac_objext conftest.$ac_ext
2948 1.38 fredb fi
2949 1.61.2.2 snj echo "$as_me:2949: result: $ac_cv_type_u_long" >&5
2950 1.38 fredb echo "${ECHO_T}$ac_cv_type_u_long" >&6
2951 1.38 fredb if test $ac_cv_type_u_long = yes; then
2952 1.38 fredb
2953 1.61.2.1 pavel cat >>confdefs.h <<EOF
2954 1.38 fredb #define HAVE_U_LONG 1
2955 1.61.2.1 pavel EOF
2956 1.39 fredb
2957 1.38 fredb fi
2958 1.61.2.2 snj echo "$as_me:2958: checking for u_char" >&5
2959 1.45 jmc echo $ECHO_N "checking for u_char... $ECHO_C" >&6
2960 1.45 jmc if test "${ac_cv_type_u_char+set}" = set; then
2961 1.45 jmc echo $ECHO_N "(cached) $ECHO_C" >&6
2962 1.45 jmc else
2963 1.45 jmc cat >conftest.$ac_ext <<_ACEOF
2964 1.61.2.2 snj #line 2964 "configure"
2965 1.61.2.1 pavel #include "confdefs.h"
2966 1.45 jmc $ac_includes_default
2967 1.45 jmc int
2968 1.45 jmc main ()
2969 1.45 jmc {
2970 1.45 jmc if ((u_char *) 0)
2971 1.45 jmc return 0;
2972 1.45 jmc if (sizeof (u_char))
2973 1.45 jmc return 0;
2974 1.45 jmc ;
2975 1.45 jmc return 0;
2976 1.45 jmc }
2977 1.45 jmc _ACEOF
2978 1.45 jmc rm -f conftest.$ac_objext
2979 1.61.2.2 snj if { (eval echo "$as_me:2979: \"$ac_compile\"") >&5
2980 1.61.2.1 pavel (eval $ac_compile) 2>&5
2981 1.45 jmc ac_status=$?
2982 1.61.2.2 snj echo "$as_me:2982: \$? = $ac_status" >&5
2983 1.45 jmc (exit $ac_status); } &&
2984 1.61.2.1 pavel { ac_try='test -s conftest.$ac_objext'
2985 1.61.2.2 snj { (eval echo "$as_me:2985: \"$ac_try\"") >&5
2986 1.53 dogcow (eval $ac_try) 2>&5
2987 1.53 dogcow ac_status=$?
2988 1.61.2.2 snj echo "$as_me:2988: \$? = $ac_status" >&5
2989 1.45 jmc (exit $ac_status); }; }; then
2990 1.45 jmc ac_cv_type_u_char=yes
2991 1.45 jmc else
2992 1.45 jmc echo "$as_me: failed program was:" >&5
2993 1.61.2.1 pavel cat conftest.$ac_ext >&5
2994 1.45 jmc ac_cv_type_u_char=no
2995 1.45 jmc fi
2996 1.61.2.1 pavel rm -f conftest.$ac_objext conftest.$ac_ext
2997 1.45 jmc fi
2998 1.61.2.2 snj echo "$as_me:2998: result: $ac_cv_type_u_char" >&5
2999 1.45 jmc echo "${ECHO_T}$ac_cv_type_u_char" >&6
3000 1.45 jmc if test $ac_cv_type_u_char = yes; then
3001 1.45 jmc
3002 1.61.2.1 pavel cat >>confdefs.h <<EOF
3003 1.45 jmc #define HAVE_U_CHAR 1
3004 1.61.2.1 pavel EOF
3005 1.45 jmc
3006 1.45 jmc fi
3007 1.61.2.2 snj echo "$as_me:3007: checking for u_short" >&5
3008 1.45 jmc echo $ECHO_N "checking for u_short... $ECHO_C" >&6
3009 1.45 jmc if test "${ac_cv_type_u_short+set}" = set; then
3010 1.45 jmc echo $ECHO_N "(cached) $ECHO_C" >&6
3011 1.45 jmc else
3012 1.45 jmc cat >conftest.$ac_ext <<_ACEOF
3013 1.61.2.2 snj #line 3013 "configure"
3014 1.61.2.1 pavel #include "confdefs.h"
3015 1.45 jmc $ac_includes_default
3016 1.45 jmc int
3017 1.45 jmc main ()
3018 1.45 jmc {
3019 1.45 jmc if ((u_short *) 0)
3020 1.45 jmc return 0;
3021 1.45 jmc if (sizeof (u_short))
3022 1.45 jmc return 0;
3023 1.45 jmc ;
3024 1.45 jmc return 0;
3025 1.45 jmc }
3026 1.45 jmc _ACEOF
3027 1.45 jmc rm -f conftest.$ac_objext
3028 1.61.2.2 snj if { (eval echo "$as_me:3028: \"$ac_compile\"") >&5
3029 1.61.2.1 pavel (eval $ac_compile) 2>&5
3030 1.45 jmc ac_status=$?
3031 1.61.2.2 snj echo "$as_me:3031: \$? = $ac_status" >&5
3032 1.45 jmc (exit $ac_status); } &&
3033 1.61.2.1 pavel { ac_try='test -s conftest.$ac_objext'
3034 1.61.2.2 snj { (eval echo "$as_me:3034: \"$ac_try\"") >&5
3035 1.53 dogcow (eval $ac_try) 2>&5
3036 1.53 dogcow ac_status=$?
3037 1.61.2.2 snj echo "$as_me:3037: \$? = $ac_status" >&5
3038 1.45 jmc (exit $ac_status); }; }; then
3039 1.45 jmc ac_cv_type_u_short=yes
3040 1.45 jmc else
3041 1.45 jmc echo "$as_me: failed program was:" >&5
3042 1.61.2.1 pavel cat conftest.$ac_ext >&5
3043 1.45 jmc ac_cv_type_u_short=no
3044 1.45 jmc fi
3045 1.61.2.1 pavel rm -f conftest.$ac_objext conftest.$ac_ext
3046 1.45 jmc fi
3047 1.61.2.2 snj echo "$as_me:3047: result: $ac_cv_type_u_short" >&5
3048 1.45 jmc echo "${ECHO_T}$ac_cv_type_u_short" >&6
3049 1.45 jmc if test $ac_cv_type_u_short = yes; then
3050 1.45 jmc
3051 1.61.2.1 pavel cat >>confdefs.h <<EOF
3052 1.45 jmc #define HAVE_U_SHORT 1
3053 1.61.2.1 pavel EOF
3054 1.45 jmc
3055 1.45 jmc fi
3056 1.61.2.2 snj echo "$as_me:3056: checking for u_int" >&5
3057 1.45 jmc echo $ECHO_N "checking for u_int... $ECHO_C" >&6
3058 1.45 jmc if test "${ac_cv_type_u_int+set}" = set; then
3059 1.45 jmc echo $ECHO_N "(cached) $ECHO_C" >&6
3060 1.45 jmc else
3061 1.45 jmc cat >conftest.$ac_ext <<_ACEOF
3062 1.61.2.2 snj #line 3062 "configure"
3063 1.61.2.1 pavel #include "confdefs.h"
3064 1.45 jmc $ac_includes_default
3065 1.45 jmc int
3066 1.45 jmc main ()
3067 1.45 jmc {
3068 1.45 jmc if ((u_int *) 0)
3069 1.45 jmc return 0;
3070 1.45 jmc if (sizeof (u_int))
3071 1.45 jmc return 0;
3072 1.45 jmc ;
3073 1.45 jmc return 0;
3074 1.45 jmc }
3075 1.45 jmc _ACEOF
3076 1.45 jmc rm -f conftest.$ac_objext
3077 1.61.2.2 snj if { (eval echo "$as_me:3077: \"$ac_compile\"") >&5
3078 1.61.2.1 pavel (eval $ac_compile) 2>&5
3079 1.45 jmc ac_status=$?
3080 1.61.2.2 snj echo "$as_me:3080: \$? = $ac_status" >&5
3081 1.45 jmc (exit $ac_status); } &&
3082 1.61.2.1 pavel { ac_try='test -s conftest.$ac_objext'
3083 1.61.2.2 snj { (eval echo "$as_me:3083: \"$ac_try\"") >&5
3084 1.50 jmc (eval $ac_try) 2>&5
3085 1.50 jmc ac_status=$?
3086 1.61.2.2 snj echo "$as_me:3086: \$? = $ac_status" >&5
3087 1.45 jmc (exit $ac_status); }; }; then
3088 1.45 jmc ac_cv_type_u_int=yes
3089 1.45 jmc else
3090 1.45 jmc echo "$as_me: failed program was:" >&5
3091 1.61.2.1 pavel cat conftest.$ac_ext >&5
3092 1.45 jmc ac_cv_type_u_int=no
3093 1.45 jmc fi
3094 1.61.2.1 pavel rm -f conftest.$ac_objext conftest.$ac_ext
3095 1.45 jmc fi
3096 1.61.2.2 snj echo "$as_me:3096: result: $ac_cv_type_u_int" >&5
3097 1.45 jmc echo "${ECHO_T}$ac_cv_type_u_int" >&6
3098 1.45 jmc if test $ac_cv_type_u_int = yes; then
3099 1.45 jmc
3100 1.61.2.1 pavel cat >>confdefs.h <<EOF
3101 1.45 jmc #define HAVE_U_INT 1
3102 1.61.2.1 pavel EOF
3103 1.45 jmc
3104 1.45 jmc fi
3105 1.61.2.2 snj echo "$as_me:3105: checking for u_quad_t" >&5
3106 1.7 tv echo $ECHO_N "checking for u_quad_t... $ECHO_C" >&6
3107 1.7 tv if test "${ac_cv_type_u_quad_t+set}" = set; then
3108 1.7 tv echo $ECHO_N "(cached) $ECHO_C" >&6
3109 1.7 tv else
3110 1.7 tv cat >conftest.$ac_ext <<_ACEOF
3111 1.61.2.2 snj #line 3111 "configure"
3112 1.61.2.1 pavel #include "confdefs.h"
3113 1.7 tv $ac_includes_default
3114 1.7 tv int
3115 1.7 tv main ()
3116 1.7 tv {
3117 1.7 tv if ((u_quad_t *) 0)
3118 1.7 tv return 0;
3119 1.7 tv if (sizeof (u_quad_t))
3120 1.7 tv return 0;
3121 1.7 tv ;
3122 1.7 tv return 0;
3123 1.7 tv }
3124 1.7 tv _ACEOF
3125 1.7 tv rm -f conftest.$ac_objext
3126 1.61.2.2 snj if { (eval echo "$as_me:3126: \"$ac_compile\"") >&5
3127 1.61.2.1 pavel (eval $ac_compile) 2>&5
3128 1.7 tv ac_status=$?
3129 1.61.2.2 snj echo "$as_me:3129: \$? = $ac_status" >&5
3130 1.7 tv (exit $ac_status); } &&
3131 1.61.2.1 pavel { ac_try='test -s conftest.$ac_objext'
3132 1.61.2.2 snj { (eval echo "$as_me:3132: \"$ac_try\"") >&5
3133 1.48 jmc (eval $ac_try) 2>&5
3134 1.48 jmc ac_status=$?
3135 1.61.2.2 snj echo "$as_me:3135: \$? = $ac_status" >&5
3136 1.7 tv (exit $ac_status); }; }; then
3137 1.7 tv ac_cv_type_u_quad_t=yes
3138 1.7 tv else
3139 1.7 tv echo "$as_me: failed program was:" >&5
3140 1.61.2.1 pavel cat conftest.$ac_ext >&5
3141 1.7 tv ac_cv_type_u_quad_t=no
3142 1.7 tv fi
3143 1.61.2.1 pavel rm -f conftest.$ac_objext conftest.$ac_ext
3144 1.7 tv fi
3145 1.61.2.2 snj echo "$as_me:3145: result: $ac_cv_type_u_quad_t" >&5
3146 1.7 tv echo "${ECHO_T}$ac_cv_type_u_quad_t" >&6
3147 1.7 tv if test $ac_cv_type_u_quad_t = yes; then
3148 1.7 tv
3149 1.61.2.1 pavel cat >>confdefs.h <<EOF
3150 1.7 tv #define HAVE_U_QUAD_T 1
3151 1.61.2.1 pavel EOF
3152 1.7 tv
3153 1.7 tv fi
3154 1.35 thorpej
3155 1.61.2.2 snj echo "$as_me:3155: checking for socklen_t" >&5
3156 1.34 thorpej echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
3157 1.34 thorpej if test "${ac_cv_type_socklen_t+set}" = set; then
3158 1.34 thorpej echo $ECHO_N "(cached) $ECHO_C" >&6
3159 1.34 thorpej else
3160 1.34 thorpej cat >conftest.$ac_ext <<_ACEOF
3161 1.61.2.2 snj #line 3161 "configure"
3162 1.61.2.1 pavel #include "confdefs.h"
3163 1.35 thorpej #include <sys/types.h>
3164 1.35 thorpej #include <sys/socket.h>
3165 1.35 thorpej
3166 1.34 thorpej int
3167 1.34 thorpej main ()
3168 1.34 thorpej {
3169 1.34 thorpej if ((socklen_t *) 0)
3170 1.34 thorpej return 0;
3171 1.34 thorpej if (sizeof (socklen_t))
3172 1.34 thorpej return 0;
3173 1.34 thorpej ;
3174 1.34 thorpej return 0;
3175 1.34 thorpej }
3176 1.34 thorpej _ACEOF
3177 1.34 thorpej rm -f conftest.$ac_objext
3178 1.61.2.2 snj if { (eval echo "$as_me:3178: \"$ac_compile\"") >&5
3179 1.61.2.1 pavel (eval $ac_compile) 2>&5
3180 1.34 thorpej ac_status=$?
3181 1.61.2.2 snj echo "$as_me:3181: \$? = $ac_status" >&5
3182 1.34 thorpej (exit $ac_status); } &&
3183 1.61.2.1 pavel { ac_try='test -s conftest.$ac_objext'
3184 1.61.2.2 snj { (eval echo "$as_me:3184: \"$ac_try\"") >&5
3185 1.53 dogcow (eval $ac_try) 2>&5
3186 1.53 dogcow ac_status=$?
3187 1.61.2.2 snj echo "$as_me:3187: \$? = $ac_status" >&5
3188 1.34 thorpej (exit $ac_status); }; }; then
3189 1.34 thorpej ac_cv_type_socklen_t=yes
3190 1.34 thorpej else
3191 1.34 thorpej echo "$as_me: failed program was:" >&5
3192 1.61.2.1 pavel cat conftest.$ac_ext >&5
3193 1.34 thorpej ac_cv_type_socklen_t=no
3194 1.34 thorpej fi
3195 1.61.2.1 pavel rm -f conftest.$ac_objext conftest.$ac_ext
3196 1.34 thorpej fi
3197 1.61.2.2 snj echo "$as_me:3197: result: $ac_cv_type_socklen_t" >&5
3198 1.34 thorpej echo "${ECHO_T}$ac_cv_type_socklen_t" >&6
3199 1.34 thorpej if test $ac_cv_type_socklen_t = yes; then
3200 1.54 wiz
3201 1.61.2.1 pavel cat >>confdefs.h <<\EOF
3202 1.34 thorpej #define HAVE_SOCKLEN_T 1
3203 1.61.2.1 pavel EOF
3204 1.34 thorpej
3205 1.34 thorpej fi
3206 1.34 thorpej
3207 1.61.2.2 snj echo "$as_me:3207: checking for uint8_t" >&5
3208 1.9 tv echo $ECHO_N "checking for uint8_t... $ECHO_C" >&6
3209 1.9 tv if test "${ac_cv_type_uint8_t+set}" = set; then
3210 1.6 tv echo $ECHO_N "(cached) $ECHO_C" >&6
3211 1.6 tv else
3212 1.6 tv cat >conftest.$ac_ext <<_ACEOF
3213 1.61.2.2 snj #line 3213 "configure"
3214 1.61.2.1 pavel #include "confdefs.h"
3215 1.6 tv $ac_includes_default
3216 1.6 tv int
3217 1.6 tv main ()
3218 1.6 tv {
3219 1.9 tv if ((uint8_t *) 0)
3220 1.6 tv return 0;
3221 1.9 tv if (sizeof (uint8_t))
3222 1.6 tv return 0;
3223 1.6 tv ;
3224 1.6 tv return 0;
3225 1.6 tv }
3226 1.6 tv _ACEOF
3227 1.6 tv rm -f conftest.$ac_objext
3228 1.61.2.2 snj if { (eval echo "$as_me:3228: \"$ac_compile\"") >&5
3229 1.61.2.1 pavel (eval $ac_compile) 2>&5
3230 1.6 tv ac_status=$?
3231 1.61.2.2 snj echo "$as_me:3231: \$? = $ac_status" >&5
3232 1.6 tv (exit $ac_status); } &&
3233 1.61.2.1 pavel { ac_try='test -s conftest.$ac_objext'
3234 1.61.2.2 snj { (eval echo "$as_me:3234: \"$ac_try\"") >&5
3235 1.53 dogcow (eval $ac_try) 2>&5
3236 1.53 dogcow ac_status=$?
3237 1.61.2.2 snj echo "$as_me:3237: \$? = $ac_status" >&5
3238 1.6 tv (exit $ac_status); }; }; then
3239 1.9 tv ac_cv_type_uint8_t=yes
3240 1.9 tv else
3241 1.9 tv echo "$as_me: failed program was:" >&5
3242 1.61.2.1 pavel cat conftest.$ac_ext >&5
3243 1.9 tv ac_cv_type_uint8_t=no
3244 1.9 tv fi
3245 1.61.2.1 pavel rm -f conftest.$ac_objext conftest.$ac_ext
3246 1.9 tv fi
3247 1.61.2.2 snj echo "$as_me:3247: result: $ac_cv_type_uint8_t" >&5
3248 1.9 tv echo "${ECHO_T}$ac_cv_type_uint8_t" >&6
3249 1.9 tv if test $ac_cv_type_uint8_t = yes; then
3250 1.9 tv :
3251 1.9 tv else
3252 1.9 tv
3253 1.61.2.2 snj echo "$as_me:3253: checking for u_int8_t" >&5
3254 1.9 tv echo $ECHO_N "checking for u_int8_t... $ECHO_C" >&6
3255 1.9 tv if test "${ac_cv_type_u_int8_t+set}" = set; then
3256 1.9 tv echo $ECHO_N "(cached) $ECHO_C" >&6
3257 1.9 tv else
3258 1.9 tv cat >conftest.$ac_ext <<_ACEOF
3259 1.61.2.2 snj #line 3259 "configure"
3260 1.61.2.1 pavel #include "confdefs.h"
3261 1.9 tv $ac_includes_default
3262 1.9 tv int
3263 1.9 tv main ()
3264 1.9 tv {
3265 1.9 tv if ((u_int8_t *) 0)
3266 1.9 tv return 0;
3267 1.9 tv if (sizeof (u_int8_t))
3268 1.9 tv return 0;
3269 1.9 tv ;
3270 1.9 tv return 0;
3271 1.9 tv }
3272 1.9 tv _ACEOF
3273 1.9 tv rm -f conftest.$ac_objext
3274 1.61.2.2 snj if { (eval echo "$as_me:3274: \"$ac_compile\"") >&5
3275 1.61.2.1 pavel (eval $ac_compile) 2>&5
3276 1.9 tv ac_status=$?
3277 1.61.2.2 snj echo "$as_me:3277: \$? = $ac_status" >&5
3278 1.9 tv (exit $ac_status); } &&
3279 1.61.2.1 pavel { ac_try='test -s conftest.$ac_objext'
3280 1.61.2.2 snj { (eval echo "$as_me:3280: \"$ac_try\"") >&5
3281 1.48 jmc (eval $ac_try) 2>&5
3282 1.48 jmc ac_status=$?
3283 1.61.2.2 snj echo "$as_me:3283: \$? = $ac_status" >&5
3284 1.9 tv (exit $ac_status); }; }; then
3285 1.6 tv ac_cv_type_u_int8_t=yes
3286 1.6 tv else
3287 1.6 tv echo "$as_me: failed program was:" >&5
3288 1.61.2.1 pavel cat conftest.$ac_ext >&5
3289 1.6 tv ac_cv_type_u_int8_t=no
3290 1.6 tv fi
3291 1.61.2.1 pavel rm -f conftest.$ac_objext conftest.$ac_ext
3292 1.6 tv fi
3293 1.61.2.2 snj echo "$as_me:3293: result: $ac_cv_type_u_int8_t" >&5
3294 1.9 tv echo "${ECHO_T}$ac_cv_type_u_int8_t" >&6
3295 1.9 tv if test $ac_cv_type_u_int8_t = yes; then
3296 1.54 wiz
3297 1.61.2.1 pavel cat >>confdefs.h <<\EOF
3298 1.9 tv #define uint8_t u_int8_t
3299 1.61.2.1 pavel EOF
3300 1.9 tv
3301 1.9 tv else
3302 1.61.2.2 snj { { echo "$as_me:3302: error: cannot find a suitable type for uint8_t" >&5
3303 1.9 tv echo "$as_me: error: cannot find a suitable type for uint8_t" >&2;}
3304 1.9 tv { (exit 1); exit 1; }; }
3305 1.9 tv fi
3306 1.9 tv
3307 1.9 tv fi
3308 1.9 tv
3309 1.61.2.2 snj echo "$as_me:3309: checking for u_int8_t" >&5
3310 1.9 tv echo $ECHO_N "checking for u_int8_t... $ECHO_C" >&6
3311 1.9 tv if test "${ac_cv_type_u_int8_t+set}" = set; then
3312 1.9 tv echo $ECHO_N "(cached) $ECHO_C" >&6
3313 1.9 tv else
3314 1.9 tv cat >conftest.$ac_ext <<_ACEOF
3315 1.61.2.2 snj #line 3315 "configure"
3316 1.61.2.1 pavel #include "confdefs.h"
3317 1.9 tv $ac_includes_default
3318 1.9 tv int
3319 1.9 tv main ()
3320 1.9 tv {
3321 1.9 tv if ((u_int8_t *) 0)
3322 1.9 tv return 0;
3323 1.9 tv if (sizeof (u_int8_t))
3324 1.9 tv return 0;
3325 1.9 tv ;
3326 1.9 tv return 0;
3327 1.9 tv }
3328 1.9 tv _ACEOF
3329 1.9 tv rm -f conftest.$ac_objext
3330 1.61.2.2 snj if { (eval echo "$as_me:3330: \"$ac_compile\"") >&5
3331 1.61.2.1 pavel (eval $ac_compile) 2>&5
3332 1.9 tv ac_status=$?
3333 1.61.2.2 snj echo "$as_me:3333: \$? = $ac_status" >&5
3334 1.9 tv (exit $ac_status); } &&
3335 1.61.2.1 pavel { ac_try='test -s conftest.$ac_objext'
3336 1.61.2.2 snj { (eval echo "$as_me:3336: \"$ac_try\"") >&5
3337 1.53 dogcow (eval $ac_try) 2>&5
3338 1.53 dogcow ac_status=$?
3339 1.61.2.2 snj echo "$as_me:3339: \$? = $ac_status" >&5
3340 1.9 tv (exit $ac_status); }; }; then
3341 1.9 tv ac_cv_type_u_int8_t=yes
3342 1.9 tv else
3343 1.9 tv echo "$as_me: failed program was:" >&5
3344 1.61.2.1 pavel cat conftest.$ac_ext >&5
3345 1.9 tv ac_cv_type_u_int8_t=no
3346 1.9 tv fi
3347 1.61.2.1 pavel rm -f conftest.$ac_objext conftest.$ac_ext
3348 1.9 tv fi
3349 1.61.2.2 snj echo "$as_me:3349: result: $ac_cv_type_u_int8_t" >&5
3350 1.6 tv echo "${ECHO_T}$ac_cv_type_u_int8_t" >&6
3351 1.6 tv if test $ac_cv_type_u_int8_t = yes; then
3352 1.6 tv :
3353 1.6 tv else
3354 1.6 tv
3355 1.61.2.2 snj echo "$as_me:3355: checking for uint8_t" >&5
3356 1.6 tv echo $ECHO_N "checking for uint8_t... $ECHO_C" >&6
3357 1.6 tv if test "${ac_cv_type_uint8_t+set}" = set; then
3358 1.6 tv echo $ECHO_N "(cached) $ECHO_C" >&6
3359 1.6 tv else
3360 1.6 tv cat >conftest.$ac_ext <<_ACEOF
3361 1.61.2.2 snj #line 3361 "configure"
3362 1.61.2.1 pavel #include "confdefs.h"
3363 1.6 tv $ac_includes_default
3364 1.6 tv int
3365 1.6 tv main ()
3366 1.6 tv {
3367 1.6 tv if ((uint8_t *) 0)
3368 1.6 tv return 0;
3369 1.6 tv if (sizeof (uint8_t))
3370 1.6 tv return 0;
3371 1.6 tv ;
3372 1.6 tv return 0;
3373 1.6 tv }
3374 1.6 tv _ACEOF
3375 1.6 tv rm -f conftest.$ac_objext
3376 1.61.2.2 snj if { (eval echo "$as_me:3376: \"$ac_compile\"") >&5
3377 1.61.2.1 pavel (eval $ac_compile) 2>&5
3378 1.6 tv ac_status=$?
3379 1.61.2.2 snj echo "$as_me:3379: \$? = $ac_status" >&5
3380 1.6 tv (exit $ac_status); } &&
3381 1.61.2.1 pavel { ac_try='test -s conftest.$ac_objext'
3382 1.61.2.2 snj { (eval echo "$as_me:3382: \"$ac_try\"") >&5
3383 1.48 jmc (eval $ac_try) 2>&5
3384 1.48 jmc ac_status=$?
3385 1.61.2.2 snj echo "$as_me:3385: \$? = $ac_status" >&5
3386 1.6 tv (exit $ac_status); }; }; then
3387 1.6 tv ac_cv_type_uint8_t=yes
3388 1.4 tv else
3389 1.4 tv echo "$as_me: failed program was:" >&5
3390 1.61.2.1 pavel cat conftest.$ac_ext >&5
3391 1.6 tv ac_cv_type_uint8_t=no
3392 1.4 tv fi
3393 1.61.2.1 pavel rm -f conftest.$ac_objext conftest.$ac_ext
3394 1.4 tv fi
3395 1.61.2.2 snj echo "$as_me:3395: result: $ac_cv_type_uint8_t" >&5
3396 1.6 tv echo "${ECHO_T}$ac_cv_type_uint8_t" >&6
3397 1.6 tv if test $ac_cv_type_uint8_t = yes; then
3398 1.54 wiz
3399 1.61.2.1 pavel cat >>confdefs.h <<\EOF
3400 1.6 tv #define u_int8_t uint8_t
3401 1.61.2.1 pavel EOF
3402 1.4 tv
3403 1.6 tv else
3404 1.61.2.2 snj { { echo "$as_me:3404: error: cannot find a suitable type for u_int8_t" >&5
3405 1.6 tv echo "$as_me: error: cannot find a suitable type for u_int8_t" >&2;}
3406 1.6 tv { (exit 1); exit 1; }; }
3407 1.6 tv fi
3408 1.6 tv
3409 1.4 tv fi
3410 1.4 tv
3411 1.61.2.2 snj echo "$as_me:3411: checking for uint16_t" >&5
3412 1.9 tv echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6
3413 1.9 tv if test "${ac_cv_type_uint16_t+set}" = set; then
3414 1.9 tv echo $ECHO_N "(cached) $ECHO_C" >&6
3415 1.9 tv else
3416 1.9 tv cat >conftest.$ac_ext <<_ACEOF
3417 1.61.2.2 snj #line 3417 "configure"
3418 1.61.2.1 pavel #include "confdefs.h"
3419 1.9 tv $ac_includes_default
3420 1.9 tv int
3421 1.9 tv main ()
3422 1.9 tv {
3423 1.9 tv if ((uint16_t *) 0)
3424 1.9 tv return 0;
3425 1.9 tv if (sizeof (uint16_t))
3426 1.9 tv return 0;
3427 1.9 tv ;
3428 1.9 tv return 0;
3429 1.9 tv }
3430 1.9 tv _ACEOF
3431 1.9 tv rm -f conftest.$ac_objext
3432 1.61.2.2 snj if { (eval echo "$as_me:3432: \"$ac_compile\"") >&5
3433 1.61.2.1 pavel (eval $ac_compile) 2>&5
3434 1.9 tv ac_status=$?
3435 1.61.2.2 snj echo "$as_me:3435: \$? = $ac_status" >&5
3436 1.9 tv (exit $ac_status); } &&
3437 1.61.2.1 pavel { ac_try='test -s conftest.$ac_objext'
3438 1.61.2.2 snj { (eval echo "$as_me:3438: \"$ac_try\"") >&5
3439 1.61 christos (eval $ac_try) 2>&5
3440 1.61 christos ac_status=$?
3441 1.61.2.2 snj echo "$as_me:3441: \$? = $ac_status" >&5
3442 1.9 tv (exit $ac_status); }; }; then
3443 1.9 tv ac_cv_type_uint16_t=yes
3444 1.9 tv else
3445 1.9 tv echo "$as_me: failed program was:" >&5
3446 1.61.2.1 pavel cat conftest.$ac_ext >&5
3447 1.9 tv ac_cv_type_uint16_t=no
3448 1.9 tv fi
3449 1.61.2.1 pavel rm -f conftest.$ac_objext conftest.$ac_ext
3450 1.9 tv fi
3451 1.61.2.2 snj echo "$as_me:3451: result: $ac_cv_type_uint16_t" >&5
3452 1.9 tv echo "${ECHO_T}$ac_cv_type_uint16_t" >&6
3453 1.9 tv if test $ac_cv_type_uint16_t = yes; then
3454 1.9 tv :
3455 1.9 tv else
3456 1.9 tv
3457 1.61.2.2 snj echo "$as_me:3457: checking for u_int16_t" >&5
3458 1.9 tv echo $ECHO_N "checking for u_int16_t... $ECHO_C" >&6
3459 1.9 tv if test "${ac_cv_type_u_int16_t+set}" = set; then
3460 1.9 tv echo $ECHO_N "(cached) $ECHO_C" >&6
3461 1.9 tv else
3462 1.9 tv cat >conftest.$ac_ext <<_ACEOF
3463 1.61.2.2 snj #line 3463 "configure"
3464 1.61.2.1 pavel #include "confdefs.h"
3465 1.9 tv $ac_includes_default
3466 1.9 tv int
3467 1.9 tv main ()
3468 1.9 tv {
3469 1.9 tv if ((u_int16_t *) 0)
3470 1.9 tv return 0;
3471 1.9 tv if (sizeof (u_int16_t))
3472 1.9 tv return 0;
3473 1.9 tv ;
3474 1.9 tv return 0;
3475 1.9 tv }
3476 1.9 tv _ACEOF
3477 1.9 tv rm -f conftest.$ac_objext
3478 1.61.2.2 snj if { (eval echo "$as_me:3478: \"$ac_compile\"") >&5
3479 1.61.2.1 pavel (eval $ac_compile) 2>&5
3480 1.9 tv ac_status=$?
3481 1.61.2.2 snj echo "$as_me:3481: \$? = $ac_status" >&5
3482 1.9 tv (exit $ac_status); } &&
3483 1.61.2.1 pavel { ac_try='test -s conftest.$ac_objext'
3484 1.61.2.2 snj { (eval echo "$as_me:3484: \"$ac_try\"") >&5
3485 1.61 christos (eval $ac_try) 2>&5
3486 1.61 christos ac_status=$?
3487 1.61.2.2 snj echo "$as_me:3487: \$? = $ac_status" >&5
3488 1.9 tv (exit $ac_status); }; }; then
3489 1.9 tv ac_cv_type_u_int16_t=yes
3490 1.9 tv else
3491 1.9 tv echo "$as_me: failed program was:" >&5
3492 1.61.2.1 pavel cat conftest.$ac_ext >&5
3493 1.9 tv ac_cv_type_u_int16_t=no
3494 1.9 tv fi
3495 1.61.2.1 pavel rm -f conftest.$ac_objext conftest.$ac_ext
3496 1.9 tv fi
3497 1.61.2.2 snj echo "$as_me:3497: result: $ac_cv_type_u_int16_t" >&5
3498 1.9 tv echo "${ECHO_T}$ac_cv_type_u_int16_t" >&6
3499 1.9 tv if test $ac_cv_type_u_int16_t = yes; then
3500 1.54 wiz
3501 1.61.2.1 pavel cat >>confdefs.h <<\EOF
3502 1.9 tv #define uint16_t u_int16_t
3503 1.61.2.1 pavel EOF
3504 1.9 tv
3505 1.9 tv else
3506 1.61.2.2 snj { { echo "$as_me:3506: error: cannot find a suitable type for uint16_t" >&5
3507 1.9 tv echo "$as_me: error: cannot find a suitable type for uint16_t" >&2;}
3508 1.9 tv { (exit 1); exit 1; }; }
3509 1.9 tv fi
3510 1.9 tv
3511 1.9 tv fi
3512 1.9 tv
3513 1.61.2.2 snj echo "$as_me:3513: checking for u_int16_t" >&5
3514 1.6 tv echo $ECHO_N "checking for u_int16_t... $ECHO_C" >&6
3515 1.6 tv if test "${ac_cv_type_u_int16_t+set}" = set; then
3516 1.1 tv echo $ECHO_N "(cached) $ECHO_C" >&6
3517 1.1 tv else
3518 1.1 tv cat >conftest.$ac_ext <<_ACEOF
3519 1.61.2.2 snj #line 3519 "configure"
3520 1.61.2.1 pavel #include "confdefs.h"
3521 1.6 tv $ac_includes_default
3522 1.6 tv int
3523 1.6 tv main ()
3524 1.6 tv {
3525 1.6 tv if ((u_int16_t *) 0)
3526 1.6 tv return 0;
3527 1.6 tv if (sizeof (u_int16_t))
3528 1.6 tv return 0;
3529 1.6 tv ;
3530 1.6 tv return 0;
3531 1.6 tv }
3532 1.1 tv _ACEOF
3533 1.6 tv rm -f conftest.$ac_objext
3534 1.61.2.2 snj if { (eval echo "$as_me:3534: \"$ac_compile\"") >&5
3535 1.61.2.1 pavel (eval $ac_compile) 2>&5
3536 1.6 tv ac_status=$?
3537 1.61.2.2 snj echo "$as_me:3537: \$? = $ac_status" >&5
3538 1.6 tv (exit $ac_status); } &&
3539 1.61.2.1 pavel { ac_try='test -s conftest.$ac_objext'
3540 1.61.2.2 snj { (eval echo "$as_me:3540: \"$ac_try\"") >&5
3541 1.61 christos (eval $ac_try) 2>&5
3542 1.61 christos ac_status=$?
3543 1.61.2.2 snj echo "$as_me:3543: \$? = $ac_status" >&5
3544 1.6 tv (exit $ac_status); }; }; then
3545 1.6 tv ac_cv_type_u_int16_t=yes
3546 1.1 tv else
3547 1.6 tv echo "$as_me: failed program was:" >&5
3548 1.61.2.1 pavel cat conftest.$ac_ext >&5
3549 1.6 tv ac_cv_type_u_int16_t=no
3550 1.6 tv fi
3551 1.61.2.1 pavel rm -f conftest.$ac_objext conftest.$ac_ext
3552 1.1 tv fi
3553 1.61.2.2 snj echo "$as_me:3553: result: $ac_cv_type_u_int16_t" >&5
3554 1.6 tv echo "${ECHO_T}$ac_cv_type_u_int16_t" >&6
3555 1.6 tv if test $ac_cv_type_u_int16_t = yes; then
3556 1.6 tv :
3557 1.1 tv else
3558 1.1 tv
3559 1.61.2.2 snj echo "$as_me:3559: checking for uint16_t" >&5
3560 1.6 tv echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6
3561 1.6 tv if test "${ac_cv_type_uint16_t+set}" = set; then
3562 1.6 tv echo $ECHO_N "(cached) $ECHO_C" >&6
3563 1.6 tv else
3564 1.1 tv cat >conftest.$ac_ext <<_ACEOF
3565 1.61.2.2 snj #line 3565 "configure"
3566 1.61.2.1 pavel #include "confdefs.h"
3567 1.6 tv $ac_includes_default
3568 1.6 tv int
3569 1.6 tv main ()
3570 1.6 tv {
3571 1.6 tv if ((uint16_t *) 0)
3572 1.6 tv return 0;
3573 1.6 tv if (sizeof (uint16_t))
3574 1.6 tv return 0;
3575 1.6 tv ;
3576 1.6 tv return 0;
3577 1.6 tv }
3578 1.1 tv _ACEOF
3579 1.6 tv rm -f conftest.$ac_objext
3580 1.61.2.2 snj if { (eval echo "$as_me:3580: \"$ac_compile\"") >&5
3581 1.61.2.1 pavel (eval $ac_compile) 2>&5
3582 1.6 tv ac_status=$?
3583 1.61.2.2 snj echo "$as_me:3583: \$? = $ac_status" >&5
3584 1.6 tv (exit $ac_status); } &&
3585 1.61.2.1 pavel { ac_try='test -s conftest.$ac_objext'
3586 1.61.2.2 snj { (eval echo "$as_me:3586: \"$ac_try\"") >&5
3587 1.61 christos (eval $ac_try) 2>&5
3588 1.61 christos ac_status=$?
3589 1.61.2.2 snj echo "$as_me:3589: \$? = $ac_status" >&5
3590 1.6 tv (exit $ac_status); }; }; then
3591 1.6 tv ac_cv_type_uint16_t=yes
3592 1.1 tv else
3593 1.6 tv echo "$as_me: failed program was:" >&5
3594 1.61.2.1 pavel cat conftest.$ac_ext >&5
3595 1.6 tv ac_cv_type_uint16_t=no
3596 1.1 tv fi
3597 1.61.2.1 pavel rm -f conftest.$ac_objext conftest.$ac_ext
3598 1.1 tv fi
3599 1.61.2.2 snj echo "$as_me:3599: result: $ac_cv_type_uint16_t" >&5
3600 1.6 tv echo "${ECHO_T}$ac_cv_type_uint16_t" >&6
3601 1.6 tv if test $ac_cv_type_uint16_t = yes; then
3602 1.54 wiz
3603 1.61.2.1 pavel cat >>confdefs.h <<\EOF
3604 1.6 tv #define u_int16_t uint16_t
3605 1.61.2.1 pavel EOF
3606 1.1 tv
3607 1.1 tv else
3608 1.61.2.2 snj { { echo "$as_me:3608: error: cannot find a suitable type for u_int16_t" >&5
3609 1.6 tv echo "$as_me: error: cannot find a suitable type for u_int16_t" >&2;}
3610 1.6 tv { (exit 1); exit 1; }; }
3611 1.1 tv fi
3612 1.1 tv
3613 1.1 tv fi
3614 1.1 tv
3615 1.61.2.2 snj echo "$as_me:3615: checking for uint32_t" >&5
3616 1.9 tv echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6
3617 1.9 tv if test "${ac_cv_type_uint32_t+set}" = set; then
3618 1.9 tv echo $ECHO_N "(cached) $ECHO_C" >&6
3619 1.9 tv else
3620 1.9 tv cat >conftest.$ac_ext <<_ACEOF
3621 1.61.2.2 snj #line 3621 "configure"
3622 1.61.2.1 pavel #include "confdefs.h"
3623 1.9 tv $ac_includes_default
3624 1.9 tv int
3625 1.9 tv main ()
3626 1.9 tv {
3627 1.9 tv if ((uint32_t *) 0)
3628 1.9 tv return 0;
3629 1.9 tv if (sizeof (uint32_t))
3630 1.9 tv return 0;
3631 1.9 tv ;
3632 1.9 tv return 0;
3633 1.9 tv }
3634 1.9 tv _ACEOF
3635 1.9 tv rm -f conftest.$ac_objext
3636 1.61.2.2 snj if { (eval echo "$as_me:3636: \"$ac_compile\"") >&5
3637 1.61.2.1 pavel (eval $ac_compile) 2>&5
3638 1.9 tv ac_status=$?
3639 1.61.2.2 snj echo "$as_me:3639: \$? = $ac_status" >&5
3640 1.9 tv (exit $ac_status); } &&
3641 1.61.2.1 pavel { ac_try='test -s conftest.$ac_objext'
3642 1.61.2.2 snj { (eval echo "$as_me:3642: \"$ac_try\"") >&5
3643 1.53 dogcow (eval $ac_try) 2>&5
3644 1.53 dogcow ac_status=$?
3645 1.61.2.2 snj echo "$as_me:3645: \$? = $ac_status" >&5
3646 1.9 tv (exit $ac_status); }; }; then
3647 1.9 tv ac_cv_type_uint32_t=yes
3648 1.9 tv else
3649 1.9 tv echo "$as_me: failed program was:" >&5
3650 1.61.2.1 pavel cat conftest.$ac_ext >&5
3651 1.9 tv ac_cv_type_uint32_t=no
3652 1.9 tv fi
3653 1.61.2.1 pavel rm -f conftest.$ac_objext conftest.$ac_ext
3654 1.9 tv fi
3655 1.61.2.2 snj echo "$as_me:3655: result: $ac_cv_type_uint32_t" >&5
3656 1.9 tv echo "${ECHO_T}$ac_cv_type_uint32_t" >&6
3657 1.9 tv if test $ac_cv_type_uint32_t = yes; then
3658 1.9 tv :
3659 1.9 tv else
3660 1.9 tv
3661 1.61.2.2 snj echo "$as_me:3661: checking for u_int32_t" >&5
3662 1.6 tv echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6
3663 1.6 tv if test "${ac_cv_type_u_int32_t+set}" = set; then
3664 1.6 tv echo $ECHO_N "(cached) $ECHO_C" >&6
3665 1.1 tv else
3666 1.1 tv cat >conftest.$ac_ext <<_ACEOF
3667 1.61.2.2 snj #line 3667 "configure"
3668 1.61.2.1 pavel #include "confdefs.h"
3669 1.9 tv $ac_includes_default
3670 1.9 tv int
3671 1.9 tv main ()
3672 1.9 tv {
3673 1.9 tv if ((u_int32_t *) 0)
3674 1.9 tv return 0;
3675 1.9 tv if (sizeof (u_int32_t))
3676 1.9 tv return 0;
3677 1.9 tv ;
3678 1.9 tv return 0;
3679 1.9 tv }
3680 1.9 tv _ACEOF
3681 1.9 tv rm -f conftest.$ac_objext
3682 1.61.2.2 snj if { (eval echo "$as_me:3682: \"$ac_compile\"") >&5
3683 1.61.2.1 pavel (eval $ac_compile) 2>&5
3684 1.9 tv ac_status=$?
3685 1.61.2.2 snj echo "$as_me:3685: \$? = $ac_status" >&5
3686 1.9 tv (exit $ac_status); } &&
3687 1.61.2.1 pavel { ac_try='test -s conftest.$ac_objext'
3688 1.61.2.2 snj { (eval echo "$as_me:3688: \"$ac_try\"") >&5
3689 1.53 dogcow (eval $ac_try) 2>&5
3690 1.53 dogcow ac_status=$?
3691 1.61.2.2 snj echo "$as_me:3691: \$? = $ac_status" >&5
3692 1.9 tv (exit $ac_status); }; }; then
3693 1.9 tv ac_cv_type_u_int32_t=yes
3694 1.9 tv else
3695 1.9 tv echo "$as_me: failed program was:" >&5
3696 1.61.2.1 pavel cat conftest.$ac_ext >&5
3697 1.9 tv ac_cv_type_u_int32_t=no
3698 1.9 tv fi
3699 1.61.2.1 pavel rm -f conftest.$ac_objext conftest.$ac_ext
3700 1.9 tv fi
3701 1.61.2.2 snj echo "$as_me:3701: result: $ac_cv_type_u_int32_t" >&5
3702 1.9 tv echo "${ECHO_T}$ac_cv_type_u_int32_t" >&6
3703 1.9 tv if test $ac_cv_type_u_int32_t = yes; then
3704 1.54 wiz
3705 1.61.2.1 pavel cat >>confdefs.h <<\EOF
3706 1.9 tv #define uint32_t u_int32_t
3707 1.61.2.1 pavel EOF
3708 1.9 tv
3709 1.9 tv else
3710 1.61.2.2 snj { { echo "$as_me:3710: error: cannot find a suitable type for uint32_t" >&5
3711 1.9 tv echo "$as_me: error: cannot find a suitable type for uint32_t" >&2;}
3712 1.9 tv { (exit 1); exit 1; }; }
3713 1.9 tv fi
3714 1.9 tv
3715 1.9 tv fi
3716 1.9 tv
3717 1.61.2.2 snj echo "$as_me:3717: checking for u_int32_t" >&5
3718 1.9 tv echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6
3719 1.9 tv if test "${ac_cv_type_u_int32_t+set}" = set; then
3720 1.9 tv echo $ECHO_N "(cached) $ECHO_C" >&6
3721 1.9 tv else
3722 1.9 tv cat >conftest.$ac_ext <<_ACEOF
3723 1.61.2.2 snj #line 3723 "configure"
3724 1.61.2.1 pavel #include "confdefs.h"
3725 1.6 tv $ac_includes_default
3726 1.1 tv int
3727 1.1 tv main ()
3728 1.1 tv {
3729 1.6 tv if ((u_int32_t *) 0)
3730 1.6 tv return 0;
3731 1.6 tv if (sizeof (u_int32_t))
3732 1.6 tv return 0;
3733 1.6 tv ;
3734 1.6 tv return 0;
3735 1.1 tv }
3736 1.1 tv _ACEOF
3737 1.6 tv rm -f conftest.$ac_objext
3738 1.61.2.2 snj if { (eval echo "$as_me:3738: \"$ac_compile\"") >&5
3739 1.61.2.1 pavel (eval $ac_compile) 2>&5
3740 1.1 tv ac_status=$?
3741 1.61.2.2 snj echo "$as_me:3741: \$? = $ac_status" >&5
3742 1.6 tv (exit $ac_status); } &&
3743 1.61.2.1 pavel { ac_try='test -s conftest.$ac_objext'
3744 1.61.2.2 snj { (eval echo "$as_me:3744: \"$ac_try\"") >&5
3745 1.61 christos (eval $ac_try) 2>&5
3746 1.61 christos ac_status=$?
3747 1.61.2.2 snj echo "$as_me:3747: \$? = $ac_status" >&5
3748 1.1 tv (exit $ac_status); }; }; then
3749 1.6 tv ac_cv_type_u_int32_t=yes
3750 1.1 tv else
3751 1.6 tv echo "$as_me: failed program was:" >&5
3752 1.61.2.1 pavel cat conftest.$ac_ext >&5
3753 1.6 tv ac_cv_type_u_int32_t=no
3754 1.1 tv fi
3755 1.61.2.1 pavel rm -f conftest.$ac_objext conftest.$ac_ext
3756 1.1 tv fi
3757 1.61.2.2 snj echo "$as_me:3757: result: $ac_cv_type_u_int32_t" >&5
3758 1.6 tv echo "${ECHO_T}$ac_cv_type_u_int32_t" >&6
3759 1.6 tv if test $ac_cv_type_u_int32_t = yes; then
3760 1.6 tv :
3761 1.6 tv else
3762 1.1 tv
3763 1.61.2.2 snj echo "$as_me:3763: checking for uint32_t" >&5
3764 1.6 tv echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6
3765 1.6 tv if test "${ac_cv_type_uint32_t+set}" = set; then
3766 1.1 tv echo $ECHO_N "(cached) $ECHO_C" >&6
3767 1.1 tv else
3768 1.1 tv cat >conftest.$ac_ext <<_ACEOF
3769 1.61.2.2 snj #line 3769 "configure"
3770 1.61.2.1 pavel #include "confdefs.h"
3771 1.1 tv $ac_includes_default
3772 1.6 tv int
3773 1.6 tv main ()
3774 1.6 tv {
3775 1.6 tv if ((uint32_t *) 0)
3776 1.6 tv return 0;
3777 1.6 tv if (sizeof (uint32_t))
3778 1.6 tv return 0;
3779 1.6 tv ;
3780 1.6 tv return 0;
3781 1.6 tv }
3782 1.1 tv _ACEOF
3783 1.1 tv rm -f conftest.$ac_objext
3784 1.61.2.2 snj if { (eval echo "$as_me:3784: \"$ac_compile\"") >&5
3785 1.61.2.1 pavel (eval $ac_compile) 2>&5
3786 1.1 tv ac_status=$?
3787 1.61.2.2 snj echo "$as_me:3787: \$? = $ac_status" >&5
3788 1.1 tv (exit $ac_status); } &&
3789 1.61.2.1 pavel { ac_try='test -s conftest.$ac_objext'
3790 1.61.2.2 snj { (eval echo "$as_me:3790: \"$ac_try\"") >&5
3791 1.48 jmc (eval $ac_try) 2>&5
3792 1.48 jmc ac_status=$?
3793 1.61.2.2 snj echo "$as_me:3793: \$? = $ac_status" >&5
3794 1.1 tv (exit $ac_status); }; }; then
3795 1.6 tv ac_cv_type_uint32_t=yes
3796 1.1 tv else
3797 1.1 tv echo "$as_me: failed program was:" >&5
3798 1.61.2.1 pavel cat conftest.$ac_ext >&5
3799 1.6 tv ac_cv_type_uint32_t=no
3800 1.1 tv fi
3801 1.61.2.1 pavel rm -f conftest.$ac_objext conftest.$ac_ext
3802 1.1 tv fi
3803 1.61.2.2 snj echo "$as_me:3803: result: $ac_cv_type_uint32_t" >&5
3804 1.6 tv echo "${ECHO_T}$ac_cv_type_uint32_t" >&6
3805 1.6 tv if test $ac_cv_type_uint32_t = yes; then
3806 1.54 wiz
3807 1.61.2.1 pavel cat >>confdefs.h <<\EOF
3808 1.6 tv #define u_int32_t uint32_t
3809 1.61.2.1 pavel EOF
3810 1.1 tv
3811 1.6 tv else
3812 1.61.2.2 snj { { echo "$as_me:3812: error: cannot find a suitable type for u_int32_t" >&5
3813 1.6 tv echo "$as_me: error: cannot find a suitable type for u_int32_t" >&2;}
3814 1.6 tv { (exit 1); exit 1; }; }
3815 1.6 tv fi
3816 1.6 tv
3817 1.1 tv fi
3818 1.1 tv
3819 1.61.2.2 snj echo "$as_me:3819: checking for uint64_t" >&5
3820 1.9 tv echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
3821 1.9 tv if test "${ac_cv_type_uint64_t+set}" = set; then
3822 1.9 tv echo $ECHO_N "(cached) $ECHO_C" >&6
3823 1.9 tv else
3824 1.9 tv cat >conftest.$ac_ext <<_ACEOF
3825 1.61.2.2 snj #line 3825 "configure"
3826 1.61.2.1 pavel #include "confdefs.h"
3827 1.9 tv $ac_includes_default
3828 1.9 tv int
3829 1.9 tv main ()
3830 1.9 tv {
3831 1.9 tv if ((uint64_t *) 0)
3832 1.9 tv return 0;
3833 1.9 tv if (sizeof (uint64_t))
3834 1.9 tv return 0;
3835 1.9 tv ;
3836 1.9 tv return 0;
3837 1.9 tv }
3838 1.9 tv _ACEOF
3839 1.9 tv rm -f conftest.$ac_objext
3840 1.61.2.2 snj if { (eval echo "$as_me:3840: \"$ac_compile\"") >&5
3841 1.61.2.1 pavel (eval $ac_compile) 2>&5
3842 1.9 tv ac_status=$?
3843 1.61.2.2 snj echo "$as_me:3843: \$? = $ac_status" >&5
3844 1.9 tv (exit $ac_status); } &&
3845 1.61.2.1 pavel { ac_try='test -s conftest.$ac_objext'
3846 1.61.2.2 snj { (eval echo "$as_me:3846: \"$ac_try\"") >&5
3847 1.61 christos (eval $ac_try) 2>&5
3848 1.61 christos ac_status=$?
3849 1.61.2.2 snj echo "$as_me:3849: \$? = $ac_status" >&5
3850 1.9 tv (exit $ac_status); }; }; then
3851 1.9 tv ac_cv_type_uint64_t=yes
3852 1.9 tv else
3853 1.9 tv echo "$as_me: failed program was:" >&5
3854 1.61.2.1 pavel cat conftest.$ac_ext >&5
3855 1.9 tv ac_cv_type_uint64_t=no
3856 1.9 tv fi
3857 1.61.2.1 pavel rm -f conftest.$ac_objext conftest.$ac_ext
3858 1.9 tv fi
3859 1.61.2.2 snj echo "$as_me:3859: result: $ac_cv_type_uint64_t" >&5
3860 1.9 tv echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
3861 1.9 tv if test $ac_cv_type_uint64_t = yes; then
3862 1.9 tv :
3863 1.9 tv else
3864 1.9 tv
3865 1.61.2.2 snj echo "$as_me:3865: checking for u_int64_t" >&5
3866 1.9 tv echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6
3867 1.9 tv if test "${ac_cv_type_u_int64_t+set}" = set; then
3868 1.9 tv echo $ECHO_N "(cached) $ECHO_C" >&6
3869 1.9 tv else
3870 1.9 tv cat >conftest.$ac_ext <<_ACEOF
3871 1.61.2.2 snj #line 3871 "configure"
3872 1.61.2.1 pavel #include "confdefs.h"
3873 1.9 tv $ac_includes_default
3874 1.9 tv int
3875 1.9 tv main ()
3876 1.9 tv {
3877 1.9 tv if ((u_int64_t *) 0)
3878 1.9 tv return 0;
3879 1.9 tv if (sizeof (u_int64_t))
3880 1.9 tv return 0;
3881 1.9 tv ;
3882 1.9 tv return 0;
3883 1.9 tv }
3884 1.9 tv _ACEOF
3885 1.9 tv rm -f conftest.$ac_objext
3886 1.61.2.2 snj if { (eval echo "$as_me:3886: \"$ac_compile\"") >&5
3887 1.61.2.1 pavel (eval $ac_compile) 2>&5
3888 1.9 tv ac_status=$?
3889 1.61.2.2 snj echo "$as_me:3889: \$? = $ac_status" >&5
3890 1.9 tv (exit $ac_status); } &&
3891 1.61.2.1 pavel { ac_try='test -s conftest.$ac_objext'
3892 1.61.2.2 snj { (eval echo "$as_me:3892: \"$ac_try\"") >&5
3893 1.53 dogcow (eval $ac_try) 2>&5
3894 1.53 dogcow ac_status=$?
3895 1.61.2.2 snj echo "$as_me:3895: \$? = $ac_status" >&5
3896 1.9 tv (exit $ac_status); }; }; then
3897 1.9 tv ac_cv_type_u_int64_t=yes
3898 1.9 tv else
3899 1.9 tv echo "$as_me: failed program was:" >&5
3900 1.61.2.1 pavel cat conftest.$ac_ext >&5
3901 1.9 tv ac_cv_type_u_int64_t=no
3902 1.9 tv fi
3903 1.61.2.1 pavel rm -f conftest.$ac_objext conftest.$ac_ext
3904 1.9 tv fi
3905 1.61.2.2 snj echo "$as_me:3905: result: $ac_cv_type_u_int64_t" >&5
3906 1.9 tv echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6
3907 1.9 tv if test $ac_cv_type_u_int64_t = yes; then
3908 1.54 wiz
3909 1.61.2.1 pavel cat >>confdefs.h <<\EOF
3910 1.9 tv #define uint64_t u_int64_t
3911 1.61.2.1 pavel EOF
3912 1.9 tv
3913 1.9 tv else
3914 1.61.2.2 snj { { echo "$as_me:3914: error: cannot find a suitable type for uint64_t" >&5
3915 1.9 tv echo "$as_me: error: cannot find a suitable type for uint64_t" >&2;}
3916 1.9 tv { (exit 1); exit 1; }; }
3917 1.9 tv fi
3918 1.9 tv
3919 1.9 tv fi
3920 1.9 tv
3921 1.61.2.2 snj echo "$as_me:3921: checking for u_int64_t" >&5
3922 1.6 tv echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6
3923 1.6 tv if test "${ac_cv_type_u_int64_t+set}" = set; then
3924 1.1 tv echo $ECHO_N "(cached) $ECHO_C" >&6
3925 1.1 tv else
3926 1.1 tv cat >conftest.$ac_ext <<_ACEOF
3927 1.61.2.2 snj #line 3927 "configure"
3928 1.61.2.1 pavel #include "confdefs.h"
3929 1.1 tv $ac_includes_default
3930 1.1 tv int
3931 1.1 tv main ()
3932 1.1 tv {
3933 1.6 tv if ((u_int64_t *) 0)
3934 1.1 tv return 0;
3935 1.6 tv if (sizeof (u_int64_t))
3936 1.1 tv return 0;
3937 1.1 tv ;
3938 1.1 tv return 0;
3939 1.1 tv }
3940 1.1 tv _ACEOF
3941 1.1 tv rm -f conftest.$ac_objext
3942 1.61.2.2 snj if { (eval echo "$as_me:3942: \"$ac_compile\"") >&5
3943 1.61.2.1 pavel (eval $ac_compile) 2>&5
3944 1.1 tv ac_status=$?
3945 1.61.2.2 snj echo "$as_me:3945: \$? = $ac_status" >&5
3946 1.1 tv (exit $ac_status); } &&
3947 1.61.2.1 pavel { ac_try='test -s conftest.$ac_objext'
3948 1.61.2.2 snj { (eval echo "$as_me:3948: \"$ac_try\"") >&5
3949 1.61 christos (eval $ac_try) 2>&5
3950 1.61 christos ac_status=$?
3951 1.61.2.2 snj echo "$as_me:3951: \$? = $ac_status" >&5
3952 1.1 tv (exit $ac_status); }; }; then
3953 1.6 tv ac_cv_type_u_int64_t=yes
3954 1.1 tv else
3955 1.1 tv echo "$as_me: failed program was:" >&5
3956 1.61.2.1 pavel cat conftest.$ac_ext >&5
3957 1.6 tv ac_cv_type_u_int64_t=no
3958 1.1 tv fi
3959 1.61.2.1 pavel rm -f conftest.$ac_objext conftest.$ac_ext
3960 1.1 tv fi
3961 1.61.2.2 snj echo "$as_me:3961: result: $ac_cv_type_u_int64_t" >&5
3962 1.6 tv echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6
3963 1.6 tv if test $ac_cv_type_u_int64_t = yes; then
3964 1.1 tv :
3965 1.1 tv else
3966 1.1 tv
3967 1.61.2.2 snj echo "$as_me:3967: checking for uint64_t" >&5
3968 1.6 tv echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
3969 1.6 tv if test "${ac_cv_type_uint64_t+set}" = set; then
3970 1.1 tv echo $ECHO_N "(cached) $ECHO_C" >&6
3971 1.1 tv else
3972 1.1 tv cat >conftest.$ac_ext <<_ACEOF
3973 1.61.2.2 snj #line 3973 "configure"
3974 1.61.2.1 pavel #include "confdefs.h"
3975 1.4 tv $ac_includes_default
3976 1.4 tv int
3977 1.4 tv main ()
3978 1.4 tv {
3979 1.6 tv if ((uint64_t *) 0)
3980 1.4 tv return 0;
3981 1.6 tv if (sizeof (uint64_t))
3982 1.4 tv return 0;
3983 1.4 tv ;
3984 1.4 tv return 0;
3985 1.4 tv }
3986 1.1 tv _ACEOF
3987 1.4 tv rm -f conftest.$ac_objext
3988 1.61.2.2 snj if { (eval echo "$as_me:3988: \"$ac_compile\"") >&5
3989 1.61.2.1 pavel (eval $ac_compile) 2>&5
3990 1.4 tv ac_status=$?
3991 1.61.2.2 snj echo "$as_me:3991: \$? = $ac_status" >&5
3992 1.4 tv (exit $ac_status); } &&
3993 1.61.2.1 pavel { ac_try='test -s conftest.$ac_objext'
3994 1.61.2.2 snj { (eval echo "$as_me:3994: \"$ac_try\"") >&5
3995 1.53 dogcow (eval $ac_try) 2>&5
3996 1.53 dogcow ac_status=$?
3997 1.61.2.2 snj echo "$as_me:3997: \$? = $ac_status" >&5
3998 1.4 tv (exit $ac_status); }; }; then
3999 1.6 tv ac_cv_type_uint64_t=yes
4000 1.4 tv else
4001 1.4 tv echo "$as_me: failed program was:" >&5
4002 1.61.2.1 pavel cat conftest.$ac_ext >&5
4003 1.6 tv ac_cv_type_uint64_t=no
4004 1.4 tv fi
4005 1.61.2.1 pavel rm -f conftest.$ac_objext conftest.$ac_ext
4006 1.4 tv fi
4007 1.61.2.2 snj echo "$as_me:4007: result: $ac_cv_type_uint64_t" >&5
4008 1.6 tv echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
4009 1.6 tv if test $ac_cv_type_uint64_t = yes; then
4010 1.54 wiz
4011 1.61.2.1 pavel cat >>confdefs.h <<\EOF
4012 1.6 tv #define u_int64_t uint64_t
4013 1.61.2.1 pavel EOF
4014 1.4 tv
4015 1.6 tv else
4016 1.61.2.2 snj { { echo "$as_me:4016: error: cannot find a suitable type for u_int64_t" >&5
4017 1.6 tv echo "$as_me: error: cannot find a suitable type for u_int64_t" >&2;}
4018 1.6 tv { (exit 1); exit 1; }; }
4019 1.6 tv fi
4020 1.4 tv
4021 1.4 tv fi
4022 1.4 tv
4023 1.4 tv # Struct members.
4024 1.61.2.2 snj echo "$as_me:4024: checking for DIR.dd_fd" >&5
4025 1.7 tv echo $ECHO_N "checking for DIR.dd_fd... $ECHO_C" >&6
4026 1.7 tv if test "${ac_cv_member_DIR_dd_fd+set}" = set; then
4027 1.7 tv echo $ECHO_N "(cached) $ECHO_C" >&6
4028 1.7 tv else
4029 1.7 tv cat >conftest.$ac_ext <<_ACEOF
4030 1.61.2.2 snj #line 4030 "configure"
4031 1.61.2.1 pavel #include "confdefs.h"
4032 1.32 thorpej #include <sys/types.h>
4033 1.7 tv #include <dirent.h>
4034 1.7 tv
4035 1.7 tv int
4036 1.7 tv main ()
4037 1.7 tv {
4038 1.7 tv static DIR ac_aggr;
4039 1.7 tv if (ac_aggr.dd_fd)
4040 1.7 tv return 0;
4041 1.7 tv ;
4042 1.7 tv return 0;
4043 1.7 tv }
4044 1.7 tv _ACEOF
4045 1.7 tv rm -f conftest.$ac_objext
4046 1.61.2.2 snj if { (eval echo "$as_me:4046: \"$ac_compile\"") >&5
4047 1.61.2.1 pavel (eval $ac_compile) 2>&5
4048 1.53 dogcow ac_status=$?
4049 1.61.2.2 snj echo "$as_me:4049: \$? = $ac_status" >&5
4050 1.53 dogcow (exit $ac_status); } &&
4051 1.61.2.1 pavel { ac_try='test -s conftest.$ac_objext'
4052 1.61.2.2 snj { (eval echo "$as_me:4052: \"$ac_try\"") >&5
4053 1.53 dogcow (eval $ac_try) 2>&5
4054 1.53 dogcow ac_status=$?
4055 1.61.2.2 snj echo "$as_me:4055: \$? = $ac_status" >&5
4056 1.53 dogcow (exit $ac_status); }; }; then
4057 1.53 dogcow ac_cv_member_DIR_dd_fd=yes
4058 1.53 dogcow else
4059 1.53 dogcow echo "$as_me: failed program was:" >&5
4060 1.61.2.1 pavel cat conftest.$ac_ext >&5
4061 1.48 jmc ac_cv_member_DIR_dd_fd=no
4062 1.48 jmc fi
4063 1.61.2.1 pavel rm -f conftest.$ac_objext conftest.$ac_ext
4064 1.61 christos fi
4065 1.61.2.2 snj echo "$as_me:4065: result: $ac_cv_member_DIR_dd_fd" >&5
4066 1.48 jmc echo "${ECHO_T}$ac_cv_member_DIR_dd_fd" >&6
4067 1.48 jmc if test $ac_cv_member_DIR_dd_fd = yes; then
4068 1.48 jmc
4069 1.61.2.1 pavel cat >>confdefs.h <<EOF
4070 1.48 jmc #define HAVE_DIR_DD_FD 1
4071 1.61.2.1 pavel EOF
4072 1.48 jmc
4073 1.48 jmc fi
4074 1.61.2.2 snj echo "$as_me:4074: checking for DIR.__dd_fd" >&5
4075 1.59 thorpej echo $ECHO_N "checking for DIR.__dd_fd... $ECHO_C" >&6
4076 1.59 thorpej if test "${ac_cv_member_DIR___dd_fd+set}" = set; then
4077 1.59 thorpej echo $ECHO_N "(cached) $ECHO_C" >&6
4078 1.59 thorpej else
4079 1.59 thorpej cat >conftest.$ac_ext <<_ACEOF
4080 1.61.2.2 snj #line 4080 "configure"
4081 1.61.2.1 pavel #include "confdefs.h"
4082 1.59 thorpej #include <sys/types.h>
4083 1.59 thorpej #include <dirent.h>
4084 1.59 thorpej
4085 1.59 thorpej int
4086 1.59 thorpej main ()
4087 1.59 thorpej {
4088 1.59 thorpej static DIR ac_aggr;
4089 1.59 thorpej if (ac_aggr.__dd_fd)
4090 1.59 thorpej return 0;
4091 1.59 thorpej ;
4092 1.59 thorpej return 0;
4093 1.59 thorpej }
4094 1.59 thorpej _ACEOF
4095 1.59 thorpej rm -f conftest.$ac_objext
4096 1.61.2.2 snj if { (eval echo "$as_me:4096: \"$ac_compile\"") >&5
4097 1.61.2.1 pavel (eval $ac_compile) 2>&5
4098 1.59 thorpej ac_status=$?
4099 1.61.2.2 snj echo "$as_me:4099: \$? = $ac_status" >&5
4100 1.59 thorpej (exit $ac_status); } &&
4101 1.61.2.1 pavel { ac_try='test -s conftest.$ac_objext'
4102 1.61.2.2 snj { (eval echo "$as_me:4102: \"$ac_try\"") >&5
4103 1.59 thorpej (eval $ac_try) 2>&5
4104 1.59 thorpej ac_status=$?
4105 1.61.2.2 snj echo "$as_me:4105: \$? = $ac_status" >&5
4106 1.59 thorpej (exit $ac_status); }; }; then
4107 1.59 thorpej ac_cv_member_DIR___dd_fd=yes
4108 1.59 thorpej else
4109 1.59 thorpej echo "$as_me: failed program was:" >&5
4110 1.61.2.1 pavel cat conftest.$ac_ext >&5
4111 1.59 thorpej ac_cv_member_DIR___dd_fd=no
4112 1.59 thorpej fi
4113 1.61.2.1 pavel rm -f conftest.$ac_objext conftest.$ac_ext
4114 1.59 thorpej fi
4115 1.61.2.2 snj echo "$as_me:4115: result: $ac_cv_member_DIR___dd_fd" >&5
4116 1.59 thorpej echo "${ECHO_T}$ac_cv_member_DIR___dd_fd" >&6
4117 1.59 thorpej if test $ac_cv_member_DIR___dd_fd = yes; then
4118 1.59 thorpej
4119 1.61.2.1 pavel cat >>confdefs.h <<EOF
4120 1.59 thorpej #define HAVE_DIR___DD_FD 1
4121 1.61.2.1 pavel EOF
4122 1.59 thorpej
4123 1.59 thorpej fi
4124 1.61.2.2 snj echo "$as_me:4124: checking for struct dirent.d_namlen" >&5
4125 1.48 jmc echo $ECHO_N "checking for struct dirent.d_namlen... $ECHO_C" >&6
4126 1.48 jmc if test "${ac_cv_member_struct_dirent_d_namlen+set}" = set; then
4127 1.48 jmc echo $ECHO_N "(cached) $ECHO_C" >&6
4128 1.48 jmc else
4129 1.52 dbj cat >conftest.$ac_ext <<_ACEOF
4130 1.61.2.2 snj #line 4130 "configure"
4131 1.61.2.1 pavel #include "confdefs.h"
4132 1.32 thorpej #include <sys/types.h>
4133 1.8 tv #include <dirent.h>
4134 1.8 tv
4135 1.8 tv int
4136 1.8 tv main ()
4137 1.8 tv {
4138 1.8 tv static struct dirent ac_aggr;
4139 1.52 dbj if (ac_aggr.d_namlen)
4140 1.8 tv return 0;
4141 1.8 tv ;
4142 1.8 tv return 0;
4143 1.8 tv }
4144 1.8 tv _ACEOF
4145 1.8 tv rm -f conftest.$ac_objext
4146 1.61.2.2 snj if { (eval echo "$as_me:4146: \"$ac_compile\"") >&5
4147 1.61.2.1 pavel (eval $ac_compile) 2>&5
4148 1.61 christos ac_status=$?
4149 1.61.2.2 snj echo "$as_me:4149: \$? = $ac_status" >&5
4150 1.61 christos (exit $ac_status); } &&
4151 1.61.2.1 pavel { ac_try='test -s conftest.$ac_objext'
4152 1.61.2.2 snj { (eval echo "$as_me:4152: \"$ac_try\"") >&5
4153 1.61 christos (eval $ac_try) 2>&5
4154 1.61 christos ac_status=$?
4155 1.61.2.2 snj echo "$as_me:4155: \$? = $ac_status" >&5
4156 1.61 christos (exit $ac_status); }; }; then
4157 1.61 christos ac_cv_member_struct_dirent_d_namlen=yes
4158 1.61 christos else
4159 1.61 christos echo "$as_me: failed program was:" >&5
4160 1.61.2.1 pavel cat conftest.$ac_ext >&5
4161 1.8 tv ac_cv_member_struct_dirent_d_namlen=no
4162 1.8 tv fi
4163 1.61.2.1 pavel rm -f conftest.$ac_objext conftest.$ac_ext
4164 1.61 christos fi
4165 1.61.2.2 snj echo "$as_me:4165: result: $ac_cv_member_struct_dirent_d_namlen" >&5
4166 1.8 tv echo "${ECHO_T}$ac_cv_member_struct_dirent_d_namlen" >&6
4167 1.8 tv if test $ac_cv_member_struct_dirent_d_namlen = yes; then
4168 1.8 tv
4169 1.61.2.1 pavel cat >>confdefs.h <<EOF
4170 1.60 apb #define HAVE_STRUCT_DIRENT_D_NAMLEN 1
4171 1.61.2.1 pavel EOF
4172 1.61 christos
4173 1.61 christos fi
4174 1.61 christos
4175 1.61.2.2 snj echo "$as_me:4175: checking for struct stat.st_flags" >&5
4176 1.61 christos echo $ECHO_N "checking for struct stat.st_flags... $ECHO_C" >&6
4177 1.61 christos if test "${ac_cv_member_struct_stat_st_flags+set}" = set; then
4178 1.61 christos echo $ECHO_N "(cached) $ECHO_C" >&6
4179 1.61 christos else
4180 1.61 christos cat >conftest.$ac_ext <<_ACEOF
4181 1.61.2.2 snj #line 4181 "configure"
4182 1.61.2.1 pavel #include "confdefs.h"
4183 1.61 christos #include <sys/stat.h>
4184 1.61 christos
4185 1.61 christos int
4186 1.61 christos main ()
4187 1.61 christos {
4188 1.61 christos static struct stat ac_aggr;
4189 1.61 christos if (ac_aggr.st_flags)
4190 1.61 christos return 0;
4191 1.61 christos ;
4192 1.61 christos return 0;
4193 1.61 christos }
4194 1.61 christos _ACEOF
4195 1.61 christos rm -f conftest.$ac_objext
4196 1.61.2.2 snj if { (eval echo "$as_me:4196: \"$ac_compile\"") >&5
4197 1.61.2.1 pavel (eval $ac_compile) 2>&5
4198 1.61 christos ac_status=$?
4199 1.61.2.2 snj echo "$as_me:4199: \$? = $ac_status" >&5
4200 1.61 christos (exit $ac_status); } &&
4201 1.61.2.1 pavel { ac_try='test -s conftest.$ac_objext'
4202 1.61.2.2 snj { (eval echo "$as_me:4202: \"$ac_try\"") >&5
4203 1.61 christos (eval $ac_try) 2>&5
4204 1.61 christos ac_status=$?
4205 1.61.2.2 snj echo "$as_me:4205: \$? = $ac_status" >&5
4206 1.61 christos (exit $ac_status); }; }; then
4207 1.61 christos ac_cv_member_struct_stat_st_flags=yes
4208 1.61 christos else
4209 1.61 christos echo "$as_me: failed program was:" >&5
4210 1.61.2.1 pavel cat conftest.$ac_ext >&5
4211 1.61 christos ac_cv_member_struct_stat_st_flags=no
4212 1.61 christos fi
4213 1.61.2.1 pavel rm -f conftest.$ac_objext conftest.$ac_ext
4214 1.61 christos fi
4215 1.61.2.2 snj echo "$as_me:4215: result: $ac_cv_member_struct_stat_st_flags" >&5
4216 1.61 christos echo "${ECHO_T}$ac_cv_member_struct_stat_st_flags" >&6
4217 1.61 christos if test $ac_cv_member_struct_stat_st_flags = yes; then
4218 1.61 christos
4219 1.61.2.1 pavel cat >>confdefs.h <<EOF
4220 1.61 christos #define HAVE_STRUCT_STAT_ST_FLAGS 1
4221 1.61.2.1 pavel EOF
4222 1.61 christos
4223 1.61 christos fi
4224 1.61.2.2 snj echo "$as_me:4224: checking for struct stat.st_gen" >&5
4225 1.61 christos echo $ECHO_N "checking for struct stat.st_gen... $ECHO_C" >&6
4226 1.61 christos if test "${ac_cv_member_struct_stat_st_gen+set}" = set; then
4227 1.61 christos echo $ECHO_N "(cached) $ECHO_C" >&6
4228 1.61 christos else
4229 1.61 christos cat >conftest.$ac_ext <<_ACEOF
4230 1.61.2.2 snj #line 4230 "configure"
4231 1.61.2.1 pavel #include "confdefs.h"
4232 1.61 christos #include <sys/stat.h>
4233 1.61 christos
4234 1.61 christos int
4235 1.61 christos main ()
4236 1.61 christos {
4237 1.61 christos static struct stat ac_aggr;
4238 1.61 christos if (ac_aggr.st_gen)
4239 1.61 christos return 0;
4240 1.61 christos ;
4241 1.61 christos return 0;
4242 1.61 christos }
4243 1.61 christos _ACEOF
4244 1.61 christos rm -f conftest.$ac_objext
4245 1.61.2.2 snj if { (eval echo "$as_me:4245: \"$ac_compile\"") >&5
4246 1.61.2.1 pavel (eval $ac_compile) 2>&5
4247 1.61 christos ac_status=$?
4248 1.61.2.2 snj echo "$as_me:4248: \$? = $ac_status" >&5
4249 1.61 christos (exit $ac_status); } &&
4250 1.61.2.1 pavel { ac_try='test -s conftest.$ac_objext'
4251 1.61.2.2 snj { (eval echo "$as_me:4251: \"$ac_try\"") >&5
4252 1.61 christos (eval $ac_try) 2>&5
4253 1.61 christos ac_status=$?
4254 1.61.2.2 snj echo "$as_me:4254: \$? = $ac_status" >&5
4255 1.61 christos (exit $ac_status); }; }; then
4256 1.61 christos ac_cv_member_struct_stat_st_gen=yes
4257 1.61 christos else
4258 1.61 christos echo "$as_me: failed program was:" >&5
4259 1.61.2.1 pavel cat conftest.$ac_ext >&5
4260 1.61 christos ac_cv_member_struct_stat_st_gen=no
4261 1.61 christos fi
4262 1.61.2.1 pavel rm -f conftest.$ac_objext conftest.$ac_ext
4263 1.61 christos fi
4264 1.61.2.2 snj echo "$as_me:4264: result: $ac_cv_member_struct_stat_st_gen" >&5
4265 1.61 christos echo "${ECHO_T}$ac_cv_member_struct_stat_st_gen" >&6
4266 1.61 christos if test $ac_cv_member_struct_stat_st_gen = yes; then
4267 1.61 christos
4268 1.61.2.1 pavel cat >>confdefs.h <<EOF
4269 1.61 christos #define HAVE_STRUCT_STAT_ST_GEN 1
4270 1.61.2.1 pavel EOF
4271 1.61 christos
4272 1.61 christos fi
4273 1.61.2.2 snj echo "$as_me:4273: checking for struct stat.st_birthtime" >&5
4274 1.61 christos echo $ECHO_N "checking for struct stat.st_birthtime... $ECHO_C" >&6
4275 1.61 christos if test "${ac_cv_member_struct_stat_st_birthtime+set}" = set; then
4276 1.61 christos echo $ECHO_N "(cached) $ECHO_C" >&6
4277 1.61 christos else
4278 1.61 christos cat >conftest.$ac_ext <<_ACEOF
4279 1.61.2.2 snj #line 4279 "configure"
4280 1.61.2.1 pavel #include "confdefs.h"
4281 1.61 christos #include <sys/stat.h>
4282 1.61 christos
4283 1.61 christos int
4284 1.61 christos main ()
4285 1.61 christos {
4286 1.61 christos static struct stat ac_aggr;
4287 1.61 christos if (ac_aggr.st_birthtime)
4288 1.61 christos return 0;
4289 1.61 christos ;
4290 1.61 christos return 0;
4291 1.61 christos }
4292 1.61 christos _ACEOF
4293 1.61 christos rm -f conftest.$ac_objext
4294 1.61.2.2 snj if { (eval echo "$as_me:4294: \"$ac_compile\"") >&5
4295 1.61.2.1 pavel (eval $ac_compile) 2>&5
4296 1.61 christos ac_status=$?
4297 1.61.2.2 snj echo "$as_me:4297: \$? = $ac_status" >&5
4298 1.61 christos (exit $ac_status); } &&
4299 1.61.2.1 pavel { ac_try='test -s conftest.$ac_objext'
4300 1.61.2.2 snj { (eval echo "$as_me:4300: \"$ac_try\"") >&5
4301 1.61 christos (eval $ac_try) 2>&5
4302 1.61 christos ac_status=$?
4303 1.61.2.2 snj echo "$as_me:4303: \$? = $ac_status" >&5
4304 1.61 christos (exit $ac_status); }; }; then
4305 1.61 christos ac_cv_member_struct_stat_st_birthtime=yes
4306 1.61 christos else
4307 1.61 christos echo "$as_me: failed program was:" >&5
4308 1.61.2.1 pavel cat conftest.$ac_ext >&5
4309 1.61 christos ac_cv_member_struct_stat_st_birthtime=no
4310 1.61 christos fi
4311 1.61.2.1 pavel rm -f conftest.$ac_objext conftest.$ac_ext
4312 1.61 christos fi
4313 1.61.2.2 snj echo "$as_me:4313: result: $ac_cv_member_struct_stat_st_birthtime" >&5
4314 1.61 christos echo "${ECHO_T}$ac_cv_member_struct_stat_st_birthtime" >&6
4315 1.61 christos if test $ac_cv_member_struct_stat_st_birthtime = yes; then
4316 1.61 christos
4317 1.61.2.1 pavel cat >>confdefs.h <<EOF
4318 1.61 christos #define HAVE_STRUCT_STAT_ST_BIRTHTIME 1
4319 1.61.2.1 pavel EOF
4320 1.61 christos
4321 1.61 christos fi
4322 1.61.2.2 snj echo "$as_me:4322: checking for struct stat.st_birthtimensec" >&5
4323 1.61 christos echo $ECHO_N "checking for struct stat.st_birthtimensec... $ECHO_C" >&6
4324 1.61 christos if test "${ac_cv_member_struct_stat_st_birthtimensec+set}" = set; then
4325 1.43 dbj echo $ECHO_N "(cached) $ECHO_C" >&6
4326 1.43 dbj else
4327 1.43 dbj cat >conftest.$ac_ext <<_ACEOF
4328 1.61.2.2 snj #line 4328 "configure"
4329 1.61.2.1 pavel #include "confdefs.h"
4330 1.40 atatat #include <sys/stat.h>
4331 1.40 atatat
4332 1.40 atatat int
4333 1.40 atatat main ()
4334 1.40 atatat {
4335 1.40 atatat static struct stat ac_aggr;
4336 1.61 christos if (ac_aggr.st_birthtimensec)
4337 1.40 atatat return 0;
4338 1.40 atatat ;
4339 1.40 atatat return 0;
4340 1.40 atatat }
4341 1.40 atatat _ACEOF
4342 1.40 atatat rm -f conftest.$ac_objext
4343 1.61.2.2 snj if { (eval echo "$as_me:4343: \"$ac_compile\"") >&5
4344 1.61.2.1 pavel (eval $ac_compile) 2>&5
4345 1.40 atatat ac_status=$?
4346 1.61.2.2 snj echo "$as_me:4346: \$? = $ac_status" >&5
4347 1.40 atatat (exit $ac_status); } &&
4348 1.61.2.1 pavel { ac_try='test -s conftest.$ac_objext'
4349 1.61.2.2 snj { (eval echo "$as_me:4349: \"$ac_try\"") >&5
4350 1.50 jmc (eval $ac_try) 2>&5
4351 1.50 jmc ac_status=$?
4352 1.61.2.2 snj echo "$as_me:4352: \$? = $ac_status" >&5
4353 1.40 atatat (exit $ac_status); }; }; then
4354 1.61 christos ac_cv_member_struct_stat_st_birthtimensec=yes
4355 1.40 atatat else
4356 1.40 atatat echo "$as_me: failed program was:" >&5
4357 1.61.2.1 pavel cat conftest.$ac_ext >&5
4358 1.61 christos ac_cv_member_struct_stat_st_birthtimensec=no
4359 1.61 christos fi
4360 1.61.2.1 pavel rm -f conftest.$ac_objext conftest.$ac_ext
4361 1.40 atatat fi
4362 1.61.2.2 snj echo "$as_me:4362: result: $ac_cv_member_struct_stat_st_birthtimensec" >&5
4363 1.61 christos echo "${ECHO_T}$ac_cv_member_struct_stat_st_birthtimensec" >&6
4364 1.61 christos if test $ac_cv_member_struct_stat_st_birthtimensec = yes; then
4365 1.61 christos
4366 1.61.2.1 pavel cat >>confdefs.h <<EOF
4367 1.61 christos #define HAVE_STRUCT_STAT_ST_BIRTHTIMENSEC 1
4368 1.61.2.1 pavel EOF
4369 1.40 atatat
4370 1.40 atatat fi
4371 1.61.2.2 snj echo "$as_me:4371: checking for struct stat.st_atim" >&5
4372 1.61 christos echo $ECHO_N "checking for struct stat.st_atim... $ECHO_C" >&6
4373 1.61 christos if test "${ac_cv_member_struct_stat_st_atim+set}" = set; then
4374 1.40 atatat echo $ECHO_N "(cached) $ECHO_C" >&6
4375 1.40 atatat else
4376 1.40 atatat cat >conftest.$ac_ext <<_ACEOF
4377 1.61.2.2 snj #line 4377 "configure"
4378 1.61.2.1 pavel #include "confdefs.h"
4379 1.40 atatat #include <sys/stat.h>
4380 1.40 atatat
4381 1.40 atatat int
4382 1.40 atatat main ()
4383 1.40 atatat {
4384 1.40 atatat static struct stat ac_aggr;
4385 1.61 christos if (ac_aggr.st_atim)
4386 1.40 atatat return 0;
4387 1.40 atatat ;
4388 1.40 atatat return 0;
4389 1.40 atatat }
4390 1.40 atatat _ACEOF
4391 1.40 atatat rm -f conftest.$ac_objext
4392 1.61.2.2 snj if { (eval echo "$as_me:4392: \"$ac_compile\"") >&5
4393 1.61.2.1 pavel (eval $ac_compile) 2>&5
4394 1.40 atatat ac_status=$?
4395 1.61.2.2 snj echo "$as_me:4395: \$? = $ac_status" >&5
4396 1.40 atatat (exit $ac_status); } &&
4397 1.61.2.1 pavel { ac_try='test -s conftest.$ac_objext'
4398 1.61.2.2 snj { (eval echo "$as_me:4398: \"$ac_try\"") >&5
4399 1.40 atatat (eval $ac_try) 2>&5
4400 1.40 atatat ac_status=$?
4401 1.61.2.2 snj echo "$as_me:4401: \$? = $ac_status" >&5
4402 1.40 atatat (exit $ac_status); }; }; then
4403 1.61 christos ac_cv_member_struct_stat_st_atim=yes
4404 1.40 atatat else
4405 1.40 atatat echo "$as_me: failed program was:" >&5
4406 1.61.2.1 pavel cat conftest.$ac_ext >&5
4407 1.61 christos ac_cv_member_struct_stat_st_atim=no
4408 1.61 christos fi
4409 1.61.2.1 pavel rm -f conftest.$ac_objext conftest.$ac_ext
4410 1.40 atatat fi
4411 1.61.2.2 snj echo "$as_me:4411: result: $ac_cv_member_struct_stat_st_atim" >&5
4412 1.61 christos echo "${ECHO_T}$ac_cv_member_struct_stat_st_atim" >&6
4413 1.61 christos if test $ac_cv_member_struct_stat_st_atim = yes; then
4414 1.61 christos
4415 1.61.2.1 pavel cat >>confdefs.h <<EOF
4416 1.61 christos #define HAVE_STRUCT_STAT_ST_ATIM 1
4417 1.61.2.1 pavel EOF
4418 1.40 atatat
4419 1.40 atatat fi
4420 1.61.2.2 snj echo "$as_me:4420: checking for struct stat.st_mtimensec" >&5
4421 1.61 christos echo $ECHO_N "checking for struct stat.st_mtimensec... $ECHO_C" >&6
4422 1.61 christos if test "${ac_cv_member_struct_stat_st_mtimensec+set}" = set; then
4423 1.7 tv echo $ECHO_N "(cached) $ECHO_C" >&6
4424 1.7 tv else
4425 1.7 tv cat >conftest.$ac_ext <<_ACEOF
4426 1.61.2.2 snj #line 4426 "configure"
4427 1.61.2.1 pavel #include "confdefs.h"
4428 1.7 tv #include <sys/stat.h>
4429 1.7 tv
4430 1.7 tv int
4431 1.7 tv main ()
4432 1.7 tv {
4433 1.7 tv static struct stat ac_aggr;
4434 1.61 christos if (ac_aggr.st_mtimensec)
4435 1.7 tv return 0;
4436 1.7 tv ;
4437 1.7 tv return 0;
4438 1.7 tv }
4439 1.7 tv _ACEOF
4440 1.7 tv rm -f conftest.$ac_objext
4441 1.61.2.2 snj if { (eval echo "$as_me:4441: \"$ac_compile\"") >&5
4442 1.61.2.1 pavel (eval $ac_compile) 2>&5
4443 1.7 tv ac_status=$?
4444 1.61.2.2 snj echo "$as_me:4444: \$? = $ac_status" >&5
4445 1.7 tv (exit $ac_status); } &&
4446 1.61.2.1 pavel { ac_try='test -s conftest.$ac_objext'
4447 1.61.2.2 snj { (eval echo "$as_me:4447: \"$ac_try\"") >&5
4448 1.61 christos (eval $ac_try) 2>&5
4449 1.61 christos ac_status=$?
4450 1.61.2.2 snj echo "$as_me:4450: \$? = $ac_status" >&5
4451 1.7 tv (exit $ac_status); }; }; then
4452 1.7 tv ac_cv_member_struct_stat_st_mtimensec=yes
4453 1.7 tv else
4454 1.7 tv echo "$as_me: failed program was:" >&5
4455 1.61.2.1 pavel cat conftest.$ac_ext >&5
4456 1.7 tv ac_cv_member_struct_stat_st_mtimensec=no
4457 1.7 tv fi
4458 1.61.2.1 pavel rm -f conftest.$ac_objext conftest.$ac_ext
4459 1.61 christos fi
4460 1.61.2.2 snj echo "$as_me:4460: result: $ac_cv_member_struct_stat_st_mtimensec" >&5
4461 1.7 tv echo "${ECHO_T}$ac_cv_member_struct_stat_st_mtimensec" >&6
4462 1.7 tv if test $ac_cv_member_struct_stat_st_mtimensec = yes; then
4463 1.7 tv
4464 1.61.2.1 pavel cat >>confdefs.h <<EOF
4465 1.7 tv #define HAVE_STRUCT_STAT_ST_MTIMENSEC 1
4466 1.61.2.1 pavel EOF
4467 1.7 tv
4468 1.7 tv fi
4469 1.4 tv
4470 1.61.2.2 snj echo "$as_me:4470: checking for struct statvfs.f_iosize" >&5
4471 1.47 dbj echo $ECHO_N "checking for struct statvfs.f_iosize... $ECHO_C" >&6
4472 1.47 dbj if test "${ac_cv_member_struct_statvfs_f_iosize+set}" = set; then
4473 1.47 dbj echo $ECHO_N "(cached) $ECHO_C" >&6
4474 1.47 dbj else
4475 1.52 dbj cat >conftest.$ac_ext <<_ACEOF
4476 1.61.2.2 snj #line 4476 "configure"
4477 1.61.2.1 pavel #include "confdefs.h"
4478 1.48 jmc #include <sys/statvfs.h>
4479 1.48 jmc
4480 1.48 jmc int
4481 1.48 jmc main ()
4482 1.48 jmc {
4483 1.48 jmc static struct statvfs ac_aggr;
4484 1.52 dbj if (ac_aggr.f_iosize)
4485 1.48 jmc return 0;
4486 1.48 jmc ;
4487 1.48 jmc return 0;
4488 1.48 jmc }
4489 1.48 jmc _ACEOF
4490 1.48 jmc rm -f conftest.$ac_objext
4491 1.61.2.2 snj if { (eval echo "$as_me:4491: \"$ac_compile\"") >&5
4492 1.61.2.1 pavel (eval $ac_compile) 2>&5
4493 1.61 christos ac_status=$?
4494 1.61.2.2 snj echo "$as_me:4494: \$? = $ac_status" >&5
4495 1.61 christos (exit $ac_status); } &&
4496 1.61.2.1 pavel { ac_try='test -s conftest.$ac_objext'
4497 1.61.2.2 snj { (eval echo "$as_me:4497: \"$ac_try\"") >&5
4498 1.61 christos (eval $ac_try) 2>&5
4499 1.61 christos ac_status=$?
4500 1.61.2.2 snj echo "$as_me:4500: \$? = $ac_status" >&5
4501 1.61 christos (exit $ac_status); }; }; then
4502 1.61 christos ac_cv_member_struct_statvfs_f_iosize=yes
4503 1.61 christos else
4504 1.61 christos echo "$as_me: failed program was:" >&5
4505 1.61.2.1 pavel cat conftest.$ac_ext >&5
4506 1.53 dogcow ac_cv_member_struct_statvfs_f_iosize=no
4507 1.53 dogcow fi
4508 1.61.2.1 pavel rm -f conftest.$ac_objext conftest.$ac_ext
4509 1.61 christos fi
4510 1.61.2.2 snj echo "$as_me:4510: result: $ac_cv_member_struct_statvfs_f_iosize" >&5
4511 1.53 dogcow echo "${ECHO_T}$ac_cv_member_struct_statvfs_f_iosize" >&6
4512 1.53 dogcow if test $ac_cv_member_struct_statvfs_f_iosize = yes; then
4513 1.53 dogcow
4514 1.61.2.1 pavel cat >>confdefs.h <<EOF
4515 1.53 dogcow #define HAVE_STRUCT_STATVFS_F_IOSIZE 1
4516 1.61.2.1 pavel EOF
4517 1.53 dogcow
4518 1.53 dogcow fi
4519 1.53 dogcow
4520 1.53 dogcow # Global variable decls.
4521 1.61.2.2 snj echo "$as_me:4521: checking whether optind is declared" >&5
4522 1.53 dogcow echo $ECHO_N "checking whether optind is declared... $ECHO_C" >&6
4523 1.53 dogcow if test "${ac_cv_have_decl_optind+set}" = set; then
4524 1.53 dogcow echo $ECHO_N "(cached) $ECHO_C" >&6
4525 1.53 dogcow else
4526 1.53 dogcow cat >conftest.$ac_ext <<_ACEOF
4527 1.61.2.2 snj #line 4527 "configure"
4528 1.61.2.1 pavel #include "confdefs.h"
4529 1.53 dogcow
4530 1.53 dogcow #include <stdio.h>
4531 1.53 dogcow #include <stdlib.h>
4532 1.53 dogcow #include <unistd.h>
4533 1.53 dogcow
4534 1.53 dogcow int
4535 1.53 dogcow main ()
4536 1.53 dogcow {
4537 1.53 dogcow #ifndef optind
4538 1.53 dogcow char *p = (char *) optind;
4539 1.53 dogcow #endif
4540 1.53 dogcow
4541 1.53 dogcow ;
4542 1.53 dogcow return 0;
4543 1.53 dogcow }
4544 1.53 dogcow _ACEOF
4545 1.53 dogcow rm -f conftest.$ac_objext
4546 1.61.2.2 snj if { (eval echo "$as_me:4546: \"$ac_compile\"") >&5
4547 1.61.2.1 pavel (eval $ac_compile) 2>&5
4548 1.53 dogcow ac_status=$?
4549 1.61.2.2 snj echo "$as_me:4549: \$? = $ac_status" >&5
4550 1.53 dogcow (exit $ac_status); } &&
4551 1.61.2.1 pavel { ac_try='test -s conftest.$ac_objext'
4552 1.61.2.2 snj { (eval echo "$as_me:4552: \"$ac_try\"") >&5
4553 1.61 christos (eval $ac_try) 2>&5
4554 1.61 christos ac_status=$?
4555 1.61.2.2 snj echo "$as_me:4555: \$? = $ac_status" >&5
4556 1.7 tv (exit $ac_status); }; }; then
4557 1.7 tv ac_cv_have_decl_optind=yes
4558 1.7 tv else
4559 1.7 tv echo "$as_me: failed program was:" >&5
4560 1.61.2.1 pavel cat conftest.$ac_ext >&5
4561 1.7 tv ac_cv_have_decl_optind=no
4562 1.7 tv fi
4563 1.61.2.1 pavel rm -f conftest.$ac_objext conftest.$ac_ext
4564 1.7 tv fi
4565 1.61.2.2 snj echo "$as_me:4565: result: $ac_cv_have_decl_optind" >&5
4566 1.7 tv echo "${ECHO_T}$ac_cv_have_decl_optind" >&6
4567 1.7 tv if test $ac_cv_have_decl_optind = yes; then
4568 1.7 tv
4569 1.61.2.1 pavel cat >>confdefs.h <<EOF
4570 1.7 tv #define HAVE_DECL_OPTIND 1
4571 1.61.2.1 pavel EOF
4572 1.7 tv
4573 1.7 tv else
4574 1.61.2.1 pavel cat >>confdefs.h <<EOF
4575 1.7 tv #define HAVE_DECL_OPTIND 0
4576 1.61.2.1 pavel EOF
4577 1.7 tv
4578 1.7 tv fi
4579 1.61.2.2 snj echo "$as_me:4579: checking whether optreset is declared" >&5
4580 1.7 tv echo $ECHO_N "checking whether optreset is declared... $ECHO_C" >&6
4581 1.7 tv if test "${ac_cv_have_decl_optreset+set}" = set; then
4582 1.7 tv echo $ECHO_N "(cached) $ECHO_C" >&6
4583 1.7 tv else
4584 1.7 tv cat >conftest.$ac_ext <<_ACEOF
4585 1.61.2.2 snj #line 4585 "configure"
4586 1.61.2.1 pavel #include "confdefs.h"
4587 1.7 tv
4588 1.7 tv #include <stdio.h>
4589 1.7 tv #include <stdlib.h>
4590 1.7 tv #include <unistd.h>
4591 1.7 tv
4592 1.7 tv int
4593 1.7 tv main ()
4594 1.7 tv {
4595 1.7 tv #ifndef optreset
4596 1.7 tv char *p = (char *) optreset;
4597 1.7 tv #endif
4598 1.7 tv
4599 1.7 tv ;
4600 1.7 tv return 0;
4601 1.7 tv }
4602 1.7 tv _ACEOF
4603 1.7 tv rm -f conftest.$ac_objext
4604 1.61.2.2 snj if { (eval echo "$as_me:4604: \"$ac_compile\"") >&5
4605 1.61.2.1 pavel (eval $ac_compile) 2>&5
4606 1.7 tv ac_status=$?
4607 1.61.2.2 snj echo "$as_me:4607: \$? = $ac_status" >&5
4608 1.7 tv (exit $ac_status); } &&
4609 1.61.2.1 pavel { ac_try='test -s conftest.$ac_objext'
4610 1.61.2.2 snj { (eval echo "$as_me:4610: \"$ac_try\"") >&5
4611 1.61 christos (eval $ac_try) 2>&5
4612 1.61 christos ac_status=$?
4613 1.61.2.2 snj echo "$as_me:4613: \$? = $ac_status" >&5
4614 1.7 tv (exit $ac_status); }; }; then
4615 1.7 tv ac_cv_have_decl_optreset=yes
4616 1.7 tv else
4617 1.7 tv echo "$as_me: failed program was:" >&5
4618 1.61.2.1 pavel cat conftest.$ac_ext >&5
4619 1.7 tv ac_cv_have_decl_optreset=no
4620 1.7 tv fi
4621 1.61.2.1 pavel rm -f conftest.$ac_objext conftest.$ac_ext
4622 1.7 tv fi
4623 1.61.2.2 snj echo "$as_me:4623: result: $ac_cv_have_decl_optreset" >&5
4624 1.7 tv echo "${ECHO_T}$ac_cv_have_decl_optreset" >&6
4625 1.7 tv if test $ac_cv_have_decl_optreset = yes; then
4626 1.7 tv
4627 1.61.2.1 pavel cat >>confdefs.h <<EOF
4628 1.7 tv #define HAVE_DECL_OPTRESET 1
4629 1.61.2.1 pavel EOF
4630 1.7 tv
4631 1.7 tv else
4632 1.61.2.1 pavel cat >>confdefs.h <<EOF
4633 1.7 tv #define HAVE_DECL_OPTRESET 0
4634 1.61.2.1 pavel EOF
4635 1.7 tv
4636 1.7 tv fi
4637 1.7 tv
4638 1.61.2.2 snj echo "$as_me:4638: checking whether sys_signame is declared" >&5
4639 1.4 tv echo $ECHO_N "checking whether sys_signame is declared... $ECHO_C" >&6
4640 1.4 tv if test "${ac_cv_have_decl_sys_signame+set}" = set; then
4641 1.4 tv echo $ECHO_N "(cached) $ECHO_C" >&6
4642 1.4 tv else
4643 1.4 tv cat >conftest.$ac_ext <<_ACEOF
4644 1.61.2.2 snj #line 4644 "configure"
4645 1.61.2.1 pavel #include "confdefs.h"
4646 1.4 tv #include <signal.h>
4647 1.4 tv
4648 1.4 tv int
4649 1.4 tv main ()
4650 1.4 tv {
4651 1.4 tv #ifndef sys_signame
4652 1.4 tv char *p = (char *) sys_signame;
4653 1.4 tv #endif
4654 1.4 tv
4655 1.4 tv ;
4656 1.4 tv return 0;
4657 1.4 tv }
4658 1.4 tv _ACEOF
4659 1.4 tv rm -f conftest.$ac_objext
4660 1.61.2.2 snj if { (eval echo "$as_me:4660: \"$ac_compile\"") >&5
4661 1.61.2.1 pavel (eval $ac_compile) 2>&5
4662 1.4 tv ac_status=$?
4663 1.61.2.2 snj echo "$as_me:4663: \$? = $ac_status" >&5
4664 1.4 tv (exit $ac_status); } &&
4665 1.61.2.1 pavel { ac_try='test -s conftest.$ac_objext'
4666 1.61.2.2 snj { (eval echo "$as_me:4666: \"$ac_try\"") >&5
4667 1.61 christos (eval $ac_try) 2>&5
4668 1.61 christos ac_status=$?
4669 1.61.2.2 snj echo "$as_me:4669: \$? = $ac_status" >&5
4670 1.4 tv (exit $ac_status); }; }; then
4671 1.4 tv ac_cv_have_decl_sys_signame=yes
4672 1.4 tv else
4673 1.4 tv echo "$as_me: failed program was:" >&5
4674 1.61.2.1 pavel cat conftest.$ac_ext >&5
4675 1.4 tv ac_cv_have_decl_sys_signame=no
4676 1.4 tv fi
4677 1.61.2.1 pavel rm -f conftest.$ac_objext conftest.$ac_ext
4678 1.4 tv fi
4679 1.61.2.2 snj echo "$as_me:4679: result: $ac_cv_have_decl_sys_signame" >&5
4680 1.4 tv echo "${ECHO_T}$ac_cv_have_decl_sys_signame" >&6
4681 1.4 tv if test $ac_cv_have_decl_sys_signame = yes; then
4682 1.4 tv
4683 1.61.2.1 pavel cat >>confdefs.h <<EOF
4684 1.4 tv #define HAVE_DECL_SYS_SIGNAME 1
4685 1.61.2.1 pavel EOF
4686 1.4 tv
4687 1.4 tv else
4688 1.61.2.1 pavel cat >>confdefs.h <<EOF
4689 1.4 tv #define HAVE_DECL_SYS_SIGNAME 0
4690 1.61.2.1 pavel EOF
4691 1.4 tv
4692 1.4 tv fi
4693 1.4 tv
4694 1.4 tv # Library functions (where a .h check isn't enough).
4695 1.19 bjh21 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
4696 1.19 bjh21 # for constant arguments. Useless!
4697 1.61.2.2 snj echo "$as_me:4697: checking for working alloca.h" >&5
4698 1.19 bjh21 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
4699 1.19 bjh21 if test "${ac_cv_working_alloca_h+set}" = set; then
4700 1.19 bjh21 echo $ECHO_N "(cached) $ECHO_C" >&6
4701 1.19 bjh21 else
4702 1.19 bjh21 cat >conftest.$ac_ext <<_ACEOF
4703 1.61.2.2 snj #line 4703 "configure"
4704 1.61.2.1 pavel #include "confdefs.h"
4705 1.19 bjh21 #include <alloca.h>
4706 1.19 bjh21 int
4707 1.19 bjh21 main ()
4708 1.19 bjh21 {
4709 1.19 bjh21 char *p = (char *) alloca (2 * sizeof (int));
4710 1.19 bjh21 ;
4711 1.19 bjh21 return 0;
4712 1.19 bjh21 }
4713 1.19 bjh21 _ACEOF
4714 1.19 bjh21 rm -f conftest.$ac_objext conftest$ac_exeext
4715 1.61.2.2 snj if { (eval echo "$as_me:4715: \"$ac_link\"") >&5
4716 1.61.2.1 pavel (eval $ac_link) 2>&5
4717 1.19 bjh21 ac_status=$?
4718 1.61.2.2 snj echo "$as_me:4718: \$? = $ac_status" >&5
4719 1.19 bjh21 (exit $ac_status); } &&
4720 1.61.2.1 pavel { ac_try='test -s conftest$ac_exeext'
4721 1.61.2.2 snj { (eval echo "$as_me:4721: \"$ac_try\"") >&5
4722 1.50 jmc (eval $ac_try) 2>&5
4723 1.50 jmc ac_status=$?
4724 1.61.2.2 snj echo "$as_me:4724: \$? = $ac_status" >&5
4725 1.19 bjh21 (exit $ac_status); }; }; then
4726 1.19 bjh21 ac_cv_working_alloca_h=yes
4727 1.19 bjh21 else
4728 1.19 bjh21 echo "$as_me: failed program was:" >&5
4729 1.61.2.1 pavel cat conftest.$ac_ext >&5
4730 1.19 bjh21 ac_cv_working_alloca_h=no
4731 1.19 bjh21 fi
4732 1.61.2.1 pavel rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4733 1.19 bjh21 fi
4734 1.61.2.2 snj echo "$as_me:4734: result: $ac_cv_working_alloca_h" >&5
4735 1.19 bjh21 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
4736 1.19 bjh21 if test $ac_cv_working_alloca_h = yes; then
4737 1.19 bjh21
4738 1.61.2.1 pavel cat >>confdefs.h <<\EOF
4739 1.19 bjh21 #define HAVE_ALLOCA_H 1
4740 1.61.2.1 pavel EOF
4741 1.19 bjh21
4742 1.19 bjh21 fi
4743 1.19 bjh21
4744 1.61.2.2 snj echo "$as_me:4744: checking for alloca" >&5
4745 1.19 bjh21 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
4746 1.19 bjh21 if test "${ac_cv_func_alloca_works+set}" = set; then
4747 1.19 bjh21 echo $ECHO_N "(cached) $ECHO_C" >&6
4748 1.19 bjh21 else
4749 1.19 bjh21 cat >conftest.$ac_ext <<_ACEOF
4750 1.61.2.2 snj #line 4750 "configure"
4751 1.61.2.1 pavel #include "confdefs.h"
4752 1.19 bjh21 #ifdef __GNUC__
4753 1.19 bjh21 # define alloca __builtin_alloca
4754 1.19 bjh21 #else
4755 1.19 bjh21 # ifdef _MSC_VER
4756 1.19 bjh21 # include <malloc.h>
4757 1.19 bjh21 # define alloca _alloca
4758 1.19 bjh21 # else
4759 1.19 bjh21 # if HAVE_ALLOCA_H
4760 1.19 bjh21 # include <alloca.h>
4761 1.19 bjh21 # else
4762 1.19 bjh21 # ifdef _AIX
4763 1.19 bjh21 #pragma alloca
4764 1.19 bjh21 # else
4765 1.19 bjh21 # ifndef alloca /* predefined by HP cc +Olibcalls */
4766 1.19 bjh21 char *alloca ();
4767 1.19 bjh21 # endif
4768 1.19 bjh21 # endif
4769 1.19 bjh21 # endif
4770 1.19 bjh21 # endif
4771 1.19 bjh21 #endif
4772 1.19 bjh21
4773 1.19 bjh21 int
4774 1.19 bjh21 main ()
4775 1.19 bjh21 {
4776 1.19 bjh21 char *p = (char *) alloca (1);
4777 1.19 bjh21 ;
4778 1.19 bjh21 return 0;
4779 1.19 bjh21 }
4780 1.19 bjh21 _ACEOF
4781 1.19 bjh21 rm -f conftest.$ac_objext conftest$ac_exeext
4782 1.61.2.2 snj if { (eval echo "$as_me:4782: \"$ac_link\"") >&5
4783 1.61.2.1 pavel (eval $ac_link) 2>&5
4784 1.19 bjh21 ac_status=$?
4785 1.61.2.2 snj echo "$as_me:4785: \$? = $ac_status" >&5
4786 1.19 bjh21 (exit $ac_status); } &&
4787 1.61.2.1 pavel { ac_try='test -s conftest$ac_exeext'
4788 1.61.2.2 snj { (eval echo "$as_me:4788: \"$ac_try\"") >&5
4789 1.50 jmc (eval $ac_try) 2>&5
4790 1.50 jmc ac_status=$?
4791 1.61.2.2 snj echo "$as_me:4791: \$? = $ac_status" >&5
4792 1.19 bjh21 (exit $ac_status); }; }; then
4793 1.19 bjh21 ac_cv_func_alloca_works=yes
4794 1.19 bjh21 else
4795 1.19 bjh21 echo "$as_me: failed program was:" >&5
4796 1.61.2.1 pavel cat conftest.$ac_ext >&5
4797 1.19 bjh21 ac_cv_func_alloca_works=no
4798 1.19 bjh21 fi
4799 1.61.2.1 pavel rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4800 1.19 bjh21 fi
4801 1.61.2.2 snj echo "$as_me:4801: result: $ac_cv_func_alloca_works" >&5
4802 1.19 bjh21 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
4803 1.19 bjh21
4804 1.19 bjh21 if test $ac_cv_func_alloca_works = yes; then
4805 1.19 bjh21
4806 1.61.2.1 pavel cat >>confdefs.h <<\EOF
4807 1.19 bjh21 #define HAVE_ALLOCA 1
4808 1.61.2.1 pavel EOF
4809 1.19 bjh21
4810 1.19 bjh21 else
4811 1.19 bjh21 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
4812 1.19 bjh21 # that cause trouble. Some versions do not even contain alloca or
4813 1.19 bjh21 # contain a buggy version. If you still want to use their alloca,
4814 1.19 bjh21 # use ar to extract alloca.o from them instead of compiling alloca.c.
4815 1.19 bjh21
4816 1.19 bjh21 ALLOCA=alloca.$ac_objext
4817 1.19 bjh21
4818 1.61.2.1 pavel cat >>confdefs.h <<\EOF
4819 1.19 bjh21 #define C_ALLOCA 1
4820 1.61.2.1 pavel EOF
4821 1.61 christos
4822 1.61.2.2 snj echo "$as_me:4822: checking whether \`alloca.c' needs Cray hooks" >&5
4823 1.19 bjh21 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
4824 1.19 bjh21 if test "${ac_cv_os_cray+set}" = set; then
4825 1.19 bjh21 echo $ECHO_N "(cached) $ECHO_C" >&6
4826 1.19 bjh21 else
4827 1.19 bjh21 cat >conftest.$ac_ext <<_ACEOF
4828 1.61.2.2 snj #line 4828 "configure"
4829 1.61.2.1 pavel #include "confdefs.h"
4830 1.19 bjh21 #if defined(CRAY) && ! defined(CRAY2)
4831 1.19 bjh21 webecray
4832 1.19 bjh21 #else
4833 1.19 bjh21 wenotbecray
4834 1.19 bjh21 #endif
4835 1.19 bjh21
4836 1.19 bjh21 _ACEOF
4837 1.19 bjh21 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4838 1.61.2.1 pavel egrep "webecray" >/dev/null 2>&1; then
4839 1.19 bjh21 ac_cv_os_cray=yes
4840 1.19 bjh21 else
4841 1.19 bjh21 ac_cv_os_cray=no
4842 1.19 bjh21 fi
4843 1.19 bjh21 rm -f conftest*
4844 1.19 bjh21
4845 1.19 bjh21 fi
4846 1.61.2.2 snj echo "$as_me:4846: result: $ac_cv_os_cray" >&5
4847 1.19 bjh21 echo "${ECHO_T}$ac_cv_os_cray" >&6
4848 1.19 bjh21 if test $ac_cv_os_cray = yes; then
4849 1.19 bjh21 for ac_func in _getb67 GETB67 getb67; do
4850 1.19 bjh21 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4851 1.61.2.2 snj echo "$as_me:4851: checking for $ac_func" >&5
4852 1.19 bjh21 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4853 1.19 bjh21 if eval "test \"\${$as_ac_var+set}\" = set"; then
4854 1.19 bjh21 echo $ECHO_N "(cached) $ECHO_C" >&6
4855 1.19 bjh21 else
4856 1.19 bjh21 cat >conftest.$ac_ext <<_ACEOF
4857 1.61.2.2 snj #line 4857 "configure"
4858 1.61.2.1 pavel #include "confdefs.h"
4859 1.19 bjh21 /* System header to define __stub macros and hopefully few prototypes,
4860 1.61.2.1 pavel which can conflict with char $ac_func (); below. */
4861 1.61.2.1 pavel #include <assert.h>
4862 1.19 bjh21 /* Override any gcc2 internal prototype to avoid an error. */
4863 1.19 bjh21 #ifdef __cplusplus
4864 1.19 bjh21 extern "C"
4865 1.19 bjh21 #endif
4866 1.19 bjh21 /* We use char because int might match the return type of a gcc2
4867 1.19 bjh21 builtin and then its argument prototype would still apply. */
4868 1.19 bjh21 char $ac_func ();
4869 1.61.2.1 pavel char (*f) ();
4870 1.61.2.1 pavel
4871 1.61.2.1 pavel int
4872 1.61.2.1 pavel main ()
4873 1.61.2.1 pavel {
4874 1.19 bjh21 /* The GNU C library defines this for functions which it implements
4875 1.19 bjh21 to always fail with ENOSYS. Some functions are actually named
4876 1.19 bjh21 something starting with __ and the normal name is an alias. */
4877 1.19 bjh21 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4878 1.19 bjh21 choke me
4879 1.19 bjh21 #else
4880 1.61.2.1 pavel f = $ac_func;
4881 1.19 bjh21 #endif
4882 1.19 bjh21
4883 1.19 bjh21 ;
4884 1.19 bjh21 return 0;
4885 1.19 bjh21 }
4886 1.19 bjh21 _ACEOF
4887 1.61 christos rm -f conftest.$ac_objext conftest$ac_exeext
4888 1.61.2.2 snj if { (eval echo "$as_me:4888: \"$ac_link\"") >&5
4889 1.61.2.1 pavel (eval $ac_link) 2>&5
4890 1.61 christos ac_status=$?
4891 1.61.2.2 snj echo "$as_me:4891: \$? = $ac_status" >&5
4892 1.61 christos (exit $ac_status); } &&
4893 1.61.2.1 pavel { ac_try='test -s conftest$ac_exeext'
4894 1.61.2.2 snj { (eval echo "$as_me:4894: \"$ac_try\"") >&5
4895 1.50 jmc (eval $ac_try) 2>&5
4896 1.50 jmc ac_status=$?
4897 1.61.2.2 snj echo "$as_me:4897: \$? = $ac_status" >&5
4898 1.19 bjh21 (exit $ac_status); }; }; then
4899 1.19 bjh21 eval "$as_ac_var=yes"
4900 1.19 bjh21 else
4901 1.19 bjh21 echo "$as_me: failed program was:" >&5
4902 1.61.2.1 pavel cat conftest.$ac_ext >&5
4903 1.19 bjh21 eval "$as_ac_var=no"
4904 1.19 bjh21 fi
4905 1.61.2.1 pavel rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4906 1.19 bjh21 fi
4907 1.61.2.2 snj echo "$as_me:4907: result: `eval echo '${'$as_ac_var'}'`" >&5
4908 1.19 bjh21 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4909 1.19 bjh21 if test `eval echo '${'$as_ac_var'}'` = yes; then
4910 1.19 bjh21
4911 1.61.2.1 pavel cat >>confdefs.h <<EOF
4912 1.19 bjh21 #define CRAY_STACKSEG_END $ac_func
4913 1.61.2.1 pavel EOF
4914 1.19 bjh21
4915 1.19 bjh21 break
4916 1.19 bjh21 fi
4917 1.19 bjh21
4918 1.19 bjh21 done
4919 1.19 bjh21 fi
4920 1.19 bjh21
4921 1.61.2.2 snj echo "$as_me:4921: checking stack direction for C alloca" >&5
4922 1.19 bjh21 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
4923 1.19 bjh21 if test "${ac_cv_c_stack_direction+set}" = set; then
4924 1.19 bjh21 echo $ECHO_N "(cached) $ECHO_C" >&6
4925 1.19 bjh21 else
4926 1.19 bjh21 if test "$cross_compiling" = yes; then
4927 1.19 bjh21 ac_cv_c_stack_direction=0
4928 1.19 bjh21 else
4929 1.19 bjh21 cat >conftest.$ac_ext <<_ACEOF
4930 1.61.2.2 snj #line 4930 "configure"
4931 1.61.2.1 pavel #include "confdefs.h"
4932 1.19 bjh21 int
4933 1.19 bjh21 find_stack_direction ()
4934 1.19 bjh21 {
4935 1.19 bjh21 static char *addr = 0;
4936 1.19 bjh21 auto char dummy;
4937 1.19 bjh21 if (addr == 0)
4938 1.19 bjh21 {
4939 1.19 bjh21 addr = &dummy;
4940 1.19 bjh21 return find_stack_direction ();
4941 1.19 bjh21 }
4942 1.19 bjh21 else
4943 1.19 bjh21 return (&dummy > addr) ? 1 : -1;
4944 1.19 bjh21 }
4945 1.19 bjh21
4946 1.43 dbj int
4947 1.43 dbj main ()
4948 1.43 dbj {
4949 1.43 dbj exit (find_stack_direction () < 0);
4950 1.43 dbj }
4951 1.43 dbj _ACEOF
4952 1.43 dbj rm -f conftest$ac_exeext
4953 1.61.2.2 snj if { (eval echo "$as_me:4953: \"$ac_link\"") >&5
4954 1.43 dbj (eval $ac_link) 2>&5
4955 1.43 dbj ac_status=$?
4956 1.61.2.2 snj echo "$as_me:4956: \$? = $ac_status" >&5
4957 1.43 dbj (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4958 1.61.2.2 snj { (eval echo "$as_me:4958: \"$ac_try\"") >&5
4959 1.43 dbj (eval $ac_try) 2>&5
4960 1.43 dbj ac_status=$?
4961 1.61.2.2 snj echo "$as_me:4961: \$? = $ac_status" >&5
4962 1.43 dbj (exit $ac_status); }; }; then
4963 1.43 dbj ac_cv_c_stack_direction=1
4964 1.43 dbj else
4965 1.43 dbj echo "$as_me: program exited with status $ac_status" >&5
4966 1.43 dbj echo "$as_me: failed program was:" >&5
4967 1.61.2.1 pavel cat conftest.$ac_ext >&5
4968 1.43 dbj ac_cv_c_stack_direction=-1
4969 1.43 dbj fi
4970 1.61.2.1 pavel rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4971 1.43 dbj fi
4972 1.43 dbj fi
4973 1.61.2.2 snj echo "$as_me:4973: result: $ac_cv_c_stack_direction" >&5
4974 1.43 dbj echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
4975 1.39 fredb
4976 1.61.2.1 pavel cat >>confdefs.h <<EOF
4977 1.43 dbj #define STACK_DIRECTION $ac_cv_c_stack_direction
4978 1.61.2.1 pavel EOF
4979 1.39 fredb
4980 1.43 dbj fi
4981 1.40 atatat
4982 1.40 atatat for ac_func in atoll asprintf asnprintf basename devname dirfd dirname \
4983 1.61 christos esetfunc fgetln flock fparseln futimes getopt getopt_long \
4984 1.61 christos group_from_gid \
4985 1.49 jmc heapsort isblank issetugid lchflags lchmod lchown lutimes mkstemp \
4986 1.49 jmc mkdtemp poll pread putc_unlocked pwcache_userdb pwrite random setenv \
4987 1.60 apb setgroupent setprogname setpassent snprintf strlcat strlcpy strmode \
4988 1.60 apb strsep strsuftoll strtoll \
4989 1.23 thorpej user_from_uid vasprintf vasnprintf vsnprintf
4990 1.1 tv do
4991 1.1 tv as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4992 1.61.2.2 snj echo "$as_me:4992: checking for $ac_func" >&5
4993 1.45 jmc echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4994 1.45 jmc if eval "test \"\${$as_ac_var+set}\" = set"; then
4995 1.45 jmc echo $ECHO_N "(cached) $ECHO_C" >&6
4996 1.45 jmc else
4997 1.45 jmc cat >conftest.$ac_ext <<_ACEOF
4998 1.61.2.2 snj #line 4998 "configure"
4999 1.61.2.1 pavel #include "confdefs.h"
5000 1.45 jmc /* System header to define __stub macros and hopefully few prototypes,
5001 1.61.2.1 pavel which can conflict with char $ac_func (); below. */
5002 1.61.2.1 pavel #include <assert.h>
5003 1.45 jmc /* Override any gcc2 internal prototype to avoid an error. */
5004 1.45 jmc #ifdef __cplusplus
5005 1.45 jmc extern "C"
5006 1.45 jmc #endif
5007 1.45 jmc /* We use char because int might match the return type of a gcc2
5008 1.45 jmc builtin and then its argument prototype would still apply. */
5009 1.45 jmc char $ac_func ();
5010 1.61.2.1 pavel char (*f) ();
5011 1.61.2.1 pavel
5012 1.61.2.1 pavel int
5013 1.61.2.1 pavel main ()
5014 1.61.2.1 pavel {
5015 1.45 jmc /* The GNU C library defines this for functions which it implements
5016 1.45 jmc to always fail with ENOSYS. Some functions are actually named
5017 1.45 jmc something starting with __ and the normal name is an alias. */
5018 1.45 jmc #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5019 1.45 jmc choke me
5020 1.45 jmc #else
5021 1.61.2.1 pavel f = $ac_func;
5022 1.45 jmc #endif
5023 1.45 jmc
5024 1.45 jmc ;
5025 1.45 jmc return 0;
5026 1.45 jmc }
5027 1.45 jmc _ACEOF
5028 1.45 jmc rm -f conftest.$ac_objext conftest$ac_exeext
5029 1.61.2.2 snj if { (eval echo "$as_me:5029: \"$ac_link\"") >&5
5030 1.61.2.1 pavel (eval $ac_link) 2>&5
5031 1.45 jmc ac_status=$?
5032 1.61.2.2 snj echo "$as_me:5032: \$? = $ac_status" >&5
5033 1.45 jmc (exit $ac_status); } &&
5034 1.61.2.1 pavel { ac_try='test -s conftest$ac_exeext'
5035 1.61.2.2 snj { (eval echo "$as_me:5035: \"$ac_try\"") >&5
5036 1.61 christos (eval $ac_try) 2>&5
5037 1.61 christos ac_status=$?
5038 1.61.2.2 snj echo "$as_me:5038: \$? = $ac_status" >&5
5039 1.45 jmc (exit $ac_status); }; }; then
5040 1.45 jmc eval "$as_ac_var=yes"
5041 1.45 jmc else
5042 1.45 jmc echo "$as_me: failed program was:" >&5
5043 1.61.2.1 pavel cat conftest.$ac_ext >&5
5044 1.45 jmc eval "$as_ac_var=no"
5045 1.45 jmc fi
5046 1.61.2.1 pavel rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5047 1.45 jmc fi
5048 1.61.2.2 snj echo "$as_me:5048: result: `eval echo '${'$as_ac_var'}'`" >&5
5049 1.45 jmc echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5050 1.45 jmc if test `eval echo '${'$as_ac_var'}'` = yes; then
5051 1.61.2.1 pavel cat >>confdefs.h <<EOF
5052 1.45 jmc #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5053 1.61.2.1 pavel EOF
5054 1.45 jmc
5055 1.45 jmc fi
5056 1.45 jmc done
5057 1.45 jmc
5058 1.61.2.2 snj echo "$as_me:5058: checking whether strsuftoll is declared" >&5
5059 1.55 wiz echo $ECHO_N "checking whether strsuftoll is declared... $ECHO_C" >&6
5060 1.55 wiz if test "${ac_cv_have_decl_strsuftoll+set}" = set; then
5061 1.55 wiz echo $ECHO_N "(cached) $ECHO_C" >&6
5062 1.55 wiz else
5063 1.55 wiz cat >conftest.$ac_ext <<_ACEOF
5064 1.61.2.2 snj #line 5064 "configure"
5065 1.61.2.1 pavel #include "confdefs.h"
5066 1.55 wiz #include <stdlib.h>
5067 1.55 wiz
5068 1.55 wiz int
5069 1.55 wiz main ()
5070 1.55 wiz {
5071 1.55 wiz #ifndef strsuftoll
5072 1.55 wiz char *p = (char *) strsuftoll;
5073 1.55 wiz #endif
5074 1.55 wiz
5075 1.55 wiz ;
5076 1.55 wiz return 0;
5077 1.55 wiz }
5078 1.55 wiz _ACEOF
5079 1.55 wiz rm -f conftest.$ac_objext
5080 1.61.2.2 snj if { (eval echo "$as_me:5080: \"$ac_compile\"") >&5
5081 1.61.2.1 pavel (eval $ac_compile) 2>&5
5082 1.55 wiz ac_status=$?
5083 1.61.2.2 snj echo "$as_me:5083: \$? = $ac_status" >&5
5084 1.55 wiz (exit $ac_status); } &&
5085 1.61.2.1 pavel { ac_try='test -s conftest.$ac_objext'
5086 1.61.2.2 snj { (eval echo "$as_me:5086: \"$ac_try\"") >&5
5087 1.61 christos (eval $ac_try) 2>&5
5088 1.61 christos ac_status=$?
5089 1.61.2.2 snj echo "$as_me:5089: \$? = $ac_status" >&5
5090 1.55 wiz (exit $ac_status); }; }; then
5091 1.55 wiz ac_cv_have_decl_strsuftoll=yes
5092 1.55 wiz else
5093 1.55 wiz echo "$as_me: failed program was:" >&5
5094 1.61.2.1 pavel cat conftest.$ac_ext >&5
5095 1.55 wiz ac_cv_have_decl_strsuftoll=no
5096 1.55 wiz fi
5097 1.61.2.1 pavel rm -f conftest.$ac_objext conftest.$ac_ext
5098 1.55 wiz fi
5099 1.61.2.2 snj echo "$as_me:5099: result: $ac_cv_have_decl_strsuftoll" >&5
5100 1.55 wiz echo "${ECHO_T}$ac_cv_have_decl_strsuftoll" >&6
5101 1.55 wiz if test $ac_cv_have_decl_strsuftoll = yes; then
5102 1.55 wiz
5103 1.61.2.1 pavel cat >>confdefs.h <<EOF
5104 1.55 wiz #define HAVE_DECL_STRSUFTOLL 1
5105 1.61.2.1 pavel EOF
5106 1.55 wiz
5107 1.55 wiz else
5108 1.61.2.1 pavel cat >>confdefs.h <<EOF
5109 1.55 wiz #define HAVE_DECL_STRSUFTOLL 0
5110 1.61.2.1 pavel EOF
5111 1.55 wiz
5112 1.55 wiz fi
5113 1.55 wiz
5114 1.61.2.2 snj echo "$as_me:5114: checking whether htobe16 is declared" >&5
5115 1.53 dogcow echo $ECHO_N "checking whether htobe16 is declared... $ECHO_C" >&6
5116 1.53 dogcow if test "${ac_cv_have_decl_htobe16+set}" = set; then
5117 1.45 jmc echo $ECHO_N "(cached) $ECHO_C" >&6
5118 1.45 jmc else
5119 1.45 jmc cat >conftest.$ac_ext <<_ACEOF
5120 1.61.2.2 snj #line 5120 "configure"
5121 1.61.2.1 pavel #include "confdefs.h"
5122 1.53 dogcow #include <sys/types.h>
5123 1.53 dogcow
5124 1.52 dbj int
5125 1.52 dbj main ()
5126 1.52 dbj {
5127 1.53 dogcow #ifndef htobe16
5128 1.53 dogcow char *p = (char *) htobe16;
5129 1.48 jmc #endif
5130 1.45 jmc
5131 1.48 jmc ;
5132 1.48 jmc return 0;
5133 1.48 jmc }
5134 1.48 jmc _ACEOF
5135 1.53 dogcow rm -f conftest.$ac_objext
5136 1.61.2.2 snj if { (eval echo "$as_me:5136: \"$ac_compile\"") >&5
5137 1.61.2.1 pavel (eval $ac_compile) 2>&5
5138 1.48 jmc ac_status=$?
5139 1.61.2.2 snj echo "$as_me:5139: \$? = $ac_status" >&5
5140 1.48 jmc (exit $ac_status); } &&
5141 1.61.2.1 pavel { ac_try='test -s conftest.$ac_objext'
5142 1.61.2.2 snj { (eval echo "$as_me:5142: \"$ac_try\"") >&5
5143 1.48 jmc (eval $ac_try) 2>&5
5144 1.48 jmc ac_status=$?
5145 1.61.2.2 snj echo "$as_me:5145: \$? = $ac_status" >&5
5146 1.48 jmc (exit $ac_status); }; }; then
5147 1.53 dogcow ac_cv_have_decl_htobe16=yes
5148 1.48 jmc else
5149 1.48 jmc echo "$as_me: failed program was:" >&5
5150 1.61.2.1 pavel cat conftest.$ac_ext >&5
5151 1.53 dogcow ac_cv_have_decl_htobe16=no
5152 1.48 jmc fi
5153 1.61.2.1 pavel rm -f conftest.$ac_objext conftest.$ac_ext
5154 1.48 jmc fi
5155 1.61.2.2 snj echo "$as_me:5155: result: $ac_cv_have_decl_htobe16" >&5
5156 1.53 dogcow echo "${ECHO_T}$ac_cv_have_decl_htobe16" >&6
5157 1.53 dogcow if test $ac_cv_have_decl_htobe16 = yes; then
5158 1.53 dogcow
5159 1.61.2.1 pavel cat >>confdefs.h <<EOF
5160 1.53 dogcow #define HAVE_DECL_HTOBE16 1
5161 1.61.2.1 pavel EOF
5162 1.53 dogcow
5163 1.53 dogcow else
5164 1.61.2.1 pavel cat >>confdefs.h <<EOF
5165 1.53 dogcow #define HAVE_DECL_HTOBE16 0
5166 1.61.2.1 pavel EOF
5167 1.48 jmc
5168 1.48 jmc fi
5169 1.61.2.2 snj echo "$as_me:5169: checking whether htobe32 is declared" >&5
5170 1.53 dogcow echo $ECHO_N "checking whether htobe32 is declared... $ECHO_C" >&6
5171 1.53 dogcow if test "${ac_cv_have_decl_htobe32+set}" = set; then
5172 1.48 jmc echo $ECHO_N "(cached) $ECHO_C" >&6
5173 1.48 jmc else
5174 1.48 jmc cat >conftest.$ac_ext <<_ACEOF
5175 1.61.2.2 snj #line 5175 "configure"
5176 1.61.2.1 pavel #include "confdefs.h"
5177 1.53 dogcow #include <sys/types.h>
5178 1.53 dogcow
5179 1.53 dogcow int
5180 1.53 dogcow main ()
5181 1.53 dogcow {
5182 1.53 dogcow #ifndef htobe32
5183 1.53 dogcow char *p = (char *) htobe32;
5184 1.53 dogcow #endif
5185 1.53 dogcow
5186 1.53 dogcow ;
5187 1.53 dogcow return 0;
5188 1.53 dogcow }
5189 1.53 dogcow _ACEOF
5190 1.53 dogcow rm -f conftest.$ac_objext
5191 1.61.2.2 snj if { (eval echo "$as_me:5191: \"$ac_compile\"") >&5
5192 1.61.2.1 pavel (eval $ac_compile) 2>&5
5193 1.53 dogcow ac_status=$?
5194 1.61.2.2 snj echo "$as_me:5194: \$? = $ac_status" >&5
5195 1.53 dogcow (exit $ac_status); } &&
5196 1.61.2.1 pavel { ac_try='test -s conftest.$ac_objext'
5197 1.61.2.2 snj { (eval echo "$as_me:5197: \"$ac_try\"") >&5
5198 1.61 christos (eval $ac_try) 2>&5
5199 1.61 christos ac_status=$?
5200 1.61.2.2 snj echo "$as_me:5200: \$? = $ac_status" >&5
5201 1.53 dogcow (exit $ac_status); }; }; then
5202 1.53 dogcow ac_cv_have_decl_htobe32=yes
5203 1.53 dogcow else
5204 1.53 dogcow echo "$as_me: failed program was:" >&5
5205 1.61.2.1 pavel cat conftest.$ac_ext >&5
5206 1.53 dogcow ac_cv_have_decl_htobe32=no
5207 1.53 dogcow fi
5208 1.61.2.1 pavel rm -f conftest.$ac_objext conftest.$ac_ext
5209 1.53 dogcow fi
5210 1.61.2.2 snj echo "$as_me:5210: result: $ac_cv_have_decl_htobe32" >&5
5211 1.53 dogcow echo "${ECHO_T}$ac_cv_have_decl_htobe32" >&6
5212 1.53 dogcow if test $ac_cv_have_decl_htobe32 = yes; then
5213 1.53 dogcow
5214 1.61.2.1 pavel cat >>confdefs.h <<EOF
5215 1.53 dogcow #define HAVE_DECL_HTOBE32 1
5216 1.61.2.1 pavel EOF
5217 1.53 dogcow
5218 1.53 dogcow else
5219 1.61.2.1 pavel cat >>confdefs.h <<EOF
5220 1.53 dogcow #define HAVE_DECL_HTOBE32 0
5221 1.61.2.1 pavel EOF
5222 1.53 dogcow
5223 1.53 dogcow fi
5224 1.61.2.2 snj echo "$as_me:5224: checking whether htobe64 is declared" >&5
5225 1.53 dogcow echo $ECHO_N "checking whether htobe64 is declared... $ECHO_C" >&6
5226 1.53 dogcow if test "${ac_cv_have_decl_htobe64+set}" = set; then
5227 1.53 dogcow echo $ECHO_N "(cached) $ECHO_C" >&6
5228 1.53 dogcow else
5229 1.53 dogcow cat >conftest.$ac_ext <<_ACEOF
5230 1.61.2.2 snj #line 5230 "configure"
5231 1.61.2.1 pavel #include "confdefs.h"
5232 1.53 dogcow #include <sys/types.h>
5233 1.53 dogcow
5234 1.53 dogcow int
5235 1.53 dogcow main ()
5236 1.53 dogcow {
5237 1.53 dogcow #ifndef htobe64
5238 1.53 dogcow char *p = (char *) htobe64;
5239 1.53 dogcow #endif
5240 1.53 dogcow
5241 1.53 dogcow ;
5242 1.53 dogcow return 0;
5243 1.53 dogcow }
5244 1.53 dogcow _ACEOF
5245 1.53 dogcow rm -f conftest.$ac_objext
5246 1.61.2.2 snj if { (eval echo "$as_me:5246: \"$ac_compile\"") >&5
5247 1.61.2.1 pavel (eval $ac_compile) 2>&5
5248 1.53 dogcow ac_status=$?
5249 1.61.2.2 snj echo "$as_me:5249: \$? = $ac_status" >&5
5250 1.53 dogcow (exit $ac_status); } &&
5251 1.61.2.1 pavel { ac_try='test -s conftest.$ac_objext'
5252 1.61.2.2 snj { (eval echo "$as_me:5252: \"$ac_try\"") >&5
5253 1.61 christos (eval $ac_try) 2>&5
5254 1.61 christos ac_status=$?
5255 1.61.2.2 snj echo "$as_me:5255: \$? = $ac_status" >&5
5256 1.53 dogcow (exit $ac_status); }; }; then
5257 1.53 dogcow ac_cv_have_decl_htobe64=yes
5258 1.53 dogcow else
5259 1.53 dogcow echo "$as_me: failed program was:" >&5
5260 1.61.2.1 pavel cat conftest.$ac_ext >&5
5261 1.53 dogcow ac_cv_have_decl_htobe64=no
5262 1.53 dogcow fi
5263 1.61.2.1 pavel rm -f conftest.$ac_objext conftest.$ac_ext
5264 1.53 dogcow fi
5265 1.61.2.2 snj echo "$as_me:5265: result: $ac_cv_have_decl_htobe64" >&5
5266 1.53 dogcow echo "${ECHO_T}$ac_cv_have_decl_htobe64" >&6
5267 1.53 dogcow if test $ac_cv_have_decl_htobe64 = yes; then
5268 1.53 dogcow
5269 1.61.2.1 pavel cat >>confdefs.h <<EOF
5270 1.53 dogcow #define HAVE_DECL_HTOBE64 1
5271 1.61.2.1 pavel EOF
5272 1.53 dogcow
5273 1.53 dogcow else
5274 1.61.2.1 pavel cat >>confdefs.h <<EOF
5275 1.53 dogcow #define HAVE_DECL_HTOBE64 0
5276 1.61.2.1 pavel EOF
5277 1.53 dogcow
5278 1.53 dogcow fi
5279 1.61.2.2 snj echo "$as_me:5279: checking whether htole16 is declared" >&5
5280 1.53 dogcow echo $ECHO_N "checking whether htole16 is declared... $ECHO_C" >&6
5281 1.53 dogcow if test "${ac_cv_have_decl_htole16+set}" = set; then
5282 1.53 dogcow echo $ECHO_N "(cached) $ECHO_C" >&6
5283 1.53 dogcow else
5284 1.53 dogcow cat >conftest.$ac_ext <<_ACEOF
5285 1.61.2.2 snj #line 5285 "configure"
5286 1.61.2.1 pavel #include "confdefs.h"
5287 1.53 dogcow #include <sys/types.h>
5288 1.53 dogcow
5289 1.53 dogcow int
5290 1.53 dogcow main ()
5291 1.53 dogcow {
5292 1.53 dogcow #ifndef htole16
5293 1.53 dogcow char *p = (char *) htole16;
5294 1.53 dogcow #endif
5295 1.53 dogcow
5296 1.53 dogcow ;
5297 1.53 dogcow return 0;
5298 1.53 dogcow }
5299 1.53 dogcow _ACEOF
5300 1.53 dogcow rm -f conftest.$ac_objext
5301 1.61.2.2 snj if { (eval echo "$as_me:5301: \"$ac_compile\"") >&5
5302 1.61.2.1 pavel (eval $ac_compile) 2>&5
5303 1.53 dogcow ac_status=$?
5304 1.61.2.2 snj echo "$as_me:5304: \$? = $ac_status" >&5
5305 1.53 dogcow (exit $ac_status); } &&
5306 1.61.2.1 pavel { ac_try='test -s conftest.$ac_objext'
5307 1.61.2.2 snj { (eval echo "$as_me:5307: \"$ac_try\"") >&5
5308 1.61 christos (eval $ac_try) 2>&5
5309 1.61 christos ac_status=$?
5310 1.61.2.2 snj echo "$as_me:5310: \$? = $ac_status" >&5
5311 1.61.2.1 pavel (exit $ac_status); }; }; then
5312 1.61.2.1 pavel ac_cv_have_decl_htole16=yes
5313 1.61.2.1 pavel else
5314 1.61.2.1 pavel echo "$as_me: failed program was:" >&5
5315 1.61.2.1 pavel cat conftest.$ac_ext >&5
5316 1.61.2.1 pavel ac_cv_have_decl_htole16=no
5317 1.61.2.1 pavel fi
5318 1.61.2.1 pavel rm -f conftest.$ac_objext conftest.$ac_ext
5319 1.61.2.1 pavel fi
5320 1.61.2.2 snj echo "$as_me:5320: result: $ac_cv_have_decl_htole16" >&5
5321 1.61.2.1 pavel echo "${ECHO_T}$ac_cv_have_decl_htole16" >&6
5322 1.61.2.1 pavel if test $ac_cv_have_decl_htole16 = yes; then
5323 1.61.2.1 pavel
5324 1.61.2.1 pavel cat >>confdefs.h <<EOF
5325 1.61.2.1 pavel #define HAVE_DECL_HTOLE16 1
5326 1.61.2.1 pavel EOF
5327 1.61.2.1 pavel
5328 1.61.2.1 pavel else
5329 1.61.2.1 pavel cat >>confdefs.h <<EOF
5330 1.61.2.1 pavel #define HAVE_DECL_HTOLE16 0
5331 1.61.2.1 pavel EOF
5332 1.61.2.1 pavel
5333 1.61.2.1 pavel fi
5334 1.61.2.2 snj echo "$as_me:5334: checking whether htole32 is declared" >&5
5335 1.61.2.1 pavel echo $ECHO_N "checking whether htole32 is declared... $ECHO_C" >&6
5336 1.61.2.1 pavel if test "${ac_cv_have_decl_htole32+set}" = set; then
5337 1.61.2.1 pavel echo $ECHO_N "(cached) $ECHO_C" >&6
5338 1.61.2.1 pavel else
5339 1.61.2.1 pavel cat >conftest.$ac_ext <<_ACEOF
5340 1.61.2.2 snj #line 5340 "configure"
5341 1.61.2.1 pavel #include "confdefs.h"
5342 1.61.2.1 pavel #include <sys/types.h>
5343 1.61.2.1 pavel
5344 1.61.2.1 pavel int
5345 1.61.2.1 pavel main ()
5346 1.61.2.1 pavel {
5347 1.61.2.1 pavel #ifndef htole32
5348 1.61.2.1 pavel char *p = (char *) htole32;
5349 1.61.2.1 pavel #endif
5350 1.61.2.1 pavel
5351 1.61.2.1 pavel ;
5352 1.61.2.1 pavel return 0;
5353 1.61.2.1 pavel }
5354 1.61.2.1 pavel _ACEOF
5355 1.61.2.1 pavel rm -f conftest.$ac_objext
5356 1.61.2.2 snj if { (eval echo "$as_me:5356: \"$ac_compile\"") >&5
5357 1.61.2.1 pavel (eval $ac_compile) 2>&5
5358 1.61.2.1 pavel ac_status=$?
5359 1.61.2.2 snj echo "$as_me:5359: \$? = $ac_status" >&5
5360 1.61.2.1 pavel (exit $ac_status); } &&
5361 1.61.2.1 pavel { ac_try='test -s conftest.$ac_objext'
5362 1.61.2.2 snj { (eval echo "$as_me:5362: \"$ac_try\"") >&5
5363 1.61.2.1 pavel (eval $ac_try) 2>&5
5364 1.61.2.1 pavel ac_status=$?
5365 1.61.2.2 snj echo "$as_me:5365: \$? = $ac_status" >&5
5366 1.61.2.1 pavel (exit $ac_status); }; }; then
5367 1.61.2.1 pavel ac_cv_have_decl_htole32=yes
5368 1.61.2.1 pavel else
5369 1.61.2.1 pavel echo "$as_me: failed program was:" >&5
5370 1.61.2.1 pavel cat conftest.$ac_ext >&5
5371 1.61.2.1 pavel ac_cv_have_decl_htole32=no
5372 1.61.2.1 pavel fi
5373 1.61.2.1 pavel rm -f conftest.$ac_objext conftest.$ac_ext
5374 1.61.2.1 pavel fi
5375 1.61.2.2 snj echo "$as_me:5375: result: $ac_cv_have_decl_htole32" >&5
5376 1.61.2.1 pavel echo "${ECHO_T}$ac_cv_have_decl_htole32" >&6
5377 1.61.2.1 pavel if test $ac_cv_have_decl_htole32 = yes; then
5378 1.61.2.1 pavel
5379 1.61.2.1 pavel cat >>confdefs.h <<EOF
5380 1.61.2.1 pavel #define HAVE_DECL_HTOLE32 1
5381 1.61.2.1 pavel EOF
5382 1.61.2.1 pavel
5383 1.61.2.1 pavel else
5384 1.61.2.1 pavel cat >>confdefs.h <<EOF
5385 1.61.2.1 pavel #define HAVE_DECL_HTOLE32 0
5386 1.61.2.1 pavel EOF
5387 1.61.2.1 pavel
5388 1.61.2.1 pavel fi
5389 1.61.2.2 snj echo "$as_me:5389: checking whether htole64 is declared" >&5
5390 1.61.2.1 pavel echo $ECHO_N "checking whether htole64 is declared... $ECHO_C" >&6
5391 1.61.2.1 pavel if test "${ac_cv_have_decl_htole64+set}" = set; then
5392 1.61.2.1 pavel echo $ECHO_N "(cached) $ECHO_C" >&6
5393 1.61.2.1 pavel else
5394 1.61.2.1 pavel cat >conftest.$ac_ext <<_ACEOF
5395 1.61.2.2 snj #line 5395 "configure"
5396 1.61.2.1 pavel #include "confdefs.h"
5397 1.61.2.1 pavel #include <sys/types.h>
5398 1.61.2.1 pavel
5399 1.61.2.1 pavel int
5400 1.61.2.1 pavel main ()
5401 1.61.2.1 pavel {
5402 1.61.2.1 pavel #ifndef htole64
5403 1.61.2.1 pavel char *p = (char *) htole64;
5404 1.61.2.1 pavel #endif
5405 1.61.2.1 pavel
5406 1.61.2.1 pavel ;
5407 1.61.2.1 pavel return 0;
5408 1.61.2.1 pavel }
5409 1.61.2.1 pavel _ACEOF
5410 1.61.2.1 pavel rm -f conftest.$ac_objext
5411 1.61.2.2 snj if { (eval echo "$as_me:5411: \"$ac_compile\"") >&5
5412 1.61.2.1 pavel (eval $ac_compile) 2>&5
5413 1.61.2.1 pavel ac_status=$?
5414 1.61.2.2 snj echo "$as_me:5414: \$? = $ac_status" >&5
5415 1.61.2.1 pavel (exit $ac_status); } &&
5416 1.61.2.1 pavel { ac_try='test -s conftest.$ac_objext'
5417 1.61.2.2 snj { (eval echo "$as_me:5417: \"$ac_try\"") >&5
5418 1.61.2.1 pavel (eval $ac_try) 2>&5
5419 1.61.2.1 pavel ac_status=$?
5420 1.61.2.2 snj echo "$as_me:5420: \$? = $ac_status" >&5
5421 1.61.2.1 pavel (exit $ac_status); }; }; then
5422 1.61.2.1 pavel ac_cv_have_decl_htole64=yes
5423 1.61.2.1 pavel else
5424 1.61.2.1 pavel echo "$as_me: failed program was:" >&5
5425 1.61.2.1 pavel cat conftest.$ac_ext >&5
5426 1.61.2.1 pavel ac_cv_have_decl_htole64=no
5427 1.61.2.1 pavel fi
5428 1.61.2.1 pavel rm -f conftest.$ac_objext conftest.$ac_ext
5429 1.61.2.1 pavel fi
5430 1.61.2.2 snj echo "$as_me:5430: result: $ac_cv_have_decl_htole64" >&5
5431 1.61.2.1 pavel echo "${ECHO_T}$ac_cv_have_decl_htole64" >&6
5432 1.61.2.1 pavel if test $ac_cv_have_decl_htole64 = yes; then
5433 1.61.2.1 pavel
5434 1.61.2.1 pavel cat >>confdefs.h <<EOF
5435 1.61.2.1 pavel #define HAVE_DECL_HTOLE64 1
5436 1.61.2.1 pavel EOF
5437 1.61.2.1 pavel
5438 1.61.2.1 pavel else
5439 1.61.2.1 pavel cat >>confdefs.h <<EOF
5440 1.61.2.1 pavel #define HAVE_DECL_HTOLE64 0
5441 1.61.2.1 pavel EOF
5442 1.61.2.1 pavel
5443 1.61.2.1 pavel fi
5444 1.61.2.2 snj echo "$as_me:5444: checking whether be16toh is declared" >&5
5445 1.61.2.1 pavel echo $ECHO_N "checking whether be16toh is declared... $ECHO_C" >&6
5446 1.61.2.1 pavel if test "${ac_cv_have_decl_be16toh+set}" = set; then
5447 1.61.2.1 pavel echo $ECHO_N "(cached) $ECHO_C" >&6
5448 1.61.2.1 pavel else
5449 1.61.2.1 pavel cat >conftest.$ac_ext <<_ACEOF
5450 1.61.2.2 snj #line 5450 "configure"
5451 1.61.2.1 pavel #include "confdefs.h"
5452 1.61.2.1 pavel #include <sys/types.h>
5453 1.61.2.1 pavel
5454 1.61.2.1 pavel int
5455 1.61.2.1 pavel main ()
5456 1.61.2.1 pavel {
5457 1.61.2.1 pavel #ifndef be16toh
5458 1.61.2.1 pavel char *p = (char *) be16toh;
5459 1.61.2.1 pavel #endif
5460 1.61.2.1 pavel
5461 1.61.2.1 pavel ;
5462 1.61.2.1 pavel return 0;
5463 1.61.2.1 pavel }
5464 1.61.2.1 pavel _ACEOF
5465 1.61.2.1 pavel rm -f conftest.$ac_objext
5466 1.61.2.2 snj if { (eval echo "$as_me:5466: \"$ac_compile\"") >&5
5467 1.61.2.1 pavel (eval $ac_compile) 2>&5
5468 1.61.2.1 pavel ac_status=$?
5469 1.61.2.2 snj echo "$as_me:5469: \$? = $ac_status" >&5
5470 1.61.2.1 pavel (exit $ac_status); } &&
5471 1.61.2.1 pavel { ac_try='test -s conftest.$ac_objext'
5472 1.61.2.2 snj { (eval echo "$as_me:5472: \"$ac_try\"") >&5
5473 1.61.2.1 pavel (eval $ac_try) 2>&5
5474 1.61.2.1 pavel ac_status=$?
5475 1.61.2.2 snj echo "$as_me:5475: \$? = $ac_status" >&5
5476 1.61.2.1 pavel (exit $ac_status); }; }; then
5477 1.61.2.1 pavel ac_cv_have_decl_be16toh=yes
5478 1.61.2.1 pavel else
5479 1.61.2.1 pavel echo "$as_me: failed program was:" >&5
5480 1.61.2.1 pavel cat conftest.$ac_ext >&5
5481 1.61.2.1 pavel ac_cv_have_decl_be16toh=no
5482 1.61.2.1 pavel fi
5483 1.61.2.1 pavel rm -f conftest.$ac_objext conftest.$ac_ext
5484 1.61.2.1 pavel fi
5485 1.61.2.2 snj echo "$as_me:5485: result: $ac_cv_have_decl_be16toh" >&5
5486 1.61.2.1 pavel echo "${ECHO_T}$ac_cv_have_decl_be16toh" >&6
5487 1.61.2.1 pavel if test $ac_cv_have_decl_be16toh = yes; then
5488 1.61.2.1 pavel
5489 1.61.2.1 pavel cat >>confdefs.h <<EOF
5490 1.61.2.1 pavel #define HAVE_DECL_BE16TOH 1
5491 1.61.2.1 pavel EOF
5492 1.61.2.1 pavel
5493 1.61.2.1 pavel else
5494 1.61.2.1 pavel cat >>confdefs.h <<EOF
5495 1.61.2.1 pavel #define HAVE_DECL_BE16TOH 0
5496 1.61.2.1 pavel EOF
5497 1.61.2.1 pavel
5498 1.61.2.1 pavel fi
5499 1.61.2.2 snj echo "$as_me:5499: checking whether be32toh is declared" >&5
5500 1.61.2.1 pavel echo $ECHO_N "checking whether be32toh is declared... $ECHO_C" >&6
5501 1.61.2.1 pavel if test "${ac_cv_have_decl_be32toh+set}" = set; then
5502 1.61.2.1 pavel echo $ECHO_N "(cached) $ECHO_C" >&6
5503 1.61.2.1 pavel else
5504 1.61.2.1 pavel cat >conftest.$ac_ext <<_ACEOF
5505 1.61.2.2 snj #line 5505 "configure"
5506 1.61.2.1 pavel #include "confdefs.h"
5507 1.61.2.1 pavel #include <sys/types.h>
5508 1.61.2.1 pavel
5509 1.61.2.1 pavel int
5510 1.61.2.1 pavel main ()
5511 1.61.2.1 pavel {
5512 1.61.2.1 pavel #ifndef be32toh
5513 1.61.2.1 pavel char *p = (char *) be32toh;
5514 1.61.2.1 pavel #endif
5515 1.61.2.1 pavel
5516 1.61.2.1 pavel ;
5517 1.61.2.1 pavel return 0;
5518 1.61.2.1 pavel }
5519 1.61.2.1 pavel _ACEOF
5520 1.61.2.1 pavel rm -f conftest.$ac_objext
5521 1.61.2.2 snj if { (eval echo "$as_me:5521: \"$ac_compile\"") >&5
5522 1.61.2.1 pavel (eval $ac_compile) 2>&5
5523 1.61.2.1 pavel ac_status=$?
5524 1.61.2.2 snj echo "$as_me:5524: \$? = $ac_status" >&5
5525 1.61.2.1 pavel (exit $ac_status); } &&
5526 1.61.2.1 pavel { ac_try='test -s conftest.$ac_objext'
5527 1.61.2.2 snj { (eval echo "$as_me:5527: \"$ac_try\"") >&5
5528 1.61.2.1 pavel (eval $ac_try) 2>&5
5529 1.61.2.1 pavel ac_status=$?
5530 1.61.2.2 snj echo "$as_me:5530: \$? = $ac_status" >&5
5531 1.61.2.1 pavel (exit $ac_status); }; }; then
5532 1.61.2.1 pavel ac_cv_have_decl_be32toh=yes
5533 1.61.2.1 pavel else
5534 1.61.2.1 pavel echo "$as_me: failed program was:" >&5
5535 1.61.2.1 pavel cat conftest.$ac_ext >&5
5536 1.61.2.1 pavel ac_cv_have_decl_be32toh=no
5537 1.61.2.1 pavel fi
5538 1.61.2.1 pavel rm -f conftest.$ac_objext conftest.$ac_ext
5539 1.61.2.1 pavel fi
5540 1.61.2.2 snj echo "$as_me:5540: result: $ac_cv_have_decl_be32toh" >&5
5541 1.61.2.1 pavel echo "${ECHO_T}$ac_cv_have_decl_be32toh" >&6
5542 1.61.2.1 pavel if test $ac_cv_have_decl_be32toh = yes; then
5543 1.61.2.1 pavel
5544 1.61.2.1 pavel cat >>confdefs.h <<EOF
5545 1.61.2.1 pavel #define HAVE_DECL_BE32TOH 1
5546 1.61.2.1 pavel EOF
5547 1.61.2.1 pavel
5548 1.61.2.1 pavel else
5549 1.61.2.1 pavel cat >>confdefs.h <<EOF
5550 1.61.2.1 pavel #define HAVE_DECL_BE32TOH 0
5551 1.61.2.1 pavel EOF
5552 1.61.2.1 pavel
5553 1.61.2.1 pavel fi
5554 1.61.2.2 snj echo "$as_me:5554: checking whether be64toh is declared" >&5
5555 1.61.2.1 pavel echo $ECHO_N "checking whether be64toh is declared... $ECHO_C" >&6
5556 1.61.2.1 pavel if test "${ac_cv_have_decl_be64toh+set}" = set; then
5557 1.61.2.1 pavel echo $ECHO_N "(cached) $ECHO_C" >&6
5558 1.61.2.1 pavel else
5559 1.61.2.1 pavel cat >conftest.$ac_ext <<_ACEOF
5560 1.61.2.2 snj #line 5560 "configure"
5561 1.61.2.1 pavel #include "confdefs.h"
5562 1.61.2.1 pavel #include <sys/types.h>
5563 1.61.2.1 pavel
5564 1.61.2.1 pavel int
5565 1.61.2.1 pavel main ()
5566 1.61.2.1 pavel {
5567 1.61.2.1 pavel #ifndef be64toh
5568 1.61.2.1 pavel char *p = (char *) be64toh;
5569 1.61.2.1 pavel #endif
5570 1.61.2.1 pavel
5571 1.61.2.1 pavel ;
5572 1.61.2.1 pavel return 0;
5573 1.61.2.1 pavel }
5574 1.61.2.1 pavel _ACEOF
5575 1.61.2.1 pavel rm -f conftest.$ac_objext
5576 1.61.2.2 snj if { (eval echo "$as_me:5576: \"$ac_compile\"") >&5
5577 1.61.2.1 pavel (eval $ac_compile) 2>&5
5578 1.61.2.1 pavel ac_status=$?
5579 1.61.2.2 snj echo "$as_me:5579: \$? = $ac_status" >&5
5580 1.61.2.1 pavel (exit $ac_status); } &&
5581 1.61.2.1 pavel { ac_try='test -s conftest.$ac_objext'
5582 1.61.2.2 snj { (eval echo "$as_me:5582: \"$ac_try\"") >&5
5583 1.61.2.1 pavel (eval $ac_try) 2>&5
5584 1.61.2.1 pavel ac_status=$?
5585 1.61.2.2 snj echo "$as_me:5585: \$? = $ac_status" >&5
5586 1.61.2.1 pavel (exit $ac_status); }; }; then
5587 1.61.2.1 pavel ac_cv_have_decl_be64toh=yes
5588 1.61.2.1 pavel else
5589 1.61.2.1 pavel echo "$as_me: failed program was:" >&5
5590 1.61.2.1 pavel cat conftest.$ac_ext >&5
5591 1.61.2.1 pavel ac_cv_have_decl_be64toh=no
5592 1.61.2.1 pavel fi
5593 1.61.2.1 pavel rm -f conftest.$ac_objext conftest.$ac_ext
5594 1.61.2.1 pavel fi
5595 1.61.2.2 snj echo "$as_me:5595: result: $ac_cv_have_decl_be64toh" >&5
5596 1.61.2.1 pavel echo "${ECHO_T}$ac_cv_have_decl_be64toh" >&6
5597 1.61.2.1 pavel if test $ac_cv_have_decl_be64toh = yes; then
5598 1.61.2.1 pavel
5599 1.61.2.1 pavel cat >>confdefs.h <<EOF
5600 1.61.2.1 pavel #define HAVE_DECL_BE64TOH 1
5601 1.61.2.1 pavel EOF
5602 1.61.2.1 pavel
5603 1.61.2.1 pavel else
5604 1.61.2.1 pavel cat >>confdefs.h <<EOF
5605 1.61.2.1 pavel #define HAVE_DECL_BE64TOH 0
5606 1.61.2.1 pavel EOF
5607 1.61.2.1 pavel
5608 1.61.2.1 pavel fi
5609 1.61.2.2 snj echo "$as_me:5609: checking whether le16toh is declared" >&5
5610 1.61.2.1 pavel echo $ECHO_N "checking whether le16toh is declared... $ECHO_C" >&6
5611 1.61.2.1 pavel if test "${ac_cv_have_decl_le16toh+set}" = set; then
5612 1.61.2.1 pavel echo $ECHO_N "(cached) $ECHO_C" >&6
5613 1.61.2.1 pavel else
5614 1.61.2.1 pavel cat >conftest.$ac_ext <<_ACEOF
5615 1.61.2.2 snj #line 5615 "configure"
5616 1.61.2.1 pavel #include "confdefs.h"
5617 1.61.2.1 pavel #include <sys/types.h>
5618 1.61.2.1 pavel
5619 1.61.2.1 pavel int
5620 1.61.2.1 pavel main ()
5621 1.61.2.1 pavel {
5622 1.61.2.1 pavel #ifndef le16toh
5623 1.61.2.1 pavel char *p = (char *) le16toh;
5624 1.61.2.1 pavel #endif
5625 1.61.2.1 pavel
5626 1.61.2.1 pavel ;
5627 1.61.2.1 pavel return 0;
5628 1.61.2.1 pavel }
5629 1.61.2.1 pavel _ACEOF
5630 1.61.2.1 pavel rm -f conftest.$ac_objext
5631 1.61.2.2 snj if { (eval echo "$as_me:5631: \"$ac_compile\"") >&5
5632 1.61.2.1 pavel (eval $ac_compile) 2>&5
5633 1.61.2.1 pavel ac_status=$?
5634 1.61.2.2 snj echo "$as_me:5634: \$? = $ac_status" >&5
5635 1.61.2.1 pavel (exit $ac_status); } &&
5636 1.61.2.1 pavel { ac_try='test -s conftest.$ac_objext'
5637 1.61.2.2 snj { (eval echo "$as_me:5637: \"$ac_try\"") >&5
5638 1.61.2.1 pavel (eval $ac_try) 2>&5
5639 1.61.2.1 pavel ac_status=$?
5640 1.61.2.2 snj echo "$as_me:5640: \$? = $ac_status" >&5
5641 1.61.2.1 pavel (exit $ac_status); }; }; then
5642 1.61.2.1 pavel ac_cv_have_decl_le16toh=yes
5643 1.61.2.1 pavel else
5644 1.61.2.1 pavel echo "$as_me: failed program was:" >&5
5645 1.61.2.1 pavel cat conftest.$ac_ext >&5
5646 1.61.2.1 pavel ac_cv_have_decl_le16toh=no
5647 1.61.2.1 pavel fi
5648 1.61.2.1 pavel rm -f conftest.$ac_objext conftest.$ac_ext
5649 1.61.2.1 pavel fi
5650 1.61.2.2 snj echo "$as_me:5650: result: $ac_cv_have_decl_le16toh" >&5
5651 1.61.2.1 pavel echo "${ECHO_T}$ac_cv_have_decl_le16toh" >&6
5652 1.61.2.1 pavel if test $ac_cv_have_decl_le16toh = yes; then
5653 1.61.2.1 pavel
5654 1.61.2.1 pavel cat >>confdefs.h <<EOF
5655 1.61.2.1 pavel #define HAVE_DECL_LE16TOH 1
5656 1.61.2.1 pavel EOF
5657 1.61.2.1 pavel
5658 1.61.2.1 pavel else
5659 1.61.2.1 pavel cat >>confdefs.h <<EOF
5660 1.61.2.1 pavel #define HAVE_DECL_LE16TOH 0
5661 1.61.2.1 pavel EOF
5662 1.61.2.1 pavel
5663 1.61.2.1 pavel fi
5664 1.61.2.2 snj echo "$as_me:5664: checking whether le32toh is declared" >&5
5665 1.61.2.1 pavel echo $ECHO_N "checking whether le32toh is declared... $ECHO_C" >&6
5666 1.61.2.1 pavel if test "${ac_cv_have_decl_le32toh+set}" = set; then
5667 1.61.2.1 pavel echo $ECHO_N "(cached) $ECHO_C" >&6
5668 1.61.2.1 pavel else
5669 1.61.2.1 pavel cat >conftest.$ac_ext <<_ACEOF
5670 1.61.2.2 snj #line 5670 "configure"
5671 1.61.2.1 pavel #include "confdefs.h"
5672 1.61.2.1 pavel #include <sys/types.h>
5673 1.61.2.1 pavel
5674 1.61.2.1 pavel int
5675 1.61.2.1 pavel main ()
5676 1.61.2.1 pavel {
5677 1.61.2.1 pavel #ifndef le32toh
5678 1.61.2.1 pavel char *p = (char *) le32toh;
5679 1.61.2.1 pavel #endif
5680 1.61.2.1 pavel
5681 1.61.2.1 pavel ;
5682 1.61.2.1 pavel return 0;
5683 1.61.2.1 pavel }
5684 1.61.2.1 pavel _ACEOF
5685 1.61.2.1 pavel rm -f conftest.$ac_objext
5686 1.61.2.2 snj if { (eval echo "$as_me:5686: \"$ac_compile\"") >&5
5687 1.61.2.1 pavel (eval $ac_compile) 2>&5
5688 1.61.2.1 pavel ac_status=$?
5689 1.61.2.2 snj echo "$as_me:5689: \$? = $ac_status" >&5
5690 1.61.2.1 pavel (exit $ac_status); } &&
5691 1.61.2.1 pavel { ac_try='test -s conftest.$ac_objext'
5692 1.61.2.2 snj { (eval echo "$as_me:5692: \"$ac_try\"") >&5
5693 1.61.2.1 pavel (eval $ac_try) 2>&5
5694 1.61.2.1 pavel ac_status=$?
5695 1.61.2.2 snj echo "$as_me:5695: \$? = $ac_status" >&5
5696 1.61.2.1 pavel (exit $ac_status); }; }; then
5697 1.61.2.1 pavel ac_cv_have_decl_le32toh=yes
5698 1.61.2.1 pavel else
5699 1.61.2.1 pavel echo "$as_me: failed program was:" >&5
5700 1.61.2.1 pavel cat conftest.$ac_ext >&5
5701 1.61.2.1 pavel ac_cv_have_decl_le32toh=no
5702 1.61.2.1 pavel fi
5703 1.61.2.1 pavel rm -f conftest.$ac_objext conftest.$ac_ext
5704 1.61.2.1 pavel fi
5705 1.61.2.2 snj echo "$as_me:5705: result: $ac_cv_have_decl_le32toh" >&5
5706 1.61.2.1 pavel echo "${ECHO_T}$ac_cv_have_decl_le32toh" >&6
5707 1.61.2.1 pavel if test $ac_cv_have_decl_le32toh = yes; then
5708 1.61.2.1 pavel
5709 1.61.2.1 pavel cat >>confdefs.h <<EOF
5710 1.61.2.1 pavel #define HAVE_DECL_LE32TOH 1
5711 1.61.2.1 pavel EOF
5712 1.61.2.1 pavel
5713 1.61.2.1 pavel else
5714 1.61.2.1 pavel cat >>confdefs.h <<EOF
5715 1.61.2.1 pavel #define HAVE_DECL_LE32TOH 0
5716 1.61.2.1 pavel EOF
5717 1.61.2.1 pavel
5718 1.61.2.1 pavel fi
5719 1.61.2.2 snj echo "$as_me:5719: checking whether le64toh is declared" >&5
5720 1.61.2.1 pavel echo $ECHO_N "checking whether le64toh is declared... $ECHO_C" >&6
5721 1.61.2.1 pavel if test "${ac_cv_have_decl_le64toh+set}" = set; then
5722 1.61.2.1 pavel echo $ECHO_N "(cached) $ECHO_C" >&6
5723 1.61.2.1 pavel else
5724 1.61.2.1 pavel cat >conftest.$ac_ext <<_ACEOF
5725 1.61.2.2 snj #line 5725 "configure"
5726 1.61.2.1 pavel #include "confdefs.h"
5727 1.61.2.1 pavel #include <sys/types.h>
5728 1.61.2.1 pavel
5729 1.61.2.1 pavel int
5730 1.61.2.1 pavel main ()
5731 1.61.2.1 pavel {
5732 1.61.2.1 pavel #ifndef le64toh
5733 1.61.2.1 pavel char *p = (char *) le64toh;
5734 1.61.2.1 pavel #endif
5735 1.61.2.1 pavel
5736 1.61.2.1 pavel ;
5737 1.61.2.1 pavel return 0;
5738 1.61.2.1 pavel }
5739 1.61.2.1 pavel _ACEOF
5740 1.61.2.1 pavel rm -f conftest.$ac_objext
5741 1.61.2.2 snj if { (eval echo "$as_me:5741: \"$ac_compile\"") >&5
5742 1.61.2.1 pavel (eval $ac_compile) 2>&5
5743 1.61.2.1 pavel ac_status=$?
5744 1.61.2.2 snj echo "$as_me:5744: \$? = $ac_status" >&5
5745 1.61.2.1 pavel (exit $ac_status); } &&
5746 1.61.2.1 pavel { ac_try='test -s conftest.$ac_objext'
5747 1.61.2.2 snj { (eval echo "$as_me:5747: \"$ac_try\"") >&5
5748 1.61.2.1 pavel (eval $ac_try) 2>&5
5749 1.61.2.1 pavel ac_status=$?
5750 1.61.2.2 snj echo "$as_me:5750: \$? = $ac_status" >&5
5751 1.61.2.1 pavel (exit $ac_status); }; }; then
5752 1.61.2.1 pavel ac_cv_have_decl_le64toh=yes
5753 1.61.2.1 pavel else
5754 1.61.2.1 pavel echo "$as_me: failed program was:" >&5
5755 1.61.2.1 pavel cat conftest.$ac_ext >&5
5756 1.61.2.1 pavel ac_cv_have_decl_le64toh=no
5757 1.61.2.1 pavel fi
5758 1.61.2.1 pavel rm -f conftest.$ac_objext conftest.$ac_ext
5759 1.61.2.1 pavel fi
5760 1.61.2.2 snj echo "$as_me:5760: result: $ac_cv_have_decl_le64toh" >&5
5761 1.61.2.1 pavel echo "${ECHO_T}$ac_cv_have_decl_le64toh" >&6
5762 1.61.2.1 pavel if test $ac_cv_have_decl_le64toh = yes; then
5763 1.61.2.1 pavel
5764 1.61.2.1 pavel cat >>confdefs.h <<EOF
5765 1.61.2.1 pavel #define HAVE_DECL_LE64TOH 1
5766 1.61.2.1 pavel EOF
5767 1.61.2.1 pavel
5768 1.61.2.1 pavel else
5769 1.61.2.1 pavel cat >>confdefs.h <<EOF
5770 1.61.2.1 pavel #define HAVE_DECL_LE64TOH 0
5771 1.61.2.1 pavel EOF
5772 1.61.2.1 pavel
5773 1.61.2.1 pavel fi
5774 1.61.2.1 pavel
5775 1.61.2.2 snj echo "$as_me:5775: checking whether bswap16 is declared" >&5
5776 1.61.2.1 pavel echo $ECHO_N "checking whether bswap16 is declared... $ECHO_C" >&6
5777 1.61.2.1 pavel if test "${ac_cv_have_decl_bswap16+set}" = set; then
5778 1.61.2.1 pavel echo $ECHO_N "(cached) $ECHO_C" >&6
5779 1.61.2.1 pavel else
5780 1.61.2.1 pavel cat >conftest.$ac_ext <<_ACEOF
5781 1.61.2.2 snj #line 5781 "configure"
5782 1.61.2.1 pavel #include "confdefs.h"
5783 1.61.2.1 pavel #include <machine/bswap.h>
5784 1.61.2.1 pavel
5785 1.61.2.1 pavel int
5786 1.61.2.1 pavel main ()
5787 1.61.2.1 pavel {
5788 1.61.2.1 pavel #ifndef bswap16
5789 1.61.2.1 pavel char *p = (char *) bswap16;
5790 1.61.2.1 pavel #endif
5791 1.61.2.1 pavel
5792 1.61.2.1 pavel ;
5793 1.61.2.1 pavel return 0;
5794 1.61.2.1 pavel }
5795 1.61.2.1 pavel _ACEOF
5796 1.61.2.1 pavel rm -f conftest.$ac_objext
5797 1.61.2.2 snj if { (eval echo "$as_me:5797: \"$ac_compile\"") >&5
5798 1.61.2.1 pavel (eval $ac_compile) 2>&5
5799 1.61.2.1 pavel ac_status=$?
5800 1.61.2.2 snj echo "$as_me:5800: \$? = $ac_status" >&5
5801 1.61.2.1 pavel (exit $ac_status); } &&
5802 1.61.2.1 pavel { ac_try='test -s conftest.$ac_objext'
5803 1.61.2.2 snj { (eval echo "$as_me:5803: \"$ac_try\"") >&5
5804 1.61.2.1 pavel (eval $ac_try) 2>&5
5805 1.61.2.1 pavel ac_status=$?
5806 1.61.2.2 snj echo "$as_me:5806: \$? = $ac_status" >&5
5807 1.61.2.1 pavel (exit $ac_status); }; }; then
5808 1.61.2.1 pavel ac_cv_have_decl_bswap16=yes
5809 1.61.2.1 pavel else
5810 1.61.2.1 pavel echo "$as_me: failed program was:" >&5
5811 1.61.2.1 pavel cat conftest.$ac_ext >&5
5812 1.61.2.1 pavel ac_cv_have_decl_bswap16=no
5813 1.61.2.1 pavel fi
5814 1.61.2.1 pavel rm -f conftest.$ac_objext conftest.$ac_ext
5815 1.61.2.1 pavel fi
5816 1.61.2.2 snj echo "$as_me:5816: result: $ac_cv_have_decl_bswap16" >&5
5817 1.61.2.1 pavel echo "${ECHO_T}$ac_cv_have_decl_bswap16" >&6
5818 1.61.2.1 pavel if test $ac_cv_have_decl_bswap16 = yes; then
5819 1.61.2.1 pavel
5820 1.61.2.1 pavel cat >>confdefs.h <<EOF
5821 1.61.2.1 pavel #define HAVE_DECL_BSWAP16 1
5822 1.61.2.1 pavel EOF
5823 1.61.2.1 pavel
5824 1.61.2.1 pavel else
5825 1.61.2.1 pavel cat >>confdefs.h <<EOF
5826 1.61.2.1 pavel #define HAVE_DECL_BSWAP16 0
5827 1.61.2.1 pavel EOF
5828 1.61.2.1 pavel
5829 1.61.2.1 pavel fi
5830 1.61.2.2 snj echo "$as_me:5830: checking whether bswap32 is declared" >&5
5831 1.61.2.1 pavel echo $ECHO_N "checking whether bswap32 is declared... $ECHO_C" >&6
5832 1.61.2.1 pavel if test "${ac_cv_have_decl_bswap32+set}" = set; then
5833 1.61.2.1 pavel echo $ECHO_N "(cached) $ECHO_C" >&6
5834 1.61.2.1 pavel else
5835 1.61.2.1 pavel cat >conftest.$ac_ext <<_ACEOF
5836 1.61.2.2 snj #line 5836 "configure"
5837 1.61.2.1 pavel #include "confdefs.h"
5838 1.61.2.1 pavel #include <machine/bswap.h>
5839 1.61.2.1 pavel
5840 1.61.2.1 pavel int
5841 1.61.2.1 pavel main ()
5842 1.61.2.1 pavel {
5843 1.61.2.1 pavel #ifndef bswap32
5844 1.61.2.1 pavel char *p = (char *) bswap32;
5845 1.61.2.1 pavel #endif
5846 1.61.2.1 pavel
5847 1.61.2.1 pavel ;
5848 1.61.2.1 pavel return 0;
5849 1.61.2.1 pavel }
5850 1.61.2.1 pavel _ACEOF
5851 1.61.2.1 pavel rm -f conftest.$ac_objext
5852 1.61.2.2 snj if { (eval echo "$as_me:5852: \"$ac_compile\"") >&5
5853 1.61.2.1 pavel (eval $ac_compile) 2>&5
5854 1.61.2.1 pavel ac_status=$?
5855 1.61.2.2 snj echo "$as_me:5855: \$? = $ac_status" >&5
5856 1.61.2.1 pavel (exit $ac_status); } &&
5857 1.61.2.1 pavel { ac_try='test -s conftest.$ac_objext'
5858 1.61.2.2 snj { (eval echo "$as_me:5858: \"$ac_try\"") >&5
5859 1.61.2.1 pavel (eval $ac_try) 2>&5
5860 1.61.2.1 pavel ac_status=$?
5861 1.61.2.2 snj echo "$as_me:5861: \$? = $ac_status" >&5
5862 1.61.2.1 pavel (exit $ac_status); }; }; then
5863 1.61.2.1 pavel ac_cv_have_decl_bswap32=yes
5864 1.61.2.1 pavel else
5865 1.61.2.1 pavel echo "$as_me: failed program was:" >&5
5866 1.61.2.1 pavel cat conftest.$ac_ext >&5
5867 1.61.2.1 pavel ac_cv_have_decl_bswap32=no
5868 1.61.2.1 pavel fi
5869 1.61.2.1 pavel rm -f conftest.$ac_objext conftest.$ac_ext
5870 1.61.2.1 pavel fi
5871 1.61.2.2 snj echo "$as_me:5871: result: $ac_cv_have_decl_bswap32" >&5
5872 1.61.2.1 pavel echo "${ECHO_T}$ac_cv_have_decl_bswap32" >&6
5873 1.61.2.1 pavel if test $ac_cv_have_decl_bswap32 = yes; then
5874 1.61.2.1 pavel
5875 1.61.2.1 pavel cat >>confdefs.h <<EOF
5876 1.61.2.1 pavel #define HAVE_DECL_BSWAP32 1
5877 1.61.2.1 pavel EOF
5878 1.61.2.1 pavel
5879 1.61.2.1 pavel else
5880 1.61.2.1 pavel cat >>confdefs.h <<EOF
5881 1.61.2.1 pavel #define HAVE_DECL_BSWAP32 0
5882 1.61.2.1 pavel EOF
5883 1.61.2.1 pavel
5884 1.61.2.1 pavel fi
5885 1.61.2.2 snj echo "$as_me:5885: checking whether bswap64 is declared" >&5
5886 1.61.2.1 pavel echo $ECHO_N "checking whether bswap64 is declared... $ECHO_C" >&6
5887 1.61.2.1 pavel if test "${ac_cv_have_decl_bswap64+set}" = set; then
5888 1.61.2.1 pavel echo $ECHO_N "(cached) $ECHO_C" >&6
5889 1.61.2.1 pavel else
5890 1.61.2.1 pavel cat >conftest.$ac_ext <<_ACEOF
5891 1.61.2.2 snj #line 5891 "configure"
5892 1.61.2.1 pavel #include "confdefs.h"
5893 1.61.2.1 pavel #include <machine/bswap.h>
5894 1.61.2.1 pavel
5895 1.61.2.1 pavel int
5896 1.61.2.1 pavel main ()
5897 1.61.2.1 pavel {
5898 1.61.2.1 pavel #ifndef bswap64
5899 1.61.2.1 pavel char *p = (char *) bswap64;
5900 1.61.2.1 pavel #endif
5901 1.61.2.1 pavel
5902 1.61.2.1 pavel ;
5903 1.61.2.1 pavel return 0;
5904 1.61.2.1 pavel }
5905 1.61.2.1 pavel _ACEOF
5906 1.61.2.1 pavel rm -f conftest.$ac_objext
5907 1.61.2.2 snj if { (eval echo "$as_me:5907: \"$ac_compile\"") >&5
5908 1.61.2.1 pavel (eval $ac_compile) 2>&5
5909 1.61.2.1 pavel ac_status=$?
5910 1.61.2.2 snj echo "$as_me:5910: \$? = $ac_status" >&5
5911 1.61.2.1 pavel (exit $ac_status); } &&
5912 1.61.2.1 pavel { ac_try='test -s conftest.$ac_objext'
5913 1.61.2.2 snj { (eval echo "$as_me:5913: \"$ac_try\"") >&5
5914 1.61.2.1 pavel (eval $ac_try) 2>&5
5915 1.61.2.1 pavel ac_status=$?
5916 1.61.2.2 snj echo "$as_me:5916: \$? = $ac_status" >&5
5917 1.61.2.1 pavel (exit $ac_status); }; }; then
5918 1.61.2.1 pavel ac_cv_have_decl_bswap64=yes
5919 1.61.2.1 pavel else
5920 1.61.2.1 pavel echo "$as_me: failed program was:" >&5
5921 1.61.2.1 pavel cat conftest.$ac_ext >&5
5922 1.61.2.1 pavel ac_cv_have_decl_bswap64=no
5923 1.61.2.1 pavel fi
5924 1.61.2.1 pavel rm -f conftest.$ac_objext conftest.$ac_ext
5925 1.61.2.1 pavel fi
5926 1.61.2.2 snj echo "$as_me:5926: result: $ac_cv_have_decl_bswap64" >&5
5927 1.61.2.1 pavel echo "${ECHO_T}$ac_cv_have_decl_bswap64" >&6
5928 1.61.2.1 pavel if test $ac_cv_have_decl_bswap64 = yes; then
5929 1.61.2.1 pavel
5930 1.61.2.1 pavel cat >>confdefs.h <<EOF
5931 1.61.2.1 pavel #define HAVE_DECL_BSWAP64 1
5932 1.61.2.1 pavel EOF
5933 1.61.2.1 pavel
5934 1.61.2.1 pavel else
5935 1.61.2.1 pavel cat >>confdefs.h <<EOF
5936 1.61.2.1 pavel #define HAVE_DECL_BSWAP64 0
5937 1.61.2.1 pavel EOF
5938 1.61.2.1 pavel
5939 1.61.2.1 pavel fi
5940 1.61.2.1 pavel
5941 1.61.2.2 snj echo "$as_me:5941: checking whether be16enc is declared" >&5
5942 1.61.2.1 pavel echo $ECHO_N "checking whether be16enc is declared... $ECHO_C" >&6
5943 1.61.2.1 pavel if test "${ac_cv_have_decl_be16enc+set}" = set; then
5944 1.61.2.1 pavel echo $ECHO_N "(cached) $ECHO_C" >&6
5945 1.61.2.1 pavel else
5946 1.61.2.1 pavel cat >conftest.$ac_ext <<_ACEOF
5947 1.61.2.2 snj #line 5947 "configure"
5948 1.61.2.1 pavel #include "confdefs.h"
5949 1.61.2.1 pavel #include <sys/endian.h>
5950 1.61.2.1 pavel
5951 1.61.2.1 pavel int
5952 1.61.2.1 pavel main ()
5953 1.61.2.1 pavel {
5954 1.61.2.1 pavel #ifndef be16enc
5955 1.61.2.1 pavel char *p = (char *) be16enc;
5956 1.61.2.1 pavel #endif
5957 1.61.2.1 pavel
5958 1.61.2.1 pavel ;
5959 1.61.2.1 pavel return 0;
5960 1.61.2.1 pavel }
5961 1.61.2.1 pavel _ACEOF
5962 1.61.2.1 pavel rm -f conftest.$ac_objext
5963 1.61.2.2 snj if { (eval echo "$as_me:5963: \"$ac_compile\"") >&5
5964 1.61.2.1 pavel (eval $ac_compile) 2>&5
5965 1.61.2.1 pavel ac_status=$?
5966 1.61.2.2 snj echo "$as_me:5966: \$? = $ac_status" >&5
5967 1.61.2.1 pavel (exit $ac_status); } &&
5968 1.61.2.1 pavel { ac_try='test -s conftest.$ac_objext'
5969 1.61.2.2 snj { (eval echo "$as_me:5969: \"$ac_try\"") >&5
5970 1.53 dogcow (eval $ac_try) 2>&5
5971 1.53 dogcow ac_status=$?
5972 1.61.2.2 snj echo "$as_me:5972: \$? = $ac_status" >&5
5973 1.53 dogcow (exit $ac_status); }; }; then
5974 1.61.2.1 pavel ac_cv_have_decl_be16enc=yes
5975 1.53 dogcow else
5976 1.53 dogcow echo "$as_me: failed program was:" >&5
5977 1.61.2.1 pavel cat conftest.$ac_ext >&5
5978 1.61.2.1 pavel ac_cv_have_decl_be16enc=no
5979 1.53 dogcow fi
5980 1.61.2.1 pavel rm -f conftest.$ac_objext conftest.$ac_ext
5981 1.53 dogcow fi
5982 1.61.2.2 snj echo "$as_me:5982: result: $ac_cv_have_decl_be16enc" >&5
5983 1.61.2.1 pavel echo "${ECHO_T}$ac_cv_have_decl_be16enc" >&6
5984 1.61.2.1 pavel if test $ac_cv_have_decl_be16enc = yes; then
5985 1.61 christos
5986 1.61.2.1 pavel cat >>confdefs.h <<EOF
5987 1.61.2.1 pavel #define HAVE_DECL_BE16ENC 1
5988 1.61.2.1 pavel EOF
5989 1.53 dogcow
5990 1.53 dogcow else
5991 1.61.2.1 pavel cat >>confdefs.h <<EOF
5992 1.61.2.1 pavel #define HAVE_DECL_BE16ENC 0
5993 1.61.2.1 pavel EOF
5994 1.53 dogcow
5995 1.53 dogcow fi
5996 1.61.2.2 snj echo "$as_me:5996: checking whether le16enc is declared" >&5
5997 1.61.2.1 pavel echo $ECHO_N "checking whether le16enc is declared... $ECHO_C" >&6
5998 1.61.2.1 pavel if test "${ac_cv_have_decl_le16enc+set}" = set; then
5999 1.53 dogcow echo $ECHO_N "(cached) $ECHO_C" >&6
6000 1.53 dogcow else
6001 1.53 dogcow cat >conftest.$ac_ext <<_ACEOF
6002 1.61.2.2 snj #line 6002 "configure"
6003 1.61.2.1 pavel #include "confdefs.h"
6004 1.61.2.1 pavel #include <sys/endian.h>
6005 1.53 dogcow
6006 1.53 dogcow int
6007 1.53 dogcow main ()
6008 1.53 dogcow {
6009 1.61.2.1 pavel #ifndef le16enc
6010 1.61.2.1 pavel char *p = (char *) le16enc;
6011 1.53 dogcow #endif
6012 1.53 dogcow
6013 1.53 dogcow ;
6014 1.53 dogcow return 0;
6015 1.53 dogcow }
6016 1.53 dogcow _ACEOF
6017 1.53 dogcow rm -f conftest.$ac_objext
6018 1.61.2.2 snj if { (eval echo "$as_me:6018: \"$ac_compile\"") >&5
6019 1.61.2.1 pavel (eval $ac_compile) 2>&5
6020 1.53 dogcow ac_status=$?
6021 1.61.2.2 snj echo "$as_me:6021: \$? = $ac_status" >&5
6022 1.53 dogcow (exit $ac_status); } &&
6023 1.61.2.1 pavel { ac_try='test -s conftest.$ac_objext'
6024 1.61.2.2 snj { (eval echo "$as_me:6024: \"$ac_try\"") >&5
6025 1.53 dogcow (eval $ac_try) 2>&5
6026 1.53 dogcow ac_status=$?
6027 1.61.2.2 snj echo "$as_me:6027: \$? = $ac_status" >&5
6028 1.53 dogcow (exit $ac_status); }; }; then
6029 1.61.2.1 pavel ac_cv_have_decl_le16enc=yes
6030 1.53 dogcow else
6031 1.53 dogcow echo "$as_me: failed program was:" >&5
6032 1.61.2.1 pavel cat conftest.$ac_ext >&5
6033 1.61.2.1 pavel ac_cv_have_decl_le16enc=no
6034 1.53 dogcow fi
6035 1.61.2.1 pavel rm -f conftest.$ac_objext conftest.$ac_ext
6036 1.53 dogcow fi
6037 1.61.2.2 snj echo "$as_me:6037: result: $ac_cv_have_decl_le16enc" >&5
6038 1.61.2.1 pavel echo "${ECHO_T}$ac_cv_have_decl_le16enc" >&6
6039 1.61.2.1 pavel if test $ac_cv_have_decl_le16enc = yes; then
6040 1.61 christos
6041 1.61.2.1 pavel cat >>confdefs.h <<EOF
6042 1.61.2.1 pavel #define HAVE_DECL_LE16ENC 1
6043 1.61.2.1 pavel EOF
6044 1.53 dogcow
6045 1.53 dogcow else
6046 1.61.2.1 pavel cat >>confdefs.h <<EOF
6047 1.61.2.1 pavel #define HAVE_DECL_LE16ENC 0
6048 1.61.2.1 pavel EOF
6049 1.53 dogcow
6050 1.53 dogcow fi
6051 1.61.2.2 snj echo "$as_me:6051: checking whether be16dec is declared" >&5
6052 1.61.2.1 pavel echo $ECHO_N "checking whether be16dec is declared... $ECHO_C" >&6
6053 1.61.2.1 pavel if test "${ac_cv_have_decl_be16dec+set}" = set; then
6054 1.53 dogcow echo $ECHO_N "(cached) $ECHO_C" >&6
6055 1.53 dogcow else
6056 1.53 dogcow cat >conftest.$ac_ext <<_ACEOF
6057 1.61.2.2 snj #line 6057 "configure"
6058 1.61.2.1 pavel #include "confdefs.h"
6059 1.61.2.1 pavel #include <sys/endian.h>
6060 1.53 dogcow
6061 1.53 dogcow int
6062 1.53 dogcow main ()
6063 1.53 dogcow {
6064 1.61.2.1 pavel #ifndef be16dec
6065 1.61.2.1 pavel char *p = (char *) be16dec;
6066 1.53 dogcow #endif
6067 1.53 dogcow
6068 1.53 dogcow ;
6069 1.53 dogcow return 0;
6070 1.53 dogcow }
6071 1.53 dogcow _ACEOF
6072 1.53 dogcow rm -f conftest.$ac_objext
6073 1.61.2.2 snj if { (eval echo "$as_me:6073: \"$ac_compile\"") >&5
6074 1.61.2.1 pavel (eval $ac_compile) 2>&5
6075 1.53 dogcow ac_status=$?
6076 1.61.2.2 snj echo "$as_me:6076: \$? = $ac_status" >&5
6077 1.53 dogcow (exit $ac_status); } &&
6078 1.61.2.1 pavel { ac_try='test -s conftest.$ac_objext'
6079 1.61.2.2 snj { (eval echo "$as_me:6079: \"$ac_try\"") >&5
6080 1.53 dogcow (eval $ac_try) 2>&5
6081 1.53 dogcow ac_status=$?
6082 1.61.2.2 snj echo "$as_me:6082: \$? = $ac_status" >&5
6083 1.53 dogcow (exit $ac_status); }; }; then
6084 1.61.2.1 pavel ac_cv_have_decl_be16dec=yes
6085 1.53 dogcow else
6086 1.53 dogcow echo "$as_me: failed program was:" >&5
6087 1.61.2.1 pavel cat conftest.$ac_ext >&5
6088 1.61.2.1 pavel ac_cv_have_decl_be16dec=no
6089 1.53 dogcow fi
6090 1.61.2.1 pavel rm -f conftest.$ac_objext conftest.$ac_ext
6091 1.53 dogcow fi
6092 1.61.2.2 snj echo "$as_me:6092: result: $ac_cv_have_decl_be16dec" >&5
6093 1.61.2.1 pavel echo "${ECHO_T}$ac_cv_have_decl_be16dec" >&6
6094 1.61.2.1 pavel if test $ac_cv_have_decl_be16dec = yes; then
6095 1.61 christos
6096 1.61.2.1 pavel cat >>confdefs.h <<EOF
6097 1.61.2.1 pavel #define HAVE_DECL_BE16DEC 1
6098 1.61.2.1 pavel EOF
6099 1.53 dogcow
6100 1.53 dogcow else
6101 1.61.2.1 pavel cat >>confdefs.h <<EOF
6102 1.61.2.1 pavel #define HAVE_DECL_BE16DEC 0
6103 1.61.2.1 pavel EOF
6104 1.53 dogcow
6105 1.53 dogcow fi
6106 1.61.2.2 snj echo "$as_me:6106: checking whether le16dec is declared" >&5
6107 1.61.2.1 pavel echo $ECHO_N "checking whether le16dec is declared... $ECHO_C" >&6
6108 1.61.2.1 pavel if test "${ac_cv_have_decl_le16dec+set}" = set; then
6109 1.53 dogcow echo $ECHO_N "(cached) $ECHO_C" >&6
6110 1.53 dogcow else
6111 1.53 dogcow cat >conftest.$ac_ext <<_ACEOF
6112 1.61.2.2 snj #line 6112 "configure"
6113 1.61.2.1 pavel #include "confdefs.h"
6114 1.61.2.1 pavel #include <sys/endian.h>
6115 1.53 dogcow
6116 1.53 dogcow int
6117 1.53 dogcow main ()
6118 1.53 dogcow {
6119 1.61.2.1 pavel #ifndef le16dec
6120 1.61.2.1 pavel char *p = (char *) le16dec;
6121 1.53 dogcow #endif
6122 1.53 dogcow
6123 1.53 dogcow ;
6124 1.53 dogcow return 0;
6125 1.53 dogcow }
6126 1.53 dogcow _ACEOF
6127 1.53 dogcow rm -f conftest.$ac_objext
6128 1.61.2.2 snj if { (eval echo "$as_me:6128: \"$ac_compile\"") >&5
6129 1.61.2.1 pavel (eval $ac_compile) 2>&5
6130 1.53 dogcow ac_status=$?
6131 1.61.2.2 snj echo "$as_me:6131: \$? = $ac_status" >&5
6132 1.53 dogcow (exit $ac_status); } &&
6133 1.61.2.1 pavel { ac_try='test -s conftest.$ac_objext'
6134 1.61.2.2 snj { (eval echo "$as_me:6134: \"$ac_try\"") >&5
6135 1.53 dogcow (eval $ac_try) 2>&5
6136 1.53 dogcow ac_status=$?
6137 1.61.2.2 snj echo "$as_me:6137: \$? = $ac_status" >&5
6138 1.53 dogcow (exit $ac_status); }; }; then
6139 1.61.2.1 pavel ac_cv_have_decl_le16dec=yes
6140 1.53 dogcow else
6141 1.53 dogcow echo "$as_me: failed program was:" >&5
6142 1.61.2.1 pavel cat conftest.$ac_ext >&5
6143 1.61.2.1 pavel ac_cv_have_decl_le16dec=no
6144 1.53 dogcow fi
6145 1.61.2.1 pavel rm -f conftest.$ac_objext conftest.$ac_ext
6146 1.53 dogcow fi
6147 1.61.2.2 snj echo "$as_me:6147: result: $ac_cv_have_decl_le16dec" >&5
6148 1.61.2.1 pavel echo "${ECHO_T}$ac_cv_have_decl_le16dec" >&6
6149 1.61.2.1 pavel if test $ac_cv_have_decl_le16dec = yes; then
6150 1.61 christos
6151 1.61.2.1 pavel cat >>confdefs.h <<EOF
6152 1.61.2.1 pavel #define HAVE_DECL_LE16DEC 1
6153 1.61.2.1 pavel EOF
6154 1.53 dogcow
6155 1.53 dogcow else
6156 1.61.2.1 pavel cat >>confdefs.h <<EOF
6157 1.61.2.1 pavel #define HAVE_DECL_LE16DEC 0
6158 1.61.2.1 pavel EOF
6159 1.53 dogcow
6160 1.53 dogcow fi
6161 1.61.2.2 snj echo "$as_me:6161: checking whether be32enc is declared" >&5
6162 1.61.2.1 pavel echo $ECHO_N "checking whether be32enc is declared... $ECHO_C" >&6
6163 1.61.2.1 pavel if test "${ac_cv_have_decl_be32enc+set}" = set; then
6164 1.53 dogcow echo $ECHO_N "(cached) $ECHO_C" >&6
6165 1.53 dogcow else
6166 1.53 dogcow cat >conftest.$ac_ext <<_ACEOF
6167 1.61.2.2 snj #line 6167 "configure"
6168 1.61.2.1 pavel #include "confdefs.h"
6169 1.61.2.1 pavel #include <sys/endian.h>
6170 1.53 dogcow
6171 1.53 dogcow int
6172 1.53 dogcow main ()
6173 1.53 dogcow {
6174 1.61.2.1 pavel #ifndef be32enc
6175 1.61.2.1 pavel char *p = (char *) be32enc;
6176 1.53 dogcow #endif
6177 1.53 dogcow
6178 1.53 dogcow ;
6179 1.53 dogcow return 0;
6180 1.53 dogcow }
6181 1.53 dogcow _ACEOF
6182 1.53 dogcow rm -f conftest.$ac_objext
6183 1.61.2.2 snj if { (eval echo "$as_me:6183: \"$ac_compile\"") >&5
6184 1.61.2.1 pavel (eval $ac_compile) 2>&5
6185 1.53 dogcow ac_status=$?
6186 1.61.2.2 snj echo "$as_me:6186: \$? = $ac_status" >&5
6187 1.53 dogcow (exit $ac_status); } &&
6188 1.61.2.1 pavel { ac_try='test -s conftest.$ac_objext'
6189 1.61.2.2 snj { (eval echo "$as_me:6189: \"$ac_try\"") >&5
6190 1.61 christos (eval $ac_try) 2>&5
6191 1.61 christos ac_status=$?
6192 1.61.2.2 snj echo "$as_me:6192: \$? = $ac_status" >&5
6193 1.53 dogcow (exit $ac_status); }; }; then
6194 1.61.2.1 pavel ac_cv_have_decl_be32enc=yes
6195 1.53 dogcow else
6196 1.53 dogcow echo "$as_me: failed program was:" >&5
6197 1.61.2.1 pavel cat conftest.$ac_ext >&5
6198 1.61.2.1 pavel ac_cv_have_decl_be32enc=no
6199 1.53 dogcow fi
6200 1.61.2.1 pavel rm -f conftest.$ac_objext conftest.$ac_ext
6201 1.53 dogcow fi
6202 1.61.2.2 snj echo "$as_me:6202: result: $ac_cv_have_decl_be32enc" >&5
6203 1.61.2.1 pavel echo "${ECHO_T}$ac_cv_have_decl_be32enc" >&6
6204 1.61.2.1 pavel if test $ac_cv_have_decl_be32enc = yes; then
6205 1.61 christos
6206 1.61.2.1 pavel cat >>confdefs.h <<EOF
6207 1.61.2.1 pavel #define HAVE_DECL_BE32ENC 1
6208 1.61.2.1 pavel EOF
6209 1.53 dogcow
6210 1.53 dogcow else
6211 1.61.2.1 pavel cat >>confdefs.h <<EOF
6212 1.61.2.1 pavel #define HAVE_DECL_BE32ENC 0
6213 1.61.2.1 pavel EOF
6214 1.53 dogcow
6215 1.53 dogcow fi
6216 1.61.2.2 snj echo "$as_me:6216: checking whether le32enc is declared" >&5
6217 1.61.2.1 pavel echo $ECHO_N "checking whether le32enc is declared... $ECHO_C" >&6
6218 1.61.2.1 pavel if test "${ac_cv_have_decl_le32enc+set}" = set; then
6219 1.53 dogcow echo $ECHO_N "(cached) $ECHO_C" >&6
6220 1.53 dogcow else
6221 1.53 dogcow cat >conftest.$ac_ext <<_ACEOF
6222 1.61.2.2 snj #line 6222 "configure"
6223 1.61.2.1 pavel #include "confdefs.h"
6224 1.61.2.1 pavel #include <sys/endian.h>
6225 1.53 dogcow
6226 1.53 dogcow int
6227 1.53 dogcow main ()
6228 1.53 dogcow {
6229 1.61.2.1 pavel #ifndef le32enc
6230 1.61.2.1 pavel char *p = (char *) le32enc;
6231 1.53 dogcow #endif
6232 1.53 dogcow
6233 1.53 dogcow ;
6234 1.53 dogcow return 0;
6235 1.53 dogcow }
6236 1.53 dogcow _ACEOF
6237 1.53 dogcow rm -f conftest.$ac_objext
6238 1.61.2.2 snj if { (eval echo "$as_me:6238: \"$ac_compile\"") >&5
6239 1.61.2.1 pavel (eval $ac_compile) 2>&5
6240 1.53 dogcow ac_status=$?
6241 1.61.2.2 snj echo "$as_me:6241: \$? = $ac_status" >&5
6242 1.53 dogcow (exit $ac_status); } &&
6243 1.61.2.1 pavel { ac_try='test -s conftest.$ac_objext'
6244 1.61.2.2 snj { (eval echo "$as_me:6244: \"$ac_try\"") >&5
6245 1.53 dogcow (eval $ac_try) 2>&5
6246 1.53 dogcow ac_status=$?
6247 1.61.2.2 snj echo "$as_me:6247: \$? = $ac_status" >&5
6248 1.53 dogcow (exit $ac_status); }; }; then
6249 1.61.2.1 pavel ac_cv_have_decl_le32enc=yes
6250 1.53 dogcow else
6251 1.53 dogcow echo "$as_me: failed program was:" >&5
6252 1.61.2.1 pavel cat conftest.$ac_ext >&5
6253 1.61.2.1 pavel ac_cv_have_decl_le32enc=no
6254 1.53 dogcow fi
6255 1.61.2.1 pavel rm -f conftest.$ac_objext conftest.$ac_ext
6256 1.53 dogcow fi
6257 1.61.2.2 snj echo "$as_me:6257: result: $ac_cv_have_decl_le32enc" >&5
6258 1.61.2.1 pavel echo "${ECHO_T}$ac_cv_have_decl_le32enc" >&6
6259 1.61.2.1 pavel if test $ac_cv_have_decl_le32enc = yes; then
6260 1.61 christos
6261 1.61.2.1 pavel cat >>confdefs.h <<EOF
6262 1.61.2.1 pavel #define HAVE_DECL_LE32ENC 1
6263 1.61.2.1 pavel EOF
6264 1.53 dogcow
6265 1.53 dogcow else
6266 1.61.2.1 pavel cat >>confdefs.h <<EOF
6267 1.61.2.1 pavel #define HAVE_DECL_LE32ENC 0
6268 1.61.2.1 pavel EOF
6269 1.53 dogcow
6270 1.53 dogcow fi
6271 1.61.2.2 snj echo "$as_me:6271: checking whether be32dec is declared" >&5
6272 1.61.2.1 pavel echo $ECHO_N "checking whether be32dec is declared... $ECHO_C" >&6
6273 1.61.2.1 pavel if test "${ac_cv_have_decl_be32dec+set}" = set; then
6274 1.53 dogcow echo $ECHO_N "(cached) $ECHO_C" >&6
6275 1.53 dogcow else
6276 1.53 dogcow cat >conftest.$ac_ext <<_ACEOF
6277 1.61.2.2 snj #line 6277 "configure"
6278 1.61.2.1 pavel #include "confdefs.h"
6279 1.61.2.1 pavel #include <sys/endian.h>
6280 1.53 dogcow
6281 1.53 dogcow int
6282 1.53 dogcow main ()
6283 1.53 dogcow {
6284 1.61.2.1 pavel #ifndef be32dec
6285 1.61.2.1 pavel char *p = (char *) be32dec;
6286 1.53 dogcow #endif
6287 1.53 dogcow
6288 1.53 dogcow ;
6289 1.53 dogcow return 0;
6290 1.53 dogcow }
6291 1.53 dogcow _ACEOF
6292 1.53 dogcow rm -f conftest.$ac_objext
6293 1.61.2.2 snj if { (eval echo "$as_me:6293: \"$ac_compile\"") >&5
6294 1.61.2.1 pavel (eval $ac_compile) 2>&5
6295 1.53 dogcow ac_status=$?
6296 1.61.2.2 snj echo "$as_me:6296: \$? = $ac_status" >&5
6297 1.53 dogcow (exit $ac_status); } &&
6298 1.61.2.1 pavel { ac_try='test -s conftest.$ac_objext'
6299 1.61.2.2 snj { (eval echo "$as_me:6299: \"$ac_try\"") >&5
6300 1.53 dogcow (eval $ac_try) 2>&5
6301 1.53 dogcow ac_status=$?
6302 1.61.2.2 snj echo "$as_me:6302: \$? = $ac_status" >&5
6303 1.53 dogcow (exit $ac_status); }; }; then
6304 1.61.2.1 pavel ac_cv_have_decl_be32dec=yes
6305 1.53 dogcow else
6306 1.53 dogcow echo "$as_me: failed program was:" >&5
6307 1.61.2.1 pavel cat conftest.$ac_ext >&5
6308 1.61.2.1 pavel ac_cv_have_decl_be32dec=no
6309 1.53 dogcow fi
6310 1.61.2.1 pavel rm -f conftest.$ac_objext conftest.$ac_ext
6311 1.53 dogcow fi
6312 1.61.2.2 snj echo "$as_me:6312: result: $ac_cv_have_decl_be32dec" >&5
6313 1.61.2.1 pavel echo "${ECHO_T}$ac_cv_have_decl_be32dec" >&6
6314 1.61.2.1 pavel if test $ac_cv_have_decl_be32dec = yes; then
6315 1.61 christos
6316 1.61.2.1 pavel cat >>confdefs.h <<EOF
6317 1.61.2.1 pavel #define HAVE_DECL_BE32DEC 1
6318 1.61.2.1 pavel EOF
6319 1.53 dogcow
6320 1.53 dogcow else
6321 1.61.2.1 pavel cat >>confdefs.h <<EOF
6322 1.61.2.1 pavel #define HAVE_DECL_BE32DEC 0
6323 1.61.2.1 pavel EOF
6324 1.53 dogcow
6325 1.53 dogcow fi
6326 1.61.2.2 snj echo "$as_me:6326: checking whether le32dec is declared" >&5
6327 1.61.2.1 pavel echo $ECHO_N "checking whether le32dec is declared... $ECHO_C" >&6
6328 1.61.2.1 pavel if test "${ac_cv_have_decl_le32dec+set}" = set; then
6329 1.53 dogcow echo $ECHO_N "(cached) $ECHO_C" >&6
6330 1.53 dogcow else
6331 1.53 dogcow cat >conftest.$ac_ext <<_ACEOF
6332 1.61.2.2 snj #line 6332 "configure"
6333 1.61.2.1 pavel #include "confdefs.h"
6334 1.61.2.1 pavel #include <sys/endian.h>
6335 1.53 dogcow
6336 1.53 dogcow int
6337 1.53 dogcow main ()
6338 1.53 dogcow {
6339 1.61.2.1 pavel #ifndef le32dec
6340 1.61.2.1 pavel char *p = (char *) le32dec;
6341 1.53 dogcow #endif
6342 1.53 dogcow
6343 1.53 dogcow ;
6344 1.53 dogcow return 0;
6345 1.53 dogcow }
6346 1.53 dogcow _ACEOF
6347 1.53 dogcow rm -f conftest.$ac_objext
6348 1.61.2.2 snj if { (eval echo "$as_me:6348: \"$ac_compile\"") >&5
6349 1.61.2.1 pavel (eval $ac_compile) 2>&5
6350 1.53 dogcow ac_status=$?
6351 1.61.2.2 snj echo "$as_me:6351: \$? = $ac_status" >&5
6352 1.53 dogcow (exit $ac_status); } &&
6353 1.61.2.1 pavel { ac_try='test -s conftest.$ac_objext'
6354 1.61.2.2 snj { (eval echo "$as_me:6354: \"$ac_try\"") >&5
6355 1.53 dogcow (eval $ac_try) 2>&5
6356 1.53 dogcow ac_status=$?
6357 1.61.2.2 snj echo "$as_me:6357: \$? = $ac_status" >&5
6358 1.53 dogcow (exit $ac_status); }; }; then
6359 1.61.2.1 pavel ac_cv_have_decl_le32dec=yes
6360 1.53 dogcow else
6361 1.53 dogcow echo "$as_me: failed program was:" >&5
6362 1.61.2.1 pavel cat conftest.$ac_ext >&5
6363 1.61.2.1 pavel ac_cv_have_decl_le32dec=no
6364 1.53 dogcow fi
6365 1.61.2.1 pavel rm -f conftest.$ac_objext conftest.$ac_ext
6366 1.53 dogcow fi
6367 1.61.2.2 snj echo "$as_me:6367: result: $ac_cv_have_decl_le32dec" >&5
6368 1.61.2.1 pavel echo "${ECHO_T}$ac_cv_have_decl_le32dec" >&6
6369 1.61.2.1 pavel if test $ac_cv_have_decl_le32dec = yes; then
6370 1.61 christos
6371 1.61.2.1 pavel cat >>confdefs.h <<EOF
6372 1.61.2.1 pavel #define HAVE_DECL_LE32DEC 1
6373 1.61.2.1 pavel EOF
6374 1.53 dogcow
6375 1.53 dogcow else
6376 1.61.2.1 pavel cat >>confdefs.h <<EOF
6377 1.61.2.1 pavel #define HAVE_DECL_LE32DEC 0
6378 1.61.2.1 pavel EOF
6379 1.53 dogcow
6380 1.53 dogcow fi
6381 1.61.2.2 snj echo "$as_me:6381: checking whether be64enc is declared" >&5
6382 1.61.2.1 pavel echo $ECHO_N "checking whether be64enc is declared... $ECHO_C" >&6
6383 1.61.2.1 pavel if test "${ac_cv_have_decl_be64enc+set}" = set; then
6384 1.53 dogcow echo $ECHO_N "(cached) $ECHO_C" >&6
6385 1.53 dogcow else
6386 1.53 dogcow cat >conftest.$ac_ext <<_ACEOF
6387 1.61.2.2 snj #line 6387 "configure"
6388 1.61.2.1 pavel #include "confdefs.h"
6389 1.61.2.1 pavel #include <sys/endian.h>
6390 1.53 dogcow
6391 1.53 dogcow int
6392 1.53 dogcow main ()
6393 1.53 dogcow {
6394 1.61.2.1 pavel #ifndef be64enc
6395 1.61.2.1 pavel char *p = (char *) be64enc;
6396 1.53 dogcow #endif
6397 1.53 dogcow
6398 1.53 dogcow ;
6399 1.53 dogcow return 0;
6400 1.53 dogcow }
6401 1.53 dogcow _ACEOF
6402 1.53 dogcow rm -f conftest.$ac_objext
6403 1.61.2.2 snj if { (eval echo "$as_me:6403: \"$ac_compile\"") >&5
6404 1.61.2.1 pavel (eval $ac_compile) 2>&5
6405 1.53 dogcow ac_status=$?
6406 1.61.2.2 snj echo "$as_me:6406: \$? = $ac_status" >&5
6407 1.53 dogcow (exit $ac_status); } &&
6408 1.61.2.1 pavel { ac_try='test -s conftest.$ac_objext'
6409 1.61.2.2 snj { (eval echo "$as_me:6409: \"$ac_try\"") >&5
6410 1.61 christos (eval $ac_try) 2>&5
6411 1.61 christos ac_status=$?
6412 1.61.2.2 snj echo "$as_me:6412: \$? = $ac_status" >&5
6413 1.53 dogcow (exit $ac_status); }; }; then
6414 1.61.2.1 pavel ac_cv_have_decl_be64enc=yes
6415 1.53 dogcow else
6416 1.53 dogcow echo "$as_me: failed program was:" >&5
6417 1.61.2.1 pavel cat conftest.$ac_ext >&5
6418 1.61.2.1 pavel ac_cv_have_decl_be64enc=no
6419 1.53 dogcow fi
6420 1.61.2.1 pavel rm -f conftest.$ac_objext conftest.$ac_ext
6421 1.53 dogcow fi
6422 1.61.2.2 snj echo "$as_me:6422: result: $ac_cv_have_decl_be64enc" >&5
6423 1.61.2.1 pavel echo "${ECHO_T}$ac_cv_have_decl_be64enc" >&6
6424 1.61.2.1 pavel if test $ac_cv_have_decl_be64enc = yes; then
6425 1.61 christos
6426 1.61.2.1 pavel cat >>confdefs.h <<EOF
6427 1.61.2.1 pavel #define HAVE_DECL_BE64ENC 1
6428 1.61.2.1 pavel EOF
6429 1.53 dogcow
6430 1.53 dogcow else
6431 1.61.2.1 pavel cat >>confdefs.h <<EOF
6432 1.61.2.1 pavel #define HAVE_DECL_BE64ENC 0
6433 1.61.2.1 pavel EOF
6434 1.53 dogcow
6435 1.53 dogcow fi
6436 1.61.2.2 snj echo "$as_me:6436: checking whether le64enc is declared" >&5
6437 1.61.2.1 pavel echo $ECHO_N "checking whether le64enc is declared... $ECHO_C" >&6
6438 1.61.2.1 pavel if test "${ac_cv_have_decl_le64enc+set}" = set; then
6439 1.54 wiz echo $ECHO_N "(cached) $ECHO_C" >&6
6440 1.54 wiz else
6441 1.54 wiz cat >conftest.$ac_ext <<_ACEOF
6442 1.61.2.2 snj #line 6442 "configure"
6443 1.61.2.1 pavel #include "confdefs.h"
6444 1.61.2.1 pavel #include <sys/endian.h>
6445 1.54 wiz
6446 1.54 wiz int
6447 1.54 wiz main ()
6448 1.54 wiz {
6449 1.61.2.1 pavel #ifndef le64enc
6450 1.61.2.1 pavel char *p = (char *) le64enc;
6451 1.54 wiz #endif
6452 1.54 wiz
6453 1.54 wiz ;
6454 1.54 wiz return 0;
6455 1.54 wiz }
6456 1.54 wiz _ACEOF
6457 1.54 wiz rm -f conftest.$ac_objext
6458 1.61.2.2 snj if { (eval echo "$as_me:6458: \"$ac_compile\"") >&5
6459 1.61.2.1 pavel (eval $ac_compile) 2>&5
6460 1.54 wiz ac_status=$?
6461 1.61.2.2 snj echo "$as_me:6461: \$? = $ac_status" >&5
6462 1.54 wiz (exit $ac_status); } &&
6463 1.61.2.1 pavel { ac_try='test -s conftest.$ac_objext'
6464 1.61.2.2 snj { (eval echo "$as_me:6464: \"$ac_try\"") >&5
6465 1.54 wiz (eval $ac_try) 2>&5
6466 1.54 wiz ac_status=$?
6467 1.61.2.2 snj echo "$as_me:6467: \$? = $ac_status" >&5
6468 1.54 wiz (exit $ac_status); }; }; then
6469 1.61.2.1 pavel ac_cv_have_decl_le64enc=yes
6470 1.54 wiz else
6471 1.54 wiz echo "$as_me: failed program was:" >&5
6472 1.61.2.1 pavel cat conftest.$ac_ext >&5
6473 1.61.2.1 pavel ac_cv_have_decl_le64enc=no
6474 1.54 wiz fi
6475 1.61.2.1 pavel rm -f conftest.$ac_objext conftest.$ac_ext
6476 1.54 wiz fi
6477 1.61.2.2 snj echo "$as_me:6477: result: $ac_cv_have_decl_le64enc" >&5
6478 1.61.2.1 pavel echo "${ECHO_T}$ac_cv_have_decl_le64enc" >&6
6479 1.61.2.1 pavel if test $ac_cv_have_decl_le64enc = yes; then
6480 1.61 christos
6481 1.61.2.1 pavel cat >>confdefs.h <<EOF
6482 1.61.2.1 pavel #define HAVE_DECL_LE64ENC 1
6483 1.61.2.1 pavel EOF
6484 1.53 dogcow
6485 1.54 wiz else
6486 1.61.2.1 pavel cat >>confdefs.h <<EOF
6487 1.61.2.1 pavel #define HAVE_DECL_LE64ENC 0
6488 1.61.2.1 pavel EOF
6489 1.53 dogcow
6490 1.54 wiz fi
6491 1.61.2.2 snj echo "$as_me:6491: checking whether be64dec is declared" >&5
6492 1.61.2.1 pavel echo $ECHO_N "checking whether be64dec is declared... $ECHO_C" >&6
6493 1.61.2.1 pavel if test "${ac_cv_have_decl_be64dec+set}" = set; then
6494 1.53 dogcow echo $ECHO_N "(cached) $ECHO_C" >&6
6495 1.53 dogcow else
6496 1.53 dogcow cat >conftest.$ac_ext <<_ACEOF
6497 1.61.2.2 snj #line 6497 "configure"
6498 1.61.2.1 pavel #include "confdefs.h"
6499 1.61.2.1 pavel #include <sys/endian.h>
6500 1.53 dogcow
6501 1.54 wiz int
6502 1.54 wiz main ()
6503 1.53 dogcow {
6504 1.61.2.1 pavel #ifndef be64dec
6505 1.61.2.1 pavel char *p = (char *) be64dec;
6506 1.48 jmc #endif
6507 1.54 wiz
6508 1.54 wiz ;
6509 1.54 wiz return 0;
6510 1.53 dogcow }
6511 1.54 wiz _ACEOF
6512 1.54 wiz rm -f conftest.$ac_objext
6513 1.61.2.2 snj if { (eval echo "$as_me:6513: \"$ac_compile\"") >&5
6514 1.61.2.1 pavel (eval $ac_compile) 2>&5
6515 1.54 wiz ac_status=$?
6516 1.61.2.2 snj echo "$as_me:6516: \$? = $ac_status" >&5
6517 1.54 wiz (exit $ac_status); } &&
6518 1.61.2.1 pavel { ac_try='test -s conftest.$ac_objext'
6519 1.61.2.2 snj { (eval echo "$as_me:6519: \"$ac_try\"") >&5
6520 1.54 wiz (eval $ac_try) 2>&5
6521 1.54 wiz ac_status=$?
6522 1.61.2.2 snj echo "$as_me:6522: \$? = $ac_status" >&5
6523 1.54 wiz (exit $ac_status); }; }; then
6524 1.61.2.1 pavel ac_cv_have_decl_be64dec=yes
6525 1.54 wiz else
6526 1.54 wiz echo "$as_me: failed program was:" >&5
6527 1.61.2.1 pavel cat conftest.$ac_ext >&5
6528 1.61.2.1 pavel ac_cv_have_decl_be64dec=no
6529 1.54 wiz fi
6530 1.61.2.1 pavel rm -f conftest.$ac_objext conftest.$ac_ext
6531 1.54 wiz fi
6532 1.61.2.2 snj echo "$as_me:6532: result: $ac_cv_have_decl_be64dec" >&5
6533 1.61.2.1 pavel echo "${ECHO_T}$ac_cv_have_decl_be64dec" >&6
6534 1.61.2.1 pavel if test $ac_cv_have_decl_be64dec = yes; then
6535 1.61 christos
6536 1.61.2.1 pavel cat >>confdefs.h <<EOF
6537 1.61.2.1 pavel #define HAVE_DECL_BE64DEC 1
6538 1.61.2.1 pavel EOF
6539 1.54 wiz
6540 1.54 wiz else
6541 1.61.2.1 pavel cat >>confdefs.h <<EOF
6542 1.61.2.1 pavel #define HAVE_DECL_BE64DEC 0
6543 1.61.2.1 pavel EOF
6544 1.54 wiz
6545 1.54 wiz fi
6546 1.61.2.2 snj echo "$as_me:6546: checking whether le64dec is declared" >&5
6547 1.61.2.1 pavel echo $ECHO_N "checking whether le64dec is declared... $ECHO_C" >&6
6548 1.61.2.1 pavel if test "${ac_cv_have_decl_le64dec+set}" = set; then
6549 1.54 wiz echo $ECHO_N "(cached) $ECHO_C" >&6
6550 1.54 wiz else
6551 1.54 wiz cat >conftest.$ac_ext <<_ACEOF
6552 1.61.2.2 snj #line 6552 "configure"
6553 1.61.2.1 pavel #include "confdefs.h"
6554 1.61.2.1 pavel #include <sys/endian.h>
6555 1.54 wiz
6556 1.53 dogcow int
6557 1.53 dogcow main ()
6558 1.53 dogcow {
6559 1.61.2.1 pavel #ifndef le64dec
6560 1.61.2.1 pavel char *p = (char *) le64dec;
6561 1.54 wiz #endif
6562 1.54 wiz
6563 1.45 jmc ;
6564 1.45 jmc return 0;
6565 1.45 jmc }
6566 1.45 jmc _ACEOF
6567 1.54 wiz rm -f conftest.$ac_objext
6568 1.61.2.2 snj if { (eval echo "$as_me:6568: \"$ac_compile\"") >&5
6569 1.61.2.1 pavel (eval $ac_compile) 2>&5
6570 1.45 jmc ac_status=$?
6571 1.61.2.2 snj echo "$as_me:6571: \$? = $ac_status" >&5
6572 1.45 jmc (exit $ac_status); } &&
6573 1.61.2.1 pavel { ac_try='test -s conftest.$ac_objext'
6574 1.61.2.2 snj { (eval echo "$as_me:6574: \"$ac_try\"") >&5
6575 1.45 jmc (eval $ac_try) 2>&5
6576 1.45 jmc ac_status=$?
6577 1.61.2.2 snj echo "$as_me:6577: \$? = $ac_status" >&5
6578 1.45 jmc (exit $ac_status); }; }; then
6579 1.61.2.1 pavel ac_cv_have_decl_le64dec=yes
6580 1.45 jmc else
6581 1.45 jmc echo "$as_me: failed program was:" >&5
6582 1.61.2.1 pavel cat conftest.$ac_ext >&5
6583 1.61.2.1 pavel ac_cv_have_decl_le64dec=no
6584 1.45 jmc fi
6585 1.61.2.1 pavel rm -f conftest.$ac_objext conftest.$ac_ext
6586 1.61.2.1 pavel fi
6587 1.61.2.2 snj echo "$as_me:6587: result: $ac_cv_have_decl_le64dec" >&5
6588 1.61.2.1 pavel echo "${ECHO_T}$ac_cv_have_decl_le64dec" >&6
6589 1.61.2.1 pavel if test $ac_cv_have_decl_le64dec = yes; then
6590 1.61 christos
6591 1.61.2.1 pavel cat >>confdefs.h <<EOF
6592 1.61.2.1 pavel #define HAVE_DECL_LE64DEC 1
6593 1.61.2.1 pavel EOF
6594 1.54 wiz
6595 1.54 wiz else
6596 1.61.2.1 pavel cat >>confdefs.h <<EOF
6597 1.61.2.1 pavel #define HAVE_DECL_LE64DEC 0
6598 1.61.2.1 pavel EOF
6599 1.54 wiz
6600 1.45 jmc fi
6601 1.45 jmc
6602 1.61.2.2 snj echo "$as_me:6602: checking whether fstatvfs is declared" >&5
6603 1.54 wiz echo $ECHO_N "checking whether fstatvfs is declared... $ECHO_C" >&6
6604 1.54 wiz if test "${ac_cv_have_decl_fstatvfs+set}" = set; then
6605 1.1 tv echo $ECHO_N "(cached) $ECHO_C" >&6
6606 1.1 tv else
6607 1.1 tv cat >conftest.$ac_ext <<_ACEOF
6608 1.61.2.2 snj #line 6608 "configure"
6609 1.61.2.1 pavel #include "confdefs.h"
6610 1.54 wiz #include <sys/statvfs.h>
6611 1.53 dogcow
6612 1.54 wiz int
6613 1.54 wiz main ()
6614 1.53 dogcow {
6615 1.54 wiz #ifndef fstatvfs
6616 1.54 wiz char *p = (char *) fstatvfs;
6617 1.1 tv #endif
6618 1.1 tv
6619 1.1 tv ;
6620 1.1 tv return 0;
6621 1.1 tv }
6622 1.1 tv _ACEOF
6623 1.54 wiz rm -f conftest.$ac_objext
6624 1.61.2.2 snj if { (eval echo "$as_me:6624: \"$ac_compile\"") >&5
6625 1.61.2.1 pavel (eval $ac_compile) 2>&5
6626 1.1 tv ac_status=$?
6627 1.61.2.2 snj echo "$as_me:6627: \$? = $ac_status" >&5
6628 1.1 tv (exit $ac_status); } &&
6629 1.61.2.1 pavel { ac_try='test -s conftest.$ac_objext'
6630 1.61.2.2 snj { (eval echo "$as_me:6630: \"$ac_try\"") >&5
6631 1.1 tv (eval $ac_try) 2>&5
6632 1.1 tv ac_status=$?
6633 1.61.2.2 snj echo "$as_me:6633: \$? = $ac_status" >&5
6634 1.1 tv (exit $ac_status); }; }; then
6635 1.54 wiz ac_cv_have_decl_fstatvfs=yes
6636 1.1 tv else
6637 1.1 tv echo "$as_me: failed program was:" >&5
6638 1.61.2.1 pavel cat conftest.$ac_ext >&5
6639 1.54 wiz ac_cv_have_decl_fstatvfs=no
6640 1.1 tv fi
6641 1.61.2.1 pavel rm -f conftest.$ac_objext conftest.$ac_ext
6642 1.1 tv fi
6643 1.61.2.2 snj echo "$as_me:6643: result: $ac_cv_have_decl_fstatvfs" >&5
6644 1.54 wiz echo "${ECHO_T}$ac_cv_have_decl_fstatvfs" >&6
6645 1.54 wiz if test $ac_cv_have_decl_fstatvfs = yes; then
6646 1.54 wiz
6647 1.61.2.1 pavel cat >>confdefs.h <<EOF
6648 1.54 wiz #define HAVE_DECL_FSTATVFS 1
6649 1.61.2.1 pavel EOF
6650 1.54 wiz
6651 1.54 wiz else
6652 1.61.2.1 pavel cat >>confdefs.h <<EOF
6653 1.54 wiz #define HAVE_DECL_FSTATVFS 0
6654 1.61.2.1 pavel EOF
6655 1.54 wiz
6656 1.1 tv fi
6657 1.54 wiz
6658 1.61.2.2 snj echo "$as_me:6658: checking whether setgroupent is declared" >&5
6659 1.8 tv echo $ECHO_N "checking whether setgroupent is declared... $ECHO_C" >&6
6660 1.8 tv if test "${ac_cv_have_decl_setgroupent+set}" = set; then
6661 1.8 tv echo $ECHO_N "(cached) $ECHO_C" >&6
6662 1.8 tv else
6663 1.8 tv cat >conftest.$ac_ext <<_ACEOF
6664 1.61.2.2 snj #line 6664 "configure"
6665 1.61.2.1 pavel #include "confdefs.h"
6666 1.8 tv
6667 1.33 thorpej #include <sys/types.h>
6668 1.8 tv #include <grp.h>
6669 1.8 tv #include <pwd.h>
6670 1.8 tv
6671 1.8 tv int
6672 1.8 tv main ()
6673 1.8 tv {
6674 1.8 tv #ifndef setgroupent
6675 1.8 tv char *p = (char *) setgroupent;
6676 1.8 tv #endif
6677 1.8 tv
6678 1.8 tv ;
6679 1.8 tv return 0;
6680 1.8 tv }
6681 1.8 tv _ACEOF
6682 1.8 tv rm -f conftest.$ac_objext
6683 1.61.2.2 snj if { (eval echo "$as_me:6683: \"$ac_compile\"") >&5
6684 1.61.2.1 pavel (eval $ac_compile) 2>&5
6685 1.8 tv ac_status=$?
6686 1.61.2.2 snj echo "$as_me:6686: \$? = $ac_status" >&5
6687 1.8 tv (exit $ac_status); } &&
6688 1.61.2.1 pavel { ac_try='test -s conftest.$ac_objext'
6689 1.61.2.2 snj { (eval echo "$as_me:6689: \"$ac_try\"") >&5
6690 1.50 jmc (eval $ac_try) 2>&5
6691 1.50 jmc ac_status=$?
6692 1.61.2.2 snj echo "$as_me:6692: \$? = $ac_status" >&5
6693 1.8 tv (exit $ac_status); }; }; then
6694 1.8 tv ac_cv_have_decl_setgroupent=yes
6695 1.8 tv else
6696 1.8 tv echo "$as_me: failed program was:" >&5
6697 1.61.2.1 pavel cat conftest.$ac_ext >&5
6698 1.8 tv ac_cv_have_decl_setgroupent=no
6699 1.8 tv fi
6700 1.61.2.1 pavel rm -f conftest.$ac_objext conftest.$ac_ext
6701 1.8 tv fi
6702 1.61.2.2 snj echo "$as_me:6702: result: $ac_cv_have_decl_setgroupent" >&5
6703 1.8 tv echo "${ECHO_T}$ac_cv_have_decl_setgroupent" >&6
6704 1.8 tv if test $ac_cv_have_decl_setgroupent = yes; then
6705 1.8 tv
6706 1.61.2.1 pavel cat >>confdefs.h <<EOF
6707 1.8 tv #define HAVE_DECL_SETGROUPENT 1
6708 1.61.2.1 pavel EOF
6709 1.8 tv
6710 1.8 tv else
6711 1.61.2.1 pavel cat >>confdefs.h <<EOF
6712 1.8 tv #define HAVE_DECL_SETGROUPENT 0
6713 1.61.2.1 pavel EOF
6714 1.8 tv
6715 1.8 tv fi
6716 1.61.2.2 snj echo "$as_me:6716: checking whether setpassent is declared" >&5
6717 1.8 tv echo $ECHO_N "checking whether setpassent is declared... $ECHO_C" >&6
6718 1.8 tv if test "${ac_cv_have_decl_setpassent+set}" = set; then
6719 1.8 tv echo $ECHO_N "(cached) $ECHO_C" >&6
6720 1.8 tv else
6721 1.8 tv cat >conftest.$ac_ext <<_ACEOF
6722 1.61.2.2 snj #line 6722 "configure"
6723 1.61.2.1 pavel #include "confdefs.h"
6724 1.8 tv
6725 1.33 thorpej #include <sys/types.h>
6726 1.8 tv #include <grp.h>
6727 1.8 tv #include <pwd.h>
6728 1.8 tv
6729 1.8 tv int
6730 1.8 tv main ()
6731 1.8 tv {
6732 1.8 tv #ifndef setpassent
6733 1.8 tv char *p = (char *) setpassent;
6734 1.8 tv #endif
6735 1.8 tv
6736 1.8 tv ;
6737 1.8 tv return 0;
6738 1.8 tv }
6739 1.8 tv _ACEOF
6740 1.8 tv rm -f conftest.$ac_objext
6741 1.61.2.2 snj if { (eval echo "$as_me:6741: \"$ac_compile\"") >&5
6742 1.61.2.1 pavel (eval $ac_compile) 2>&5
6743 1.8 tv ac_status=$?
6744 1.61.2.2 snj echo "$as_me:6744: \$? = $ac_status" >&5
6745 1.8 tv (exit $ac_status); } &&
6746 1.61.2.1 pavel { ac_try='test -s conftest.$ac_objext'
6747 1.61.2.2 snj { (eval echo "$as_me:6747: \"$ac_try\"") >&5
6748 1.50 jmc (eval $ac_try) 2>&5
6749 1.50 jmc ac_status=$?
6750 1.61.2.2 snj echo "$as_me:6750: \$? = $ac_status" >&5
6751 1.8 tv (exit $ac_status); }; }; then
6752 1.8 tv ac_cv_have_decl_setpassent=yes
6753 1.8 tv else
6754 1.8 tv echo "$as_me: failed program was:" >&5
6755 1.61.2.1 pavel cat conftest.$ac_ext >&5
6756 1.8 tv ac_cv_have_decl_setpassent=no
6757 1.8 tv fi
6758 1.61.2.1 pavel rm -f conftest.$ac_objext conftest.$ac_ext
6759 1.8 tv fi
6760 1.61.2.2 snj echo "$as_me:6760: result: $ac_cv_have_decl_setpassent" >&5
6761 1.8 tv echo "${ECHO_T}$ac_cv_have_decl_setpassent" >&6
6762 1.8 tv if test $ac_cv_have_decl_setpassent = yes; then
6763 1.8 tv
6764 1.61.2.1 pavel cat >>confdefs.h <<EOF
6765 1.8 tv #define HAVE_DECL_SETPASSENT 1
6766 1.61.2.1 pavel EOF
6767 1.8 tv
6768 1.8 tv else
6769 1.61.2.1 pavel cat >>confdefs.h <<EOF
6770 1.8 tv #define HAVE_DECL_SETPASSENT 0
6771 1.61.2.1 pavel EOF
6772 1.8 tv
6773 1.8 tv fi
6774 1.8 tv
6775 1.4 tv # regcomp() and regexec() are also names of functions in the old V8
6776 1.4 tv # regexp package. To avoid them, we need to find out who has regfree().
6777 1.4 tv
6778 1.61.2.2 snj echo "$as_me:6778: checking for regfree in -lregex" >&5
6779 1.4 tv echo $ECHO_N "checking for regfree in -lregex... $ECHO_C" >&6
6780 1.4 tv if test "${ac_cv_lib_regex_regfree+set}" = set; then
6781 1.4 tv echo $ECHO_N "(cached) $ECHO_C" >&6
6782 1.4 tv else
6783 1.4 tv ac_check_lib_save_LIBS=$LIBS
6784 1.4 tv LIBS="-lregex $LIBS"
6785 1.4 tv cat >conftest.$ac_ext <<_ACEOF
6786 1.61.2.2 snj #line 6786 "configure"
6787 1.61.2.1 pavel #include "confdefs.h"
6788 1.4 tv
6789 1.4 tv /* Override any gcc2 internal prototype to avoid an error. */
6790 1.4 tv #ifdef __cplusplus
6791 1.4 tv extern "C"
6792 1.4 tv #endif
6793 1.4 tv /* We use char because int might match the return type of a gcc2
6794 1.4 tv builtin and then its argument prototype would still apply. */
6795 1.4 tv char regfree ();
6796 1.4 tv int
6797 1.4 tv main ()
6798 1.4 tv {
6799 1.4 tv regfree ();
6800 1.4 tv ;
6801 1.4 tv return 0;
6802 1.4 tv }
6803 1.4 tv _ACEOF
6804 1.4 tv rm -f conftest.$ac_objext conftest$ac_exeext
6805 1.61.2.2 snj if { (eval echo "$as_me:6805: \"$ac_link\"") >&5
6806 1.61.2.1 pavel (eval $ac_link) 2>&5
6807 1.4 tv ac_status=$?
6808 1.61.2.2 snj echo "$as_me:6808: \$? = $ac_status" >&5
6809 1.4 tv (exit $ac_status); } &&
6810 1.61.2.1 pavel { ac_try='test -s conftest$ac_exeext'
6811 1.61.2.2 snj { (eval echo "$as_me:6811: \"$ac_try\"") >&5
6812 1.4 tv (eval $ac_try) 2>&5
6813 1.4 tv ac_status=$?
6814 1.61.2.2 snj echo "$as_me:6814: \$? = $ac_status" >&5
6815 1.4 tv (exit $ac_status); }; }; then
6816 1.4 tv ac_cv_lib_regex_regfree=yes
6817 1.4 tv else
6818 1.4 tv echo "$as_me: failed program was:" >&5
6819 1.61.2.1 pavel cat conftest.$ac_ext >&5
6820 1.4 tv ac_cv_lib_regex_regfree=no
6821 1.4 tv fi
6822 1.61.2.1 pavel rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6823 1.4 tv LIBS=$ac_check_lib_save_LIBS
6824 1.4 tv fi
6825 1.61.2.2 snj echo "$as_me:6825: result: $ac_cv_lib_regex_regfree" >&5
6826 1.4 tv echo "${ECHO_T}$ac_cv_lib_regex_regfree" >&6
6827 1.4 tv if test $ac_cv_lib_regex_regfree = yes; then
6828 1.61.2.1 pavel cat >>confdefs.h <<EOF
6829 1.4 tv #define HAVE_LIBREGEX 1
6830 1.61.2.1 pavel EOF
6831 1.4 tv
6832 1.4 tv LIBS="-lregex $LIBS"
6833 1.4 tv
6834 1.4 tv fi
6835 1.4 tv
6836 1.61.2.2 snj echo "$as_me:6836: checking for library containing regfree" >&5
6837 1.4 tv echo $ECHO_N "checking for library containing regfree... $ECHO_C" >&6
6838 1.4 tv if test "${ac_cv_search_regfree+set}" = set; then
6839 1.1 tv echo $ECHO_N "(cached) $ECHO_C" >&6
6840 1.1 tv else
6841 1.1 tv ac_func_search_save_LIBS=$LIBS
6842 1.4 tv ac_cv_search_regfree=no
6843 1.1 tv cat >conftest.$ac_ext <<_ACEOF
6844 1.61.2.2 snj #line 6844 "configure"
6845 1.61.2.1 pavel #include "confdefs.h"
6846 1.1 tv
6847 1.1 tv /* Override any gcc2 internal prototype to avoid an error. */
6848 1.1 tv #ifdef __cplusplus
6849 1.1 tv extern "C"
6850 1.1 tv #endif
6851 1.1 tv /* We use char because int might match the return type of a gcc2
6852 1.1 tv builtin and then its argument prototype would still apply. */
6853 1.4 tv char regfree ();
6854 1.1 tv int
6855 1.1 tv main ()
6856 1.1 tv {
6857 1.4 tv regfree ();
6858 1.1 tv ;
6859 1.1 tv return 0;
6860 1.1 tv }
6861 1.1 tv _ACEOF
6862 1.1 tv rm -f conftest.$ac_objext conftest$ac_exeext
6863 1.61.2.2 snj if { (eval echo "$as_me:6863: \"$ac_link\"") >&5
6864 1.61.2.1 pavel (eval $ac_link) 2>&5
6865 1.1 tv ac_status=$?
6866 1.61.2.2 snj echo "$as_me:6866: \$? = $ac_status" >&5
6867 1.1 tv (exit $ac_status); } &&
6868 1.61.2.1 pavel { ac_try='test -s conftest$ac_exeext'
6869 1.61.2.2 snj { (eval echo "$as_me:6869: \"$ac_try\"") >&5
6870 1.1 tv (eval $ac_try) 2>&5
6871 1.1 tv ac_status=$?
6872 1.61.2.2 snj echo "$as_me:6872: \$? = $ac_status" >&5
6873 1.1 tv (exit $ac_status); }; }; then
6874 1.4 tv ac_cv_search_regfree="none required"
6875 1.1 tv else
6876 1.1 tv echo "$as_me: failed program was:" >&5
6877 1.61.2.1 pavel cat conftest.$ac_ext >&5
6878 1.1 tv fi
6879 1.61.2.1 pavel rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6880 1.4 tv if test "$ac_cv_search_regfree" = no; then
6881 1.4 tv for ac_lib in rx posix; do
6882 1.1 tv LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6883 1.1 tv cat >conftest.$ac_ext <<_ACEOF
6884 1.61.2.2 snj #line 6884 "configure"
6885 1.61.2.1 pavel #include "confdefs.h"
6886 1.1 tv
6887 1.1 tv /* Override any gcc2 internal prototype to avoid an error. */
6888 1.1 tv #ifdef __cplusplus
6889 1.1 tv extern "C"
6890 1.1 tv #endif
6891 1.1 tv /* We use char because int might match the return type of a gcc2
6892 1.1 tv builtin and then its argument prototype would still apply. */
6893 1.4 tv char regfree ();
6894 1.1 tv int
6895 1.1 tv main ()
6896 1.1 tv {
6897 1.4 tv regfree ();
6898 1.1 tv ;
6899 1.1 tv return 0;
6900 1.1 tv }
6901 1.1 tv _ACEOF
6902 1.1 tv rm -f conftest.$ac_objext conftest$ac_exeext
6903 1.61.2.2 snj if { (eval echo "$as_me:6903: \"$ac_link\"") >&5
6904 1.61.2.1 pavel (eval $ac_link) 2>&5
6905 1.1 tv ac_status=$?
6906 1.61.2.2 snj echo "$as_me:6906: \$? = $ac_status" >&5
6907 1.1 tv (exit $ac_status); } &&
6908 1.61.2.1 pavel { ac_try='test -s conftest$ac_exeext'
6909 1.61.2.2 snj { (eval echo "$as_me:6909: \"$ac_try\"") >&5
6910 1.1 tv (eval $ac_try) 2>&5
6911 1.1 tv ac_status=$?
6912 1.61.2.2 snj echo "$as_me:6912: \$? = $ac_status" >&5
6913 1.1 tv (exit $ac_status); }; }; then
6914 1.4 tv ac_cv_search_regfree="-l$ac_lib"
6915 1.1 tv break
6916 1.1 tv else
6917 1.1 tv echo "$as_me: failed program was:" >&5
6918 1.61.2.1 pavel cat conftest.$ac_ext >&5
6919 1.1 tv fi
6920 1.61.2.1 pavel rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6921 1.1 tv done
6922 1.1 tv fi
6923 1.1 tv LIBS=$ac_func_search_save_LIBS
6924 1.1 tv fi
6925 1.61.2.2 snj echo "$as_me:6925: result: $ac_cv_search_regfree" >&5
6926 1.4 tv echo "${ECHO_T}$ac_cv_search_regfree" >&6
6927 1.4 tv if test "$ac_cv_search_regfree" != no; then
6928 1.4 tv test "$ac_cv_search_regfree" = "none required" || LIBS="$ac_cv_search_regfree $LIBS"
6929 1.1 tv
6930 1.1 tv fi
6931 1.1 tv
6932 1.1 tv cat >confcache <<\_ACEOF
6933 1.1 tv # This file is a shell script that caches the results of configure
6934 1.1 tv # tests run on this system so they can be shared between configure
6935 1.1 tv # scripts and configure runs, see configure's option --config-cache.
6936 1.1 tv # It is not useful on other systems. If it contains results you don't
6937 1.1 tv # want to keep, you may remove or edit it.
6938 1.1 tv #
6939 1.1 tv # config.status only pays attention to the cache file if you give it
6940 1.1 tv # the --recheck option to rerun configure.
6941 1.1 tv #
6942 1.61.2.1 pavel # `ac_cv_env_foo' variables (set or unset) will be overriden when
6943 1.1 tv # loading this file, other *unset* `ac_cv_foo' will be assigned the
6944 1.1 tv # following values.
6945 1.1 tv
6946 1.1 tv _ACEOF
6947 1.1 tv
6948 1.1 tv # The following way of writing the cache mishandles newlines in values,
6949 1.1 tv # but we know of no workaround that is simple, portable, and efficient.
6950 1.1 tv # So, don't put newlines in cache variables' values.
6951 1.1 tv # Ultrix sh set writes to stderr and can't be redirected directly,
6952 1.1 tv # and sets the high bit in the cache file unless we assign to the vars.
6953 1.1 tv {
6954 1.1 tv (set) 2>&1 |
6955 1.1 tv case `(ac_space=' '; set | grep ac_space) 2>&1` in
6956 1.1 tv *ac_space=\ *)
6957 1.1 tv # `set' does not quote correctly, so add quotes (double-quote
6958 1.1 tv # substitution turns \\\\ into \\, and sed turns \\ into \).
6959 1.1 tv sed -n \
6960 1.61.2.1 pavel "s/'/'\\\\''/g;
6961 1.61.2.1 pavel s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
6962 1.1 tv ;;
6963 1.1 tv *)
6964 1.1 tv # `set' quotes correctly as required by POSIX, so do not add quotes.
6965 1.1 tv sed -n \
6966 1.61.2.1 pavel "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
6967 1.1 tv ;;
6968 1.1 tv esac;
6969 1.1 tv } |
6970 1.1 tv sed '
6971 1.1 tv t clear
6972 1.1 tv : clear
6973 1.1 tv s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
6974 1.1 tv t end
6975 1.1 tv /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
6976 1.1 tv : end' >>confcache
6977 1.61.2.1 pavel if cmp -s $cache_file confcache; then :; else
6978 1.1 tv if test -w $cache_file; then
6979 1.1 tv test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
6980 1.1 tv cat confcache >$cache_file
6981 1.1 tv else
6982 1.1 tv echo "not updating unwritable cache $cache_file"
6983 1.1 tv fi
6984 1.1 tv fi
6985 1.1 tv rm -f confcache
6986 1.1 tv
6987 1.1 tv test "x$prefix" = xNONE && prefix=$ac_default_prefix
6988 1.1 tv # Let make expand exec_prefix.
6989 1.1 tv test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6990 1.1 tv
6991 1.1 tv # VPATH may cause trouble with some makes, so we remove $(srcdir),
6992 1.1 tv # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
6993 1.1 tv # trailing colons and then remove the whole line if VPATH becomes empty
6994 1.1 tv # (actually we leave an empty line to preserve line numbers).
6995 1.1 tv if test "x$srcdir" = x.; then
6996 1.61.2.1 pavel ac_vpsub='/^[ ]*VPATH[ ]*=/{
6997 1.1 tv s/:*\$(srcdir):*/:/;
6998 1.1 tv s/:*\${srcdir}:*/:/;
6999 1.1 tv s/:*@srcdir@:*/:/;
7000 1.61.2.1 pavel s/^\([^=]*=[ ]*\):*/\1/;
7001 1.1 tv s/:*$//;
7002 1.61.2.1 pavel s/^[^=]*=[ ]*$//;
7003 1.1 tv }'
7004 1.1 tv fi
7005 1.1 tv
7006 1.1 tv DEFS=-DHAVE_CONFIG_H
7007 1.1 tv
7008 1.1 tv : ${CONFIG_STATUS=./config.status}
7009 1.1 tv ac_clean_files_save=$ac_clean_files
7010 1.1 tv ac_clean_files="$ac_clean_files $CONFIG_STATUS"
7011 1.61.2.2 snj { echo "$as_me:7011: creating $CONFIG_STATUS" >&5
7012 1.1 tv echo "$as_me: creating $CONFIG_STATUS" >&6;}
7013 1.1 tv cat >$CONFIG_STATUS <<_ACEOF
7014 1.1 tv #! $SHELL
7015 1.61.2.1 pavel # Generated automatically by configure.
7016 1.1 tv # Run this file to recreate the current configuration.
7017 1.1 tv # Compiler output produced by configure, useful for debugging
7018 1.1 tv # configure, is in config.log if it exists.
7019 1.1 tv
7020 1.1 tv debug=false
7021 1.1 tv SHELL=\${CONFIG_SHELL-$SHELL}
7022 1.61.2.1 pavel ac_cs_invocation="\$0 \$@"
7023 1.61.2.1 pavel
7024 1.1 tv _ACEOF
7025 1.1 tv
7026 1.1 tv cat >>$CONFIG_STATUS <<\_ACEOF
7027 1.1 tv # Be Bourne compatible
7028 1.1 tv if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
7029 1.1 tv emulate sh
7030 1.1 tv NULLCMD=:
7031 1.1 tv elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
7032 1.1 tv set -o posix
7033 1.1 tv fi
7034 1.1 tv
7035 1.1 tv # Name of the executable.
7036 1.61.2.1 pavel as_me=`echo "$0" |sed 's,.*[\\/],,'`
7037 1.1 tv
7038 1.1 tv if expr a : '\(a\)' >/dev/null 2>&1; then
7039 1.1 tv as_expr=expr
7040 1.1 tv else
7041 1.1 tv as_expr=false
7042 1.1 tv fi
7043 1.1 tv
7044 1.1 tv rm -f conf$$ conf$$.exe conf$$.file
7045 1.1 tv echo >conf$$.file
7046 1.1 tv if ln -s conf$$.file conf$$ 2>/dev/null; then
7047 1.1 tv # We could just check for DJGPP; but this test a) works b) is more generic
7048 1.1 tv # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
7049 1.1 tv if test -f conf$$.exe; then
7050 1.1 tv # Don't use ln at all; we don't have any links
7051 1.1 tv as_ln_s='cp -p'
7052 1.1 tv else
7053 1.1 tv as_ln_s='ln -s'
7054 1.1 tv fi
7055 1.1 tv elif ln conf$$.file conf$$ 2>/dev/null; then
7056 1.1 tv as_ln_s=ln
7057 1.1 tv else
7058 1.1 tv as_ln_s='cp -p'
7059 1.1 tv fi
7060 1.1 tv rm -f conf$$ conf$$.exe conf$$.file
7061 1.1 tv
7062 1.60 apb as_executable_p="test -f"
7063 1.60 apb
7064 1.61.2.1 pavel # Support unset when possible.
7065 1.61.2.1 pavel if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
7066 1.61.2.1 pavel as_unset=unset
7067 1.61.2.1 pavel else
7068 1.61.2.1 pavel as_unset=false
7069 1.61.2.1 pavel fi
7070 1.53 dogcow
7071 1.61.2.1 pavel # NLS nuisances.
7072 1.61.2.1 pavel $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
7073 1.61.2.1 pavel $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
7074 1.61.2.1 pavel $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
7075 1.61.2.1 pavel $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
7076 1.61.2.1 pavel $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
7077 1.61.2.1 pavel $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
7078 1.61.2.1 pavel $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
7079 1.61.2.1 pavel $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
7080 1.1 tv
7081 1.1 tv # IFS
7082 1.1 tv # We need space, tab and new line, in precisely that order.
7083 1.1 tv as_nl='
7084 1.1 tv '
7085 1.1 tv IFS=" $as_nl"
7086 1.1 tv
7087 1.1 tv # CDPATH.
7088 1.61.2.1 pavel $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
7089 1.1 tv
7090 1.1 tv exec 6>&1
7091 1.1 tv
7092 1.1 tv _ACEOF
7093 1.1 tv
7094 1.1 tv # Files that config.status was made for.
7095 1.1 tv if test -n "$ac_config_files"; then
7096 1.1 tv echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
7097 1.1 tv fi
7098 1.1 tv
7099 1.1 tv if test -n "$ac_config_headers"; then
7100 1.1 tv echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
7101 1.1 tv fi
7102 1.1 tv
7103 1.1 tv if test -n "$ac_config_links"; then
7104 1.1 tv echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
7105 1.1 tv fi
7106 1.1 tv
7107 1.1 tv if test -n "$ac_config_commands"; then
7108 1.1 tv echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
7109 1.1 tv fi
7110 1.1 tv
7111 1.61.2.1 pavel cat >>$CONFIG_STATUS <<\EOF
7112 1.1 tv
7113 1.1 tv ac_cs_usage="\
7114 1.1 tv \`$as_me' instantiates files from templates according to the
7115 1.1 tv current configuration.
7116 1.1 tv
7117 1.1 tv Usage: $0 [OPTIONS] [FILE]...
7118 1.1 tv
7119 1.1 tv -h, --help print this help, then exit
7120 1.1 tv -V, --version print version number, then exit
7121 1.1 tv -d, --debug don't remove temporary files
7122 1.1 tv --recheck update $as_me by reconfiguring in the same conditions
7123 1.1 tv --file=FILE[:TEMPLATE]
7124 1.61.2.1 pavel instantiate the configuration file FILE
7125 1.1 tv --header=FILE[:TEMPLATE]
7126 1.61.2.1 pavel instantiate the configuration header FILE
7127 1.1 tv
7128 1.1 tv Configuration files:
7129 1.1 tv $config_files
7130 1.1 tv
7131 1.1 tv Configuration headers:
7132 1.1 tv $config_headers
7133 1.1 tv
7134 1.1 tv Report bugs to <bug-autoconf@gnu.org>."
7135 1.61.2.1 pavel EOF
7136 1.1 tv
7137 1.61.2.1 pavel cat >>$CONFIG_STATUS <<EOF
7138 1.1 tv ac_cs_version="\\
7139 1.1 tv libnbcompat config.status noversion
7140 1.61.2.1 pavel configured by $0, generated by GNU Autoconf 2.52,
7141 1.1 tv with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
7142 1.1 tv
7143 1.61.2.1 pavel Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
7144 1.61.2.1 pavel Free Software Foundation, Inc.
7145 1.1 tv This config.status script is free software; the Free Software Foundation
7146 1.1 tv gives unlimited permission to copy, distribute and modify it."
7147 1.1 tv srcdir=$srcdir
7148 1.61.2.1 pavel EOF
7149 1.1 tv
7150 1.61.2.1 pavel cat >>$CONFIG_STATUS <<\EOF
7151 1.1 tv # If no file are specified by the user, then we need to provide default
7152 1.1 tv # value. By we need to know if files were specified by the user.
7153 1.1 tv ac_need_defaults=:
7154 1.1 tv while test $# != 0
7155 1.1 tv do
7156 1.1 tv case $1 in
7157 1.1 tv --*=*)
7158 1.1 tv ac_option=`expr "x$1" : 'x\([^=]*\)='`
7159 1.1 tv ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
7160 1.61.2.1 pavel shift
7161 1.61.2.1 pavel set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
7162 1.61.2.1 pavel shift
7163 1.1 tv ;;
7164 1.61.2.1 pavel -*);;
7165 1.1 tv *) # This is not an option, so the user has probably given explicit
7166 1.1 tv # arguments.
7167 1.1 tv ac_need_defaults=false;;
7168 1.1 tv esac
7169 1.1 tv
7170 1.61.2.1 pavel case $1 in
7171 1.1 tv # Handling of the options.
7172 1.61.2.1 pavel EOF
7173 1.61.2.1 pavel cat >>$CONFIG_STATUS <<EOF
7174 1.1 tv -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7175 1.61.2.1 pavel echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
7176 1.61.2.1 pavel exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
7177 1.61.2.1 pavel EOF
7178 1.61.2.1 pavel cat >>$CONFIG_STATUS <<\EOF
7179 1.1 tv --version | --vers* | -V )
7180 1.1 tv echo "$ac_cs_version"; exit 0 ;;
7181 1.1 tv --he | --h)
7182 1.1 tv # Conflict between --help and --header
7183 1.61.2.2 snj { { echo "$as_me:7183: error: ambiguous option: $1
7184 1.1 tv Try \`$0 --help' for more information." >&5
7185 1.1 tv echo "$as_me: error: ambiguous option: $1
7186 1.1 tv Try \`$0 --help' for more information." >&2;}
7187 1.1 tv { (exit 1); exit 1; }; };;
7188 1.1 tv --help | --hel | -h )
7189 1.1 tv echo "$ac_cs_usage"; exit 0 ;;
7190 1.1 tv --debug | --d* | -d )
7191 1.1 tv debug=: ;;
7192 1.1 tv --file | --fil | --fi | --f )
7193 1.61.2.1 pavel shift
7194 1.61.2.1 pavel CONFIG_FILES="$CONFIG_FILES $1"
7195 1.1 tv ac_need_defaults=false;;
7196 1.1 tv --header | --heade | --head | --hea )
7197 1.61.2.1 pavel shift
7198 1.61.2.1 pavel CONFIG_HEADERS="$CONFIG_HEADERS $1"
7199 1.1 tv ac_need_defaults=false;;
7200 1.1 tv
7201 1.1 tv # This is an error.
7202 1.61.2.2 snj -*) { { echo "$as_me:7202: error: unrecognized option: $1
7203 1.1 tv Try \`$0 --help' for more information." >&5
7204 1.1 tv echo "$as_me: error: unrecognized option: $1
7205 1.1 tv Try \`$0 --help' for more information." >&2;}
7206 1.1 tv { (exit 1); exit 1; }; } ;;
7207 1.1 tv
7208 1.1 tv *) ac_config_targets="$ac_config_targets $1" ;;
7209 1.1 tv
7210 1.1 tv esac
7211 1.1 tv shift
7212 1.1 tv done
7213 1.1 tv
7214 1.61.2.1 pavel exec 5>>config.log
7215 1.61.2.1 pavel cat >&5 << _ACEOF
7216 1.1 tv
7217 1.61.2.1 pavel ## ----------------------- ##
7218 1.61.2.1 pavel ## Running config.status. ##
7219 1.61.2.1 pavel ## ----------------------- ##
7220 1.1 tv
7221 1.61.2.1 pavel This file was extended by $as_me (libnbcompat noversion) 2.52, executed with
7222 1.61.2.1 pavel CONFIG_FILES = $CONFIG_FILES
7223 1.61.2.1 pavel CONFIG_HEADERS = $CONFIG_HEADERS
7224 1.61.2.1 pavel CONFIG_LINKS = $CONFIG_LINKS
7225 1.61.2.1 pavel CONFIG_COMMANDS = $CONFIG_COMMANDS
7226 1.61.2.1 pavel > $ac_cs_invocation
7227 1.61.2.1 pavel on `(hostname || uname -n) 2>/dev/null | sed 1q`
7228 1.1 tv
7229 1.1 tv _ACEOF
7230 1.61.2.1 pavel EOF
7231 1.1 tv
7232 1.61.2.1 pavel cat >>$CONFIG_STATUS <<\EOF
7233 1.1 tv for ac_config_target in $ac_config_targets
7234 1.1 tv do
7235 1.1 tv case "$ac_config_target" in
7236 1.1 tv # Handling of arguments.
7237 1.1 tv "defs.mk" ) CONFIG_FILES="$CONFIG_FILES defs.mk" ;;
7238 1.57 wiz "nbtool_config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS nbtool_config.h" ;;
7239 1.61.2.2 snj *) { { echo "$as_me:7239: error: invalid argument: $ac_config_target" >&5
7240 1.1 tv echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
7241 1.1 tv { (exit 1); exit 1; }; };;
7242 1.1 tv esac
7243 1.1 tv done
7244 1.1 tv
7245 1.1 tv # If the user did not use the arguments to specify the items to instantiate,
7246 1.1 tv # then the envvar interface is used. Set only those that are not.
7247 1.1 tv # We use the long form for the default assignment because of an extremely
7248 1.1 tv # bizarre bug on SunOS 4.1.3.
7249 1.1 tv if $ac_need_defaults; then
7250 1.1 tv test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
7251 1.1 tv test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
7252 1.1 tv fi
7253 1.1 tv
7254 1.1 tv # Create a temporary directory, and hook for its removal unless debugging.
7255 1.1 tv $debug ||
7256 1.1 tv {
7257 1.1 tv trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
7258 1.1 tv trap '{ (exit 1); exit 1; }' 1 2 13 15
7259 1.1 tv }
7260 1.1 tv
7261 1.1 tv # Create a (secure) tmp directory for tmp files.
7262 1.61.2.1 pavel : ${TMPDIR=/tmp}
7263 1.1 tv {
7264 1.61.2.1 pavel tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
7265 1.1 tv test -n "$tmp" && test -d "$tmp"
7266 1.1 tv } ||
7267 1.1 tv {
7268 1.61.2.1 pavel tmp=$TMPDIR/cs$$-$RANDOM
7269 1.1 tv (umask 077 && mkdir $tmp)
7270 1.1 tv } ||
7271 1.1 tv {
7272 1.61.2.1 pavel echo "$me: cannot create a temporary directory in $TMPDIR" >&2
7273 1.1 tv { (exit 1); exit 1; }
7274 1.1 tv }
7275 1.1 tv
7276 1.61.2.1 pavel EOF
7277 1.1 tv
7278 1.61.2.1 pavel cat >>$CONFIG_STATUS <<EOF
7279 1.1 tv
7280 1.1 tv #
7281 1.1 tv # CONFIG_FILES section.
7282 1.1 tv #
7283 1.1 tv
7284 1.1 tv # No need to generate the scripts if there are no CONFIG_FILES.
7285 1.1 tv # This happens for instance when ./config.status config.h
7286 1.1 tv if test -n "\$CONFIG_FILES"; then
7287 1.1 tv # Protect against being on the right side of a sed subst in config.status.
7288 1.1 tv sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
7289 1.1 tv s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
7290 1.1 tv s,@SHELL@,$SHELL,;t t
7291 1.1 tv s,@exec_prefix@,$exec_prefix,;t t
7292 1.1 tv s,@prefix@,$prefix,;t t
7293 1.1 tv s,@program_transform_name@,$program_transform_name,;t t
7294 1.1 tv s,@bindir@,$bindir,;t t
7295 1.1 tv s,@sbindir@,$sbindir,;t t
7296 1.1 tv s,@libexecdir@,$libexecdir,;t t
7297 1.1 tv s,@datadir@,$datadir,;t t
7298 1.1 tv s,@sysconfdir@,$sysconfdir,;t t
7299 1.1 tv s,@sharedstatedir@,$sharedstatedir,;t t
7300 1.1 tv s,@localstatedir@,$localstatedir,;t t
7301 1.1 tv s,@libdir@,$libdir,;t t
7302 1.1 tv s,@includedir@,$includedir,;t t
7303 1.1 tv s,@oldincludedir@,$oldincludedir,;t t
7304 1.1 tv s,@infodir@,$infodir,;t t
7305 1.1 tv s,@mandir@,$mandir,;t t
7306 1.61.2.1 pavel s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
7307 1.61.2.1 pavel s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
7308 1.61.2.1 pavel s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
7309 1.61.2.1 pavel s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
7310 1.61.2.1 pavel s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
7311 1.1 tv s,@build_alias@,$build_alias,;t t
7312 1.1 tv s,@host_alias@,$host_alias,;t t
7313 1.1 tv s,@target_alias@,$target_alias,;t t
7314 1.1 tv s,@ECHO_C@,$ECHO_C,;t t
7315 1.1 tv s,@ECHO_N@,$ECHO_N,;t t
7316 1.1 tv s,@ECHO_T@,$ECHO_T,;t t
7317 1.61.2.1 pavel s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
7318 1.61.2.1 pavel s,@DEFS@,$DEFS,;t t
7319 1.1 tv s,@LIBS@,$LIBS,;t t
7320 1.1 tv s,@CC@,$CC,;t t
7321 1.1 tv s,@CFLAGS@,$CFLAGS,;t t
7322 1.1 tv s,@LDFLAGS@,$LDFLAGS,;t t
7323 1.1 tv s,@CPPFLAGS@,$CPPFLAGS,;t t
7324 1.1 tv s,@ac_ct_CC@,$ac_ct_CC,;t t
7325 1.1 tv s,@EXEEXT@,$EXEEXT,;t t
7326 1.1 tv s,@OBJEXT@,$OBJEXT,;t t
7327 1.1 tv s,@CPP@,$CPP,;t t
7328 1.45 jmc s,@BSHELL@,$BSHELL,;t t
7329 1.19 bjh21 s,@ALLOCA@,$ALLOCA,;t t
7330 1.1 tv CEOF
7331 1.1 tv
7332 1.61.2.1 pavel EOF
7333 1.1 tv
7334 1.61.2.1 pavel cat >>$CONFIG_STATUS <<\EOF
7335 1.1 tv # Split the substitutions into bite-sized pieces for seds with
7336 1.1 tv # small command number limits, like on Digital OSF/1 and HP-UX.
7337 1.1 tv ac_max_sed_lines=48
7338 1.1 tv ac_sed_frag=1 # Number of current file.
7339 1.1 tv ac_beg=1 # First line for current file.
7340 1.1 tv ac_end=$ac_max_sed_lines # Line after last line for current file.
7341 1.1 tv ac_more_lines=:
7342 1.1 tv ac_sed_cmds=
7343 1.1 tv while $ac_more_lines; do
7344 1.1 tv if test $ac_beg -gt 1; then
7345 1.1 tv sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
7346 1.1 tv else
7347 1.1 tv sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
7348 1.1 tv fi
7349 1.1 tv if test ! -s $tmp/subs.frag; then
7350 1.1 tv ac_more_lines=false
7351 1.1 tv else
7352 1.1 tv # The purpose of the label and of the branching condition is to
7353 1.1 tv # speed up the sed processing (if there are no `@' at all, there
7354 1.1 tv # is no need to browse any of the substitutions).
7355 1.1 tv # These are the two extra sed commands mentioned above.
7356 1.1 tv (echo ':t
7357 1.1 tv /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
7358 1.1 tv if test -z "$ac_sed_cmds"; then
7359 1.61.2.1 pavel ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
7360 1.1 tv else
7361 1.61.2.1 pavel ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
7362 1.1 tv fi
7363 1.1 tv ac_sed_frag=`expr $ac_sed_frag + 1`
7364 1.1 tv ac_beg=$ac_end
7365 1.1 tv ac_end=`expr $ac_end + $ac_max_sed_lines`
7366 1.1 tv fi
7367 1.1 tv done
7368 1.1 tv if test -z "$ac_sed_cmds"; then
7369 1.1 tv ac_sed_cmds=cat
7370 1.1 tv fi
7371 1.1 tv fi # test -n "$CONFIG_FILES"
7372 1.1 tv
7373 1.61.2.1 pavel EOF
7374 1.61.2.1 pavel cat >>$CONFIG_STATUS <<\EOF
7375 1.1 tv for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
7376 1.1 tv # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7377 1.1 tv case $ac_file in
7378 1.1 tv - | *:- | *:-:* ) # input from stdin
7379 1.61.2.1 pavel cat >$tmp/stdin
7380 1.61.2.1 pavel ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7381 1.61.2.1 pavel ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7382 1.1 tv *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7383 1.61.2.1 pavel ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7384 1.1 tv * ) ac_file_in=$ac_file.in ;;
7385 1.1 tv esac
7386 1.1 tv
7387 1.1 tv # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
7388 1.61.2.1 pavel ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7389 1.61.2.1 pavel X"$ac_file" : 'X\(//\)[^/]' \| \
7390 1.61.2.1 pavel X"$ac_file" : 'X\(//\)$' \| \
7391 1.61.2.1 pavel X"$ac_file" : 'X\(/\)' \| \
7392 1.61.2.1 pavel . : '\(.\)' 2>/dev/null ||
7393 1.1 tv echo X"$ac_file" |
7394 1.1 tv sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7395 1.1 tv /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7396 1.1 tv /^X\(\/\/\)$/{ s//\1/; q; }
7397 1.1 tv /^X\(\/\).*/{ s//\1/; q; }
7398 1.1 tv s/.*/./; q'`
7399 1.61.2.1 pavel if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
7400 1.61.2.1 pavel { case "$ac_dir" in
7401 1.61.2.1 pavel [\\/]* | ?:[\\/]* ) as_incr_dir=;;
7402 1.61.2.1 pavel *) as_incr_dir=.;;
7403 1.50 jmc esac
7404 1.61.2.1 pavel as_dummy="$ac_dir"
7405 1.61.2.1 pavel for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
7406 1.61.2.1 pavel case $as_mkdir_dir in
7407 1.61.2.1 pavel # Skip DOS drivespec
7408 1.61.2.1 pavel ?:) as_incr_dir=$as_mkdir_dir ;;
7409 1.61.2.1 pavel *)
7410 1.61.2.1 pavel as_incr_dir=$as_incr_dir/$as_mkdir_dir
7411 1.61.2.1 pavel test -d "$as_incr_dir" || mkdir "$as_incr_dir"
7412 1.61.2.1 pavel ;;
7413 1.61.2.1 pavel esac
7414 1.61.2.1 pavel done; }
7415 1.1 tv
7416 1.61.2.1 pavel ac_dir_suffix="/`echo $ac_dir|sed 's,^\./,,'`"
7417 1.61.2.1 pavel # A "../" for each directory in $ac_dir_suffix.
7418 1.61.2.1 pavel ac_dots=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'`
7419 1.61.2.1 pavel else
7420 1.61.2.1 pavel ac_dir_suffix= ac_dots=
7421 1.61.2.1 pavel fi
7422 1.1 tv
7423 1.61.2.1 pavel case $srcdir in
7424 1.61.2.1 pavel .) ac_srcdir=.
7425 1.61.2.1 pavel if test -z "$ac_dots"; then
7426 1.61.2.1 pavel ac_top_srcdir=.
7427 1.61.2.1 pavel else
7428 1.61.2.1 pavel ac_top_srcdir=`echo $ac_dots | sed 's,/$,,'`
7429 1.61.2.1 pavel fi ;;
7430 1.61.2.1 pavel [\\/]* | ?:[\\/]* )
7431 1.61.2.1 pavel ac_srcdir=$srcdir$ac_dir_suffix;
7432 1.61.2.1 pavel ac_top_srcdir=$srcdir ;;
7433 1.61.2.1 pavel *) # Relative path.
7434 1.61.2.1 pavel ac_srcdir=$ac_dots$srcdir$ac_dir_suffix
7435 1.61.2.1 pavel ac_top_srcdir=$ac_dots$srcdir ;;
7436 1.61.2.1 pavel esac
7437 1.1 tv
7438 1.1 tv if test x"$ac_file" != x-; then
7439 1.61.2.2 snj { echo "$as_me:7439: creating $ac_file" >&5
7440 1.1 tv echo "$as_me: creating $ac_file" >&6;}
7441 1.1 tv rm -f "$ac_file"
7442 1.1 tv fi
7443 1.1 tv # Let's still pretend it is `configure' which instantiates (i.e., don't
7444 1.1 tv # use $as_me), people would be surprised to read:
7445 1.61.2.1 pavel # /* config.h. Generated automatically by config.status. */
7446 1.61.2.1 pavel configure_input="Generated automatically from `echo $ac_file_in |
7447 1.61.2.1 pavel sed 's,.*/,,'` by configure."
7448 1.1 tv
7449 1.1 tv # First look for the input files in the build tree, otherwise in the
7450 1.1 tv # src tree.
7451 1.1 tv ac_file_inputs=`IFS=:
7452 1.1 tv for f in $ac_file_in; do
7453 1.1 tv case $f in
7454 1.1 tv -) echo $tmp/stdin ;;
7455 1.1 tv [\\/$]*)
7456 1.61.2.1 pavel # Absolute (can't be DOS-style, as IFS=:)
7457 1.61.2.2 snj test -f "$f" || { { echo "$as_me:7457: error: cannot find input file: $f" >&5
7458 1.1 tv echo "$as_me: error: cannot find input file: $f" >&2;}
7459 1.1 tv { (exit 1); exit 1; }; }
7460 1.61.2.1 pavel echo $f;;
7461 1.1 tv *) # Relative
7462 1.61.2.1 pavel if test -f "$f"; then
7463 1.61.2.1 pavel # Build tree
7464 1.61.2.1 pavel echo $f
7465 1.61.2.1 pavel elif test -f "$srcdir/$f"; then
7466 1.61.2.1 pavel # Source tree
7467 1.61.2.1 pavel echo $srcdir/$f
7468 1.61.2.1 pavel else
7469 1.61.2.1 pavel # /dev/null tree
7470 1.61.2.2 snj { { echo "$as_me:7470: error: cannot find input file: $f" >&5
7471 1.1 tv echo "$as_me: error: cannot find input file: $f" >&2;}
7472 1.1 tv { (exit 1); exit 1; }; }
7473 1.61.2.1 pavel fi;;
7474 1.1 tv esac
7475 1.1 tv done` || { (exit 1); exit 1; }
7476 1.61.2.1 pavel EOF
7477 1.61.2.1 pavel cat >>$CONFIG_STATUS <<EOF
7478 1.1 tv sed "$ac_vpsub
7479 1.1 tv $extrasub
7480 1.61.2.1 pavel EOF
7481 1.61.2.1 pavel cat >>$CONFIG_STATUS <<\EOF
7482 1.1 tv :t
7483 1.1 tv /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
7484 1.1 tv s,@configure_input@,$configure_input,;t t
7485 1.1 tv s,@srcdir@,$ac_srcdir,;t t
7486 1.1 tv s,@top_srcdir@,$ac_top_srcdir,;t t
7487 1.1 tv " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
7488 1.1 tv rm -f $tmp/stdin
7489 1.1 tv if test x"$ac_file" != x-; then
7490 1.1 tv mv $tmp/out $ac_file
7491 1.1 tv else
7492 1.1 tv cat $tmp/out
7493 1.1 tv rm -f $tmp/out
7494 1.1 tv fi
7495 1.1 tv
7496 1.1 tv done
7497 1.61.2.1 pavel EOF
7498 1.61.2.1 pavel cat >>$CONFIG_STATUS <<\EOF
7499 1.1 tv
7500 1.1 tv #
7501 1.1 tv # CONFIG_HEADER section.
7502 1.1 tv #
7503 1.1 tv
7504 1.1 tv # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
7505 1.1 tv # NAME is the cpp macro being defined and VALUE is the value it is being given.
7506 1.1 tv #
7507 1.1 tv # ac_d sets the value in "#define NAME VALUE" lines.
7508 1.61.2.1 pavel ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
7509 1.61.2.1 pavel ac_dB='[ ].*$,\1#\2'
7510 1.1 tv ac_dC=' '
7511 1.1 tv ac_dD=',;t'
7512 1.1 tv # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
7513 1.61.2.1 pavel ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
7514 1.1 tv ac_uB='$,\1#\2define\3'
7515 1.1 tv ac_uC=' '
7516 1.1 tv ac_uD=',;t'
7517 1.1 tv
7518 1.1 tv for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
7519 1.1 tv # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7520 1.1 tv case $ac_file in
7521 1.1 tv - | *:- | *:-:* ) # input from stdin
7522 1.61.2.1 pavel cat >$tmp/stdin
7523 1.61.2.1 pavel ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7524 1.61.2.1 pavel ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7525 1.1 tv *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7526 1.61.2.1 pavel ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7527 1.1 tv * ) ac_file_in=$ac_file.in ;;
7528 1.1 tv esac
7529 1.1 tv
7530 1.61.2.2 snj test x"$ac_file" != x- && { echo "$as_me:7530: creating $ac_file" >&5
7531 1.1 tv echo "$as_me: creating $ac_file" >&6;}
7532 1.1 tv
7533 1.1 tv # First look for the input files in the build tree, otherwise in the
7534 1.1 tv # src tree.
7535 1.1 tv ac_file_inputs=`IFS=:
7536 1.1 tv for f in $ac_file_in; do
7537 1.1 tv case $f in
7538 1.1 tv -) echo $tmp/stdin ;;
7539 1.1 tv [\\/$]*)
7540 1.61.2.1 pavel # Absolute (can't be DOS-style, as IFS=:)
7541 1.61.2.2 snj test -f "$f" || { { echo "$as_me:7541: error: cannot find input file: $f" >&5
7542 1.1 tv echo "$as_me: error: cannot find input file: $f" >&2;}
7543 1.1 tv { (exit 1); exit 1; }; }
7544 1.61.2.1 pavel echo $f;;
7545 1.1 tv *) # Relative
7546 1.61.2.1 pavel if test -f "$f"; then
7547 1.61.2.1 pavel # Build tree
7548 1.61.2.1 pavel echo $f
7549 1.61.2.1 pavel elif test -f "$srcdir/$f"; then
7550 1.61.2.1 pavel # Source tree
7551 1.61.2.1 pavel echo $srcdir/$f
7552 1.61.2.1 pavel else
7553 1.61.2.1 pavel # /dev/null tree
7554 1.61.2.2 snj { { echo "$as_me:7554: error: cannot find input file: $f" >&5
7555 1.1 tv echo "$as_me: error: cannot find input file: $f" >&2;}
7556 1.1 tv { (exit 1); exit 1; }; }
7557 1.61.2.1 pavel fi;;
7558 1.1 tv esac
7559 1.1 tv done` || { (exit 1); exit 1; }
7560 1.1 tv # Remove the trailing spaces.
7561 1.61.2.1 pavel sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
7562 1.1 tv
7563 1.61.2.1 pavel EOF
7564 1.1 tv
7565 1.1 tv # Transform confdefs.h into two sed scripts, `conftest.defines' and
7566 1.1 tv # `conftest.undefs', that substitutes the proper values into
7567 1.1 tv # config.h.in to produce config.h. The first handles `#define'
7568 1.1 tv # templates, and the second `#undef' templates.
7569 1.1 tv # And first: Protect against being on the right side of a sed subst in
7570 1.1 tv # config.status. Protect against being in an unquoted here document
7571 1.1 tv # in config.status.
7572 1.1 tv rm -f conftest.defines conftest.undefs
7573 1.1 tv # Using a here document instead of a string reduces the quoting nightmare.
7574 1.1 tv # Putting comments in sed scripts is not portable.
7575 1.1 tv #
7576 1.1 tv # `end' is used to avoid that the second main sed command (meant for
7577 1.1 tv # 0-ary CPP macros) applies to n-ary macro definitions.
7578 1.1 tv # See the Autoconf documentation for `clear'.
7579 1.61.2.1 pavel cat >confdef2sed.sed <<\EOF
7580 1.1 tv s/[\\&,]/\\&/g
7581 1.1 tv s,[\\$`],\\&,g
7582 1.1 tv t clear
7583 1.1 tv : clear
7584 1.61.2.1 pavel s,^[ ]*#[ ]*define[ ][ ]*\(\([^ (][^ (]*\)([^)]*)\)[ ]*\(.*\)$,${ac_dA}\2${ac_dB}\1${ac_dC}\3${ac_dD},gp
7585 1.1 tv t end
7586 1.61.2.1 pavel s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
7587 1.1 tv : end
7588 1.61.2.1 pavel EOF
7589 1.1 tv # If some macros were called several times there might be several times
7590 1.1 tv # the same #defines, which is useless. Nevertheless, we may not want to
7591 1.1 tv # sort them, since we want the *last* AC-DEFINE to be honored.
7592 1.1 tv uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
7593 1.1 tv sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
7594 1.1 tv rm -f confdef2sed.sed
7595 1.1 tv
7596 1.1 tv # This sed command replaces #undef with comments. This is necessary, for
7597 1.1 tv # example, in the case of _POSIX_SOURCE, which is predefined and required
7598 1.1 tv # on some systems where configure will not decide to define it.
7599 1.61.2.1 pavel cat >>conftest.undefs <<\EOF
7600 1.61.2.1 pavel s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
7601 1.61.2.1 pavel EOF
7602 1.1 tv
7603 1.1 tv # Break up conftest.defines because some shells have a limit on the size
7604 1.1 tv # of here documents, and old seds have small limits too (100 cmds).
7605 1.1 tv echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
7606 1.61.2.1 pavel echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
7607 1.1 tv echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
7608 1.1 tv echo ' :' >>$CONFIG_STATUS
7609 1.1 tv rm -f conftest.tail
7610 1.1 tv while grep . conftest.defines >/dev/null
7611 1.1 tv do
7612 1.1 tv # Write a limited-size here document to $tmp/defines.sed.
7613 1.1 tv echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
7614 1.1 tv # Speed up: don't consider the non `#define' lines.
7615 1.61.2.1 pavel echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
7616 1.1 tv # Work around the forget-to-reset-the-flag bug.
7617 1.1 tv echo 't clr' >>$CONFIG_STATUS
7618 1.1 tv echo ': clr' >>$CONFIG_STATUS
7619 1.1 tv sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
7620 1.1 tv echo 'CEOF
7621 1.1 tv sed -f $tmp/defines.sed $tmp/in >$tmp/out
7622 1.1 tv rm -f $tmp/in
7623 1.1 tv mv $tmp/out $tmp/in
7624 1.1 tv ' >>$CONFIG_STATUS
7625 1.1 tv sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
7626 1.1 tv rm -f conftest.defines
7627 1.1 tv mv conftest.tail conftest.defines
7628 1.1 tv done
7629 1.1 tv rm -f conftest.defines
7630 1.61.2.1 pavel echo ' fi # egrep' >>$CONFIG_STATUS
7631 1.1 tv echo >>$CONFIG_STATUS
7632 1.1 tv
7633 1.1 tv # Break up conftest.undefs because some shells have a limit on the size
7634 1.1 tv # of here documents, and old seds have small limits too (100 cmds).
7635 1.1 tv echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
7636 1.1 tv rm -f conftest.tail
7637 1.1 tv while grep . conftest.undefs >/dev/null
7638 1.1 tv do
7639 1.1 tv # Write a limited-size here document to $tmp/undefs.sed.
7640 1.1 tv echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
7641 1.1 tv # Speed up: don't consider the non `#undef'
7642 1.61.2.1 pavel echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
7643 1.1 tv # Work around the forget-to-reset-the-flag bug.
7644 1.1 tv echo 't clr' >>$CONFIG_STATUS
7645 1.1 tv echo ': clr' >>$CONFIG_STATUS
7646 1.1 tv sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
7647 1.1 tv echo 'CEOF
7648 1.1 tv sed -f $tmp/undefs.sed $tmp/in >$tmp/out
7649 1.1 tv rm -f $tmp/in
7650 1.1 tv mv $tmp/out $tmp/in
7651 1.1 tv ' >>$CONFIG_STATUS
7652 1.1 tv sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
7653 1.1 tv rm -f conftest.undefs
7654 1.1 tv mv conftest.tail conftest.undefs
7655 1.1 tv done
7656 1.1 tv rm -f conftest.undefs
7657 1.1 tv
7658 1.61.2.1 pavel cat >>$CONFIG_STATUS <<\EOF
7659 1.1 tv # Let's still pretend it is `configure' which instantiates (i.e., don't
7660 1.1 tv # use $as_me), people would be surprised to read:
7661 1.61.2.1 pavel # /* config.h. Generated automatically by config.status. */
7662 1.1 tv if test x"$ac_file" = x-; then
7663 1.61.2.1 pavel echo "/* Generated automatically by configure. */" >$tmp/config.h
7664 1.1 tv else
7665 1.61.2.1 pavel echo "/* $ac_file. Generated automatically by configure. */" >$tmp/config.h
7666 1.1 tv fi
7667 1.1 tv cat $tmp/in >>$tmp/config.h
7668 1.1 tv rm -f $tmp/in
7669 1.1 tv if test x"$ac_file" != x-; then
7670 1.61.2.1 pavel if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
7671 1.61.2.2 snj { echo "$as_me:7671: $ac_file is unchanged" >&5
7672 1.1 tv echo "$as_me: $ac_file is unchanged" >&6;}
7673 1.1 tv else
7674 1.61.2.1 pavel ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7675 1.61.2.1 pavel X"$ac_file" : 'X\(//\)[^/]' \| \
7676 1.61.2.1 pavel X"$ac_file" : 'X\(//\)$' \| \
7677 1.61.2.1 pavel X"$ac_file" : 'X\(/\)' \| \
7678 1.61.2.1 pavel . : '\(.\)' 2>/dev/null ||
7679 1.1 tv echo X"$ac_file" |
7680 1.1 tv sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7681 1.1 tv /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7682 1.1 tv /^X\(\/\/\)$/{ s//\1/; q; }
7683 1.1 tv /^X\(\/\).*/{ s//\1/; q; }
7684 1.1 tv s/.*/./; q'`
7685 1.61.2.1 pavel if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
7686 1.61.2.1 pavel { case "$ac_dir" in
7687 1.61.2.1 pavel [\\/]* | ?:[\\/]* ) as_incr_dir=;;
7688 1.61.2.1 pavel *) as_incr_dir=.;;
7689 1.61.2.1 pavel esac
7690 1.61.2.1 pavel as_dummy="$ac_dir"
7691 1.61.2.1 pavel for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
7692 1.61.2.1 pavel case $as_mkdir_dir in
7693 1.61.2.1 pavel # Skip DOS drivespec
7694 1.61.2.1 pavel ?:) as_incr_dir=$as_mkdir_dir ;;
7695 1.61.2.1 pavel *)
7696 1.61.2.1 pavel as_incr_dir=$as_incr_dir/$as_mkdir_dir
7697 1.61.2.1 pavel test -d "$as_incr_dir" || mkdir "$as_incr_dir"
7698 1.61.2.1 pavel ;;
7699 1.61.2.1 pavel esac
7700 1.61.2.1 pavel done; }
7701 1.1 tv
7702 1.61.2.1 pavel fi
7703 1.1 tv rm -f $ac_file
7704 1.1 tv mv $tmp/config.h $ac_file
7705 1.1 tv fi
7706 1.1 tv else
7707 1.1 tv cat $tmp/config.h
7708 1.1 tv rm -f $tmp/config.h
7709 1.1 tv fi
7710 1.1 tv done
7711 1.61.2.1 pavel EOF
7712 1.1 tv
7713 1.61.2.1 pavel cat >>$CONFIG_STATUS <<\EOF
7714 1.1 tv
7715 1.1 tv { (exit 0); exit 0; }
7716 1.61.2.1 pavel EOF
7717 1.1 tv chmod +x $CONFIG_STATUS
7718 1.1 tv ac_clean_files=$ac_clean_files_save
7719 1.1 tv
7720 1.1 tv # configure is writing to config.log, and then calls config.status.
7721 1.1 tv # config.status does its own redirection, appending to config.log.
7722 1.1 tv # Unfortunately, on DOS this fails, as config.log is still kept open
7723 1.1 tv # by configure, so config.status won't be able to write to it; its
7724 1.1 tv # output is simply discarded. So we exec the FD to /dev/null,
7725 1.1 tv # effectively closing config.log, so it can be properly (re)opened and
7726 1.1 tv # appended to by config.status. When coming back to configure, we
7727 1.1 tv # need to make the FD available again.
7728 1.1 tv if test "$no_create" != yes; then
7729 1.1 tv ac_cs_success=:
7730 1.1 tv exec 5>/dev/null
7731 1.61.2.1 pavel $SHELL $CONFIG_STATUS || ac_cs_success=false
7732 1.1 tv exec 5>>config.log
7733 1.1 tv # Use ||, not &&, to avoid exiting from the if with $? = 1, which
7734 1.1 tv # would make configure fail if this is the last instruction.
7735 1.1 tv $ac_cs_success || { (exit 1); exit 1; }
7736 1.1 tv fi
7737 1.1 tv
7738