configure revision 1.35 1 1.1 tv #! /bin/sh
2 1.1 tv # Guess values for system-dependent variables and create Makefiles.
3 1.1 tv # Generated by Autoconf 2.52 for libnbcompat noversion.
4 1.1 tv #
5 1.1 tv # Report bugs to <lib-bug-people (at] netbsd.org>.
6 1.1 tv #
7 1.1 tv # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
8 1.1 tv # 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.1 tv # Sed expression to map a string onto a valid variable name.
20 1.1 tv as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
21 1.1 tv
22 1.1 tv # Sed expression to map a string onto a valid CPP name.
23 1.1 tv as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
24 1.1 tv
25 1.1 tv # Be Bourne compatible
26 1.1 tv if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
27 1.1 tv emulate sh
28 1.1 tv NULLCMD=:
29 1.1 tv elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
30 1.1 tv set -o posix
31 1.1 tv fi
32 1.1 tv
33 1.1 tv # Name of the executable.
34 1.1 tv 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.1 tv as_executable_p="test -f"
61 1.1 tv
62 1.1 tv # Support unset when possible.
63 1.1 tv if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
64 1.1 tv as_unset=unset
65 1.1 tv else
66 1.1 tv as_unset=false
67 1.1 tv fi
68 1.1 tv
69 1.1 tv # NLS nuisances.
70 1.1 tv $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
71 1.1 tv $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
72 1.1 tv $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
73 1.1 tv $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
74 1.1 tv $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
75 1.1 tv $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
76 1.1 tv $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
77 1.1 tv $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.1 tv $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.1 tv 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.1 tv # Identity of this package.
185 1.1 tv PACKAGE_NAME='libnbcompat'
186 1.1 tv PACKAGE_TARNAME='libnbcompat'
187 1.1 tv PACKAGE_VERSION='noversion'
188 1.1 tv PACKAGE_STRING='libnbcompat noversion'
189 1.1 tv PACKAGE_BUGREPORT='lib-bug-people (at] netbsd.org'
190 1.1 tv
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.1 tv | --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.1 tv *) { 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.1 tv 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.1 tv *) { 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.1 tv # 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.1 tv ac_prog=$0
546 1.1 tv ac_confdir=`echo "$ac_prog" | sed 's%[\\/][^\\/][^\\/]*$%%'`
547 1.1 tv 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.1 tv { 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.1 tv { 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.1 tv 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.1 tv EOF
626 1.1 tv
627 1.1 tv cat <<EOF
628 1.1 tv Installation directories:
629 1.1 tv --prefix=PREFIX install architecture-independent files in PREFIX
630 1.1 tv [$ac_default_prefix]
631 1.1 tv --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
632 1.1 tv [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.1 tv EOF
655 1.1 tv
656 1.1 tv cat <<\EOF
657 1.1 tv 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.1 tv 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.1 tv Report bugs to <lib-bug-people (at] netbsd.org>.
679 1.1 tv 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.1 tv for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue
686 1.1 tv cd $ac_subdir
687 1.1 tv # A "../" for each directory in /$ac_subdir.
688 1.1 tv ac_dots=`echo $ac_subdir |
689 1.1 tv sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
690 1.1 tv
691 1.1 tv case $srcdir in
692 1.1 tv .) # No --srcdir option. We are building in place.
693 1.1 tv ac_sub_srcdir=$srcdir ;;
694 1.1 tv [\\/]* | ?:[\\/]* ) # Absolute path.
695 1.1 tv ac_sub_srcdir=$srcdir/$ac_subdir ;;
696 1.1 tv *) # Relative path.
697 1.1 tv ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;;
698 1.1 tv esac
699 1.1 tv
700 1.1 tv # Check for guested configure; otherwise get Cygnus style configure.
701 1.1 tv if test -f $ac_sub_srcdir/configure.gnu; then
702 1.1 tv echo
703 1.1 tv $SHELL $ac_sub_srcdir/configure.gnu --help=recursive
704 1.1 tv elif test -f $ac_sub_srcdir/configure; then
705 1.1 tv echo
706 1.1 tv $SHELL $ac_sub_srcdir/configure --help=recursive
707 1.1 tv elif test -f $ac_sub_srcdir/configure.ac ||
708 1.1 tv 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.1 tv 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.1 tv cat <<\EOF
721 1.1 tv libnbcompat configure noversion
722 1.1 tv generated by GNU Autoconf 2.52
723 1.1 tv
724 1.1 tv Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
725 1.1 tv 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.1 tv EOF
729 1.1 tv exit 0
730 1.1 tv fi
731 1.1 tv exec 5>config.log
732 1.1 tv 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.1 tv 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.1 tv EOF
742 1.1 tv {
743 1.1 tv cat <<_ASUNAME
744 1.1 tv ## ---------- ##
745 1.1 tv ## Platform. ##
746 1.1 tv ## ---------- ##
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.1 tv PATH = $PATH
766 1.1 tv
767 1.1 tv _ASUNAME
768 1.1 tv } >&5
769 1.1 tv
770 1.1 tv cat >&5 <<EOF
771 1.1 tv ## ------------ ##
772 1.1 tv ## Core tests. ##
773 1.1 tv ## ------------ ##
774 1.1 tv
775 1.1 tv 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.1 tv for ac_arg
783 1.1 tv do
784 1.1 tv case $ac_arg in
785 1.1 tv -no-create | --no-create | --no-creat | --no-crea | --no-cre \
786 1.1 tv | --no-cr | --no-c) ;;
787 1.1 tv -no-recursion | --no-recursion | --no-recursio | --no-recursi \
788 1.1 tv | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
789 1.1 tv *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
790 1.1 tv ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
791 1.1 tv ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
792 1.1 tv ac_sep=" " ;;
793 1.1 tv *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg"
794 1.1 tv ac_sep=" " ;;
795 1.1 tv esac
796 1.1 tv # 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.1 tv echo >&5
805 1.1 tv echo "## ----------------- ##" >&5
806 1.1 tv echo "## Cache variables. ##" >&5
807 1.1 tv echo "## ----------------- ##" >&5
808 1.1 tv echo >&5
809 1.1 tv # 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.1 tv "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
816 1.1 tv 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.1 tv "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
821 1.1 tv ;;
822 1.1 tv esac;
823 1.1 tv } >&5
824 1.1 tv sed "/^$/d" confdefs.h >conftest.log
825 1.1 tv if test -s conftest.log; then
826 1.1 tv echo >&5
827 1.1 tv echo "## ------------ ##" >&5
828 1.1 tv echo "## confdefs.h. ##" >&5
829 1.1 tv echo "## ------------ ##" >&5
830 1.1 tv echo >&5
831 1.1 tv cat conftest.log >&5
832 1.1 tv fi
833 1.1 tv (echo; echo) >&5
834 1.1 tv test "$ac_signal" != 0 &&
835 1.1 tv echo "$as_me: caught signal $ac_signal" >&5
836 1.1 tv echo "$as_me: exit $exit_status" >&5
837 1.1 tv 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.1 tv { 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.1 tv 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.1 tv { 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.1 tv { 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.1 tv 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.1 tv { 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.1 tv { 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.1 tv { 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.1 tv { 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.1 tv { 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.1 tv ac_cache_corrupted=:
913 1.1 tv fi;;
914 1.1 tv esac
915 1.1 tv # Pass precious variables to config.status. It doesn't matter if
916 1.1 tv # 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.1 tv ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"`
921 1.1 tv ac_configure_args="$ac_configure_args '$ac_arg'"
922 1.1 tv ;;
923 1.1 tv *) ac_configure_args="$ac_configure_args $ac_var=$ac_new_val"
924 1.1 tv ;;
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.1 tv { 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.1 tv { { 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.1 tv case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
943 1.1 tv *c*,-n*) ECHO_N= ECHO_C='
944 1.1 tv ' ECHO_T=' ' ;;
945 1.1 tv *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
946 1.1 tv *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
947 1.1 tv esac
948 1.1 tv echo "#! $SHELL" >conftest.sh
949 1.1 tv echo "exit 0" >>conftest.sh
950 1.1 tv chmod +x conftest.sh
951 1.1 tv if { (echo "$as_me:951: PATH=\".;.\"; conftest.sh") >&5
952 1.1 tv (PATH=".;."; conftest.sh) 2>&5
953 1.1 tv ac_status=$?
954 1.1 tv echo "$as_me:954: \$? = $ac_status" >&5
955 1.1 tv (exit $ac_status); }; then
956 1.1 tv ac_path_separator=';'
957 1.1 tv else
958 1.1 tv ac_path_separator=:
959 1.1 tv fi
960 1.1 tv PATH_SEPARATOR="$ac_path_separator"
961 1.1 tv rm -f conftest.sh
962 1.1 tv
963 1.1 tv ac_config_headers="$ac_config_headers config.h"
964 1.1 tv
965 1.1 tv ac_config_files="$ac_config_files defs.mk"
966 1.1 tv
967 1.20 bjh21 # Extract the first word of "sh", so it can be a program name with args.
968 1.20 bjh21 set dummy sh; ac_word=$2
969 1.20 bjh21 echo "$as_me:969: checking for $ac_word" >&5
970 1.20 bjh21 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
971 1.20 bjh21 if test "${ac_cv_path_BSHELL+set}" = set; then
972 1.20 bjh21 echo $ECHO_N "(cached) $ECHO_C" >&6
973 1.20 bjh21 else
974 1.20 bjh21 case $BSHELL in
975 1.20 bjh21 [\\/]* | ?:[\\/]*)
976 1.20 bjh21 ac_cv_path_BSHELL="$BSHELL" # Let the user override the test with a path.
977 1.20 bjh21 ;;
978 1.20 bjh21 *)
979 1.20 bjh21 ac_save_IFS=$IFS; IFS=$ac_path_separator
980 1.20 bjh21 ac_dummy="$PATH"
981 1.20 bjh21 for ac_dir in $ac_dummy; do
982 1.20 bjh21 IFS=$ac_save_IFS
983 1.20 bjh21 test -z "$ac_dir" && ac_dir=.
984 1.20 bjh21 if $as_executable_p "$ac_dir/$ac_word"; then
985 1.20 bjh21 ac_cv_path_BSHELL="$ac_dir/$ac_word"
986 1.20 bjh21 echo "$as_me:986: found $ac_dir/$ac_word" >&5
987 1.20 bjh21 break
988 1.20 bjh21 fi
989 1.20 bjh21 done
990 1.20 bjh21
991 1.20 bjh21 ;;
992 1.20 bjh21 esac
993 1.20 bjh21 fi
994 1.20 bjh21 BSHELL=$ac_cv_path_BSHELL
995 1.20 bjh21
996 1.20 bjh21 if test -n "$BSHELL"; then
997 1.20 bjh21 echo "$as_me:997: result: $BSHELL" >&5
998 1.20 bjh21 echo "${ECHO_T}$BSHELL" >&6
999 1.20 bjh21 else
1000 1.20 bjh21 echo "$as_me:1000: result: no" >&5
1001 1.20 bjh21 echo "${ECHO_T}no" >&6
1002 1.20 bjh21 fi
1003 1.20 bjh21
1004 1.20 bjh21 if test x"$BSHELL" = x; then
1005 1.20 bjh21 { { echo "$as_me:1005: error: sh must be somewhere on \$PATH" >&5
1006 1.20 bjh21 echo "$as_me: error: sh must be somewhere on \$PATH" >&2;}
1007 1.20 bjh21 { (exit 1); exit 1; }; }
1008 1.20 bjh21 fi
1009 1.20 bjh21 cat >>confdefs.h <<EOF
1010 1.20 bjh21 #define PATH_BSHELL "$BSHELL"
1011 1.20 bjh21 EOF
1012 1.20 bjh21
1013 1.1 tv ac_ext=c
1014 1.1 tv ac_cpp='$CPP $CPPFLAGS'
1015 1.1 tv ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1016 1.1 tv ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1017 1.1 tv ac_compiler_gnu=$ac_cv_c_compiler_gnu
1018 1.1 tv if test -n "$ac_tool_prefix"; then
1019 1.1 tv # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1020 1.1 tv set dummy ${ac_tool_prefix}gcc; ac_word=$2
1021 1.20 bjh21 echo "$as_me:1021: checking for $ac_word" >&5
1022 1.1 tv echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1023 1.1 tv if test "${ac_cv_prog_CC+set}" = set; then
1024 1.1 tv echo $ECHO_N "(cached) $ECHO_C" >&6
1025 1.1 tv else
1026 1.1 tv if test -n "$CC"; then
1027 1.1 tv ac_cv_prog_CC="$CC" # Let the user override the test.
1028 1.1 tv else
1029 1.1 tv ac_save_IFS=$IFS; IFS=$ac_path_separator
1030 1.1 tv ac_dummy="$PATH"
1031 1.1 tv for ac_dir in $ac_dummy; do
1032 1.1 tv IFS=$ac_save_IFS
1033 1.1 tv test -z "$ac_dir" && ac_dir=.
1034 1.1 tv $as_executable_p "$ac_dir/$ac_word" || continue
1035 1.1 tv ac_cv_prog_CC="${ac_tool_prefix}gcc"
1036 1.20 bjh21 echo "$as_me:1036: found $ac_dir/$ac_word" >&5
1037 1.1 tv break
1038 1.1 tv done
1039 1.1 tv
1040 1.1 tv fi
1041 1.1 tv fi
1042 1.1 tv CC=$ac_cv_prog_CC
1043 1.1 tv if test -n "$CC"; then
1044 1.20 bjh21 echo "$as_me:1044: result: $CC" >&5
1045 1.1 tv echo "${ECHO_T}$CC" >&6
1046 1.1 tv else
1047 1.20 bjh21 echo "$as_me:1047: result: no" >&5
1048 1.1 tv echo "${ECHO_T}no" >&6
1049 1.1 tv fi
1050 1.1 tv
1051 1.1 tv fi
1052 1.1 tv if test -z "$ac_cv_prog_CC"; then
1053 1.1 tv ac_ct_CC=$CC
1054 1.1 tv # Extract the first word of "gcc", so it can be a program name with args.
1055 1.1 tv set dummy gcc; ac_word=$2
1056 1.20 bjh21 echo "$as_me:1056: checking for $ac_word" >&5
1057 1.1 tv echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1058 1.1 tv if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1059 1.1 tv echo $ECHO_N "(cached) $ECHO_C" >&6
1060 1.1 tv else
1061 1.1 tv if test -n "$ac_ct_CC"; then
1062 1.1 tv ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1063 1.1 tv else
1064 1.1 tv ac_save_IFS=$IFS; IFS=$ac_path_separator
1065 1.1 tv ac_dummy="$PATH"
1066 1.1 tv for ac_dir in $ac_dummy; do
1067 1.1 tv IFS=$ac_save_IFS
1068 1.1 tv test -z "$ac_dir" && ac_dir=.
1069 1.1 tv $as_executable_p "$ac_dir/$ac_word" || continue
1070 1.1 tv ac_cv_prog_ac_ct_CC="gcc"
1071 1.20 bjh21 echo "$as_me:1071: found $ac_dir/$ac_word" >&5
1072 1.1 tv break
1073 1.1 tv done
1074 1.1 tv
1075 1.1 tv fi
1076 1.1 tv fi
1077 1.1 tv ac_ct_CC=$ac_cv_prog_ac_ct_CC
1078 1.1 tv if test -n "$ac_ct_CC"; then
1079 1.20 bjh21 echo "$as_me:1079: result: $ac_ct_CC" >&5
1080 1.1 tv echo "${ECHO_T}$ac_ct_CC" >&6
1081 1.1 tv else
1082 1.20 bjh21 echo "$as_me:1082: result: no" >&5
1083 1.1 tv echo "${ECHO_T}no" >&6
1084 1.1 tv fi
1085 1.1 tv
1086 1.1 tv CC=$ac_ct_CC
1087 1.1 tv else
1088 1.1 tv CC="$ac_cv_prog_CC"
1089 1.1 tv fi
1090 1.1 tv
1091 1.1 tv if test -z "$CC"; then
1092 1.1 tv if test -n "$ac_tool_prefix"; then
1093 1.1 tv # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1094 1.1 tv set dummy ${ac_tool_prefix}cc; ac_word=$2
1095 1.20 bjh21 echo "$as_me:1095: checking for $ac_word" >&5
1096 1.1 tv echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1097 1.1 tv if test "${ac_cv_prog_CC+set}" = set; then
1098 1.1 tv echo $ECHO_N "(cached) $ECHO_C" >&6
1099 1.1 tv else
1100 1.1 tv if test -n "$CC"; then
1101 1.1 tv ac_cv_prog_CC="$CC" # Let the user override the test.
1102 1.1 tv else
1103 1.1 tv ac_save_IFS=$IFS; IFS=$ac_path_separator
1104 1.1 tv ac_dummy="$PATH"
1105 1.1 tv for ac_dir in $ac_dummy; do
1106 1.1 tv IFS=$ac_save_IFS
1107 1.1 tv test -z "$ac_dir" && ac_dir=.
1108 1.1 tv $as_executable_p "$ac_dir/$ac_word" || continue
1109 1.1 tv ac_cv_prog_CC="${ac_tool_prefix}cc"
1110 1.20 bjh21 echo "$as_me:1110: found $ac_dir/$ac_word" >&5
1111 1.1 tv break
1112 1.1 tv done
1113 1.1 tv
1114 1.1 tv fi
1115 1.1 tv fi
1116 1.1 tv CC=$ac_cv_prog_CC
1117 1.1 tv if test -n "$CC"; then
1118 1.20 bjh21 echo "$as_me:1118: result: $CC" >&5
1119 1.1 tv echo "${ECHO_T}$CC" >&6
1120 1.1 tv else
1121 1.20 bjh21 echo "$as_me:1121: result: no" >&5
1122 1.1 tv echo "${ECHO_T}no" >&6
1123 1.1 tv fi
1124 1.1 tv
1125 1.1 tv fi
1126 1.1 tv if test -z "$ac_cv_prog_CC"; then
1127 1.1 tv ac_ct_CC=$CC
1128 1.1 tv # Extract the first word of "cc", so it can be a program name with args.
1129 1.1 tv set dummy cc; ac_word=$2
1130 1.20 bjh21 echo "$as_me:1130: checking for $ac_word" >&5
1131 1.1 tv echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1132 1.1 tv if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1133 1.1 tv echo $ECHO_N "(cached) $ECHO_C" >&6
1134 1.1 tv else
1135 1.1 tv if test -n "$ac_ct_CC"; then
1136 1.1 tv ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1137 1.1 tv else
1138 1.1 tv ac_save_IFS=$IFS; IFS=$ac_path_separator
1139 1.1 tv ac_dummy="$PATH"
1140 1.1 tv for ac_dir in $ac_dummy; do
1141 1.1 tv IFS=$ac_save_IFS
1142 1.1 tv test -z "$ac_dir" && ac_dir=.
1143 1.1 tv $as_executable_p "$ac_dir/$ac_word" || continue
1144 1.1 tv ac_cv_prog_ac_ct_CC="cc"
1145 1.20 bjh21 echo "$as_me:1145: found $ac_dir/$ac_word" >&5
1146 1.1 tv break
1147 1.1 tv done
1148 1.1 tv
1149 1.1 tv fi
1150 1.1 tv fi
1151 1.1 tv ac_ct_CC=$ac_cv_prog_ac_ct_CC
1152 1.1 tv if test -n "$ac_ct_CC"; then
1153 1.20 bjh21 echo "$as_me:1153: result: $ac_ct_CC" >&5
1154 1.1 tv echo "${ECHO_T}$ac_ct_CC" >&6
1155 1.1 tv else
1156 1.20 bjh21 echo "$as_me:1156: result: no" >&5
1157 1.1 tv echo "${ECHO_T}no" >&6
1158 1.1 tv fi
1159 1.1 tv
1160 1.1 tv CC=$ac_ct_CC
1161 1.1 tv else
1162 1.1 tv CC="$ac_cv_prog_CC"
1163 1.1 tv fi
1164 1.1 tv
1165 1.1 tv fi
1166 1.1 tv if test -z "$CC"; then
1167 1.1 tv # Extract the first word of "cc", so it can be a program name with args.
1168 1.1 tv set dummy cc; ac_word=$2
1169 1.20 bjh21 echo "$as_me:1169: checking for $ac_word" >&5
1170 1.1 tv echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1171 1.1 tv if test "${ac_cv_prog_CC+set}" = set; then
1172 1.1 tv echo $ECHO_N "(cached) $ECHO_C" >&6
1173 1.1 tv else
1174 1.1 tv if test -n "$CC"; then
1175 1.1 tv ac_cv_prog_CC="$CC" # Let the user override the test.
1176 1.1 tv else
1177 1.1 tv ac_prog_rejected=no
1178 1.1 tv ac_save_IFS=$IFS; IFS=$ac_path_separator
1179 1.1 tv ac_dummy="$PATH"
1180 1.1 tv for ac_dir in $ac_dummy; do
1181 1.1 tv IFS=$ac_save_IFS
1182 1.1 tv test -z "$ac_dir" && ac_dir=.
1183 1.1 tv $as_executable_p "$ac_dir/$ac_word" || continue
1184 1.1 tv if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1185 1.1 tv ac_prog_rejected=yes
1186 1.1 tv continue
1187 1.1 tv fi
1188 1.1 tv ac_cv_prog_CC="cc"
1189 1.20 bjh21 echo "$as_me:1189: found $ac_dir/$ac_word" >&5
1190 1.1 tv break
1191 1.1 tv done
1192 1.1 tv
1193 1.1 tv if test $ac_prog_rejected = yes; then
1194 1.1 tv # We found a bogon in the path, so make sure we never use it.
1195 1.1 tv set dummy $ac_cv_prog_CC
1196 1.1 tv shift
1197 1.1 tv if test $# != 0; then
1198 1.1 tv # We chose a different compiler from the bogus one.
1199 1.1 tv # However, it has the same basename, so the bogon will be chosen
1200 1.1 tv # first if we set CC to just the basename; use the full file name.
1201 1.1 tv shift
1202 1.1 tv set dummy "$ac_dir/$ac_word" ${1+"$@"}
1203 1.1 tv shift
1204 1.1 tv ac_cv_prog_CC="$@"
1205 1.1 tv fi
1206 1.1 tv fi
1207 1.1 tv fi
1208 1.1 tv fi
1209 1.1 tv CC=$ac_cv_prog_CC
1210 1.1 tv if test -n "$CC"; then
1211 1.20 bjh21 echo "$as_me:1211: result: $CC" >&5
1212 1.1 tv echo "${ECHO_T}$CC" >&6
1213 1.1 tv else
1214 1.20 bjh21 echo "$as_me:1214: result: no" >&5
1215 1.1 tv echo "${ECHO_T}no" >&6
1216 1.1 tv fi
1217 1.1 tv
1218 1.1 tv fi
1219 1.1 tv if test -z "$CC"; then
1220 1.1 tv if test -n "$ac_tool_prefix"; then
1221 1.1 tv for ac_prog in cl
1222 1.1 tv do
1223 1.1 tv # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1224 1.1 tv set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1225 1.20 bjh21 echo "$as_me:1225: checking for $ac_word" >&5
1226 1.1 tv echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1227 1.1 tv if test "${ac_cv_prog_CC+set}" = set; then
1228 1.1 tv echo $ECHO_N "(cached) $ECHO_C" >&6
1229 1.1 tv else
1230 1.1 tv if test -n "$CC"; then
1231 1.1 tv ac_cv_prog_CC="$CC" # Let the user override the test.
1232 1.1 tv else
1233 1.1 tv ac_save_IFS=$IFS; IFS=$ac_path_separator
1234 1.1 tv ac_dummy="$PATH"
1235 1.1 tv for ac_dir in $ac_dummy; do
1236 1.1 tv IFS=$ac_save_IFS
1237 1.1 tv test -z "$ac_dir" && ac_dir=.
1238 1.1 tv $as_executable_p "$ac_dir/$ac_word" || continue
1239 1.1 tv ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1240 1.20 bjh21 echo "$as_me:1240: found $ac_dir/$ac_word" >&5
1241 1.1 tv break
1242 1.1 tv done
1243 1.1 tv
1244 1.1 tv fi
1245 1.1 tv fi
1246 1.1 tv CC=$ac_cv_prog_CC
1247 1.1 tv if test -n "$CC"; then
1248 1.20 bjh21 echo "$as_me:1248: result: $CC" >&5
1249 1.1 tv echo "${ECHO_T}$CC" >&6
1250 1.1 tv else
1251 1.20 bjh21 echo "$as_me:1251: result: no" >&5
1252 1.1 tv echo "${ECHO_T}no" >&6
1253 1.1 tv fi
1254 1.1 tv
1255 1.1 tv test -n "$CC" && break
1256 1.1 tv done
1257 1.1 tv fi
1258 1.1 tv if test -z "$CC"; then
1259 1.1 tv ac_ct_CC=$CC
1260 1.1 tv for ac_prog in cl
1261 1.1 tv do
1262 1.1 tv # Extract the first word of "$ac_prog", so it can be a program name with args.
1263 1.1 tv set dummy $ac_prog; ac_word=$2
1264 1.20 bjh21 echo "$as_me:1264: checking for $ac_word" >&5
1265 1.1 tv echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1266 1.1 tv if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1267 1.1 tv echo $ECHO_N "(cached) $ECHO_C" >&6
1268 1.1 tv else
1269 1.1 tv if test -n "$ac_ct_CC"; then
1270 1.1 tv ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1271 1.1 tv else
1272 1.1 tv ac_save_IFS=$IFS; IFS=$ac_path_separator
1273 1.1 tv ac_dummy="$PATH"
1274 1.1 tv for ac_dir in $ac_dummy; do
1275 1.1 tv IFS=$ac_save_IFS
1276 1.1 tv test -z "$ac_dir" && ac_dir=.
1277 1.1 tv $as_executable_p "$ac_dir/$ac_word" || continue
1278 1.1 tv ac_cv_prog_ac_ct_CC="$ac_prog"
1279 1.20 bjh21 echo "$as_me:1279: found $ac_dir/$ac_word" >&5
1280 1.1 tv break
1281 1.1 tv done
1282 1.1 tv
1283 1.1 tv fi
1284 1.1 tv fi
1285 1.1 tv ac_ct_CC=$ac_cv_prog_ac_ct_CC
1286 1.1 tv if test -n "$ac_ct_CC"; then
1287 1.20 bjh21 echo "$as_me:1287: result: $ac_ct_CC" >&5
1288 1.1 tv echo "${ECHO_T}$ac_ct_CC" >&6
1289 1.1 tv else
1290 1.20 bjh21 echo "$as_me:1290: result: no" >&5
1291 1.1 tv echo "${ECHO_T}no" >&6
1292 1.1 tv fi
1293 1.1 tv
1294 1.1 tv test -n "$ac_ct_CC" && break
1295 1.1 tv done
1296 1.1 tv
1297 1.1 tv CC=$ac_ct_CC
1298 1.1 tv fi
1299 1.1 tv
1300 1.1 tv fi
1301 1.1 tv
1302 1.20 bjh21 test -z "$CC" && { { echo "$as_me:1302: error: no acceptable cc found in \$PATH" >&5
1303 1.1 tv echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
1304 1.1 tv { (exit 1); exit 1; }; }
1305 1.1 tv
1306 1.1 tv # Provide some information about the compiler.
1307 1.20 bjh21 echo "$as_me:1307:" \
1308 1.1 tv "checking for C compiler version" >&5
1309 1.1 tv ac_compiler=`set X $ac_compile; echo $2`
1310 1.20 bjh21 { (eval echo "$as_me:1310: \"$ac_compiler --version </dev/null >&5\"") >&5
1311 1.1 tv (eval $ac_compiler --version </dev/null >&5) 2>&5
1312 1.1 tv ac_status=$?
1313 1.20 bjh21 echo "$as_me:1313: \$? = $ac_status" >&5
1314 1.1 tv (exit $ac_status); }
1315 1.20 bjh21 { (eval echo "$as_me:1315: \"$ac_compiler -v </dev/null >&5\"") >&5
1316 1.1 tv (eval $ac_compiler -v </dev/null >&5) 2>&5
1317 1.1 tv ac_status=$?
1318 1.20 bjh21 echo "$as_me:1318: \$? = $ac_status" >&5
1319 1.1 tv (exit $ac_status); }
1320 1.20 bjh21 { (eval echo "$as_me:1320: \"$ac_compiler -V </dev/null >&5\"") >&5
1321 1.1 tv (eval $ac_compiler -V </dev/null >&5) 2>&5
1322 1.1 tv ac_status=$?
1323 1.20 bjh21 echo "$as_me:1323: \$? = $ac_status" >&5
1324 1.1 tv (exit $ac_status); }
1325 1.1 tv
1326 1.1 tv cat >conftest.$ac_ext <<_ACEOF
1327 1.20 bjh21 #line 1327 "configure"
1328 1.1 tv #include "confdefs.h"
1329 1.1 tv
1330 1.1 tv int
1331 1.1 tv main ()
1332 1.1 tv {
1333 1.1 tv
1334 1.1 tv ;
1335 1.1 tv return 0;
1336 1.1 tv }
1337 1.1 tv _ACEOF
1338 1.1 tv ac_clean_files_save=$ac_clean_files
1339 1.1 tv ac_clean_files="$ac_clean_files a.out a.exe"
1340 1.1 tv # Try to create an executable without -o first, disregard a.out.
1341 1.1 tv # It will help us diagnose broken compilers, and finding out an intuition
1342 1.1 tv # of exeext.
1343 1.20 bjh21 echo "$as_me:1343: checking for C compiler default output" >&5
1344 1.1 tv echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1345 1.1 tv ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1346 1.20 bjh21 if { (eval echo "$as_me:1346: \"$ac_link_default\"") >&5
1347 1.1 tv (eval $ac_link_default) 2>&5
1348 1.1 tv ac_status=$?
1349 1.20 bjh21 echo "$as_me:1349: \$? = $ac_status" >&5
1350 1.1 tv (exit $ac_status); }; then
1351 1.1 tv # Find the output, starting from the most likely. This scheme is
1352 1.1 tv # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1353 1.1 tv # resort.
1354 1.1 tv for ac_file in `ls a.exe conftest.exe 2>/dev/null;
1355 1.1 tv ls a.out conftest 2>/dev/null;
1356 1.1 tv ls a.* conftest.* 2>/dev/null`; do
1357 1.1 tv case $ac_file in
1358 1.1 tv *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
1359 1.1 tv a.out ) # We found the default executable, but exeext='' is most
1360 1.1 tv # certainly right.
1361 1.1 tv break;;
1362 1.1 tv *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1363 1.1 tv # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1364 1.1 tv export ac_cv_exeext
1365 1.1 tv break;;
1366 1.1 tv * ) break;;
1367 1.1 tv esac
1368 1.1 tv done
1369 1.1 tv else
1370 1.1 tv echo "$as_me: failed program was:" >&5
1371 1.1 tv cat conftest.$ac_ext >&5
1372 1.20 bjh21 { { echo "$as_me:1372: error: C compiler cannot create executables" >&5
1373 1.1 tv echo "$as_me: error: C compiler cannot create executables" >&2;}
1374 1.1 tv { (exit 77); exit 77; }; }
1375 1.1 tv fi
1376 1.1 tv
1377 1.1 tv ac_exeext=$ac_cv_exeext
1378 1.20 bjh21 echo "$as_me:1378: result: $ac_file" >&5
1379 1.1 tv echo "${ECHO_T}$ac_file" >&6
1380 1.1 tv
1381 1.1 tv # Check the compiler produces executables we can run. If not, either
1382 1.1 tv # the compiler is broken, or we cross compile.
1383 1.20 bjh21 echo "$as_me:1383: checking whether the C compiler works" >&5
1384 1.1 tv echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1385 1.1 tv # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1386 1.1 tv # If not cross compiling, check that we can run a simple program.
1387 1.1 tv if test "$cross_compiling" != yes; then
1388 1.1 tv if { ac_try='./$ac_file'
1389 1.20 bjh21 { (eval echo "$as_me:1389: \"$ac_try\"") >&5
1390 1.1 tv (eval $ac_try) 2>&5
1391 1.1 tv ac_status=$?
1392 1.20 bjh21 echo "$as_me:1392: \$? = $ac_status" >&5
1393 1.1 tv (exit $ac_status); }; }; then
1394 1.1 tv cross_compiling=no
1395 1.1 tv else
1396 1.1 tv if test "$cross_compiling" = maybe; then
1397 1.1 tv cross_compiling=yes
1398 1.1 tv else
1399 1.20 bjh21 { { echo "$as_me:1399: error: cannot run C compiled programs.
1400 1.1 tv If you meant to cross compile, use \`--host'." >&5
1401 1.1 tv echo "$as_me: error: cannot run C compiled programs.
1402 1.1 tv If you meant to cross compile, use \`--host'." >&2;}
1403 1.1 tv { (exit 1); exit 1; }; }
1404 1.1 tv fi
1405 1.1 tv fi
1406 1.1 tv fi
1407 1.20 bjh21 echo "$as_me:1407: result: yes" >&5
1408 1.1 tv echo "${ECHO_T}yes" >&6
1409 1.1 tv
1410 1.1 tv rm -f a.out a.exe conftest$ac_cv_exeext
1411 1.1 tv ac_clean_files=$ac_clean_files_save
1412 1.1 tv # Check the compiler produces executables we can run. If not, either
1413 1.1 tv # the compiler is broken, or we cross compile.
1414 1.20 bjh21 echo "$as_me:1414: checking whether we are cross compiling" >&5
1415 1.1 tv echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1416 1.20 bjh21 echo "$as_me:1416: result: $cross_compiling" >&5
1417 1.1 tv echo "${ECHO_T}$cross_compiling" >&6
1418 1.1 tv
1419 1.20 bjh21 echo "$as_me:1419: checking for executable suffix" >&5
1420 1.1 tv echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
1421 1.20 bjh21 if { (eval echo "$as_me:1421: \"$ac_link\"") >&5
1422 1.1 tv (eval $ac_link) 2>&5
1423 1.1 tv ac_status=$?
1424 1.20 bjh21 echo "$as_me:1424: \$? = $ac_status" >&5
1425 1.1 tv (exit $ac_status); }; then
1426 1.1 tv # If both `conftest.exe' and `conftest' are `present' (well, observable)
1427 1.1 tv # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1428 1.1 tv # work properly (i.e., refer to `conftest.exe'), while it won't with
1429 1.1 tv # `rm'.
1430 1.1 tv for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
1431 1.1 tv case $ac_file in
1432 1.1 tv *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
1433 1.1 tv *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1434 1.1 tv export ac_cv_exeext
1435 1.1 tv break;;
1436 1.1 tv * ) break;;
1437 1.1 tv esac
1438 1.1 tv done
1439 1.1 tv else
1440 1.20 bjh21 { { echo "$as_me:1440: error: cannot compute EXEEXT: cannot compile and link" >&5
1441 1.1 tv echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;}
1442 1.1 tv { (exit 1); exit 1; }; }
1443 1.1 tv fi
1444 1.1 tv
1445 1.1 tv rm -f conftest$ac_cv_exeext
1446 1.20 bjh21 echo "$as_me:1446: result: $ac_cv_exeext" >&5
1447 1.1 tv echo "${ECHO_T}$ac_cv_exeext" >&6
1448 1.1 tv
1449 1.1 tv rm -f conftest.$ac_ext
1450 1.1 tv EXEEXT=$ac_cv_exeext
1451 1.1 tv ac_exeext=$EXEEXT
1452 1.20 bjh21 echo "$as_me:1452: checking for object suffix" >&5
1453 1.1 tv echo $ECHO_N "checking for object suffix... $ECHO_C" >&6
1454 1.1 tv if test "${ac_cv_objext+set}" = set; then
1455 1.1 tv echo $ECHO_N "(cached) $ECHO_C" >&6
1456 1.1 tv else
1457 1.1 tv cat >conftest.$ac_ext <<_ACEOF
1458 1.20 bjh21 #line 1458 "configure"
1459 1.1 tv #include "confdefs.h"
1460 1.1 tv
1461 1.1 tv int
1462 1.1 tv main ()
1463 1.1 tv {
1464 1.1 tv
1465 1.1 tv ;
1466 1.1 tv return 0;
1467 1.1 tv }
1468 1.1 tv _ACEOF
1469 1.1 tv rm -f conftest.o conftest.obj
1470 1.20 bjh21 if { (eval echo "$as_me:1470: \"$ac_compile\"") >&5
1471 1.1 tv (eval $ac_compile) 2>&5
1472 1.1 tv ac_status=$?
1473 1.20 bjh21 echo "$as_me:1473: \$? = $ac_status" >&5
1474 1.1 tv (exit $ac_status); }; then
1475 1.1 tv for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1476 1.1 tv case $ac_file in
1477 1.1 tv *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
1478 1.1 tv *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1479 1.1 tv break;;
1480 1.1 tv esac
1481 1.1 tv done
1482 1.1 tv else
1483 1.1 tv echo "$as_me: failed program was:" >&5
1484 1.1 tv cat conftest.$ac_ext >&5
1485 1.20 bjh21 { { echo "$as_me:1485: error: cannot compute OBJEXT: cannot compile" >&5
1486 1.1 tv echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;}
1487 1.1 tv { (exit 1); exit 1; }; }
1488 1.1 tv fi
1489 1.1 tv
1490 1.1 tv rm -f conftest.$ac_cv_objext conftest.$ac_ext
1491 1.1 tv fi
1492 1.20 bjh21 echo "$as_me:1492: result: $ac_cv_objext" >&5
1493 1.1 tv echo "${ECHO_T}$ac_cv_objext" >&6
1494 1.1 tv OBJEXT=$ac_cv_objext
1495 1.1 tv ac_objext=$OBJEXT
1496 1.20 bjh21 echo "$as_me:1496: checking whether we are using the GNU C compiler" >&5
1497 1.1 tv echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1498 1.1 tv if test "${ac_cv_c_compiler_gnu+set}" = set; then
1499 1.1 tv echo $ECHO_N "(cached) $ECHO_C" >&6
1500 1.1 tv else
1501 1.1 tv cat >conftest.$ac_ext <<_ACEOF
1502 1.20 bjh21 #line 1502 "configure"
1503 1.1 tv #include "confdefs.h"
1504 1.1 tv
1505 1.1 tv int
1506 1.1 tv main ()
1507 1.1 tv {
1508 1.1 tv #ifndef __GNUC__
1509 1.1 tv choke me
1510 1.1 tv #endif
1511 1.1 tv
1512 1.1 tv ;
1513 1.1 tv return 0;
1514 1.1 tv }
1515 1.1 tv _ACEOF
1516 1.1 tv rm -f conftest.$ac_objext
1517 1.20 bjh21 if { (eval echo "$as_me:1517: \"$ac_compile\"") >&5
1518 1.1 tv (eval $ac_compile) 2>&5
1519 1.1 tv ac_status=$?
1520 1.20 bjh21 echo "$as_me:1520: \$? = $ac_status" >&5
1521 1.1 tv (exit $ac_status); } &&
1522 1.1 tv { ac_try='test -s conftest.$ac_objext'
1523 1.20 bjh21 { (eval echo "$as_me:1523: \"$ac_try\"") >&5
1524 1.1 tv (eval $ac_try) 2>&5
1525 1.1 tv ac_status=$?
1526 1.20 bjh21 echo "$as_me:1526: \$? = $ac_status" >&5
1527 1.1 tv (exit $ac_status); }; }; then
1528 1.1 tv ac_compiler_gnu=yes
1529 1.1 tv else
1530 1.1 tv echo "$as_me: failed program was:" >&5
1531 1.1 tv cat conftest.$ac_ext >&5
1532 1.1 tv ac_compiler_gnu=no
1533 1.1 tv fi
1534 1.1 tv rm -f conftest.$ac_objext conftest.$ac_ext
1535 1.1 tv ac_cv_c_compiler_gnu=$ac_compiler_gnu
1536 1.1 tv
1537 1.1 tv fi
1538 1.20 bjh21 echo "$as_me:1538: result: $ac_cv_c_compiler_gnu" >&5
1539 1.1 tv echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1540 1.1 tv GCC=`test $ac_compiler_gnu = yes && echo yes`
1541 1.1 tv ac_test_CFLAGS=${CFLAGS+set}
1542 1.1 tv ac_save_CFLAGS=$CFLAGS
1543 1.1 tv CFLAGS="-g"
1544 1.20 bjh21 echo "$as_me:1544: checking whether $CC accepts -g" >&5
1545 1.1 tv echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1546 1.1 tv if test "${ac_cv_prog_cc_g+set}" = set; then
1547 1.1 tv echo $ECHO_N "(cached) $ECHO_C" >&6
1548 1.1 tv else
1549 1.1 tv cat >conftest.$ac_ext <<_ACEOF
1550 1.20 bjh21 #line 1550 "configure"
1551 1.1 tv #include "confdefs.h"
1552 1.1 tv
1553 1.1 tv int
1554 1.1 tv main ()
1555 1.1 tv {
1556 1.1 tv
1557 1.1 tv ;
1558 1.1 tv return 0;
1559 1.1 tv }
1560 1.1 tv _ACEOF
1561 1.1 tv rm -f conftest.$ac_objext
1562 1.20 bjh21 if { (eval echo "$as_me:1562: \"$ac_compile\"") >&5
1563 1.1 tv (eval $ac_compile) 2>&5
1564 1.1 tv ac_status=$?
1565 1.20 bjh21 echo "$as_me:1565: \$? = $ac_status" >&5
1566 1.1 tv (exit $ac_status); } &&
1567 1.1 tv { ac_try='test -s conftest.$ac_objext'
1568 1.20 bjh21 { (eval echo "$as_me:1568: \"$ac_try\"") >&5
1569 1.1 tv (eval $ac_try) 2>&5
1570 1.1 tv ac_status=$?
1571 1.20 bjh21 echo "$as_me:1571: \$? = $ac_status" >&5
1572 1.1 tv (exit $ac_status); }; }; then
1573 1.1 tv ac_cv_prog_cc_g=yes
1574 1.1 tv else
1575 1.1 tv echo "$as_me: failed program was:" >&5
1576 1.1 tv cat conftest.$ac_ext >&5
1577 1.1 tv ac_cv_prog_cc_g=no
1578 1.1 tv fi
1579 1.1 tv rm -f conftest.$ac_objext conftest.$ac_ext
1580 1.1 tv fi
1581 1.20 bjh21 echo "$as_me:1581: result: $ac_cv_prog_cc_g" >&5
1582 1.1 tv echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1583 1.1 tv if test "$ac_test_CFLAGS" = set; then
1584 1.1 tv CFLAGS=$ac_save_CFLAGS
1585 1.1 tv elif test $ac_cv_prog_cc_g = yes; then
1586 1.1 tv if test "$GCC" = yes; then
1587 1.1 tv CFLAGS="-g -O2"
1588 1.1 tv else
1589 1.1 tv CFLAGS="-g"
1590 1.1 tv fi
1591 1.1 tv else
1592 1.1 tv if test "$GCC" = yes; then
1593 1.1 tv CFLAGS="-O2"
1594 1.1 tv else
1595 1.1 tv CFLAGS=
1596 1.1 tv fi
1597 1.1 tv fi
1598 1.1 tv # Some people use a C++ compiler to compile C. Since we use `exit',
1599 1.1 tv # in C++ we need to declare it. In case someone uses the same compiler
1600 1.1 tv # for both compiling C and C++ we need to have the C++ compiler decide
1601 1.1 tv # the declaration of exit, since it's the most demanding environment.
1602 1.1 tv cat >conftest.$ac_ext <<_ACEOF
1603 1.1 tv #ifndef __cplusplus
1604 1.1 tv choke me
1605 1.1 tv #endif
1606 1.1 tv _ACEOF
1607 1.1 tv rm -f conftest.$ac_objext
1608 1.20 bjh21 if { (eval echo "$as_me:1608: \"$ac_compile\"") >&5
1609 1.1 tv (eval $ac_compile) 2>&5
1610 1.1 tv ac_status=$?
1611 1.20 bjh21 echo "$as_me:1611: \$? = $ac_status" >&5
1612 1.1 tv (exit $ac_status); } &&
1613 1.1 tv { ac_try='test -s conftest.$ac_objext'
1614 1.20 bjh21 { (eval echo "$as_me:1614: \"$ac_try\"") >&5
1615 1.1 tv (eval $ac_try) 2>&5
1616 1.1 tv ac_status=$?
1617 1.20 bjh21 echo "$as_me:1617: \$? = $ac_status" >&5
1618 1.1 tv (exit $ac_status); }; }; then
1619 1.1 tv for ac_declaration in \
1620 1.1 tv ''\
1621 1.1 tv '#include <stdlib.h>' \
1622 1.1 tv 'extern "C" void std::exit (int) throw (); using std::exit;' \
1623 1.1 tv 'extern "C" void std::exit (int); using std::exit;' \
1624 1.1 tv 'extern "C" void exit (int) throw ();' \
1625 1.1 tv 'extern "C" void exit (int);' \
1626 1.1 tv 'void exit (int);'
1627 1.1 tv do
1628 1.1 tv cat >conftest.$ac_ext <<_ACEOF
1629 1.20 bjh21 #line 1629 "configure"
1630 1.1 tv #include "confdefs.h"
1631 1.1 tv #include <stdlib.h>
1632 1.1 tv $ac_declaration
1633 1.1 tv int
1634 1.1 tv main ()
1635 1.1 tv {
1636 1.1 tv exit (42);
1637 1.1 tv ;
1638 1.1 tv return 0;
1639 1.1 tv }
1640 1.1 tv _ACEOF
1641 1.1 tv rm -f conftest.$ac_objext
1642 1.20 bjh21 if { (eval echo "$as_me:1642: \"$ac_compile\"") >&5
1643 1.1 tv (eval $ac_compile) 2>&5
1644 1.1 tv ac_status=$?
1645 1.20 bjh21 echo "$as_me:1645: \$? = $ac_status" >&5
1646 1.1 tv (exit $ac_status); } &&
1647 1.1 tv { ac_try='test -s conftest.$ac_objext'
1648 1.20 bjh21 { (eval echo "$as_me:1648: \"$ac_try\"") >&5
1649 1.1 tv (eval $ac_try) 2>&5
1650 1.1 tv ac_status=$?
1651 1.20 bjh21 echo "$as_me:1651: \$? = $ac_status" >&5
1652 1.1 tv (exit $ac_status); }; }; then
1653 1.1 tv :
1654 1.1 tv else
1655 1.1 tv echo "$as_me: failed program was:" >&5
1656 1.1 tv cat conftest.$ac_ext >&5
1657 1.1 tv continue
1658 1.1 tv fi
1659 1.1 tv rm -f conftest.$ac_objext conftest.$ac_ext
1660 1.1 tv cat >conftest.$ac_ext <<_ACEOF
1661 1.20 bjh21 #line 1661 "configure"
1662 1.1 tv #include "confdefs.h"
1663 1.1 tv $ac_declaration
1664 1.1 tv int
1665 1.1 tv main ()
1666 1.1 tv {
1667 1.1 tv exit (42);
1668 1.1 tv ;
1669 1.1 tv return 0;
1670 1.1 tv }
1671 1.1 tv _ACEOF
1672 1.1 tv rm -f conftest.$ac_objext
1673 1.20 bjh21 if { (eval echo "$as_me:1673: \"$ac_compile\"") >&5
1674 1.1 tv (eval $ac_compile) 2>&5
1675 1.1 tv ac_status=$?
1676 1.20 bjh21 echo "$as_me:1676: \$? = $ac_status" >&5
1677 1.1 tv (exit $ac_status); } &&
1678 1.1 tv { ac_try='test -s conftest.$ac_objext'
1679 1.20 bjh21 { (eval echo "$as_me:1679: \"$ac_try\"") >&5
1680 1.1 tv (eval $ac_try) 2>&5
1681 1.1 tv ac_status=$?
1682 1.20 bjh21 echo "$as_me:1682: \$? = $ac_status" >&5
1683 1.1 tv (exit $ac_status); }; }; then
1684 1.1 tv break
1685 1.1 tv else
1686 1.1 tv echo "$as_me: failed program was:" >&5
1687 1.1 tv cat conftest.$ac_ext >&5
1688 1.1 tv fi
1689 1.1 tv rm -f conftest.$ac_objext conftest.$ac_ext
1690 1.1 tv done
1691 1.1 tv rm -f conftest*
1692 1.1 tv if test -n "$ac_declaration"; then
1693 1.1 tv echo '#ifdef __cplusplus' >>confdefs.h
1694 1.1 tv echo $ac_declaration >>confdefs.h
1695 1.1 tv echo '#endif' >>confdefs.h
1696 1.1 tv fi
1697 1.1 tv
1698 1.1 tv else
1699 1.1 tv echo "$as_me: failed program was:" >&5
1700 1.1 tv cat conftest.$ac_ext >&5
1701 1.1 tv fi
1702 1.1 tv rm -f conftest.$ac_objext conftest.$ac_ext
1703 1.1 tv ac_ext=c
1704 1.1 tv ac_cpp='$CPP $CPPFLAGS'
1705 1.1 tv ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1706 1.1 tv ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1707 1.1 tv ac_compiler_gnu=$ac_cv_c_compiler_gnu
1708 1.1 tv
1709 1.20 bjh21 echo "$as_me:1709: checking whether byte ordering is bigendian" >&5
1710 1.4 tv echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
1711 1.4 tv if test "${ac_cv_c_bigendian+set}" = set; then
1712 1.4 tv echo $ECHO_N "(cached) $ECHO_C" >&6
1713 1.4 tv else
1714 1.4 tv ac_cv_c_bigendian=unknown
1715 1.4 tv # See if sys/param.h defines the BYTE_ORDER macro.
1716 1.4 tv cat >conftest.$ac_ext <<_ACEOF
1717 1.20 bjh21 #line 1717 "configure"
1718 1.4 tv #include "confdefs.h"
1719 1.4 tv #include <sys/types.h>
1720 1.4 tv #include <sys/param.h>
1721 1.4 tv
1722 1.4 tv int
1723 1.4 tv main ()
1724 1.4 tv {
1725 1.4 tv #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
1726 1.4 tv bogus endian macros
1727 1.4 tv #endif
1728 1.4 tv
1729 1.4 tv ;
1730 1.4 tv return 0;
1731 1.4 tv }
1732 1.4 tv _ACEOF
1733 1.4 tv rm -f conftest.$ac_objext
1734 1.20 bjh21 if { (eval echo "$as_me:1734: \"$ac_compile\"") >&5
1735 1.4 tv (eval $ac_compile) 2>&5
1736 1.4 tv ac_status=$?
1737 1.20 bjh21 echo "$as_me:1737: \$? = $ac_status" >&5
1738 1.4 tv (exit $ac_status); } &&
1739 1.4 tv { ac_try='test -s conftest.$ac_objext'
1740 1.20 bjh21 { (eval echo "$as_me:1740: \"$ac_try\"") >&5
1741 1.4 tv (eval $ac_try) 2>&5
1742 1.4 tv ac_status=$?
1743 1.20 bjh21 echo "$as_me:1743: \$? = $ac_status" >&5
1744 1.4 tv (exit $ac_status); }; }; then
1745 1.4 tv # It does; now see whether it defined to BIG_ENDIAN or not.
1746 1.4 tv cat >conftest.$ac_ext <<_ACEOF
1747 1.20 bjh21 #line 1747 "configure"
1748 1.4 tv #include "confdefs.h"
1749 1.4 tv #include <sys/types.h>
1750 1.4 tv #include <sys/param.h>
1751 1.4 tv
1752 1.4 tv int
1753 1.4 tv main ()
1754 1.4 tv {
1755 1.4 tv #if BYTE_ORDER != BIG_ENDIAN
1756 1.4 tv not big endian
1757 1.4 tv #endif
1758 1.4 tv
1759 1.4 tv ;
1760 1.4 tv return 0;
1761 1.4 tv }
1762 1.4 tv _ACEOF
1763 1.4 tv rm -f conftest.$ac_objext
1764 1.20 bjh21 if { (eval echo "$as_me:1764: \"$ac_compile\"") >&5
1765 1.4 tv (eval $ac_compile) 2>&5
1766 1.4 tv ac_status=$?
1767 1.20 bjh21 echo "$as_me:1767: \$? = $ac_status" >&5
1768 1.4 tv (exit $ac_status); } &&
1769 1.4 tv { ac_try='test -s conftest.$ac_objext'
1770 1.20 bjh21 { (eval echo "$as_me:1770: \"$ac_try\"") >&5
1771 1.4 tv (eval $ac_try) 2>&5
1772 1.4 tv ac_status=$?
1773 1.20 bjh21 echo "$as_me:1773: \$? = $ac_status" >&5
1774 1.4 tv (exit $ac_status); }; }; then
1775 1.4 tv ac_cv_c_bigendian=yes
1776 1.4 tv else
1777 1.4 tv echo "$as_me: failed program was:" >&5
1778 1.4 tv cat conftest.$ac_ext >&5
1779 1.4 tv ac_cv_c_bigendian=no
1780 1.4 tv fi
1781 1.4 tv rm -f conftest.$ac_objext conftest.$ac_ext
1782 1.4 tv else
1783 1.4 tv echo "$as_me: failed program was:" >&5
1784 1.4 tv cat conftest.$ac_ext >&5
1785 1.4 tv fi
1786 1.4 tv rm -f conftest.$ac_objext conftest.$ac_ext
1787 1.4 tv if test $ac_cv_c_bigendian = unknown; then
1788 1.4 tv if test "$cross_compiling" = yes; then
1789 1.20 bjh21 { { echo "$as_me:1789: error: cannot run test program while cross compiling" >&5
1790 1.4 tv echo "$as_me: error: cannot run test program while cross compiling" >&2;}
1791 1.4 tv { (exit 1); exit 1; }; }
1792 1.4 tv else
1793 1.4 tv cat >conftest.$ac_ext <<_ACEOF
1794 1.20 bjh21 #line 1794 "configure"
1795 1.4 tv #include "confdefs.h"
1796 1.4 tv int
1797 1.4 tv main ()
1798 1.4 tv {
1799 1.4 tv /* Are we little or big endian? From Harbison&Steele. */
1800 1.4 tv union
1801 1.4 tv {
1802 1.4 tv long l;
1803 1.4 tv char c[sizeof (long)];
1804 1.4 tv } u;
1805 1.4 tv u.l = 1;
1806 1.4 tv exit (u.c[sizeof (long) - 1] == 1);
1807 1.4 tv }
1808 1.4 tv _ACEOF
1809 1.4 tv rm -f conftest$ac_exeext
1810 1.20 bjh21 if { (eval echo "$as_me:1810: \"$ac_link\"") >&5
1811 1.4 tv (eval $ac_link) 2>&5
1812 1.4 tv ac_status=$?
1813 1.20 bjh21 echo "$as_me:1813: \$? = $ac_status" >&5
1814 1.4 tv (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
1815 1.20 bjh21 { (eval echo "$as_me:1815: \"$ac_try\"") >&5
1816 1.4 tv (eval $ac_try) 2>&5
1817 1.4 tv ac_status=$?
1818 1.20 bjh21 echo "$as_me:1818: \$? = $ac_status" >&5
1819 1.4 tv (exit $ac_status); }; }; then
1820 1.4 tv ac_cv_c_bigendian=no
1821 1.4 tv else
1822 1.4 tv echo "$as_me: program exited with status $ac_status" >&5
1823 1.4 tv echo "$as_me: failed program was:" >&5
1824 1.4 tv cat conftest.$ac_ext >&5
1825 1.4 tv ac_cv_c_bigendian=yes
1826 1.4 tv fi
1827 1.4 tv rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
1828 1.4 tv fi
1829 1.4 tv fi
1830 1.4 tv fi
1831 1.20 bjh21 echo "$as_me:1831: result: $ac_cv_c_bigendian" >&5
1832 1.4 tv echo "${ECHO_T}$ac_cv_c_bigendian" >&6
1833 1.4 tv if test $ac_cv_c_bigendian = yes; then
1834 1.4 tv
1835 1.4 tv cat >>confdefs.h <<\EOF
1836 1.4 tv #define WORDS_BIGENDIAN 1
1837 1.4 tv EOF
1838 1.4 tv
1839 1.4 tv fi
1840 1.4 tv
1841 1.1 tv ac_ext=c
1842 1.1 tv ac_cpp='$CPP $CPPFLAGS'
1843 1.1 tv ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1844 1.1 tv ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1845 1.1 tv ac_compiler_gnu=$ac_cv_c_compiler_gnu
1846 1.20 bjh21 echo "$as_me:1846: checking how to run the C preprocessor" >&5
1847 1.1 tv echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
1848 1.1 tv # On Suns, sometimes $CPP names a directory.
1849 1.1 tv if test -n "$CPP" && test -d "$CPP"; then
1850 1.1 tv CPP=
1851 1.1 tv fi
1852 1.1 tv if test -z "$CPP"; then
1853 1.1 tv if test "${ac_cv_prog_CPP+set}" = set; then
1854 1.1 tv echo $ECHO_N "(cached) $ECHO_C" >&6
1855 1.1 tv else
1856 1.1 tv # Double quotes because CPP needs to be expanded
1857 1.1 tv for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
1858 1.1 tv do
1859 1.1 tv ac_preproc_ok=false
1860 1.1 tv for ac_c_preproc_warn_flag in '' yes
1861 1.1 tv do
1862 1.1 tv # Use a header file that comes with gcc, so configuring glibc
1863 1.1 tv # with a fresh cross-compiler works.
1864 1.1 tv # On the NeXT, cc -E runs the code through the compiler's parser,
1865 1.1 tv # not just through cpp. "Syntax error" is here to catch this case.
1866 1.1 tv cat >conftest.$ac_ext <<_ACEOF
1867 1.20 bjh21 #line 1867 "configure"
1868 1.1 tv #include "confdefs.h"
1869 1.1 tv #include <assert.h>
1870 1.1 tv Syntax error
1871 1.1 tv _ACEOF
1872 1.20 bjh21 if { (eval echo "$as_me:1872: \"$ac_cpp conftest.$ac_ext\"") >&5
1873 1.1 tv (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
1874 1.1 tv ac_status=$?
1875 1.1 tv egrep -v '^ *\+' conftest.er1 >conftest.err
1876 1.1 tv rm -f conftest.er1
1877 1.1 tv cat conftest.err >&5
1878 1.20 bjh21 echo "$as_me:1878: \$? = $ac_status" >&5
1879 1.1 tv (exit $ac_status); } >/dev/null; then
1880 1.1 tv if test -s conftest.err; then
1881 1.1 tv ac_cpp_err=$ac_c_preproc_warn_flag
1882 1.1 tv else
1883 1.1 tv ac_cpp_err=
1884 1.1 tv fi
1885 1.1 tv else
1886 1.1 tv ac_cpp_err=yes
1887 1.1 tv fi
1888 1.1 tv if test -z "$ac_cpp_err"; then
1889 1.1 tv :
1890 1.1 tv else
1891 1.1 tv echo "$as_me: failed program was:" >&5
1892 1.1 tv cat conftest.$ac_ext >&5
1893 1.1 tv # Broken: fails on valid input.
1894 1.1 tv continue
1895 1.1 tv fi
1896 1.1 tv rm -f conftest.err conftest.$ac_ext
1897 1.1 tv
1898 1.1 tv # OK, works on sane cases. Now check whether non-existent headers
1899 1.1 tv # can be detected and how.
1900 1.1 tv cat >conftest.$ac_ext <<_ACEOF
1901 1.20 bjh21 #line 1901 "configure"
1902 1.1 tv #include "confdefs.h"
1903 1.1 tv #include <ac_nonexistent.h>
1904 1.1 tv _ACEOF
1905 1.20 bjh21 if { (eval echo "$as_me:1905: \"$ac_cpp conftest.$ac_ext\"") >&5
1906 1.1 tv (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
1907 1.1 tv ac_status=$?
1908 1.1 tv egrep -v '^ *\+' conftest.er1 >conftest.err
1909 1.1 tv rm -f conftest.er1
1910 1.1 tv cat conftest.err >&5
1911 1.20 bjh21 echo "$as_me:1911: \$? = $ac_status" >&5
1912 1.1 tv (exit $ac_status); } >/dev/null; then
1913 1.1 tv if test -s conftest.err; then
1914 1.1 tv ac_cpp_err=$ac_c_preproc_warn_flag
1915 1.1 tv else
1916 1.1 tv ac_cpp_err=
1917 1.1 tv fi
1918 1.1 tv else
1919 1.1 tv ac_cpp_err=yes
1920 1.1 tv fi
1921 1.1 tv if test -z "$ac_cpp_err"; then
1922 1.1 tv # Broken: success on invalid input.
1923 1.1 tv continue
1924 1.1 tv else
1925 1.1 tv echo "$as_me: failed program was:" >&5
1926 1.1 tv cat conftest.$ac_ext >&5
1927 1.1 tv # Passes both tests.
1928 1.1 tv ac_preproc_ok=:
1929 1.1 tv break
1930 1.1 tv fi
1931 1.1 tv rm -f conftest.err conftest.$ac_ext
1932 1.1 tv
1933 1.1 tv done
1934 1.1 tv # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
1935 1.1 tv rm -f conftest.err conftest.$ac_ext
1936 1.1 tv if $ac_preproc_ok; then
1937 1.1 tv break
1938 1.1 tv fi
1939 1.1 tv
1940 1.1 tv done
1941 1.1 tv ac_cv_prog_CPP=$CPP
1942 1.1 tv
1943 1.1 tv fi
1944 1.1 tv CPP=$ac_cv_prog_CPP
1945 1.1 tv else
1946 1.1 tv ac_cv_prog_CPP=$CPP
1947 1.1 tv fi
1948 1.20 bjh21 echo "$as_me:1948: result: $CPP" >&5
1949 1.1 tv echo "${ECHO_T}$CPP" >&6
1950 1.1 tv ac_preproc_ok=false
1951 1.1 tv for ac_c_preproc_warn_flag in '' yes
1952 1.1 tv do
1953 1.1 tv # Use a header file that comes with gcc, so configuring glibc
1954 1.1 tv # with a fresh cross-compiler works.
1955 1.1 tv # On the NeXT, cc -E runs the code through the compiler's parser,
1956 1.1 tv # not just through cpp. "Syntax error" is here to catch this case.
1957 1.1 tv cat >conftest.$ac_ext <<_ACEOF
1958 1.20 bjh21 #line 1958 "configure"
1959 1.1 tv #include "confdefs.h"
1960 1.1 tv #include <assert.h>
1961 1.1 tv Syntax error
1962 1.1 tv _ACEOF
1963 1.20 bjh21 if { (eval echo "$as_me:1963: \"$ac_cpp conftest.$ac_ext\"") >&5
1964 1.1 tv (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
1965 1.1 tv ac_status=$?
1966 1.1 tv egrep -v '^ *\+' conftest.er1 >conftest.err
1967 1.1 tv rm -f conftest.er1
1968 1.1 tv cat conftest.err >&5
1969 1.20 bjh21 echo "$as_me:1969: \$? = $ac_status" >&5
1970 1.1 tv (exit $ac_status); } >/dev/null; then
1971 1.1 tv if test -s conftest.err; then
1972 1.1 tv ac_cpp_err=$ac_c_preproc_warn_flag
1973 1.1 tv else
1974 1.1 tv ac_cpp_err=
1975 1.1 tv fi
1976 1.1 tv else
1977 1.1 tv ac_cpp_err=yes
1978 1.1 tv fi
1979 1.1 tv if test -z "$ac_cpp_err"; then
1980 1.1 tv :
1981 1.1 tv else
1982 1.1 tv echo "$as_me: failed program was:" >&5
1983 1.1 tv cat conftest.$ac_ext >&5
1984 1.1 tv # Broken: fails on valid input.
1985 1.1 tv continue
1986 1.1 tv fi
1987 1.1 tv rm -f conftest.err conftest.$ac_ext
1988 1.1 tv
1989 1.1 tv # OK, works on sane cases. Now check whether non-existent headers
1990 1.1 tv # can be detected and how.
1991 1.1 tv cat >conftest.$ac_ext <<_ACEOF
1992 1.20 bjh21 #line 1992 "configure"
1993 1.1 tv #include "confdefs.h"
1994 1.1 tv #include <ac_nonexistent.h>
1995 1.1 tv _ACEOF
1996 1.20 bjh21 if { (eval echo "$as_me:1996: \"$ac_cpp conftest.$ac_ext\"") >&5
1997 1.1 tv (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
1998 1.1 tv ac_status=$?
1999 1.1 tv egrep -v '^ *\+' conftest.er1 >conftest.err
2000 1.1 tv rm -f conftest.er1
2001 1.1 tv cat conftest.err >&5
2002 1.20 bjh21 echo "$as_me:2002: \$? = $ac_status" >&5
2003 1.1 tv (exit $ac_status); } >/dev/null; then
2004 1.1 tv if test -s conftest.err; then
2005 1.1 tv ac_cpp_err=$ac_c_preproc_warn_flag
2006 1.1 tv else
2007 1.1 tv ac_cpp_err=
2008 1.1 tv fi
2009 1.1 tv else
2010 1.1 tv ac_cpp_err=yes
2011 1.1 tv fi
2012 1.1 tv if test -z "$ac_cpp_err"; then
2013 1.1 tv # Broken: success on invalid input.
2014 1.1 tv continue
2015 1.1 tv else
2016 1.1 tv echo "$as_me: failed program was:" >&5
2017 1.1 tv cat conftest.$ac_ext >&5
2018 1.1 tv # Passes both tests.
2019 1.1 tv ac_preproc_ok=:
2020 1.1 tv break
2021 1.1 tv fi
2022 1.1 tv rm -f conftest.err conftest.$ac_ext
2023 1.1 tv
2024 1.1 tv done
2025 1.1 tv # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2026 1.1 tv rm -f conftest.err conftest.$ac_ext
2027 1.1 tv if $ac_preproc_ok; then
2028 1.1 tv :
2029 1.1 tv else
2030 1.20 bjh21 { { echo "$as_me:2030: error: C preprocessor \"$CPP\" fails sanity check" >&5
2031 1.1 tv echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2032 1.1 tv { (exit 1); exit 1; }; }
2033 1.1 tv fi
2034 1.1 tv
2035 1.1 tv ac_ext=c
2036 1.1 tv ac_cpp='$CPP $CPPFLAGS'
2037 1.1 tv ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2038 1.1 tv ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2039 1.1 tv ac_compiler_gnu=$ac_cv_c_compiler_gnu
2040 1.1 tv
2041 1.20 bjh21 echo "$as_me:2041: checking for ANSI C header files" >&5
2042 1.6 tv echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
2043 1.6 tv if test "${ac_cv_header_stdc+set}" = set; then
2044 1.6 tv echo $ECHO_N "(cached) $ECHO_C" >&6
2045 1.6 tv else
2046 1.6 tv cat >conftest.$ac_ext <<_ACEOF
2047 1.20 bjh21 #line 2047 "configure"
2048 1.6 tv #include "confdefs.h"
2049 1.6 tv #include <stdlib.h>
2050 1.6 tv #include <stdarg.h>
2051 1.6 tv #include <string.h>
2052 1.6 tv #include <float.h>
2053 1.6 tv
2054 1.6 tv _ACEOF
2055 1.20 bjh21 if { (eval echo "$as_me:2055: \"$ac_cpp conftest.$ac_ext\"") >&5
2056 1.6 tv (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2057 1.6 tv ac_status=$?
2058 1.6 tv egrep -v '^ *\+' conftest.er1 >conftest.err
2059 1.6 tv rm -f conftest.er1
2060 1.6 tv cat conftest.err >&5
2061 1.20 bjh21 echo "$as_me:2061: \$? = $ac_status" >&5
2062 1.6 tv (exit $ac_status); } >/dev/null; then
2063 1.6 tv if test -s conftest.err; then
2064 1.6 tv ac_cpp_err=$ac_c_preproc_warn_flag
2065 1.6 tv else
2066 1.6 tv ac_cpp_err=
2067 1.6 tv fi
2068 1.6 tv else
2069 1.6 tv ac_cpp_err=yes
2070 1.6 tv fi
2071 1.6 tv if test -z "$ac_cpp_err"; then
2072 1.6 tv ac_cv_header_stdc=yes
2073 1.6 tv else
2074 1.6 tv echo "$as_me: failed program was:" >&5
2075 1.6 tv cat conftest.$ac_ext >&5
2076 1.6 tv ac_cv_header_stdc=no
2077 1.6 tv fi
2078 1.6 tv rm -f conftest.err conftest.$ac_ext
2079 1.6 tv
2080 1.6 tv if test $ac_cv_header_stdc = yes; then
2081 1.6 tv # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2082 1.6 tv cat >conftest.$ac_ext <<_ACEOF
2083 1.20 bjh21 #line 2083 "configure"
2084 1.6 tv #include "confdefs.h"
2085 1.6 tv #include <string.h>
2086 1.6 tv
2087 1.6 tv _ACEOF
2088 1.6 tv if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2089 1.6 tv egrep "memchr" >/dev/null 2>&1; then
2090 1.6 tv :
2091 1.6 tv else
2092 1.6 tv ac_cv_header_stdc=no
2093 1.6 tv fi
2094 1.6 tv rm -f conftest*
2095 1.6 tv
2096 1.6 tv fi
2097 1.6 tv
2098 1.6 tv if test $ac_cv_header_stdc = yes; then
2099 1.6 tv # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2100 1.6 tv cat >conftest.$ac_ext <<_ACEOF
2101 1.20 bjh21 #line 2101 "configure"
2102 1.6 tv #include "confdefs.h"
2103 1.6 tv #include <stdlib.h>
2104 1.6 tv
2105 1.6 tv _ACEOF
2106 1.6 tv if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2107 1.6 tv egrep "free" >/dev/null 2>&1; then
2108 1.6 tv :
2109 1.6 tv else
2110 1.6 tv ac_cv_header_stdc=no
2111 1.6 tv fi
2112 1.6 tv rm -f conftest*
2113 1.6 tv
2114 1.6 tv fi
2115 1.6 tv
2116 1.6 tv if test $ac_cv_header_stdc = yes; then
2117 1.6 tv # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2118 1.6 tv if test "$cross_compiling" = yes; then
2119 1.6 tv :
2120 1.6 tv else
2121 1.6 tv cat >conftest.$ac_ext <<_ACEOF
2122 1.20 bjh21 #line 2122 "configure"
2123 1.6 tv #include "confdefs.h"
2124 1.6 tv #include <ctype.h>
2125 1.6 tv #if ((' ' & 0x0FF) == 0x020)
2126 1.6 tv # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2127 1.6 tv # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2128 1.6 tv #else
2129 1.6 tv # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
2130 1.6 tv || ('j' <= (c) && (c) <= 'r') \
2131 1.6 tv || ('s' <= (c) && (c) <= 'z'))
2132 1.6 tv # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
2133 1.6 tv #endif
2134 1.6 tv
2135 1.6 tv #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2136 1.6 tv int
2137 1.6 tv main ()
2138 1.6 tv {
2139 1.6 tv int i;
2140 1.6 tv for (i = 0; i < 256; i++)
2141 1.6 tv if (XOR (islower (i), ISLOWER (i))
2142 1.6 tv || toupper (i) != TOUPPER (i))
2143 1.6 tv exit(2);
2144 1.6 tv exit (0);
2145 1.6 tv }
2146 1.6 tv _ACEOF
2147 1.6 tv rm -f conftest$ac_exeext
2148 1.20 bjh21 if { (eval echo "$as_me:2148: \"$ac_link\"") >&5
2149 1.6 tv (eval $ac_link) 2>&5
2150 1.6 tv ac_status=$?
2151 1.20 bjh21 echo "$as_me:2151: \$? = $ac_status" >&5
2152 1.6 tv (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2153 1.20 bjh21 { (eval echo "$as_me:2153: \"$ac_try\"") >&5
2154 1.6 tv (eval $ac_try) 2>&5
2155 1.6 tv ac_status=$?
2156 1.20 bjh21 echo "$as_me:2156: \$? = $ac_status" >&5
2157 1.6 tv (exit $ac_status); }; }; then
2158 1.6 tv :
2159 1.6 tv else
2160 1.6 tv echo "$as_me: program exited with status $ac_status" >&5
2161 1.6 tv echo "$as_me: failed program was:" >&5
2162 1.6 tv cat conftest.$ac_ext >&5
2163 1.6 tv ac_cv_header_stdc=no
2164 1.6 tv fi
2165 1.6 tv rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2166 1.6 tv fi
2167 1.6 tv fi
2168 1.6 tv fi
2169 1.20 bjh21 echo "$as_me:2169: result: $ac_cv_header_stdc" >&5
2170 1.6 tv echo "${ECHO_T}$ac_cv_header_stdc" >&6
2171 1.6 tv if test $ac_cv_header_stdc = yes; then
2172 1.6 tv
2173 1.6 tv cat >>confdefs.h <<\EOF
2174 1.6 tv #define STDC_HEADERS 1
2175 1.6 tv EOF
2176 1.6 tv
2177 1.6 tv fi
2178 1.6 tv
2179 1.6 tv # Confirm existence of zlib. (This is available as a default install
2180 1.6 tv # option on many OS's; this could be added as a reachover build in the
2181 1.6 tv # future.)
2182 1.20 bjh21 echo "$as_me:2182: checking for zlib.h" >&5
2183 1.6 tv echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
2184 1.6 tv if test "${ac_cv_header_zlib_h+set}" = set; then
2185 1.4 tv echo $ECHO_N "(cached) $ECHO_C" >&6
2186 1.4 tv else
2187 1.4 tv cat >conftest.$ac_ext <<_ACEOF
2188 1.20 bjh21 #line 2188 "configure"
2189 1.4 tv #include "confdefs.h"
2190 1.6 tv #include <zlib.h>
2191 1.4 tv _ACEOF
2192 1.20 bjh21 if { (eval echo "$as_me:2192: \"$ac_cpp conftest.$ac_ext\"") >&5
2193 1.4 tv (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2194 1.4 tv ac_status=$?
2195 1.4 tv egrep -v '^ *\+' conftest.er1 >conftest.err
2196 1.4 tv rm -f conftest.er1
2197 1.4 tv cat conftest.err >&5
2198 1.20 bjh21 echo "$as_me:2198: \$? = $ac_status" >&5
2199 1.4 tv (exit $ac_status); } >/dev/null; then
2200 1.4 tv if test -s conftest.err; then
2201 1.4 tv ac_cpp_err=$ac_c_preproc_warn_flag
2202 1.4 tv else
2203 1.4 tv ac_cpp_err=
2204 1.4 tv fi
2205 1.4 tv else
2206 1.4 tv ac_cpp_err=yes
2207 1.4 tv fi
2208 1.4 tv if test -z "$ac_cpp_err"; then
2209 1.6 tv ac_cv_header_zlib_h=yes
2210 1.4 tv else
2211 1.4 tv echo "$as_me: failed program was:" >&5
2212 1.4 tv cat conftest.$ac_ext >&5
2213 1.6 tv ac_cv_header_zlib_h=no
2214 1.4 tv fi
2215 1.4 tv rm -f conftest.err conftest.$ac_ext
2216 1.4 tv fi
2217 1.20 bjh21 echo "$as_me:2217: result: $ac_cv_header_zlib_h" >&5
2218 1.6 tv echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
2219 1.6 tv if test $ac_cv_header_zlib_h = yes; then
2220 1.6 tv :
2221 1.6 tv else
2222 1.20 bjh21 { { echo "$as_me:2222: error: zlib must be installed in a compiler-visible path" >&5
2223 1.6 tv echo "$as_me: error: zlib must be installed in a compiler-visible path" >&2;}
2224 1.6 tv { (exit 1); exit 1; }; }
2225 1.6 tv fi
2226 1.6 tv
2227 1.20 bjh21 echo "$as_me:2227: checking for gzdopen in -lz" >&5
2228 1.6 tv echo $ECHO_N "checking for gzdopen in -lz... $ECHO_C" >&6
2229 1.6 tv if test "${ac_cv_lib_z_gzdopen+set}" = set; then
2230 1.6 tv echo $ECHO_N "(cached) $ECHO_C" >&6
2231 1.6 tv else
2232 1.6 tv ac_check_lib_save_LIBS=$LIBS
2233 1.6 tv LIBS="-lz $LIBS"
2234 1.6 tv cat >conftest.$ac_ext <<_ACEOF
2235 1.20 bjh21 #line 2235 "configure"
2236 1.6 tv #include "confdefs.h"
2237 1.6 tv
2238 1.6 tv /* Override any gcc2 internal prototype to avoid an error. */
2239 1.6 tv #ifdef __cplusplus
2240 1.6 tv extern "C"
2241 1.6 tv #endif
2242 1.6 tv /* We use char because int might match the return type of a gcc2
2243 1.6 tv builtin and then its argument prototype would still apply. */
2244 1.6 tv char gzdopen ();
2245 1.6 tv int
2246 1.6 tv main ()
2247 1.6 tv {
2248 1.6 tv gzdopen ();
2249 1.6 tv ;
2250 1.6 tv return 0;
2251 1.6 tv }
2252 1.6 tv _ACEOF
2253 1.6 tv rm -f conftest.$ac_objext conftest$ac_exeext
2254 1.20 bjh21 if { (eval echo "$as_me:2254: \"$ac_link\"") >&5
2255 1.6 tv (eval $ac_link) 2>&5
2256 1.6 tv ac_status=$?
2257 1.20 bjh21 echo "$as_me:2257: \$? = $ac_status" >&5
2258 1.6 tv (exit $ac_status); } &&
2259 1.6 tv { ac_try='test -s conftest$ac_exeext'
2260 1.20 bjh21 { (eval echo "$as_me:2260: \"$ac_try\"") >&5
2261 1.6 tv (eval $ac_try) 2>&5
2262 1.6 tv ac_status=$?
2263 1.20 bjh21 echo "$as_me:2263: \$? = $ac_status" >&5
2264 1.6 tv (exit $ac_status); }; }; then
2265 1.6 tv ac_cv_lib_z_gzdopen=yes
2266 1.6 tv else
2267 1.6 tv echo "$as_me: failed program was:" >&5
2268 1.6 tv cat conftest.$ac_ext >&5
2269 1.6 tv ac_cv_lib_z_gzdopen=no
2270 1.6 tv fi
2271 1.6 tv rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2272 1.6 tv LIBS=$ac_check_lib_save_LIBS
2273 1.6 tv fi
2274 1.20 bjh21 echo "$as_me:2274: result: $ac_cv_lib_z_gzdopen" >&5
2275 1.6 tv echo "${ECHO_T}$ac_cv_lib_z_gzdopen" >&6
2276 1.6 tv if test $ac_cv_lib_z_gzdopen = yes; then
2277 1.4 tv cat >>confdefs.h <<EOF
2278 1.6 tv #define HAVE_LIBZ 1
2279 1.4 tv EOF
2280 1.4 tv
2281 1.6 tv LIBS="-lz $LIBS"
2282 1.6 tv
2283 1.4 tv else
2284 1.20 bjh21 { { echo "$as_me:2284: error: zlib must be installed in a compiler-visible path" >&5
2285 1.6 tv echo "$as_me: error: zlib must be installed in a compiler-visible path" >&2;}
2286 1.4 tv { (exit 1); exit 1; }; }
2287 1.4 tv fi
2288 1.4 tv
2289 1.6 tv # Make sure certain required headers are available.
2290 1.6 tv # These are not necessarily required by the code, but they are not
2291 1.6 tv # currently conditionalized.
2292 1.4 tv
2293 1.6 tv for ac_header in sys/ioctl.h sys/mman.h sys/mtio.h sys/param.h \
2294 1.34 thorpej sys/socket.h sys/stat.h sys/time.h sys/types.h sys/utsname.h \
2295 1.34 thorpej sys/wait.h assert.h ctype.h errno.h fcntl.h grp.h limits.h locale.h \
2296 1.28 briggs netdb.h pwd.h signal.h stdarg.h stdio.h stdlib.h string.h \
2297 1.22 thorpej termios.h unistd.h
2298 1.4 tv do
2299 1.4 tv as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
2300 1.20 bjh21 echo "$as_me:2300: checking for $ac_header" >&5
2301 1.4 tv echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
2302 1.4 tv if eval "test \"\${$as_ac_Header+set}\" = set"; then
2303 1.4 tv echo $ECHO_N "(cached) $ECHO_C" >&6
2304 1.4 tv else
2305 1.4 tv cat >conftest.$ac_ext <<_ACEOF
2306 1.20 bjh21 #line 2306 "configure"
2307 1.4 tv #include "confdefs.h"
2308 1.4 tv #include <$ac_header>
2309 1.4 tv _ACEOF
2310 1.20 bjh21 if { (eval echo "$as_me:2310: \"$ac_cpp conftest.$ac_ext\"") >&5
2311 1.4 tv (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2312 1.4 tv ac_status=$?
2313 1.4 tv egrep -v '^ *\+' conftest.er1 >conftest.err
2314 1.4 tv rm -f conftest.er1
2315 1.4 tv cat conftest.err >&5
2316 1.20 bjh21 echo "$as_me:2316: \$? = $ac_status" >&5
2317 1.4 tv (exit $ac_status); } >/dev/null; then
2318 1.4 tv if test -s conftest.err; then
2319 1.4 tv ac_cpp_err=$ac_c_preproc_warn_flag
2320 1.4 tv else
2321 1.4 tv ac_cpp_err=
2322 1.4 tv fi
2323 1.4 tv else
2324 1.6 tv ac_cpp_err=yes
2325 1.6 tv fi
2326 1.6 tv if test -z "$ac_cpp_err"; then
2327 1.6 tv eval "$as_ac_Header=yes"
2328 1.6 tv else
2329 1.6 tv echo "$as_me: failed program was:" >&5
2330 1.6 tv cat conftest.$ac_ext >&5
2331 1.6 tv eval "$as_ac_Header=no"
2332 1.6 tv fi
2333 1.6 tv rm -f conftest.err conftest.$ac_ext
2334 1.6 tv fi
2335 1.20 bjh21 echo "$as_me:2335: result: `eval echo '${'$as_ac_Header'}'`" >&5
2336 1.6 tv echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
2337 1.6 tv if test `eval echo '${'$as_ac_Header'}'` = yes; then
2338 1.6 tv cat >>confdefs.h <<EOF
2339 1.6 tv #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
2340 1.6 tv EOF
2341 1.6 tv
2342 1.6 tv else
2343 1.20 bjh21 { { echo "$as_me:2343: error: standard system header file not found" >&5
2344 1.6 tv echo "$as_me: error: standard system header file not found" >&2;}
2345 1.6 tv { (exit 1); exit 1; }; }
2346 1.6 tv fi
2347 1.6 tv done
2348 1.6 tv
2349 1.6 tv # Find headers that may not be available.
2350 1.6 tv
2351 1.6 tv ac_header_dirent=no
2352 1.6 tv for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
2353 1.6 tv as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
2354 1.20 bjh21 echo "$as_me:2354: checking for $ac_hdr that defines DIR" >&5
2355 1.6 tv echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
2356 1.6 tv if eval "test \"\${$as_ac_Header+set}\" = set"; then
2357 1.6 tv echo $ECHO_N "(cached) $ECHO_C" >&6
2358 1.6 tv else
2359 1.6 tv cat >conftest.$ac_ext <<_ACEOF
2360 1.20 bjh21 #line 2360 "configure"
2361 1.6 tv #include "confdefs.h"
2362 1.6 tv #include <sys/types.h>
2363 1.6 tv #include <$ac_hdr>
2364 1.6 tv
2365 1.6 tv int
2366 1.6 tv main ()
2367 1.6 tv {
2368 1.6 tv if ((DIR *) 0)
2369 1.6 tv return 0;
2370 1.6 tv ;
2371 1.6 tv return 0;
2372 1.6 tv }
2373 1.6 tv _ACEOF
2374 1.6 tv rm -f conftest.$ac_objext
2375 1.20 bjh21 if { (eval echo "$as_me:2375: \"$ac_compile\"") >&5
2376 1.6 tv (eval $ac_compile) 2>&5
2377 1.6 tv ac_status=$?
2378 1.20 bjh21 echo "$as_me:2378: \$? = $ac_status" >&5
2379 1.6 tv (exit $ac_status); } &&
2380 1.6 tv { ac_try='test -s conftest.$ac_objext'
2381 1.20 bjh21 { (eval echo "$as_me:2381: \"$ac_try\"") >&5
2382 1.6 tv (eval $ac_try) 2>&5
2383 1.6 tv ac_status=$?
2384 1.20 bjh21 echo "$as_me:2384: \$? = $ac_status" >&5
2385 1.6 tv (exit $ac_status); }; }; then
2386 1.6 tv eval "$as_ac_Header=yes"
2387 1.6 tv else
2388 1.6 tv echo "$as_me: failed program was:" >&5
2389 1.6 tv cat conftest.$ac_ext >&5
2390 1.6 tv eval "$as_ac_Header=no"
2391 1.6 tv fi
2392 1.6 tv rm -f conftest.$ac_objext conftest.$ac_ext
2393 1.6 tv fi
2394 1.20 bjh21 echo "$as_me:2394: result: `eval echo '${'$as_ac_Header'}'`" >&5
2395 1.6 tv echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
2396 1.6 tv if test `eval echo '${'$as_ac_Header'}'` = yes; then
2397 1.6 tv cat >>confdefs.h <<EOF
2398 1.6 tv #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
2399 1.6 tv EOF
2400 1.6 tv
2401 1.6 tv ac_header_dirent=$ac_hdr; break
2402 1.6 tv fi
2403 1.6 tv
2404 1.6 tv done
2405 1.6 tv # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
2406 1.6 tv if test $ac_header_dirent = dirent.h; then
2407 1.20 bjh21 echo "$as_me:2407: checking for opendir in -ldir" >&5
2408 1.6 tv echo $ECHO_N "checking for opendir in -ldir... $ECHO_C" >&6
2409 1.6 tv if test "${ac_cv_lib_dir_opendir+set}" = set; then
2410 1.6 tv echo $ECHO_N "(cached) $ECHO_C" >&6
2411 1.6 tv else
2412 1.6 tv ac_check_lib_save_LIBS=$LIBS
2413 1.6 tv LIBS="-ldir $LIBS"
2414 1.6 tv cat >conftest.$ac_ext <<_ACEOF
2415 1.20 bjh21 #line 2415 "configure"
2416 1.6 tv #include "confdefs.h"
2417 1.6 tv
2418 1.6 tv /* Override any gcc2 internal prototype to avoid an error. */
2419 1.6 tv #ifdef __cplusplus
2420 1.6 tv extern "C"
2421 1.6 tv #endif
2422 1.6 tv /* We use char because int might match the return type of a gcc2
2423 1.6 tv builtin and then its argument prototype would still apply. */
2424 1.6 tv char opendir ();
2425 1.6 tv int
2426 1.6 tv main ()
2427 1.6 tv {
2428 1.6 tv opendir ();
2429 1.6 tv ;
2430 1.6 tv return 0;
2431 1.6 tv }
2432 1.6 tv _ACEOF
2433 1.6 tv rm -f conftest.$ac_objext conftest$ac_exeext
2434 1.20 bjh21 if { (eval echo "$as_me:2434: \"$ac_link\"") >&5
2435 1.6 tv (eval $ac_link) 2>&5
2436 1.6 tv ac_status=$?
2437 1.20 bjh21 echo "$as_me:2437: \$? = $ac_status" >&5
2438 1.6 tv (exit $ac_status); } &&
2439 1.6 tv { ac_try='test -s conftest$ac_exeext'
2440 1.20 bjh21 { (eval echo "$as_me:2440: \"$ac_try\"") >&5
2441 1.6 tv (eval $ac_try) 2>&5
2442 1.6 tv ac_status=$?
2443 1.20 bjh21 echo "$as_me:2443: \$? = $ac_status" >&5
2444 1.6 tv (exit $ac_status); }; }; then
2445 1.6 tv ac_cv_lib_dir_opendir=yes
2446 1.6 tv else
2447 1.6 tv echo "$as_me: failed program was:" >&5
2448 1.6 tv cat conftest.$ac_ext >&5
2449 1.6 tv ac_cv_lib_dir_opendir=no
2450 1.6 tv fi
2451 1.6 tv rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2452 1.6 tv LIBS=$ac_check_lib_save_LIBS
2453 1.6 tv fi
2454 1.20 bjh21 echo "$as_me:2454: result: $ac_cv_lib_dir_opendir" >&5
2455 1.6 tv echo "${ECHO_T}$ac_cv_lib_dir_opendir" >&6
2456 1.6 tv if test $ac_cv_lib_dir_opendir = yes; then
2457 1.6 tv LIBS="$LIBS -ldir"
2458 1.6 tv fi
2459 1.6 tv
2460 1.6 tv else
2461 1.20 bjh21 echo "$as_me:2461: checking for opendir in -lx" >&5
2462 1.6 tv echo $ECHO_N "checking for opendir in -lx... $ECHO_C" >&6
2463 1.6 tv if test "${ac_cv_lib_x_opendir+set}" = set; then
2464 1.6 tv echo $ECHO_N "(cached) $ECHO_C" >&6
2465 1.6 tv else
2466 1.6 tv ac_check_lib_save_LIBS=$LIBS
2467 1.6 tv LIBS="-lx $LIBS"
2468 1.6 tv cat >conftest.$ac_ext <<_ACEOF
2469 1.20 bjh21 #line 2469 "configure"
2470 1.6 tv #include "confdefs.h"
2471 1.6 tv
2472 1.6 tv /* Override any gcc2 internal prototype to avoid an error. */
2473 1.6 tv #ifdef __cplusplus
2474 1.6 tv extern "C"
2475 1.6 tv #endif
2476 1.6 tv /* We use char because int might match the return type of a gcc2
2477 1.6 tv builtin and then its argument prototype would still apply. */
2478 1.6 tv char opendir ();
2479 1.6 tv int
2480 1.6 tv main ()
2481 1.6 tv {
2482 1.6 tv opendir ();
2483 1.6 tv ;
2484 1.6 tv return 0;
2485 1.6 tv }
2486 1.6 tv _ACEOF
2487 1.6 tv rm -f conftest.$ac_objext conftest$ac_exeext
2488 1.20 bjh21 if { (eval echo "$as_me:2488: \"$ac_link\"") >&5
2489 1.6 tv (eval $ac_link) 2>&5
2490 1.6 tv ac_status=$?
2491 1.20 bjh21 echo "$as_me:2491: \$? = $ac_status" >&5
2492 1.6 tv (exit $ac_status); } &&
2493 1.6 tv { ac_try='test -s conftest$ac_exeext'
2494 1.20 bjh21 { (eval echo "$as_me:2494: \"$ac_try\"") >&5
2495 1.6 tv (eval $ac_try) 2>&5
2496 1.6 tv ac_status=$?
2497 1.20 bjh21 echo "$as_me:2497: \$? = $ac_status" >&5
2498 1.6 tv (exit $ac_status); }; }; then
2499 1.6 tv ac_cv_lib_x_opendir=yes
2500 1.6 tv else
2501 1.6 tv echo "$as_me: failed program was:" >&5
2502 1.6 tv cat conftest.$ac_ext >&5
2503 1.6 tv ac_cv_lib_x_opendir=no
2504 1.6 tv fi
2505 1.6 tv rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2506 1.6 tv LIBS=$ac_check_lib_save_LIBS
2507 1.6 tv fi
2508 1.20 bjh21 echo "$as_me:2508: result: $ac_cv_lib_x_opendir" >&5
2509 1.6 tv echo "${ECHO_T}$ac_cv_lib_x_opendir" >&6
2510 1.6 tv if test $ac_cv_lib_x_opendir = yes; then
2511 1.6 tv LIBS="$LIBS -lx"
2512 1.6 tv fi
2513 1.6 tv
2514 1.6 tv fi
2515 1.6 tv
2516 1.18 bjh21 for ac_header in sys/sysmacros.h sys/syslimits.h \
2517 1.28 briggs features.h malloc.h poll.h stddef.h
2518 1.6 tv do
2519 1.6 tv as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
2520 1.20 bjh21 echo "$as_me:2520: checking for $ac_header" >&5
2521 1.6 tv echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
2522 1.6 tv if eval "test \"\${$as_ac_Header+set}\" = set"; then
2523 1.6 tv echo $ECHO_N "(cached) $ECHO_C" >&6
2524 1.6 tv else
2525 1.6 tv cat >conftest.$ac_ext <<_ACEOF
2526 1.20 bjh21 #line 2526 "configure"
2527 1.6 tv #include "confdefs.h"
2528 1.6 tv #include <$ac_header>
2529 1.6 tv _ACEOF
2530 1.20 bjh21 if { (eval echo "$as_me:2530: \"$ac_cpp conftest.$ac_ext\"") >&5
2531 1.6 tv (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2532 1.6 tv ac_status=$?
2533 1.6 tv egrep -v '^ *\+' conftest.er1 >conftest.err
2534 1.6 tv rm -f conftest.er1
2535 1.6 tv cat conftest.err >&5
2536 1.20 bjh21 echo "$as_me:2536: \$? = $ac_status" >&5
2537 1.6 tv (exit $ac_status); } >/dev/null; then
2538 1.6 tv if test -s conftest.err; then
2539 1.6 tv ac_cpp_err=$ac_c_preproc_warn_flag
2540 1.6 tv else
2541 1.6 tv ac_cpp_err=
2542 1.6 tv fi
2543 1.6 tv else
2544 1.6 tv ac_cpp_err=yes
2545 1.6 tv fi
2546 1.6 tv if test -z "$ac_cpp_err"; then
2547 1.6 tv eval "$as_ac_Header=yes"
2548 1.6 tv else
2549 1.6 tv echo "$as_me: failed program was:" >&5
2550 1.6 tv cat conftest.$ac_ext >&5
2551 1.6 tv eval "$as_ac_Header=no"
2552 1.6 tv fi
2553 1.6 tv rm -f conftest.err conftest.$ac_ext
2554 1.6 tv fi
2555 1.20 bjh21 echo "$as_me:2555: result: `eval echo '${'$as_ac_Header'}'`" >&5
2556 1.6 tv echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
2557 1.6 tv if test `eval echo '${'$as_ac_Header'}'` = yes; then
2558 1.6 tv cat >>confdefs.h <<EOF
2559 1.6 tv #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
2560 1.6 tv EOF
2561 1.6 tv
2562 1.6 tv fi
2563 1.6 tv done
2564 1.6 tv
2565 1.18 bjh21 for ac_header in machine/bswap.h sys/cdefs.h sys/endian.h sys/featuretest.h \
2566 1.31 lukem err.h inttypes.h libgen.h paths.h stdint.h util.h
2567 1.6 tv do
2568 1.6 tv as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
2569 1.20 bjh21 echo "$as_me:2569: checking for $ac_header" >&5
2570 1.6 tv echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
2571 1.6 tv if eval "test \"\${$as_ac_Header+set}\" = set"; then
2572 1.6 tv echo $ECHO_N "(cached) $ECHO_C" >&6
2573 1.6 tv else
2574 1.6 tv cat >conftest.$ac_ext <<_ACEOF
2575 1.20 bjh21 #line 2575 "configure"
2576 1.6 tv #include "confdefs.h"
2577 1.6 tv #include <$ac_header>
2578 1.6 tv _ACEOF
2579 1.20 bjh21 if { (eval echo "$as_me:2579: \"$ac_cpp conftest.$ac_ext\"") >&5
2580 1.6 tv (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2581 1.6 tv ac_status=$?
2582 1.6 tv egrep -v '^ *\+' conftest.er1 >conftest.err
2583 1.6 tv rm -f conftest.er1
2584 1.6 tv cat conftest.err >&5
2585 1.20 bjh21 echo "$as_me:2585: \$? = $ac_status" >&5
2586 1.6 tv (exit $ac_status); } >/dev/null; then
2587 1.6 tv if test -s conftest.err; then
2588 1.6 tv ac_cpp_err=$ac_c_preproc_warn_flag
2589 1.6 tv else
2590 1.6 tv ac_cpp_err=
2591 1.6 tv fi
2592 1.6 tv else
2593 1.6 tv ac_cpp_err=yes
2594 1.6 tv fi
2595 1.6 tv if test -z "$ac_cpp_err"; then
2596 1.6 tv eval "$as_ac_Header=yes"
2597 1.6 tv else
2598 1.6 tv echo "$as_me: failed program was:" >&5
2599 1.6 tv cat conftest.$ac_ext >&5
2600 1.6 tv eval "$as_ac_Header=no"
2601 1.6 tv fi
2602 1.6 tv rm -f conftest.err conftest.$ac_ext
2603 1.6 tv fi
2604 1.20 bjh21 echo "$as_me:2604: result: `eval echo '${'$as_ac_Header'}'`" >&5
2605 1.6 tv echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
2606 1.6 tv if test `eval echo '${'$as_ac_Header'}'` = yes; then
2607 1.6 tv cat >>confdefs.h <<EOF
2608 1.6 tv #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
2609 1.6 tv EOF
2610 1.6 tv
2611 1.6 tv else
2612 1.11 tv test -f include/$ac_header || touch include/$ac_header
2613 1.6 tv fi
2614 1.6 tv done
2615 1.6 tv
2616 1.24 briggs for ac_header in rpc/types.h getopt.h netconfig.h
2617 1.7 tv do
2618 1.7 tv as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
2619 1.22 thorpej echo "$as_me:2619: checking for $ac_header" >&5
2620 1.7 tv echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
2621 1.7 tv if eval "test \"\${$as_ac_Header+set}\" = set"; then
2622 1.7 tv echo $ECHO_N "(cached) $ECHO_C" >&6
2623 1.7 tv else
2624 1.7 tv cat >conftest.$ac_ext <<_ACEOF
2625 1.22 thorpej #line 2625 "configure"
2626 1.7 tv #include "confdefs.h"
2627 1.7 tv #include <$ac_header>
2628 1.7 tv _ACEOF
2629 1.22 thorpej if { (eval echo "$as_me:2629: \"$ac_cpp conftest.$ac_ext\"") >&5
2630 1.7 tv (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2631 1.7 tv ac_status=$?
2632 1.7 tv egrep -v '^ *\+' conftest.er1 >conftest.err
2633 1.7 tv rm -f conftest.er1
2634 1.7 tv cat conftest.err >&5
2635 1.22 thorpej echo "$as_me:2635: \$? = $ac_status" >&5
2636 1.7 tv (exit $ac_status); } >/dev/null; then
2637 1.7 tv if test -s conftest.err; then
2638 1.7 tv ac_cpp_err=$ac_c_preproc_warn_flag
2639 1.7 tv else
2640 1.7 tv ac_cpp_err=
2641 1.7 tv fi
2642 1.7 tv else
2643 1.7 tv ac_cpp_err=yes
2644 1.7 tv fi
2645 1.7 tv if test -z "$ac_cpp_err"; then
2646 1.7 tv eval "$as_ac_Header=yes"
2647 1.7 tv else
2648 1.7 tv echo "$as_me: failed program was:" >&5
2649 1.7 tv cat conftest.$ac_ext >&5
2650 1.7 tv eval "$as_ac_Header=no"
2651 1.7 tv fi
2652 1.7 tv rm -f conftest.err conftest.$ac_ext
2653 1.7 tv fi
2654 1.22 thorpej echo "$as_me:2654: result: `eval echo '${'$as_ac_Header'}'`" >&5
2655 1.7 tv echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
2656 1.7 tv if test `eval echo '${'$as_ac_Header'}'` = yes; then
2657 1.7 tv cat >>confdefs.h <<EOF
2658 1.7 tv #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
2659 1.7 tv EOF
2660 1.7 tv
2661 1.7 tv else
2662 1.11 tv echo '#include "config.h"' >include/$ac_header.new
2663 1.11 tv echo '#include "'$srcdir/../../include/$ac_header'"' >>include/$ac_header.new
2664 1.11 tv if cmp include/$ac_header.new include/$ac_header >/dev/null 2>&1; then
2665 1.11 tv rm -f include/$ac_header.new
2666 1.11 tv else
2667 1.11 tv mv -f include/$ac_header.new include/$ac_header
2668 1.11 tv fi
2669 1.7 tv fi
2670 1.7 tv done
2671 1.7 tv
2672 1.6 tv # Typedefs.
2673 1.6 tv # On IRIX 5.3, sys/types and inttypes.h are conflicting.
2674 1.6 tv
2675 1.6 tv for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
2676 1.6 tv inttypes.h stdint.h unistd.h
2677 1.6 tv do
2678 1.6 tv as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
2679 1.22 thorpej echo "$as_me:2679: checking for $ac_header" >&5
2680 1.6 tv echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
2681 1.6 tv if eval "test \"\${$as_ac_Header+set}\" = set"; then
2682 1.6 tv echo $ECHO_N "(cached) $ECHO_C" >&6
2683 1.6 tv else
2684 1.6 tv cat >conftest.$ac_ext <<_ACEOF
2685 1.22 thorpej #line 2685 "configure"
2686 1.6 tv #include "confdefs.h"
2687 1.6 tv $ac_includes_default
2688 1.6 tv #include <$ac_header>
2689 1.6 tv _ACEOF
2690 1.6 tv rm -f conftest.$ac_objext
2691 1.22 thorpej if { (eval echo "$as_me:2691: \"$ac_compile\"") >&5
2692 1.6 tv (eval $ac_compile) 2>&5
2693 1.6 tv ac_status=$?
2694 1.22 thorpej echo "$as_me:2694: \$? = $ac_status" >&5
2695 1.6 tv (exit $ac_status); } &&
2696 1.6 tv { ac_try='test -s conftest.$ac_objext'
2697 1.22 thorpej { (eval echo "$as_me:2697: \"$ac_try\"") >&5
2698 1.6 tv (eval $ac_try) 2>&5
2699 1.6 tv ac_status=$?
2700 1.22 thorpej echo "$as_me:2700: \$? = $ac_status" >&5
2701 1.6 tv (exit $ac_status); }; }; then
2702 1.6 tv eval "$as_ac_Header=yes"
2703 1.6 tv else
2704 1.6 tv echo "$as_me: failed program was:" >&5
2705 1.6 tv cat conftest.$ac_ext >&5
2706 1.6 tv eval "$as_ac_Header=no"
2707 1.6 tv fi
2708 1.6 tv rm -f conftest.$ac_objext conftest.$ac_ext
2709 1.6 tv fi
2710 1.22 thorpej echo "$as_me:2710: result: `eval echo '${'$as_ac_Header'}'`" >&5
2711 1.6 tv echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
2712 1.6 tv if test `eval echo '${'$as_ac_Header'}'` = yes; then
2713 1.6 tv cat >>confdefs.h <<EOF
2714 1.6 tv #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
2715 1.6 tv EOF
2716 1.6 tv
2717 1.6 tv fi
2718 1.6 tv done
2719 1.6 tv
2720 1.22 thorpej echo "$as_me:2720: checking for size_t" >&5
2721 1.6 tv echo $ECHO_N "checking for size_t... $ECHO_C" >&6
2722 1.6 tv if test "${ac_cv_type_size_t+set}" = set; then
2723 1.6 tv echo $ECHO_N "(cached) $ECHO_C" >&6
2724 1.6 tv else
2725 1.6 tv cat >conftest.$ac_ext <<_ACEOF
2726 1.22 thorpej #line 2726 "configure"
2727 1.6 tv #include "confdefs.h"
2728 1.6 tv $ac_includes_default
2729 1.6 tv int
2730 1.6 tv main ()
2731 1.6 tv {
2732 1.6 tv if ((size_t *) 0)
2733 1.6 tv return 0;
2734 1.6 tv if (sizeof (size_t))
2735 1.6 tv return 0;
2736 1.6 tv ;
2737 1.6 tv return 0;
2738 1.6 tv }
2739 1.6 tv _ACEOF
2740 1.6 tv rm -f conftest.$ac_objext
2741 1.22 thorpej if { (eval echo "$as_me:2741: \"$ac_compile\"") >&5
2742 1.6 tv (eval $ac_compile) 2>&5
2743 1.6 tv ac_status=$?
2744 1.22 thorpej echo "$as_me:2744: \$? = $ac_status" >&5
2745 1.6 tv (exit $ac_status); } &&
2746 1.6 tv { ac_try='test -s conftest.$ac_objext'
2747 1.22 thorpej { (eval echo "$as_me:2747: \"$ac_try\"") >&5
2748 1.6 tv (eval $ac_try) 2>&5
2749 1.6 tv ac_status=$?
2750 1.22 thorpej echo "$as_me:2750: \$? = $ac_status" >&5
2751 1.6 tv (exit $ac_status); }; }; then
2752 1.6 tv ac_cv_type_size_t=yes
2753 1.6 tv else
2754 1.6 tv echo "$as_me: failed program was:" >&5
2755 1.6 tv cat conftest.$ac_ext >&5
2756 1.6 tv ac_cv_type_size_t=no
2757 1.6 tv fi
2758 1.6 tv rm -f conftest.$ac_objext conftest.$ac_ext
2759 1.6 tv fi
2760 1.22 thorpej echo "$as_me:2760: result: $ac_cv_type_size_t" >&5
2761 1.6 tv echo "${ECHO_T}$ac_cv_type_size_t" >&6
2762 1.6 tv if test $ac_cv_type_size_t = yes; then
2763 1.6 tv :
2764 1.6 tv else
2765 1.6 tv
2766 1.6 tv cat >>confdefs.h <<EOF
2767 1.6 tv #define size_t unsigned
2768 1.6 tv EOF
2769 1.6 tv
2770 1.6 tv fi
2771 1.6 tv
2772 1.22 thorpej echo "$as_me:2772: checking for id_t" >&5
2773 1.6 tv echo $ECHO_N "checking for id_t... $ECHO_C" >&6
2774 1.6 tv if test "${ac_cv_type_id_t+set}" = set; then
2775 1.6 tv echo $ECHO_N "(cached) $ECHO_C" >&6
2776 1.6 tv else
2777 1.6 tv cat >conftest.$ac_ext <<_ACEOF
2778 1.22 thorpej #line 2778 "configure"
2779 1.6 tv #include "confdefs.h"
2780 1.6 tv $ac_includes_default
2781 1.6 tv int
2782 1.6 tv main ()
2783 1.6 tv {
2784 1.6 tv if ((id_t *) 0)
2785 1.6 tv return 0;
2786 1.6 tv if (sizeof (id_t))
2787 1.6 tv return 0;
2788 1.6 tv ;
2789 1.6 tv return 0;
2790 1.6 tv }
2791 1.6 tv _ACEOF
2792 1.6 tv rm -f conftest.$ac_objext
2793 1.22 thorpej if { (eval echo "$as_me:2793: \"$ac_compile\"") >&5
2794 1.6 tv (eval $ac_compile) 2>&5
2795 1.6 tv ac_status=$?
2796 1.22 thorpej echo "$as_me:2796: \$? = $ac_status" >&5
2797 1.6 tv (exit $ac_status); } &&
2798 1.6 tv { ac_try='test -s conftest.$ac_objext'
2799 1.22 thorpej { (eval echo "$as_me:2799: \"$ac_try\"") >&5
2800 1.6 tv (eval $ac_try) 2>&5
2801 1.6 tv ac_status=$?
2802 1.22 thorpej echo "$as_me:2802: \$? = $ac_status" >&5
2803 1.6 tv (exit $ac_status); }; }; then
2804 1.6 tv ac_cv_type_id_t=yes
2805 1.6 tv else
2806 1.6 tv echo "$as_me: failed program was:" >&5
2807 1.6 tv cat conftest.$ac_ext >&5
2808 1.6 tv ac_cv_type_id_t=no
2809 1.6 tv fi
2810 1.6 tv rm -f conftest.$ac_objext conftest.$ac_ext
2811 1.6 tv fi
2812 1.22 thorpej echo "$as_me:2812: result: $ac_cv_type_id_t" >&5
2813 1.6 tv echo "${ECHO_T}$ac_cv_type_id_t" >&6
2814 1.6 tv if test $ac_cv_type_id_t = yes; then
2815 1.6 tv
2816 1.6 tv cat >>confdefs.h <<EOF
2817 1.6 tv #define HAVE_ID_T 1
2818 1.6 tv EOF
2819 1.6 tv
2820 1.6 tv fi
2821 1.22 thorpej echo "$as_me:2821: checking for long long" >&5
2822 1.6 tv echo $ECHO_N "checking for long long... $ECHO_C" >&6
2823 1.6 tv if test "${ac_cv_type_long_long+set}" = set; then
2824 1.6 tv echo $ECHO_N "(cached) $ECHO_C" >&6
2825 1.6 tv else
2826 1.6 tv cat >conftest.$ac_ext <<_ACEOF
2827 1.22 thorpej #line 2827 "configure"
2828 1.6 tv #include "confdefs.h"
2829 1.6 tv $ac_includes_default
2830 1.6 tv int
2831 1.6 tv main ()
2832 1.6 tv {
2833 1.6 tv if ((long long *) 0)
2834 1.6 tv return 0;
2835 1.6 tv if (sizeof (long long))
2836 1.6 tv return 0;
2837 1.6 tv ;
2838 1.6 tv return 0;
2839 1.6 tv }
2840 1.6 tv _ACEOF
2841 1.6 tv rm -f conftest.$ac_objext
2842 1.22 thorpej if { (eval echo "$as_me:2842: \"$ac_compile\"") >&5
2843 1.6 tv (eval $ac_compile) 2>&5
2844 1.6 tv ac_status=$?
2845 1.22 thorpej echo "$as_me:2845: \$? = $ac_status" >&5
2846 1.6 tv (exit $ac_status); } &&
2847 1.6 tv { ac_try='test -s conftest.$ac_objext'
2848 1.22 thorpej { (eval echo "$as_me:2848: \"$ac_try\"") >&5
2849 1.6 tv (eval $ac_try) 2>&5
2850 1.6 tv ac_status=$?
2851 1.22 thorpej echo "$as_me:2851: \$? = $ac_status" >&5
2852 1.6 tv (exit $ac_status); }; }; then
2853 1.6 tv ac_cv_type_long_long=yes
2854 1.6 tv else
2855 1.6 tv echo "$as_me: failed program was:" >&5
2856 1.6 tv cat conftest.$ac_ext >&5
2857 1.6 tv ac_cv_type_long_long=no
2858 1.6 tv fi
2859 1.6 tv rm -f conftest.$ac_objext conftest.$ac_ext
2860 1.6 tv fi
2861 1.22 thorpej echo "$as_me:2861: result: $ac_cv_type_long_long" >&5
2862 1.6 tv echo "${ECHO_T}$ac_cv_type_long_long" >&6
2863 1.6 tv if test $ac_cv_type_long_long = yes; then
2864 1.6 tv
2865 1.6 tv cat >>confdefs.h <<EOF
2866 1.6 tv #define HAVE_LONG_LONG 1
2867 1.6 tv EOF
2868 1.6 tv
2869 1.6 tv fi
2870 1.22 thorpej echo "$as_me:2870: checking for u_quad_t" >&5
2871 1.7 tv echo $ECHO_N "checking for u_quad_t... $ECHO_C" >&6
2872 1.7 tv if test "${ac_cv_type_u_quad_t+set}" = set; then
2873 1.7 tv echo $ECHO_N "(cached) $ECHO_C" >&6
2874 1.7 tv else
2875 1.7 tv cat >conftest.$ac_ext <<_ACEOF
2876 1.22 thorpej #line 2876 "configure"
2877 1.7 tv #include "confdefs.h"
2878 1.7 tv $ac_includes_default
2879 1.7 tv int
2880 1.7 tv main ()
2881 1.7 tv {
2882 1.7 tv if ((u_quad_t *) 0)
2883 1.7 tv return 0;
2884 1.7 tv if (sizeof (u_quad_t))
2885 1.7 tv return 0;
2886 1.7 tv ;
2887 1.7 tv return 0;
2888 1.7 tv }
2889 1.7 tv _ACEOF
2890 1.7 tv rm -f conftest.$ac_objext
2891 1.22 thorpej if { (eval echo "$as_me:2891: \"$ac_compile\"") >&5
2892 1.7 tv (eval $ac_compile) 2>&5
2893 1.7 tv ac_status=$?
2894 1.22 thorpej echo "$as_me:2894: \$? = $ac_status" >&5
2895 1.7 tv (exit $ac_status); } &&
2896 1.7 tv { ac_try='test -s conftest.$ac_objext'
2897 1.22 thorpej { (eval echo "$as_me:2897: \"$ac_try\"") >&5
2898 1.7 tv (eval $ac_try) 2>&5
2899 1.7 tv ac_status=$?
2900 1.22 thorpej echo "$as_me:2900: \$? = $ac_status" >&5
2901 1.7 tv (exit $ac_status); }; }; then
2902 1.7 tv ac_cv_type_u_quad_t=yes
2903 1.7 tv else
2904 1.7 tv echo "$as_me: failed program was:" >&5
2905 1.7 tv cat conftest.$ac_ext >&5
2906 1.7 tv ac_cv_type_u_quad_t=no
2907 1.7 tv fi
2908 1.7 tv rm -f conftest.$ac_objext conftest.$ac_ext
2909 1.7 tv fi
2910 1.22 thorpej echo "$as_me:2910: result: $ac_cv_type_u_quad_t" >&5
2911 1.7 tv echo "${ECHO_T}$ac_cv_type_u_quad_t" >&6
2912 1.7 tv if test $ac_cv_type_u_quad_t = yes; then
2913 1.7 tv
2914 1.7 tv cat >>confdefs.h <<EOF
2915 1.7 tv #define HAVE_U_QUAD_T 1
2916 1.7 tv EOF
2917 1.7 tv
2918 1.7 tv fi
2919 1.35 thorpej
2920 1.35 thorpej echo "$as_me:2920: checking for socklen_t" >&5
2921 1.34 thorpej echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
2922 1.34 thorpej if test "${ac_cv_type_socklen_t+set}" = set; then
2923 1.34 thorpej echo $ECHO_N "(cached) $ECHO_C" >&6
2924 1.34 thorpej else
2925 1.34 thorpej cat >conftest.$ac_ext <<_ACEOF
2926 1.35 thorpej #line 2926 "configure"
2927 1.34 thorpej #include "confdefs.h"
2928 1.35 thorpej #include <sys/types.h>
2929 1.35 thorpej #include <sys/socket.h>
2930 1.35 thorpej
2931 1.34 thorpej int
2932 1.34 thorpej main ()
2933 1.34 thorpej {
2934 1.34 thorpej if ((socklen_t *) 0)
2935 1.34 thorpej return 0;
2936 1.34 thorpej if (sizeof (socklen_t))
2937 1.34 thorpej return 0;
2938 1.34 thorpej ;
2939 1.34 thorpej return 0;
2940 1.34 thorpej }
2941 1.34 thorpej _ACEOF
2942 1.34 thorpej rm -f conftest.$ac_objext
2943 1.35 thorpej if { (eval echo "$as_me:2943: \"$ac_compile\"") >&5
2944 1.34 thorpej (eval $ac_compile) 2>&5
2945 1.34 thorpej ac_status=$?
2946 1.35 thorpej echo "$as_me:2946: \$? = $ac_status" >&5
2947 1.34 thorpej (exit $ac_status); } &&
2948 1.34 thorpej { ac_try='test -s conftest.$ac_objext'
2949 1.35 thorpej { (eval echo "$as_me:2949: \"$ac_try\"") >&5
2950 1.34 thorpej (eval $ac_try) 2>&5
2951 1.34 thorpej ac_status=$?
2952 1.35 thorpej echo "$as_me:2952: \$? = $ac_status" >&5
2953 1.34 thorpej (exit $ac_status); }; }; then
2954 1.34 thorpej ac_cv_type_socklen_t=yes
2955 1.34 thorpej else
2956 1.34 thorpej echo "$as_me: failed program was:" >&5
2957 1.34 thorpej cat conftest.$ac_ext >&5
2958 1.34 thorpej ac_cv_type_socklen_t=no
2959 1.34 thorpej fi
2960 1.34 thorpej rm -f conftest.$ac_objext conftest.$ac_ext
2961 1.34 thorpej fi
2962 1.35 thorpej echo "$as_me:2962: result: $ac_cv_type_socklen_t" >&5
2963 1.34 thorpej echo "${ECHO_T}$ac_cv_type_socklen_t" >&6
2964 1.34 thorpej if test $ac_cv_type_socklen_t = yes; then
2965 1.35 thorpej cat >>confdefs.h <<\EOF
2966 1.34 thorpej #define HAVE_SOCKLEN_T 1
2967 1.34 thorpej EOF
2968 1.34 thorpej
2969 1.34 thorpej fi
2970 1.34 thorpej
2971 1.35 thorpej echo "$as_me:2971: checking for uint8_t" >&5
2972 1.9 tv echo $ECHO_N "checking for uint8_t... $ECHO_C" >&6
2973 1.9 tv if test "${ac_cv_type_uint8_t+set}" = set; then
2974 1.6 tv echo $ECHO_N "(cached) $ECHO_C" >&6
2975 1.6 tv else
2976 1.6 tv cat >conftest.$ac_ext <<_ACEOF
2977 1.35 thorpej #line 2977 "configure"
2978 1.6 tv #include "confdefs.h"
2979 1.6 tv $ac_includes_default
2980 1.6 tv int
2981 1.6 tv main ()
2982 1.6 tv {
2983 1.9 tv if ((uint8_t *) 0)
2984 1.6 tv return 0;
2985 1.9 tv if (sizeof (uint8_t))
2986 1.6 tv return 0;
2987 1.6 tv ;
2988 1.6 tv return 0;
2989 1.6 tv }
2990 1.6 tv _ACEOF
2991 1.6 tv rm -f conftest.$ac_objext
2992 1.35 thorpej if { (eval echo "$as_me:2992: \"$ac_compile\"") >&5
2993 1.6 tv (eval $ac_compile) 2>&5
2994 1.6 tv ac_status=$?
2995 1.35 thorpej echo "$as_me:2995: \$? = $ac_status" >&5
2996 1.6 tv (exit $ac_status); } &&
2997 1.6 tv { ac_try='test -s conftest.$ac_objext'
2998 1.35 thorpej { (eval echo "$as_me:2998: \"$ac_try\"") >&5
2999 1.6 tv (eval $ac_try) 2>&5
3000 1.6 tv ac_status=$?
3001 1.35 thorpej echo "$as_me:3001: \$? = $ac_status" >&5
3002 1.6 tv (exit $ac_status); }; }; then
3003 1.9 tv ac_cv_type_uint8_t=yes
3004 1.9 tv else
3005 1.9 tv echo "$as_me: failed program was:" >&5
3006 1.9 tv cat conftest.$ac_ext >&5
3007 1.9 tv ac_cv_type_uint8_t=no
3008 1.9 tv fi
3009 1.9 tv rm -f conftest.$ac_objext conftest.$ac_ext
3010 1.9 tv fi
3011 1.35 thorpej echo "$as_me:3011: result: $ac_cv_type_uint8_t" >&5
3012 1.9 tv echo "${ECHO_T}$ac_cv_type_uint8_t" >&6
3013 1.9 tv if test $ac_cv_type_uint8_t = yes; then
3014 1.9 tv :
3015 1.9 tv else
3016 1.9 tv
3017 1.35 thorpej echo "$as_me:3017: checking for u_int8_t" >&5
3018 1.9 tv echo $ECHO_N "checking for u_int8_t... $ECHO_C" >&6
3019 1.9 tv if test "${ac_cv_type_u_int8_t+set}" = set; then
3020 1.9 tv echo $ECHO_N "(cached) $ECHO_C" >&6
3021 1.9 tv else
3022 1.9 tv cat >conftest.$ac_ext <<_ACEOF
3023 1.35 thorpej #line 3023 "configure"
3024 1.9 tv #include "confdefs.h"
3025 1.9 tv $ac_includes_default
3026 1.9 tv int
3027 1.9 tv main ()
3028 1.9 tv {
3029 1.9 tv if ((u_int8_t *) 0)
3030 1.9 tv return 0;
3031 1.9 tv if (sizeof (u_int8_t))
3032 1.9 tv return 0;
3033 1.9 tv ;
3034 1.9 tv return 0;
3035 1.9 tv }
3036 1.9 tv _ACEOF
3037 1.9 tv rm -f conftest.$ac_objext
3038 1.35 thorpej if { (eval echo "$as_me:3038: \"$ac_compile\"") >&5
3039 1.9 tv (eval $ac_compile) 2>&5
3040 1.9 tv ac_status=$?
3041 1.35 thorpej echo "$as_me:3041: \$? = $ac_status" >&5
3042 1.9 tv (exit $ac_status); } &&
3043 1.9 tv { ac_try='test -s conftest.$ac_objext'
3044 1.35 thorpej { (eval echo "$as_me:3044: \"$ac_try\"") >&5
3045 1.9 tv (eval $ac_try) 2>&5
3046 1.9 tv ac_status=$?
3047 1.35 thorpej echo "$as_me:3047: \$? = $ac_status" >&5
3048 1.9 tv (exit $ac_status); }; }; then
3049 1.6 tv ac_cv_type_u_int8_t=yes
3050 1.6 tv else
3051 1.6 tv echo "$as_me: failed program was:" >&5
3052 1.6 tv cat conftest.$ac_ext >&5
3053 1.6 tv ac_cv_type_u_int8_t=no
3054 1.6 tv fi
3055 1.6 tv rm -f conftest.$ac_objext conftest.$ac_ext
3056 1.6 tv fi
3057 1.35 thorpej echo "$as_me:3057: result: $ac_cv_type_u_int8_t" >&5
3058 1.9 tv echo "${ECHO_T}$ac_cv_type_u_int8_t" >&6
3059 1.9 tv if test $ac_cv_type_u_int8_t = yes; then
3060 1.9 tv cat >>confdefs.h <<\EOF
3061 1.9 tv #define uint8_t u_int8_t
3062 1.9 tv EOF
3063 1.9 tv
3064 1.9 tv else
3065 1.35 thorpej { { echo "$as_me:3065: error: cannot find a suitable type for uint8_t" >&5
3066 1.9 tv echo "$as_me: error: cannot find a suitable type for uint8_t" >&2;}
3067 1.9 tv { (exit 1); exit 1; }; }
3068 1.9 tv fi
3069 1.9 tv
3070 1.9 tv fi
3071 1.9 tv
3072 1.35 thorpej echo "$as_me:3072: checking for u_int8_t" >&5
3073 1.9 tv echo $ECHO_N "checking for u_int8_t... $ECHO_C" >&6
3074 1.9 tv if test "${ac_cv_type_u_int8_t+set}" = set; then
3075 1.9 tv echo $ECHO_N "(cached) $ECHO_C" >&6
3076 1.9 tv else
3077 1.9 tv cat >conftest.$ac_ext <<_ACEOF
3078 1.35 thorpej #line 3078 "configure"
3079 1.9 tv #include "confdefs.h"
3080 1.9 tv $ac_includes_default
3081 1.9 tv int
3082 1.9 tv main ()
3083 1.9 tv {
3084 1.9 tv if ((u_int8_t *) 0)
3085 1.9 tv return 0;
3086 1.9 tv if (sizeof (u_int8_t))
3087 1.9 tv return 0;
3088 1.9 tv ;
3089 1.9 tv return 0;
3090 1.9 tv }
3091 1.9 tv _ACEOF
3092 1.9 tv rm -f conftest.$ac_objext
3093 1.35 thorpej if { (eval echo "$as_me:3093: \"$ac_compile\"") >&5
3094 1.9 tv (eval $ac_compile) 2>&5
3095 1.9 tv ac_status=$?
3096 1.35 thorpej echo "$as_me:3096: \$? = $ac_status" >&5
3097 1.9 tv (exit $ac_status); } &&
3098 1.9 tv { ac_try='test -s conftest.$ac_objext'
3099 1.35 thorpej { (eval echo "$as_me:3099: \"$ac_try\"") >&5
3100 1.9 tv (eval $ac_try) 2>&5
3101 1.9 tv ac_status=$?
3102 1.35 thorpej echo "$as_me:3102: \$? = $ac_status" >&5
3103 1.9 tv (exit $ac_status); }; }; then
3104 1.9 tv ac_cv_type_u_int8_t=yes
3105 1.9 tv else
3106 1.9 tv echo "$as_me: failed program was:" >&5
3107 1.9 tv cat conftest.$ac_ext >&5
3108 1.9 tv ac_cv_type_u_int8_t=no
3109 1.9 tv fi
3110 1.9 tv rm -f conftest.$ac_objext conftest.$ac_ext
3111 1.9 tv fi
3112 1.35 thorpej echo "$as_me:3112: result: $ac_cv_type_u_int8_t" >&5
3113 1.6 tv echo "${ECHO_T}$ac_cv_type_u_int8_t" >&6
3114 1.6 tv if test $ac_cv_type_u_int8_t = yes; then
3115 1.6 tv :
3116 1.6 tv else
3117 1.6 tv
3118 1.35 thorpej echo "$as_me:3118: checking for uint8_t" >&5
3119 1.6 tv echo $ECHO_N "checking for uint8_t... $ECHO_C" >&6
3120 1.6 tv if test "${ac_cv_type_uint8_t+set}" = set; then
3121 1.6 tv echo $ECHO_N "(cached) $ECHO_C" >&6
3122 1.6 tv else
3123 1.6 tv cat >conftest.$ac_ext <<_ACEOF
3124 1.35 thorpej #line 3124 "configure"
3125 1.6 tv #include "confdefs.h"
3126 1.6 tv $ac_includes_default
3127 1.6 tv int
3128 1.6 tv main ()
3129 1.6 tv {
3130 1.6 tv if ((uint8_t *) 0)
3131 1.6 tv return 0;
3132 1.6 tv if (sizeof (uint8_t))
3133 1.6 tv return 0;
3134 1.6 tv ;
3135 1.6 tv return 0;
3136 1.6 tv }
3137 1.6 tv _ACEOF
3138 1.6 tv rm -f conftest.$ac_objext
3139 1.35 thorpej if { (eval echo "$as_me:3139: \"$ac_compile\"") >&5
3140 1.6 tv (eval $ac_compile) 2>&5
3141 1.6 tv ac_status=$?
3142 1.35 thorpej echo "$as_me:3142: \$? = $ac_status" >&5
3143 1.6 tv (exit $ac_status); } &&
3144 1.6 tv { ac_try='test -s conftest.$ac_objext'
3145 1.35 thorpej { (eval echo "$as_me:3145: \"$ac_try\"") >&5
3146 1.6 tv (eval $ac_try) 2>&5
3147 1.6 tv ac_status=$?
3148 1.35 thorpej echo "$as_me:3148: \$? = $ac_status" >&5
3149 1.6 tv (exit $ac_status); }; }; then
3150 1.6 tv ac_cv_type_uint8_t=yes
3151 1.4 tv else
3152 1.4 tv echo "$as_me: failed program was:" >&5
3153 1.6 tv cat conftest.$ac_ext >&5
3154 1.6 tv ac_cv_type_uint8_t=no
3155 1.4 tv fi
3156 1.6 tv rm -f conftest.$ac_objext conftest.$ac_ext
3157 1.4 tv fi
3158 1.35 thorpej echo "$as_me:3158: result: $ac_cv_type_uint8_t" >&5
3159 1.6 tv echo "${ECHO_T}$ac_cv_type_uint8_t" >&6
3160 1.6 tv if test $ac_cv_type_uint8_t = yes; then
3161 1.6 tv cat >>confdefs.h <<\EOF
3162 1.6 tv #define u_int8_t uint8_t
3163 1.4 tv EOF
3164 1.4 tv
3165 1.6 tv else
3166 1.35 thorpej { { echo "$as_me:3166: error: cannot find a suitable type for u_int8_t" >&5
3167 1.6 tv echo "$as_me: error: cannot find a suitable type for u_int8_t" >&2;}
3168 1.6 tv { (exit 1); exit 1; }; }
3169 1.6 tv fi
3170 1.6 tv
3171 1.4 tv fi
3172 1.4 tv
3173 1.35 thorpej echo "$as_me:3173: checking for uint16_t" >&5
3174 1.9 tv echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6
3175 1.9 tv if test "${ac_cv_type_uint16_t+set}" = set; then
3176 1.9 tv echo $ECHO_N "(cached) $ECHO_C" >&6
3177 1.9 tv else
3178 1.9 tv cat >conftest.$ac_ext <<_ACEOF
3179 1.35 thorpej #line 3179 "configure"
3180 1.9 tv #include "confdefs.h"
3181 1.9 tv $ac_includes_default
3182 1.9 tv int
3183 1.9 tv main ()
3184 1.9 tv {
3185 1.9 tv if ((uint16_t *) 0)
3186 1.9 tv return 0;
3187 1.9 tv if (sizeof (uint16_t))
3188 1.9 tv return 0;
3189 1.9 tv ;
3190 1.9 tv return 0;
3191 1.9 tv }
3192 1.9 tv _ACEOF
3193 1.9 tv rm -f conftest.$ac_objext
3194 1.35 thorpej if { (eval echo "$as_me:3194: \"$ac_compile\"") >&5
3195 1.9 tv (eval $ac_compile) 2>&5
3196 1.9 tv ac_status=$?
3197 1.35 thorpej echo "$as_me:3197: \$? = $ac_status" >&5
3198 1.9 tv (exit $ac_status); } &&
3199 1.9 tv { ac_try='test -s conftest.$ac_objext'
3200 1.35 thorpej { (eval echo "$as_me:3200: \"$ac_try\"") >&5
3201 1.9 tv (eval $ac_try) 2>&5
3202 1.9 tv ac_status=$?
3203 1.35 thorpej echo "$as_me:3203: \$? = $ac_status" >&5
3204 1.9 tv (exit $ac_status); }; }; then
3205 1.9 tv ac_cv_type_uint16_t=yes
3206 1.9 tv else
3207 1.9 tv echo "$as_me: failed program was:" >&5
3208 1.9 tv cat conftest.$ac_ext >&5
3209 1.9 tv ac_cv_type_uint16_t=no
3210 1.9 tv fi
3211 1.9 tv rm -f conftest.$ac_objext conftest.$ac_ext
3212 1.9 tv fi
3213 1.35 thorpej echo "$as_me:3213: result: $ac_cv_type_uint16_t" >&5
3214 1.9 tv echo "${ECHO_T}$ac_cv_type_uint16_t" >&6
3215 1.9 tv if test $ac_cv_type_uint16_t = yes; then
3216 1.9 tv :
3217 1.9 tv else
3218 1.9 tv
3219 1.35 thorpej echo "$as_me:3219: checking for u_int16_t" >&5
3220 1.9 tv echo $ECHO_N "checking for u_int16_t... $ECHO_C" >&6
3221 1.9 tv if test "${ac_cv_type_u_int16_t+set}" = set; then
3222 1.9 tv echo $ECHO_N "(cached) $ECHO_C" >&6
3223 1.9 tv else
3224 1.9 tv cat >conftest.$ac_ext <<_ACEOF
3225 1.35 thorpej #line 3225 "configure"
3226 1.9 tv #include "confdefs.h"
3227 1.9 tv $ac_includes_default
3228 1.9 tv int
3229 1.9 tv main ()
3230 1.9 tv {
3231 1.9 tv if ((u_int16_t *) 0)
3232 1.9 tv return 0;
3233 1.9 tv if (sizeof (u_int16_t))
3234 1.9 tv return 0;
3235 1.9 tv ;
3236 1.9 tv return 0;
3237 1.9 tv }
3238 1.9 tv _ACEOF
3239 1.9 tv rm -f conftest.$ac_objext
3240 1.35 thorpej if { (eval echo "$as_me:3240: \"$ac_compile\"") >&5
3241 1.9 tv (eval $ac_compile) 2>&5
3242 1.9 tv ac_status=$?
3243 1.35 thorpej echo "$as_me:3243: \$? = $ac_status" >&5
3244 1.9 tv (exit $ac_status); } &&
3245 1.9 tv { ac_try='test -s conftest.$ac_objext'
3246 1.35 thorpej { (eval echo "$as_me:3246: \"$ac_try\"") >&5
3247 1.9 tv (eval $ac_try) 2>&5
3248 1.9 tv ac_status=$?
3249 1.35 thorpej echo "$as_me:3249: \$? = $ac_status" >&5
3250 1.9 tv (exit $ac_status); }; }; then
3251 1.9 tv ac_cv_type_u_int16_t=yes
3252 1.9 tv else
3253 1.9 tv echo "$as_me: failed program was:" >&5
3254 1.9 tv cat conftest.$ac_ext >&5
3255 1.9 tv ac_cv_type_u_int16_t=no
3256 1.9 tv fi
3257 1.9 tv rm -f conftest.$ac_objext conftest.$ac_ext
3258 1.9 tv fi
3259 1.35 thorpej echo "$as_me:3259: result: $ac_cv_type_u_int16_t" >&5
3260 1.9 tv echo "${ECHO_T}$ac_cv_type_u_int16_t" >&6
3261 1.9 tv if test $ac_cv_type_u_int16_t = yes; then
3262 1.9 tv cat >>confdefs.h <<\EOF
3263 1.9 tv #define uint16_t u_int16_t
3264 1.9 tv EOF
3265 1.9 tv
3266 1.9 tv else
3267 1.35 thorpej { { echo "$as_me:3267: error: cannot find a suitable type for uint16_t" >&5
3268 1.9 tv echo "$as_me: error: cannot find a suitable type for uint16_t" >&2;}
3269 1.9 tv { (exit 1); exit 1; }; }
3270 1.9 tv fi
3271 1.9 tv
3272 1.9 tv fi
3273 1.9 tv
3274 1.35 thorpej echo "$as_me:3274: checking for u_int16_t" >&5
3275 1.6 tv echo $ECHO_N "checking for u_int16_t... $ECHO_C" >&6
3276 1.6 tv if test "${ac_cv_type_u_int16_t+set}" = set; then
3277 1.1 tv echo $ECHO_N "(cached) $ECHO_C" >&6
3278 1.1 tv else
3279 1.1 tv cat >conftest.$ac_ext <<_ACEOF
3280 1.35 thorpej #line 3280 "configure"
3281 1.1 tv #include "confdefs.h"
3282 1.6 tv $ac_includes_default
3283 1.6 tv int
3284 1.6 tv main ()
3285 1.6 tv {
3286 1.6 tv if ((u_int16_t *) 0)
3287 1.6 tv return 0;
3288 1.6 tv if (sizeof (u_int16_t))
3289 1.6 tv return 0;
3290 1.6 tv ;
3291 1.6 tv return 0;
3292 1.6 tv }
3293 1.1 tv _ACEOF
3294 1.6 tv rm -f conftest.$ac_objext
3295 1.35 thorpej if { (eval echo "$as_me:3295: \"$ac_compile\"") >&5
3296 1.6 tv (eval $ac_compile) 2>&5
3297 1.6 tv ac_status=$?
3298 1.35 thorpej echo "$as_me:3298: \$? = $ac_status" >&5
3299 1.6 tv (exit $ac_status); } &&
3300 1.6 tv { ac_try='test -s conftest.$ac_objext'
3301 1.35 thorpej { (eval echo "$as_me:3301: \"$ac_try\"") >&5
3302 1.6 tv (eval $ac_try) 2>&5
3303 1.1 tv ac_status=$?
3304 1.35 thorpej echo "$as_me:3304: \$? = $ac_status" >&5
3305 1.6 tv (exit $ac_status); }; }; then
3306 1.6 tv ac_cv_type_u_int16_t=yes
3307 1.1 tv else
3308 1.6 tv echo "$as_me: failed program was:" >&5
3309 1.6 tv cat conftest.$ac_ext >&5
3310 1.6 tv ac_cv_type_u_int16_t=no
3311 1.6 tv fi
3312 1.6 tv rm -f conftest.$ac_objext conftest.$ac_ext
3313 1.1 tv fi
3314 1.35 thorpej echo "$as_me:3314: result: $ac_cv_type_u_int16_t" >&5
3315 1.6 tv echo "${ECHO_T}$ac_cv_type_u_int16_t" >&6
3316 1.6 tv if test $ac_cv_type_u_int16_t = yes; then
3317 1.6 tv :
3318 1.1 tv else
3319 1.1 tv
3320 1.35 thorpej echo "$as_me:3320: checking for uint16_t" >&5
3321 1.6 tv echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6
3322 1.6 tv if test "${ac_cv_type_uint16_t+set}" = set; then
3323 1.6 tv echo $ECHO_N "(cached) $ECHO_C" >&6
3324 1.6 tv else
3325 1.1 tv cat >conftest.$ac_ext <<_ACEOF
3326 1.35 thorpej #line 3326 "configure"
3327 1.1 tv #include "confdefs.h"
3328 1.6 tv $ac_includes_default
3329 1.6 tv int
3330 1.6 tv main ()
3331 1.6 tv {
3332 1.6 tv if ((uint16_t *) 0)
3333 1.6 tv return 0;
3334 1.6 tv if (sizeof (uint16_t))
3335 1.6 tv return 0;
3336 1.6 tv ;
3337 1.6 tv return 0;
3338 1.6 tv }
3339 1.1 tv _ACEOF
3340 1.6 tv rm -f conftest.$ac_objext
3341 1.35 thorpej if { (eval echo "$as_me:3341: \"$ac_compile\"") >&5
3342 1.6 tv (eval $ac_compile) 2>&5
3343 1.6 tv ac_status=$?
3344 1.35 thorpej echo "$as_me:3344: \$? = $ac_status" >&5
3345 1.6 tv (exit $ac_status); } &&
3346 1.6 tv { ac_try='test -s conftest.$ac_objext'
3347 1.35 thorpej { (eval echo "$as_me:3347: \"$ac_try\"") >&5
3348 1.6 tv (eval $ac_try) 2>&5
3349 1.6 tv ac_status=$?
3350 1.35 thorpej echo "$as_me:3350: \$? = $ac_status" >&5
3351 1.6 tv (exit $ac_status); }; }; then
3352 1.6 tv ac_cv_type_uint16_t=yes
3353 1.1 tv else
3354 1.6 tv echo "$as_me: failed program was:" >&5
3355 1.6 tv cat conftest.$ac_ext >&5
3356 1.6 tv ac_cv_type_uint16_t=no
3357 1.1 tv fi
3358 1.6 tv rm -f conftest.$ac_objext conftest.$ac_ext
3359 1.1 tv fi
3360 1.35 thorpej echo "$as_me:3360: result: $ac_cv_type_uint16_t" >&5
3361 1.6 tv echo "${ECHO_T}$ac_cv_type_uint16_t" >&6
3362 1.6 tv if test $ac_cv_type_uint16_t = yes; then
3363 1.6 tv cat >>confdefs.h <<\EOF
3364 1.6 tv #define u_int16_t uint16_t
3365 1.6 tv EOF
3366 1.1 tv
3367 1.1 tv else
3368 1.35 thorpej { { echo "$as_me:3368: error: cannot find a suitable type for u_int16_t" >&5
3369 1.6 tv echo "$as_me: error: cannot find a suitable type for u_int16_t" >&2;}
3370 1.6 tv { (exit 1); exit 1; }; }
3371 1.1 tv fi
3372 1.1 tv
3373 1.1 tv fi
3374 1.1 tv
3375 1.35 thorpej echo "$as_me:3375: checking for uint32_t" >&5
3376 1.9 tv echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6
3377 1.9 tv if test "${ac_cv_type_uint32_t+set}" = set; then
3378 1.9 tv echo $ECHO_N "(cached) $ECHO_C" >&6
3379 1.9 tv else
3380 1.9 tv cat >conftest.$ac_ext <<_ACEOF
3381 1.35 thorpej #line 3381 "configure"
3382 1.9 tv #include "confdefs.h"
3383 1.9 tv $ac_includes_default
3384 1.9 tv int
3385 1.9 tv main ()
3386 1.9 tv {
3387 1.9 tv if ((uint32_t *) 0)
3388 1.9 tv return 0;
3389 1.9 tv if (sizeof (uint32_t))
3390 1.9 tv return 0;
3391 1.9 tv ;
3392 1.9 tv return 0;
3393 1.9 tv }
3394 1.9 tv _ACEOF
3395 1.9 tv rm -f conftest.$ac_objext
3396 1.35 thorpej if { (eval echo "$as_me:3396: \"$ac_compile\"") >&5
3397 1.9 tv (eval $ac_compile) 2>&5
3398 1.9 tv ac_status=$?
3399 1.35 thorpej echo "$as_me:3399: \$? = $ac_status" >&5
3400 1.9 tv (exit $ac_status); } &&
3401 1.9 tv { ac_try='test -s conftest.$ac_objext'
3402 1.35 thorpej { (eval echo "$as_me:3402: \"$ac_try\"") >&5
3403 1.9 tv (eval $ac_try) 2>&5
3404 1.9 tv ac_status=$?
3405 1.35 thorpej echo "$as_me:3405: \$? = $ac_status" >&5
3406 1.9 tv (exit $ac_status); }; }; then
3407 1.9 tv ac_cv_type_uint32_t=yes
3408 1.9 tv else
3409 1.9 tv echo "$as_me: failed program was:" >&5
3410 1.9 tv cat conftest.$ac_ext >&5
3411 1.9 tv ac_cv_type_uint32_t=no
3412 1.9 tv fi
3413 1.9 tv rm -f conftest.$ac_objext conftest.$ac_ext
3414 1.9 tv fi
3415 1.35 thorpej echo "$as_me:3415: result: $ac_cv_type_uint32_t" >&5
3416 1.9 tv echo "${ECHO_T}$ac_cv_type_uint32_t" >&6
3417 1.9 tv if test $ac_cv_type_uint32_t = yes; then
3418 1.9 tv :
3419 1.9 tv else
3420 1.9 tv
3421 1.35 thorpej echo "$as_me:3421: checking for u_int32_t" >&5
3422 1.6 tv echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6
3423 1.6 tv if test "${ac_cv_type_u_int32_t+set}" = set; then
3424 1.6 tv echo $ECHO_N "(cached) $ECHO_C" >&6
3425 1.1 tv else
3426 1.1 tv cat >conftest.$ac_ext <<_ACEOF
3427 1.35 thorpej #line 3427 "configure"
3428 1.9 tv #include "confdefs.h"
3429 1.9 tv $ac_includes_default
3430 1.9 tv int
3431 1.9 tv main ()
3432 1.9 tv {
3433 1.9 tv if ((u_int32_t *) 0)
3434 1.9 tv return 0;
3435 1.9 tv if (sizeof (u_int32_t))
3436 1.9 tv return 0;
3437 1.9 tv ;
3438 1.9 tv return 0;
3439 1.9 tv }
3440 1.9 tv _ACEOF
3441 1.9 tv rm -f conftest.$ac_objext
3442 1.35 thorpej if { (eval echo "$as_me:3442: \"$ac_compile\"") >&5
3443 1.9 tv (eval $ac_compile) 2>&5
3444 1.9 tv ac_status=$?
3445 1.35 thorpej echo "$as_me:3445: \$? = $ac_status" >&5
3446 1.9 tv (exit $ac_status); } &&
3447 1.9 tv { ac_try='test -s conftest.$ac_objext'
3448 1.35 thorpej { (eval echo "$as_me:3448: \"$ac_try\"") >&5
3449 1.9 tv (eval $ac_try) 2>&5
3450 1.9 tv ac_status=$?
3451 1.35 thorpej echo "$as_me:3451: \$? = $ac_status" >&5
3452 1.9 tv (exit $ac_status); }; }; then
3453 1.9 tv ac_cv_type_u_int32_t=yes
3454 1.9 tv else
3455 1.9 tv echo "$as_me: failed program was:" >&5
3456 1.9 tv cat conftest.$ac_ext >&5
3457 1.9 tv ac_cv_type_u_int32_t=no
3458 1.9 tv fi
3459 1.9 tv rm -f conftest.$ac_objext conftest.$ac_ext
3460 1.9 tv fi
3461 1.35 thorpej echo "$as_me:3461: result: $ac_cv_type_u_int32_t" >&5
3462 1.9 tv echo "${ECHO_T}$ac_cv_type_u_int32_t" >&6
3463 1.9 tv if test $ac_cv_type_u_int32_t = yes; then
3464 1.9 tv cat >>confdefs.h <<\EOF
3465 1.9 tv #define uint32_t u_int32_t
3466 1.9 tv EOF
3467 1.9 tv
3468 1.9 tv else
3469 1.35 thorpej { { echo "$as_me:3469: error: cannot find a suitable type for uint32_t" >&5
3470 1.9 tv echo "$as_me: error: cannot find a suitable type for uint32_t" >&2;}
3471 1.9 tv { (exit 1); exit 1; }; }
3472 1.9 tv fi
3473 1.9 tv
3474 1.9 tv fi
3475 1.9 tv
3476 1.35 thorpej echo "$as_me:3476: checking for u_int32_t" >&5
3477 1.9 tv echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6
3478 1.9 tv if test "${ac_cv_type_u_int32_t+set}" = set; then
3479 1.9 tv echo $ECHO_N "(cached) $ECHO_C" >&6
3480 1.9 tv else
3481 1.9 tv cat >conftest.$ac_ext <<_ACEOF
3482 1.35 thorpej #line 3482 "configure"
3483 1.1 tv #include "confdefs.h"
3484 1.6 tv $ac_includes_default
3485 1.1 tv int
3486 1.1 tv main ()
3487 1.1 tv {
3488 1.6 tv if ((u_int32_t *) 0)
3489 1.6 tv return 0;
3490 1.6 tv if (sizeof (u_int32_t))
3491 1.6 tv return 0;
3492 1.6 tv ;
3493 1.6 tv return 0;
3494 1.1 tv }
3495 1.1 tv _ACEOF
3496 1.6 tv rm -f conftest.$ac_objext
3497 1.35 thorpej if { (eval echo "$as_me:3497: \"$ac_compile\"") >&5
3498 1.6 tv (eval $ac_compile) 2>&5
3499 1.1 tv ac_status=$?
3500 1.35 thorpej echo "$as_me:3500: \$? = $ac_status" >&5
3501 1.6 tv (exit $ac_status); } &&
3502 1.6 tv { ac_try='test -s conftest.$ac_objext'
3503 1.35 thorpej { (eval echo "$as_me:3503: \"$ac_try\"") >&5
3504 1.1 tv (eval $ac_try) 2>&5
3505 1.1 tv ac_status=$?
3506 1.35 thorpej echo "$as_me:3506: \$? = $ac_status" >&5
3507 1.1 tv (exit $ac_status); }; }; then
3508 1.6 tv ac_cv_type_u_int32_t=yes
3509 1.1 tv else
3510 1.6 tv echo "$as_me: failed program was:" >&5
3511 1.1 tv cat conftest.$ac_ext >&5
3512 1.6 tv ac_cv_type_u_int32_t=no
3513 1.1 tv fi
3514 1.6 tv rm -f conftest.$ac_objext conftest.$ac_ext
3515 1.1 tv fi
3516 1.35 thorpej echo "$as_me:3516: result: $ac_cv_type_u_int32_t" >&5
3517 1.6 tv echo "${ECHO_T}$ac_cv_type_u_int32_t" >&6
3518 1.6 tv if test $ac_cv_type_u_int32_t = yes; then
3519 1.6 tv :
3520 1.6 tv else
3521 1.1 tv
3522 1.35 thorpej echo "$as_me:3522: checking for uint32_t" >&5
3523 1.6 tv echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6
3524 1.6 tv if test "${ac_cv_type_uint32_t+set}" = set; then
3525 1.1 tv echo $ECHO_N "(cached) $ECHO_C" >&6
3526 1.1 tv else
3527 1.1 tv cat >conftest.$ac_ext <<_ACEOF
3528 1.35 thorpej #line 3528 "configure"
3529 1.1 tv #include "confdefs.h"
3530 1.1 tv $ac_includes_default
3531 1.6 tv int
3532 1.6 tv main ()
3533 1.6 tv {
3534 1.6 tv if ((uint32_t *) 0)
3535 1.6 tv return 0;
3536 1.6 tv if (sizeof (uint32_t))
3537 1.6 tv return 0;
3538 1.6 tv ;
3539 1.6 tv return 0;
3540 1.6 tv }
3541 1.1 tv _ACEOF
3542 1.1 tv rm -f conftest.$ac_objext
3543 1.35 thorpej if { (eval echo "$as_me:3543: \"$ac_compile\"") >&5
3544 1.1 tv (eval $ac_compile) 2>&5
3545 1.1 tv ac_status=$?
3546 1.35 thorpej echo "$as_me:3546: \$? = $ac_status" >&5
3547 1.1 tv (exit $ac_status); } &&
3548 1.1 tv { ac_try='test -s conftest.$ac_objext'
3549 1.35 thorpej { (eval echo "$as_me:3549: \"$ac_try\"") >&5
3550 1.1 tv (eval $ac_try) 2>&5
3551 1.1 tv ac_status=$?
3552 1.35 thorpej echo "$as_me:3552: \$? = $ac_status" >&5
3553 1.1 tv (exit $ac_status); }; }; then
3554 1.6 tv ac_cv_type_uint32_t=yes
3555 1.1 tv else
3556 1.1 tv echo "$as_me: failed program was:" >&5
3557 1.1 tv cat conftest.$ac_ext >&5
3558 1.6 tv ac_cv_type_uint32_t=no
3559 1.1 tv fi
3560 1.1 tv rm -f conftest.$ac_objext conftest.$ac_ext
3561 1.1 tv fi
3562 1.35 thorpej echo "$as_me:3562: result: $ac_cv_type_uint32_t" >&5
3563 1.6 tv echo "${ECHO_T}$ac_cv_type_uint32_t" >&6
3564 1.6 tv if test $ac_cv_type_uint32_t = yes; then
3565 1.6 tv cat >>confdefs.h <<\EOF
3566 1.6 tv #define u_int32_t uint32_t
3567 1.1 tv EOF
3568 1.1 tv
3569 1.6 tv else
3570 1.35 thorpej { { echo "$as_me:3570: error: cannot find a suitable type for u_int32_t" >&5
3571 1.6 tv echo "$as_me: error: cannot find a suitable type for u_int32_t" >&2;}
3572 1.6 tv { (exit 1); exit 1; }; }
3573 1.6 tv fi
3574 1.6 tv
3575 1.1 tv fi
3576 1.1 tv
3577 1.35 thorpej echo "$as_me:3577: checking for uint64_t" >&5
3578 1.9 tv echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
3579 1.9 tv if test "${ac_cv_type_uint64_t+set}" = set; then
3580 1.9 tv echo $ECHO_N "(cached) $ECHO_C" >&6
3581 1.9 tv else
3582 1.9 tv cat >conftest.$ac_ext <<_ACEOF
3583 1.35 thorpej #line 3583 "configure"
3584 1.9 tv #include "confdefs.h"
3585 1.9 tv $ac_includes_default
3586 1.9 tv int
3587 1.9 tv main ()
3588 1.9 tv {
3589 1.9 tv if ((uint64_t *) 0)
3590 1.9 tv return 0;
3591 1.9 tv if (sizeof (uint64_t))
3592 1.9 tv return 0;
3593 1.9 tv ;
3594 1.9 tv return 0;
3595 1.9 tv }
3596 1.9 tv _ACEOF
3597 1.9 tv rm -f conftest.$ac_objext
3598 1.35 thorpej if { (eval echo "$as_me:3598: \"$ac_compile\"") >&5
3599 1.9 tv (eval $ac_compile) 2>&5
3600 1.9 tv ac_status=$?
3601 1.35 thorpej echo "$as_me:3601: \$? = $ac_status" >&5
3602 1.9 tv (exit $ac_status); } &&
3603 1.9 tv { ac_try='test -s conftest.$ac_objext'
3604 1.35 thorpej { (eval echo "$as_me:3604: \"$ac_try\"") >&5
3605 1.9 tv (eval $ac_try) 2>&5
3606 1.9 tv ac_status=$?
3607 1.35 thorpej echo "$as_me:3607: \$? = $ac_status" >&5
3608 1.9 tv (exit $ac_status); }; }; then
3609 1.9 tv ac_cv_type_uint64_t=yes
3610 1.9 tv else
3611 1.9 tv echo "$as_me: failed program was:" >&5
3612 1.9 tv cat conftest.$ac_ext >&5
3613 1.9 tv ac_cv_type_uint64_t=no
3614 1.9 tv fi
3615 1.9 tv rm -f conftest.$ac_objext conftest.$ac_ext
3616 1.9 tv fi
3617 1.35 thorpej echo "$as_me:3617: result: $ac_cv_type_uint64_t" >&5
3618 1.9 tv echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
3619 1.9 tv if test $ac_cv_type_uint64_t = yes; then
3620 1.9 tv :
3621 1.9 tv else
3622 1.9 tv
3623 1.35 thorpej echo "$as_me:3623: checking for u_int64_t" >&5
3624 1.9 tv echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6
3625 1.9 tv if test "${ac_cv_type_u_int64_t+set}" = set; then
3626 1.9 tv echo $ECHO_N "(cached) $ECHO_C" >&6
3627 1.9 tv else
3628 1.9 tv cat >conftest.$ac_ext <<_ACEOF
3629 1.35 thorpej #line 3629 "configure"
3630 1.9 tv #include "confdefs.h"
3631 1.9 tv $ac_includes_default
3632 1.9 tv int
3633 1.9 tv main ()
3634 1.9 tv {
3635 1.9 tv if ((u_int64_t *) 0)
3636 1.9 tv return 0;
3637 1.9 tv if (sizeof (u_int64_t))
3638 1.9 tv return 0;
3639 1.9 tv ;
3640 1.9 tv return 0;
3641 1.9 tv }
3642 1.9 tv _ACEOF
3643 1.9 tv rm -f conftest.$ac_objext
3644 1.35 thorpej if { (eval echo "$as_me:3644: \"$ac_compile\"") >&5
3645 1.9 tv (eval $ac_compile) 2>&5
3646 1.9 tv ac_status=$?
3647 1.35 thorpej echo "$as_me:3647: \$? = $ac_status" >&5
3648 1.9 tv (exit $ac_status); } &&
3649 1.9 tv { ac_try='test -s conftest.$ac_objext'
3650 1.35 thorpej { (eval echo "$as_me:3650: \"$ac_try\"") >&5
3651 1.9 tv (eval $ac_try) 2>&5
3652 1.9 tv ac_status=$?
3653 1.35 thorpej echo "$as_me:3653: \$? = $ac_status" >&5
3654 1.9 tv (exit $ac_status); }; }; then
3655 1.9 tv ac_cv_type_u_int64_t=yes
3656 1.9 tv else
3657 1.9 tv echo "$as_me: failed program was:" >&5
3658 1.9 tv cat conftest.$ac_ext >&5
3659 1.9 tv ac_cv_type_u_int64_t=no
3660 1.9 tv fi
3661 1.9 tv rm -f conftest.$ac_objext conftest.$ac_ext
3662 1.9 tv fi
3663 1.35 thorpej echo "$as_me:3663: result: $ac_cv_type_u_int64_t" >&5
3664 1.9 tv echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6
3665 1.9 tv if test $ac_cv_type_u_int64_t = yes; then
3666 1.9 tv cat >>confdefs.h <<\EOF
3667 1.9 tv #define uint64_t u_int64_t
3668 1.9 tv EOF
3669 1.9 tv
3670 1.9 tv else
3671 1.35 thorpej { { echo "$as_me:3671: error: cannot find a suitable type for uint64_t" >&5
3672 1.9 tv echo "$as_me: error: cannot find a suitable type for uint64_t" >&2;}
3673 1.9 tv { (exit 1); exit 1; }; }
3674 1.9 tv fi
3675 1.9 tv
3676 1.9 tv fi
3677 1.9 tv
3678 1.35 thorpej echo "$as_me:3678: checking for u_int64_t" >&5
3679 1.6 tv echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6
3680 1.6 tv if test "${ac_cv_type_u_int64_t+set}" = set; then
3681 1.1 tv echo $ECHO_N "(cached) $ECHO_C" >&6
3682 1.1 tv else
3683 1.1 tv cat >conftest.$ac_ext <<_ACEOF
3684 1.35 thorpej #line 3684 "configure"
3685 1.1 tv #include "confdefs.h"
3686 1.1 tv $ac_includes_default
3687 1.1 tv int
3688 1.1 tv main ()
3689 1.1 tv {
3690 1.6 tv if ((u_int64_t *) 0)
3691 1.1 tv return 0;
3692 1.6 tv if (sizeof (u_int64_t))
3693 1.1 tv return 0;
3694 1.1 tv ;
3695 1.1 tv return 0;
3696 1.1 tv }
3697 1.1 tv _ACEOF
3698 1.1 tv rm -f conftest.$ac_objext
3699 1.35 thorpej if { (eval echo "$as_me:3699: \"$ac_compile\"") >&5
3700 1.1 tv (eval $ac_compile) 2>&5
3701 1.1 tv ac_status=$?
3702 1.35 thorpej echo "$as_me:3702: \$? = $ac_status" >&5
3703 1.1 tv (exit $ac_status); } &&
3704 1.1 tv { ac_try='test -s conftest.$ac_objext'
3705 1.35 thorpej { (eval echo "$as_me:3705: \"$ac_try\"") >&5
3706 1.1 tv (eval $ac_try) 2>&5
3707 1.1 tv ac_status=$?
3708 1.35 thorpej echo "$as_me:3708: \$? = $ac_status" >&5
3709 1.1 tv (exit $ac_status); }; }; then
3710 1.6 tv ac_cv_type_u_int64_t=yes
3711 1.1 tv else
3712 1.1 tv echo "$as_me: failed program was:" >&5
3713 1.1 tv cat conftest.$ac_ext >&5
3714 1.6 tv ac_cv_type_u_int64_t=no
3715 1.1 tv fi
3716 1.1 tv rm -f conftest.$ac_objext conftest.$ac_ext
3717 1.1 tv fi
3718 1.35 thorpej echo "$as_me:3718: result: $ac_cv_type_u_int64_t" >&5
3719 1.6 tv echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6
3720 1.6 tv if test $ac_cv_type_u_int64_t = yes; then
3721 1.1 tv :
3722 1.1 tv else
3723 1.1 tv
3724 1.35 thorpej echo "$as_me:3724: checking for uint64_t" >&5
3725 1.6 tv echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
3726 1.6 tv if test "${ac_cv_type_uint64_t+set}" = set; then
3727 1.1 tv echo $ECHO_N "(cached) $ECHO_C" >&6
3728 1.1 tv else
3729 1.1 tv cat >conftest.$ac_ext <<_ACEOF
3730 1.35 thorpej #line 3730 "configure"
3731 1.1 tv #include "confdefs.h"
3732 1.4 tv $ac_includes_default
3733 1.4 tv int
3734 1.4 tv main ()
3735 1.4 tv {
3736 1.6 tv if ((uint64_t *) 0)
3737 1.4 tv return 0;
3738 1.6 tv if (sizeof (uint64_t))
3739 1.4 tv return 0;
3740 1.4 tv ;
3741 1.4 tv return 0;
3742 1.4 tv }
3743 1.1 tv _ACEOF
3744 1.4 tv rm -f conftest.$ac_objext
3745 1.35 thorpej if { (eval echo "$as_me:3745: \"$ac_compile\"") >&5
3746 1.4 tv (eval $ac_compile) 2>&5
3747 1.4 tv ac_status=$?
3748 1.35 thorpej echo "$as_me:3748: \$? = $ac_status" >&5
3749 1.4 tv (exit $ac_status); } &&
3750 1.4 tv { ac_try='test -s conftest.$ac_objext'
3751 1.35 thorpej { (eval echo "$as_me:3751: \"$ac_try\"") >&5
3752 1.4 tv (eval $ac_try) 2>&5
3753 1.4 tv ac_status=$?
3754 1.35 thorpej echo "$as_me:3754: \$? = $ac_status" >&5
3755 1.4 tv (exit $ac_status); }; }; then
3756 1.6 tv ac_cv_type_uint64_t=yes
3757 1.4 tv else
3758 1.4 tv echo "$as_me: failed program was:" >&5
3759 1.4 tv cat conftest.$ac_ext >&5
3760 1.6 tv ac_cv_type_uint64_t=no
3761 1.4 tv fi
3762 1.4 tv rm -f conftest.$ac_objext conftest.$ac_ext
3763 1.4 tv fi
3764 1.35 thorpej echo "$as_me:3764: result: $ac_cv_type_uint64_t" >&5
3765 1.6 tv echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
3766 1.6 tv if test $ac_cv_type_uint64_t = yes; then
3767 1.6 tv cat >>confdefs.h <<\EOF
3768 1.6 tv #define u_int64_t uint64_t
3769 1.6 tv EOF
3770 1.4 tv
3771 1.6 tv else
3772 1.35 thorpej { { echo "$as_me:3772: error: cannot find a suitable type for u_int64_t" >&5
3773 1.6 tv echo "$as_me: error: cannot find a suitable type for u_int64_t" >&2;}
3774 1.6 tv { (exit 1); exit 1; }; }
3775 1.6 tv fi
3776 1.4 tv
3777 1.4 tv fi
3778 1.4 tv
3779 1.4 tv # Struct members.
3780 1.35 thorpej echo "$as_me:3780: checking for DIR.dd_fd" >&5
3781 1.7 tv echo $ECHO_N "checking for DIR.dd_fd... $ECHO_C" >&6
3782 1.7 tv if test "${ac_cv_member_DIR_dd_fd+set}" = set; then
3783 1.7 tv echo $ECHO_N "(cached) $ECHO_C" >&6
3784 1.7 tv else
3785 1.7 tv cat >conftest.$ac_ext <<_ACEOF
3786 1.35 thorpej #line 3786 "configure"
3787 1.7 tv #include "confdefs.h"
3788 1.32 thorpej #include <sys/types.h>
3789 1.7 tv #include <dirent.h>
3790 1.7 tv
3791 1.7 tv int
3792 1.7 tv main ()
3793 1.7 tv {
3794 1.7 tv static DIR ac_aggr;
3795 1.7 tv if (ac_aggr.dd_fd)
3796 1.7 tv return 0;
3797 1.7 tv ;
3798 1.7 tv return 0;
3799 1.7 tv }
3800 1.7 tv _ACEOF
3801 1.7 tv rm -f conftest.$ac_objext
3802 1.35 thorpej if { (eval echo "$as_me:3802: \"$ac_compile\"") >&5
3803 1.7 tv (eval $ac_compile) 2>&5
3804 1.7 tv ac_status=$?
3805 1.35 thorpej echo "$as_me:3805: \$? = $ac_status" >&5
3806 1.7 tv (exit $ac_status); } &&
3807 1.7 tv { ac_try='test -s conftest.$ac_objext'
3808 1.35 thorpej { (eval echo "$as_me:3808: \"$ac_try\"") >&5
3809 1.7 tv (eval $ac_try) 2>&5
3810 1.7 tv ac_status=$?
3811 1.35 thorpej echo "$as_me:3811: \$? = $ac_status" >&5
3812 1.7 tv (exit $ac_status); }; }; then
3813 1.7 tv ac_cv_member_DIR_dd_fd=yes
3814 1.7 tv else
3815 1.7 tv echo "$as_me: failed program was:" >&5
3816 1.7 tv cat conftest.$ac_ext >&5
3817 1.7 tv ac_cv_member_DIR_dd_fd=no
3818 1.7 tv fi
3819 1.7 tv rm -f conftest.$ac_objext conftest.$ac_ext
3820 1.7 tv fi
3821 1.35 thorpej echo "$as_me:3821: result: $ac_cv_member_DIR_dd_fd" >&5
3822 1.7 tv echo "${ECHO_T}$ac_cv_member_DIR_dd_fd" >&6
3823 1.7 tv if test $ac_cv_member_DIR_dd_fd = yes; then
3824 1.7 tv
3825 1.7 tv cat >>confdefs.h <<EOF
3826 1.7 tv #define HAVE_DIR_DD_FD 1
3827 1.7 tv EOF
3828 1.7 tv
3829 1.7 tv fi
3830 1.35 thorpej echo "$as_me:3830: checking for struct dirent.d_namlen" >&5
3831 1.8 tv echo $ECHO_N "checking for struct dirent.d_namlen... $ECHO_C" >&6
3832 1.8 tv if test "${ac_cv_member_struct_dirent_d_namlen+set}" = set; then
3833 1.8 tv echo $ECHO_N "(cached) $ECHO_C" >&6
3834 1.8 tv else
3835 1.8 tv cat >conftest.$ac_ext <<_ACEOF
3836 1.35 thorpej #line 3836 "configure"
3837 1.8 tv #include "confdefs.h"
3838 1.32 thorpej #include <sys/types.h>
3839 1.8 tv #include <dirent.h>
3840 1.8 tv
3841 1.8 tv int
3842 1.8 tv main ()
3843 1.8 tv {
3844 1.8 tv static struct dirent ac_aggr;
3845 1.8 tv if (ac_aggr.d_namlen)
3846 1.8 tv return 0;
3847 1.8 tv ;
3848 1.8 tv return 0;
3849 1.8 tv }
3850 1.8 tv _ACEOF
3851 1.8 tv rm -f conftest.$ac_objext
3852 1.35 thorpej if { (eval echo "$as_me:3852: \"$ac_compile\"") >&5
3853 1.8 tv (eval $ac_compile) 2>&5
3854 1.8 tv ac_status=$?
3855 1.35 thorpej echo "$as_me:3855: \$? = $ac_status" >&5
3856 1.8 tv (exit $ac_status); } &&
3857 1.8 tv { ac_try='test -s conftest.$ac_objext'
3858 1.35 thorpej { (eval echo "$as_me:3858: \"$ac_try\"") >&5
3859 1.8 tv (eval $ac_try) 2>&5
3860 1.8 tv ac_status=$?
3861 1.35 thorpej echo "$as_me:3861: \$? = $ac_status" >&5
3862 1.8 tv (exit $ac_status); }; }; then
3863 1.8 tv ac_cv_member_struct_dirent_d_namlen=yes
3864 1.8 tv else
3865 1.8 tv echo "$as_me: failed program was:" >&5
3866 1.8 tv cat conftest.$ac_ext >&5
3867 1.8 tv ac_cv_member_struct_dirent_d_namlen=no
3868 1.8 tv fi
3869 1.8 tv rm -f conftest.$ac_objext conftest.$ac_ext
3870 1.8 tv fi
3871 1.35 thorpej echo "$as_me:3871: result: $ac_cv_member_struct_dirent_d_namlen" >&5
3872 1.8 tv echo "${ECHO_T}$ac_cv_member_struct_dirent_d_namlen" >&6
3873 1.8 tv if test $ac_cv_member_struct_dirent_d_namlen = yes; then
3874 1.8 tv
3875 1.8 tv cat >>confdefs.h <<EOF
3876 1.8 tv #define HAVE_STRUCT_DIRENT_D_NAMLEN 1
3877 1.8 tv EOF
3878 1.8 tv
3879 1.8 tv fi
3880 1.7 tv
3881 1.35 thorpej echo "$as_me:3881: checking for struct stat.st_flags" >&5
3882 1.4 tv echo $ECHO_N "checking for struct stat.st_flags... $ECHO_C" >&6
3883 1.4 tv if test "${ac_cv_member_struct_stat_st_flags+set}" = set; then
3884 1.4 tv echo $ECHO_N "(cached) $ECHO_C" >&6
3885 1.4 tv else
3886 1.4 tv cat >conftest.$ac_ext <<_ACEOF
3887 1.35 thorpej #line 3887 "configure"
3888 1.4 tv #include "confdefs.h"
3889 1.4 tv #include <sys/stat.h>
3890 1.4 tv
3891 1.4 tv int
3892 1.4 tv main ()
3893 1.4 tv {
3894 1.4 tv static struct stat ac_aggr;
3895 1.4 tv if (ac_aggr.st_flags)
3896 1.4 tv return 0;
3897 1.4 tv ;
3898 1.4 tv return 0;
3899 1.4 tv }
3900 1.4 tv _ACEOF
3901 1.4 tv rm -f conftest.$ac_objext
3902 1.35 thorpej if { (eval echo "$as_me:3902: \"$ac_compile\"") >&5
3903 1.4 tv (eval $ac_compile) 2>&5
3904 1.4 tv ac_status=$?
3905 1.35 thorpej echo "$as_me:3905: \$? = $ac_status" >&5
3906 1.4 tv (exit $ac_status); } &&
3907 1.4 tv { ac_try='test -s conftest.$ac_objext'
3908 1.35 thorpej { (eval echo "$as_me:3908: \"$ac_try\"") >&5
3909 1.4 tv (eval $ac_try) 2>&5
3910 1.4 tv ac_status=$?
3911 1.35 thorpej echo "$as_me:3911: \$? = $ac_status" >&5
3912 1.4 tv (exit $ac_status); }; }; then
3913 1.4 tv ac_cv_member_struct_stat_st_flags=yes
3914 1.4 tv else
3915 1.4 tv echo "$as_me: failed program was:" >&5
3916 1.4 tv cat conftest.$ac_ext >&5
3917 1.4 tv ac_cv_member_struct_stat_st_flags=no
3918 1.4 tv fi
3919 1.4 tv rm -f conftest.$ac_objext conftest.$ac_ext
3920 1.4 tv fi
3921 1.35 thorpej echo "$as_me:3921: result: $ac_cv_member_struct_stat_st_flags" >&5
3922 1.4 tv echo "${ECHO_T}$ac_cv_member_struct_stat_st_flags" >&6
3923 1.4 tv if test $ac_cv_member_struct_stat_st_flags = yes; then
3924 1.4 tv
3925 1.4 tv cat >>confdefs.h <<EOF
3926 1.4 tv #define HAVE_STRUCT_STAT_ST_FLAGS 1
3927 1.4 tv EOF
3928 1.4 tv
3929 1.4 tv fi
3930 1.35 thorpej echo "$as_me:3930: checking for struct stat.st_gen" >&5
3931 1.7 tv echo $ECHO_N "checking for struct stat.st_gen... $ECHO_C" >&6
3932 1.7 tv if test "${ac_cv_member_struct_stat_st_gen+set}" = set; then
3933 1.7 tv echo $ECHO_N "(cached) $ECHO_C" >&6
3934 1.7 tv else
3935 1.7 tv cat >conftest.$ac_ext <<_ACEOF
3936 1.35 thorpej #line 3936 "configure"
3937 1.7 tv #include "confdefs.h"
3938 1.7 tv #include <sys/stat.h>
3939 1.7 tv
3940 1.7 tv int
3941 1.7 tv main ()
3942 1.7 tv {
3943 1.7 tv static struct stat ac_aggr;
3944 1.7 tv if (ac_aggr.st_gen)
3945 1.7 tv return 0;
3946 1.7 tv ;
3947 1.7 tv return 0;
3948 1.7 tv }
3949 1.7 tv _ACEOF
3950 1.7 tv rm -f conftest.$ac_objext
3951 1.35 thorpej if { (eval echo "$as_me:3951: \"$ac_compile\"") >&5
3952 1.7 tv (eval $ac_compile) 2>&5
3953 1.7 tv ac_status=$?
3954 1.35 thorpej echo "$as_me:3954: \$? = $ac_status" >&5
3955 1.7 tv (exit $ac_status); } &&
3956 1.7 tv { ac_try='test -s conftest.$ac_objext'
3957 1.35 thorpej { (eval echo "$as_me:3957: \"$ac_try\"") >&5
3958 1.7 tv (eval $ac_try) 2>&5
3959 1.7 tv ac_status=$?
3960 1.35 thorpej echo "$as_me:3960: \$? = $ac_status" >&5
3961 1.7 tv (exit $ac_status); }; }; then
3962 1.7 tv ac_cv_member_struct_stat_st_gen=yes
3963 1.7 tv else
3964 1.7 tv echo "$as_me: failed program was:" >&5
3965 1.7 tv cat conftest.$ac_ext >&5
3966 1.7 tv ac_cv_member_struct_stat_st_gen=no
3967 1.7 tv fi
3968 1.7 tv rm -f conftest.$ac_objext conftest.$ac_ext
3969 1.7 tv fi
3970 1.35 thorpej echo "$as_me:3970: result: $ac_cv_member_struct_stat_st_gen" >&5
3971 1.7 tv echo "${ECHO_T}$ac_cv_member_struct_stat_st_gen" >&6
3972 1.7 tv if test $ac_cv_member_struct_stat_st_gen = yes; then
3973 1.7 tv
3974 1.7 tv cat >>confdefs.h <<EOF
3975 1.7 tv #define HAVE_STRUCT_STAT_ST_GEN 1
3976 1.7 tv EOF
3977 1.7 tv
3978 1.7 tv fi
3979 1.35 thorpej echo "$as_me:3979: checking for struct stat.st_mtimensec" >&5
3980 1.7 tv echo $ECHO_N "checking for struct stat.st_mtimensec... $ECHO_C" >&6
3981 1.7 tv if test "${ac_cv_member_struct_stat_st_mtimensec+set}" = set; then
3982 1.7 tv echo $ECHO_N "(cached) $ECHO_C" >&6
3983 1.7 tv else
3984 1.7 tv cat >conftest.$ac_ext <<_ACEOF
3985 1.35 thorpej #line 3985 "configure"
3986 1.7 tv #include "confdefs.h"
3987 1.7 tv #include <sys/stat.h>
3988 1.7 tv
3989 1.7 tv int
3990 1.7 tv main ()
3991 1.7 tv {
3992 1.7 tv static struct stat ac_aggr;
3993 1.7 tv if (ac_aggr.st_mtimensec)
3994 1.7 tv return 0;
3995 1.7 tv ;
3996 1.7 tv return 0;
3997 1.7 tv }
3998 1.7 tv _ACEOF
3999 1.7 tv rm -f conftest.$ac_objext
4000 1.35 thorpej if { (eval echo "$as_me:4000: \"$ac_compile\"") >&5
4001 1.7 tv (eval $ac_compile) 2>&5
4002 1.7 tv ac_status=$?
4003 1.35 thorpej echo "$as_me:4003: \$? = $ac_status" >&5
4004 1.7 tv (exit $ac_status); } &&
4005 1.7 tv { ac_try='test -s conftest.$ac_objext'
4006 1.35 thorpej { (eval echo "$as_me:4006: \"$ac_try\"") >&5
4007 1.7 tv (eval $ac_try) 2>&5
4008 1.7 tv ac_status=$?
4009 1.35 thorpej echo "$as_me:4009: \$? = $ac_status" >&5
4010 1.7 tv (exit $ac_status); }; }; then
4011 1.7 tv ac_cv_member_struct_stat_st_mtimensec=yes
4012 1.7 tv else
4013 1.7 tv echo "$as_me: failed program was:" >&5
4014 1.7 tv cat conftest.$ac_ext >&5
4015 1.7 tv ac_cv_member_struct_stat_st_mtimensec=no
4016 1.7 tv fi
4017 1.7 tv rm -f conftest.$ac_objext conftest.$ac_ext
4018 1.7 tv fi
4019 1.35 thorpej echo "$as_me:4019: result: $ac_cv_member_struct_stat_st_mtimensec" >&5
4020 1.7 tv echo "${ECHO_T}$ac_cv_member_struct_stat_st_mtimensec" >&6
4021 1.7 tv if test $ac_cv_member_struct_stat_st_mtimensec = yes; then
4022 1.7 tv
4023 1.7 tv cat >>confdefs.h <<EOF
4024 1.7 tv #define HAVE_STRUCT_STAT_ST_MTIMENSEC 1
4025 1.7 tv EOF
4026 1.7 tv
4027 1.7 tv fi
4028 1.4 tv
4029 1.35 thorpej echo "$as_me:4029: checking for struct statfs.f_iosize" >&5
4030 1.7 tv echo $ECHO_N "checking for struct statfs.f_iosize... $ECHO_C" >&6
4031 1.7 tv if test "${ac_cv_member_struct_statfs_f_iosize+set}" = set; then
4032 1.6 tv echo $ECHO_N "(cached) $ECHO_C" >&6
4033 1.6 tv else
4034 1.6 tv cat >conftest.$ac_ext <<_ACEOF
4035 1.35 thorpej #line 4035 "configure"
4036 1.6 tv #include "confdefs.h"
4037 1.7 tv #include <sys/mount.h>
4038 1.6 tv
4039 1.6 tv int
4040 1.6 tv main ()
4041 1.6 tv {
4042 1.7 tv static struct statfs ac_aggr;
4043 1.7 tv if (ac_aggr.f_iosize)
4044 1.6 tv return 0;
4045 1.6 tv ;
4046 1.6 tv return 0;
4047 1.6 tv }
4048 1.6 tv _ACEOF
4049 1.6 tv rm -f conftest.$ac_objext
4050 1.35 thorpej if { (eval echo "$as_me:4050: \"$ac_compile\"") >&5
4051 1.6 tv (eval $ac_compile) 2>&5
4052 1.6 tv ac_status=$?
4053 1.35 thorpej echo "$as_me:4053: \$? = $ac_status" >&5
4054 1.6 tv (exit $ac_status); } &&
4055 1.6 tv { ac_try='test -s conftest.$ac_objext'
4056 1.35 thorpej { (eval echo "$as_me:4056: \"$ac_try\"") >&5
4057 1.6 tv (eval $ac_try) 2>&5
4058 1.6 tv ac_status=$?
4059 1.35 thorpej echo "$as_me:4059: \$? = $ac_status" >&5
4060 1.6 tv (exit $ac_status); }; }; then
4061 1.7 tv ac_cv_member_struct_statfs_f_iosize=yes
4062 1.6 tv else
4063 1.6 tv echo "$as_me: failed program was:" >&5
4064 1.6 tv cat conftest.$ac_ext >&5
4065 1.7 tv ac_cv_member_struct_statfs_f_iosize=no
4066 1.6 tv fi
4067 1.6 tv rm -f conftest.$ac_objext conftest.$ac_ext
4068 1.6 tv fi
4069 1.35 thorpej echo "$as_me:4069: result: $ac_cv_member_struct_statfs_f_iosize" >&5
4070 1.7 tv echo "${ECHO_T}$ac_cv_member_struct_statfs_f_iosize" >&6
4071 1.7 tv if test $ac_cv_member_struct_statfs_f_iosize = yes; then
4072 1.6 tv
4073 1.6 tv cat >>confdefs.h <<EOF
4074 1.7 tv #define HAVE_STRUCT_STATFS_F_IOSIZE 1
4075 1.6 tv EOF
4076 1.6 tv
4077 1.6 tv fi
4078 1.6 tv
4079 1.4 tv # Global variable decls.
4080 1.35 thorpej echo "$as_me:4080: checking whether optind is declared" >&5
4081 1.7 tv echo $ECHO_N "checking whether optind is declared... $ECHO_C" >&6
4082 1.7 tv if test "${ac_cv_have_decl_optind+set}" = set; then
4083 1.7 tv echo $ECHO_N "(cached) $ECHO_C" >&6
4084 1.7 tv else
4085 1.7 tv cat >conftest.$ac_ext <<_ACEOF
4086 1.35 thorpej #line 4086 "configure"
4087 1.7 tv #include "confdefs.h"
4088 1.7 tv
4089 1.7 tv #include <stdio.h>
4090 1.7 tv #include <stdlib.h>
4091 1.7 tv #include <unistd.h>
4092 1.7 tv
4093 1.7 tv int
4094 1.7 tv main ()
4095 1.7 tv {
4096 1.7 tv #ifndef optind
4097 1.7 tv char *p = (char *) optind;
4098 1.7 tv #endif
4099 1.7 tv
4100 1.7 tv ;
4101 1.7 tv return 0;
4102 1.7 tv }
4103 1.7 tv _ACEOF
4104 1.7 tv rm -f conftest.$ac_objext
4105 1.35 thorpej if { (eval echo "$as_me:4105: \"$ac_compile\"") >&5
4106 1.7 tv (eval $ac_compile) 2>&5
4107 1.7 tv ac_status=$?
4108 1.35 thorpej echo "$as_me:4108: \$? = $ac_status" >&5
4109 1.7 tv (exit $ac_status); } &&
4110 1.7 tv { ac_try='test -s conftest.$ac_objext'
4111 1.35 thorpej { (eval echo "$as_me:4111: \"$ac_try\"") >&5
4112 1.7 tv (eval $ac_try) 2>&5
4113 1.7 tv ac_status=$?
4114 1.35 thorpej echo "$as_me:4114: \$? = $ac_status" >&5
4115 1.7 tv (exit $ac_status); }; }; then
4116 1.7 tv ac_cv_have_decl_optind=yes
4117 1.7 tv else
4118 1.7 tv echo "$as_me: failed program was:" >&5
4119 1.7 tv cat conftest.$ac_ext >&5
4120 1.7 tv ac_cv_have_decl_optind=no
4121 1.7 tv fi
4122 1.7 tv rm -f conftest.$ac_objext conftest.$ac_ext
4123 1.7 tv fi
4124 1.35 thorpej echo "$as_me:4124: result: $ac_cv_have_decl_optind" >&5
4125 1.7 tv echo "${ECHO_T}$ac_cv_have_decl_optind" >&6
4126 1.7 tv if test $ac_cv_have_decl_optind = yes; then
4127 1.7 tv
4128 1.7 tv cat >>confdefs.h <<EOF
4129 1.7 tv #define HAVE_DECL_OPTIND 1
4130 1.7 tv EOF
4131 1.7 tv
4132 1.7 tv else
4133 1.7 tv cat >>confdefs.h <<EOF
4134 1.7 tv #define HAVE_DECL_OPTIND 0
4135 1.7 tv EOF
4136 1.7 tv
4137 1.7 tv fi
4138 1.35 thorpej echo "$as_me:4138: checking whether optreset is declared" >&5
4139 1.7 tv echo $ECHO_N "checking whether optreset is declared... $ECHO_C" >&6
4140 1.7 tv if test "${ac_cv_have_decl_optreset+set}" = set; then
4141 1.7 tv echo $ECHO_N "(cached) $ECHO_C" >&6
4142 1.7 tv else
4143 1.7 tv cat >conftest.$ac_ext <<_ACEOF
4144 1.35 thorpej #line 4144 "configure"
4145 1.7 tv #include "confdefs.h"
4146 1.7 tv
4147 1.7 tv #include <stdio.h>
4148 1.7 tv #include <stdlib.h>
4149 1.7 tv #include <unistd.h>
4150 1.7 tv
4151 1.7 tv int
4152 1.7 tv main ()
4153 1.7 tv {
4154 1.7 tv #ifndef optreset
4155 1.7 tv char *p = (char *) optreset;
4156 1.7 tv #endif
4157 1.7 tv
4158 1.7 tv ;
4159 1.7 tv return 0;
4160 1.7 tv }
4161 1.7 tv _ACEOF
4162 1.7 tv rm -f conftest.$ac_objext
4163 1.35 thorpej if { (eval echo "$as_me:4163: \"$ac_compile\"") >&5
4164 1.7 tv (eval $ac_compile) 2>&5
4165 1.7 tv ac_status=$?
4166 1.35 thorpej echo "$as_me:4166: \$? = $ac_status" >&5
4167 1.7 tv (exit $ac_status); } &&
4168 1.7 tv { ac_try='test -s conftest.$ac_objext'
4169 1.35 thorpej { (eval echo "$as_me:4169: \"$ac_try\"") >&5
4170 1.7 tv (eval $ac_try) 2>&5
4171 1.7 tv ac_status=$?
4172 1.35 thorpej echo "$as_me:4172: \$? = $ac_status" >&5
4173 1.7 tv (exit $ac_status); }; }; then
4174 1.7 tv ac_cv_have_decl_optreset=yes
4175 1.7 tv else
4176 1.7 tv echo "$as_me: failed program was:" >&5
4177 1.7 tv cat conftest.$ac_ext >&5
4178 1.7 tv ac_cv_have_decl_optreset=no
4179 1.7 tv fi
4180 1.7 tv rm -f conftest.$ac_objext conftest.$ac_ext
4181 1.7 tv fi
4182 1.35 thorpej echo "$as_me:4182: result: $ac_cv_have_decl_optreset" >&5
4183 1.7 tv echo "${ECHO_T}$ac_cv_have_decl_optreset" >&6
4184 1.7 tv if test $ac_cv_have_decl_optreset = yes; then
4185 1.7 tv
4186 1.7 tv cat >>confdefs.h <<EOF
4187 1.7 tv #define HAVE_DECL_OPTRESET 1
4188 1.7 tv EOF
4189 1.7 tv
4190 1.7 tv else
4191 1.7 tv cat >>confdefs.h <<EOF
4192 1.7 tv #define HAVE_DECL_OPTRESET 0
4193 1.7 tv EOF
4194 1.7 tv
4195 1.7 tv fi
4196 1.7 tv
4197 1.35 thorpej echo "$as_me:4197: checking whether sys_signame is declared" >&5
4198 1.4 tv echo $ECHO_N "checking whether sys_signame is declared... $ECHO_C" >&6
4199 1.4 tv if test "${ac_cv_have_decl_sys_signame+set}" = set; then
4200 1.4 tv echo $ECHO_N "(cached) $ECHO_C" >&6
4201 1.4 tv else
4202 1.4 tv cat >conftest.$ac_ext <<_ACEOF
4203 1.35 thorpej #line 4203 "configure"
4204 1.4 tv #include "confdefs.h"
4205 1.4 tv #include <signal.h>
4206 1.4 tv
4207 1.4 tv int
4208 1.4 tv main ()
4209 1.4 tv {
4210 1.4 tv #ifndef sys_signame
4211 1.4 tv char *p = (char *) sys_signame;
4212 1.4 tv #endif
4213 1.4 tv
4214 1.4 tv ;
4215 1.4 tv return 0;
4216 1.4 tv }
4217 1.4 tv _ACEOF
4218 1.4 tv rm -f conftest.$ac_objext
4219 1.35 thorpej if { (eval echo "$as_me:4219: \"$ac_compile\"") >&5
4220 1.4 tv (eval $ac_compile) 2>&5
4221 1.4 tv ac_status=$?
4222 1.35 thorpej echo "$as_me:4222: \$? = $ac_status" >&5
4223 1.4 tv (exit $ac_status); } &&
4224 1.4 tv { ac_try='test -s conftest.$ac_objext'
4225 1.35 thorpej { (eval echo "$as_me:4225: \"$ac_try\"") >&5
4226 1.4 tv (eval $ac_try) 2>&5
4227 1.4 tv ac_status=$?
4228 1.35 thorpej echo "$as_me:4228: \$? = $ac_status" >&5
4229 1.4 tv (exit $ac_status); }; }; then
4230 1.4 tv ac_cv_have_decl_sys_signame=yes
4231 1.4 tv else
4232 1.4 tv echo "$as_me: failed program was:" >&5
4233 1.4 tv cat conftest.$ac_ext >&5
4234 1.4 tv ac_cv_have_decl_sys_signame=no
4235 1.4 tv fi
4236 1.4 tv rm -f conftest.$ac_objext conftest.$ac_ext
4237 1.4 tv fi
4238 1.35 thorpej echo "$as_me:4238: result: $ac_cv_have_decl_sys_signame" >&5
4239 1.4 tv echo "${ECHO_T}$ac_cv_have_decl_sys_signame" >&6
4240 1.4 tv if test $ac_cv_have_decl_sys_signame = yes; then
4241 1.4 tv
4242 1.4 tv cat >>confdefs.h <<EOF
4243 1.4 tv #define HAVE_DECL_SYS_SIGNAME 1
4244 1.4 tv EOF
4245 1.4 tv
4246 1.4 tv else
4247 1.4 tv cat >>confdefs.h <<EOF
4248 1.4 tv #define HAVE_DECL_SYS_SIGNAME 0
4249 1.4 tv EOF
4250 1.4 tv
4251 1.4 tv fi
4252 1.4 tv
4253 1.4 tv # Library functions (where a .h check isn't enough).
4254 1.19 bjh21 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
4255 1.19 bjh21 # for constant arguments. Useless!
4256 1.35 thorpej echo "$as_me:4256: checking for working alloca.h" >&5
4257 1.19 bjh21 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
4258 1.19 bjh21 if test "${ac_cv_working_alloca_h+set}" = set; then
4259 1.19 bjh21 echo $ECHO_N "(cached) $ECHO_C" >&6
4260 1.19 bjh21 else
4261 1.19 bjh21 cat >conftest.$ac_ext <<_ACEOF
4262 1.35 thorpej #line 4262 "configure"
4263 1.19 bjh21 #include "confdefs.h"
4264 1.19 bjh21 #include <alloca.h>
4265 1.19 bjh21 int
4266 1.19 bjh21 main ()
4267 1.19 bjh21 {
4268 1.19 bjh21 char *p = (char *) alloca (2 * sizeof (int));
4269 1.19 bjh21 ;
4270 1.19 bjh21 return 0;
4271 1.19 bjh21 }
4272 1.19 bjh21 _ACEOF
4273 1.19 bjh21 rm -f conftest.$ac_objext conftest$ac_exeext
4274 1.35 thorpej if { (eval echo "$as_me:4274: \"$ac_link\"") >&5
4275 1.19 bjh21 (eval $ac_link) 2>&5
4276 1.19 bjh21 ac_status=$?
4277 1.35 thorpej echo "$as_me:4277: \$? = $ac_status" >&5
4278 1.19 bjh21 (exit $ac_status); } &&
4279 1.19 bjh21 { ac_try='test -s conftest$ac_exeext'
4280 1.35 thorpej { (eval echo "$as_me:4280: \"$ac_try\"") >&5
4281 1.19 bjh21 (eval $ac_try) 2>&5
4282 1.19 bjh21 ac_status=$?
4283 1.35 thorpej echo "$as_me:4283: \$? = $ac_status" >&5
4284 1.19 bjh21 (exit $ac_status); }; }; then
4285 1.19 bjh21 ac_cv_working_alloca_h=yes
4286 1.19 bjh21 else
4287 1.19 bjh21 echo "$as_me: failed program was:" >&5
4288 1.19 bjh21 cat conftest.$ac_ext >&5
4289 1.19 bjh21 ac_cv_working_alloca_h=no
4290 1.19 bjh21 fi
4291 1.19 bjh21 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4292 1.19 bjh21 fi
4293 1.35 thorpej echo "$as_me:4293: result: $ac_cv_working_alloca_h" >&5
4294 1.19 bjh21 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
4295 1.19 bjh21 if test $ac_cv_working_alloca_h = yes; then
4296 1.19 bjh21
4297 1.19 bjh21 cat >>confdefs.h <<\EOF
4298 1.19 bjh21 #define HAVE_ALLOCA_H 1
4299 1.19 bjh21 EOF
4300 1.19 bjh21
4301 1.19 bjh21 fi
4302 1.19 bjh21
4303 1.35 thorpej echo "$as_me:4303: checking for alloca" >&5
4304 1.19 bjh21 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
4305 1.19 bjh21 if test "${ac_cv_func_alloca_works+set}" = set; then
4306 1.19 bjh21 echo $ECHO_N "(cached) $ECHO_C" >&6
4307 1.19 bjh21 else
4308 1.19 bjh21 cat >conftest.$ac_ext <<_ACEOF
4309 1.35 thorpej #line 4309 "configure"
4310 1.19 bjh21 #include "confdefs.h"
4311 1.19 bjh21 #ifdef __GNUC__
4312 1.19 bjh21 # define alloca __builtin_alloca
4313 1.19 bjh21 #else
4314 1.19 bjh21 # ifdef _MSC_VER
4315 1.19 bjh21 # include <malloc.h>
4316 1.19 bjh21 # define alloca _alloca
4317 1.19 bjh21 # else
4318 1.19 bjh21 # if HAVE_ALLOCA_H
4319 1.19 bjh21 # include <alloca.h>
4320 1.19 bjh21 # else
4321 1.19 bjh21 # ifdef _AIX
4322 1.19 bjh21 #pragma alloca
4323 1.19 bjh21 # else
4324 1.19 bjh21 # ifndef alloca /* predefined by HP cc +Olibcalls */
4325 1.19 bjh21 char *alloca ();
4326 1.19 bjh21 # endif
4327 1.19 bjh21 # endif
4328 1.19 bjh21 # endif
4329 1.19 bjh21 # endif
4330 1.19 bjh21 #endif
4331 1.19 bjh21
4332 1.19 bjh21 int
4333 1.19 bjh21 main ()
4334 1.19 bjh21 {
4335 1.19 bjh21 char *p = (char *) alloca (1);
4336 1.19 bjh21 ;
4337 1.19 bjh21 return 0;
4338 1.19 bjh21 }
4339 1.19 bjh21 _ACEOF
4340 1.19 bjh21 rm -f conftest.$ac_objext conftest$ac_exeext
4341 1.35 thorpej if { (eval echo "$as_me:4341: \"$ac_link\"") >&5
4342 1.19 bjh21 (eval $ac_link) 2>&5
4343 1.19 bjh21 ac_status=$?
4344 1.35 thorpej echo "$as_me:4344: \$? = $ac_status" >&5
4345 1.19 bjh21 (exit $ac_status); } &&
4346 1.19 bjh21 { ac_try='test -s conftest$ac_exeext'
4347 1.35 thorpej { (eval echo "$as_me:4347: \"$ac_try\"") >&5
4348 1.19 bjh21 (eval $ac_try) 2>&5
4349 1.19 bjh21 ac_status=$?
4350 1.35 thorpej echo "$as_me:4350: \$? = $ac_status" >&5
4351 1.19 bjh21 (exit $ac_status); }; }; then
4352 1.19 bjh21 ac_cv_func_alloca_works=yes
4353 1.19 bjh21 else
4354 1.19 bjh21 echo "$as_me: failed program was:" >&5
4355 1.19 bjh21 cat conftest.$ac_ext >&5
4356 1.19 bjh21 ac_cv_func_alloca_works=no
4357 1.19 bjh21 fi
4358 1.19 bjh21 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4359 1.19 bjh21 fi
4360 1.35 thorpej echo "$as_me:4360: result: $ac_cv_func_alloca_works" >&5
4361 1.19 bjh21 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
4362 1.19 bjh21
4363 1.19 bjh21 if test $ac_cv_func_alloca_works = yes; then
4364 1.19 bjh21
4365 1.19 bjh21 cat >>confdefs.h <<\EOF
4366 1.19 bjh21 #define HAVE_ALLOCA 1
4367 1.19 bjh21 EOF
4368 1.19 bjh21
4369 1.19 bjh21 else
4370 1.19 bjh21 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
4371 1.19 bjh21 # that cause trouble. Some versions do not even contain alloca or
4372 1.19 bjh21 # contain a buggy version. If you still want to use their alloca,
4373 1.19 bjh21 # use ar to extract alloca.o from them instead of compiling alloca.c.
4374 1.19 bjh21
4375 1.19 bjh21 ALLOCA=alloca.$ac_objext
4376 1.19 bjh21
4377 1.19 bjh21 cat >>confdefs.h <<\EOF
4378 1.19 bjh21 #define C_ALLOCA 1
4379 1.19 bjh21 EOF
4380 1.19 bjh21
4381 1.35 thorpej echo "$as_me:4381: checking whether \`alloca.c' needs Cray hooks" >&5
4382 1.19 bjh21 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
4383 1.19 bjh21 if test "${ac_cv_os_cray+set}" = set; then
4384 1.19 bjh21 echo $ECHO_N "(cached) $ECHO_C" >&6
4385 1.19 bjh21 else
4386 1.19 bjh21 cat >conftest.$ac_ext <<_ACEOF
4387 1.35 thorpej #line 4387 "configure"
4388 1.19 bjh21 #include "confdefs.h"
4389 1.19 bjh21 #if defined(CRAY) && ! defined(CRAY2)
4390 1.19 bjh21 webecray
4391 1.19 bjh21 #else
4392 1.19 bjh21 wenotbecray
4393 1.19 bjh21 #endif
4394 1.19 bjh21
4395 1.19 bjh21 _ACEOF
4396 1.19 bjh21 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4397 1.19 bjh21 egrep "webecray" >/dev/null 2>&1; then
4398 1.19 bjh21 ac_cv_os_cray=yes
4399 1.19 bjh21 else
4400 1.19 bjh21 ac_cv_os_cray=no
4401 1.19 bjh21 fi
4402 1.19 bjh21 rm -f conftest*
4403 1.19 bjh21
4404 1.19 bjh21 fi
4405 1.35 thorpej echo "$as_me:4405: result: $ac_cv_os_cray" >&5
4406 1.19 bjh21 echo "${ECHO_T}$ac_cv_os_cray" >&6
4407 1.19 bjh21 if test $ac_cv_os_cray = yes; then
4408 1.19 bjh21 for ac_func in _getb67 GETB67 getb67; do
4409 1.19 bjh21 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4410 1.35 thorpej echo "$as_me:4410: checking for $ac_func" >&5
4411 1.19 bjh21 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4412 1.19 bjh21 if eval "test \"\${$as_ac_var+set}\" = set"; then
4413 1.19 bjh21 echo $ECHO_N "(cached) $ECHO_C" >&6
4414 1.19 bjh21 else
4415 1.19 bjh21 cat >conftest.$ac_ext <<_ACEOF
4416 1.35 thorpej #line 4416 "configure"
4417 1.19 bjh21 #include "confdefs.h"
4418 1.19 bjh21 /* System header to define __stub macros and hopefully few prototypes,
4419 1.19 bjh21 which can conflict with char $ac_func (); below. */
4420 1.19 bjh21 #include <assert.h>
4421 1.19 bjh21 /* Override any gcc2 internal prototype to avoid an error. */
4422 1.19 bjh21 #ifdef __cplusplus
4423 1.19 bjh21 extern "C"
4424 1.19 bjh21 #endif
4425 1.19 bjh21 /* We use char because int might match the return type of a gcc2
4426 1.19 bjh21 builtin and then its argument prototype would still apply. */
4427 1.19 bjh21 char $ac_func ();
4428 1.19 bjh21 char (*f) ();
4429 1.19 bjh21
4430 1.19 bjh21 int
4431 1.19 bjh21 main ()
4432 1.19 bjh21 {
4433 1.19 bjh21 /* The GNU C library defines this for functions which it implements
4434 1.19 bjh21 to always fail with ENOSYS. Some functions are actually named
4435 1.19 bjh21 something starting with __ and the normal name is an alias. */
4436 1.19 bjh21 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4437 1.19 bjh21 choke me
4438 1.19 bjh21 #else
4439 1.19 bjh21 f = $ac_func;
4440 1.19 bjh21 #endif
4441 1.19 bjh21
4442 1.19 bjh21 ;
4443 1.19 bjh21 return 0;
4444 1.19 bjh21 }
4445 1.19 bjh21 _ACEOF
4446 1.19 bjh21 rm -f conftest.$ac_objext conftest$ac_exeext
4447 1.35 thorpej if { (eval echo "$as_me:4447: \"$ac_link\"") >&5
4448 1.19 bjh21 (eval $ac_link) 2>&5
4449 1.19 bjh21 ac_status=$?
4450 1.35 thorpej echo "$as_me:4450: \$? = $ac_status" >&5
4451 1.19 bjh21 (exit $ac_status); } &&
4452 1.19 bjh21 { ac_try='test -s conftest$ac_exeext'
4453 1.35 thorpej { (eval echo "$as_me:4453: \"$ac_try\"") >&5
4454 1.19 bjh21 (eval $ac_try) 2>&5
4455 1.19 bjh21 ac_status=$?
4456 1.35 thorpej echo "$as_me:4456: \$? = $ac_status" >&5
4457 1.19 bjh21 (exit $ac_status); }; }; then
4458 1.19 bjh21 eval "$as_ac_var=yes"
4459 1.19 bjh21 else
4460 1.19 bjh21 echo "$as_me: failed program was:" >&5
4461 1.19 bjh21 cat conftest.$ac_ext >&5
4462 1.19 bjh21 eval "$as_ac_var=no"
4463 1.19 bjh21 fi
4464 1.19 bjh21 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4465 1.19 bjh21 fi
4466 1.35 thorpej echo "$as_me:4466: result: `eval echo '${'$as_ac_var'}'`" >&5
4467 1.19 bjh21 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4468 1.19 bjh21 if test `eval echo '${'$as_ac_var'}'` = yes; then
4469 1.19 bjh21
4470 1.19 bjh21 cat >>confdefs.h <<EOF
4471 1.19 bjh21 #define CRAY_STACKSEG_END $ac_func
4472 1.19 bjh21 EOF
4473 1.19 bjh21
4474 1.19 bjh21 break
4475 1.19 bjh21 fi
4476 1.19 bjh21
4477 1.19 bjh21 done
4478 1.19 bjh21 fi
4479 1.19 bjh21
4480 1.35 thorpej echo "$as_me:4480: checking stack direction for C alloca" >&5
4481 1.19 bjh21 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
4482 1.19 bjh21 if test "${ac_cv_c_stack_direction+set}" = set; then
4483 1.19 bjh21 echo $ECHO_N "(cached) $ECHO_C" >&6
4484 1.19 bjh21 else
4485 1.19 bjh21 if test "$cross_compiling" = yes; then
4486 1.19 bjh21 ac_cv_c_stack_direction=0
4487 1.19 bjh21 else
4488 1.19 bjh21 cat >conftest.$ac_ext <<_ACEOF
4489 1.35 thorpej #line 4489 "configure"
4490 1.19 bjh21 #include "confdefs.h"
4491 1.19 bjh21 int
4492 1.19 bjh21 find_stack_direction ()
4493 1.19 bjh21 {
4494 1.19 bjh21 static char *addr = 0;
4495 1.19 bjh21 auto char dummy;
4496 1.19 bjh21 if (addr == 0)
4497 1.19 bjh21 {
4498 1.19 bjh21 addr = &dummy;
4499 1.19 bjh21 return find_stack_direction ();
4500 1.19 bjh21 }
4501 1.19 bjh21 else
4502 1.19 bjh21 return (&dummy > addr) ? 1 : -1;
4503 1.19 bjh21 }
4504 1.19 bjh21
4505 1.19 bjh21 int
4506 1.19 bjh21 main ()
4507 1.19 bjh21 {
4508 1.19 bjh21 exit (find_stack_direction () < 0);
4509 1.19 bjh21 }
4510 1.19 bjh21 _ACEOF
4511 1.19 bjh21 rm -f conftest$ac_exeext
4512 1.35 thorpej if { (eval echo "$as_me:4512: \"$ac_link\"") >&5
4513 1.19 bjh21 (eval $ac_link) 2>&5
4514 1.19 bjh21 ac_status=$?
4515 1.35 thorpej echo "$as_me:4515: \$? = $ac_status" >&5
4516 1.19 bjh21 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4517 1.35 thorpej { (eval echo "$as_me:4517: \"$ac_try\"") >&5
4518 1.19 bjh21 (eval $ac_try) 2>&5
4519 1.19 bjh21 ac_status=$?
4520 1.35 thorpej echo "$as_me:4520: \$? = $ac_status" >&5
4521 1.19 bjh21 (exit $ac_status); }; }; then
4522 1.19 bjh21 ac_cv_c_stack_direction=1
4523 1.19 bjh21 else
4524 1.19 bjh21 echo "$as_me: program exited with status $ac_status" >&5
4525 1.19 bjh21 echo "$as_me: failed program was:" >&5
4526 1.19 bjh21 cat conftest.$ac_ext >&5
4527 1.19 bjh21 ac_cv_c_stack_direction=-1
4528 1.19 bjh21 fi
4529 1.19 bjh21 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4530 1.19 bjh21 fi
4531 1.19 bjh21 fi
4532 1.35 thorpej echo "$as_me:4532: result: $ac_cv_c_stack_direction" >&5
4533 1.19 bjh21 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
4534 1.19 bjh21
4535 1.19 bjh21 cat >>confdefs.h <<EOF
4536 1.19 bjh21 #define STACK_DIRECTION $ac_cv_c_stack_direction
4537 1.19 bjh21 EOF
4538 1.19 bjh21
4539 1.19 bjh21 fi
4540 1.19 bjh21
4541 1.6 tv for ac_func in asprintf asnprintf basename dirfd dirname \
4542 1.7 tv fgetln flock fparseln futimes getopt getopt_long \
4543 1.26 lukem isblank issetugid lchflags lchmod lchown lutimes mkstemp mkdtemp \
4544 1.25 thorpej poll pread pwcache_userdb pwrite random setenv setgroupent \
4545 1.29 lukem setprogname setpassent snprintf strlcat strlcpy strsep \
4546 1.29 lukem strsuftoll strtoll \
4547 1.23 thorpej user_from_uid vasprintf vasnprintf vsnprintf
4548 1.1 tv do
4549 1.1 tv as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4550 1.35 thorpej echo "$as_me:4550: checking for $ac_func" >&5
4551 1.1 tv echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4552 1.1 tv if eval "test \"\${$as_ac_var+set}\" = set"; then
4553 1.1 tv echo $ECHO_N "(cached) $ECHO_C" >&6
4554 1.1 tv else
4555 1.1 tv cat >conftest.$ac_ext <<_ACEOF
4556 1.35 thorpej #line 4556 "configure"
4557 1.1 tv #include "confdefs.h"
4558 1.1 tv /* System header to define __stub macros and hopefully few prototypes,
4559 1.1 tv which can conflict with char $ac_func (); below. */
4560 1.1 tv #include <assert.h>
4561 1.1 tv /* Override any gcc2 internal prototype to avoid an error. */
4562 1.1 tv #ifdef __cplusplus
4563 1.1 tv extern "C"
4564 1.1 tv #endif
4565 1.1 tv /* We use char because int might match the return type of a gcc2
4566 1.1 tv builtin and then its argument prototype would still apply. */
4567 1.1 tv char $ac_func ();
4568 1.1 tv char (*f) ();
4569 1.1 tv
4570 1.1 tv int
4571 1.1 tv main ()
4572 1.1 tv {
4573 1.1 tv /* The GNU C library defines this for functions which it implements
4574 1.1 tv to always fail with ENOSYS. Some functions are actually named
4575 1.1 tv something starting with __ and the normal name is an alias. */
4576 1.1 tv #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4577 1.1 tv choke me
4578 1.1 tv #else
4579 1.1 tv f = $ac_func;
4580 1.1 tv #endif
4581 1.1 tv
4582 1.1 tv ;
4583 1.1 tv return 0;
4584 1.1 tv }
4585 1.1 tv _ACEOF
4586 1.1 tv rm -f conftest.$ac_objext conftest$ac_exeext
4587 1.35 thorpej if { (eval echo "$as_me:4587: \"$ac_link\"") >&5
4588 1.1 tv (eval $ac_link) 2>&5
4589 1.1 tv ac_status=$?
4590 1.35 thorpej echo "$as_me:4590: \$? = $ac_status" >&5
4591 1.1 tv (exit $ac_status); } &&
4592 1.1 tv { ac_try='test -s conftest$ac_exeext'
4593 1.35 thorpej { (eval echo "$as_me:4593: \"$ac_try\"") >&5
4594 1.1 tv (eval $ac_try) 2>&5
4595 1.1 tv ac_status=$?
4596 1.35 thorpej echo "$as_me:4596: \$? = $ac_status" >&5
4597 1.1 tv (exit $ac_status); }; }; then
4598 1.1 tv eval "$as_ac_var=yes"
4599 1.1 tv else
4600 1.1 tv echo "$as_me: failed program was:" >&5
4601 1.1 tv cat conftest.$ac_ext >&5
4602 1.1 tv eval "$as_ac_var=no"
4603 1.1 tv fi
4604 1.1 tv rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4605 1.1 tv fi
4606 1.35 thorpej echo "$as_me:4606: result: `eval echo '${'$as_ac_var'}'`" >&5
4607 1.1 tv echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4608 1.1 tv if test `eval echo '${'$as_ac_var'}'` = yes; then
4609 1.1 tv cat >>confdefs.h <<EOF
4610 1.1 tv #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4611 1.1 tv EOF
4612 1.1 tv
4613 1.1 tv fi
4614 1.1 tv done
4615 1.1 tv
4616 1.35 thorpej echo "$as_me:4616: checking whether setgroupent is declared" >&5
4617 1.8 tv echo $ECHO_N "checking whether setgroupent is declared... $ECHO_C" >&6
4618 1.8 tv if test "${ac_cv_have_decl_setgroupent+set}" = set; then
4619 1.8 tv echo $ECHO_N "(cached) $ECHO_C" >&6
4620 1.8 tv else
4621 1.8 tv cat >conftest.$ac_ext <<_ACEOF
4622 1.35 thorpej #line 4622 "configure"
4623 1.8 tv #include "confdefs.h"
4624 1.8 tv
4625 1.33 thorpej #include <sys/types.h>
4626 1.8 tv #include <grp.h>
4627 1.8 tv #include <pwd.h>
4628 1.8 tv
4629 1.8 tv int
4630 1.8 tv main ()
4631 1.8 tv {
4632 1.8 tv #ifndef setgroupent
4633 1.8 tv char *p = (char *) setgroupent;
4634 1.8 tv #endif
4635 1.8 tv
4636 1.8 tv ;
4637 1.8 tv return 0;
4638 1.8 tv }
4639 1.8 tv _ACEOF
4640 1.8 tv rm -f conftest.$ac_objext
4641 1.35 thorpej if { (eval echo "$as_me:4641: \"$ac_compile\"") >&5
4642 1.8 tv (eval $ac_compile) 2>&5
4643 1.8 tv ac_status=$?
4644 1.35 thorpej echo "$as_me:4644: \$? = $ac_status" >&5
4645 1.8 tv (exit $ac_status); } &&
4646 1.8 tv { ac_try='test -s conftest.$ac_objext'
4647 1.35 thorpej { (eval echo "$as_me:4647: \"$ac_try\"") >&5
4648 1.8 tv (eval $ac_try) 2>&5
4649 1.8 tv ac_status=$?
4650 1.35 thorpej echo "$as_me:4650: \$? = $ac_status" >&5
4651 1.8 tv (exit $ac_status); }; }; then
4652 1.8 tv ac_cv_have_decl_setgroupent=yes
4653 1.8 tv else
4654 1.8 tv echo "$as_me: failed program was:" >&5
4655 1.8 tv cat conftest.$ac_ext >&5
4656 1.8 tv ac_cv_have_decl_setgroupent=no
4657 1.8 tv fi
4658 1.8 tv rm -f conftest.$ac_objext conftest.$ac_ext
4659 1.8 tv fi
4660 1.35 thorpej echo "$as_me:4660: result: $ac_cv_have_decl_setgroupent" >&5
4661 1.8 tv echo "${ECHO_T}$ac_cv_have_decl_setgroupent" >&6
4662 1.8 tv if test $ac_cv_have_decl_setgroupent = yes; then
4663 1.8 tv
4664 1.8 tv cat >>confdefs.h <<EOF
4665 1.8 tv #define HAVE_DECL_SETGROUPENT 1
4666 1.8 tv EOF
4667 1.8 tv
4668 1.8 tv else
4669 1.8 tv cat >>confdefs.h <<EOF
4670 1.8 tv #define HAVE_DECL_SETGROUPENT 0
4671 1.8 tv EOF
4672 1.8 tv
4673 1.8 tv fi
4674 1.35 thorpej echo "$as_me:4674: checking whether setpassent is declared" >&5
4675 1.8 tv echo $ECHO_N "checking whether setpassent is declared... $ECHO_C" >&6
4676 1.8 tv if test "${ac_cv_have_decl_setpassent+set}" = set; then
4677 1.8 tv echo $ECHO_N "(cached) $ECHO_C" >&6
4678 1.8 tv else
4679 1.8 tv cat >conftest.$ac_ext <<_ACEOF
4680 1.35 thorpej #line 4680 "configure"
4681 1.8 tv #include "confdefs.h"
4682 1.8 tv
4683 1.33 thorpej #include <sys/types.h>
4684 1.8 tv #include <grp.h>
4685 1.8 tv #include <pwd.h>
4686 1.8 tv
4687 1.8 tv int
4688 1.8 tv main ()
4689 1.8 tv {
4690 1.8 tv #ifndef setpassent
4691 1.8 tv char *p = (char *) setpassent;
4692 1.8 tv #endif
4693 1.8 tv
4694 1.8 tv ;
4695 1.8 tv return 0;
4696 1.8 tv }
4697 1.8 tv _ACEOF
4698 1.8 tv rm -f conftest.$ac_objext
4699 1.35 thorpej if { (eval echo "$as_me:4699: \"$ac_compile\"") >&5
4700 1.8 tv (eval $ac_compile) 2>&5
4701 1.8 tv ac_status=$?
4702 1.35 thorpej echo "$as_me:4702: \$? = $ac_status" >&5
4703 1.8 tv (exit $ac_status); } &&
4704 1.8 tv { ac_try='test -s conftest.$ac_objext'
4705 1.35 thorpej { (eval echo "$as_me:4705: \"$ac_try\"") >&5
4706 1.8 tv (eval $ac_try) 2>&5
4707 1.8 tv ac_status=$?
4708 1.35 thorpej echo "$as_me:4708: \$? = $ac_status" >&5
4709 1.8 tv (exit $ac_status); }; }; then
4710 1.8 tv ac_cv_have_decl_setpassent=yes
4711 1.8 tv else
4712 1.8 tv echo "$as_me: failed program was:" >&5
4713 1.8 tv cat conftest.$ac_ext >&5
4714 1.8 tv ac_cv_have_decl_setpassent=no
4715 1.8 tv fi
4716 1.8 tv rm -f conftest.$ac_objext conftest.$ac_ext
4717 1.8 tv fi
4718 1.35 thorpej echo "$as_me:4718: result: $ac_cv_have_decl_setpassent" >&5
4719 1.8 tv echo "${ECHO_T}$ac_cv_have_decl_setpassent" >&6
4720 1.8 tv if test $ac_cv_have_decl_setpassent = yes; then
4721 1.8 tv
4722 1.8 tv cat >>confdefs.h <<EOF
4723 1.8 tv #define HAVE_DECL_SETPASSENT 1
4724 1.8 tv EOF
4725 1.8 tv
4726 1.8 tv else
4727 1.8 tv cat >>confdefs.h <<EOF
4728 1.8 tv #define HAVE_DECL_SETPASSENT 0
4729 1.8 tv EOF
4730 1.8 tv
4731 1.8 tv fi
4732 1.8 tv
4733 1.4 tv # regcomp() and regexec() are also names of functions in the old V8
4734 1.4 tv # regexp package. To avoid them, we need to find out who has regfree().
4735 1.4 tv
4736 1.35 thorpej echo "$as_me:4736: checking for regfree in -lregex" >&5
4737 1.4 tv echo $ECHO_N "checking for regfree in -lregex... $ECHO_C" >&6
4738 1.4 tv if test "${ac_cv_lib_regex_regfree+set}" = set; then
4739 1.4 tv echo $ECHO_N "(cached) $ECHO_C" >&6
4740 1.4 tv else
4741 1.4 tv ac_check_lib_save_LIBS=$LIBS
4742 1.4 tv LIBS="-lregex $LIBS"
4743 1.4 tv cat >conftest.$ac_ext <<_ACEOF
4744 1.35 thorpej #line 4744 "configure"
4745 1.4 tv #include "confdefs.h"
4746 1.4 tv
4747 1.4 tv /* Override any gcc2 internal prototype to avoid an error. */
4748 1.4 tv #ifdef __cplusplus
4749 1.4 tv extern "C"
4750 1.4 tv #endif
4751 1.4 tv /* We use char because int might match the return type of a gcc2
4752 1.4 tv builtin and then its argument prototype would still apply. */
4753 1.4 tv char regfree ();
4754 1.4 tv int
4755 1.4 tv main ()
4756 1.4 tv {
4757 1.4 tv regfree ();
4758 1.4 tv ;
4759 1.4 tv return 0;
4760 1.4 tv }
4761 1.4 tv _ACEOF
4762 1.4 tv rm -f conftest.$ac_objext conftest$ac_exeext
4763 1.35 thorpej if { (eval echo "$as_me:4763: \"$ac_link\"") >&5
4764 1.4 tv (eval $ac_link) 2>&5
4765 1.4 tv ac_status=$?
4766 1.35 thorpej echo "$as_me:4766: \$? = $ac_status" >&5
4767 1.4 tv (exit $ac_status); } &&
4768 1.4 tv { ac_try='test -s conftest$ac_exeext'
4769 1.35 thorpej { (eval echo "$as_me:4769: \"$ac_try\"") >&5
4770 1.4 tv (eval $ac_try) 2>&5
4771 1.4 tv ac_status=$?
4772 1.35 thorpej echo "$as_me:4772: \$? = $ac_status" >&5
4773 1.4 tv (exit $ac_status); }; }; then
4774 1.4 tv ac_cv_lib_regex_regfree=yes
4775 1.4 tv else
4776 1.4 tv echo "$as_me: failed program was:" >&5
4777 1.4 tv cat conftest.$ac_ext >&5
4778 1.4 tv ac_cv_lib_regex_regfree=no
4779 1.4 tv fi
4780 1.4 tv rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4781 1.4 tv LIBS=$ac_check_lib_save_LIBS
4782 1.4 tv fi
4783 1.35 thorpej echo "$as_me:4783: result: $ac_cv_lib_regex_regfree" >&5
4784 1.4 tv echo "${ECHO_T}$ac_cv_lib_regex_regfree" >&6
4785 1.4 tv if test $ac_cv_lib_regex_regfree = yes; then
4786 1.4 tv cat >>confdefs.h <<EOF
4787 1.4 tv #define HAVE_LIBREGEX 1
4788 1.4 tv EOF
4789 1.4 tv
4790 1.4 tv LIBS="-lregex $LIBS"
4791 1.4 tv
4792 1.4 tv fi
4793 1.4 tv
4794 1.35 thorpej echo "$as_me:4794: checking for library containing regfree" >&5
4795 1.4 tv echo $ECHO_N "checking for library containing regfree... $ECHO_C" >&6
4796 1.4 tv if test "${ac_cv_search_regfree+set}" = set; then
4797 1.1 tv echo $ECHO_N "(cached) $ECHO_C" >&6
4798 1.1 tv else
4799 1.1 tv ac_func_search_save_LIBS=$LIBS
4800 1.4 tv ac_cv_search_regfree=no
4801 1.1 tv cat >conftest.$ac_ext <<_ACEOF
4802 1.35 thorpej #line 4802 "configure"
4803 1.1 tv #include "confdefs.h"
4804 1.1 tv
4805 1.1 tv /* Override any gcc2 internal prototype to avoid an error. */
4806 1.1 tv #ifdef __cplusplus
4807 1.1 tv extern "C"
4808 1.1 tv #endif
4809 1.1 tv /* We use char because int might match the return type of a gcc2
4810 1.1 tv builtin and then its argument prototype would still apply. */
4811 1.4 tv char regfree ();
4812 1.1 tv int
4813 1.1 tv main ()
4814 1.1 tv {
4815 1.4 tv regfree ();
4816 1.1 tv ;
4817 1.1 tv return 0;
4818 1.1 tv }
4819 1.1 tv _ACEOF
4820 1.1 tv rm -f conftest.$ac_objext conftest$ac_exeext
4821 1.35 thorpej if { (eval echo "$as_me:4821: \"$ac_link\"") >&5
4822 1.1 tv (eval $ac_link) 2>&5
4823 1.1 tv ac_status=$?
4824 1.35 thorpej echo "$as_me:4824: \$? = $ac_status" >&5
4825 1.1 tv (exit $ac_status); } &&
4826 1.1 tv { ac_try='test -s conftest$ac_exeext'
4827 1.35 thorpej { (eval echo "$as_me:4827: \"$ac_try\"") >&5
4828 1.1 tv (eval $ac_try) 2>&5
4829 1.1 tv ac_status=$?
4830 1.35 thorpej echo "$as_me:4830: \$? = $ac_status" >&5
4831 1.1 tv (exit $ac_status); }; }; then
4832 1.4 tv ac_cv_search_regfree="none required"
4833 1.1 tv else
4834 1.1 tv echo "$as_me: failed program was:" >&5
4835 1.1 tv cat conftest.$ac_ext >&5
4836 1.1 tv fi
4837 1.1 tv rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4838 1.4 tv if test "$ac_cv_search_regfree" = no; then
4839 1.4 tv for ac_lib in rx posix; do
4840 1.1 tv LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4841 1.1 tv cat >conftest.$ac_ext <<_ACEOF
4842 1.35 thorpej #line 4842 "configure"
4843 1.1 tv #include "confdefs.h"
4844 1.1 tv
4845 1.1 tv /* Override any gcc2 internal prototype to avoid an error. */
4846 1.1 tv #ifdef __cplusplus
4847 1.1 tv extern "C"
4848 1.1 tv #endif
4849 1.1 tv /* We use char because int might match the return type of a gcc2
4850 1.1 tv builtin and then its argument prototype would still apply. */
4851 1.4 tv char regfree ();
4852 1.1 tv int
4853 1.1 tv main ()
4854 1.1 tv {
4855 1.4 tv regfree ();
4856 1.1 tv ;
4857 1.1 tv return 0;
4858 1.1 tv }
4859 1.1 tv _ACEOF
4860 1.1 tv rm -f conftest.$ac_objext conftest$ac_exeext
4861 1.35 thorpej if { (eval echo "$as_me:4861: \"$ac_link\"") >&5
4862 1.1 tv (eval $ac_link) 2>&5
4863 1.1 tv ac_status=$?
4864 1.35 thorpej echo "$as_me:4864: \$? = $ac_status" >&5
4865 1.1 tv (exit $ac_status); } &&
4866 1.1 tv { ac_try='test -s conftest$ac_exeext'
4867 1.35 thorpej { (eval echo "$as_me:4867: \"$ac_try\"") >&5
4868 1.1 tv (eval $ac_try) 2>&5
4869 1.1 tv ac_status=$?
4870 1.35 thorpej echo "$as_me:4870: \$? = $ac_status" >&5
4871 1.1 tv (exit $ac_status); }; }; then
4872 1.4 tv ac_cv_search_regfree="-l$ac_lib"
4873 1.1 tv break
4874 1.1 tv else
4875 1.1 tv echo "$as_me: failed program was:" >&5
4876 1.1 tv cat conftest.$ac_ext >&5
4877 1.1 tv fi
4878 1.1 tv rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4879 1.1 tv done
4880 1.1 tv fi
4881 1.1 tv LIBS=$ac_func_search_save_LIBS
4882 1.1 tv fi
4883 1.35 thorpej echo "$as_me:4883: result: $ac_cv_search_regfree" >&5
4884 1.4 tv echo "${ECHO_T}$ac_cv_search_regfree" >&6
4885 1.4 tv if test "$ac_cv_search_regfree" != no; then
4886 1.4 tv test "$ac_cv_search_regfree" = "none required" || LIBS="$ac_cv_search_regfree $LIBS"
4887 1.1 tv
4888 1.1 tv fi
4889 1.1 tv
4890 1.1 tv cat >confcache <<\_ACEOF
4891 1.1 tv # This file is a shell script that caches the results of configure
4892 1.1 tv # tests run on this system so they can be shared between configure
4893 1.1 tv # scripts and configure runs, see configure's option --config-cache.
4894 1.1 tv # It is not useful on other systems. If it contains results you don't
4895 1.1 tv # want to keep, you may remove or edit it.
4896 1.1 tv #
4897 1.1 tv # config.status only pays attention to the cache file if you give it
4898 1.1 tv # the --recheck option to rerun configure.
4899 1.1 tv #
4900 1.1 tv # `ac_cv_env_foo' variables (set or unset) will be overriden when
4901 1.1 tv # loading this file, other *unset* `ac_cv_foo' will be assigned the
4902 1.1 tv # following values.
4903 1.1 tv
4904 1.1 tv _ACEOF
4905 1.1 tv
4906 1.1 tv # The following way of writing the cache mishandles newlines in values,
4907 1.1 tv # but we know of no workaround that is simple, portable, and efficient.
4908 1.1 tv # So, don't put newlines in cache variables' values.
4909 1.1 tv # Ultrix sh set writes to stderr and can't be redirected directly,
4910 1.1 tv # and sets the high bit in the cache file unless we assign to the vars.
4911 1.1 tv {
4912 1.1 tv (set) 2>&1 |
4913 1.1 tv case `(ac_space=' '; set | grep ac_space) 2>&1` in
4914 1.1 tv *ac_space=\ *)
4915 1.1 tv # `set' does not quote correctly, so add quotes (double-quote
4916 1.1 tv # substitution turns \\\\ into \\, and sed turns \\ into \).
4917 1.1 tv sed -n \
4918 1.1 tv "s/'/'\\\\''/g;
4919 1.1 tv s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4920 1.1 tv ;;
4921 1.1 tv *)
4922 1.1 tv # `set' quotes correctly as required by POSIX, so do not add quotes.
4923 1.1 tv sed -n \
4924 1.1 tv "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
4925 1.1 tv ;;
4926 1.1 tv esac;
4927 1.1 tv } |
4928 1.1 tv sed '
4929 1.1 tv t clear
4930 1.1 tv : clear
4931 1.1 tv s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4932 1.1 tv t end
4933 1.1 tv /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4934 1.1 tv : end' >>confcache
4935 1.1 tv if cmp -s $cache_file confcache; then :; else
4936 1.1 tv if test -w $cache_file; then
4937 1.1 tv test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
4938 1.1 tv cat confcache >$cache_file
4939 1.1 tv else
4940 1.1 tv echo "not updating unwritable cache $cache_file"
4941 1.1 tv fi
4942 1.1 tv fi
4943 1.1 tv rm -f confcache
4944 1.1 tv
4945 1.1 tv test "x$prefix" = xNONE && prefix=$ac_default_prefix
4946 1.1 tv # Let make expand exec_prefix.
4947 1.1 tv test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4948 1.1 tv
4949 1.1 tv # VPATH may cause trouble with some makes, so we remove $(srcdir),
4950 1.1 tv # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
4951 1.1 tv # trailing colons and then remove the whole line if VPATH becomes empty
4952 1.1 tv # (actually we leave an empty line to preserve line numbers).
4953 1.1 tv if test "x$srcdir" = x.; then
4954 1.1 tv ac_vpsub='/^[ ]*VPATH[ ]*=/{
4955 1.1 tv s/:*\$(srcdir):*/:/;
4956 1.1 tv s/:*\${srcdir}:*/:/;
4957 1.1 tv s/:*@srcdir@:*/:/;
4958 1.1 tv s/^\([^=]*=[ ]*\):*/\1/;
4959 1.1 tv s/:*$//;
4960 1.1 tv s/^[^=]*=[ ]*$//;
4961 1.1 tv }'
4962 1.1 tv fi
4963 1.1 tv
4964 1.1 tv DEFS=-DHAVE_CONFIG_H
4965 1.1 tv
4966 1.1 tv : ${CONFIG_STATUS=./config.status}
4967 1.1 tv ac_clean_files_save=$ac_clean_files
4968 1.1 tv ac_clean_files="$ac_clean_files $CONFIG_STATUS"
4969 1.35 thorpej { echo "$as_me:4969: creating $CONFIG_STATUS" >&5
4970 1.1 tv echo "$as_me: creating $CONFIG_STATUS" >&6;}
4971 1.1 tv cat >$CONFIG_STATUS <<_ACEOF
4972 1.1 tv #! $SHELL
4973 1.1 tv # Generated automatically by configure.
4974 1.1 tv # Run this file to recreate the current configuration.
4975 1.1 tv # Compiler output produced by configure, useful for debugging
4976 1.1 tv # configure, is in config.log if it exists.
4977 1.1 tv
4978 1.1 tv debug=false
4979 1.1 tv SHELL=\${CONFIG_SHELL-$SHELL}
4980 1.1 tv ac_cs_invocation="\$0 \$@"
4981 1.1 tv
4982 1.1 tv _ACEOF
4983 1.1 tv
4984 1.1 tv cat >>$CONFIG_STATUS <<\_ACEOF
4985 1.1 tv # Be Bourne compatible
4986 1.1 tv if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
4987 1.1 tv emulate sh
4988 1.1 tv NULLCMD=:
4989 1.1 tv elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
4990 1.1 tv set -o posix
4991 1.1 tv fi
4992 1.1 tv
4993 1.1 tv # Name of the executable.
4994 1.1 tv as_me=`echo "$0" |sed 's,.*[\\/],,'`
4995 1.1 tv
4996 1.1 tv if expr a : '\(a\)' >/dev/null 2>&1; then
4997 1.1 tv as_expr=expr
4998 1.1 tv else
4999 1.1 tv as_expr=false
5000 1.1 tv fi
5001 1.1 tv
5002 1.1 tv rm -f conf$$ conf$$.exe conf$$.file
5003 1.1 tv echo >conf$$.file
5004 1.1 tv if ln -s conf$$.file conf$$ 2>/dev/null; then
5005 1.1 tv # We could just check for DJGPP; but this test a) works b) is more generic
5006 1.1 tv # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
5007 1.1 tv if test -f conf$$.exe; then
5008 1.1 tv # Don't use ln at all; we don't have any links
5009 1.1 tv as_ln_s='cp -p'
5010 1.1 tv else
5011 1.1 tv as_ln_s='ln -s'
5012 1.1 tv fi
5013 1.1 tv elif ln conf$$.file conf$$ 2>/dev/null; then
5014 1.1 tv as_ln_s=ln
5015 1.1 tv else
5016 1.1 tv as_ln_s='cp -p'
5017 1.1 tv fi
5018 1.1 tv rm -f conf$$ conf$$.exe conf$$.file
5019 1.1 tv
5020 1.1 tv as_executable_p="test -f"
5021 1.1 tv
5022 1.1 tv # Support unset when possible.
5023 1.1 tv if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
5024 1.1 tv as_unset=unset
5025 1.1 tv else
5026 1.1 tv as_unset=false
5027 1.1 tv fi
5028 1.1 tv
5029 1.1 tv # NLS nuisances.
5030 1.1 tv $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
5031 1.1 tv $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
5032 1.1 tv $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
5033 1.1 tv $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
5034 1.1 tv $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
5035 1.1 tv $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
5036 1.1 tv $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
5037 1.1 tv $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
5038 1.1 tv
5039 1.1 tv # IFS
5040 1.1 tv # We need space, tab and new line, in precisely that order.
5041 1.1 tv as_nl='
5042 1.1 tv '
5043 1.1 tv IFS=" $as_nl"
5044 1.1 tv
5045 1.1 tv # CDPATH.
5046 1.1 tv $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
5047 1.1 tv
5048 1.1 tv exec 6>&1
5049 1.1 tv
5050 1.1 tv _ACEOF
5051 1.1 tv
5052 1.1 tv # Files that config.status was made for.
5053 1.1 tv if test -n "$ac_config_files"; then
5054 1.1 tv echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
5055 1.1 tv fi
5056 1.1 tv
5057 1.1 tv if test -n "$ac_config_headers"; then
5058 1.1 tv echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
5059 1.1 tv fi
5060 1.1 tv
5061 1.1 tv if test -n "$ac_config_links"; then
5062 1.1 tv echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
5063 1.1 tv fi
5064 1.1 tv
5065 1.1 tv if test -n "$ac_config_commands"; then
5066 1.1 tv echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
5067 1.1 tv fi
5068 1.1 tv
5069 1.1 tv cat >>$CONFIG_STATUS <<\EOF
5070 1.1 tv
5071 1.1 tv ac_cs_usage="\
5072 1.1 tv \`$as_me' instantiates files from templates according to the
5073 1.1 tv current configuration.
5074 1.1 tv
5075 1.1 tv Usage: $0 [OPTIONS] [FILE]...
5076 1.1 tv
5077 1.1 tv -h, --help print this help, then exit
5078 1.1 tv -V, --version print version number, then exit
5079 1.1 tv -d, --debug don't remove temporary files
5080 1.1 tv --recheck update $as_me by reconfiguring in the same conditions
5081 1.1 tv --file=FILE[:TEMPLATE]
5082 1.1 tv instantiate the configuration file FILE
5083 1.1 tv --header=FILE[:TEMPLATE]
5084 1.1 tv instantiate the configuration header FILE
5085 1.1 tv
5086 1.1 tv Configuration files:
5087 1.1 tv $config_files
5088 1.1 tv
5089 1.1 tv Configuration headers:
5090 1.1 tv $config_headers
5091 1.1 tv
5092 1.1 tv Report bugs to <bug-autoconf@gnu.org>."
5093 1.1 tv EOF
5094 1.1 tv
5095 1.1 tv cat >>$CONFIG_STATUS <<EOF
5096 1.1 tv ac_cs_version="\\
5097 1.1 tv libnbcompat config.status noversion
5098 1.1 tv configured by $0, generated by GNU Autoconf 2.52,
5099 1.1 tv with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
5100 1.1 tv
5101 1.1 tv Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
5102 1.1 tv Free Software Foundation, Inc.
5103 1.1 tv This config.status script is free software; the Free Software Foundation
5104 1.1 tv gives unlimited permission to copy, distribute and modify it."
5105 1.1 tv srcdir=$srcdir
5106 1.1 tv EOF
5107 1.1 tv
5108 1.1 tv cat >>$CONFIG_STATUS <<\EOF
5109 1.1 tv # If no file are specified by the user, then we need to provide default
5110 1.1 tv # value. By we need to know if files were specified by the user.
5111 1.1 tv ac_need_defaults=:
5112 1.1 tv while test $# != 0
5113 1.1 tv do
5114 1.1 tv case $1 in
5115 1.1 tv --*=*)
5116 1.1 tv ac_option=`expr "x$1" : 'x\([^=]*\)='`
5117 1.1 tv ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
5118 1.1 tv shift
5119 1.1 tv set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
5120 1.1 tv shift
5121 1.1 tv ;;
5122 1.1 tv -*);;
5123 1.1 tv *) # This is not an option, so the user has probably given explicit
5124 1.1 tv # arguments.
5125 1.1 tv ac_need_defaults=false;;
5126 1.1 tv esac
5127 1.1 tv
5128 1.1 tv case $1 in
5129 1.1 tv # Handling of the options.
5130 1.1 tv EOF
5131 1.1 tv cat >>$CONFIG_STATUS <<EOF
5132 1.1 tv -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5133 1.1 tv echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
5134 1.1 tv exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
5135 1.1 tv EOF
5136 1.1 tv cat >>$CONFIG_STATUS <<\EOF
5137 1.1 tv --version | --vers* | -V )
5138 1.1 tv echo "$ac_cs_version"; exit 0 ;;
5139 1.1 tv --he | --h)
5140 1.1 tv # Conflict between --help and --header
5141 1.35 thorpej { { echo "$as_me:5141: error: ambiguous option: $1
5142 1.1 tv Try \`$0 --help' for more information." >&5
5143 1.1 tv echo "$as_me: error: ambiguous option: $1
5144 1.1 tv Try \`$0 --help' for more information." >&2;}
5145 1.1 tv { (exit 1); exit 1; }; };;
5146 1.1 tv --help | --hel | -h )
5147 1.1 tv echo "$ac_cs_usage"; exit 0 ;;
5148 1.1 tv --debug | --d* | -d )
5149 1.1 tv debug=: ;;
5150 1.1 tv --file | --fil | --fi | --f )
5151 1.1 tv shift
5152 1.1 tv CONFIG_FILES="$CONFIG_FILES $1"
5153 1.1 tv ac_need_defaults=false;;
5154 1.1 tv --header | --heade | --head | --hea )
5155 1.1 tv shift
5156 1.1 tv CONFIG_HEADERS="$CONFIG_HEADERS $1"
5157 1.1 tv ac_need_defaults=false;;
5158 1.1 tv
5159 1.1 tv # This is an error.
5160 1.35 thorpej -*) { { echo "$as_me:5160: error: unrecognized option: $1
5161 1.1 tv Try \`$0 --help' for more information." >&5
5162 1.1 tv echo "$as_me: error: unrecognized option: $1
5163 1.1 tv Try \`$0 --help' for more information." >&2;}
5164 1.1 tv { (exit 1); exit 1; }; } ;;
5165 1.1 tv
5166 1.1 tv *) ac_config_targets="$ac_config_targets $1" ;;
5167 1.1 tv
5168 1.1 tv esac
5169 1.1 tv shift
5170 1.1 tv done
5171 1.1 tv
5172 1.1 tv exec 5>>config.log
5173 1.1 tv cat >&5 << _ACEOF
5174 1.1 tv
5175 1.1 tv ## ----------------------- ##
5176 1.1 tv ## Running config.status. ##
5177 1.1 tv ## ----------------------- ##
5178 1.1 tv
5179 1.1 tv This file was extended by $as_me (libnbcompat noversion) 2.52, executed with
5180 1.1 tv CONFIG_FILES = $CONFIG_FILES
5181 1.1 tv CONFIG_HEADERS = $CONFIG_HEADERS
5182 1.1 tv CONFIG_LINKS = $CONFIG_LINKS
5183 1.1 tv CONFIG_COMMANDS = $CONFIG_COMMANDS
5184 1.1 tv > $ac_cs_invocation
5185 1.1 tv on `(hostname || uname -n) 2>/dev/null | sed 1q`
5186 1.1 tv
5187 1.1 tv _ACEOF
5188 1.1 tv EOF
5189 1.1 tv
5190 1.1 tv cat >>$CONFIG_STATUS <<\EOF
5191 1.1 tv for ac_config_target in $ac_config_targets
5192 1.1 tv do
5193 1.1 tv case "$ac_config_target" in
5194 1.1 tv # Handling of arguments.
5195 1.1 tv "defs.mk" ) CONFIG_FILES="$CONFIG_FILES defs.mk" ;;
5196 1.1 tv "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
5197 1.35 thorpej *) { { echo "$as_me:5197: error: invalid argument: $ac_config_target" >&5
5198 1.1 tv echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
5199 1.1 tv { (exit 1); exit 1; }; };;
5200 1.1 tv esac
5201 1.1 tv done
5202 1.1 tv
5203 1.1 tv # If the user did not use the arguments to specify the items to instantiate,
5204 1.1 tv # then the envvar interface is used. Set only those that are not.
5205 1.1 tv # We use the long form for the default assignment because of an extremely
5206 1.1 tv # bizarre bug on SunOS 4.1.3.
5207 1.1 tv if $ac_need_defaults; then
5208 1.1 tv test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
5209 1.1 tv test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
5210 1.1 tv fi
5211 1.1 tv
5212 1.1 tv # Create a temporary directory, and hook for its removal unless debugging.
5213 1.1 tv $debug ||
5214 1.1 tv {
5215 1.1 tv trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
5216 1.1 tv trap '{ (exit 1); exit 1; }' 1 2 13 15
5217 1.1 tv }
5218 1.1 tv
5219 1.1 tv # Create a (secure) tmp directory for tmp files.
5220 1.1 tv : ${TMPDIR=/tmp}
5221 1.1 tv {
5222 1.1 tv tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
5223 1.1 tv test -n "$tmp" && test -d "$tmp"
5224 1.1 tv } ||
5225 1.1 tv {
5226 1.1 tv tmp=$TMPDIR/cs$$-$RANDOM
5227 1.1 tv (umask 077 && mkdir $tmp)
5228 1.1 tv } ||
5229 1.1 tv {
5230 1.1 tv echo "$me: cannot create a temporary directory in $TMPDIR" >&2
5231 1.1 tv { (exit 1); exit 1; }
5232 1.1 tv }
5233 1.1 tv
5234 1.1 tv EOF
5235 1.1 tv
5236 1.1 tv cat >>$CONFIG_STATUS <<EOF
5237 1.1 tv
5238 1.1 tv #
5239 1.1 tv # CONFIG_FILES section.
5240 1.1 tv #
5241 1.1 tv
5242 1.1 tv # No need to generate the scripts if there are no CONFIG_FILES.
5243 1.1 tv # This happens for instance when ./config.status config.h
5244 1.1 tv if test -n "\$CONFIG_FILES"; then
5245 1.1 tv # Protect against being on the right side of a sed subst in config.status.
5246 1.1 tv sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
5247 1.1 tv s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
5248 1.1 tv s,@SHELL@,$SHELL,;t t
5249 1.1 tv s,@exec_prefix@,$exec_prefix,;t t
5250 1.1 tv s,@prefix@,$prefix,;t t
5251 1.1 tv s,@program_transform_name@,$program_transform_name,;t t
5252 1.1 tv s,@bindir@,$bindir,;t t
5253 1.1 tv s,@sbindir@,$sbindir,;t t
5254 1.1 tv s,@libexecdir@,$libexecdir,;t t
5255 1.1 tv s,@datadir@,$datadir,;t t
5256 1.1 tv s,@sysconfdir@,$sysconfdir,;t t
5257 1.1 tv s,@sharedstatedir@,$sharedstatedir,;t t
5258 1.1 tv s,@localstatedir@,$localstatedir,;t t
5259 1.1 tv s,@libdir@,$libdir,;t t
5260 1.1 tv s,@includedir@,$includedir,;t t
5261 1.1 tv s,@oldincludedir@,$oldincludedir,;t t
5262 1.1 tv s,@infodir@,$infodir,;t t
5263 1.1 tv s,@mandir@,$mandir,;t t
5264 1.1 tv s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
5265 1.1 tv s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
5266 1.1 tv s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
5267 1.1 tv s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
5268 1.1 tv s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
5269 1.1 tv s,@build_alias@,$build_alias,;t t
5270 1.1 tv s,@host_alias@,$host_alias,;t t
5271 1.1 tv s,@target_alias@,$target_alias,;t t
5272 1.1 tv s,@ECHO_C@,$ECHO_C,;t t
5273 1.1 tv s,@ECHO_N@,$ECHO_N,;t t
5274 1.1 tv s,@ECHO_T@,$ECHO_T,;t t
5275 1.1 tv s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
5276 1.1 tv s,@DEFS@,$DEFS,;t t
5277 1.1 tv s,@LIBS@,$LIBS,;t t
5278 1.20 bjh21 s,@BSHELL@,$BSHELL,;t t
5279 1.1 tv s,@CC@,$CC,;t t
5280 1.1 tv s,@CFLAGS@,$CFLAGS,;t t
5281 1.1 tv s,@LDFLAGS@,$LDFLAGS,;t t
5282 1.1 tv s,@CPPFLAGS@,$CPPFLAGS,;t t
5283 1.1 tv s,@ac_ct_CC@,$ac_ct_CC,;t t
5284 1.1 tv s,@EXEEXT@,$EXEEXT,;t t
5285 1.1 tv s,@OBJEXT@,$OBJEXT,;t t
5286 1.1 tv s,@CPP@,$CPP,;t t
5287 1.19 bjh21 s,@ALLOCA@,$ALLOCA,;t t
5288 1.1 tv CEOF
5289 1.1 tv
5290 1.1 tv EOF
5291 1.1 tv
5292 1.1 tv cat >>$CONFIG_STATUS <<\EOF
5293 1.1 tv # Split the substitutions into bite-sized pieces for seds with
5294 1.1 tv # small command number limits, like on Digital OSF/1 and HP-UX.
5295 1.1 tv ac_max_sed_lines=48
5296 1.1 tv ac_sed_frag=1 # Number of current file.
5297 1.1 tv ac_beg=1 # First line for current file.
5298 1.1 tv ac_end=$ac_max_sed_lines # Line after last line for current file.
5299 1.1 tv ac_more_lines=:
5300 1.1 tv ac_sed_cmds=
5301 1.1 tv while $ac_more_lines; do
5302 1.1 tv if test $ac_beg -gt 1; then
5303 1.1 tv sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
5304 1.1 tv else
5305 1.1 tv sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
5306 1.1 tv fi
5307 1.1 tv if test ! -s $tmp/subs.frag; then
5308 1.1 tv ac_more_lines=false
5309 1.1 tv else
5310 1.1 tv # The purpose of the label and of the branching condition is to
5311 1.1 tv # speed up the sed processing (if there are no `@' at all, there
5312 1.1 tv # is no need to browse any of the substitutions).
5313 1.1 tv # These are the two extra sed commands mentioned above.
5314 1.1 tv (echo ':t
5315 1.1 tv /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
5316 1.1 tv if test -z "$ac_sed_cmds"; then
5317 1.1 tv ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
5318 1.1 tv else
5319 1.1 tv ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
5320 1.1 tv fi
5321 1.1 tv ac_sed_frag=`expr $ac_sed_frag + 1`
5322 1.1 tv ac_beg=$ac_end
5323 1.1 tv ac_end=`expr $ac_end + $ac_max_sed_lines`
5324 1.1 tv fi
5325 1.1 tv done
5326 1.1 tv if test -z "$ac_sed_cmds"; then
5327 1.1 tv ac_sed_cmds=cat
5328 1.1 tv fi
5329 1.1 tv fi # test -n "$CONFIG_FILES"
5330 1.1 tv
5331 1.1 tv EOF
5332 1.1 tv cat >>$CONFIG_STATUS <<\EOF
5333 1.1 tv for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
5334 1.1 tv # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5335 1.1 tv case $ac_file in
5336 1.1 tv - | *:- | *:-:* ) # input from stdin
5337 1.1 tv cat >$tmp/stdin
5338 1.1 tv ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5339 1.1 tv ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5340 1.1 tv *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5341 1.1 tv ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5342 1.1 tv * ) ac_file_in=$ac_file.in ;;
5343 1.1 tv esac
5344 1.1 tv
5345 1.1 tv # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
5346 1.1 tv ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5347 1.1 tv X"$ac_file" : 'X\(//\)[^/]' \| \
5348 1.1 tv X"$ac_file" : 'X\(//\)$' \| \
5349 1.1 tv X"$ac_file" : 'X\(/\)' \| \
5350 1.1 tv . : '\(.\)' 2>/dev/null ||
5351 1.1 tv echo X"$ac_file" |
5352 1.1 tv sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5353 1.1 tv /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5354 1.1 tv /^X\(\/\/\)$/{ s//\1/; q; }
5355 1.1 tv /^X\(\/\).*/{ s//\1/; q; }
5356 1.1 tv s/.*/./; q'`
5357 1.1 tv if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
5358 1.1 tv { case "$ac_dir" in
5359 1.1 tv [\\/]* | ?:[\\/]* ) as_incr_dir=;;
5360 1.1 tv *) as_incr_dir=.;;
5361 1.1 tv esac
5362 1.1 tv as_dummy="$ac_dir"
5363 1.1 tv for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
5364 1.1 tv case $as_mkdir_dir in
5365 1.1 tv # Skip DOS drivespec
5366 1.1 tv ?:) as_incr_dir=$as_mkdir_dir ;;
5367 1.1 tv *)
5368 1.1 tv as_incr_dir=$as_incr_dir/$as_mkdir_dir
5369 1.1 tv test -d "$as_incr_dir" || mkdir "$as_incr_dir"
5370 1.1 tv ;;
5371 1.1 tv esac
5372 1.1 tv done; }
5373 1.1 tv
5374 1.1 tv ac_dir_suffix="/`echo $ac_dir|sed 's,^\./,,'`"
5375 1.1 tv # A "../" for each directory in $ac_dir_suffix.
5376 1.1 tv ac_dots=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'`
5377 1.1 tv else
5378 1.1 tv ac_dir_suffix= ac_dots=
5379 1.1 tv fi
5380 1.1 tv
5381 1.1 tv case $srcdir in
5382 1.1 tv .) ac_srcdir=.
5383 1.1 tv if test -z "$ac_dots"; then
5384 1.1 tv ac_top_srcdir=.
5385 1.1 tv else
5386 1.1 tv ac_top_srcdir=`echo $ac_dots | sed 's,/$,,'`
5387 1.1 tv fi ;;
5388 1.1 tv [\\/]* | ?:[\\/]* )
5389 1.1 tv ac_srcdir=$srcdir$ac_dir_suffix;
5390 1.1 tv ac_top_srcdir=$srcdir ;;
5391 1.1 tv *) # Relative path.
5392 1.1 tv ac_srcdir=$ac_dots$srcdir$ac_dir_suffix
5393 1.1 tv ac_top_srcdir=$ac_dots$srcdir ;;
5394 1.1 tv esac
5395 1.1 tv
5396 1.1 tv if test x"$ac_file" != x-; then
5397 1.35 thorpej { echo "$as_me:5397: creating $ac_file" >&5
5398 1.1 tv echo "$as_me: creating $ac_file" >&6;}
5399 1.1 tv rm -f "$ac_file"
5400 1.1 tv fi
5401 1.1 tv # Let's still pretend it is `configure' which instantiates (i.e., don't
5402 1.1 tv # use $as_me), people would be surprised to read:
5403 1.1 tv # /* config.h. Generated automatically by config.status. */
5404 1.1 tv configure_input="Generated automatically from `echo $ac_file_in |
5405 1.1 tv sed 's,.*/,,'` by configure."
5406 1.1 tv
5407 1.1 tv # First look for the input files in the build tree, otherwise in the
5408 1.1 tv # src tree.
5409 1.1 tv ac_file_inputs=`IFS=:
5410 1.1 tv for f in $ac_file_in; do
5411 1.1 tv case $f in
5412 1.1 tv -) echo $tmp/stdin ;;
5413 1.1 tv [\\/$]*)
5414 1.1 tv # Absolute (can't be DOS-style, as IFS=:)
5415 1.35 thorpej test -f "$f" || { { echo "$as_me:5415: error: cannot find input file: $f" >&5
5416 1.1 tv echo "$as_me: error: cannot find input file: $f" >&2;}
5417 1.1 tv { (exit 1); exit 1; }; }
5418 1.1 tv echo $f;;
5419 1.1 tv *) # Relative
5420 1.1 tv if test -f "$f"; then
5421 1.1 tv # Build tree
5422 1.1 tv echo $f
5423 1.1 tv elif test -f "$srcdir/$f"; then
5424 1.1 tv # Source tree
5425 1.1 tv echo $srcdir/$f
5426 1.1 tv else
5427 1.1 tv # /dev/null tree
5428 1.35 thorpej { { echo "$as_me:5428: error: cannot find input file: $f" >&5
5429 1.1 tv echo "$as_me: error: cannot find input file: $f" >&2;}
5430 1.1 tv { (exit 1); exit 1; }; }
5431 1.1 tv fi;;
5432 1.1 tv esac
5433 1.1 tv done` || { (exit 1); exit 1; }
5434 1.1 tv EOF
5435 1.1 tv cat >>$CONFIG_STATUS <<EOF
5436 1.1 tv sed "$ac_vpsub
5437 1.1 tv $extrasub
5438 1.1 tv EOF
5439 1.1 tv cat >>$CONFIG_STATUS <<\EOF
5440 1.1 tv :t
5441 1.1 tv /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
5442 1.1 tv s,@configure_input@,$configure_input,;t t
5443 1.1 tv s,@srcdir@,$ac_srcdir,;t t
5444 1.1 tv s,@top_srcdir@,$ac_top_srcdir,;t t
5445 1.1 tv " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
5446 1.1 tv rm -f $tmp/stdin
5447 1.1 tv if test x"$ac_file" != x-; then
5448 1.1 tv mv $tmp/out $ac_file
5449 1.1 tv else
5450 1.1 tv cat $tmp/out
5451 1.1 tv rm -f $tmp/out
5452 1.1 tv fi
5453 1.1 tv
5454 1.1 tv done
5455 1.1 tv EOF
5456 1.1 tv cat >>$CONFIG_STATUS <<\EOF
5457 1.1 tv
5458 1.1 tv #
5459 1.1 tv # CONFIG_HEADER section.
5460 1.1 tv #
5461 1.1 tv
5462 1.1 tv # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
5463 1.1 tv # NAME is the cpp macro being defined and VALUE is the value it is being given.
5464 1.1 tv #
5465 1.1 tv # ac_d sets the value in "#define NAME VALUE" lines.
5466 1.1 tv ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
5467 1.1 tv ac_dB='[ ].*$,\1#\2'
5468 1.1 tv ac_dC=' '
5469 1.1 tv ac_dD=',;t'
5470 1.1 tv # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
5471 1.1 tv ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
5472 1.1 tv ac_uB='$,\1#\2define\3'
5473 1.1 tv ac_uC=' '
5474 1.1 tv ac_uD=',;t'
5475 1.1 tv
5476 1.1 tv for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
5477 1.1 tv # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5478 1.1 tv case $ac_file in
5479 1.1 tv - | *:- | *:-:* ) # input from stdin
5480 1.1 tv cat >$tmp/stdin
5481 1.1 tv ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5482 1.1 tv ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5483 1.1 tv *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5484 1.1 tv ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5485 1.1 tv * ) ac_file_in=$ac_file.in ;;
5486 1.1 tv esac
5487 1.1 tv
5488 1.35 thorpej test x"$ac_file" != x- && { echo "$as_me:5488: creating $ac_file" >&5
5489 1.1 tv echo "$as_me: creating $ac_file" >&6;}
5490 1.1 tv
5491 1.1 tv # First look for the input files in the build tree, otherwise in the
5492 1.1 tv # src tree.
5493 1.1 tv ac_file_inputs=`IFS=:
5494 1.1 tv for f in $ac_file_in; do
5495 1.1 tv case $f in
5496 1.1 tv -) echo $tmp/stdin ;;
5497 1.1 tv [\\/$]*)
5498 1.1 tv # Absolute (can't be DOS-style, as IFS=:)
5499 1.35 thorpej test -f "$f" || { { echo "$as_me:5499: error: cannot find input file: $f" >&5
5500 1.1 tv echo "$as_me: error: cannot find input file: $f" >&2;}
5501 1.1 tv { (exit 1); exit 1; }; }
5502 1.1 tv echo $f;;
5503 1.1 tv *) # Relative
5504 1.1 tv if test -f "$f"; then
5505 1.1 tv # Build tree
5506 1.1 tv echo $f
5507 1.1 tv elif test -f "$srcdir/$f"; then
5508 1.1 tv # Source tree
5509 1.1 tv echo $srcdir/$f
5510 1.1 tv else
5511 1.1 tv # /dev/null tree
5512 1.35 thorpej { { echo "$as_me:5512: error: cannot find input file: $f" >&5
5513 1.1 tv echo "$as_me: error: cannot find input file: $f" >&2;}
5514 1.1 tv { (exit 1); exit 1; }; }
5515 1.1 tv fi;;
5516 1.1 tv esac
5517 1.1 tv done` || { (exit 1); exit 1; }
5518 1.1 tv # Remove the trailing spaces.
5519 1.1 tv sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
5520 1.1 tv
5521 1.1 tv EOF
5522 1.1 tv
5523 1.1 tv # Transform confdefs.h into two sed scripts, `conftest.defines' and
5524 1.1 tv # `conftest.undefs', that substitutes the proper values into
5525 1.1 tv # config.h.in to produce config.h. The first handles `#define'
5526 1.1 tv # templates, and the second `#undef' templates.
5527 1.1 tv # And first: Protect against being on the right side of a sed subst in
5528 1.1 tv # config.status. Protect against being in an unquoted here document
5529 1.1 tv # in config.status.
5530 1.1 tv rm -f conftest.defines conftest.undefs
5531 1.1 tv # Using a here document instead of a string reduces the quoting nightmare.
5532 1.1 tv # Putting comments in sed scripts is not portable.
5533 1.1 tv #
5534 1.1 tv # `end' is used to avoid that the second main sed command (meant for
5535 1.1 tv # 0-ary CPP macros) applies to n-ary macro definitions.
5536 1.1 tv # See the Autoconf documentation for `clear'.
5537 1.1 tv cat >confdef2sed.sed <<\EOF
5538 1.1 tv s/[\\&,]/\\&/g
5539 1.1 tv s,[\\$`],\\&,g
5540 1.1 tv t clear
5541 1.1 tv : clear
5542 1.1 tv s,^[ ]*#[ ]*define[ ][ ]*\(\([^ (][^ (]*\)([^)]*)\)[ ]*\(.*\)$,${ac_dA}\2${ac_dB}\1${ac_dC}\3${ac_dD},gp
5543 1.1 tv t end
5544 1.1 tv s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
5545 1.1 tv : end
5546 1.1 tv EOF
5547 1.1 tv # If some macros were called several times there might be several times
5548 1.1 tv # the same #defines, which is useless. Nevertheless, we may not want to
5549 1.1 tv # sort them, since we want the *last* AC-DEFINE to be honored.
5550 1.1 tv uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
5551 1.1 tv sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
5552 1.1 tv rm -f confdef2sed.sed
5553 1.1 tv
5554 1.1 tv # This sed command replaces #undef with comments. This is necessary, for
5555 1.1 tv # example, in the case of _POSIX_SOURCE, which is predefined and required
5556 1.1 tv # on some systems where configure will not decide to define it.
5557 1.1 tv cat >>conftest.undefs <<\EOF
5558 1.1 tv s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
5559 1.1 tv EOF
5560 1.1 tv
5561 1.1 tv # Break up conftest.defines because some shells have a limit on the size
5562 1.1 tv # of here documents, and old seds have small limits too (100 cmds).
5563 1.1 tv echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
5564 1.1 tv echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
5565 1.1 tv echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
5566 1.1 tv echo ' :' >>$CONFIG_STATUS
5567 1.1 tv rm -f conftest.tail
5568 1.1 tv while grep . conftest.defines >/dev/null
5569 1.1 tv do
5570 1.1 tv # Write a limited-size here document to $tmp/defines.sed.
5571 1.1 tv echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
5572 1.1 tv # Speed up: don't consider the non `#define' lines.
5573 1.1 tv echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
5574 1.1 tv # Work around the forget-to-reset-the-flag bug.
5575 1.1 tv echo 't clr' >>$CONFIG_STATUS
5576 1.1 tv echo ': clr' >>$CONFIG_STATUS
5577 1.1 tv sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
5578 1.1 tv echo 'CEOF
5579 1.1 tv sed -f $tmp/defines.sed $tmp/in >$tmp/out
5580 1.1 tv rm -f $tmp/in
5581 1.1 tv mv $tmp/out $tmp/in
5582 1.1 tv ' >>$CONFIG_STATUS
5583 1.1 tv sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
5584 1.1 tv rm -f conftest.defines
5585 1.1 tv mv conftest.tail conftest.defines
5586 1.1 tv done
5587 1.1 tv rm -f conftest.defines
5588 1.1 tv echo ' fi # egrep' >>$CONFIG_STATUS
5589 1.1 tv echo >>$CONFIG_STATUS
5590 1.1 tv
5591 1.1 tv # Break up conftest.undefs because some shells have a limit on the size
5592 1.1 tv # of here documents, and old seds have small limits too (100 cmds).
5593 1.1 tv echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
5594 1.1 tv rm -f conftest.tail
5595 1.1 tv while grep . conftest.undefs >/dev/null
5596 1.1 tv do
5597 1.1 tv # Write a limited-size here document to $tmp/undefs.sed.
5598 1.1 tv echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
5599 1.1 tv # Speed up: don't consider the non `#undef'
5600 1.1 tv echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
5601 1.1 tv # Work around the forget-to-reset-the-flag bug.
5602 1.1 tv echo 't clr' >>$CONFIG_STATUS
5603 1.1 tv echo ': clr' >>$CONFIG_STATUS
5604 1.1 tv sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
5605 1.1 tv echo 'CEOF
5606 1.1 tv sed -f $tmp/undefs.sed $tmp/in >$tmp/out
5607 1.1 tv rm -f $tmp/in
5608 1.1 tv mv $tmp/out $tmp/in
5609 1.1 tv ' >>$CONFIG_STATUS
5610 1.1 tv sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
5611 1.1 tv rm -f conftest.undefs
5612 1.1 tv mv conftest.tail conftest.undefs
5613 1.1 tv done
5614 1.1 tv rm -f conftest.undefs
5615 1.1 tv
5616 1.1 tv cat >>$CONFIG_STATUS <<\EOF
5617 1.1 tv # Let's still pretend it is `configure' which instantiates (i.e., don't
5618 1.1 tv # use $as_me), people would be surprised to read:
5619 1.1 tv # /* config.h. Generated automatically by config.status. */
5620 1.1 tv if test x"$ac_file" = x-; then
5621 1.1 tv echo "/* Generated automatically by configure. */" >$tmp/config.h
5622 1.1 tv else
5623 1.1 tv echo "/* $ac_file. Generated automatically by configure. */" >$tmp/config.h
5624 1.1 tv fi
5625 1.1 tv cat $tmp/in >>$tmp/config.h
5626 1.1 tv rm -f $tmp/in
5627 1.1 tv if test x"$ac_file" != x-; then
5628 1.1 tv if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
5629 1.35 thorpej { echo "$as_me:5629: $ac_file is unchanged" >&5
5630 1.1 tv echo "$as_me: $ac_file is unchanged" >&6;}
5631 1.1 tv else
5632 1.1 tv ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5633 1.1 tv X"$ac_file" : 'X\(//\)[^/]' \| \
5634 1.1 tv X"$ac_file" : 'X\(//\)$' \| \
5635 1.1 tv X"$ac_file" : 'X\(/\)' \| \
5636 1.1 tv . : '\(.\)' 2>/dev/null ||
5637 1.1 tv echo X"$ac_file" |
5638 1.1 tv sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5639 1.1 tv /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5640 1.1 tv /^X\(\/\/\)$/{ s//\1/; q; }
5641 1.1 tv /^X\(\/\).*/{ s//\1/; q; }
5642 1.1 tv s/.*/./; q'`
5643 1.1 tv if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
5644 1.1 tv { case "$ac_dir" in
5645 1.1 tv [\\/]* | ?:[\\/]* ) as_incr_dir=;;
5646 1.1 tv *) as_incr_dir=.;;
5647 1.1 tv esac
5648 1.1 tv as_dummy="$ac_dir"
5649 1.1 tv for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
5650 1.1 tv case $as_mkdir_dir in
5651 1.1 tv # Skip DOS drivespec
5652 1.1 tv ?:) as_incr_dir=$as_mkdir_dir ;;
5653 1.1 tv *)
5654 1.1 tv as_incr_dir=$as_incr_dir/$as_mkdir_dir
5655 1.1 tv test -d "$as_incr_dir" || mkdir "$as_incr_dir"
5656 1.1 tv ;;
5657 1.1 tv esac
5658 1.1 tv done; }
5659 1.1 tv
5660 1.1 tv fi
5661 1.1 tv rm -f $ac_file
5662 1.1 tv mv $tmp/config.h $ac_file
5663 1.1 tv fi
5664 1.1 tv else
5665 1.1 tv cat $tmp/config.h
5666 1.1 tv rm -f $tmp/config.h
5667 1.1 tv fi
5668 1.1 tv done
5669 1.1 tv EOF
5670 1.1 tv
5671 1.1 tv cat >>$CONFIG_STATUS <<\EOF
5672 1.1 tv
5673 1.1 tv { (exit 0); exit 0; }
5674 1.1 tv EOF
5675 1.1 tv chmod +x $CONFIG_STATUS
5676 1.1 tv ac_clean_files=$ac_clean_files_save
5677 1.1 tv
5678 1.1 tv # configure is writing to config.log, and then calls config.status.
5679 1.1 tv # config.status does its own redirection, appending to config.log.
5680 1.1 tv # Unfortunately, on DOS this fails, as config.log is still kept open
5681 1.1 tv # by configure, so config.status won't be able to write to it; its
5682 1.1 tv # output is simply discarded. So we exec the FD to /dev/null,
5683 1.1 tv # effectively closing config.log, so it can be properly (re)opened and
5684 1.1 tv # appended to by config.status. When coming back to configure, we
5685 1.1 tv # need to make the FD available again.
5686 1.1 tv if test "$no_create" != yes; then
5687 1.1 tv ac_cs_success=:
5688 1.1 tv exec 5>/dev/null
5689 1.1 tv $SHELL $CONFIG_STATUS || ac_cs_success=false
5690 1.1 tv exec 5>>config.log
5691 1.1 tv # Use ||, not &&, to avoid exiting from the if with $? = 1, which
5692 1.1 tv # would make configure fail if this is the last instruction.
5693 1.1 tv $ac_cs_success || { (exit 1); exit 1; }
5694 1.1 tv fi
5695 1.1 tv
5696